/* ============================================================
   INNOV8 BANK – Educational Demo CSS
   Modern design with animations
   ============================================================ */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --brand-red: #e30613;
    --brand-red-dark: #b8040f;
    --brand-dark: #1a1a2e;
    --brand-navy: #0d1b3e;
    --brand-blue: #003d82;
    --brand-blue-light: #0055b3;
    --accent-gold: #f4a620;
    --text-primary: #1a1a2e;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --border: #e5e7eb;
    --bg-page: #f3f4f8;
    --bg-card: #ffffff;
    --bg-input: #f9fafb;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
    --shadow-md: 0 4px 16px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
    --shadow-lg: 0 20px 60px rgba(0,0,0,.18), 0 8px 24px rgba(0,0,0,.10);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    background: var(--bg-page);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}

/* ── Animated background gradient ── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #0d1b3e 0%, #003d82 35%, #1a1a2e 70%, #0a0f1e 100%);
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    top: -40%;
    left: -20%;
    width: 80vw;
    height: 80vw;
    background: radial-gradient(circle, rgba(0, 85, 179, 0.18) 0%, transparent 70%);
    animation: floatBg 12s ease-in-out infinite alternate;
    z-index: -1;
    pointer-events: none;
}

@keyframes floatBg {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(8vw, 5vh) scale(1.12); }
}

/* ============================================================
   TOP NAV
   ============================================================ */
.topnav {
    background: rgba(13, 27, 62, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 0 24px;
    height: 56px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}

.topnav-inner {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topnav-logo { display: flex; align-items: center; }

.nav-logo-img {
    height: 28px;
    width: auto;
    object-fit: contain;
}

.topnav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topnav-link {
    color: rgba(255,255,255,0.80);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color var(--transition);
}

.topnav-link:hover { color: #fff; }

.topnav-divider {
    color: rgba(255,255,255,0.25);
    font-size: 12px;
}

/* ============================================================
   NOTICE BANNER
   ============================================================ */
.notice-banner {
    background: linear-gradient(90deg, #7a4f00, #a06500, #7a4f00);
    background-size: 200% 100%;
    animation: shimmerBanner 4s linear infinite;
    border-bottom: 1px solid rgba(244,166,32,0.3);
}

@keyframes shimmerBanner {
    0%   { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.notice-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 24px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #fde68a;
    line-height: 1.5;
}

.notice-icon {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--accent-gold);
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

/* ============================================================
   LOGIN CARD
   ============================================================ */
.login-card {
    display: grid;
    grid-template-columns: 1fr 420px;
    max-width: 980px;
    width: 100%;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: cardIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    animation-delay: 0.1s;
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(32px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

/* ── Left panel ── */
.card-left {
    background: linear-gradient(160deg, #0d1b3e 0%, #003d82 60%, #0055b3 100%);
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
}

.card-left::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 6s ease-in-out infinite alternate;
}

@keyframes pulse {
    0%   { transform: scale(1);    opacity: 0.5; }
    100% { transform: scale(1.3);  opacity: 1;   }
}

.card-left-content { position: relative; z-index: 1; }

.qr-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 28px;
}

.qr-steps {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 28px;
}

.qr-steps li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    line-height: 1.5;
    opacity: 0;
    animation: fadeInLeft 0.5s ease forwards;
}

.qr-steps li:nth-child(1) { animation-delay: 0.5s; }
.qr-steps li:nth-child(2) { animation-delay: 0.65s; }
.qr-steps li:nth-child(3) { animation-delay: 0.8s; }

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-16px); }
    to   { opacity: 1; transform: translateX(0); }
}

.qr-steps li strong { color: #fff; }

.step-num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin-top: 1px;
}

.video-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--brand-red);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    margin-bottom: 32px;
}

