/* ═══════════════════════════════════════════════════════════
   ongrnd – Distributed Data Integrity Protocol
   Design System: Dark/Light mode, accent-driven, smooth UI
   ═══════════════════════════════════════════════════════════ */

/* ── CSS Variables ──────────────────────────────────────── */
:root {
    /* Accent – electric violet-blue */
    --accent: #7c5cfc;
    --accent-hover: #6a48e8;
    --accent-light: #9b82fd;
    --accent-soft: rgba(124, 92, 252, 0.12);
    --accent-glow: rgba(124, 92, 252, 0.25);

    /* Status */
    --green: #34d399;
    --green-soft: rgba(52, 211, 153, 0.12);
    --red: #f87171;
    --red-soft: rgba(248, 113, 113, 0.12);
    --yellow: #fbbf24;
    --yellow-soft: rgba(251, 191, 36, 0.12);
    --blue: #60a5fa;
    --blue-soft: rgba(96, 165, 250, 0.12);

    /* Radius & Spacing */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.14), 0 4px 10px rgba(0,0,0,0.08);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.2), 0 8px 20px rgba(0,0,0,0.1);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Fonts */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* ── Dark Theme (default) ──────────────────────────────── */
[data-theme="dark"] {
    --bg-primary: #0c0c0f;
    --bg-secondary: #141418;
    --bg-tertiary: #1a1a20;
    --bg-card: #16161c;
    --bg-card-hover: #1c1c24;
    --bg-input: #1a1a22;
    --bg-overlay: rgba(0, 0, 0, 0.65);

    --border-primary: rgba(255, 255, 255, 0.06);
    --border-secondary: rgba(255, 255, 255, 0.10);
    --border-accent: rgba(124, 92, 252, 0.30);

    --text-primary: #e8e8ed;
    --text-secondary: #9898a6;
    --text-tertiary: #6b6b7a;
    --text-inverse: #0c0c0f;

    --shadow-card: 0 2px 8px rgba(0,0,0,0.3), 0 1px 3px rgba(0,0,0,0.2);
    --shadow-card-hover: 0 8px 24px rgba(0,0,0,0.4), 0 4px 8px rgba(0,0,0,0.25);

    color-scheme: dark;
}

/* ── Light Theme ───────────────────────────────────────── */
[data-theme="light"] {
    --bg-primary: #f5f5f7;
    --bg-secondary: #ebebef;
    --bg-tertiary: #e2e2e8;
    --bg-card: #ffffff;
    --bg-card-hover: #fafafa;
    --bg-input: #f0f0f4;
    --bg-overlay: rgba(0, 0, 0, 0.35);

    --border-primary: rgba(0, 0, 0, 0.06);
    --border-secondary: rgba(0, 0, 0, 0.10);
    --border-accent: rgba(124, 92, 252, 0.25);

    --text-primary: #1a1a2e;
    --text-secondary: #5a5a72;
    --text-tertiary: #8a8a9e;
    --text-inverse: #ffffff;

    --shadow-card: 0 1px 4px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-card-hover: 0 6px 20px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.05);

    color-scheme: light;
}

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

html {
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    transition: background var(--transition-base), color var(--transition-base);
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}
a:hover {
    color: var(--accent-hover);
}

img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── Typography ────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

.text-accent { color: var(--accent) !important; }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }
.text-green { color: var(--green) !important; }
.text-red { color: var(--red) !important; }
.text-yellow { color: var(--yellow) !important; }
.text-blue { color: var(--blue) !important; }
.font-mono { font-family: var(--font-mono); }
.font-semibold { font-weight: 600; }
.fw-600 { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-sm { font-size: 0.8rem; }
.text-xs { font-size: 0.7rem; }
.text-lg { font-size: 1.15rem; }
.text-xl { font-size: 1.4rem; }
.text-2xl { font-size: 1.8rem; }
.text-3xl { font-size: 2.4rem; }
.text-center { text-align: center; }

/* ── Layout ────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-xs { gap: 6px; }
.gap-sm { gap: 10px; }
.gap-md { gap: 16px; }
.gap-lg { gap: 24px; }
.gap-xl { gap: 32px; }
.flex-1 { flex: 1; }
.flex-wrap { flex-wrap: wrap; }

.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .container { padding: 0 16px; }
}

/* ── Card ──────────────────────────────────────────────── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-base);
}

.card:hover {
    border-color: var(--border-secondary);
    box-shadow: var(--shadow-card-hover);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-primary);
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-title i {
    color: var(--accent);
    width: 20px;
    height: 20px;
}

/* ── Stat Card ─────────────────────────────────────────── */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.stat-icon.accent { background: var(--accent-soft); color: var(--accent); }
.stat-icon.green { background: var(--green-soft); color: var(--green); }
.stat-icon.red { background: var(--red-soft); color: var(--red); }
.stat-icon.yellow { background: var(--yellow-soft); color: var(--yellow); }
.stat-icon.blue { background: var(--blue-soft); color: var(--blue); }

.stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.78rem;
    color: var(--text-tertiary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ── Button ────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    font-weight: 600;
    border: 1px solid transparent;
    transition: all var(--transition-fast);
    white-space: nowrap;
    user-select: none;
    line-height: 1.4;
}

.btn i { width: 16px; height: 16px; }

.btn-primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 2px 8px var(--accent-glow);
}
.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 16px var(--accent-glow);
    transform: translateY(-1px);
}
.btn-primary.btn-disabled,
.btn-primary:disabled {
    background: var(--bg-tertiary);
    color: var(--text-tertiary);
    border-color: var(--border-secondary);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
    opacity: .65;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-secondary);
}
.btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-accent);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: 8px 12px;
}
.btn-ghost:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.btn-danger {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
}
.btn-danger:hover {
    background: #ef4444;
    transform: translateY(-1px);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
    border-radius: var(--radius-lg);
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: var(--radius-md);
}

.btn:disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* ── Input ─────────────────────────────────────────────── */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.input {
    background: var(--bg-input);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    font-size: 0.88rem;
    color: var(--text-primary);
    transition: all var(--transition-fast);
    outline: none;
    width: 100%;
}

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

.input::placeholder {
    color: var(--text-tertiary);
}

select.input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239898a6' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* ── Badge ─────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.badge-accent { background: var(--accent-soft); color: var(--accent); }
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-red { background: var(--red-soft); color: var(--red); }
.badge-yellow { background: var(--yellow-soft); color: var(--yellow); }
.badge-blue { background: var(--blue-soft); color: var(--blue); }
.badge-neutral {
    background: rgba(152,152,166,0.12);
    color: var(--text-secondary);
}

/* ── Table ─────────────────────────────────────────────── */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius-lg);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

thead th {
    text-align: left;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-primary);
    white-space: nowrap;
}

tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-primary);
    color: var(--text-secondary);
    vertical-align: middle;
}

tbody tr {
    transition: background var(--transition-fast);
}

tbody tr:hover {
    background: var(--bg-card-hover);
}

tbody tr:last-child td {
    border-bottom: none;
}

/* ── Navbar ────────────────────────────────────────────── */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-primary);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background var(--transition-base);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.navbar-brand .logo-img {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    object-fit: contain;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.navbar-nav a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.navbar-nav a:hover,
.navbar-nav a.active {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.navbar-nav a.active {
    color: var(--accent);
    background: var(--accent-soft);
}

.navbar-nav a i { width: 18px; height: 18px; }

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Theme toggle */
.theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-primary);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.theme-toggle:hover {
    color: var(--accent);
    border-color: var(--border-accent);
    background: var(--accent-soft);
}

/* ── Landing Page ──────────────────────────────────────── */

/* Navbar enhancements for landing */
.landing-nav {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: color-mix(in srgb, var(--bg-primary) 85%, transparent);
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-links a {
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.navbar-links a:hover {
    color: var(--accent);
    background: var(--accent-soft);
}

.navbar-mobile-toggle { display: none; }

@media (max-width: 680px) {
    .navbar-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border-primary);
        flex-direction: column;
        padding: 16px;
        gap: 4px;
        box-shadow: var(--shadow-lg);
    }
    .navbar-links.open { display: flex; }
    .navbar-links a { padding: 12px 16px; width: 100%; border-radius: var(--radius-md); }
    .navbar-mobile-toggle { display: flex; }
}

/* Hero */
.landing-hero {
    min-height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 24px 60px;
    position: relative;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
    pointer-events: none;
    opacity: 0.5;
    animation: heroGlowPulse 6s ease-in-out infinite alternate;
}

@keyframes heroGlowPulse {
    0% { opacity: 0.35; transform: translateX(-50%) scale(1); }
    100% { opacity: 0.55; transform: translateX(-50%) scale(1.1); }
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border-primary) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-primary) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.3;
    pointer-events: none;
    -webkit-mask-image: radial-gradient(ellipse 50% 60% at 50% 40%, black, transparent);
    mask-image: radial-gradient(ellipse 50% 60% at 50% 40%, black, transparent);
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-badge {
    padding: 6px 16px;
    border-radius: var(--radius-full);
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 28px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--border-accent);
}

