/* ═══════════════════════════════════════════════════════════════
   VaultMaster Product Website — Design System
   Minimalist Corporate Light Theme matching Flutter AppTheme (lib/core/theme.dart)
   ═══════════════════════════════════════════════════════════════ */

/* Google Fonts — MUST be line 1 per Rule 1 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ── Design Tokens from AppTheme (lib/core/theme.dart) ────── */
:root {
    /* Canvas & Surfaces */
    --bg-primary: #FBF8FF;        /* Soft Gray canvas */
    --bg-secondary: #F5F2FB;      /* Surface Container Low */
    --bg-tertiary: #EFECF5;       /* Surface Container */
    --card-bg: #FFFFFF;           /* Pure white active surface */
    --card-hover: #FFFFFF;

    /* Text */
    --text-primary: #1B1B21;      /* onSurface */
    --text-secondary: #454652;    /* onSurfaceVariant */
    --text-muted: #767683;        /* outline */

    /* Brand Primary / Secondary */
    --accent-navy: #1A237E;       /* Navy primary anchor */
    --accent-navy-dark: #000666;  /* darkPrimary */
    --accent-slate: #4C616C;      /* Slate secondary */
    --accent-slate-light: #E4E1EA;/* Surface Container Highest */

    /* Semantic File Format Colors (constants.dart) */
    --tag-pdf: #D32F2F;
    --tag-word: #1976D2;
    --tag-sheet: #388E3C;
    --tag-media: #F57C00;
    --tag-folder: #FFA000;

    /* Semantic Feedback */
    --success: #388E3C;
    --error: #BA1A1A;

    /* Borders & Dividers */
    --border-color: #E0E4E8;      /* 1px dividerColor */
    --border-hover: #1A237E;      /* Primary accent border on focus/hover */
    --outline-variant: #C6C5D4;

    /* Typography */
    --font-stack: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 40px;
    --space-2xl: 64px;
    --space-3xl: 96px;

    /* Radii strictly matching AppTheme */
    --radius-sm: 4px;             /* Base buttons, inputs */
    --radius-lg: 8px;             /* Cards, modals, preview cards */
    --radius-full: 9999px;        /* Floating badges, avatars */
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-stack);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: var(--accent-navy);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-navy-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4 {
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--text-primary);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.125rem; margin-bottom: 0.5rem; }

p.lead {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 660px;
    line-height: 1.7;
}

/* ── Layout ───────────────────────────────────────────────── */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    padding: var(--space-3xl) 0;
}

/* ── Navbar ───────────────────────────────────────────────── */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 5%;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(251, 248, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* Brand Logo — Dual-Tone per Rule 6 */
.brand-text {
    display: inline-flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--text-primary) !important;
}

.brand-text span {
    color: var(--accent-navy) !important;
}

.brand-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-right: 12px;
    display: inline-block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
}

.nav-links li {
    display: flex;
    align-items: center;
}

.nav-links a {
    margin-left: 2rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-navy);
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ── Buttons (AppTheme elevatedButtonTheme & outlinedButtonTheme) ── */
.btn {
    display: inline-block;
    padding: 0.85rem 1.75rem;
    font-family: var(--font-stack);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    transition: all 0.25s ease;
    border: 1px solid transparent;
    cursor: pointer;
    text-align: center;
    letter-spacing: 0.02em;
}

.btn-primary {
    background-color: var(--accent-navy);
    color: #FFFFFF !important;
    box-shadow: 0 4px 14px rgba(26, 35, 126, 0.18);
}

.btn-primary:hover {
    background-color: var(--accent-navy-dark);
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 35, 126, 0.28);
}

.btn-gold {
    background-color: var(--accent-navy);
    color: #FFFFFF !important;
    box-shadow: 0 4px 14px rgba(26, 35, 126, 0.18);
}

.btn-gold:hover {
    background-color: var(--accent-navy-dark);
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 35, 126, 0.28);
}