.video-btn:hover {
    background: var(--brand-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(227,6,19,0.4);
}

/* Phone mockup */
.phone-mockup {
    perspective: 800px;
    animation: phoneFloat 5s ease-in-out infinite alternate;
}

@keyframes phoneFloat {
    0%   { transform: rotateX(2deg) rotateY(-4deg) translateY(0); }
    100% { transform: rotateX(-2deg) rotateY(4deg) translateY(-10px); }
}

.phone-screen {
    background: #0d1b3e;
    border-radius: 16px;
    padding: 14px;
    border: 2px solid rgba(255,255,255,0.12);
    box-shadow: 0 16px 40px rgba(0,0,0,0.4);
    position: relative;
    overflow: hidden;
}

.phone-header-bar {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    gap: 8px;
}

.phone-dots { display: flex; gap: 4px; }
.phone-dots span {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
}

.phone-title {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
}

.phone-balance {
    background: rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 10px;
}

.phone-balance-label {
    font-size: 10px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 3px;
}

.phone-balance-amount {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.phone-transactions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 10px;
}

.phone-tx {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.04);
    border-radius: 6px;
    padding: 5px 8px;
}

.tx-neg { color: #f87171; font-weight: 600; }
.tx-pos { color: #34d399; font-weight: 600; }

.phone-qr-overlay {
    background: rgba(0, 85, 179, 0.7);
    backdrop-filter: blur(6px);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.15);
}

.qr-icon {
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.12);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
}

.phone-qr-overlay p {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 2px;
}

.phone-qr-overlay small {
    font-size: 10px;
    color: rgba(255,255,255,0.6);
}

/* ── Right panel ── */
.card-right {
    background: #fff;
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border);
}

.login-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
}

.tab-btn {
    flex: 1;
    padding: 18px 12px;
    background: none;
    border: none;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color var(--transition), background var(--transition);
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    position: relative;
}

.tab-btn:hover { color: var(--text-primary); background: var(--bg-input); }

.tab-btn.active {
    color: var(--brand-blue);
    border-bottom-color: var(--brand-blue);
    font-weight: 600;
}

/* ── Form area ── */
.login-form-area {
    padding: 36px 40px 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex: 1;
}

.qr-suggestion {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fef9ec;
    border: 1px solid #f9d770;
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: 13px;
    color: #7c5c00;
    line-height: 1.5;
}

.qr-suggestion svg { flex-shrink: 0; margin-top: 1px; color: var(--accent-gold); }
.qr-suggestion a { color: var(--brand-blue); font-weight: 600; text-decoration: none; }
.qr-suggestion a:hover { text-decoration: underline; }

/* Form groups */
.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    background: var(--bg-input);
    color: var(--text-primary);
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
    outline: none;
}

.form-group input:focus {
    border-color: var(--brand-blue);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 61, 130, 0.12);
}

.form-group input.has-error { border-color: var(--brand-red); }
.form-group input.has-error:focus { box-shadow: 0 0 0 3px rgba(227,6,19,0.12); }

.field-error {
    font-size: 12px;
    color: var(--brand-red);
    display: none;
    align-items: center;
    gap: 4px;
}

.field-error.visible { display: flex; }

/* Password input wrapper */
.password-wrapper { position: relative; }

.password-wrapper input { padding-right: 44px; }

.toggle-pass {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color var(--transition);
}

.toggle-pass:hover { color: var(--text-primary); }

/* Continue button */
.continue-btn {
    width: 100%;
    margin-top: 20px;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-blue) 100%);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.continue-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.08), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}

.continue-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,61,130,0.35); }
.continue-btn:hover::after { opacity: 1; }
.continue-btn:active { transform: translateY(0); }

/* Loading state */
.continue-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.continue-btn.loading span::after {
    content: '...';
    animation: dots 1s steps(3, end) infinite;
}

@keyframes dots {
    0%, 20%  { content: '.'; }
    40%      { content: '..'; }
    60%,100% { content: '...'; }
}

/* Help link */
.help-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--text-muted);
}

.help-link a {
    color: var(--text-secondary);
    font-size: 13px;
    text-decoration: none;
    transition: color var(--transition);
}

.help-link a:hover { color: var(--brand-blue); text-decoration: underline; }

/* ============================================================
   2FA MODAL
   ============================================================ */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 500;
    align-items: center;
    justify-content: center;
}