.hero-title {
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    max-width: 720px;
    margin-bottom: 20px;
}

.accent-gradient {
    background: linear-gradient(135deg, var(--accent), var(--accent-light), #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 620px;
    margin-bottom: 36px;
    line-height: 1.8;
    letter-spacing: 0.005em;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 0;
}

.hero-cta {
    padding: 14px 32px !important;
    font-size: 0.95rem;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.hero-cta-secondary {
    padding: 14px 28px !important;
    font-size: 0.95rem;
}

.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid var(--border-primary);
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    font-family: var(--font-mono);
}

.hero-stat-label {
    font-size: 0.72rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    margin-top: 4px;
}

@media (max-width: 520px) {
    .hero-stats { gap: 24px; flex-wrap: wrap; justify-content: center; }
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-cta, .hero-cta-secondary { width: 100%; justify-content: center; }
}

/* ── Integrity Index Counter ───────────────────────────── */
.integrity-index-section {
    padding: 80px 24px 60px;
    text-align: center;
    position: relative;
}

.integrity-index-inner {
    max-width: 640px;
    margin: 0 auto;
    padding: 48px 32px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
}

.integrity-index-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, var(--accent), transparent 60%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.4;
}

.integrity-index-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--accent-soft);
    margin: 0 auto 20px;
}

.integrity-index-icon .lucide-icon {
    width: 26px;
    height: 26px;
    color: var(--accent);
}

.integrity-index-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 10px;
}

.integrity-index-value {
    font-family: var(--font-mono);
    font-size: 3.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--text-primary) 40%, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.integrity-index-sublabel {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.integrity-index-desc {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    line-height: 1.6;
    max-width: 420px;
    margin: 0 auto 24px;
}

.integrity-index-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.integrity-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: 99px;
}

.integrity-pill .lucide-icon {
    width: 13px;
    height: 13px;
    color: var(--accent);
}

@media (max-width: 520px) {
    .integrity-index-value { font-size: 2.4rem; }
    .integrity-index-inner { padding: 36px 20px; }
    .integrity-index-meta { gap: 8px; }
    .integrity-pill { font-size: 0.7rem; padding: 4px 10px; }
}

/* ── How it Works Section ──────────────────────────────── */
.how-it-works-section {
    padding: 100px 24px 80px;
    max-width: 1100px;
    margin: 0 auto;
}

.how-it-works-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 56px;
    font-size: 1rem;
}

.steps-grid {
    display: flex;
    align-items: stretch;
    gap: 0;
    justify-content: center;
}

.step-card {
    flex: 1;
    max-width: 320px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    position: relative;
    transition: all var(--transition-base);
}

.step-card:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.step-number {
    font-family: var(--font-mono);
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-soft);
    line-height: 1;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.4;
}

.step-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.step-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.step-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.step-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    color: var(--text-tertiary);
    opacity: 0.4;
}

.step-connector .lucide-icon {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .steps-grid {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    .step-connector { transform: rotate(90deg); padding: 4px 0; }
    .step-card { max-width: 100%; }
}

/* ── Features Section ──────────────────────────────────── */
.features-section {
    padding: 80px 24px 100px;
    max-width: 1100px;
    margin: 0 auto;
}

.features-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .feature-grid { grid-template-columns: 1fr; }
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all var(--transition-base);
}

.feature-card:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.02rem;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ── Trust Section ─────────────────────────────────────── */
.trust-section {
    padding: 80px 24px 100px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-primary);
    border-bottom: 1px solid var(--border-primary);
}

.trust-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.trust-copy h2 {
    font-size: 2rem;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.trust-copy > p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 28px;
}

.trust-highlights {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.trust-highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

.trust-highlight-item .lucide-icon {
    width: 18px;
    height: 18px;
    color: var(--green);
    flex-shrink: 0;
}

.trust-visual {
    display: flex;
    justify-content: center;
}

.trust-visual-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
}

.trust-visual-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-primary);
}

.trust-dot-live {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
    animation: trustDotPulse 2s ease-in-out infinite;
}

@keyframes trustDotPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.trust-visual-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-primary);
    font-size: 0.84rem;
}

.trust-visual-row:last-child { border-bottom: none; }

.trust-visual-row span:first-child {
    color: var(--text-secondary);
}

.trust-visual-row .font-mono {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.82rem;
}

.trust-status-ok {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--green);
    font-weight: 600;
    font-family: var(--font-mono);
    font-size: 0.82rem;
}

.trust-status-ok .lucide-icon {
    width: 14px;
    height: 14px;
}

@media (max-width: 768px) {
    .trust-inner { grid-template-columns: 1fr; gap: 40px; }
    .trust-visual-card { max-width: 100%; }
}

/* ── Download Section ──────────────────────────────────── */
.download-section {
    padding: 100px 24px 80px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.download-section h2 {
    font-size: 2rem;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.download-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .download-cards { grid-template-columns: 1fr; }
}

.download-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.download-card:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 32px var(--accent-glow);
    transform: translateY(-4px);
}

.download-card .os-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-card .os-name {
    font-weight: 700;
    font-size: 1.1rem;
}

.download-card .os-version {
    font-size: 0.78rem;
    color: var(--text-tertiary);
    font-family: var(--font-mono);
}

/* ═══════════════════════════════════════════════════════════
   v3 Landing Page Redesign – Noir Terminal
   ═══════════════════════════════════════════════════════════ */

/* ── v3 Hero: Split layout ─────────────────────────────── */
.v3-hero {
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 24px 80px;
    position: relative;
    overflow: hidden;
}

.v3-hero-bg-noise {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    opacity: 0.5;
}

.v3-hero-glow {
    position: absolute;
    top: -30%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 65%);
    pointer-events: none;
    opacity: 0.4;
    animation: v3GlowDrift 8s ease-in-out infinite alternate;
}

@keyframes v3GlowDrift {
    0%   { opacity: 0.3; transform: translate(0, 0) scale(1); }
    100% { opacity: 0.5; transform: translate(-40px, 30px) scale(1.08); }
}

.v3-hero-inner {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.v3-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid var(--border-accent);
}

.v3-hero-tag .lucide-icon { width: 14px; height: 14px; }