.btn-outline {
    border-color: var(--outline-variant);
    color: var(--accent-slate) !important;
    background: #FFFFFF;
}

.btn-outline:hover {
    border-color: var(--accent-navy);
    color: var(--accent-navy) !important;
    background: var(--bg-secondary);
}

/* ── Badge / Pill ─────────────────────────────────────────── */
.badge {
    display: inline-block;
    color: var(--accent-navy);
    border: 1px solid var(--outline-variant);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    background: var(--bg-secondary);
}

/* ── Cards (AppTheme surface + 1px border + radiusLg) ─────── */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 2px 8px rgba(27, 27, 33, 0.04);
}

.card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(26, 35, 126, 0.08);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: var(--space-md);
    display: block;
}

.card-link {
    display: inline-block;
    margin-top: var(--space-md);
    color: var(--accent-navy);
    font-weight: 600;
    font-size: 0.9rem;
}

.card-link:hover {
    color: var(--accent-navy-dark);
}

/* ── Grid Layouts ─────────────────────────────────────────── */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* ── Hero Section ─────────────────────────────────────────── */
.hero {
    text-align: center;
    padding-top: 6rem;
    padding-bottom: 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(26, 35, 126, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.hero h1 {
    position: relative;
    z-index: 1;
}

.hero .lead {
    margin: 1.5rem auto;
    position: relative;
    z-index: 1;
}

.hero-cta {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.hero-image {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.hero-image img {
    max-width: 340px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: 0 24px 64px rgba(26, 35, 126, 0.12);
}

/* ── Comparison Table ─────────────────────────────────────── */
.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 3rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #FFFFFF;
}

.comparison-table th,
.comparison-table td {
    padding: 1.25rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    background-color: var(--bg-secondary);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

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

.vm-column {
    background-color: var(--bg-secondary);
    border-left: 2px solid var(--accent-navy);
}

.vm-column-header {
    background-color: #EAE7EF !important;
    border-left: 2px solid var(--accent-navy);
    color: var(--accent-navy) !important;
}

.check-gold { color: var(--accent-navy); font-weight: 700; }
.check-green { color: var(--success); font-weight: 700; }
.cross-red { color: var(--error); font-weight: 700; }
.text-muted { color: var(--text-muted); }

/* ── Docs Layout ──────────────────────────────────────────── */
.docs-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
    padding: 3rem 5%;
    min-height: 80vh;
}

.sidebar {
    position: sticky;
    top: 90px;
    align-self: start;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin-bottom: 0.6rem;
}

.sidebar a {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 4px 0;
    display: block;
}

.sidebar a:hover,
.sidebar a.active {
    color: var(--accent-navy);
    font-weight: 600;
}

.sidebar h4 {
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.sidebar h4:first-child {
    margin-top: 0;
}

.docs-content h1 {
    margin-bottom: 1rem;
}

.docs-content h2 {
    margin-top: 2.5rem;
    font-size: 1.5rem;
}

.docs-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    max-width: 720px;
}

.docs-content ol,
.docs-content ul {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.docs-content li {
    margin-bottom: 0.5rem;
}

.code-block {
    background-color: var(--bg-secondary);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    margin: 1rem 0 1.5rem;
    overflow-x: auto;
    color: var(--text-primary);
}

.code-prompt {
    color: var(--accent-navy);
    font-weight: 700;
    user-select: none;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--accent-navy);
    color: #FFFFFF;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.8rem;
    margin-right: var(--space-sm);
    flex-shrink: 0;
}

/* ── Split Screen (Download Page) ─────────────────────────── */
.split-screen {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

.marketing-side {
    background-color: var(--bg-secondary);
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid var(--border-color);
}

.marketing-side .brand-text {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.marketing-side h1 {
    font-size: 2.5rem;
    line-height: 1.15;
}

.marketing-side .lead {
    margin-top: 1.5rem;
}

.checklist {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 2rem;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 1rem;
}

.checklist-item .check-icon {
    color: var(--success);
    font-weight: 700;
}

.download-side {
    background-color: #FFFFFF;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.download-container {
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.download-container h2 {
    margin-bottom: 0.5rem;
}

.download-container .lead {
    margin: 0 auto 2rem;
    text-align: center;
}

.download-btn {
    width: 100%;
    padding: 1.1rem 2rem;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.download-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.download-meta-item {
    text-align: center;
}

.download-meta-item .label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.download-meta-item .value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 2px;
}

.coming-soon-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding: 0.75rem 1.5rem;
    border: 1px dashed var(--outline-variant);
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
    border-top: 1px solid var(--border-color);
    background-color: #FFFFFF;
    padding: 3rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--accent-navy);
}

/* ── Section Titles ───────────────────────────────────────── */
.section-header {
    text-align: center;
    margin-bottom: 1rem;
}

.section-header .lead {
    margin: 1rem auto 0;
}

/* ── Feature Icon Colors (matching app tokens) ────────────── */
.icon-scan { color: var(--accent-navy); }
.icon-folder { color: var(--tag-word); }
.icon-vault { color: var(--tag-pdf); }
.icon-cloud { color: var(--tag-sheet); }
.icon-share { color: var(--tag-media); }
.icon-search { color: var(--tag-folder); }

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.5s ease-out both;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }
.animate-delay-6 { animation-delay: 0.6s; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }

    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #FFFFFF;
        border-bottom: 1px solid var(--border-color);
        padding: 1rem 5%;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
    }

    .nav-links.open li {
        width: 100%;
    }

    .nav-links.open a {
        margin-left: 0;
        margin-bottom: 0.75rem;
        display: block;
        width: 100%;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .grid-2 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero {
        padding-top: 4rem;
    }

    .hero-image img {
        max-width: 260px;
    }

    .docs-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .split-screen {
        grid-template-columns: 1fr;
    }

    .marketing-side {
        padding: 3rem 2rem;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .download-side {
        padding: 3rem 2rem;
    }

    .marketing-side h1 {
        font-size: 2rem;
    }

    .comparison-table {
        font-size: 0.85rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem 1rem;
    }

    .footer {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.85rem; }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 300px;
    }

    .download-meta {
        gap: 1rem;
    }
}

/* ── Interactive Demo Section ─────────────────────────────── */
.demo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0 5rem;
}
.phone-mockup-wrapper {
    position: relative;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin: 0 auto;
}

.phone-frame {
    width: 380px;
    height: 780px;
    max-width: none !important;
    flex-shrink: 0;
    border-radius: 36px;
    border: 12px solid #1B1B21;
    overflow: hidden;
    position: relative;
    background: var(--bg-primary);
    box-shadow: 0 32px 80px rgba(26, 35, 126, 0.28), inset 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 26px;
    background: #1B1B21;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    z-index: 10;
}

.app-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: var(--bg-primary);
}