.modal.open { display: flex; }

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 40, 0.72);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-content {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 48px 40px 40px;
    width: 90%;
    max-width: 420px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: scale(0.88) translateY(20px); }
    to   { opacity: 1; transform: scale(1)    translateY(0); }
}

.modal-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--brand-navy), var(--brand-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 6px 20px rgba(0,61,130,0.3);
}

.modal-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.modal-content > p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 28px;
}

/* 6-digit code inputs */
.code-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 28px;
}

.code-digit {
    width: 48px;
    height: 56px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    background: var(--bg-input);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
    caret-color: var(--brand-blue);
}

.code-digit:focus {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(0,61,130,0.12);
    background: #fff;
}

.modal-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--brand-navy), var(--brand-blue));
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity var(--transition), transform var(--transition);
    margin-bottom: 16px;
}

.modal-btn:hover { opacity: 0.9; transform: translateY(-1px); }

.modal-resend {
    font-size: 13px;
    color: var(--text-muted);
}

.modal-resend a {
    color: var(--brand-blue);
    font-weight: 600;
    text-decoration: none;
}

.modal-resend a:hover { text-decoration: underline; }

/* ============================================================
   DASHBOARD
   ============================================================ */
.dashboard-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #1c1f2e;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

/* ── Top navbar ── */
.dashboard-topnav {
    background: #12152a;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 0 20px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    gap: 12px;
}

.dashboard-topnav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.dashboard-topnav-logo img {
    height: 24px;
    width: auto;
}

.dash-brand {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Action buttons row in navbar */
.dashboard-topnav-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
    justify-content: center;
}

.dash-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.65);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    transition: background var(--transition), color var(--transition);
    font-family: inherit;
    white-space: nowrap;
    position: relative;
}

.dash-action-btn:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.dash-badge {
    background: var(--brand-red);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    margin-left: 2px;
}

/* Right side of navbar */
.dashboard-topnav-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.dash-user-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    padding: 4px 12px 4px 4px;
    cursor: pointer;
    transition: background var(--transition);
}

.dash-user-pill:hover { background: rgba(255,255,255,0.13); }

.dash-user-avatar {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #7c3aed, #2563eb);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
}

.dash-user-name {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dash-logout-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.8);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
    font-family: inherit;
    white-space: nowrap;
}

.dash-logout-btn:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

/* ── Three-column layout ── */
.dash-layout {
    display: grid;
    grid-template-columns: 190px 1fr 280px;
    flex: 1;
    min-height: 0;
}

/* ── Sidebar ── */
.dash-sidebar {
    background: #12152a;
    border-right: 1px solid rgba(255,255,255,0.06);
    padding: 20px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dash-pay-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    background: linear-gradient(135deg, #d4a017, #f0c040);
    color: #1a1000;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 12px;
    transition: opacity var(--transition), transform var(--transition);
    font-family: inherit;
}

.dash-pay-btn:hover { opacity: 0.92; transform: translateY(-1px); }

.dash-sidenav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dash-navitem {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: background var(--transition), color var(--transition);
}

.dash-navitem:hover {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.9);
}

.dash-navitem.active {
    background: var(--brand-red);
    color: #fff;
}

.dash-navitem svg { flex-shrink: 0; }

/* ── Main content ── */
.dash-main {
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    background: #1c1f2e;
}

.dash-page-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

/* Banner */
.dash-banner {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    transition: background var(--transition);
}

.dash-banner:hover { background: rgba(255,255,255,0.08); }
.dash-banner strong { color: #fff; }

/* Accounts row */
.dash-accounts-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.dash-account-card {
    background: #252840;
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.07);
    animation: cardIn 0.4s ease both;
}

.dash-account-secondary {
    animation-delay: 0.1s;
}

.dash-account-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 8px;
}

.dash-account-type {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-gold);
    margin-bottom: 3px;
}

.dash-account-num {
    font-size: 12px;
    color: rgba(255,255,255,0.45);
}

.dash-balance-main {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    text-align: right;
    white-space: nowrap;
}

