/* ==========================================================================
   CHOUDHARY ASSOCIATES - Modern Minimalist SaaS Design System
   Features:
   - Light Mode: Warm off-white/cream (#F5F4F0), Jet Black (#141414), Vivid Purple (#7C3AED), Mint (#2DD4A7)
   - Dark Mode: Deep Obsidian (#0C0D0E), Charcoal Cards (#16181D / #1E222A), Crisp White Typography
   - Typography: Clash Display & General Sans
   - Rounded-full pill buttons & clean elevation
   ========================================================================== */

:root {
    /* Background Canvas (Light Mode) */
    --bg-cream: #F5F4F0;
    --bg-card-white: #FFFFFF;
    --bg-card-cream: #FAF9F5;
    --bg-card-dark: #141414;
    --bg-jet-black: #0E0E0E;
    
    /* Primary Accents */
    --accent-purple: #7C3AED;
    --accent-purple-vivid: #8B5CF6;
    --accent-purple-light: #DDD6FE;
    --accent-purple-tint: #F5F3FF;
    
    /* Secondary Accents */
    --accent-mint: #2DD4A7;
    --accent-mint-dark: #059669;
    --accent-mint-tint: #ECFDF5;
    
    /* Neutral & Typography */
    --text-black: #141414;
    --text-heading: #141414;
    --text-body: #333333;
    --text-muted: #666666;
    --text-faint: #999999;
    --text-white: #FFFFFF;
    
    /* Borders */
    --border-light: #E6E4DD;
    --border-subtle: rgba(20, 20, 20, 0.08);
    --border-dark: rgba(255, 255, 255, 0.12);
    
    /* Radii */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --radius-pill: 9999px;
    
    /* Shadows */
    --shadow-soft: 0 4px 20px -2px rgba(20, 20, 20, 0.05), 0 2px 6px -1px rgba(20, 20, 20, 0.03);
    --shadow-card: 0 12px 32px -4px rgba(20, 20, 20, 0.06), 0 4px 12px -2px rgba(20, 20, 20, 0.03);
    --shadow-hover: 0 20px 48px -8px rgba(20, 20, 20, 0.1), 0 8px 20px -4px rgba(20, 20, 20, 0.04);
    --shadow-btn-purple: 0 8px 24px -4px rgba(124, 58, 237, 0.35);
}

/* ==========================================================================
   Dark Mode Theme Overrides
   ========================================================================== */
[data-theme="dark"] {
    --bg-cream: #0B0C10;
    --bg-card-white: #15181E;
    --bg-card-cream: #1C2028;
    --bg-card-dark: #07080A;
    --bg-jet-black: #050507;
    
    --accent-purple: #8B5CF6;
    --accent-purple-vivid: #A78BFA;
    --accent-purple-light: #C4B5FD;
    --accent-purple-tint: rgba(139, 92, 246, 0.15);
    
    --accent-mint: #2DD4A7;
    --accent-mint-dark: #34D399;
    --accent-mint-tint: rgba(45, 212, 167, 0.12);
    
    --text-black: #F8FAFC;
    --text-heading: #FFFFFF;
    --text-body: #E2E8F0;
    --text-muted: #94A3B8;
    --text-faint: #64748B;
    --text-white: #FFFFFF;
    
    --border-light: rgba(255, 255, 255, 0.09);
    --border-subtle: rgba(255, 255, 255, 0.05);
    --border-dark: rgba(255, 255, 255, 0.15);
    
    --shadow-soft: 0 4px 20px -2px rgba(0, 0, 0, 0.4);
    --shadow-card: 0 12px 32px -4px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 20px 48px -8px rgba(0, 0, 0, 0.7);
    --shadow-btn-purple: 0 8px 24px -4px rgba(139, 92, 246, 0.4);
}

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

body {
    font-family: 'General Sans', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-cream);
    color: var(--text-body);
    min-height: 100vh;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Headings font */
h1, h2, h3, h4, .font-display {
    font-family: 'Clash Display', 'Outfit', 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    color: var(--text-black);
    letter-spacing: -0.03em;
}

/* ==========================================================================
   Page Container & Floating Pill Navbar
   ========================================================================== */