.v3-hero-title {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.v3-hero-sub {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 32px;
    max-width: 520px;
}

.v3-hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.v3-cta-main {
    padding: 14px 32px !important;
    font-size: 0.95rem;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.v3-cta-sec {
    padding: 14px 24px !important;
    font-size: 0.95rem;
}

/* Social proof bar */
.v3-hero-social-proof {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: 28px;
    border-top: 1px solid var(--border-primary);
}

.v3-proof-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.v3-proof-val {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.v3-proof-lbl {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    color: var(--text-tertiary);
}

.v3-proof-sep {
    width: 1px;
    height: 32px;
    background: var(--border-primary);
}

/* Terminal card */
.v3-hero-visual {
    display: flex;
    justify-content: center;
}

.v3-term {
    width: 100%;
    max-width: 520px;
    background: #0a0a0e;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px var(--accent-glow);
}

[data-theme="light"] .v3-term {
    background: #1a1a2e;
    border-color: rgba(0,0,0,0.15);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 0 40px var(--accent-glow);
}

.v3-term-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

[data-theme="light"] .v3-term-bar {
    background: rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.v3-term-dots {
    display: flex;
    gap: 6px;
}

.v3-term-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.v3-term-dots span:nth-child(1) { background: #ff5f57; }
.v3-term-dots span:nth-child(2) { background: #febc2e; }
.v3-term-dots span:nth-child(3) { background: #28c840; }

.v3-term-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
}

.v3-term-body {
    padding: 16px;
    min-height: 300px;
    max-height: 380px;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.6);

    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.v3-term-body::-webkit-scrollbar { width: 4px; }
.v3-term-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

.v3-term-line { white-space: pre-wrap; word-break: break-all; }
.v3-term-cmd { color: var(--accent-light); }
.v3-term-info { color: rgba(255,255,255,0.45); }
.v3-term-ok { color: #34d399; }
.v3-term-accent { color: var(--accent); font-weight: 600; }
.v3-term-success { color: #34d399; font-weight: 700; font-size: 0.85rem; }

@media (max-width: 900px) {
    .v3-hero-inner { grid-template-columns: 1fr; gap: 32px; }
    .v3-hero-visual { order: 1; }  /* text first on mobile, terminal below */
    .v3-hero-text { order: -1; }
    .v3-term { max-width: 100%; }
    .v3-term-body { min-height: 180px; max-height: 220px; font-size: 0.72rem; line-height: 1.6; }
    .v3-hero-actions { flex-direction: column; width: 100%; }
    .v3-cta-main, .v3-cta-sec { width: 100%; justify-content: center; }
    .v3-hero { padding: 80px 20px 48px; }
    .v3-hero-title { font-size: 2rem; }
    .v3-hero-sub { font-size: 0.95rem; }
}

@media (max-width: 520px) {
    .v3-hero-social-proof { flex-wrap: wrap; gap: 16px; }
    .v3-proof-sep { display: none; }
    .v3-hero { padding: 64px 16px 40px; }
    .v3-hero-inner { gap: 24px; }
    .v3-hero-title { font-size: 1.7rem; }
    .v3-hero-sub { font-size: 0.88rem; }
    .v3-term-body { min-height: 140px; max-height: 180px; font-size: 0.68rem; padding: 12px; }
    .v3-term-bar { padding: 8px 12px; }
    .v3-term-dots span { width: 8px; height: 8px; }
    .v3-term-title { font-size: 0.68rem; }
}

/* ── v3 Live Ticker ────────────────────────────────────── */

/* ── Release Platform Pills ──────────────────────────── */
.rel-plat-pills {
    display: inline-flex;
    gap: 6px;
    margin-left: 8px;
    vertical-align: middle;
}
.rel-plat-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    font-size: 0.7rem;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    border-radius: 6px;
    border: 1px solid;
    white-space: nowrap;
}
.rel-plat-pill .lucide-icon { width: 12px; height: 12px; }
.rel-plat-win {
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.3);
    background: rgba(56, 189, 248, 0.08);
}
.rel-plat-linux {
    color: #facc15;
    border-color: rgba(250, 204, 21, 0.3);
    background: rgba(250, 204, 21, 0.08);
}
.rel-plat-mac {
    color: #a78bfa;
    border-color: rgba(167, 139, 250, 0.3);
    background: rgba(167, 139, 250, 0.08);
}
.v3-ticker-section {
    border-top: 1px solid var(--border-primary);
    border-bottom: 1px solid var(--border-primary);
    background: var(--bg-secondary);
    overflow: hidden;
    position: relative;
    padding: 0;
}

.v3-ticker-track {
    display: flex;
    gap: 48px;
    padding: 14px 0;
    width: max-content;
    will-change: transform;
}

.v3-ticker-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    flex-shrink: 0;
}

.v3-tick-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.v3-tick-green { background: var(--green); box-shadow: 0 0 6px var(--green); }
.v3-tick-accent { background: var(--accent); box-shadow: 0 0 6px var(--accent); }

/* ── v3 Section Headers ────────────────────────────────── */
.v3-section-header {
    text-align: center;
    margin-bottom: 56px;
}

.v3-section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: var(--radius-full);
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
    border: 1px solid var(--border-accent);
}

.v3-section-tag .lucide-icon { width: 14px; height: 14px; }

.v3-section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 14px;
}

.v3-section-header > p {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ── v3 Bento Grid ─────────────────────────────────────── */
.v3-bento-section {
    padding: 100px 24px;
    max-width: 1100px;
    margin: 0 auto;
}

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

.v3-bento-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.v3-bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.v3-bento-card:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.v3-bento-card:hover::before {
    opacity: 1;
}

.v3-bento-wide {
    grid-column: span 2;
}

.v3-bento-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.v3-bento-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.v3-bento-card > p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.v3-bento-code {
    margin-top: 16px;
    padding: 14px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    line-height: 1.8;
    color: var(--green);
    overflow-x: auto;
}

.v3-bento-metrics {
    display: flex;
    gap: 24px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-primary);
}

.v3-bm {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.v3-bm-val {
    font-family: var(--font-mono);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
}

.v3-bm-lbl {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    color: var(--text-tertiary);
}

@media (max-width: 768px) {
    .v3-bento-grid { grid-template-columns: 1fr; }
    .v3-bento-wide { grid-column: span 1; }
    .v3-bento-metrics { flex-wrap: wrap; gap: 16px; }
}

/* ── v3 Timeline / Process ─────────────────────────────── */
.v3-process-section {
    padding: 100px 24px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-primary);
    border-bottom: 1px solid var(--border-primary);
}

.v3-timeline {
    max-width: 680px;
    margin: 0 auto;
    position: relative;
    padding-left: 68px;
}

.v3-timeline::before {
    content: '';
    position: absolute;
    left: 27px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), var(--border-primary) 80%);
    border-radius: 1px;
}

.v3-tl-item {
    position: relative;
    padding-bottom: 48px;
}

.v3-tl-item:last-child { padding-bottom: 0; }

.v3-tl-marker {
    position: absolute;
    left: -68px;
    top: 0;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--bg-primary);
    border: 2px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.v3-tl-item:hover .v3-tl-marker {
    transform: scale(1.08);
    box-shadow: 0 0 20px var(--accent-glow);
}

.v3-tl-marker .lucide-icon {
    width: 22px;
    height: 22px;
    color: var(--accent);
}

.v3-tl-step {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 6px;
}

.v3-tl-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    padding-top: 4px;
}

.v3-tl-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 12px;
}

.v3-tl-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.v3-tl-tags span {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 100px;
    background: rgba(124, 92, 252, 0.1);
    color: var(--accent);
    border: 1px solid rgba(124, 92, 252, 0.2);
    letter-spacing: 0.02em;
}

@media (max-width: 520px) {
    .v3-timeline { padding-left: 52px; }
    .v3-timeline::before { left: 19px; }
    .v3-tl-marker { left: -52px; width: 40px; height: 40px; border-radius: 12px; }
    .v3-tl-marker .lucide-icon { width: 18px; height: 18px; }
    .v3-tl-step { font-size: 0.65rem; }
    .v3-tl-content h3 { font-size: 1.05rem; }
}

/* ── v3 Specs Terminal Card ────────────────────────────── */
.v3-specs-section {
    padding: 80px 24px;
    max-width: 740px;
    margin: 0 auto;
}

.v3-specs-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.v3-specs-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 24px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-primary);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.v3-specs-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
    animation: v3SpecDotPulse 2s ease-in-out infinite;
}

@keyframes v3SpecDotPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.v3-specs-grid {
    padding: 8px 0;
}

.v3-spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    border-bottom: 1px solid var(--border-primary);
    font-size: 0.85rem;
}

.v3-spec-row:last-child { border-bottom: none; }

.v3-spec-key {
    color: var(--text-secondary);
    font-weight: 500;
}

.v3-spec-val {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.82rem;
    text-align: right;
}

.v3-spec-status .v3-spec-val {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--green);
    font-weight: 700;
}

.v3-spec-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
    animation: v3SpecDotPulse 2s ease-in-out infinite;
}

/* ── v3 Download ───────────────────────────────────────── */
.v3-download-section {
    padding: 100px 24px 80px;
    max-width: 700px;
    margin: 0 auto;
}

.v3-dl-hero-card {
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--bg-card);
    box-shadow: var(--shadow-lg);
}

.v3-dl-primary {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 32px;
}

.v3-dl-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.v3-dl-info {
    flex: 1;
}

.v3-dl-os {
    font-size: 1.15rem;
    font-weight: 700;
}

.v3-dl-ver {
    font-size: 0.78rem;
    color: var(--text-tertiary);
}

.v3-dl-primary .btn {
    flex-shrink: 0;
}

.v3-dl-alts {
    display: flex;
    justify-content: center;
    gap: 0;
    border-top: 1px solid var(--border-primary);
    background: var(--bg-secondary);
}

.v3-dl-alt {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    border-right: 1px solid var(--border-primary);
}

.v3-dl-alt:last-child { border-right: none; }

.v3-dl-alt:hover {
    color: var(--accent);
    background: var(--accent-soft);
}

.v3-dl-alt .lucide-icon { width: 18px; height: 18px; }

.v3-dl-alt-ver {
    font-size: 0.72rem;
    color: var(--text-tertiary);
}

