@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Elegant Color Tokens */
    --bg-page: #f1f5f9;
    --bg-surface: #ffffff;
    --bg-surface-elevated: #ffffff;
    --bg-surface-subtle: #f8fafc;
    --border-color: rgba(226, 232, 240, 0.85);
    --border-focus: #3b82f6;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-inverse: #ffffff;
    
    /* Institutional Gradients */
    --brand-primary: #1e3a8a;
    --brand-secondary: #2563eb;
    --brand-accent: #3b82f6;
    --brand-gradient: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #2563eb 100%);
    --brand-glow: rgba(37, 99, 235, 0.25);

    /* Theme Accents for Apps */
    --sae-gradient: linear-gradient(135deg, #1e3a8a 0%, #2563eb 60%, #38bdf8 100%);
    --sae-glow: rgba(37, 99, 235, 0.35);
    
    --cuti-gradient: linear-gradient(135deg, #065f46 0%, #059669 60%, #34d399 100%);
    --cuti-glow: rgba(5, 150, 105, 0.35);

    --adms-gradient: linear-gradient(135deg, #4c1d95 0%, #6d28d9 60%, #a78bfa 100%);
    --adms-glow: rgba(109, 40, 217, 0.35);

    --success-bg: #ecfdf5;
    --success-border: #a7f3d0;
    --success-text: #065f46;
    --success-accent: #10b981;

    --danger-bg: #fef2f2;
    --danger-border: #fecaca;
    --danger-text: #991b1b;
    --danger-accent: #ef4444;

    --warning-bg: #fffbeb;
    --warning-border: #fde68a;
    --warning-text: #92400e;

    /* Shadow System */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 12px 24px -4px rgba(15, 23, 42, 0.09), 0 6px 12px -4px rgba(15, 23, 42, 0.04);
    --shadow-xl: 0 24px 38px -8px rgba(15, 23, 42, 0.12), 0 10px 18px -6px rgba(15, 23, 42, 0.06);
    --shadow-glow: 0 0 35px rgba(37, 99, 235, 0.2);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-page: #080f1e;
        --bg-surface: #0e182e;
        --bg-surface-elevated: #142240;
        --bg-surface-subtle: #13203c;
        --border-color: rgba(51, 65, 85, 0.6);
        --border-focus: #60a5fa;
        --text-primary: #f8fafc;
        --text-secondary: #cbd5e1;
        --text-muted: #94a3b8;
        
        --brand-primary: #2563eb;
        --brand-secondary: #3b82f6;
        --brand-accent: #60a5fa;
        --brand-gradient: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%);
        --brand-glow: rgba(59, 130, 246, 0.4);

        --success-bg: rgba(6, 95, 70, 0.25);
        --success-border: #065f46;
        --success-text: #6ee7b7;

        --danger-bg: rgba(153, 27, 27, 0.25);
        --danger-border: #991b1b;
        --danger-text: #fca5a5;

        --warning-bg: rgba(146, 64, 14, 0.25);
        --warning-border: #92400e;
        --warning-text: #fde68a;

        --shadow-lg: 0 12px 24px -4px rgba(0, 0, 0, 0.45);
        --shadow-xl: 0 24px 38px -8px rgba(0, 0, 0, 0.6);
    }
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-page);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ELEGANT MESH AMBIENT BACKGROUND */
.ambient-background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: 
        radial-gradient(circle at 10% 15%, rgba(37, 99, 235, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 90% 20%, rgba(13, 148, 136, 0.10) 0%, transparent 45%),
        radial-gradient(circle at 50% 85%, rgba(109, 40, 217, 0.09) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(37, 99, 235, 0.08) 0%, transparent 40%);
}

.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: orbFloat 14s ease-in-out infinite alternate;
}

.ambient-orb-1 {
    width: 420px;
    height: 420px;
    top: -100px;
    left: -100px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.28) 0%, rgba(59, 130, 246, 0) 70%);
}

.ambient-orb-2 {
    width: 460px;
    height: 460px;
    top: 30%;
    right: -120px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.20) 0%, rgba(13, 148, 136, 0) 70%);
    animation-delay: -5s;
}

.ambient-orb-3 {
    width: 380px;
    height: 380px;
    bottom: -80px;
    left: 20%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.18) 0%, rgba(139, 92, 246, 0) 70%);
    animation-delay: -9s;
}

@keyframes orbFloat {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, 40px) scale(1.08); }
    100% { transform: translate(-25px, -20px) scale(0.95); }
}

/* LAYOUT CONTAINER */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.wrap {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* TOP NAVBAR */
header.top-header {
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 50;
    transition: all 0.3s ease;
}

@media (prefers-color-scheme: dark) {
    header.top-header {
        background: rgba(14, 24, 46, 0.85);
    }
}

.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 74px;
    padding: 10px 0;
    gap: 16px;
    flex-wrap: wrap;
}