.page-container {
    max-width: 1220px;
    margin: 0 auto;
    padding: 24px 20px 60px 20px;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.navbar-pill {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card-white);
    border: 1px solid var(--border-light);
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-soft);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.brand-badge-pill {
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-spark {
    font-size: 1.3rem;
    color: var(--accent-purple);
    font-weight: 800;
}

.brand-name {
    font-family: 'Clash Display', 'Plus Jakarta Sans', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-black);
    letter-spacing: -0.02em;
}

.nav-center-links {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-card-cream);
    padding: 4px 6px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-light);
}

.nav-pill-link {
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-pill-link:hover, .nav-pill-link.active {
    background: var(--bg-card-white);
    color: var(--text-black);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.nav-controls-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.agent-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.78rem;
    font-weight: 700;
}

.agent-pill-badge.online {
    background: var(--accent-mint-tint);
    color: var(--accent-mint-dark);
    border: 1px solid rgba(45, 212, 167, 0.4);
}

.agent-pill-badge.offline {
    background: rgba(239, 68, 68, 0.15);
    color: #F87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-dot-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.agent-pill-badge.online .status-dot-pulse {
    background: var(--accent-mint);
    box-shadow: 0 0 8px var(--accent-mint);
}

.agent-pill-badge.offline .status-dot-pulse {
    background: #EF4444;
}

.user-pill-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 6px;
    background: var(--bg-card-cream);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    font-weight: 600;
}

.user-avatar-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent-purple-tint);
    color: var(--accent-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
}

.user-name-text {
    color: var(--text-black);
    font-weight: 700;
}

.pill-role {
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
}

.role-admin { background: rgba(245, 158, 11, 0.15); color: #F59E0B; }
.role-user { background: rgba(99, 102, 241, 0.15); color: #818CF8; }

.btn-pill-glass {
    padding: 7px 16px;
    border-radius: var(--radius-pill);
    background: var(--bg-card-cream);
    border: 1px solid var(--border-light);
    color: var(--text-black);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-pill-glass:hover {
    background: var(--border-light);
}

.btn-theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-card-cream);
    color: var(--text-black);
    border: 1px solid var(--border-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.btn-theme-toggle:hover {
    background: var(--border-light);
    transform: scale(1.05);
}

.btn-pill-circle-danger {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.15);
    color: #F87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-pill-circle-danger:hover {
    background: rgba(239, 68, 68, 0.25);
}

/* ==========================================================================
   Clean Oversized Display Hero Section
   ========================================================================== */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 36px 10px 18px 10px;
    gap: 24px;
}

.hero-header-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    max-width: 960px;
}

.hero-kicker-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    border-radius: var(--radius-pill);
    background: var(--bg-card-white);
    border: 1px solid var(--border-light);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-black);
    box-shadow: var(--shadow-soft);
}

.kicker-glow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-purple);
}

.hero-display-title {
    font-family: 'Clash Display', 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(2.4rem, 5.5vw, 4.4rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.05;
    color: var(--text-black);
}

.text-highlight {
    color: var(--accent-purple);
}

.hero-body-lead {
    font-size: clamp(1.02rem, 2vw, 1.18rem);
    color: var(--text-muted);
    max-width: 700px;
    line-height: 1.6;
}

.hero-cta-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-cta-purple {
    padding: 8px 10px 8px 24px;
    border-radius: var(--radius-pill);
    font-size: 0.96rem;
    font-weight: 700;
    background: var(--accent-purple);
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-btn-purple);
    transition: all 0.25s ease;
}

.cta-arrow-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--accent-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: transform 0.2s ease;
}

.btn-cta-purple:hover {
    background: #6D28D9;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -4px rgba(124, 58, 237, 0.5);
}

.btn-cta-purple:hover .cta-arrow-circle {
    transform: translateX(3px);
}

.btn-cta-outline {
    padding: 13px 26px;
    border-radius: var(--radius-pill);
    font-size: 0.95rem;
    font-weight: 700;
    background: var(--bg-card-white);
    color: var(--text-black);
    border: 1px solid var(--border-light);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-soft);
    transition: all 0.2s ease;
}

.btn-cta-outline:hover {
    background: var(--bg-card-cream);
    transform: translateY(-2px);
}

/* ==========================================================================
   High-Contrast Marquee Ticker
   ========================================================================== */