@media (max-width: 600px) {
    .v3-dl-primary { flex-direction: column; text-align: center; padding: 24px 20px; }
    .v3-dl-primary .btn { width: 100%; justify-content: center; }
    .v3-dl-alts { flex-direction: column; }
    .v3-dl-alt { border-right: none; border-bottom: 1px solid var(--border-primary); }
    .v3-dl-alt:last-child { border-bottom: none; }
}

/* ── Download Notice / SmartScreen Explainer ────────────── */
.v3-dl-notice {
    max-width: 680px;
    margin: 32px auto 0;
}
.v3-dl-details {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    overflow: hidden;
}
.v3-dl-details summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    list-style: none;
    transition: color 0.2s;
}
.v3-dl-details summary::-webkit-details-marker { display: none; }
.v3-dl-details summary .lucide-icon { width: 18px; height: 18px; flex-shrink: 0; }
.v3-dl-chevron { margin-left: auto; transition: transform 0.3s ease; }
.v3-dl-details[open] .v3-dl-chevron { transform: rotate(180deg); }
.v3-dl-details[open] summary { color: var(--text-primary); border-bottom: 1px solid var(--border-primary); }
.v3-dl-details-body { padding: 20px; }
.v3-dl-notice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.v3-dl-notice-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.v3-dl-notice-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(124, 92, 252, 0.1);
    border: 1px solid rgba(124, 92, 252, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.v3-dl-notice-icon .lucide-icon { width: 18px; height: 18px; color: var(--accent); }
.v3-dl-notice-item strong {
    display: block;
    font-size: 0.8rem;
    margin-bottom: 4px;
    color: var(--text-primary);
}
.v3-dl-notice-item p {
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin: 0;
}
.v3-dl-notice-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 10px 14px;
    background: rgba(250, 204, 21, 0.06);
    border: 1px solid rgba(250, 204, 21, 0.15);
    border-radius: 8px;
    font-size: 0.77rem;
    color: var(--text-secondary);
}
.v3-dl-notice-hint .lucide-icon { width: 16px; height: 16px; color: #facc15; flex-shrink: 0; }

/* SHA-256 hash display below download card */
.v3-dl-hash {
    max-width: 640px;
    margin: 12px auto 0;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 10px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}
.v3-dl-hash-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .75rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.v3-dl-hash-label .lucide-icon { width: 14px; height: 14px; }
.v3-dl-hash-value {
    font-size: .72rem;
    color: var(--text-primary);
    word-break: break-all;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: background .2s;
    user-select: all;
}
.v3-dl-hash-value:hover { background: rgba(99,102,241,.12); }
.v3-dl-hash-value.copied { background: rgba(34,197,94,.18); }

/* Verify command in SmartScreen explainer */
.v3-dl-verify-cmd {
    display: block;
    margin: 8px 0 4px;
    padding: 6px 10px;
    font-size: .72rem;
    border-radius: 6px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    word-break: break-all;
    border: 1px solid var(--border-primary);
}
.v3-dl-verify-hint {
    font-size: .72rem;
    color: var(--text-secondary);
    margin-top: 4px;
}
.v3-dl-verify-hint code {
    padding: 1px 5px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    font-size: .7rem;
    color: var(--text-primary);
}

/* SHA-256 block in release manifest */
.rel-hash-block {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(99,102,241,.06);
    border: 1px solid rgba(99,102,241,.15);
}
.rel-hash-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .72rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 6px;
}
.rel-hash-label .lucide-icon { width: 13px; height: 13px; }
.rel-hash-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: 4px;
}
.rel-hash-plat {
    font-size: .7rem;
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 60px;
}
.rel-hash-val {
    font-size: .68rem;
    color: var(--text-primary);
    word-break: break-all;
}

@media (max-width: 600px) {
    .v3-dl-notice-grid { grid-template-columns: 1fr; }
    .v3-dl-hash { flex-direction: column; align-items: flex-start; gap: 4px; }
    .rel-hash-row { flex-direction: column; gap: 2px; }
}

/* ── Subpage Layout (Changelog, Status, Privacy, Terms) ── */
.subpage {
    max-width: 760px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.subpage-narrow {
    max-width: 620px;
}

.subpage-prose {
    max-width: 720px;
}

.subpage-header {
    margin-bottom: 36px;
}

.subpage-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 24px;
    transition: color var(--transition-fast);
}

.subpage-back:hover {
    color: var(--accent);
}

.subpage-back .lucide-icon {
    width: 16px;
    height: 16px;
}

.subpage-header h1 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.subpage-header h1 .lucide-icon {
    width: 28px;
    height: 28px;
    color: var(--accent);
}

/* ── Status Page ───────────────────────────────────────── */
.status-loading {
    text-align: center;
    padding: 80px 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.status-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 24px;
}

.status-green {
    background: var(--green-soft);
    color: var(--green);
    border: 1px solid var(--green);
}

.status-red {
    background: var(--red-soft);
    color: var(--red);
    border: 1px solid var(--red);
}

.status-dot-green,
.status-dot-red {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-dot-green {
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
    animation: pulse-green 2s ease-in-out infinite;
}

.status-dot-red {
    background: var(--red);
    box-shadow: 0 0 8px var(--red);
    animation: pulse-red 2s ease-in-out infinite;
}

@keyframes pulse-green {
    0%, 100% { box-shadow: 0 0 4px var(--green); }
    50% { box-shadow: 0 0 16px var(--green); }
}

@keyframes pulse-red {
    0%, 100% { box-shadow: 0 0 4px var(--red); }
    50% { box-shadow: 0 0 16px var(--red); }
}

.status-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.status-metric {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 24px 16px;
    text-align: center;
}

.status-metric-val {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 6px;
}

.status-metric-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-tertiary);
}

.status-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 16px;
}

.status-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-primary);
    background: var(--bg-tertiary);
}

.status-card-header .lucide-icon {
    width: 16px;
    height: 16px;
    color: var(--accent);
}

.status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border-primary);
}

.status-row:last-child {
    border-bottom: none;
}

.status-row > span:first-child {
    color: var(--text-secondary);
}

.status-row > span:last-child {
    color: var(--text-primary);
}

.status-checked {
    margin-top: 20px;
}

/* ── Prose Content (Privacy, Terms) ────────────────────── */
.prose-content h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 36px;
    margin-bottom: 12px;
}

.prose-content h2:first-child {
    margin-top: 0;
}

.prose-content p {
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.prose-content ul {
    padding-left: 24px;
    margin-bottom: 16px;
}

.prose-content li {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.prose-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

@media (max-width: 640px) {
    .subpage { padding: 24px 16px 60px; }
    .subpage-header h1 { font-size: 1.4rem; }
    .status-metrics { grid-template-columns: 1fr; }
    .status-metric-val { font-size: 1.5rem; }
    .status-row { padding: 10px 16px; font-size: 0.82rem; }
    .status-card-header { padding: 12px 16px; }
    .status-banner { font-size: 0.92rem; padding: 12px 16px; }
}

/* ── Release History (shared for changelog page) ───────── */
.release-history-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
}

.release-entry {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    transition: border-color var(--transition-base);
}

.release-entry:hover {
    border-color: var(--border-secondary);
}

.release-entry.release-latest {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent), 0 4px 20px var(--accent-glow);
}

.release-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.release-version-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.release-version {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-primary);
}

.release-badge-latest {
    background: var(--accent);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.release-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.release-date .lucide-icon {
    width: 14px;
    height: 14px;
}

.release-changelog {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 14px;
    padding: 10px 14px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.release-changelog .lucide-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--accent);
}

.release-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.release-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.55;
    padding: 8px 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border-left: 2px solid var(--border-secondary);
    transition: border-color var(--transition-base);
}

.release-item:hover {
    border-left-color: var(--accent);
}

.release-item .lucide-icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--accent);
    opacity: 0.7;
}

.release-item strong {
    color: var(--text-primary);
    font-weight: 600;
}

.release-badge-tag {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: 0.68rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 999px;
    border: 1px solid var(--border-primary);
    letter-spacing: 0.02em;
}

.release-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.release-platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    padding: 5px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.release-platform-badge .lucide-icon {
    width: 14px;
    height: 14px;
}

.release-dl-count {
    font-weight: 400;
    color: var(--text-tertiary);
    font-size: 0.72rem;
    margin-left: 2px;
}

/* ── Footer ────────────────────────────────────────────── */
.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.logo-img-sm {
    width: 28px;
    height: 28px;
}

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

/* ── Admin Layout ──────────────────────────────────────── */
.admin-layout {
    display: flex;
    min-height: calc(100vh - 60px);
}

.sidebar {
    width: 240px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-primary);
    padding: 20px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-shrink: 0;
    overflow-y: auto;
    height: calc(100vh - 60px);
    position: sticky;
    top: 60px;
}