.dash-balance-sub {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    text-align: right;
    margin-top: 2px;
}

/* Account action buttons */
.dash-account-actions {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.dash-acct-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 16px;
    color: rgba(255,255,255,0.75);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
    font-family: inherit;
    white-space: nowrap;
}

.dash-acct-btn:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

.dash-acct-more {
    padding: 6px 10px;
}

/* Transaction list inside account card */
.dash-tx-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.dash-tx-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.dash-tx-item:last-child { border-bottom: none; }

.dash-tx-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dash-tx-icon.out {
    background: rgba(239,68,68,0.12);
    color: #f87171;
}

.dash-tx-icon.in {
    background: rgba(34,197,94,0.12);
    color: #4ade80;
}

.dash-tx-info { flex: 1; min-width: 0; }

.dash-tx-name {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-tx-date {
    font-size: 11px;
    color: rgba(255,255,255,0.35);
}

.dash-tx-amount {
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.dash-tx-amount.neg { color: #f87171; }
.dash-tx-amount.pos { color: #4ade80; }

.dash-tx-collapse {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 8px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.3);
    cursor: pointer;
    margin-top: 4px;
}

/* Account detail rows (spoření) */
.dash-account-detail-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 12px;
    margin-bottom: 4px;
}

.dash-detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: rgba(255,255,255,0.55);
}

.dash-detail-row span:last-child {
    color: rgba(255,255,255,0.85);
    font-weight: 500;
}

/* Payment card */
.payment-card {
    background: #252840;
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid rgba(255,255,255,0.07);
    animation: cardIn 0.4s ease 0.2s both;
}

.payment-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.payment-card-title svg { color: rgba(255,255,255,0.5); }

.payment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 16px;
}

.payment-grid .full { grid-column: 1 / -1; }

.payment-form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.payment-form-group label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.payment-form-group input {
    padding: 10px 12px;
    border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    background: rgba(255,255,255,0.05);
    color: #fff;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.payment-form-group input::placeholder { color: rgba(255,255,255,0.25); }

.payment-form-group input:focus {
    border-color: rgba(255,255,255,0.3);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.08);
}

.payment-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    background: linear-gradient(135deg, #1a7a3c, #28a74f);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
    font-family: inherit;
}

.payment-btn:hover {
    opacity: 0.92;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40,167,79,0.35);
}

/* Income/expense section */
.dash-income-section { display: flex; flex-direction: column; gap: 10px; }

.dash-section-title {
    font-size: 16px;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
}

.dash-income-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.dash-income-card {
    background: #252840;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--radius-md);
    padding: 16px 18px;
}

.dash-income-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    margin-bottom: 8px;
}

.dash-income-amount {
    font-size: 18px;
    font-weight: 700;
}