.marquee-black-strip {
    background: var(--bg-card-dark);
    color: #ffffff;
    padding: 14px 0;
    overflow: hidden;
    white-space: nowrap;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-light);
}

.marquee-track-content {
    display: inline-block;
    font-family: 'Clash Display', 'Plus Jakarta Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1.8px;
    animation: marqueeAnimation 25s linear infinite;
}

.ticker-star {
    color: var(--accent-mint);
    margin: 0 16px;
    font-size: 0.9rem;
}

@keyframes marqueeAnimation {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==========================================================================
   Main Workspace Surfaces
   ========================================================================== */
.workspace-flow {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.card-surface-white {
    background: var(--bg-card-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 34px;
    box-shadow: var(--shadow-card);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.surface-header-split {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.kicker-label {
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}

.surface-title {
    font-family: 'Clash Display', 'Plus Jakarta Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-black);
    letter-spacing: -0.03em;
}

.surface-sub {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.format-pill-group {
    display: flex;
    gap: 8px;
}

.format-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.76rem;
    font-weight: 700;
    background: var(--bg-card-cream);
    border: 1px solid var(--border-light);
    color: var(--text-black);
}

.pill-pdf i { color: #EF4444; }
.pill-xml i { color: #F59E0B; }
.pill-icegate i { color: #0284C7; }

/* ==========================================================================
   Collage Dropzone
   ========================================================================== */
.collage-dropzone {
    border: 2px dashed var(--border-light);
    border-radius: var(--radius-lg);
    background: var(--bg-card-cream);
    padding: 48px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.collage-dropzone:hover, .collage-dropzone.dragover {
    border-color: var(--accent-purple);
    background: var(--accent-purple-tint);
}

.dropzone-circle-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--bg-card-white);
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--accent-purple);
    margin-bottom: 16px;
}

.dropzone-heading {
    font-family: 'Clash Display', 'Plus Jakarta Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-black);
    margin-bottom: 4px;
}

.dropzone-text {
    font-size: 0.86rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.btn-browse-pill {
    padding: 10px 24px;
    border-radius: var(--radius-pill);
    background: var(--accent-purple);
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}

.input-file-hidden {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Progress bar */
.progress-wrap-pill {
    margin-top: 16px;
    background: var(--border-light);
    border-radius: var(--radius-pill);
    height: 24px;
    position: relative;
    overflow: hidden;
}

.progress-fill-purple {
    height: 100%;
    background: var(--accent-purple);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-label-text {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--text-black);
}

.hidden { display: none !important; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-actions-cluster {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-action-purple {
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    font-size: 0.84rem;
    font-weight: 700;
    background: var(--accent-purple);
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-btn-purple);
    transition: all 0.2s ease;
}

.btn-action-purple:hover {
    background: #6D28D9;
    transform: translateY(-1px);
}

.btn-action-outline {
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.84rem;
    font-weight: 700;
    background: var(--bg-card-cream);
    color: var(--text-black);
    border: 1px solid var(--border-light);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-action-outline:hover { background: var(--border-light); }

.btn-action-danger {
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.84rem;
    font-weight: 700;
    background: rgba(239, 68, 68, 0.15);
    color: #F87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-action-danger:hover { background: rgba(239, 68, 68, 0.25); }

.btn-round-chevron {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-card-cream);
    color: var(--text-black);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* ==========================================================================
   Clean Table
   ========================================================================== */
.table-scroll-container {
    overflow-x: auto;
    margin-top: 8px;
}

.collage-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.collage-table th {
    padding: 14px 16px;
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border-bottom: 2px solid var(--border-light);
}

.collage-table td {
    padding: 14px 16px;
    font-size: 0.86rem;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.collage-table tr:hover td {
    background: var(--bg-card-cream);
}

.table-empty-state {
    padding: 40px 0 !important;
    text-align: center;
}

.empty-loader-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.empty-loader-box i {
    font-size: 1.6rem;
    color: var(--accent-purple);
}

/* Badges */
.badge-pending {
    background: rgba(245, 158, 11, 0.15);
    color: #F59E0B;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
}

.badge-signing {
    background: var(--accent-purple-tint);
    color: var(--accent-purple);
    font-size: 0.74rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
}

.badge-signed {
    background: var(--accent-mint-tint);
    color: var(--accent-mint-dark);
    font-size: 0.74rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
}

.badge-failed {
    background: rgba(239, 68, 68, 0.15);
    color: #F87171;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
}

.tag-outline {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: var(--bg-card-cream);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-pill);
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--text-black);
}

.btn-success {
    background: var(--accent-mint-tint);
    color: var(--accent-mint-dark);
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 700;
    border: 1px solid rgba(45, 212, 167, 0.4);
}

.btn-success:hover {
    background: rgba(45, 212, 167, 0.25);
}

/* ==========================================================================
   Verification Suite
   ========================================================================== */
.verify-toggle-header {
    cursor: pointer;
    user-select: none;
    margin-bottom: 0;
}

.verify-split-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
    margin-top: 24px;
}

.verify-split-layout.collapsed {
    display: none;
}

.compact-verify-box {
    padding: 24px 16px;
}

.verify-hero-icon {
    font-size: 2rem;
    color: var(--accent-purple);
    margin-bottom: 8px;
}

.verify-result-card {
    background: var(--bg-card-cream);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 20px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-verify-placeholder {
    color: var(--text-muted);
    font-size: 0.86rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.empty-verify-placeholder i {
    font-size: 1.4rem;
}

/* ==========================================================================
   Admin & Stats Panels
   ========================================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.stat-box {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px;
    background: var(--bg-card-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.stat-icon.user-stat { background: var(--accent-purple-tint); color: var(--accent-purple); }
.stat-icon.doc-stat { background: rgba(2, 132, 199, 0.15); color: #0284C7; }
.stat-icon.sign-stat { background: var(--accent-mint-tint); color: var(--accent-mint-dark); }
.stat-icon.agent-stat { background: rgba(217, 119, 6, 0.15); color: #D97706; }

.stat-info { display: flex; flex-direction: column; }
.stat-label { font-size: 0.74rem; color: var(--text-muted); font-weight: 700; text-transform: uppercase; }
.stat-info h3 { font-family: 'Clash Display', 'Plus Jakarta Sans', sans-serif; font-size: 1.55rem; font-weight: 700; color: var(--text-black); }

.admin-grid {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.search-box input {
    background: var(--bg-card-cream);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-pill);
    padding: 8px 14px 8px 36px;
    color: var(--text-black);
    font-size: 0.85rem;
    outline: none;
    width: 240px;
    transition: all 0.2s ease;
}

.search-box input:focus {
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px var(--accent-purple-tint);
    width: 280px;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 10, 12, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-card {
    background: var(--bg-card-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 480px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-light);
}

.modal-header h3 {
    font-family: 'Clash Display', 'Plus Jakarta Sans', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-black);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.4rem;
    cursor: pointer;
}

.modal-body { padding: 24px; }

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    background: var(--bg-card-cream);
    border-top: 1px solid var(--border-light);
}

.form-group { margin-bottom: 16px; }

.form-group label {
    display: block;
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--text-black);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-control {
    width: 100%;
    padding: 11px 16px;
    border-radius: var(--radius-md);
    background: var(--bg-card-cream);
    border: 1px solid var(--border-light);
    color: var(--text-black);
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: all 0.2s ease;
}

.input-control:focus {
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px var(--accent-purple-tint);
}

.error-alert {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #F87171;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    margin-bottom: 16px;
}

.success-alert {
    background: var(--accent-mint-tint);
    border: 1px solid rgba(45, 212, 167, 0.4);
    color: var(--accent-mint-dark);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    margin-bottom: 16px;
}

/* ==========================================================================
   Collage Minimalist Footer
   ========================================================================== */
.collage-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 32px;
    background: var(--bg-card-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.footer-brand-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Clash Display', 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-black);
}

.footer-lead-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 3px;
}

.footer-right-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.compliance-badge-footer {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-black);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.copyright-notice {
    font-size: 0.74rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 960px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .verify-split-layout { grid-template-columns: 1fr; }
    .surface-header-split { flex-direction: column; gap: 14px; }
    .btn-actions-cluster { width: 100%; flex-wrap: wrap; }
    .collage-footer { flex-direction: column; gap: 14px; align-items: flex-start; }
    .footer-right-meta { align-items: flex-start; }
}
