:root {
    --bg-primary: #020612;
    --bg-secondary: #09132b;
    --bg-elevated: #0f1c3d;
    --bg-input: #122045;
    --primary: #1a5eff;
    --primary-gradient: linear-gradient(135deg, #1a5eff 0%, #0a25b0 100%);
    --primary-glow: rgba(26, 94, 255, 0.4);
    --text-primary: #f8fafc;
    --text-secondary: #8ea3cd;
    --border: rgba(255, 255, 255, 0.1);
    --success: #10b981;
    --danger: #ef4444;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

body.light-mode {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-elevated: #f1f5f9;
    --bg-input: #eef2ff;
    --primary: #2563eb;
    --primary-gradient: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    --primary-glow: rgba(37, 99, 235, 0.2);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --border: rgba(15, 23, 42, 0.08);
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

        body {
            background: var(--bg-primary);
            color: var(--text-primary);
            min-height: 100vh;
        }

        /* ── App Content Wrapper (Post-Login) ── */
        .phone-container {
            width: 100%;
            max-width: 480px;
            min-height: 100vh;
            background: var(--bg-primary);
            position: relative;
            display: flex;
            flex-direction: column;
            margin: 0 auto;
            box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
        }

        body.light-mode .phone-container {
            background: var(--bg-primary);
            box-shadow: 0 0 50px rgba(15, 23, 42, 0.08);
        }

        .notch {
            display: none;
        }

        /* ── Screen Transitions ── */
        .screen {
            display: none;
            flex-direction: column;
            height: 100%;
            background: var(--bg-primary);
            overflow-y: auto;
            position: absolute;
            inset: 0;
        }

        .screen.active {
            display: flex;
            animation: modernFadeSlide 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
        }

        @keyframes modernFadeSlide {
            from {
                opacity: 0;
                transform: translateY(20px) scale(0.97);
            }

            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        @keyframes shake {

            0%,
            100% {
                transform: translateX(0);
            }

            20% {
                transform: translateX(-8px);
            }

            40% {
                transform: translateX(8px);
            }

            60% {
                transform: translateX(-6px);
            }

            80% {
                transform: translateX(6px);
            }
        }

        /* ── Split-Screen Login (Image 1) ── */
        .login-screen {
            display: none;
            height: 100vh;
            width: 100vw;
            position: fixed;
            inset: 0;
            z-index: 10000;
        }

        .login-screen.active {
            display: flex;
        }

        .login-left {
            flex: 1.1;
            background: var(--primary-gradient);
            padding: 60px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            color: var(--text-primary);
            position: relative;
            overflow: hidden;
        }

        @keyframes floatUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .login-brand {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .login-brand-icon {
            width: 32px;
            height: 32px;
            background: #3b82f6;
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
        }

        .login-brand-text {
            font-size: 24px;
            font-weight: 800;
        }

        .login-left-main {
            max-width: 500px;
        }

        .login-left-main h2 {
            font-size: 56px;
            font-weight: 700;
            line-height: 1.1;
            margin-bottom: 40px;
        }

        .login-user-pill {
            display: flex;
            align-items: center;
            gap: 12px;
            background: rgba(255, 255, 255, 0.1);
            padding: 10px 16px;
            border-radius: 50px;
            width: fit-content;
        }

        .pill-avatar {
            width: 36px;
            height: 36px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 800;
            font-size: 14px;
        }

        .login-right {
            flex: 1;
            background: var(--bg-primary);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 40px;
        }

        .login-form-container {
            width: 100%;
            max-width: 400px;
        }

        .login-title {
            font-size: 42px;
            font-weight: 700;
            margin-bottom: 8px;
            color: var(--text-primary);
        }

        .login-subtitle {
            color: var(--text-secondary);
            margin-bottom: 48px;
            font-size: 16px;
        }

        .login-label {
            display: block;
            color: var(--text-secondary);
            font-size: 13px;
            font-weight: 600;
            margin-bottom: 10px;
        }

        .login-input {
            width: 100%;
            padding: 16px;
            background: var(--bg-secondary);
            border: 1px solid var(--border);
            border-radius: 12px;
            color: var(--text-primary);
            font-size: 16px;
            outline: none;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .login-input:focus {
            border-color: var(--primary);
            background: var(--bg-input);
            box-shadow: 0 0 0 4px var(--primary-glow), inset 0 2px 4px rgba(0, 0, 0, 0.1);
            transform: translateY(-1px);
        }

        .login-btn-action {
            width: 100%;
            padding: 16px;
            background: #1d4ed8;
            color: var(--text-primary);
            border: none;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 700;
            cursor: pointer;
            margin-top: 10px;
        }

        .input-field {
            width: 100%;
            padding: 15px 16px;
            margin-bottom: 14px;
            border: 1px solid var(--border);
            border-radius: 12px;
            font-size: 15px;
            font-family: inherit;
            outline: none;
            transition: border-color 0.25s, box-shadow 0.25s;
            background: var(--bg-secondary);
            color: var(--text-primary);
        }

        .input-field:focus {
            border-color: #1d4ed8;
            background: #0f172a;
            box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.1);
        }

        .input-field:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
        }

        .input-field::placeholder {
            color: #475569;
        }

        .auth-btn {
            width: 100%;
            padding: 16px;
            background: var(--primary-gradient);
            color: var(--text-primary);
            border: none;
            border-radius: 12px;
            font-size: 16px;
            font-weight: 700;
            cursor: pointer;
            margin-top: 8px;
            transition: transform 0.18s, box-shadow 0.18s, opacity 0.18s;
            box-shadow: 0 4px 20px rgba(37, 99, 235, 0.35);
        }

        .auth-btn:hover {
            box-shadow: 0 6px 24px rgba(37, 99, 235, 0.45);
        }

        .auth-btn:active {
            transform: scale(0.97);
            opacity: 0.9;
        }

        .auth-link {
            text-align: center;
            margin-top: 22px;
            color: var(--text-secondary);
            font-size: 13px;
        }

        /* Match admin app login on mobile */
        @media (max-width: 640px) {
            .login-screen {
                flex-direction: column;
                position: relative;
                height: auto;
                min-height: 100vh;
                overflow-y: auto;
            }

            .login-left {
                display: none;
            }

            .login-right {
                padding: 40px 20px;
                flex: 1;
                width: 100%;
                min-height: 100vh;
            }

            .login-title {
                font-size: 32px;
            }

            .login-subtitle {
                margin-bottom: 30px;
            }
        }

        /* ── Top Bar ── */
        .top-bar {
            padding: 18px 20px 14px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid var(--border);
            background: linear-gradient(180deg, var(--bg-secondary) 0%, transparent 100%);
            flex-shrink: 0;
        }

        .status-badge {
            font-size: 11px;
            background: var(--bg-secondary);
            color: var(--success);
            padding: 5px 12px;
            border-radius: 20px;
            border: 1px solid rgba(16, 185, 129, 0.2);
            font-weight: 700;
            letter-spacing: 0.5px;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .status-dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: var(--success);
            animation: blink 2s infinite;
        }

        @keyframes blink {

            0%,
            100% {
                opacity: 1;
            }

            50% {
                opacity: 0.4;
            }
        }

        .terminal-id {
            font-size: 12px;
            color: var(--text-secondary);
            font-weight: 500;
        }

        /* ── Display Area ── */
        .display-area {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 0 24px;
            background: var(--bg-primary);
        }

        .amount-label {
            font-size: 13px;
            color: #38bdf8;
            margin-bottom: 24px;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            font-weight: 700;
        }

        .amount-value {
            font-size: 64px;
            font-weight: 800;
            color: var(--text-primary);
            letter-spacing: -2px;
            margin-bottom: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: color 0.2s;
        }

        .amount-value.placeholder #amount-text {
            color: #334155;
        }

        .currency {
            font-size: 26px;
            margin-right: 12px;
            color: #3b82f6;
            font-weight: 700;
        }

        /* ── Keypad ── */
        .keypad-area {
            background: transparent;
            padding: 24px;
            flex-shrink: 0;
            border-top: none;
        }

        .keypad {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 16px;
            margin-bottom: 20px;
        }

        .key {
            aspect-ratio: 1;
            background: var(--bg-secondary);
            border: none;
            border-radius: 24px;
            font-size: 28px;
            font-weight: 600;
            color: var(--text-primary);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            user-select: none;
            min-height: 72px;
            position: relative;
            overflow: hidden;
        }

        .key:hover {
            background: var(--bg-input);
        }

        .key:active {
            transform: scale(0.95);
            background: var(--bg-input);
        }

        .key.action {
            color: var(--text-primary);
            font-size: 24px;
        }

        .key.clear {
            color: #ef4444;
            font-size: 24px;
        }

        /* Ripple on key tap */
        .key .ripple {
            position: absolute;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.12);
            transform: scale(0);
            animation: keyRipple 0.45s linear;
            pointer-events: none;
        }

        @keyframes keyRipple {
            to {
                transform: scale(4);
                opacity: 0;
            }
        }

        .charge-btn {
            width: 100%;
            padding: 20px;
            background: var(--bg-secondary);
            color: var(--text-primary);
            border: none;
            border-radius: 20px;
            font-size: 18px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        .charge-btn:disabled {
            background: var(--bg-secondary);
            color: #475569;
            cursor: not-allowed;
            box-shadow: none;
            transform: none;
        }

        .charge-btn:not(:disabled) {
            background: #2563eb;
            color: var(--text-primary);
            box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
        }

        .charge-btn:not(:disabled):hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(37, 99, 235, 0.6);
        }

        .charge-btn:not(:disabled):active {
            transform: scale(0.96);
            box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
        }

        /* ── Bottom Nav ── */
        .bottom-nav {
            display: flex;
            background: var(--bg-primary);
            border-top: 1px solid var(--border);
            box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
            padding: 16px 20px;
            flex-shrink: 0;
            justify-content: space-around;
        }

        .nav-btn {
            background: transparent;
            border: none;
            cursor: pointer;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            border-radius: 24px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            padding: 12px 24px;
            gap: 6px;
            color: #4a5c82;
            font-size: 13px;
            font-weight: 600;
        }

        .nav-btn:hover {
            transform: translateY(-2px);
        }

        .nav-btn.active {
            background: #0d1b3e;
            color: #3b82f6;
        }

        .nav-icon {
            font-size: 24px;
            line-height: 1;
        }

        /* ── Modal – slide-up sheet ── */
        .modal {
            position: absolute;
            inset: 0;
            background: rgba(2, 6, 23, 0.75);
            backdrop-filter: blur(6px);
            display: none;
            align-items: flex-end;
            justify-content: center;
            z-index: 1000;
        }

        .modal.active {
            display: flex;
        }

        .modal-sheet {
            background: var(--bg-secondary);
            border-radius: 36px 36px 0 0;
            padding: 12px 24px 36px;
            width: 100%;
            border: 1px solid rgba(255, 255, 255, 0.06);
            border-bottom: none;
            animation: sheetUp 0.3s cubic-bezier(0.34, 1.2, 0.64, 1) both;
            box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
        }

        @keyframes sheetUp {
            from {
                transform: translateY(100%);
                opacity: 0;
            }

            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        .sheet-handle {
            width: 36px;
            height: 4px;
            background: var(--bg-input);
            border-radius: 99px;
            margin: 10px auto 20px;
        }

        .modal-header {
            font-size: 18px;
            font-weight: 700;
            margin-bottom: 20px;
            text-align: center;
        }

        .method-btn {
            width: 100%;
            padding: 15px 18px;
            background: var(--bg-input);
            border: 1px solid rgba(255, 255, 255, 0.06);
            border-radius: 24px;
            color: var(--text-primary);
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 14px;
            transition: background 0.18s, transform 0.15s, border-color 0.18s;
        }

        .method-btn:hover {
            border-color: rgba(37, 99, 235, 0.3);
            background: #263548;
        }

        .method-btn:active {
            transform: scale(0.98);
        }

        .method-btn.cancel {
            background: transparent;
            color: var(--text-secondary);
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

        .method-icon-circle {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            flex-shrink: 0;
        }

        .ic-blue {
            background: rgba(37, 99, 235, 0.12);
        }

        .ic-amber {
            background: rgba(251, 191, 36, 0.12);
        }

        .ic-green {
            background: rgba(16, 185, 129, 0.12);
        }

        .ic-purple {
            background: rgba(139, 92, 246, 0.12);
        }

        /* ── Status Modal content ── */
        .status-icon-box {
            width: 84px;
            height: 84px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 42px;
            margin: 8px auto 18px;
            transition: background 0.4s;
        }

        .status-icon-box.processing {
            background: rgba(251, 191, 36, 0.1);
            animation: slowSpin 2s linear infinite;
        }

        .status-icon-box.success {
            background: rgba(16, 185, 129, 0.12);
            box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
            animation: popIn 0.45s cubic-bezier(0.68, -0.55, 0.265, 1.55) both;
        }

        .status-icon-box.error {
            background: rgba(239, 68, 68, 0.12);
            box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
            animation: popIn 0.45s cubic-bezier(0.68, -0.55, 0.265, 1.55) both;
        }

        @keyframes slowSpin {
            from {
                transform: rotate(0deg);
            }

            to {
                transform: rotate(360deg);
            }
        }

        @keyframes popIn {
            from {
                transform: scale(0.5);
                opacity: 0;
            }

            60% {
                transform: scale(1.15);
            }

            to {
                transform: scale(1);
                opacity: 1;
            }
        }

        .status-title {
            font-size: 22px;
            font-weight: 700;
            text-align: center;
            margin-bottom: 8px;
        }

        .status-msg {
            color: var(--text-secondary);
            text-align: center;
            font-size: 14px;
            margin-bottom: 24px;
            line-height: 1.5;
        }

        .ref-tag {
            display: block;
            text-align: center;
            font-size: 10px;
            font-family: monospace;
            color: #475569;
            margin-bottom: 20px;
            letter-spacing: 0.5px;
        }

        .finish-btn {
            width: 100%;
            padding: 15px;
            border: none;
            border-radius: 12px;
            font-size: 15px;
            font-weight: 700;
            cursor: pointer;
            transition: transform 0.15s, opacity 0.15s;
        }

        .finish-btn.success {
            background: linear-gradient(135deg, #10b981, #059669);
            color: var(--text-primary);
            box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
        }

        .finish-btn.error {
            background: linear-gradient(135deg, #ef4444, #b91c1c);
            color: var(--text-primary);
            box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
        }

        .finish-btn:active {
            transform: scale(0.97);
            opacity: 0.9;
        }

        /* NFC animation */
        .nfc-wave {
            font-size: 64px;
            text-align: center;
            display: block;
            margin-bottom: 16px;
            animation: nfcPulse 1.4s ease-in-out infinite;
        }

        @keyframes nfcPulse {

            0%,
            100% {
                transform: scale(1);
                opacity: 1;
            }

            50% {
                transform: scale(1.18);
                opacity: 0.75;
            }
        }

        /* Card insert animation */
        .card-insert-anim {
            width: 82px;
            height: 52px;
            background: linear-gradient(135deg, #fbbf24, #f59e0b);
            border-radius: 8px;
            margin: 0 auto 16px;
            box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
            animation: cardFloat 1.5s ease-in-out infinite;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
        }

        @keyframes cardFloat {

            0%,
            100% {
                transform: translateY(0);
            }

            50% {
                transform: translateY(-10px);
            }
        }

        /* QR scanner */
        .scanner-container {
            width: 100%;
            height: 320px;
            margin-bottom: 16px;
            border-radius: 32px;
            overflow: hidden;
            position: relative;
            background: #000;
            border: none;
            box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
        }

        #qr-reader {
            width: 100%;
            height: 100%;
            border-radius: 32px;
        }
        
        #qr-reader video {
            object-fit: cover;
        }

        .cancel-scan-btn {
            background: rgba(239, 68, 68, 0.08);
            color: #f87171;
            border: 1px solid rgba(239, 68, 68, 0.2);
            padding: 10px 20px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 13px;
            font-weight: 600;
            transition: background 0.2s;
        }

        .cancel-scan-btn:active {
            background: rgba(239, 68, 68, 0.15);
        }

        /* ── History ── */
        .history-header {
            padding: 20px;
            border-bottom: 1px solid var(--border);
            flex-shrink: 0;
        }

        .history-title {
            font-size: 20px;
            font-weight: 700;
            margin-bottom: 14px;
        }

        .history-stats {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
        }

        .stat-card {
            background: var(--bg-input);
            padding: 14px 16px;
            border-radius: 20px;
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

        .stat-label {
            font-size: 11px;
            color: var(--text-secondary);
            margin-bottom: 4px;
            font-weight: 500;
        }

        .stat-value {
            font-size: 17px;
            font-weight: 800;
        }

        .history-list {
            padding: 16px;
            flex: 1;
            overflow-y: auto;
        }

        .txn-card {
            background: var(--bg-input);
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-radius: 24px;
            padding: 16px 20px;
            margin-bottom: 12px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            animation: rowIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
            transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
        }

        .txn-card:hover {
            transform: translateY(-2px);
            background: #1a2744;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
        }

        @keyframes rowIn {
            from {
                opacity: 0;
                transform: translateY(16px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .txn-icon {
            font-size: 20px;
            margin-right: 10px;
        }

        .txn-id {
            font-size: 11px;
            color: var(--text-secondary);
            font-family: monospace;
            margin-bottom: 2px;
        }

        .txn-amt {
            font-size: 15px;
            font-weight: 700;
        }

        .txn-left {
            display: flex;
            align-items: center;
        }

        .txn-status-badge {
            font-size: 10px;
            font-weight: 700;
            padding: 3px 9px;
            border-radius: 99px;
        }

        .txn-status-badge.approved {
            background: var(--bg-secondary);
            color: var(--success);
            border: 1px solid rgba(16, 185, 129, 0.2);
        }

        .txn-status-badge.declined {
            background: rgba(239, 68, 68, 0.1);
            color: var(--danger);
            border: 1px solid rgba(239, 68, 68, 0.2);
        }

        .txn-time {
            font-size: 10px;
            color: var(--text-secondary);
            margin-top: 4px;
        }

        .empty-state {
            text-align: center;
            padding: 60px 20px;
            color: var(--text-secondary);
            font-size: 14px;
        }

        .empty-icon {
            font-size: 40px;
            margin-bottom: 12px;
            opacity: 0.5;
        }

        /* Notifications */
        .notification-toast {
            position: fixed;
            top: -100px;
            left: 50%;
            transform: translateX(-50%);
            width: 90%;
            max-width: 400px;
            background: rgba(15, 23, 42, 0.95);
            backdrop-filter: blur(12px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 16px;
            padding: 16px;
            display: flex;
            align-items: center;
            gap: 12px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
            z-index: 9999999;
            transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            color: var(--text-primary);
        }

        .notification-toast.active {
            top: 20px;
        }

        .notification-icon {
            width: 40px;
            height: 40px;
            background: var(--primary);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            flex-shrink: 0;
        }

        .notification-content {
            flex: 1;
        }

        .notification-msg {
            font-size: 13px;
            line-height: 1.4;
        }
/* Session Expiry Overlay */
.session-expiry-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 15, 28, 0.85);
    backdrop-filter: blur(12px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.session-expiry-overlay.active {
    display: flex;
    opacity: 1;
}

.session-expiry-card {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 24px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: scale(0.8) translateY(20px);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.session-expiry-overlay.active .session-expiry-card {
    transform: scale(1) translateY(0);
}

.session-expiry-icon {
    font-size: 64px;
    margin-bottom: 24px;
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(239, 68, 68, 0.7)); }
    70% { transform: scale(1.05); filter: drop-shadow(0 0 15px rgba(239, 68, 68, 0)); }
    100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(239, 68, 68, 0)); }
}

.session-expiry-title {
    font-size: 24px;
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 12px;
}

.session-expiry-text {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 32px;
}

.session-expiry-btn {
    background: #2563eb;
    color: var(--text-primary);
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 16px;
}

.session-expiry-btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}