.sidebar-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-tertiary);
    font-weight: 600;
    padding: 12px 12px 6px;
}

.sidebar a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

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

.sidebar a.active {
    color: var(--accent);
    background: var(--accent-soft);
    font-weight: 600;
}

.sidebar a i { width: 18px; height: 18px; flex-shrink: 0; }

.admin-content {
    flex: 1;
    padding: 28px;
    overflow-y: auto;
    min-width: 0;
}

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -260px;
        top: 60px;
        height: calc(100vh - 60px);
        z-index: 90;
        transition: left var(--transition-base);
    }
    .sidebar.open { left: 0; }
    .admin-content { padding: 20px 16px; }
}

/* ── Dashboard Page Header ─────────────────────────────── */
.page-header {
    margin-bottom: 28px;
}

.page-header h1 {
    font-size: 1.6rem;
    letter-spacing: -0.02em;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-top: 4px;
}

/* ── Login Page ────────────────────────────────────────── */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    box-shadow: var(--shadow-xl);
}

.login-card .logo-container {
    text-align: center;
    margin-bottom: 32px;
}

.login-card .logo-img-lg {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    object-fit: contain;
}

.login-card h1 {
    font-size: 1.4rem;
    text-align: center;
    margin-bottom: 4px;
}

.login-card .subtitle {
    text-align: center;
    color: var(--text-tertiary);
    font-size: 0.85rem;
    margin-bottom: 28px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-form .btn {
    width: 100%;
    margin-top: 8px;
}

/* ── Toast ─────────────────────────────────────────────── */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-lg);
    animation: toastIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 380px;
}

.toast.success { background: var(--green); color: #fff; }
.toast.error { background: var(--red); color: #fff; }
.toast.info { background: var(--accent); color: #fff; }
.toast.warning { background: var(--yellow); color: #000; }

.toast.removing {
    animation: toastOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

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

/* ── Loading ───────────────────────────────────────────── */
.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--border-secondary);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.spinner-lg {
    width: 40px;
    height: 40px;
    border-width: 4px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.spin {
    animation: spin 0.7s linear infinite;
}

.loading-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    flex-direction: column;
    gap: 16px;
}

.loading-screen p {
    color: var(--text-tertiary);
    font-size: 0.85rem;
}

/* ── Empty State ───────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-tertiary);
}

.empty-state i {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    color: var(--text-tertiary);
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.empty-state p {
    font-size: 0.85rem;
}

/* ── Pagination ────────────────────────────────────────── */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 20px;
}

.pagination button {
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-primary);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.pagination button:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.pagination button.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.pagination button:disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* ── Modal ─────────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-overlay);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: fadeIn 0.2s ease;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: 32px;
    max-width: 520px;
    width: 100%;
    box-shadow: var(--shadow-xl);
    animation: modalIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.modal-header h2 {
    font-size: 1.15rem;
}

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

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ── Search Bar ────────────────────────────────────────── */
.search-bar {
    position: relative;
    max-width: 320px;
}

.search-bar input {
    padding-left: 40px;
}

.search-bar i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-tertiary);
    pointer-events: none;
}

/* ── Tabs ──────────────────────────────────────────────── */
.tabs {
    display: flex;
    gap: 2px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 3px;
}

.tab {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-tertiary);
    background: transparent;
    border: none;
    transition: all var(--transition-fast);
    cursor: pointer;
}

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

.tab.active {
    color: var(--text-primary);
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
}

/* ── Progress Bar ──────────────────────────────────────── */
.progress-bar {
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--accent);
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
}

.progress-bar-fill.green { background: var(--green); }
.progress-bar-fill.red { background: var(--red); }
.progress-bar-fill.yellow { background: var(--yellow); }

/* ── Footer ────────────────────────────────────────────── */
.footer {
    text-align: center;
    padding: 48px 24px 40px;
    border-top: 1px solid var(--border-primary);
    color: var(--text-tertiary);
    font-size: 0.78rem;
}

.footer-inner {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color var(--transition-fast);
}

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

.footer-sep {
    color: var(--text-tertiary);
    opacity: 0.4;
}

.footer-legal {
    font-size: 0.72rem;
    color: var(--text-tertiary);
    font-style: italic;
    opacity: 0.8;
}

.footer-copy {
    font-size: 0.72rem;
    color: var(--text-tertiary);
    opacity: 0.6;
}

.footer a {
    color: var(--text-secondary);
}
.footer a:hover {
    color: var(--accent);
}

/* ── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-secondary);
    border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
}

/* ── Utility ───────────────────────────────────────────── */
.hidden {
    display: none !important;
}

.reveal-in {
    animation: revealIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mt-sm { margin-top: 10px; }
.mt-md { margin-top: 16px; }
.mt-lg { margin-top: 24px; }
.mt-xl { margin-top: 32px; }
.mb-sm { margin-bottom: 10px; }
.mb-md { margin-bottom: 16px; }
.mb-lg { margin-bottom: 24px; }
.p-md { padding: 16px; }

.w-full { width: 100%; }
.min-h-screen { min-height: 100vh; }

.online-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}

.online-dot.online { background: var(--green); box-shadow: 0 0 6px var(--green); }
.online-dot.offline { background: var(--text-tertiary); }

.hash-display {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-tertiary);
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Tier Colors ───────────────────────────────────────── */
.tier-free { color: var(--text-tertiary); }
.tier-member { color: var(--blue); }
.tier-founding { color: var(--accent); }
.tier-legend { color: var(--yellow); }

/* ── Chart placeholder ─────────────────────────────────── */
.chart-container {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: flex-end;
    gap: 4px;
    padding-top: 20px;
}

.chart-bar {
    flex: 1;
    background: var(--accent-soft);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    transition: all var(--transition-base);
    position: relative;
    min-height: 4px;
}

.chart-bar:hover {
    background: var(--accent);
}

.chart-bar .chart-tooltip {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
    padding: 4px 8px;
    font-size: 0.72rem;
    font-family: var(--font-mono);
    white-space: nowrap;
    box-shadow: var(--shadow-md);
    margin-bottom: 4px;
}

.chart-bar:hover .chart-tooltip {
    display: block;
}

.chart-labels {
    display: flex;
    gap: 4px;
    margin-top: 8px;
}

.chart-labels span {
    flex: 1;
    text-align: center;
    font-size: 0.68rem;
    color: var(--text-tertiary);
}

/* ═══════════════════════════════════════════════════════════
   INVITE TREE (Stammbaum)
   ═══════════════════════════════════════════════════════════ */

.tree-container {
    padding: 16px 0;
    max-height: 70vh;
    overflow-y: auto;
}

.tree-node {
    display: flex;
    align-items: flex-start;
    margin-bottom: 4px;
}

.tree-connector {
    height: 2px;
    background: var(--border);
    margin-top: 20px;
    flex-shrink: 0;
}

.tree-card {
    flex: 1;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    transition: var(--transition);
}

.tree-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.tree-banned .tree-card {
    border-color: var(--danger);
    background: rgba(239, 68, 68, 0.05);
}

.tree-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tree-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.avatar-banned {
    background: var(--danger);
}

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

.tree-name {
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.tree-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.tree-actions .btn-danger {
    color: var(--danger);
}

.tree-actions .btn-danger:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* Stats grid for invite tree */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    font-family: var(--font-mono);
}

.stat-value.text-danger {
    color: var(--danger);
}

