:root {
    --bg-primary: #040914;
    --bg-secondary: #081125;
    --bg-elevated: #111e40;
    --bg-input: #15234a;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-tertiary: #64748b;
    --border-color: rgba(255, 255, 255, 0.08);
    --primary: #2563eb;
    --primary-glow: rgba(37, 99, 235, 0.2);
    --primary-gradient: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    --success: #10b981;
    --error: #ef4444;
    --accent: #f59e0b;
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-xl: 36px;
    --shadow-main: 0 20px 50px rgba(0, 0, 0, 0.5);
    --glass-bg: rgba(15, 23, 42, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-hover: rgba(255, 255, 255, 0.06);
}

html[data-theme="light"],
body.light-mode {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-elevated: #f1f5f9;
    --bg-input: #eef2ff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #64748b;
    --border-color: rgba(15, 23, 42, 0.08);
    --primary: #2563eb;
    --primary-glow: rgba(37, 99, 235, 0.1);
    --shadow-main: 0 10px 30px rgba(15, 23, 42, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(15, 23, 42, 0.05);
    --card-bg: rgba(255, 255, 255, 0.8);
    --card-hover: rgba(255, 255, 255, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif !important;
    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;
    display: flex;
    flex-direction: column;
}

.app-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    flex: 1;
    background: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: var(--shadow-main);
}

@media (min-width: 601px) {
    .app-container {
        border-left: 1px solid var(--border-color);
        border-right: 1px solid var(--border-color);
    }
}

.screen {
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    overflow-y: auto;
    padding-bottom: 90px;
    background: var(--bg-primary);
    animation: screenIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.screen.active {
    display: flex;
}

@keyframes screenIn {
    from {
        opacity: 0;
        transform: scale(0.98) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ── Split-Screen Login (Image 1) ── */
.login-screen {
    display: flex;
    height: 100vh;
    width: 100vw;
    position: fixed;
    inset: 0;
    z-index: 10000;
}

.login-left {
    flex: 1.1;
    background: var(--primary-gradient);
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: white;
}

.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: var(--bg-input);
    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: white;
}

.login-subtitle {
    color: var(--text-secondary);
    margin-bottom: 48px;
    font-size: 16px;
}

.form-label {
    display: block;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 12px;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-weight: 400 !important;
}

.login-left {
    flex: 1.2;
    background: linear-gradient(135deg, #02367d 0%, #004d99 100%);
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: white;
    position: relative;
    overflow: hidden;
}

.login-left::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
}

.login-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    padding: 40px;
}

.login-form-card {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-main);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
}

.login-title {
    font-family: 'Fraunces', serif;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.login-subtitle {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 15px;
}

/* Match client app login on mobile */
@media (max-width: 480px) {
    .login-screen {
        flex-direction: column;
    }

    .login-left {
        flex: none;
        padding: 30px;
        min-height: 240px;
        display: flex;
    }

    .login-brand {
        margin-bottom: 30px;
    }

    .login-left-title {
        font-size: 24px;
    }

    .login-left-footer {
        display: none;
    }

    .login-right {
        padding: 30px 24px;
    }

    .login-form-card {
        padding: 28px 20px;
        border-radius: 20px;
    }
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.login-left-title {
    font-family: 'Fraunces', serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.login-left-subtitle {
    font-size: 18px;
    opacity: 0.9;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.login-left-footer {
    font-size: 14px;
    opacity: 0.6;
    position: relative;
    z-index: 1;
}

/* Dashboard Layout */
.dashboard-layout {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.header {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    padding: 24px 24px 20px;
    border-bottom: 1px solid var(--border-color);
}

.welcome-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.welcome-text {
    font-family: 'Fraunces', serif;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.account-no {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.settings-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 18px;
    color: var(--text-primary);
}

.settings-icon:hover {
    background: var(--bg-input);
    transform: rotate(15deg) scale(1.05);
}

.settings-icon:active {
    transform: scale(0.95);
}

.balance-card {
    background: var(--primary-gradient);
    border-radius: var(--radius-md);
    padding: 30px;
    color: white;
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.3);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.balance-card::after {
    content: '';
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.balance-label {
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.balance-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.balance-amount {
    font-family: 'Fraunces', serif;
    font-size: 38px;
    font-weight: 700;
    letter-spacing: -1px;
}

.refresh-btn {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--bg-input);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}

.refresh-btn:hover {
    background: var(--bg-elevated);
    transform: rotate(180deg);
}

.content-area {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.section-title {
    font-family: 'Fraunces', serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.action-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.action-card:hover {
    transform: translateY(-8px);
    background: var(--bg-input);
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.action-card:active {
    transform: scale(0.95);
}

.action-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
    color: white;
}

.action-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.action-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Transaction Flow Screens */
.flow-screen {
    padding: 24px;
}

.flow-header {
    display: flex;
    align-items: center;
    margin-bottom: 32px;
}

.back-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-right: 16px;
    transition: all 0.2s;
}

.back-btn:active {
    transform: scale(0.95);
}

.flow-title {
    font-family: 'Fraunces', serif;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.flow-step {
    display: none;
    animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.flow-step.active {
    display: block;
}

.method-selector {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.method-option {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 20px;
}

.method-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.method-option:nth-child(1) .method-icon-wrapper {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.method-option:nth-child(2) .method-icon-wrapper {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.method-option:nth-child(3) .method-icon-wrapper {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.method-name {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 16px;
}

.method-description {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.method-option:hover {
    border-color: var(--primary);
    background: var(--bg-input);
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.method-option:active {
    transform: scale(0.98);
}

.method-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
    color: white;
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.2);
}

.method-details {
    flex: 1;
}

.method-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.method-description {
    font-size: 13px;
    color: var(--text-secondary);
}

.form-section {
    margin-bottom: 24px;
}

.primary-btn {
    width: 100%;
    padding: 18px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
    margin-top: 16px;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.4);
}

.primary-btn:active {
    transform: scale(0.96);
}

.secondary-btn {
    width: 100%;
    padding: 16px;
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 12px;
}

.secondary-btn:active {
    transform: scale(0.98);
}

/* Success State */
.success-state {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.3);
    animation: successPop 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes successPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-title {
    font-family: 'Fraunces', serif;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.success-message {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.5;
}

/* OTP Input */
.otp-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 32px 0;
}

.otp-input {
    width: 56px;
    height: 64px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    outline: none;
    transition: all 0.2s;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: 'Fraunces', serif;
}

.otp-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

/* Settings Screen */
.settings-list {
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.settings-item {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.settings-item:last-child {
    border-bottom: none;
}

.settings-item:active {
    background: var(--bg-primary);
}

.settings-item-content {
    flex: 1;
}

.settings-item-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.settings-item-desc {
    font-size: 13px;
    color: var(--text-secondary);
}

.settings-item-icon {
    color: var(--text-tertiary);
    font-size: 18px;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 51px;
    height: 31px;
    cursor: pointer;
}

.toggle-switch input {
    display: none;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    border-radius: 34px;
    transition: all 0.3s;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 23px;
    width: 23px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    border-radius: 50%;
    transition: all 0.3s;
}

.toggle-switch input:checked+.toggle-slider {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.toggle-switch input:checked+.toggle-slider:before {
    transform: translateX(20px);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 75px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-bottom: 15px;
    border-top: 1px solid var(--border-color);
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-item.active {
    color: var(--primary);
}

.nav-icon {
    font-size: 20px;
    margin-bottom: 2px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-item.active .nav-icon {
    transform: translateY(-4px);
}

/* Transaction Card Modern Styles */
.txn-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    margin-bottom: 12px;
}

.txn-card:hover {
    border-color: var(--primary);
    background: var(--card-hover);
    transform: translateY(-2px);
}

.txn-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--bg-elevated);
}

.txn-icon-box.in {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.txn-icon-box.out {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.txn-details {
    flex: 1;
}

.txn-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.txn-meta {
    font-size: 12px;
    color: var(--text-secondary);
}

.txn-amount {
    font-size: 15px;
    font-weight: 700;
    text-align: right;
}

/* Approval Card Style */
.approval-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideUp 0.4s ease both;
}

.approval-card:hover {
    transform: translateY(-4px);
    background: var(--card-hover);
    border-color: var(--primary);
}

.approval-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.approval-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
}

.approval-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.info-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-tertiary);
    margin-bottom: 4px;
}

.info-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.approval-actions {
    display: flex;
    gap: 12px;
}

.btn-approve {
    flex: 1;
    background: var(--success);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-reject {
    flex: 1;
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 12px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.primary-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.secondary-btn {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    border-radius: 99px;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

.nav-icon {
    font-size: 24px;
    transition: transform 0.2s;
}

.nav-item:active .nav-icon {
    transform: scale(0.9);
}

/* Additional Theme-Aware Classes */
.login-feature-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    animation: floatUp 0.5s ease both;
}

.login-feature-icon {
    width: 38px;
    height: 38px;
    background: var(--bg-elevated);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    color: var(--primary);
}

.qr-id-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
}

.app-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-glow);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 6px 14px;
    margin-bottom: 20px;
}

.nav-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    z-index: 1000000;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: fadeIn 0.3s;
}

.modal.active {
    display: flex;
}

#login-otp-modal {
    z-index: 1000001;
}

.modal-content {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 32px;
    max-width: 340px;
    width: 100%;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-title {
    font-family: 'Fraunces', serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
    text-align: center;
}

/* Scrollbar */
.content-area::-webkit-scrollbar {
    width: 4px;
}

.content-area::-webkit-scrollbar-track {
    background: transparent;
}

.content-area::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

/* NFC Animation */
.nfc-animation {
    text-align: center;
    padding: 60px 20px;
}

.nfc-icon {
    font-size: 80px;
    margin-bottom: 24px;
    animation: nfcPulse 2s infinite;
}

@keyframes nfcPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.nfc-text {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.nfc-subtext {
    color: var(--text-secondary);
    font-size: 14px;
}

/* 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: 1000005;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: white;
}

.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;
}

/* Login Screen Redesign */
#login-screen.auth-screen {
    padding: 0;
    display: none;
    flex-direction: row;
    background: var(--bg-primary);
    height: 100vh;
    width: 100vw;
}

#login-screen.auth-screen.active {
    display: flex;
}

.login-left {
    flex: 1.2;
    background: #004d99;
    background: linear-gradient(135deg, #02367d 0%, #004d99 100%);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: white;
    position: relative;
    overflow: hidden;
    text-align: left;
}

.login-left::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
    border-radius: 50%;
}

.login-left-content {
    position: relative;
    z-index: 1;
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 60px;
    justify-content: flex-start;
}

.login-brand-icon {
    font-size: 28px;
}

.login-left-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

.login-left-subtitle {
    font-size: 15px;
    opacity: 0.9;
}

.login-left-footer {
    font-size: 11px;
    opacity: 0.7;
    position: relative;
    z-index: 1;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-8px);
    }

    40% {
        transform: translateX(8px);
    }

    60% {
        transform: translateX(-6px);
    }

    80% {
        transform: translateX(6px);
    }
}

@keyframes floatUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-right {
    flex: 1;
    background: var(--bg-input);
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--text-primary);
}

.login-form-container {
    width: 100%;
}

.login-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.login-subtitle {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 13px;
}

.input-label {
    display: block;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: none;
    letter-spacing: normal;
}

.input-field {
    width: 100%;
    padding: 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 15px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.input-field:focus {
    border-color: var(--primary);
    background: var(--bg-input);
    box-shadow: 0 0 0 4px rgba(0, 108, 229, 0.1);
}

#login-screen .auth-btn {
    width: 100%;
    border-radius: 12px;
    padding: 16px;
    background: var(--primary);
    margin-top: 10px;
    font-size: 15px;
    box-shadow: none;
}

#login-screen .auth-btn:active {
    transform: scale(0.98);
}

/* (removed) duplicate mobile login rules for unused #login-screen.auth-screen */
/* 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: var(--text-primary);
    margin-bottom: 12px;
}

.session-expiry-text {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 32px;
}

.session-expiry-btn {
    background: #2563eb;
    color: white;
    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);
}