.brand-identity {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
}

.brand-logo-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-identity:hover .brand-logo-frame {
    transform: scale(1.05);
}

.brand-logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
}

.brand-text-block {
    display: flex;
    flex-direction: column;
}

.brand-title-main {
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.brand-subtitle-gov {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* USER STATUS PILL IN NAVBAR */
.user-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.88rem;
    box-shadow: var(--shadow-sm);
}

.user-avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--brand-gradient);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.82rem;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.35);
}

/* MAIN CONTENT */
main.main-content {
    flex: 1;
    padding: 44px 0 64px;
}

/* AUTH PAGE SINGLE SCREEN (NO SCROLLDOWN) */
body.auth-page {
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
}

body.auth-page .app-container {
    height: 100vh;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 16px 20px;
    box-sizing: border-box;
    overflow: hidden;
}

body.auth-page main.main-content {
    flex: 0 1 auto;
    padding: 0;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

body.auth-page main.main-content .wrap {
    padding: 0;
    max-width: 100%;
    width: 100%;
}

@media (max-height: 620px) {
    body.auth-page {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
    }
    body.auth-page .app-container {
        height: auto;
        min-height: 100vh;
        padding: 24px 16px;
        overflow: visible;
    }
}


/* FROSTED GLASS CARD SYSTEM */
.glass-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: var(--radius-xl);
    padding: 36px 32px;
    box-shadow: 
        0 20px 40px -15px rgba(15, 23, 42, 0.12),
        0 0 0 1px rgba(226, 232, 240, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

@media (prefers-color-scheme: dark) {
    .glass-card {
        background: rgba(14, 24, 46, 0.88);
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    }
}

.narrow-container {
    max-width: 480px;
    margin: 0 auto;
}

/* TYPOGRAPHY */
h1.page-title {
    font-size: 1.68rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.025em;
    margin-bottom: 6px;
    line-height: 1.3;
}

p.page-subtitle {
    color: var(--text-secondary);
    font-size: 0.96rem;
    margin-bottom: 24px;
    line-height: 1.55;
}

/* BADGES */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 9999px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.badge-brand {
    background: rgba(37, 99, 235, 0.1);
    color: var(--brand-secondary);
    border: 1px solid rgba(37, 99, 235, 0.25);
}

.badge-success {
    background: var(--success-bg);
    color: var(--success-text);
    border: 1px solid var(--success-border);
}

.badge-danger {
    background: var(--danger-bg);
    color: var(--danger-text);
    border: 1px solid var(--danger-border);
}

.badge-muted {
    background: var(--bg-surface-subtle);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

/* PULSING STATUS DOT */
.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success-accent);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* FORM ELEMENTS */
.form-group {
    margin-bottom: 20px;
}

label.form-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-lead {
    position: absolute;
    left: 15px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    pointer-events: none;
}

.input-icon-lead svg {
    width: 20px;
    height: 20px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    font-size: 0.98rem;
    font-family: inherit;
    background: var(--bg-surface-subtle);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.input-with-icon .form-control {
    padding-left: 46px;
}

.form-control:focus {
    outline: none;
    background: var(--bg-surface);
    border-color: var(--border-focus);
    box-shadow: 0 0 0 4px var(--brand-glow);
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.password-toggle-btn:hover {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.05);
}

.password-toggle-btn svg {
    width: 20px;
    height: 20px;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.98rem;
    padding: 14px 24px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--brand-gradient);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28);
}

.btn-primary:hover:not([disabled]) {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.38);
    filter: brightness(1.05);
}

.btn-primary:active:not([disabled]) {
    transform: translateY(0);
}

.btn-block {
    width: 100%;
}

.btn-ghost {
    background: var(--bg-surface);
    border: 1.5px solid var(--border-color);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
    background: var(--bg-surface-subtle);
    border-color: var(--text-muted);
    transform: translateY(-1px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.86rem;
    border-radius: var(--radius-sm);
}

.btn-danger {
    background: var(--danger-accent);
    color: #ffffff;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ALERT MESSAGES */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    font-size: 0.92rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.alert-danger {
    background: var(--danger-bg);
    border: 1px solid var(--danger-border);
    color: var(--danger-text);
}

.alert-success {
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    color: var(--success-text);
}

.alert-warning {
    background: var(--warning-bg);
    border: 1px solid var(--warning-border);
    color: var(--warning-text);
}

.alert svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ==========================================================================
   APP LAUNCHER (ICON-CENTRIC & ANIMATED DESIGN)
   ========================================================================== */
.launcher-hero {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 36px;
}

.launcher-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 28px;
    margin: 0 0 36px;
}

.app-box-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 34px 28px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-lg);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (prefers-color-scheme: dark) {
    .app-box-card {
        background: rgba(14, 24, 46, 0.88);
        border: 1.5px solid rgba(51, 65, 85, 0.6);
    }
}