.demo-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .phone-frame {
        width: 320px;
        height: 660px;
        border-width: 8px;
    }
    .demo-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 380px) {
    .phone-mockup-wrapper {
        padding: 0;
        background: transparent;
        border: none;
    }
    .phone-frame {
        width: 280px;
        height: 580px;
        border-width: 6px;
        border-radius: 24px;
    }
}

/* Interactive Sandbox Simulation - Pixel-to-Pixel Flutter App Theme (`theme.dart`) */
:root {
    --flutter-primary: #1A237E;
    --flutter-dark-primary: #000666;
    --flutter-secondary: #4C616C;
    --flutter-bg: #FBF8FF;
    --flutter-surface: #FFFFFF;
    --flutter-on-surface: #1B1B21;
    --flutter-on-surface-variant: #454652;
    --flutter-outline: #767683;
    --flutter-outline-variant: #C6C5D4;
    --flutter-divider: #E0E4E8;
    --flutter-error: #BA1A1A;
    --flutter-radius-sm: 4px;
    --flutter-radius-lg: 8px;
    --flutter-radius-full: 9999px;
}

/* Screen Layout & Navigation */
.flutter-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--flutter-bg);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--flutter-on-surface);
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.flutter-screen.hidden {
    opacity: 0;
    transform: translateX(20px);
    pointer-events: none;
    z-index: 0;
}
.flutter-screen.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 10;
}

