/* ============================================ */
/* CSS VARIABLES - THEME SUPPORT               */
/* ============================================ */

html[data-theme="dark"] {
    /* Dark theme */
    --bg-primary: #0a0a0b !important;
    --bg-secondary: #18181b !important;
    --bg-card: #1a1a1d !important;
    --bg-nav: rgba(10, 10, 11, 0.8) !important;
    --border-color: var(--border-subtle) !important;
    --text-primary: #fafafa !important;
    --text-secondary: #e4e4e7 !important;
    --text-muted: #a1a1aa !important;
    --text-dimmed: #a1a1aa !important;
    --text-label: #52525b !important;
    --accent-gradient: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%) !important;
    --btn-primary-bg: white !important;
    --btn-primary-text: #0a0a0b !important;
    --btn-secondary-bg: var(--bg-hover) !important;
    --btn-secondary-border: var(--border-hover) !important;
    --hero-gradient-1: rgba(120, 119, 198, 0.15) !important;
    --hero-gradient-2: rgba(59, 130, 246, 0.08) !important;
    --tag-script-bg: rgba(34, 197, 94, 0.1) !important;
    --tag-script-text: #22c55e !important;
    --tag-dashboard-bg: rgba(168, 85, 247, 0.1) !important;
    --tag-dashboard-text: #a855f7 !important;
    --border-subtle: rgba(255,255,255,0.08) !important;
    --border-hover: rgba(255,255,255,0.12) !important;
    --bg-subtle: rgba(255,255,255,0.03) !important;
    --bg-hover: rgba(255,255,255,0.06) !important;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3) !important;
    --shadow-md: 0 4px 20px rgba(0,0,0,0.3) !important;
    --shadow-lg: 0 20px 50px rgba(0,0,0,0.4) !important;
    --overlay-bg: rgba(0,0,0,0.6) !important;
}

:root, html:not([data-theme="dark"]) {
    --bg-primary: #ffffff !important;
    --bg-secondary: #f4f4f5 !important;
    --bg-card: #ffffff !important;
    --bg-nav: rgba(255, 255, 255, 0.9) !important;
    --border-color: rgba(0,0,0,0.08) !important;
    --text-primary: #18181b !important;
    --text-secondary: #27272a !important;
    --text-muted: #52525b !important;
    --text-dimmed: #52525b !important;
    --text-label: #a1a1aa !important;
    --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%) !important;
    --btn-primary-bg: #18181b !important;
    --btn-primary-text: #ffffff !important;
    --btn-secondary-bg: rgba(0,0,0,0.03) !important;
    --btn-secondary-border: rgba(0,0,0,0.1) !important;
    --hero-gradient-1: rgba(120, 119, 198, 0.08) !important;
    --hero-gradient-2: rgba(59, 130, 246, 0.05) !important;
    --tag-script-bg: rgba(34, 197, 94, 0.15) !important;
    --tag-script-text: #16a34a !important;
    --tag-dashboard-bg: rgba(168, 85, 247, 0.15) !important;
    --tag-dashboard-text: #9333ea !important;
    --border-subtle: rgba(0,0,0,0.06) !important;
    --border-hover: rgba(0,0,0,0.12) !important;
    --bg-subtle: rgba(0,0,0,0.02) !important;
    --bg-hover: rgba(0,0,0,0.04) !important;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08) !important;
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08) !important;
    --shadow-lg: 0 20px 50px rgba(0,0,0,0.1) !important;
    --overlay-bg: rgba(0,0,0,0.5) !important;
}

/* ============================================ */
/* SKIP LINK                                   */
/* ============================================ */

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 10000;
    padding: 8px 16px;
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 16px;
}

/* ============================================ */
/* NAV SHARED ELEMENTS                         */
/* ============================================ */

/* Nav links */
.nav-link { color: var(--text-muted) !important; text-decoration: none; font-size: 0.9rem; padding: 10px 16px; border-radius: 10px; transition: color 0.2s, background-color 0.2s; position: relative; }
.nav-link:hover { color: var(--text-primary) !important; background: var(--bg-hover); }
.nav-link.active { color: var(--text-primary) !important; }
.nav-link.active::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 20px; height: 3px; background: var(--text-primary); border-radius: 2px; }

/* Hide auth link on desktop (it's in nav-links for mobile menu only) */
.nav-auth-link { display: none !important; }

[data-theme="light"] .nav-link:hover { background: rgba(0,0,0,0.05); }

/* Search bar (inside nav-right-controls) — expands left */
.nav-search { display: flex; align-items: center; position: relative; flex-direction: row-reverse; }
.nav-search-btn { background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 8px; border-radius: 10px; display: flex; align-items: center; justify-content: center; transition: color 0.2s, background-color 0.2s; }
.nav-search-btn:hover { color: var(--text-primary); background: var(--bg-hover); }
.nav-search-input { position: absolute; right: 40px; top: 50%; transform: translateY(-50%); width: 0; padding: 0; border: none; background: var(--bg-secondary); color: var(--text-primary); font-size: 0.9rem; border-radius: 10px; overflow: hidden; transition: width 0.3s ease, padding 0.3s ease, opacity 0.3s ease; pointer-events: none; opacity: 0; }
.nav-search.open .nav-search-input { width: 200px; padding: 8px 14px; pointer-events: auto; opacity: 1; }
.nav-search-input:focus { outline: none; }

/* Search autocomplete dropdown */
.nav-search-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 340px;
    max-height: 380px;
    overflow-y: auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    z-index: 10010;
    display: none;
    padding: 6px;
}
.nav-search-dropdown.visible { display: block; }
.nav-search-dropdown::-webkit-scrollbar { width: 4px; }
.nav-search-dropdown::-webkit-scrollbar-thumb { background: var(--text-dimmed); border-radius: 4px; }

.nav-search-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-primary);
    transition: background 0.15s;
}
.nav-search-item:hover,
.nav-search-item.highlighted {
    background: var(--btn-secondary-bg);
}
.nav-search-item-img {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-secondary);
}
.nav-search-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.nav-search-item-title {
    font-size: 0.82rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary);
}
.nav-search-item-title mark {
    background: rgba(96,165,250,0.25);
    color: inherit;
    border-radius: 2px;
    padding: 0 1px;
}
.nav-search-item-meta {
    font-size: 0.72rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nav-search-item-ref {
    font-size: 0.7rem;
    color: var(--text-dimmed);
    font-family: monospace;
}
.nav-search-section {
    padding: 6px 10px 4px;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dimmed);
}
.nav-search-section:not(:first-child) {
    margin-top: 4px;
    border-top: 1px solid var(--border-color);
    padding-top: 8px;
}
.nav-search-item-count {
    display: inline-block;
    margin-left: 6px;
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--text-dimmed);
    background: var(--btn-secondary-bg);
    border: 1px solid var(--border-color);
    padding: 1px 6px;
    border-radius: 10px;
    vertical-align: middle;
}
.nav-search-empty {
    padding: 16px 12px;
    text-align: center;
    color: var(--text-dimmed);
    font-size: 0.82rem;
}
.nav-search-loading {
    padding: 16px 12px;
    text-align: center;
    color: var(--text-dimmed);
    font-size: 0.82rem;
}

[data-theme="light"] .nav-search-btn:hover { background: rgba(0,0,0,0.05); }
[data-theme="light"] .nav-search-dropdown { box-shadow: 0 8px 32px rgba(0,0,0,0.12); }
[data-theme="light"] .nav-search-item-title mark { background: rgba(59,130,246,0.18); }

/* Dashboard button (right controls) */
.nav-dashboard-btn {
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    background: transparent;
    transition: color 0.2s, border-color 0.2s, background-color 0.2s;
    white-space: nowrap;
}
.nav-dashboard-btn:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
    background: var(--bg-subtle);
}
/* Logged-in state: subtle highlight */
.nav-dashboard-btn.logged-in {
    color: #a78bfa;
    border-color: rgba(167, 139, 250, 0.3);
    background: rgba(167, 139, 250, 0.06);
}
.nav-dashboard-btn.logged-in:hover {
    color: #c4b5fd;
    border-color: rgba(167, 139, 250, 0.5);
    background: rgba(167, 139, 250, 0.1);
}
[data-theme="light"] .nav-dashboard-btn.logged-in {
    color: #7c3aed;
    border-color: rgba(124, 58, 237, 0.3);
    background: rgba(124, 58, 237, 0.06);
}
[data-theme="light"] .nav-dashboard-btn.logged-in:hover {
    color: #6d28d9;
    border-color: rgba(124, 58, 237, 0.5);
    background: rgba(124, 58, 237, 0.1);
}