.app-box-card:hover:not(.locked) {
    transform: translateY(-8px);
    box-shadow: 0 24px 44px -8px rgba(15, 23, 42, 0.16);
    border-color: var(--border-focus);
}

/* Card Top Ribbon / Badge */
.app-card-top-tag {
    position: absolute;
    top: 16px;
    right: 18px;
}

/* ICON WRAPPER WITH ANIMATIONS */
.app-icon-display {
    width: 96px;
    height: 96px;
    margin: 6px auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.app-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 26px;
    filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.15));
    animation: iconFloat 4s ease-in-out infinite;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.4s ease;
}

/* Stagger icon float delays */
.theme-sae .app-icon-img {
    animation-delay: 0s;
}
.theme-cuti .app-icon-img {
    animation-delay: -1.3s;
}
.theme-adms .app-icon-img {
    animation-delay: -2.6s;
}

.app-box-card:hover:not(.locked) .app-icon-img {
    transform: scale(1.1) translateY(-4px);
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.22));
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* APP TITLE & IDENTITY */
.app-card-name {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.015em;
    margin-bottom: 4px;
}

.app-card-subtag {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* APP ACTION BUTTON */
.app-cta-btn {
    width: 100%;
    padding: 13px 20px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.95rem;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.theme-sae .app-cta-btn {
    background: var(--sae-gradient);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.28);
}
.theme-cuti .app-cta-btn {
    background: var(--cuti-gradient);
    box-shadow: 0 6px 16px rgba(5, 150, 105, 0.28);
}
.theme-adms .app-cta-btn {
    background: var(--adms-gradient);
    box-shadow: 0 6px 16px rgba(109, 40, 217, 0.28);
}

.app-box-card:hover:not(.locked) .app-cta-btn {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

/* LOCKED CARD STATE */
.app-box-card.locked {
    background: rgba(241, 245, 249, 0.7);
    border-color: rgba(203, 213, 225, 0.8);
    cursor: not-allowed;
    box-shadow: var(--shadow-sm);
}

@media (prefers-color-scheme: dark) {
    .app-box-card.locked {
        background: rgba(19, 32, 60, 0.6);
        border-color: rgba(51, 65, 85, 0.5);
    }
}

.app-box-card.locked .app-icon-img {
    filter: grayscale(0.9) opacity(0.5);
    animation: none;
}

.app-box-card.locked .app-cta-btn {
    background: #64748b;
    box-shadow: none;
    opacity: 0.7;
    cursor: not-allowed;
}

/* OTP 6-BOX STYLING */
.otp-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 22px 0;
}

.otp-box {
    width: 50px;
    height: 60px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-surface-subtle);
    font-size: 1.65rem;
    font-weight: 800;
    text-align: center;
    color: var(--text-primary);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.otp-box:focus {
    outline: none;
    border-color: var(--border-focus);
    background: var(--bg-surface);
    box-shadow: 0 0 0 4px var(--brand-glow);
    transform: translateY(-2px);
}

/* QR CONTAINER */
.qr-frame {
    display: flex;
    justify-content: center;
    padding: 18px;
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    margin: 16px 0;
}

.qr-frame svg {
    max-width: 190px;
    height: auto;
}

code.secret-key-box {
    display: block;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 12px;
    background: var(--bg-surface-subtle);
    border: 1.5px dashed var(--border-color);
    border-radius: var(--radius-md);
    color: var(--brand-secondary);
    text-align: center;
    word-break: break-all;
    user-select: all;
}

/* RECOVERY CODES GRID */
.recovery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 16px 0;
}

.recovery-code-item {
    font-family: ui-monospace, SFMono-Regular, monospace;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 10px;
    background: var(--bg-surface-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    text-align: center;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

/* DATA TABLE */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

table.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

table.data-table th {
    background: var(--bg-surface-subtle);
    padding: 14px 16px;
    text-align: left;
    font-weight: 700;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

table.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

table.data-table tr:last-child td {
    border-bottom: none;
}

table.data-table tr:hover td {
    background: var(--bg-surface-subtle);
}

/* FOOTER */
footer.global-footer {
    border-top: 1px solid var(--border-color);
    background: var(--bg-surface);
    padding: 24px 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: auto;
}

.footer-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    font-weight: 600;
}

/* UTILITY HELPERS */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* ANIMATIONS */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@media (max-width: 640px) {
    .wrap { padding: 0 16px; }
    .glass-card { padding: 26px 20px; border-radius: var(--radius-lg); }
    .otp-box { width: 42px; height: 52px; font-size: 1.4rem; }
    .recovery-grid { grid-template-columns: 1fr; }
    .brand-title-main { font-size: 0.95rem; }
    .brand-subtitle-gov { font-size: 0.7rem; }
    .brand-logo-frame { width: 42px; height: 42px; }
    .brand-logo-img { height: 32px; }
}