.stat-label {
    font-size: 0.72rem;
    color: var(--text-tertiary);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.badge-danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-warning {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.badge-purple {
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.badge-secondary {
    background: rgba(148, 163, 184, 0.15);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.text-orange { color: #f97316; }
.text-red { color: var(--danger); }

/* ═══════════════════════════════════════════════════════════
   CLIENT DETAIL VIEW
   ═══════════════════════════════════════════════════════════ */

.stats-grid-3 { grid-template-columns: repeat(3, 1fr); }
.stats-grid-4 { grid-template-columns: repeat(4, 1fr); }

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.detail-tabs {
    border-bottom: 1px solid var(--border);
    padding-bottom: 0;
    gap: 2px !important;
}

.detail-tab {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.15s ease;
    border-bottom: 2px solid transparent;
}

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

.detail-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    background: var(--accent-soft);
}

.detail-table {
    width: 100%;
    border-collapse: collapse;
}

.detail-table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
}

.detail-table td:first-child {
    width: 140px;
    white-space: nowrap;
    font-weight: 500;
}

/* ── Mini progress bars (inline in table cells) ── */
.mini-bar {
    display: inline-block;
    width: 60px;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
    vertical-align: middle;
    margin-right: 6px;
}
.mini-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.4s ease;
}

.risk-meter {
    width: 100%;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
}

.risk-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.risk-reasons {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
}

.risk-reasons li {
    padding: 6px 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.code-block {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    overflow-x: auto;
    white-space: pre-wrap;
    color: var(--text-secondary);
}

.badge-success {
    background: rgba(52, 211, 153, 0.15);
    color: var(--green);
    border: 1px solid rgba(52, 211, 153, 0.2);
}

.badge-sm {
    padding: 2px 6px;
    font-size: 0.7rem;
}

.text-xs { font-size: 0.75rem; }
.text-green { color: var(--green); }
.font-mono { font-family: var(--font-mono); }
.font-bold { font-weight: 700; }
.text-lg { font-size: 1.15rem; }
.text-center { text-align: center; }

.hash-display {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    opacity: 0.7;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.input-sm {
    padding: 4px 8px;
    font-size: 0.8rem;
    height: auto;
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

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

@media (max-width: 768px) {
    .grid-2 { grid-template-columns: 1fr; }
    .stats-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .stats-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .detail-tabs { flex-wrap: wrap; }
}

/* ══════════════════════════════════════════════════════════
   STAMMBAUM — Interactive Canvas Visualization
   ══════════════════════════════════════════════════════════ */

.stammbaum-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-top: 16px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--text-tertiary);
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.legend-online  { background: #22c55e; box-shadow: 0 0 6px rgba(34,197,94,0.5); }
.legend-offline { background: #3b82f6; }
.legend-flagged { background: #f59e0b; animation: pulse-warn 2s infinite; }
.legend-banned  { background: #ef4444; }
.legend-taint   { background: transparent; border: 2px dashed rgba(239,68,68,0.5); box-shadow: 0 0 8px rgba(239,68,68,0.3); }

@keyframes pulse-warn {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.stammbaum-wrap {
    position: relative;
    width: 100%;
    height: 65vh;
    min-height: 450px;
    margin-top: 16px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    background: var(--bg-primary);
}

.stammbaum-wrap canvas {
    display: block;
    cursor: grab;
}

.stammbaum-wrap canvas:active {
    cursor: grabbing;
}

/* Tooltip */
.stammbaum-tooltip {
    position: absolute;
    z-index: 100;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    min-width: 220px;
    max-width: 320px;
    backdrop-filter: blur(12px);
    pointer-events: none;
    box-shadow: var(--shadow-lg);
}

.stip-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.stip-head strong {
    font-size: 0.85rem;
    color: var(--text-primary);
}

.stip-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.stip-online  { background: #22c55e; box-shadow: 0 0 6px rgba(34,197,94,0.5); }
.stip-offline { background: #3b82f6; }
.stip-flagged { background: #f59e0b; }
.stip-banned  { background: #ef4444; }

.stip-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 0;
    font-size: 0.78rem;
}

.stip-row span:first-child {
    color: var(--text-tertiary);
}

.stip-row span:last-child {
    color: var(--text-secondary);
    font-weight: 500;
}

.stip-warn {
    margin-top: 8px;
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(239,68,68,0.1);
    color: #f87171;
    border: 1px solid rgba(239,68,68,0.2);
}

.stip-taint {
    background: rgba(245,158,11,0.1);
    color: #fbbf24;
    border-color: rgba(245,158,11,0.2);
}

/* Context menu */
.stammbaum-ctx {
    position: absolute;
    z-index: 200;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 6px;
    min-width: 200px;
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-lg);
}

.sctx-title {
    padding: 6px 10px 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-tertiary);
    border-bottom: 1px solid var(--border);
    margin-bottom: 4px;
}

.sctx-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 10px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

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

.sctx-btn .lucide-icon {
    width: 14px;
    height: 14px;
}

.sctx-danger {
    color: var(--danger);
}

.sctx-danger:hover {
    background: rgba(239,68,68,0.1);
    color: #f87171;
}

/* Minimap */
.stammbaum-minimap {
    position: absolute;
    bottom: 12px;
    right: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.stammbaum-minimap:hover {
    opacity: 1;
}

/* ═══════════════════════════════════════════════════════════
   v1.0.15 — Charts, Heatmap, Threats, Live Mode
   ═══════════════════════════════════════════════════════════ */

/* Chart Cards */
.chart-card {
    display: flex;
    flex-direction: column;
}
.chart-wrap {
    position: relative;
    height: 260px;
    padding: 12px;
}
.chart-wrap-sm {
    height: 200px;
}
.chart-wrap-lg {
    height: 380px;
}

/* Grid helpers */
.grid-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 900px) { .grid-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .grid-5 { grid-template-columns: repeat(2, 1fr); } }

/* Live Toggle */
.live-toggle-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    padding: 6px 14px;
    border-radius: var(--radius-full, 50px);
    border: 1px solid var(--border);
    transition: all 0.3s;
}
.live-toggle-wrap:hover {
    border-color: var(--accent);
}
.live-toggle-label {
    display: none;
}
.live-toggle-slider {
    width: 36px;
    height: 20px;
    border-radius: 10px;
    background: var(--bg-secondary);
    position: relative;
    transition: background 0.3s;
    flex-shrink: 0;
}
.live-toggle-slider::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--text-tertiary);
    transition: all 0.3s;
}
.live-toggle-wrap.active .live-toggle-slider {
    background: var(--green, #22c55e);
}
.live-toggle-wrap.active .live-toggle-slider::after {
    left: 18px;
    background: #fff;
}
.live-toggle-text {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-tertiary);
    transition: color 0.3s;
}
.live-toggle-text.live-active {
    color: var(--green, #22c55e);
}

/* Live pulse animation */
.live-pulse {
    animation: livePulse 0.5s ease;
}
@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.live-flash {
    animation: liveFlash 1s ease;
}
@keyframes liveFlash {
    0% { background: rgba(34,197,94,0.25); }
    100% { background: transparent; }
}

/* Stat icons */
.stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    color: #fff;
}
.stat-icon.green  { background: linear-gradient(135deg, #22c55e, #15803d); }
.stat-icon.yellow { background: linear-gradient(135deg, #f59e0b, #d97706); }
.stat-icon.blue   { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.stat-icon.red    { background: linear-gradient(135deg, #ef4444, #dc2626); }
.stat-icon.accent { background: linear-gradient(135deg, var(--accent, #7c5cfc), #6d28d9); }
.stat-icon .lucide-icon { width: 20px; height: 20px; }

/* Threat score badge */
.threat-score-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 28px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    color: #fff;
    padding: 0 6px;
}

/* Mini dim scores in threat table */
.mini-score {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 600;
}

/* Signal tags */
.signal-tag {
    display: inline-block;
    padding: 1px 6px;
    background: rgba(124,92,252,0.12);
    color: var(--accent);
    border-radius: 4px;
    font-size: 10px;
    font-family: 'JetBrains Mono', monospace;
    margin: 1px;
}

/* Action trail inside error detail */
.action-trail {
    position: relative;
    padding-left: 24px;
}
.action-trail::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}
.trail-step {
    position: relative;
    margin-bottom: 12px;
    padding: 8px 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}
.trail-dot {
    position: absolute;
    left: -20px;
    top: 14px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--bg-primary);
}
.trail-step-error .trail-dot {
    background: var(--red, #ef4444);
}
.trail-content {
    font-size: 13px;
    line-height: 1.5;
}
.trail-content .trail-time {
    font-size: 11px;
    color: var(--text-tertiary);
    display: block;
}

/* Error detail modal overlay */
.error-detail-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 20px;
    overflow-y: auto;
}
.error-detail-modal {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    padding: 28px;
}
.error-detail-modal .card {
    margin-bottom: 16px;
}
.error-detail-modal .close-btn {
    float: right;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 22px;
    padding: 4px 10px;
    border-radius: 8px;
}
.error-detail-modal .close-btn:hover {
    background: var(--bg-secondary);
}

/* Heatmap container styling for Leaflet */
#heatmapContainer {
    border-radius: 12px;
}
#heatmapContainer .leaflet-popup-content-wrapper {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
#heatmapContainer .leaflet-popup-tip {
    background: var(--bg-primary);
}

/* Resolved error styling */
tr.resolved-row td {
    opacity: 0.5;
    text-decoration: line-through;
}

/* Enhanced badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ── Modal Content ──────────────────────────────────────── */
.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: 28px;
    width: 100%;
    box-shadow: var(--shadow-xl);
    animation: modalIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Form Grid ─────────────────────────────────────────── */
.form-grid {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 10px 16px;
    align-items: center;
}
.form-grid label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

/* ── Additional badges ─────────────────────────────────── */
.badge-grey {
    background: var(--bg-hover);
    color: var(--text-tertiary);
}

/* ── Button extras ─────────────────────────────────────── */
.btn-xs {
    padding: 2px 6px;
    font-size: 11px;
    line-height: 1.4;
}
.text-danger { color: var(--red, #ef4444) !important; }

/* ── Card Header ────────────────────────────────────────── */
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-primary);
    flex-wrap: wrap;
    gap: 8px;
}

/* ── Justify / Flex helpers ─────────────────────────────── */
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.flex-wrap { flex-wrap: wrap; }

@media (max-width: 640px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* ── File Distribution ──────────────────────────────────── */
.fd-filename { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fd-pills { max-width: 320px; display: flex; flex-wrap: wrap; gap: 4px; }
.fd-client-pill {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 500;
    border-radius: var(--radius);
    background: var(--surface-2);
    border: 1px solid var(--surface-border);
    color: var(--text-primary);
    white-space: nowrap;
}
.fd-client-pill.fd-banned {
    background: rgba(239, 68, 68, .15);
    border-color: rgba(239, 68, 68, .4);
    color: #ef4444;
    text-decoration: line-through;
}
.fd-sort:hover { color: var(--accent); }

/* ── Version Group Pills ────────────────────────────────── */
.sv-pill-active {
    background: var(--primary) !important;
    color: #fff !important;
    box-shadow: 0 0 8px rgba(124, 92, 252, 0.3);
}
.sv-minor-pill:not(.sv-pill-active):hover {
    background: var(--bg-secondary);
}
.sv-minor-panel {
    border-top: 1px solid var(--border);
}
.sv-minor-panel:first-child {
    border-top: none;
}
.sv-vgroup .card-body > .sv-minor-panel:only-child {
    border-top: none;
}

/* ── Shadow Explorer ────────────────────────────────────── */
.stat-mini{display:inline-flex;align-items:center;gap:4px;padding:4px 10px;background:var(--surface-2);border:1px solid var(--surface-border);border-radius:var(--radius);font-size:12px}
.stat-mini strong{font-weight:700}
.btn-xs{font-size:11px;padding:3px 8px;border-radius:var(--radius)}
.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* ── Threat Sub-Score Bars ──────────────────────────────── */
.threat-bars { display: flex; flex-direction: column; gap: 8px; }
.threat-bar-row { display: flex; align-items: center; gap: 10px; }
.threat-bar-label { width: 80px; font-size: 12px; font-weight: 600; color: var(--text-secondary); text-align: right; }
.threat-bar-track { flex: 1; height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.threat-bar-fill { height: 100%; border-radius: 4px; transition: width 0.4s ease; min-width: 2px; }
.threat-bar-val { width: 30px; font-size: 11px; font-weight: 700; font-family: 'JetBrains Mono', monospace; color: var(--text-secondary); }

/* ── Small Stat Cards ───────────────────────────────────── */
.stat-card-sm { padding: 12px 16px; }
.stat-card-sm .stat-value { font-size: 1.25rem; }
.stat-card-sm .stat-label { font-size: 11px; }

/* ── Threat Classification Badge in Client List ─────────── */
.threat-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 4px; font-size: 10px; font-weight: 700; color: #fff; text-transform: uppercase; }
.threat-badge-clean { background: var(--green); }
.threat-badge-suspicious { background: #f59e0b; }
.threat-badge-crawler { background: var(--blue); }
.threat-badge-bot { background: #ec4899; }
.threat-badge-threat { background: var(--red); }

/* ── Override Button Styles ─────────────────────────────── */
.btn-success { background: var(--green); color: #fff; border: none; }
.btn-success:hover { background: #16a34a; }

/* ═══════════════════════════════════════════════════════════
   Directory Browser — Myrient-style tree view
   ═══════════════════════════════════════════════════════════ */

/* Breadcrumb navigation */
.browse-breadcrumb {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    margin-bottom: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    font-size: 13px;
    flex-wrap: wrap;
    box-shadow: var(--shadow-sm);
}
.browse-crumb {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all var(--transition-fast);
}
.browse-crumb:hover {
    background: var(--accent-soft);
    color: var(--accent-light);
}
.browse-crumb-sep {
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
}
.browse-crumb-sep .lucide-icon { width: 14px; height: 14px; }
.browse-crumb-current {
    color: var(--text-primary);
    font-weight: 600;
    padding: 2px 6px;
}
.browse-crumb-stats {
    margin-left: auto;
    color: var(--text-tertiary);
    font-size: 12px;
    font-family: var(--font-mono);
}

/* Folder grid */
.browse-folders {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}
.browse-folder-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}
.browse-folder-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}
.browse-folder-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    color: var(--accent);
    flex-shrink: 0;
}
.browse-folder-icon .lucide-icon { width: 20px; height: 20px; }
.browse-folder-info { flex: 1; min-width: 0; }
.browse-folder-name {
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.browse-folder-meta {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 2px;
    font-family: var(--font-mono);
}
.browse-folder-chevron {
    color: var(--text-tertiary);
    transition: transform var(--transition-fast);
    flex-shrink: 0;
}
.browse-folder-card:hover .browse-folder-chevron {
    color: var(--accent);
    transform: translateX(3px);
}
.browse-folder-chevron .lucide-icon { width: 18px; height: 18px; }

/* File table */
.browse-table { width: 100%; }
.browse-table thead th {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-tertiary);
    font-weight: 600;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-primary);
    white-space: nowrap;
}
.browse-th-sortable {
    cursor: pointer;
    user-select: none;
    transition: color var(--transition-fast);
}
.browse-th-sortable:hover { color: var(--accent) !important; }
.browse-th-icon { width: 32px; }

.browse-file-row td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-primary);
    font-size: 13px;
    vertical-align: middle;
}
.browse-file-row:hover { background: var(--bg-card-hover); }
.browse-file-row:last-child td { border-bottom: none; }

.browse-td-icon {
    width: 32px;
    text-align: center;
    color: var(--text-tertiary);
}
.browse-td-icon .lucide-icon { width: 16px; height: 16px; }
.browse-td-name {
    max-width: 320px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

/* Online indicator dot */
.browse-online-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.browse-online-dot.online {
    background: var(--green);
    box-shadow: 0 0 6px var(--green);
    animation: browse-pulse 2s infinite;
}
.browse-online-dot.offline {
    background: var(--text-tertiary);
    opacity: 0.4;
}
@keyframes browse-pulse {
    0%, 100% { box-shadow: 0 0 6px var(--green); }
    50% { box-shadow: 0 0 12px var(--green), 0 0 4px var(--green); }
}

/* Responsive */
@media (max-width: 768px) {
    .browse-folders { grid-template-columns: 1fr; }
    .browse-td-name { max-width: 160px; }
    .browse-crumb-stats { display: none; }
}

/* ── Speed Test Detail View ──────────────────────────────── */

/* Clickable table rows */
.clickable-row {
    cursor: pointer;
    transition: background 0.15s ease;
}
.clickable-row:hover {
    background: var(--bg-hover) !important;
}

/* Client detail grid */
.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px 24px;
}
.detail-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.detail-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}
.detail-value {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
}

/* Hourly bar chart */
.hourly-bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 80px;
    padding-bottom: 20px;
    position: relative;
}
.hour-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    position: relative;
    cursor: default;
}
.hour-bar-fill {
    width: 100%;
    min-width: 8px;
    max-width: 24px;
    border-radius: 3px 3px 0 0;
    background: var(--accent);
    transition: height 0.3s ease;
}
.hour-bar:hover .hour-bar-fill {
    opacity: 0.8;
}
.hour-label {
    position: absolute;
    bottom: -18px;
    font-size: 10px;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .detail-grid { grid-template-columns: 1fr; }
    .hour-label { font-size: 8px; }
}

/* ═══ Online-Zeiten Heatmap v2 ═══ */
.hm-grid {
    display: grid;
    grid-template-columns: 32px repeat(24, 1fr);
    gap: 3px;
    min-width: 480px;
}
.hm-corner { /* empty top-left cell */ }
.hm-hlabel {
    font-size: 9px;
    color: var(--text-secondary);
    text-align: center;
    padding-bottom: 2px;
    font-variant-numeric: tabular-nums;
}
.hm-dlabel {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 4px;
}
.hm-cell {
    aspect-ratio: 1;
    border-radius: 3px;
    min-height: 14px;
    cursor: default;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.hm-cell:hover {
    transform: scale(1.25);
    z-index: 2;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.hm-l0 { background: rgba(255, 255, 255, 0.04); }
.hm-l1 { background: rgba(124, 92, 252, 0.12); }
.hm-l2 { background: rgba(124, 92, 252, 0.28); }
.hm-l3 { background: rgba(124, 92, 252, 0.48); }
.hm-l4 { background: rgba(124, 92, 252, 0.70); }
.hm-l5 { background: rgba(124, 92, 252, 0.92); }

.hm-legend {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 12px;
    justify-content: flex-end;
}
.hm-legend-txt {
    font-size: 11px;
    color: var(--text-secondary);
}
.hm-lcell {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    flex-shrink: 0;
}

/* Online-Zeiten two-column layout */
.oz-duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

/* Leaderboard */
.lb-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.15s ease;
}
.lb-row:hover { background: rgba(255, 255, 255, 0.03); }
.lb-row:last-child { border-bottom: none; }
.lb-rank {
    width: 22px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    text-align: center;
    flex-shrink: 0;
}
.lb-info { flex: 1; min-width: 0; }
.lb-name {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lb-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--text-secondary);
    margin-right: 4px;
    vertical-align: middle;
    opacity: 0.4;
}
.lb-dot.lb-on {
    background: var(--success);
    opacity: 1;
    box-shadow: 0 0 6px var(--success);
}
.lb-bar-track {
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    overflow: hidden;
}
.lb-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, rgba(124, 92, 252, 0.4), rgba(124, 92, 252, 0.9));
    border-radius: 2px;
    transition: width 0.5s ease;
}
.lb-val {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    flex-shrink: 0;
    min-width: 50px;
    text-align: right;
}

/* Session cards */
.sess-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.sess-card:last-child { border-bottom: none; }
.sess-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--success);
    flex-shrink: 0;
}
.sess-info { flex: 1; min-width: 0; }
.sess-name {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sess-meta { font-size: 11px; }

@media (max-width: 1024px) {
    .oz-duo { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .hm-grid { min-width: 380px; }
    .hm-hlabel { font-size: 8px; }
    .hm-dlabel { font-size: 9px; }
}

/* ═══ Map cluster labels ═══ */
.map-cluster-label {
    background: rgba(124, 92, 252, 0.9) !important;
    border: none !important;
    border-radius: 50% !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    width: 22px !important;
    height: 22px !important;
    line-height: 22px !important;
    text-align: center !important;
    padding: 0 !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3) !important;
    margin-left: -11px !important;
    margin-top: -11px !important;
}
.map-cluster-label::before {
    display: none !important;
}

/* ── Traffic Sources Grid ── */
.traffic-src-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}
.tsrc-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: border-color 0.2s;
}
.tsrc-card:hover { border-color: var(--primary); }
.tsrc-icon { font-size: 1.5rem; flex-shrink: 0; }
.tsrc-info { flex: 1; min-width: 0; }
.tsrc-name { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-tertiary); font-weight: 600; }
.tsrc-val { font-size: 1.05rem; font-weight: 700; color: var(--text-primary); }
.tsrc-bar { width: 100%; height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; margin-top: 4px; }
.tsrc-fill { height: 100%; border-radius: 2px; min-width: 2px; transition: width 0.5s ease; }

/* ── Download Funnel ── */
.dl-funnel {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
}
.dl-funnel-step { flex: 1; text-align: center; }
.dl-funnel-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 8px;
    padding: 8px;
    margin-bottom: 4px;
}
.dl-funnel-val { font-size: 1.2rem; font-weight: 700; color: var(--text-primary); }
.dl-funnel-label { font-size: 0.72rem; color: var(--text-tertiary); font-weight: 500; }
.dl-funnel-arrow { font-size: 1.5rem; color: var(--text-tertiary); flex-shrink: 0; }

/* ── Install Status ── */
.install-error-link:hover { opacity: 0.8; text-decoration: underline; }
.badge-red { background: rgba(239,68,68,0.15); color: #ef4444; }
.badge-yellow { background: rgba(245,158,11,0.15); color: #f59e0b; }
.badge-neutral { background: rgba(148,163,184,0.15); color: var(--text-secondary); }

/* ── Small Progress Bars ── */
.progress-sm {
    display: inline-block;
    width: 60px;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
    vertical-align: middle;
    margin-right: 6px;
}
.progress-bar-sm {
    height: 100%;
    border-radius: 3px;
    background: var(--primary);
    min-width: 2px;
    transition: width 0.4s ease;
}

/* ── Build Progress Steps ──────────────────────────────── */
.bp-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    opacity: 0.35;
    transition: opacity .3s;
}
.bp-step.active,
.bp-step.done,
.bp-step.error { opacity: 1; }
.bp-step-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    transition: background .3s, box-shadow .3s;
}
.bp-step.active .bp-step-dot {
    background: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .25);
}
.bp-step.done .bp-step-dot {
    background: var(--success, #22c55e);
}
.bp-step.error .bp-step-dot {
    background: var(--error, #ef4444);
}

/* ═══════════════════════════════════════════════════════════
   Cookie Consent Banner — Conversion-Optimized
   ═══════════════════════════════════════════════════════════ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: var(--bg-card, #16161c);
    border-top: 1px solid var(--border-secondary, rgba(255,255,255,.10));
    box-shadow: 0 -8px 40px rgba(0,0,0,.5);
    padding: 0;
    transform: translateY(100%);
    animation: cookieSlideUp .5s cubic-bezier(.22,.61,.36,1) forwards;
    animation-delay: .8s;
    opacity: 0;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
@keyframes cookieSlideUp {
    to { transform: translateY(0); opacity: 1; }
}
.cookie-banner-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 24px 28px;
    display: flex;
    gap: 24px;
    align-items: flex-start;
}
.cookie-banner-content {
    flex: 1;
    min-width: 0;
}
.cookie-banner-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary, #e8e8ed);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cookie-banner-text {
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-secondary, #9898a6);
    margin-bottom: 14px;
}
.cookie-banner-text a {
    color: var(--accent, #7c5cfc);
    text-decoration: none;
}
.cookie-banner-text a:hover {
    text-decoration: underline;
}
.cookie-categories {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 0;
}
.cookie-cat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary, #9898a6);
    padding: 6px 12px;
    border-radius: 8px;
    background: var(--bg-tertiary, #1a1a20);
    border: 1px solid var(--border-primary, rgba(255,255,255,.06));
    user-select: none;
    cursor: pointer;
    transition: border-color .2s;
}
.cookie-cat:hover {
    border-color: var(--border-secondary, rgba(255,255,255,.15));
}
.cookie-cat.locked {
    opacity: .5;
    cursor: default;
}
.cookie-cat input[type="checkbox"] {
    display: none;
}
.cookie-toggle {
    position: relative;
    width: 32px;
    height: 18px;
    border-radius: 10px;
    background: var(--border-secondary, rgba(255,255,255,.12));
    transition: background .25s;
    flex-shrink: 0;
}
.cookie-toggle::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--text-tertiary, #6b6b7a);
    transition: transform .25s, background .25s;
}
.cookie-cat input:checked + .cookie-toggle {
    background: var(--accent, #7c5cfc);
}
.cookie-cat input:checked + .cookie-toggle::after {
    transform: translateX(14px);
    background: #fff;
}
.cookie-banner-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
    align-self: center;
}
.cookie-btn-accept {
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    background: var(--accent, #7c5cfc);
    color: #fff;
    cursor: pointer;
    transition: background .2s, transform .15s, box-shadow .2s;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(124,92,252,.35);
    letter-spacing: .3px;
}
.cookie-btn-accept:hover {
    background: var(--accent-hover, #6a48e8);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(124,92,252,.45);
}
.cookie-btn-accept:active {
    transform: translateY(0);
}
.cookie-btn-save {
    padding: 7px 16px;
    font-size: 11px;
    font-weight: 400;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--text-tertiary, #6b6b7a);
    cursor: pointer;
    transition: color .2s;
    white-space: nowrap;
    text-align: center;
}
.cookie-btn-save:hover {
    color: var(--text-secondary, #9898a6);
}

/* Mobile responsive */
@media (max-width: 640px) {
    .cookie-banner-inner {
        flex-direction: column;
        padding: 20px 16px;
        gap: 16px;
    }
    .cookie-banner-actions {
        flex-direction: row;
        width: 100%;
        align-self: stretch;
    }
    .cookie-btn-accept {
        flex: 1;
    }
    .cookie-categories {
        gap: 8px;
    }
    .cookie-cat {
        font-size: 11px;
        padding: 5px 10px;
    }
}