/* AppBar */
.flutter-appbar {
    height: 56px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
}
.flutter-appbar.transparent {
    background: transparent;
}
.flutter-appbar.navy {
    background: var(--flutter-primary);
    color: #FFFFFF;
}
.flutter-appbar-title {
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* Form Inputs (`InputDecorationTheme`) */
.flutter-input-group {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    text-align: left;
}
.flutter-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--flutter-on-surface-variant);
    margin-bottom: 6px;
}
.flutter-input {
    background: var(--flutter-surface);
    border: 1px solid var(--flutter-outline-variant);
    border-radius: var(--flutter-radius-sm);
    padding: 12px 14px;
    font-size: 14px;
    color: var(--flutter-on-surface);
    outline: none;
    transition: border-color 0.15s ease;
    width: 100%;
    box-sizing: border-box;
}
.flutter-input:focus {
    border-color: var(--flutter-primary);
    border-width: 2px;
    padding: 11px 13px;
}

/* Buttons (`ElevatedButtonTheme` & `OutlinedButtonTheme`) */
.flutter-btn-elevated {
    background: var(--flutter-primary);
    color: #FFFFFF;
    border: none;
    border-radius: var(--flutter-radius-sm);
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}
.flutter-btn-elevated:hover {
    background: var(--flutter-dark-primary);
}
.flutter-btn-elevated:active {
    transform: scale(0.98);
}
.flutter-btn-outlined {
    background: var(--flutter-surface);
    color: var(--flutter-secondary);
    border: 1px solid var(--flutter-outline-variant);
    border-radius: var(--flutter-radius-sm);
    padding: 13px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
}
.flutter-btn-outlined:hover {
    background: #F5F2FB;
    border-color: var(--flutter-primary);
    color: var(--flutter-primary);
}

/* Floating Snackbar (`SnackBarBehavior.floating`) */
.flutter-snackbar {
    position: absolute;
    bottom: 24px;
    left: 16px;
    right: 16px;
    background: #2E7D32;
    color: #FFFFFF;
    padding: 14px 18px;
    border-radius: var(--flutter-radius-lg);
    font-size: 13.5px;
    font-weight: 500;
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
    z-index: 9999;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 10px;
}
.flutter-snackbar.show {
    opacity: 1;
    transform: translateY(0);
}

/* Storage Card */
.flutter-storage-card {
    background: var(--flutter-surface);
    border: 1px solid var(--flutter-divider);
    border-radius: var(--flutter-radius-lg);
    padding: 16px;
    margin: 16px 16px 8px 16px;
    text-align: left;
}
.flutter-progress-bg {
    background: var(--flutter-bg);
    height: 6px;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 12px;
}
.flutter-progress-fill {
    background: #00E5FF;
    height: 100%;
    width: 25%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* Filter Chips */
.flutter-chip {
    background: var(--flutter-surface);
    border: 1px solid var(--flutter-divider);
    border-radius: var(--flutter-radius-full);
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--flutter-on-surface-variant);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}
.flutter-chip:hover {
    border-color: var(--flutter-primary);
}
.flutter-chip.selected {
    background: rgba(26, 35, 126, 0.12);
    color: var(--flutter-primary);
    border-color: rgba(26, 35, 126, 0.3);
    font-weight: 700;
}