@media (max-width: 768px) {
    .nav-search.open .nav-search-input { width: 160px; }
    /* Hide desktop dashboard button on mobile (auth link in hamburger menu handles it) */
    .nav-dashboard-btn { display: none !important; }
    /* Show auth link in mobile menu */
    .nav-links.active .nav-auth-link { display: block !important; }
}

/* ============================================ */
/* RESET & BASE                                */
/* ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-secondary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.3s, color 0.3s;
}

        /* ============================================ */
        /* NAVIGATION                                   */
        /* ============================================ */

        #main-nav {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            padding: 20px 40px;
        }

        .nav-container {
            max-width: 1400px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            background: var(--bg-nav);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid var(--border-color);
            border-radius: 16px;
            padding: 10px 24px;
            gap: 8px;
        }

        .nav-brand {
            display: flex;
            align-items: center;
            gap: 12px;
            text-decoration: none;
            color: var(--text-primary);
            flex-shrink: 0;
        }

        .nav-logo {
            width: 32px;
            height: 32px;
            border-radius: 8px;
        }

        .nav-title {
            font-size: 1.1rem;
            font-weight: 600;
            letter-spacing: -0.5px;
        }

        /* Center nav links — push to center with flex: 1 */
        .nav-links {
            display: flex;
            gap: 4px;
            align-items: center;
            justify-content: center;
            flex: 1;
        }

        .nav-links a {
            color: var(--text-muted);
            text-decoration: none;
            font-size: 0.9rem;
            padding: 8px 14px;
            border-radius: 10px;
            transition: color 0.2s, background-color 0.2s;
        }

        .nav-links a:hover {
            color: var(--text-primary);
            background: var(--bg-hover);
        }

        [data-theme="light"] .nav-links a:hover {
            background: rgba(0,0,0,0.04);
        }

        /* Right controls: search + theme + dashboard btn */
        .nav-right-controls {
            display: flex;
            align-items: center;
            gap: 4px;
            flex-shrink: 0;
        }

        /* ============================================ */
        /* HERO SECTION                                 */
        /* ============================================ */

        .hero {
            min-height: 100vh;
            display: flex;
            align-items: center;
            padding: 140px 40px 80px;
            position: relative;
        }

        .hero-bg {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background:
                radial-gradient(ellipse 80% 50% at 50% -20%, rgba(120, 119, 198, 0.15), transparent),
                radial-gradient(ellipse 60% 40% at 80% 60%, rgba(59, 130, 246, 0.08), transparent);
            pointer-events: none;
        }

        .hero-container {
            max-width: 1400px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 80px;
            align-items: center;
            position: relative;
            z-index: 1;
        }

        .hero-content {
            max-width: 580px;
        }

        .hero-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: var(--bg-subtle);
            border: 1px solid var(--border-color);
            padding: 6px 14px;
            border-radius: 100px;
            font-size: 0.8rem;
            color: #a1a1aa;
            margin-bottom: 32px;
        }

        .hero-badge-dot {
            width: 6px;
            height: 6px;
            background: #22c55e;
            border-radius: 50%;
            animation: pulse-dot 2s infinite;
        }

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

        .hero h1 {
            font-size: 4rem;
            font-weight: 700;
            line-height: 1.05;
            margin-bottom: 24px;
            letter-spacing: -2px;
            color: #fafafa;
            overflow-wrap: break-word;
        }

        .hero h1 .highlight {
            background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .hero-description {
            font-size: 1.15rem;
            color: #71717a;
            margin-bottom: 28px;
            line-height: 1.7;
        }

        /* ═══ Hero inline stats strip (B) ═══ */
        .hero-stats-inline {
            display: inline-flex;
            align-items: center;
            gap: 20px;
            padding: 14px 22px;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 14px;
            margin-bottom: 28px;
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
        }
        .hero-stat-inline {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }
        .hero-stat-inline strong {
            font-size: 1.45rem;
            font-weight: 800;
            color: #e4e4e7;
            line-height: 1;
            font-variant-numeric: tabular-nums;
        }
        .hero-stat-inline span {
            font-size: 0.72rem;
            color: #71717a;
            text-transform: uppercase;
            letter-spacing: 0.06em;
            font-weight: 500;
        }
        .hero-stat-sep {
            width: 1px;
            height: 34px;
            background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.14), transparent);
        }
        [data-theme="light"] .hero-stats-inline {
            background: rgba(0, 0, 0, 0.02);
            border-color: rgba(0, 0, 0, 0.08);
        }
        [data-theme="light"] .hero-stat-inline strong { color: #0a0a0b; }
        [data-theme="light"] .hero-stat-inline span { color: #71717a; }
        [data-theme="light"] .hero-stat-sep {
            background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.12), transparent);
        }

        /* ═══ Hero sources rail (C) ═══ */
        .hero-sources {
            display: flex;
            align-items: center;
            gap: 14px;
            margin-top: 24px;
            flex-wrap: wrap;
        }
        .hero-sources-label {
            font-size: 0.68rem;
            font-weight: 600;
            color: #71717a;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            white-space: nowrap;
            position: relative;
            padding-right: 14px;
        }
        .hero-sources-label::after {
            content: '';
            position: absolute;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 1px;
            height: 12px;
            background: rgba(255, 255, 255, 0.15);
        }
        .hero-sources-list {
            display: flex;
            align-items: center;
            gap: 6px;
            flex-wrap: wrap;
        }
        .hero-source-pill {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 6px 12px;
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 999px;
            font-size: 0.74rem;
            font-weight: 500;
            color: #a1a1aa;
            transition: background 0.15s, border-color 0.15s, color 0.15s;
            cursor: default;
        }
        .hero-source-pill:hover {
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(255, 255, 255, 0.18);
            color: #e4e4e7;
        }
        .hero-source-dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            flex-shrink: 0;
        }
        [data-theme="light"] .hero-sources-label::after {
            background: rgba(0, 0, 0, 0.15);
        }
        [data-theme="light"] .hero-source-pill {
            background: rgba(0, 0, 0, 0.03);
            border-color: rgba(0, 0, 0, 0.08);
            color: #52525b;
        }
        [data-theme="light"] .hero-source-pill:hover {
            background: rgba(0, 0, 0, 0.06);
            border-color: rgba(0, 0, 0, 0.15);
            color: #0a0a0b;
        }

        .hero-buttons {
            display: flex;
            gap: 12px;
        }

        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 14px 28px;
            border-radius: 12px;
            text-decoration: none;
            font-size: 0.95rem;
            font-weight: 500;
            transition: background-color 0.2s, color 0.2s, border-color 0.2s;
            border: none;
            cursor: pointer;
        }

        .btn-primary {
            background: white;
            color: #0a0a0b;
        }

        .btn-primary:hover {
            background: #e4e4e7;
            transform: translateY(-2px);
        }

        .btn-secondary {
            background: var(--bg-hover);
            color: #e4e4e7;
            border: 1px solid var(--border-hover);
        }

        .btn-secondary:hover {
            background: var(--border-color);
            border-color: var(--border-hover);
        }

        /* Hero Preview */
        .hero-preview {
            position: relative;
        }

        .preview-wrapper {
            position: relative;
        }

        .card-mock {
            background: #18181b;
            border-radius: 14px;
            overflow: hidden;
            border: 1px solid var(--border-subtle);
            box-shadow:
                0 1px 2px rgba(0,0,0,0.2),
                0 20px 50px -10px rgba(0,0,0,0.5);
            display: flex;
            flex-direction: column;
        }

        /* Header: Ref + Type Badge */
        .card-mock-header {
            background: var(--bg-subtle);
            border-bottom: 1px solid var(--bg-hover);
            padding: 10px 12px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 8px;
        }

        .card-mock-ref {
            font-size: 13px;
            font-weight: 600;
            color: #94a3b8;
            letter-spacing: 0.2px;
        }

        .card-mock-prefix {
            font-weight: 700;
        }

        .card-mock-prefix.lo { color: #60a5fa; }
        .card-mock-prefix.np { color: #f43f5e; }

        .card-mock-type-badge {
            padding: 4px 10px;
            border-radius: 6px;
            font-size: 10px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.4px;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .card-mock-type-badge.imóvel {
            background: rgba(4, 120, 87, 0.15);
            color: #34d399;
        }

        .card-mock-type-badge.veículo {
            background: rgba(37, 99, 235, 0.15);
            color: #60a5fa;
        }

        .card-mock-type-badge.equipamento,
        .card-mock-type-badge.máquina {
            background: rgba(109, 40, 217, 0.12);
            color: #a78bfa;
        }

        .card-mock-type-badge.mobiliário {
            background: rgba(180, 83, 9, 0.12);
            color: #fbbf24;
        }

        .card-mock-type-badge.direito {
            background: rgba(190, 24, 93, 0.12);
            color: #f472b6;
        }

        .card-mock-type-badge svg { width: 12px; height: 12px; }

        /* Image Carousel */
        .card-image {
            height: 180px;
            background: linear-gradient(135deg, #1e3a5f, #312e81);
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .card-image-icon {
            font-size: 4rem;
            opacity: 0.4;
        }

        .carousel-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 28px;
            height: 28px;
            background: rgba(0,0,0,0.2);
            backdrop-filter: blur(8px);
            border: 1px solid rgba(255,255,255,0.12);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.85rem;
            color: white;
            cursor: pointer;
            transition: background-color 0.2s, opacity 0.2s;
            opacity: 0.7;
        }

        .carousel-nav:hover {
            background: rgba(0,0,0,0.4);
            opacity: 1;
        }

        .carousel-nav.prev { left: 6px; }
        .carousel-nav.next { right: 6px; }

        .carousel-dots {
            position: absolute;
            bottom: 8px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 4px;
        }

        .dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: rgba(255,255,255,0.4);
            transition: all 0.3s;
        }

        .dot.active {
            background: white;
            width: 14px;
            border-radius: 3px;
        }

        /* Info Section */
        .card-content {
            padding: 12px 14px;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .card-mock-values {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .card-mock-value-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 2px;
        }

        .card-mock-amount {
            font-size: 16px;
            font-weight: 700;
            color: #34d399;
        }

        .card-mock-label {
            font-size: 10px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: #64748b;
        }

        .card-mock-separator {
            font-size: 18px;
            font-weight: 300;
            color: #334155;
            line-height: 1;
            margin-top: -8px;
        }

        .card-mock-tags {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 5px;
        }

        .card-mock-tag {
            display: inline-flex;
            align-items: center;
            padding: 3px 8px;
            background: var(--bg-hover);
            border-radius: 6px;
            font-size: 10px;
            font-weight: 500;
            color: #94a3b8;
            white-space: nowrap;
        }

        .card-mock-meta {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 5px;
            font-size: 11px;
            color: #64748b;
        }

        .card-mock-meta svg {
            flex-shrink: 0;
            color: #475569;
        }

        .card-mock-countdown {
            color: #fbbf24;
        }

        /* Action Buttons */
        .card-mock-actions {
            display: flex;
            gap: 2px;
            padding: 6px 8px;
            border-top: 1px solid rgba(255,255,255,0.04);
            margin-top: auto;
        }

        .card-mock-action {
            flex: 1;
            padding: 7px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #64748b;
            transition: background-color 0.15s, color 0.15s;
            cursor: pointer;
        }

        .card-mock-action:hover {
            background: var(--bg-hover);
            color: #94a3b8;
        }

        .card-mock-fav:hover {
            background: rgba(245, 158, 11, 0.1);
            color: #f59e0b;
        }


        /* ============================================ */
        /* BENTO FEATURES                               */
        /* ============================================ */

        .bento {
            padding: 60px 40px 40px;
            max-width: 1400px;
            margin: 0 auto;
        }

        .bento-header {
            margin-bottom: 32px;
        }

        .bento-header h2 {
            font-size: 2rem;
            font-weight: 700;
            letter-spacing: -1px;
            margin-bottom: 8px;
        }

        .bento-header p {
            color: #71717a;
            font-size: 1rem;
        }

        .bento-grid {
            display: grid;
            grid-template-columns: repeat(12, 1fr);
            grid-template-rows: auto auto auto;
            gap: 16px;
        }

        .bento-card {
            background: #18181b;
            border: 1px solid var(--border-subtle);
            border-radius: 16px;
            padding: 22px;
            position: relative;
            overflow: hidden;
            transition: border-color 0.3s, transform 0.3s;
        }

        .bento-card:hover {
            border-color: rgba(255,255,255,0.12);
            transform: translateY(-2px);
        }

        .bento-card h2 {
            font-size: 1.05rem;
            font-weight: 600;
            margin-bottom: 6px;
            color: #fafafa;
        }

        .bento-card p {
            color: #71717a;
            font-size: 0.85rem;
            line-height: 1.5;
        }

        /* Card 1 - Carrossel (wide) */
        .bento-carousel {
            grid-column: span 7;
        }

        .bento-carousel-demo {
            margin-top: 16px;
            display: flex;
            gap: 10px;
            overflow: hidden;
        }

        .carousel-thumb {
            width: 80px;
            height: 55px;
            background: linear-gradient(135deg, #374151, #1f2937);
            border-radius: 10px;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            opacity: 0.5;
            transition: opacity 0.3s, border-color 0.3s;
        }

        .carousel-thumb.active {
            opacity: 1;
            border: 2px solid #3b82f6;
        }

        /* Card 2 - Countdown */
        .bento-countdown {
            grid-column: span 5;
        }

        .countdown-display {
            margin-top: 14px;
        }

        .countdown-boxes {
            display: flex;
            gap: 6px;
        }

        .countdown-box {
            background: rgba(251, 191, 36, 0.08);
            border: 1px solid rgba(251, 191, 36, 0.15);
            border-radius: 10px;
            padding: 12px 10px;
            text-align: center;
            flex: 1;
        }

        .countdown-box .num {
            font-size: 1.5rem;
            font-weight: 700;
            color: #fbbf24;
            font-family: 'SF Mono', monospace;
        }

        .countdown-box .label {
            font-size: 0.6rem;
            color: #71717a;
            text-transform: uppercase;
            margin-top: 4px;
        }

        /* Card 3 - Preços */
        .bento-prices {
            grid-column: span 4;
        }

        .price-comparison {
            margin-top: 14px;
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .price-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 12px;
            background: rgba(255,255,255,0.02);
            border-radius: 10px;
        }

        .price-row .label {
            font-size: 0.8rem;
            color: #71717a;
        }

        .price-row .value {
            font-weight: 600;
            font-family: 'SF Mono', monospace;
        }

        .price-row .value.green { color: #22c55e; }
        .price-row .value.dim { color: #52525b; text-decoration: line-through; }

        /* Card 4 - GPS */
        .bento-gps {
            grid-column: span 4;
        }

        .gps-buttons {
            margin-top: 14px;
            display: flex;
            gap: 8px;
        }

        .gps-btn {
            flex: 1;
            padding: 12px;
            border-radius: 10px;
            border: 1px solid var(--border-color);
            background: rgba(255,255,255,0.02);
            color: #a1a1aa;
            font-size: 0.8rem;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            cursor: pointer;
            transition: background-color 0.2s, color 0.2s;
        }

        .gps-btn:hover {
            background: var(--bg-hover);
            color: white;
        }

        .gps-btn.active {
            background: rgba(59, 130, 246, 0.15);
            border-color: rgba(59, 130, 246, 0.3);
            color: #60a5fa;
        }

        /* Card 5 - Sync */
        .bento-sync {
            grid-column: span 4;
        }

        .sync-demo {
            margin-top: 14px;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .sync-btn {
            background: rgba(34, 197, 94, 0.1);
            border: 1px solid rgba(34, 197, 94, 0.2);
            color: #22c55e;
            padding: 12px;
            border-radius: 10px;
            text-align: center;
            font-size: 0.9rem;
            font-weight: 500;
        }

        .sync-status {
            font-size: 0.75rem;
            color: #52525b;
            text-align: center;
        }

        /* Card 6 - Lightbox */
        .bento-actions {
            grid-column: span 12;
        }

        .lightbox-preview {
            margin-top: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 20px;
        }

        .lightbox-thumb {
            width: 80px;
            height: 60px;
            background: linear-gradient(135deg, #374151, #1f2937);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            border: 2px solid var(--border-hover);
        }

        .lightbox-arrows {
            display: flex;
            gap: 8px;
        }

        .lightbox-arrows span {
            width: 32px;
            height: 32px;
            background: var(--border-hover);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1rem;
            color: #a1a1aa;
        }

        /* Card 6 - Dashboard (wide) */
        .bento-dashboard {
            grid-column: span 8;
            background: linear-gradient(135deg, #18181b, #1f1f23);
        }

        .dashboard-preview {
            margin-top: 14px;
            display: flex;
            gap: 12px;
        }

        .dash-stat {
            flex: 1;
            background: var(--bg-subtle);
            border-radius: 12px;
            padding: 16px;
            text-align: center;
        }

        .dash-stat .num {
            font-size: 1.5rem;
            font-weight: 700;
            color: #fafafa;
        }

        .dash-stat .label {
            font-size: 0.7rem;
            color: #71717a;
            margin-top: 4px;
        }

        /* Section tag */
        .section-tag {
            display: inline-block;
            background: rgba(34, 197, 94, 0.1);
            color: #22c55e;
            font-size: 0.75rem;
            font-weight: 600;
            padding: 6px 14px;
            border-radius: 100px;
            margin-bottom: 16px;
            letter-spacing: 0.5px;
        }

        .section-tag.purple {
            background: rgba(139, 92, 246, 0.1);
            color: #a78bfa;
        }

        /* ============================================ */
        /* DASHBOARD SECTION                            */
        /* ============================================ */

        .bento-dashboard-section {
            padding-top: 0;
        }

        .bento-all-auctions {
            grid-column: span 7;
        }

        .bento-filters {
            grid-column: span 5;
        }

        .filters-preview {
            margin-top: 14px;
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }

        .filter-chip {
            background: rgba(139, 92, 246, 0.1);
            border: 1px solid rgba(139, 92, 246, 0.2);
            color: #a78bfa;
            padding: 8px 14px;
            border-radius: 8px;
            font-size: 0.8rem;
        }

        .bento-my-favorites {
            grid-column: span 4;
        }

        .my-fav-list {
            margin-top: 16px;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .my-fav-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 12px;
            background: rgba(255,255,255,0.02);
            border-radius: 8px;
            font-size: 0.8rem;
        }

        .my-fav-price {
            color: #22c55e;
            font-weight: 600;
            font-family: 'SF Mono', monospace;
        }

        .bento-ai {
            grid-column: span 4;
        }

        .ai-preview {
            margin-top: 14px;
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }

        .ai-score {
            padding: 8px 14px;
            border-radius: 8px;
            font-size: 0.75rem;
            font-weight: 600;
        }

        .ai-score.comprar {
            background: rgba(34, 197, 94, 0.15);
            color: #22c55e;
        }

        .ai-score.considerar {
            background: rgba(251, 191, 36, 0.15);
            color: #fbbf24;
        }

        .ai-score.evitar {
            background: rgba(239, 68, 68, 0.15);
            color: #ef4444;
        }

        .bento-alerts {
            grid-column: span 4;
        }

        .alert-preview {
            margin-top: 16px;
        }

        .alert-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px;
            background: rgba(251, 191, 36, 0.08);
            border: 1px solid rgba(251, 191, 36, 0.15);
            border-radius: 10px;
            font-size: 0.85rem;
            color: #fbbf24;
        }

        .alert-icon {
            font-size: 1.1rem;
        }

        .bento-map {
            grid-column: span 12;
        }

        .map-preview {
            margin-top: 16px;
            position: relative;
            height: 100px;
            background: rgba(255,255,255,0.02);
            border: 1px solid var(--border-subtle);
            border-radius: 10px;
            overflow: hidden;
        }

        .map-grid-lines {
            position: absolute;
            inset: 0;
            color: var(--text-primary);
            pointer-events: none;
        }

        .map-pin {
            position: absolute;
            color: #6366f1;
            filter: drop-shadow(0 1px 3px rgba(0,0,0,0.4));
            animation: map-bounce 3s ease-in-out infinite;
        }

        .map-pin-veículo { color: #f59e0b; animation-delay: 0.7s; }
        .map-pin-equip { color: #ef4444; animation-delay: 1.4s; }
        .map-pin-direitos { color: #8b5cf6; animation-delay: 2.1s; }

        .map-pin-cluster {
            position: absolute;
            width: 26px;
            height: 26px;
            background: rgba(245, 158, 11, 0.15);
            border: 2px solid rgba(245, 158, 11, 0.5);
            border-radius: 50%;
            color: #f59e0b;
            font-size: 0.7rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
            animation: map-bounce 3s ease-in-out infinite 2s;
        }

        .map-pin-cluster-sm {
            width: 22px;
            height: 22px;
            font-size: 0.65rem;
            animation-delay: 1s;
        }

        @keyframes map-bounce {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-3px); }
        }

        .map-legend {
            position: absolute;
            bottom: 6px;
            right: 8px;
            display: flex;
            gap: 10px;
            font-size: 0.6rem;
            color: var(--text-dimmed);
        }

        .map-legend-item {
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .map-legend-dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
        }
        .map-legend-dot--imoveis { background: #6366f1; }
        .map-legend-dot--veiculos { background: #f59e0b; }
        .map-legend-dot--equip { background: #ef4444; }
        .map-legend-dot--direitos { background: #8b5cf6; }

        /* ============================================ */
        /* ROADMAP CTA SECTION                         */
        /* ============================================ */

        .roadmap-cta {
            padding: 60px 40px 80px;
            max-width: 900px;
            margin: 0 auto;
        }

        .roadmap-cta-container {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 20px;
            padding: 40px;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
        }

        .roadmap-cta-content {
            margin-bottom: 28px;
        }

        .roadmap-cta-content h2 {
            font-size: 1.8rem;
            font-weight: 700;
            letter-spacing: -0.5px;
            margin-bottom: 10px;
        }

        .roadmap-cta-content p {
            color: var(--text-muted);
            font-size: 0.95rem;
            max-width: 520px;
            line-height: 1.6;
        }

        .roadmap-cta-phases {
            display: flex;
            flex-direction: column;
            gap: 12px;
            width: 100%;
            max-width: 480px;
        }

        .roadmap-cta-phase {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            padding: 14px 18px;
            border-radius: 12px;
            text-align: left;
        }

        .roadmap-cta-phase svg {
            flex-shrink: 0;
            margin-top: 2px;
        }

        .roadmap-cta-phase strong {
            display: block;
            font-size: 0.9rem;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 2px;
        }

        .roadmap-cta-phase span {
            font-size: 0.8rem;
            color: var(--text-muted);
        }

        .roadmap-cta-phase.done {
            background: rgba(34, 197, 94, 0.06);
            border: 1px solid rgba(34, 197, 94, 0.12);
        }

        .roadmap-cta-phase.active {
            background: rgba(59, 130, 246, 0.06);
            border: 1px solid rgba(59, 130, 246, 0.12);
        }

        .roadmap-cta-phase.planned {
            background: rgba(161, 161, 170, 0.04);
            border: 1px solid var(--border-color);
        }

        /* ═══ Live Stats Ribbon — social proof strip ═══ */
        .live-stats-ribbon {
            padding: 0 20px;
            margin: -40px auto 60px;
            position: relative;
            z-index: 5;
            max-width: 1200px;
        }
        .live-stats-container {
            background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.1));
            border: 1px solid rgba(99, 102, 241, 0.25);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-radius: 20px;
            padding: 28px 36px;
            box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
        }
        .live-stats-pulse {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 5px 12px;
            background: rgba(34, 197, 94, 0.1);
            border: 1px solid rgba(34, 197, 94, 0.25);
            border-radius: 999px;
            font-size: 0.72rem;
            font-weight: 600;
            color: #22c55e;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            margin-bottom: 18px;
        }
        .pulse-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #22c55e;
            box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
            animation: pulse-dot 2s infinite;
        }
        @keyframes pulse-dot {
            0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
            70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
            100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
        }
        .live-stats-grid {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 24px;
            align-items: center;
        }
        .live-stat {
            text-align: center;
            padding: 0 12px;
            border-right: 1px solid rgba(99, 102, 241, 0.15);
        }
        .live-stat:last-child { border-right: none; }
        .live-stat-value {
            font-size: 2.2rem;
            font-weight: 800;
            background: linear-gradient(135deg, #6366f1, #a855f7);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            line-height: 1;
            margin-bottom: 8px;
            font-variant-numeric: tabular-nums;
        }
        .live-stat-label {
            font-size: 0.78rem;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.06em;
            font-weight: 600;
        }
        @media (max-width: 768px) {
            .live-stats-ribbon { margin: -20px auto 40px; padding: 0 12px; }
            .live-stats-container { padding: 22px 20px; border-radius: 16px; }
            .live-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
            .live-stat { border-right: none; padding: 0; }
            .live-stat:nth-child(odd) { border-right: 1px solid rgba(99, 102, 241, 0.15); }
            .live-stat:last-child { grid-column: 1 / -1; border-right: none; border-top: 1px solid rgba(99, 102, 241, 0.15); padding-top: 18px; }
            .live-stat-value { font-size: 1.8rem; }
        }
        [data-theme="light"] .live-stats-container {
            background: #ffffff;
            box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
        }

        /* ═══ How It Works — 3 steps visual ═══ */
        .how-it-works-section {
            padding: 80px 20px;
            max-width: 1200px;
            margin: 0 auto;
        }
        .how-it-works-header {
            text-align: center;
            margin-bottom: 60px;
        }
        .how-it-works-header h2 {
            font-size: clamp(1.8rem, 4vw, 2.6rem);
            font-weight: 800;
            margin: 14px 0 12px;
            letter-spacing: -0.01em;
        }
        .how-it-works-header p {
            color: var(--text-secondary);
            font-size: 1.02rem;
            max-width: 620px;
            margin: 0 auto;
        }
        .how-steps {
            display: grid;
            grid-template-columns: 1fr auto 1fr auto 1fr;
            gap: 24px;
            align-items: flex-start;
            margin-bottom: 40px;
        }
        .how-step {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 18px;
            padding: 36px 28px;
            text-align: center;
            position: relative;
            transition: transform 0.2s, border-color 0.2s;
        }
        .how-step:hover {
            transform: translateY(-4px);
            border-color: rgba(99, 102, 241, 0.3);
        }
        .how-step-num {
            position: absolute;
            top: -16px;
            left: 50%;
            transform: translateX(-50%);
            width: 32px;
            height: 32px;
            background: linear-gradient(135deg, #6366f1, #a855f7);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 800;
            font-size: 0.95rem;
            box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
        }
        .how-step-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 56px;
            height: 56px;
            border-radius: 14px;
            background: rgba(99, 102, 241, 0.12);
            color: #a5b4fc;
            margin: 12px auto 18px;
        }
        .how-step h3 {
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--text-primary);
            margin: 0 0 10px;
        }
        .how-step p {
            color: var(--text-secondary);
            font-size: 0.92rem;
            line-height: 1.65;
            margin: 0;
        }
        .how-arrow {
            font-size: 2rem;
            color: rgba(99, 102, 241, 0.35);
            font-weight: 300;
            padding-top: 56px;
        }
        .how-it-works-cta {
            text-align: center;
            margin-top: 12px;
        }
        @media (max-width: 900px) {
            .how-it-works-section { padding: 60px 16px; }
            .how-steps { grid-template-columns: 1fr; gap: 32px; }
            .how-arrow { display: none; }
            .how-step { padding: 32px 24px; }
        }

        @media (max-width: 768px) {
            .roadmap-cta {
                padding: 40px 16px;
            }
            .roadmap-cta-container {
                padding: 28px 20px;
            }
            .roadmap-cta-content h2 {
                font-size: 1.4rem;
            }
        }

        /* Light mode */
        [data-theme="light"] .roadmap-cta-container {
            background: #ffffff;
            border-color: rgba(0,0,0,0.08);
        }

        [data-theme="light"] .roadmap-cta-phase.done {
            background: rgba(34, 197, 94, 0.04);
            border-color: rgba(34, 197, 94, 0.1);
        }

        [data-theme="light"] .roadmap-cta-phase.active {
            background: rgba(59, 130, 246, 0.04);
            border-color: rgba(59, 130, 246, 0.1);
        }

        [data-theme="light"] .roadmap-cta-phase.planned {
            background: rgba(0, 0, 0, 0.02);
            border-color: rgba(0, 0, 0, 0.06);
        }

        /* ============================================ */
        /* INSTALL SECTION                              */
        /* ============================================ */

        .install {
            padding: 80px 40px 120px;
            max-width: 900px;
            margin: 0 auto;
            text-align: center;
        }

        .install h2 {
            font-size: 2.5rem;
            font-weight: 700;
            letter-spacing: -1px;
            margin-bottom: 16px;
        }

        .install-sub {
            color: #71717a;
            font-size: 1.1rem;
            margin-bottom: 48px;
        }

        .install-options {
            display: flex;
            gap: 20px;
            justify-content: center;
        }

        .install-card {
            background: #18181b;
            border: 1px solid var(--border-subtle);
            border-radius: 20px;
            padding: 32px;
            flex: 1;
            max-width: 340px;
            text-align: left;
            transition: border-color 0.3s;
        }

        .install-card:hover {
            border-color: rgba(255,255,255,0.12);
        }

        .install-card.disabled {
            opacity: 0.5;
        }

        .install-icon {
            width: 48px;
            height: 48px;
            background: var(--bg-hover);
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            margin-bottom: 20px;
        }

        .install-card h3 {
            font-size: 1.1rem;
            font-weight: 600;
            margin-bottom: 8px;
        }

        .install-card p {
            color: #71717a;
            font-size: 0.9rem;
            margin-bottom: 20px;
            line-height: 1.6;
        }

        .install-card .btn {
            width: 100%;
        }

        .badge-soon {
            display: inline-block;
            background: rgba(251, 191, 36, 0.1);
            color: #fbbf24;
            font-size: 0.7rem;
            padding: 4px 10px;
            border-radius: 6px;
            margin-left: 8px;
        }

        /* ============================================ */
        /* INSTALL MODAL                                */
        /* ============================================ */

        .install-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            z-index: 10000;
            overflow-y: auto;
            padding: 40px 20px;
        }

        .install-modal.active {
            display: flex;
            justify-content: center;
            align-items: flex-start;
            animation: fadeIn 0.2s ease;
        }

        .install-modal-content {
            background: #1e293b;
            border-radius: 16px;
            max-width: 600px;
            width: 100%;
            padding: 40px;
            position: relative;
            border: 1px solid var(--border-hover);
            box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
        }

        .install-modal-close {
            position: absolute;
            top: 16px;
            right: 16px;
            background: none;
            border: none;
            color: #94a3b8;
            font-size: 28px;
            cursor: pointer;
            padding: 8px;
            line-height: 1;
            transition: color 0.2s;
        }

        .install-modal-close:hover {
            color: white;
        }

        .install-modal h2 {
            font-size: 1.8rem;
            margin-bottom: 8px;
            color: white;
        }

        .install-modal-subtitle {
            color: #94a3b8;
            margin-bottom: 32px;
        }

        .install-step {
            display: flex;
            gap: 20px;
            margin-bottom: 28px;
            padding-bottom: 28px;
            border-bottom: 1px solid var(--border-hover);
        }

        .install-step:last-of-type {
            border-bottom: none;
            margin-bottom: 20px;
        }

        .install-step-number {
            width: 36px;
            height: 36px;
            background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 1rem;
            flex-shrink: 0;
        }

        .install-step-content {
            flex: 1;
        }

        .install-step-content h3 {
            font-size: 1.1rem;
            margin-bottom: 8px;
            color: white;
        }

        .install-step-content p {
            color: #94a3b8;
            font-size: 0.95rem;
            margin-bottom: 16px;
            line-height: 1.5;
        }

        .install-browsers {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }

        .browser-btn {
            background: var(--border-hover);
            border: 1px solid var(--border-hover);
            border-radius: 8px;
            padding: 10px 16px;
            color: white;
            text-decoration: none;
            font-size: 0.9rem;
            font-weight: 500;
            transition: background-color 0.2s, border-color 0.2s;
        }

        .browser-btn:hover {
            background: var(--border-hover);
            border-color: rgba(255,255,255,0.25);
        }

        .install-instructions {
            background: rgba(0,0,0,0.3);
            border-radius: 8px;
            padding: 16px;
            margin-bottom: 12px;
        }

        .instruction-item {
            color: #cbd5e1;
            font-size: 0.9rem;
            margin-bottom: 10px;
            line-height: 1.5;
        }

        .instruction-item:last-child {
            margin-bottom: 0;
        }

        .instruction-item code {
            background: rgba(99, 102, 241, 0.3);
            padding: 2px 8px;
            border-radius: 4px;
            font-family: monospace;
            font-size: 0.85rem;
        }

        .install-note {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            background: rgba(99, 102, 241, 0.15);
            border: 1px solid rgba(99, 102, 241, 0.3);
            border-radius: 8px;
            padding: 12px 14px;
            font-size: 0.85rem;
            color: #a5b4fc;
        }

        .note-icon {
            background: #6366f1;
            color: white;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.75rem;
            font-weight: 700;
            flex-shrink: 0;
        }

        .install-final-btn {
            width: 100%;
            text-align: center;
            padding: 14px 24px;
            font-size: 1rem;
        }

        .install-done {
            text-align: center;
            padding-top: 20px;
            border-top: 1px solid var(--border-hover);
        }

        .install-done p {
            color: #94a3b8;
            font-size: 0.95rem;
        }

        .install-done a {
            color: #a5b4fc;
        }

        .install-done a:hover {
            color: white;
        }

        @media (max-width: 600px) {
            .install-modal-content {
                padding: 30px 20px;
            }

            .install-step {
                flex-direction: column;
                gap: 12px;
            }

            .install-browsers {
                flex-direction: column;
            }

            .browser-btn {
                text-align: center;
            }
        }

        /* Light theme modal */
        [data-theme="light"] .install-modal-content {
            background: #ffffff;
            border-color: rgba(0,0,0,0.1);
        }

        [data-theme="light"] .install-modal h2 {
            color: #18181b;
        }

        [data-theme="light"] .install-step-content h3 {
            color: #18181b;
        }

        [data-theme="light"] .install-step-content p,
        [data-theme="light"] .install-modal-subtitle {
            color: #52525b;
        }

        [data-theme="light"] .install-instructions {
            background: #f4f4f5;
        }

        [data-theme="light"] .instruction-item {
            color: #3f3f46;
        }

        [data-theme="light"] .browser-btn {
            background: #f4f4f5;
            border-color: #e4e4e7;
            color: #18181b;
        }

        [data-theme="light"] .browser-btn:hover {
            background: #e4e4e7;
        }

        [data-theme="light"] .install-done p {
            color: #52525b;
        }

        /* ============================================ */
        /* FOOTER                                       */
        /* ============================================ */

        footer {
            padding: 60px 40px 30px;
            border-top: 1px solid var(--bg-hover);
        }

        .footer-container {
            max-width: 1400px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
            gap: 40px;
        }
        @media (max-width: 1100px) {
            .footer-container {
                grid-template-columns: 2fr 1fr 1fr;
                gap: 32px;
            }
        }
        @media (max-width: 780px) {
            .footer-container {
                grid-template-columns: 1fr 1fr;
                gap: 28px;
            }
        }
        @media (max-width: 520px) {
            .footer-container {
                grid-template-columns: 1fr;
                gap: 24px;
            }
        }

        .footer-col {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .footer-col-title {
            font-size: 0.75rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: var(--text-dimmed);
            margin-bottom: 4px;
        }

        .footer-col a {
            color: #71717a;
            text-decoration: none;
            font-size: 0.85rem;
            transition: color 0.2s;
        }

        .footer-col a:hover {
            color: #a5b4fc;
        }

        .footer-brand-col {
            gap: 10px;
        }

        .footer-brand {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .footer-logo {
            width: 28px;
            height: 28px;
            border-radius: 8px;
        }

        .footer-brand-name {
            font-size: 1rem;
            font-weight: 600;
            color: var(--text-primary);
        }

        .footer-about {
            color: var(--text-muted);
            font-size: 0.82rem;
            line-height: 1.6;
            margin: 0;
            max-width: 280px;
        }

        .footer-text {
            color: #52525b;
            font-size: 0.8rem;
        }

        .footer-bottom {
            max-width: 1400px;
            margin: 30px auto 0;
            padding-top: 20px;
            border-top: 1px solid rgba(255,255,255,0.04);
            text-align: center;
        }

        .footer-bottom a {
            color: #52525b;
            text-decoration: none;
            font-size: 0.8rem;
            transition: color 0.2s;
        }

        .footer-bottom a:hover {
            color: #a1a1aa;
        }

        .footer-bottom a:hover .heart {
            animation: pulse-heart 0.5s ease infinite;
        }

        .heart {
            color: #ef4444;
            display: inline-block;
        }

        @keyframes pulse-heart {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.3); }
        }

        /* ============================================ */
        /* MOBILE                                       */
        /* ============================================ */

        .mobile-menu-btn {
            display: none;
            background: none;
            border: none;
            color: white;
            font-size: 1.3rem;
            cursor: pointer;
            padding: 8px;
            z-index: 1001;
        }

        /* Mobile menu - full screen overlay */
        .nav-links.active {
            display: flex !important;
            flex-direction: column !important;
            position: fixed !important;
            top: 0 !important;
            right: 0 !important;
            bottom: 0 !important;
            left: 0 !important;
            width: 100% !important;
            height: 100vh !important;
            height: 100dvh !important;
            background: #0f172a !important;
            border-left: none !important;
            padding: 90px 32px 40px !important;
            gap: 4px !important;
            z-index: 9999 !important;
            overflow-y: auto !important;
            box-shadow: none !important;
            animation: fadeIn 0.2s ease-out !important;
        }

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

        .nav-links.active a {
            font-size: 1rem !important;
            padding: 16px 16px !important;
            color: rgba(255,255,255,0.85) !important;
            border-radius: 10px !important;
            transition: color 0.15s ease, background-color 0.15s ease !important;
            border-bottom: none !important;
        }

        .nav-links.active a:hover {
            background: rgba(255, 255, 255, 0.08) !important;
            color: white !important;
        }

        /* Auth link in mobile sidebar — inline with other links, but highlighted */
        .nav-links.active .nav-auth-link {
            margin-top: 12px !important;
            text-align: center !important;
            font-weight: 600 !important;
            padding: 16px !important;
            border-radius: 14px !important;
            font-size: 1rem !important;
            background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
            color: white !important;
            border: none !important;
        }
        .nav-links.active .nav-auth-link.logged-in {
            background: rgba(34, 197, 94, 0.12) !important;
            color: #4ade80 !important;
            border: 1px solid rgba(34, 197, 94, 0.2) !important;
        }

        @media (max-width: 768px) {
            /* Lock nav-container height só it doesn't shrink when hamburger goes fixed */
            .nav-container {
                min-height: 48px;
            }

            .mobile-menu-btn.active {
                position: fixed;
                top: 20px;
                right: 30px;
                z-index: 10000;
                color: white;
                font-size: 1.5rem;
            }
        }

        @media (max-width: 1024px) {
            .hero-container {
                grid-template-columns: 1fr;
                gap: 60px;
            }

            .hero h1 {
                font-size: 3rem;
            }

            .hero-preview {
                max-width: 450px;
                margin: 0 auto;
            }


            .bento-grid {
                grid-template-columns: repeat(6, 1fr);
            }

            .bento-carousel { grid-column: span 6; }
            .bento-countdown { grid-column: span 6; }
            .bento-prices { grid-column: span 2; }
            .bento-gps { grid-column: span 2; }
            .bento-sync { grid-column: span 2; }
            .bento-actions { grid-column: span 6; }

            /* Dashboard section */
            .bento-all-auctions { grid-column: span 6; }
            .bento-filters { grid-column: span 6; }
            .bento-my-favorites { grid-column: span 2; }
            .bento-ai { grid-column: span 2; }
            .bento-alerts { grid-column: span 2; }
            .bento-map { grid-column: span 6; }
        }

        @media (max-width: 768px) {
            #main-nav { padding: 12px 16px; }

            .nav-container { padding: 8px 14px; border-radius: 12px; }

            .nav-links { display: none; }

            .mobile-menu-btn { display: block; }

            /* On mobile: hide search (it's in hamburger/explorar), show only theme toggle */
            .nav-right-controls {
                margin-left: auto;
                margin-right: 8px;
            }
            .nav-right-controls .nav-search { display: none; }
            .nav-right-controls .theme-toggle {
                width: 36px;
                height: 36px;
            }

            .hero {
                padding: 110px 20px 50px;
            }

            .hero h1 {
                font-size: clamp(1.8rem, 6vw, 2.5rem);
                letter-spacing: -1px;
            }

            .hero-description {
                font-size: 0.95rem;
            }

            .hero-buttons {
                flex-direction: column;
            }

            .btn {
                width: 100%;
            }

            .bento {
                padding: 40px 16px;
            }

            .bento-header h2 {
                font-size: 1.6rem;
            }

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

            .bento-carousel,
            .bento-countdown,
            .bento-prices,
            .bento-gps,
            .bento-sync,
            .bento-actions,
            .bento-all-auctions,
            .bento-filters,
            .bento-my-favorites,
            .bento-ai,
            .bento-alerts,
            .bento-map {
                grid-column: span 1;
            }

            .install {
                padding: 60px 20px;
            }

            .install h2 {
                font-size: 1.8rem;
            }

            .install-options {
                flex-direction: column;
                align-items: center;
            }

            .install-card {
                max-width: 100%;
            }

            footer {
                padding: 40px 20px 24px;
            }

            .footer-container {
                grid-template-columns: 1fr 1fr;
                gap: 28px;
            }

            .footer-brand-col {
                grid-column: span 2;
            }

            .footer-bottom {
                margin-top: 20px;
            }
        }

/* ============================================ */
/* THEME TOGGLE BUTTON                         */
/* ============================================ */

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, background-color 0.2s;
}

.theme-toggle:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

[data-theme="light"] .theme-toggle:hover {
    background: rgba(0,0,0,0.05);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    display: none;
    line-height: 0;
}

[data-theme="light"] .theme-toggle .icon-moon {
    display: flex;
}

[data-theme="dark"] .theme-toggle .icon-sun,
:root:not([data-theme]) .theme-toggle .icon-sun {
    display: flex;
}

/* ============================================ */
/* BACK TO TOP BUTTON                          */
/* ============================================ */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}

/* Hide back-to-top when a modal/drawer is open (body overflow hidden) */
body[style*="overflow: hidden"] .back-to-top,
body[style*="overflow:hidden"] .back-to-top {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* ============================================ */
/* ROADMAP (Sobre page)                        */
/* ============================================ */

.roadmap-phases {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 24px;
}

.roadmap-phase {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
}

.roadmap-phase-header {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.roadmap-phase-header.done {
    background: rgba(34, 197, 94, 0.08);
    border-bottom: 1px solid rgba(34, 197, 94, 0.15);
}

.roadmap-phase-header.active {
    background: rgba(59, 130, 246, 0.08);
    border-bottom: 1px solid rgba(59, 130, 246, 0.15);
}

.roadmap-phase-header.planned {
    background: rgba(161, 161, 170, 0.05);
    border-bottom: 1px solid var(--border-color);
}

.roadmap-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 100px;
    white-space: nowrap;
}

.roadmap-badge.done {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.roadmap-badge.active {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.roadmap-badge.planned {
    background: rgba(161, 161, 170, 0.1);
    color: var(--text-muted);
}

.roadmap-items {
    padding: 20px 24px;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
}

.roadmap-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.roadmap-item svg {
    flex-shrink: 0;
    margin-top: 2px;
}

/* Light mode roadmap */
[data-theme="light"] .roadmap-phase {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .roadmap-phase-header.done {
    background: rgba(34, 197, 94, 0.06);
    border-bottom-color: rgba(34, 197, 94, 0.12);
}

[data-theme="light"] .roadmap-phase-header.active {
    background: rgba(59, 130, 246, 0.06);
    border-bottom-color: rgba(59, 130, 246, 0.12);
}

[data-theme="light"] .roadmap-phase-header.planned {
    background: rgba(0, 0, 0, 0.02);
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .roadmap-badge.done {
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
}

[data-theme="light"] .roadmap-badge.active {
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
}

[data-theme="light"] .roadmap-badge.planned {
    background: rgba(0, 0, 0, 0.06);
    color: #71717a;
}

[data-theme="light"] .roadmap-item {
    color: #52525b;
}

/* ============================================ */
/* LIGHT MODE OVERRIDES                        */
/* ============================================ */

[data-theme="light"] body {
    background: #f8fafc;
    color: #18181b;
}

[data-theme="light"] .nav-container {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0,0,0,0.08);
}

[data-theme="light"] .nav-brand {
    color: #18181b;
}

[data-theme="light"] .nav-links a {
    color: #52525b;
}

[data-theme="light"] .nav-links a:hover {
    color: #18181b;
    background: rgba(0,0,0,0.05);
}

[data-theme="light"] .mobile-menu-btn {
    color: #18181b;
}

[data-theme="light"] .nav-links.active {
    background: #ffffff !important;
    border-left: none !important;
    box-shadow: none !important;
}

[data-theme="light"] .nav-links.active a {
    color: #374151 !important;
}

[data-theme="light"] .nav-links.active a:hover {
    color: #111827 !important;
    background: rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .nav-links.active .nav-auth-link {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
    color: white !important;
}
[data-theme="light"] .nav-links.active .nav-auth-link.logged-in {
    background: rgba(34, 197, 94, 0.1) !important;
    color: #16a34a !important;
    border: 1px solid rgba(34, 197, 94, 0.2) !important;
}

[data-theme="light"] .mobile-menu-btn.active {
    color: #18181b !important;
}

[data-theme="light"] .hero-bg {
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(120, 119, 198, 0.08), transparent),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(59, 130, 246, 0.05), transparent);
}

[data-theme="light"] .hero h1 {
    color: #18181b;
}

[data-theme="light"] .hero-description {
    color: #52525b;
}

[data-theme="light"] .hero-badge {
    background: rgba(0,0,0,0.03);
    border-color: rgba(0,0,0,0.08);
    color: #52525b;
}

[data-theme="light"] .btn-secondary {
    background: rgba(0,0,0,0.03);
    border-color: rgba(0,0,0,0.1);
    color: #18181b;
}

[data-theme="light"] .btn-secondary:hover {
    background: rgba(0,0,0,0.06);
}

[data-theme="light"] .card-mock {
    background: #ffffff;
    border-color: rgba(0,0,0,0.06);
    box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 25px 50px -12px rgba(0,0,0,0.15);
}

[data-theme="light"] .card-mock-header {
    background: #f8fafc;
    border-bottom-color: rgba(0,0,0,0.05);
}

[data-theme="light"] .card-mock-ref { color: #334155; }
[data-theme="light"] .card-mock-prefix.lo { color: #2563eb; }

[data-theme="light"] .card-mock-type-badge.imóvel {
    background: #ecfdf5;
    color: #047857;
}

[data-theme="light"] .card-mock-type-badge.veículo {
    background: #eff6ff;
    color: #1d4ed8;
}

[data-theme="light"] .card-mock-type-badge.equipamento,
[data-theme="light"] .card-mock-type-badge.máquina {
    background: #f5f3ff;
    color: #6d28d9;
}

[data-theme="light"] .card-mock-type-badge.mobiliário {
    background: #fffbeb;
    color: #b45309;
}

[data-theme="light"] .card-mock-type-badge.direito {
    background: #fdf2f8;
    color: #be185d;
}

[data-theme="light"] .card-mock-amount { color: #059669; }
[data-theme="light"] .card-mock-label { color: #94a3b8; }
[data-theme="light"] .card-mock-separator { color: #cbd5e1; }

[data-theme="light"] .card-mock-tag {
    background: #f1f5f9;
    color: #475569;
}

[data-theme="light"] .card-mock-meta { color: #64748b; }
[data-theme="light"] .card-mock-meta svg { color: #94a3b8; }
[data-theme="light"] .card-mock-countdown { color: #d97706; }

[data-theme="light"] .card-mock-actions {
    border-top-color: rgba(0,0,0,0.04);
}

[data-theme="light"] .card-mock-action { color: #94a3b8; }

[data-theme="light"] .card-mock-action:hover {
    background: #f1f5f9;
    color: #475569;
}

[data-theme="light"] .card-mock-fav:hover {
    background: #fffbeb;
    color: #f59e0b;
}

[data-theme="light"] .bento {
    background: #f8fafc;
}

[data-theme="light"] .bento-header h2 {
    color: #18181b;
}

[data-theme="light"] .bento-header p {
    color: #52525b;
}

[data-theme="light"] .section-tag {
    background: rgba(0,0,0,0.05);
    color: #52525b;
}

[data-theme="light"] .bento-card {
    background: #ffffff;
    border-color: rgba(0,0,0,0.08);
}

[data-theme="light"] .bento-card h2 {
    color: #18181b;
}

[data-theme="light"] .bento-card p {
    color: #52525b;
}

[data-theme="light"] .carousel-thumb {
    background: #f4f4f5;
    border-color: rgba(0,0,0,0.1);
}

[data-theme="light"] .countdown-box {
    background: #f4f4f5;
    border-color: rgba(0,0,0,0.06);
}

[data-theme="light"] .countdown-box .num {
    color: #18181b;
}

[data-theme="light"] .countdown-box .label {
    color: #71717a;
}

[data-theme="light"] .price-row {
    background: #f4f4f5;
    border-color: rgba(0,0,0,0.06);
}

[data-theme="light"] .price-label {
    color: #71717a;
}

[data-theme="light"] .price-value {
    color: #18181b;
}

[data-theme="light"] .maps-btn {
    background: #3b82f6;
}

[data-theme="light"] .sync-btn {
    background: #22c55e;
    color: #ffffff;
}

[data-theme="light"] .lightbox-demo {
    background: #f4f4f5;
    border-color: rgba(0,0,0,0.1);
}

[data-theme="light"] .lightbox-nav {
    background: rgba(0,0,0,0.1);
    color: #18181b;
}

[data-theme="light"] .lightbox-arrows span {
    background: rgba(0,0,0,0.08);
    color: #3f3f46;
}

[data-theme="light"] .lightbox-thumb {
    background: linear-gradient(135deg, #e4e4e7, #d4d4d8);
    border-color: rgba(0,0,0,0.1);
}

[data-theme="light"] .dashboard-preview {
    background: #f4f4f5;
    border-color: rgba(0,0,0,0.06);
}

[data-theme="light"] .dash-stat .num {
    color: #18181b;
}

[data-theme="light"] .dash-stat .label {
    color: #71717a;
}

[data-theme="light"] .filter-tags .tag {
    background: #e4e4e7;
    color: #18181b;
}

[data-theme="light"] .filter-tags .tag.active {
    background: #3b82f6;
    color: white;
}

[data-theme="light"] .map-preview {
    background: rgba(0,0,0,0.02);
    border-color: rgba(0,0,0,0.08);
}

[data-theme="light"] .map-pin {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

[data-theme="light"] .map-pin-cluster {
    background: rgba(245, 158, 11, 0.1);
}


[data-theme="light"] .ai-score.considerar {
    background: rgba(180, 130, 0, 0.15);
    color: #92400e;
}

[data-theme="light"] .alert-item {
    background: rgba(180, 130, 0, 0.1);
    color: #92400e;
}

[data-theme="light"] .countdown-text {
    color: #92400e;
}

[data-theme="light"] .badge-soon {
    color: #92400e;
}

[data-theme="light"] .filter-chip {
    background: rgba(109, 40, 217, 0.1);
    border-color: rgba(109, 40, 217, 0.2);
    color: #6d28d9;
}

[data-theme="light"] .countdown-value {
    color: #92400e;
}

[data-theme="light"] .install {
    background: #f8fafc;
}

[data-theme="light"] .install h2 {
    color: #18181b;
}

[data-theme="light"] .install > p {
    color: #52525b;
}

[data-theme="light"] .install-card {
    background: #ffffff;
    border-color: rgba(0,0,0,0.08);
}

[data-theme="light"] .install-card h3 {
    color: #18181b;
}

[data-theme="light"] .install-card p {
    color: #52525b;
}

[data-theme="light"] .install-card ol li {
    color: #52525b;
}

[data-theme="light"] footer {
    border-color: rgba(0,0,0,0.05);
}

[data-theme="light"] .footer-text {
    color: #71717a;
}

[data-theme="light"] .footer-col a {
    color: #71717a;
}

[data-theme="light"] .footer-col a:hover {
    color: #6366f1;
}

[data-theme="light"] .footer-col-title {
    color: #a1a1aa;
}

[data-theme="light"] .footer-brand-name {
    color: #18181b;
}

[data-theme="light"] .footer-bottom {
    border-top-color: rgba(0,0,0,0.06);
}

[data-theme="light"] .footer-bottom a {
    color: #71717a;
}

[data-theme="light"] .footer-bottom a:hover {
    color: #52525b;
}

/* ============================================ */
/* ADDITIONAL FIXES - LIGHT MODE               */
/* ============================================ */

/* Fix hero card image background in light mode */
[data-theme="light"] .card-image {
    background: linear-gradient(135deg, #e2e8f0, #c7d2fe);
}

/* ============================================ */
/* ADDITIONAL FIXES - DARK MODE                */
/* ============================================ */

/* Ensure install cards are dark in dark mode */
html[data-theme="dark"] .install-card {
    background: #18181b;
    border-color: var(--border-subtle);
}

html[data-theme="dark"] .install-card h3 {
    color: #fafafa;
}

html[data-theme="dark"] .install-card p {
    color: #a1a1aa;
}

html[data-theme="dark"] .install-card ol li {
    color: #a1a1aa;
}

html[data-theme="dark"] .install-icon {
    background: var(--bg-hover);
}

/* Fix "Brevemente" disabled button in dark mode */
html[data-theme="dark"] .install-card.disabled .btn {
    background: var(--bg-hover);
    color: #52525b;
    border-color: var(--border-hover);
}

/* Fix "Instalar agora" button in dark mode */
html[data-theme="dark"] .install-card .btn-primary {
    background: #ffffff;
    color: #0a0a0b;
}

html[data-theme="dark"] .install-card .btn-primary:hover {
    background: #e4e4e7;
}

/* ============================================ */
/* BUTTON CONSISTENCY FIXES                    */
/* ============================================ */

[data-theme="light"] .btn-primary {
    background: #18181b;
    color: #ffffff;
}

[data-theme="light"] .btn-primary:hover {
    background: #27272a;
}

[data-theme="light"] .install-card .btn-primary {
    background: #18181b;
    color: #ffffff;
}

[data-theme="light"] .install-card .btn-primary:hover {
    background: #27272a;
}

[data-theme="light"] .install-card.disabled .btn {
    background: #f4f4f5;
    color: #a1a1aa;
    border-color: rgba(0,0,0,0.08);
}

/* ============================================ */
/* INSTALL MODAL CHOICE CARDS                  */
/* ============================================ */

.install-choice-cards {
    display: flex;
    gap: 20px;
    margin-top: 24px;
}

.install-choice-card {
    flex: 1;
    background: var(--bg-hover);
    border: 2px solid var(--border-hover);
    border-radius: 16px;
    padding: 32px 24px;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
    text-align: center;
}

.install-choice-card:hover {
    background: var(--border-hover);
    border-color: #6366f1;
    transform: translateY(-4px);
}

.install-choice-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
}

.install-choice-card h3 {
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 12px;
    font-weight: 600;
}

.install-choice-card p {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.install-choice-tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    background: var(--border-hover);
    color: #94a3b8;
}

.install-choice-tag.recommended {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
}

.install-back-btn {
    display: block;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 0.95rem;
    cursor: pointer;
    padding: 8px 0;
    margin-bottom: 20px;
    transition: color 0.2s;
}

.install-back-btn:hover {
    color: white;
}

/* Light theme */
[data-theme="light"] .install-choice-card {
    background: #f8fafc;
    border-color: #e2e8f0;
}

[data-theme="light"] .install-choice-card:hover {
    background: #f1f5f9;
    border-color: #6366f1;
}

[data-theme="light"] .install-choice-card h3 {
    color: #18181b;
}

[data-theme="light"] .install-choice-tag {
    background: #e2e8f0;
    color: #64748b;
}

[data-theme="light"] .install-back-btn {
    color: #64748b;
}

[data-theme="light"] .install-back-btn:hover {
    color: #18181b;
}

@media (max-width: 600px) {
    .install-choice-cards {
        flex-direction: column;
    }
}

/* ═══ Small phone breakpoints (<420px / <375px) ═══ */
@media (max-width: 420px) {
    /* Hero */
    .hero-content h1 { font-size: clamp(1.6rem, 8vw, 2.5rem); }
    .hero-description { font-size: 0.95rem; }
    .hero-badge { font-size: 0.68rem; padding: 6px 12px; }
    .hero-buttons { flex-direction: column; gap: 8px; }
    .hero-buttons .btn { width: 100%; justify-content: center; }

    /* Stats inline strip */
    .hero-stats-inline { flex-direction: column; gap: 10px; padding: 12px 16px; }
    .hero-stat-sep { width: 100%; height: 1px; }
    .hero-stat-inline { flex-direction: row; gap: 8px; align-items: center; }
    .hero-stat-inline strong { font-size: 1.1rem; }

    /* Sources rail */
    .hero-sources { flex-direction: column; gap: 8px; }
    .hero-sources-list { gap: 4px; }
    .hero-source-pill { font-size: 0.68rem; padding: 4px 8px; }

    /* General */
    .section-eyebrow { font-size: 0.65rem; }
    .btn { padding: 12px 20px; font-size: 0.88rem; }
}

@media (max-width: 375px) {
    .hero-content h1 { font-size: 1.5rem; }
    .hero-description { font-size: 0.88rem; line-height: 1.6; }
    .hero-preview { display: none; } /* Hide mock card on very small screens */
    .hero-stats-inline strong { font-size: 1rem; }
    .hero-stats-inline span { font-size: 0.65rem; }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