.dash-income-amount.pos { color: #4ade80; }
.dash-income-amount.neg { color: #f87171; }

/* ── Right promo sidebar ── */
.dash-promo {
    background: #12152a;
    border-left: 1px solid rgba(255,255,255,0.06);
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
}

.dash-promo-card {
    background: #1c1f2e;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.dash-promo-flat {
    align-items: center;
    cursor: pointer;
    transition: background var(--transition);
}
.dash-promo-flat:hover { background: rgba(255,255,255,0.04); }

.dash-promo-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dash-promo-body { flex: 1; min-width: 0; }

.dash-promo-title {
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    line-height: 1.5;
    margin-bottom: 4px;
}

.dash-promo-title strong { color: #fff; }

.dash-promo-sub {
    font-size: 11px;
    color: rgba(255,255,255,0.45);
    line-height: 1.4;
    margin-bottom: 8px;
}

.dash-promo-btn {
    padding: 5px 12px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    color: rgba(255,255,255,0.75);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
    font-family: inherit;
}

.dash-promo-btn:hover { background: rgba(255,255,255,0.14); color: #fff; }

/* ============================================================
   SITE FOOTER
   ============================================================ */
.site-footer {
    background: rgba(13, 27, 62, 0.97);
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 28px 24px;
    margin-top: auto;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.footer-logo-area { flex-shrink: 0; }

.footer-logo {
    height: 28px;
    width: auto;
    object-fit: contain;
    opacity: 0.85;
}

.footer-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-edu {
    font-size: 13px;
    color: rgba(255,255,255,0.65);
    line-height: 1.6;
}

.footer-edu strong { color: rgba(255,255,255,0.9); }

.footer-edu a {
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 500;
    margin-left: 6px;
}

.footer-edu a:hover { text-decoration: underline; }

.footer-copy {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
}

.footer-copy a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-weight: 500;
}

.footer-copy a:hover { color: #fff; text-decoration: underline; }

/* Dashboard footer variant */
.dash-footer {
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 20px 24px;
}

.dash-footer .footer-inner {
    flex-direction: column;
    gap: 4px;
}

.dash-footer .footer-logo { filter: none; opacity: 1; }

.dash-footer .footer-edu {
    color: var(--text-secondary);
    font-size: 12px;
}

.dash-footer .footer-edu strong { color: var(--text-primary); }
.dash-footer .footer-edu a { color: var(--brand-blue); margin-left: 4px; }

.dash-footer .footer-copy {
    color: var(--text-muted);
    font-size: 11px;
}

.dash-footer .footer-copy a { color: var(--text-secondary); }

/* ============================================================
   LOG PAGE
   ============================================================ */
.log-page {
    min-height: 100vh;
    background: #0f1117;
    font-family: 'Inter', monospace;
    color: #e2e8f0;
    display: flex;
    flex-direction: column;
}

.log-topbar {
    background: #1a1f2e;
    border-bottom: 1px solid #2d3748;
    padding: 0 24px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.log-topbar-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #f8fafc;
}

.live-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.live-dot {
    width: 7px;
    height: 7px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse-dot 1.4s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(0.7); }
}

.log-body {
    flex: 1;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    padding: 32px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.log-stats-bar {
    background: #1a1f2e;
    border: 1px solid #2d3748;
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 13px;
}

.log-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.log-stat-label {
    color: #64748b;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.log-stat-value {
    color: #f8fafc;
    font-size: 18px;
    font-weight: 700;
    font-family: 'Inter', monospace;
}

.log-test-section {
    background: #1a1f2e;
    border: 1px solid #2d3748;
    border-radius: var(--radius-md);
    padding: 20px;
}

.log-test-title {
    font-size: 14px;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.log-test-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.log-test-grid input,
.log-test-grid textarea {
    padding: 10px 14px;
    background: #0f1117;
    border: 1px solid #2d3748;
    border-radius: var(--radius-sm);
    color: #e2e8f0;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color var(--transition);
}

.log-test-grid input:focus,
.log-test-grid textarea:focus {
    border-color: #3b82f6;
}

.log-test-grid textarea {
    grid-column: 1 / -1;
    resize: vertical;
    min-height: 60px;
}

.log-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.log-btn {
    padding: 9px 18px;
    border: 1px solid #2d3748;
    border-radius: var(--radius-sm);
    background: #1a1f2e;
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition);
    font-family: inherit;
}

.log-btn:hover { background: #2d3748; border-color: #4b5563; }

.log-btn-danger {
    color: #f87171;
    border-color: rgba(248,113,113,0.3);
}

.log-btn-danger:hover { background: rgba(248,113,113,0.08); border-color: #f87171; }

.log-btn-primary {
    background: #1e3a5f;
    border-color: #2563eb;
    color: #93c5fd;
}

.log-btn-primary:hover { background: #1d4ed8; color: #fff; border-color: #1d4ed8; }

.log-entries-container {
    background: #1a1f2e;
    border: 1px solid #2d3748;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.log-entries-header {
    padding: 12px 20px;
    border-bottom: 1px solid #2d3748;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    background: #141824;
}

.log-entry {
    padding: 10px 20px;
    border-bottom: 1px solid #1a2236;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.5;
    transition: background 0.15s;
    animation: logEntryIn 0.25s ease;
}

@keyframes logEntryIn {
    from { opacity: 0; transform: translateX(-8px); }
    to   { opacity: 1; transform: translateX(0); }
}

.log-entry:hover { background: rgba(255,255,255,0.02); }
.log-entry:last-child { border-bottom: none; }

.log-ts { color: #4b5563; font-size: 11px; margin-right: 8px; }

.log-tag {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-right: 8px;
}

.log-tag.login    { background: rgba(239,68,68,0.15);  color: #f87171; border: 1px solid rgba(239,68,68,0.25); }
.log-tag.twofa    { background: rgba(168,85,247,0.15); color: #c084fc; border: 1px solid rgba(168,85,247,0.25); }
.log-tag.payment  { background: rgba(34,197,94,0.15);  color: #4ade80; border: 1px solid rgba(34,197,94,0.25); }
.log-tag.key      { background: rgba(59,130,246,0.15); color: #60a5fa; border: 1px solid rgba(59,130,246,0.25); }
.log-tag.input    { background: rgba(251,191,36,0.15); color: #fbbf24; border: 1px solid rgba(251,191,36,0.25); }
.log-tag.test     { background: rgba(148,163,184,0.15);color: #94a3b8; border: 1px solid rgba(148,163,184,0.25); }

.log-data { color: #e2e8f0; }
.log-highlight { color: #60a5fa; }

/* ============================================================
   PASSWORD GATE (log page)
   ============================================================ */
.gate {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(135deg, #0d1b3e 0%, #003d82 40%, #1a1a2e 75%, #0a0f1e 100%);
}

.gate.gate-hidden { display: none; }

.gate-box {
    width: 100%;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    animation: modalSlideIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gate-logo {
    height: 42px;
    width: auto;
    object-fit: contain;
}

.gate-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gate-input-wrap { position: relative; }

.gate-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.4);
    pointer-events: none;
}

.gate-input {
    width: 100%;
    padding: 13px 14px 13px 42px;
    border: 1.5px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.06);
    color: #fff;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.gate-input::placeholder { color: rgba(255,255,255,0.4); }

.gate-input:focus {
    border-color: #4f9eff;
    background: rgba(255,255,255,0.1);
    box-shadow: 0 0 0 3px rgba(79,158,255,0.18);
}

.gate-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 16px;
    border: none;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-blue) 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
}

.gate-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,61,130,0.4); }
.gate-btn:active { transform: translateY(0); }

.gate-error {
    display: none;
    font-size: 13px;
    color: #f87171;
    text-align: center;
    margin-top: 2px;
}

.gate-error.visible { display: block; }

.gate-box.shake { animation: gateShake 0.4s; }

@keyframes gateShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}

/* ============================================================
   CONFIRM DIALOG + TOASTS (log page)
   ============================================================ */
.confirm-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 600;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(8, 11, 20, 0.72);
    backdrop-filter: blur(4px);
}

.confirm-overlay.open {
    display: flex;
    animation: fadeIn 0.2s ease;
}

.confirm-box {
    background: #1a1f2e;
    border: 1px solid #2d3748;
    border-radius: var(--radius-md);
    padding: 28px 26px 22px;
    width: 100%;
    max-width: 380px;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0,0,0,0.5);
    animation: modalSlideIn 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.confirm-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(248,113,113,0.12);
    border: 1px solid rgba(248,113,113,0.25);
    color: #f87171;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.confirm-title {
    font-size: 17px;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 6px;
}

.confirm-message {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.5;
    margin-bottom: 22px;
}

.confirm-actions {
    display: flex;
    gap: 10px;
}

.confirm-btn {
    flex: 1;
    padding: 11px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.confirm-btn-cancel {
    background: #232838;
    border: 1px solid #2d3748;
    color: #e2e8f0;
}

.confirm-btn-cancel:hover { background: #2d3748; border-color: #4b5563; }

.confirm-btn-danger {
    background: #dc2626;
    border: 1px solid #dc2626;
    color: #fff;
}

.confirm-btn-danger:hover { background: #b91c1c; border-color: #b91c1c; }

/* Toasts */
.toast-container {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 650;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #1a1f2e;
    border: 1px solid #2d3748;
    border-left: 3px solid #60a5fa;
    border-radius: var(--radius-sm);
    padding: 12px 18px;
    font-size: 13px;
    font-weight: 500;
    color: #e2e8f0;
    box-shadow: 0 12px 32px rgba(0,0,0,0.4);
    animation: toastIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toast.leaving { animation: toastOut 0.25s ease forwards; }

.toast svg { flex-shrink: 0; }
.toast-info svg    { color: #60a5fa; }
.toast-success     { border-left-color: #4ade80; }
.toast-success svg { color: #4ade80; }

@keyframes toastIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(12px); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ── Tablet landscape (≤1024px): drop promo column, icon-only nav actions ── */
@media (max-width: 1024px) {
    .dash-layout { grid-template-columns: 170px 1fr; }
    .dash-promo { display: none; }

    .dashboard-topnav-actions { gap: 0; }
    .dash-action-btn { padding: 8px 9px; }
    .dash-action-btn > span:not(.dash-badge) { display: none; }
}

/* ── Tablet portrait / large phones (≤768px) ── */
@media (max-width: 768px) {
    /* Login */
    .login-card { grid-template-columns: 1fr; max-width: 480px; }
    .card-left { display: none; }
    .login-form-area { padding: 28px 24px 24px; }

    /* Home top nav */
    .topnav { padding: 0 16px; }
    .topnav-right { gap: 10px; }

    /* Dashboard top nav → logo + user/logout only */
    .dashboard-topnav { padding: 0 14px; gap: 8px; }
    .dashboard-topnav-actions { display: none; }
    .dash-user-name { display: none; }

    /* Dashboard: stack columns, sidebar becomes a horizontal scroll strip */
    .dash-layout { display: flex; flex-direction: column; }
    .dash-sidebar {
        flex-direction: row;
        align-items: center;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        padding: 10px 12px;
        gap: 6px;
    }
    .dash-pay-btn {
        width: auto;
        margin-bottom: 0;
        flex-shrink: 0;
        white-space: nowrap;
        padding: 9px 16px;
    }
    .dash-sidenav { flex-direction: row; gap: 4px; }
    .dash-navitem { white-space: nowrap; padding: 8px 12px; flex-shrink: 0; }

    .dash-main { padding: 20px 16px; overflow-y: visible; }
    .dash-page-title { font-size: 21px; }
    .dash-account-card { padding: 16px; }
    .dash-accounts-row { grid-template-columns: 1fr; }
    .dash-income-row { grid-template-columns: 1fr; }
    .payment-grid { grid-template-columns: 1fr; }

    /* Footer + log page */
    .footer-inner { flex-direction: column; gap: 12px; }
    .log-topbar { padding: 0 16px; }
    .log-body { padding: 24px 16px; }
    .log-stats-bar { gap: 16px 20px; }
    .log-test-grid { grid-template-columns: 1fr; }
    .log-test-grid textarea { grid-column: 1; }
}

/* ── Small phones (≤480px) ── */
@media (max-width: 480px) {
    html { font-size: 15px; }

    .topnav { padding: 0 14px; }
    .topnav-divider,
    .topnav-right .topnav-link:last-child { display: none; }

    .notice-inner { padding: 10px 14px; gap: 8px; }

    .login-form-area { padding: 20px 16px; }
    .code-inputs { gap: 7px; }
    .code-digit { width: 40px; height: 50px; font-size: 18px; }
    .modal-content { padding: 36px 22px 28px; }

    /* Dashboard top nav: free up room */
    .dash-brand { display: none; }
    .dashboard-topnav-right { gap: 6px; }
    .dash-logout-btn { padding: 7px 10px; }

    .dash-account-header { flex-wrap: wrap; }
    .dash-balance-main { font-size: 16px; }

    /* Log controls stack full-width for easy tapping */
    .log-controls { flex-direction: column; }
    .log-btn { width: 100%; }
}