/* Document Cards */
.flutter-doc-card {
    background: var(--flutter-surface);
    border: 1px solid var(--flutter-divider);
    border-radius: var(--flutter-radius-lg);
    padding: 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    box-shadow: 0 8px 24px rgba(26, 35, 126, 0.03);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.flutter-doc-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(26, 35, 126, 0.08);
}
.flutter-doc-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--flutter-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}
.flutter-fab {
    position: absolute;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: var(--flutter-primary);
    color: #FFFFFF;
    border-radius: var(--flutter-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(26, 35, 126, 0.35);
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 20;
}
.flutter-fab:hover {
    transform: scale(1.08) rotate(90deg);
}
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ==========================================================================
   AUTHENTIC IN-APP MODALS, KEYPADS & OVERLAYS (No Browser Prompts!)
   ========================================================================== */

.flutter-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    z-index: 100;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.flutter-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

/* Material 3 Bottom Sheet */
.flutter-bottomsheet {
    background: var(--flutter-surface);
    border-radius: 20px 20px 0 0;
    width: 100%;
    padding: 16px 16px 28px;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.4);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--flutter-on-surface);
}
.flutter-overlay.show .flutter-bottomsheet {
    transform: translateY(0);
}
.bottomsheet-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 12px;
    border-radius: 12px;
    cursor: pointer;
    color: var(--flutter-on-surface);
    font-weight: 600;
    font-size: 15px;
    transition: background 0.15s ease;
}
.bottomsheet-item:hover {
    background: rgba(26, 35, 126, 0.08);
}

/* Material 3 Dialog */
.flutter-dialog {
    background: var(--flutter-surface);
    border-radius: 24px;
    width: 88%;
    max-width: 320px;
    padding: 22px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    margin: auto;
    color: var(--flutter-on-surface);
}
.flutter-overlay.show .flutter-dialog {
    transform: scale(1);
    opacity: 1;
}

/* Security Vault PIN Pad Screen (`VaultPinScreen.dart`) */
.flutter-pin-modal {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #0A0A0C;
    z-index: 105;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    color: #FFFFFF;
}
.flutter-pin-modal.show {
    transform: translateY(0);
}
.pin-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.38);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.pin-dot.filled {
    background: #00E5FF;
    border-color: #00E5FF;
    box-shadow: 0 0 12px #00E5FF;
}
.pin-keypad {
    background: #141418;
    border-radius: 32px 32px 0 0;
    padding: 24px 20px 20px;
}
.pin-row {
    display: flex;
    justify-content: space-evenly;
    margin-bottom: 16px;
}
.pin-key {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #FFFFFF;
    font-size: 26px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    user-select: none;
}
.pin-key:hover {
    background: rgba(0, 229, 255, 0.15);
    border-color: #00E5FF;
    transform: scale(1.05);
}

/* Welcome Screen (`WelcomeScreen.dart`) */
.flutter-screen-welcome {
    background: #FFFFFF !important;
    color: #0A0A0C;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.welcome-header-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}
.welcome-logo-icon {
    width: 32px;
    height: 32px;
    background: var(--flutter-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
}
.welcome-logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--flutter-primary);
    letter-spacing: -0.5px;
}
.vault-illustration-box {
    width: 220px;
    height: 220px;
    margin: 20px auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.vault-outer-frame {
    width: 160px;
    height: 160px;
    border: 3px solid var(--flutter-primary);
    border-radius: 32px;
    background: #FFFFFF;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(26, 35, 126, 0.08);
}
.vault-inner-frame {
    width: 136px;
    height: 136px;
    border: 2px solid rgba(26, 35, 126, 0.15);
    border-radius: 24px;
    position: absolute;
}
.vault-rivet {
    width: 6px;
    height: 6px;
    background: rgba(26, 35, 126, 0.4);
    border-radius: 50%;
    position: absolute;
}
.vault-rivet.tl { top: 10px; left: 10px; }
.vault-rivet.tr { top: 10px; right: 10px; }
.vault-rivet.bl { bottom: 10px; left: 10px; }
.vault-rivet.br { bottom: 10px; right: 10px; }

@keyframes rotateWheel {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.vault-rotating-wheel {
    width: 80px;
    height: 80px;
    border: 2.5px solid var(--flutter-primary);
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: rotateWheel 15s linear infinite;
}
.wheel-notch {
    position: absolute;
    width: 2px;
    height: 8px;
    background: var(--flutter-primary);
    top: 0;
    left: calc(50% - 1px);
    transform-origin: 50% 40px;
}
.wheel-center-knob {
    width: 28px;
    height: 28px;
    background: var(--flutter-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 700;
}

/* Splash Screen (`SplashScreen.dart`) */
.flutter-screen-splash {
    background: var(--flutter-primary) !important;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
}
.splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: scale(0.7);
    opacity: 0;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.flutter-screen-splash.animate .splash-content {
    transform: scale(1);
    opacity: 1;
}
.splash-logo-box {
    width: 110px;
    height: 110px;
    background: #FFFFFF;
    border-radius: 24px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    overflow: hidden;
}
.splash-title {
    font-size: 28px;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 1.2px;
}
.splash-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 8px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Security Vault View (`VaultScreen.dart`) */
.flutter-screen-vault {
    background: #1A0A0A;
    color: #FFFFFF;
}
.vault-card {
    background: #261212;
    border: 1px solid rgba(255, 82, 82, 0.35);
    border-radius: var(--flutter-radius-lg);
    padding: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.vault-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 82, 82, 0.15);
}

/* Camera Scanner Viewfinder (`DocumentScanner`) */
.flutter-camera-modal {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #050508;
    z-index: 110;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.flutter-camera-modal.show {
    transform: translateY(0);
}
.camera-viewfinder {
    flex: 1;
    margin: 16px 20px;
    border: 2px dashed #00E5FF;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(0,229,255,0.08) 0%, rgba(0,0,0,0.7) 100%);
    box-shadow: 0 0 30px rgba(0,229,255,0.15) inset;
}
.camera-laser {
    position: absolute;
    left: 0; right: 0;
    height: 3px;
    background: #00E5FF;
    box-shadow: 0 0 16px #00E5FF;
    animation: scanLaser 1.5s infinite ease-in-out;
}
@keyframes scanLaser {
    0% { top: 8%; opacity: 0.8; }
    50% { top: 92%; opacity: 1; }
    100% { top: 8%; opacity: 0.8; }
}

/* ── Universal APK Request Modal ───────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.68);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 1;
    transition: opacity 0.25s ease;
}
.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}
.modal-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    max-width: 520px;
    width: 100%;
    padding: 2.25rem;
    box-shadow: 0 32px 80px rgba(0,0,0,0.35);
    text-align: left;
    position: relative;
    transform: translateY(0);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-overlay.hidden .modal-card {
    transform: translateY(24px);
}

/* ── VIP Gold Theme Overrides for Emulator ────────────────────── */
#sandbox-view.theme-gold .welcome-logo-text,
#sandbox-view.theme-gold h2,
#sandbox-view.theme-gold .flutter-appbar-title,
#sandbox-view.theme-gold .flutter-bottomnav-item.active {
    color: #B8860B !important;
}
#sandbox-view.theme-gold .flutter-btn-elevated,
#sandbox-view.theme-gold .flutter-fab,
#sandbox-view.theme-gold .flutter-appbar.navy,
#sandbox-view.theme-gold .wheel-notch,
#sandbox-view.theme-gold .wheel-center-knob,
#sandbox-view.theme-gold .flutter-bottomnav-item.active svg {
    background: #B8860B !important;
}
#sandbox-view.theme-gold svg {
    stroke: #B8860B !important;
}
#sandbox-view.theme-gold .flutter-bottomnav-item.active svg {
    stroke: #B8860B !important;
    color: #B8860B !important;
    background: transparent !important;
}


