/* ─── Design Tokens ────────────────────────────────────────── */
:root {
    --bg-deep: #0f172a;
    --bg-card: #1e293b;
    --bg-card-hover: #253449;
    --bg-surface: #162032;
    --bg-input: #0f172a;
    --border: #334155;
    --border-focus: #3b82f6;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.25);
    --green: #10b981;
    --green-dim: rgba(16, 185, 129, 0.15);
    --red: #ef4444;
    --red-dim: rgba(239, 68, 68, 0.15);
    --orange: #f97316;
    --orange-dim: rgba(249, 115, 22, 0.15);
    --yellow: #eab308;
    --yellow-dim: rgba(234, 179, 8, 0.15);
    --blue: #3b82f6;
    --blue-dim: rgba(59, 130, 246, 0.15);
    --gray: #64748b;
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.35);
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', 'JetBrains Mono', monospace;
    --transition: 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: #60a5fa; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
input, select, textarea, button { font-family: inherit; font-size: inherit; }
code { font-family: var(--font-mono); }

/* ─── Top Nav ──────────────────────────────────────────────── */
.top-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    max-width: 1280px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 24px; height: 64px;
}
.nav-brand {
    display: flex; align-items: center; gap: 10px;
    color: var(--text-primary); font-weight: 700; font-size: 1.1rem;
}
.brand-icon { font-size: 1.5rem; color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--text-secondary); font-size: 0.9rem; font-weight: 500; }
.nav-links a:hover { color: var(--text-primary); }
.nav-btn {
    padding: 8px 18px; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.875rem;
    transition: all var(--transition);
}
.nav-btn--ghost { border: 1px solid var(--border); color: var(--text-primary); }
.nav-btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.nav-btn--primary {
    background: var(--accent); color: white; border: 1px solid var(--accent);
}
.nav-btn--primary:hover { background: #2563eb; }

/* ─── Buttons ──────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 10px 22px; border: none; border-radius: var(--radius-sm);
    font-weight: 600; font-size: 0.9rem; cursor: pointer;
    transition: all var(--transition); line-height: 1.4;
}
.btn--primary { background: var(--accent); color: white; }
.btn--primary:hover { background: #2563eb; transform: translateY(-1px); }
.btn--ghost { background: transparent; border: 1px solid var(--border); color: var(--text-primary); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--danger { background: var(--red-dim); color: var(--red); border: 1px solid rgba(239,68,68,0.3); }
.btn--danger:hover { background: var(--red); color: white; }
.btn--lg { padding: 14px 32px; font-size: 1rem; border-radius: var(--radius); }
.btn--sm { padding: 6px 14px; font-size: 0.8rem; }
.btn--block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ─── Hero ─────────────────────────────────────────────────── */
.hero {
    position: relative; padding: 140px 24px 80px;
    min-height: 100vh; display: flex; flex-direction: column;
    align-items: center; overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0; pointer-events: none;
}
.hero-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(59,130,246,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59,130,246,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at 50% 30%, black 20%, transparent 70%);
}
.hero-glow {
    position: absolute; top: -20%; left: 50%; transform: translateX(-50%);
    width: 800px; height: 600px; border-radius: 50%;
    background: radial-gradient(ellipse, rgba(59,130,246,0.12) 0%, transparent 70%);
}
.hero-content {
    position: relative; text-align: center; max-width: 800px; z-index: 2;
}
.hero-badge {
    display: inline-block; padding: 6px 16px; border-radius: 100px;
    background: var(--accent-glow); color: var(--accent);
    font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em;
    text-transform: uppercase; margin-bottom: 24px;
    border: 1px solid rgba(59,130,246,0.2);
}
.hero-headline {
    font-size: clamp(2.2rem, 1rem + 5vw, 4rem);
    font-weight: 800; line-height: 1.1; margin-bottom: 20px;
    letter-spacing: -0.02em;
}
.hero-accent {
    background: linear-gradient(135deg, var(--accent), #818cf8);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-sub {
    font-size: clamp(1rem, 0.9rem + 0.3vw, 1.2rem);
    color: var(--text-secondary); max-width: 640px; margin: 0 auto 32px;
    line-height: 1.7;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats { display: flex; gap: 48px; justify-content: center; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat-num { display: block; font-size: 2rem; font-weight: 800; color: var(--text-primary); }
.hero-stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* ─── Scan Animation ───────────────────────────────────────── */
.hero-visual {
    position: relative; z-index: 2; margin-top: 60px;
    max-width: 700px; width: 100%;
}
.scan-terminal {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.terminal-bar {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 16px; background: var(--bg-surface); border-bottom: 1px solid var(--border);
}
.terminal-dot { width: 12px; height: 12px; border-radius: 50%; }
.terminal-dot.red { background: #ef4444; }
.terminal-dot.yellow { background: #eab308; }
.terminal-dot.green { background: #10b981; }
.terminal-title { margin-left: 12px; color: var(--text-muted); font-size: 0.8rem; font-family: var(--font-mono); }
.terminal-body { padding: 20px; font-family: var(--font-mono); font-size: 0.85rem; }
.scan-line {
    padding: 4px 0; color: var(--text-secondary);
    opacity: 0; animation: typeLine 0.4s ease forwards;
    animation-delay: var(--delay, 0s);
}
.scan-check { color: var(--green); margin-right: 8px; }
.scan-warn { color: var(--yellow); margin-right: 8px; }
.scan-crit { color: var(--red); margin-right: 8px; }
.scan-result { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); color: var(--text-primary); font-weight: 600; }
.score-val { color: var(--yellow); font-size: 1.1em; }
.grade-c { color: var(--yellow); }

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

/* ─── Features ─────────────────────────────────────────────── */
.section-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.features-section { padding: 100px 0; }
.section-title {
    text-align: center; font-size: clamp(1.6rem, 1.2rem + 2vw, 2.5rem);
    font-weight: 700; margin-bottom: 12px;
}
.section-sub {
    text-align: center; color: var(--text-secondary);
    font-size: 1.05rem; margin-bottom: 56px;
}
.feature-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}
.feature-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 32px;
    transition: all var(--transition);
}
.feature-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.feature-icon { font-size: 2rem; margin-bottom: 16px; }
.feature-card h3 { font-size: 1.15rem; margin-bottom: 8px; font-weight: 700; }
.feature-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; }

/* ─── CI/CD Section ────────────────────────────────────────── */
.cicd-section { padding: 80px 0; background: var(--bg-surface); }
.code-block {
    max-width: 750px; margin: 0 auto;
    background: var(--bg-deep); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden;
}
.code-header {
    padding: 10px 16px; background: var(--bg-card);
    border-bottom: 1px solid var(--border);
}
.code-lang { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; }
.code-block pre {
    padding: 20px; overflow-x: auto; font-family: var(--font-mono);
    font-size: 0.85rem; line-height: 1.7; color: var(--text-secondary);
}
.code-key { color: #818cf8; }
.code-str { color: var(--green); }
.code-fn { color: var(--yellow); }

/* ─── CTA ──────────────────────────────────────────────────── */
.cta-section {
    padding: 100px 0; text-align: center;
    background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-surface) 100%);
}
.cta-headline { font-size: clamp(1.8rem, 1.2rem + 3vw, 2.8rem); font-weight: 800; margin-bottom: 16px; }
.cta-sub { color: var(--text-secondary); font-size: 1.1rem; margin-bottom: 32px; }

/* ─── Pricing ──────────────────────────────────────────────── */
.pricing-hero {
    padding: 140px 24px 48px; text-align: center;
}
.pricing-hero h1 { font-size: clamp(2rem, 1.2rem + 3vw, 3rem); font-weight: 800; margin-bottom: 12px; }
.pricing-hero p { color: var(--text-secondary); font-size: 1.1rem; }
.pricing-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 24px; max-width: 1200px; margin: 0 auto; padding: 24px 24px 100px;
}
.pricing-card {
    position: relative;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 36px 28px;
    display: flex; flex-direction: column;
    transition: all var(--transition);
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pricing-card--featured {
    border-color: var(--accent);
    box-shadow: 0 0 40px var(--accent-glow);
}
.pricing-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--accent); color: white; padding: 4px 16px;
    border-radius: 100px; font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.05em;
}
.pricing-tier { font-size: 1.1rem; font-weight: 700; color: var(--text-secondary); margin-bottom: 8px; }
.pricing-price { margin-bottom: 24px; }
.price-amount { font-size: 2.5rem; font-weight: 800; }
.price-period { color: var(--text-muted); font-size: 1rem; }
.pricing-features { margin-bottom: 28px; flex: 1; }
.pricing-features li { padding: 8px 0; font-size: 0.9rem; color: var(--text-secondary); }
.pf-check { color: var(--green); margin-right: 8px; }
.pf-x { color: var(--text-muted); margin-right: 8px; }
.pf-disabled { opacity: 0.5; }

/* ─── Auth ─────────────────────────────────────────────────── */
.auth-section { padding: 120px 24px 60px; min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.auth-container {
    display: grid; grid-template-columns: 1fr 1fr;
    max-width: 900px; width: 100%;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-xl); overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.auth-card { padding: 48px 40px; }
.auth-header { margin-bottom: 32px; }
.auth-header h1 { font-size: 1.6rem; font-weight: 800; margin-bottom: 6px; }
.auth-header p { color: var(--text-secondary); font-size: 0.9rem; }
.auth-error {
    background: var(--red-dim); color: var(--red);
    padding: 10px 14px; border-radius: var(--radius-sm);
    font-size: 0.85rem; margin-bottom: 20px;
    border: 1px solid rgba(239,68,68,0.2);
}
.auth-form { display: flex; flex-direction: column; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); }
.form-group input, .form-group select, .form-group textarea {
    background: var(--bg-input); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 10px 14px;
    color: var(--text-primary); font-size: 0.9rem;
    transition: border-color var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.auth-footer { margin-top: 24px; text-align: center; }
.auth-footer p { color: var(--text-muted); font-size: 0.85rem; }
.auth-side {
    background: var(--bg-surface);
    display: flex; align-items: center; justify-content: center; padding: 40px;
    border-left: 1px solid var(--border);
}
.auth-side-content { text-align: center; }
.auth-proof-icon { font-size: 3rem; color: var(--accent); margin-bottom: 16px; }
.auth-side h2 { font-size: 1.3rem; margin-bottom: 12px; }
.auth-side p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; }
.auth-proof-stats { display: grid; gap: 16px; margin-top: 24px; text-align: left; }
.auth-proof-stats div { background: var(--bg-card); padding: 12px; border-radius: var(--radius-sm); font-size: 0.85rem; color: var(--text-secondary); }
.auth-proof-stats strong { color: var(--text-primary); }
.auth-features-list { text-align: left; margin-top: 16px; }
.auth-features-list li { padding: 6px 0; color: var(--text-secondary); font-size: 0.9rem; }

.google-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 11px 20px;
    background: #fff; color: #3c4043;
    border: 1px solid #dadce0; border-radius: var(--radius-sm);
    font-size: 0.9rem; font-weight: 600;
    cursor: pointer; text-decoration: none;
    transition: box-shadow var(--transition), border-color var(--transition);
}
.google-btn:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border-color: #bdc1c6;
    color: #3c4043;
}
.google-btn__icon { flex-shrink: 0; }

.auth-divider {
    display: flex; align-items: center; gap: 14px;
    margin: 20px 0;
    color: var(--text-muted); font-size: 0.8rem;
}
.auth-divider::before,
.auth-divider::after {
    content: ''; flex: 1; height: 1px;
    background: var(--border);
}

@media (max-width: 768px) {
    .auth-container { grid-template-columns: 1fr; }
    .auth-side { display: none; }
}

/* ─── Footer ───────────────────────────────────────────────── */
.site-footer {
    border-top: 1px solid var(--border); padding: 60px 24px 30px;
    background: var(--bg-surface);
}
.footer-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px;
}
.footer-brand { }
.footer-brand .brand-icon { color: var(--accent); font-size: 1.3rem; }
.footer-tagline { color: var(--text-muted); font-size: 0.85rem; margin-top: 8px; }
.footer-links { display: flex; gap: 60px; }
.footer-col h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 12px; }
.footer-col a { display: block; color: var(--text-secondary); font-size: 0.9rem; padding: 4px 0; }
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom {
    max-width: 1200px; margin: 40px auto 0; padding-top: 20px;
    border-top: 1px solid var(--border); text-align: center;
}
.footer-bottom p { color: var(--text-muted); font-size: 0.8rem; }

/* ─── Dashboard Layout ─────────────────────────────────────── */
.dashboard-body { display: flex; min-height: 100vh; }
.sidebar {
    width: 220px; min-height: 100vh; position: fixed; left: 0; top: 0;
    background: var(--bg-card); border-right: 1px solid var(--border);
    display: flex; flex-direction: column; z-index: 50;
}
.sidebar-brand {
    padding: 20px 18px; display: flex; align-items: center; gap: 10px;
    border-bottom: 1px solid var(--border); font-weight: 800; font-size: 1.1rem;
}
.sidebar-nav { flex: 1; padding: 12px 8px; display: flex; flex-direction: column; gap: 4px; }
.sidebar-link {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; border-radius: var(--radius-sm);
    color: var(--text-secondary); font-size: 0.9rem; font-weight: 500;
    transition: all var(--transition);
}
.sidebar-link:hover { background: var(--bg-surface); color: var(--text-primary); }
.sidebar-link.active { background: var(--accent-glow); color: var(--accent); font-weight: 600; }
.sidebar-icon { font-size: 1.1rem; width: 20px; text-align: center; }
.sidebar-footer { padding: 12px; border-top: 1px solid var(--border); }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 8px; margin-bottom: 4px; }
.sidebar-user-avatar {
    width: 32px; height: 32px; border-radius: 50%; background: var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; font-weight: 700; color: white;
}
.sidebar-user-name { font-size: 0.8rem; font-weight: 600; display: block; }
.sidebar-user-plan { font-size: 0.7rem; color: var(--text-muted); }
.sidebar-link--logout { color: var(--text-muted); }
.sidebar-link--logout:hover { color: var(--red); }

.dashboard-main { margin-left: 220px; flex: 1; min-height: 100vh; }
.dashboard-header {
    position: sticky; top: 0; z-index: 30;
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 32px; background: rgba(15,23,42,0.9);
    backdrop-filter: blur(12px); border-bottom: 1px solid var(--border);
}
.dashboard-page-title { font-size: 1.2rem; font-weight: 700; }
.notification-bell { position: relative; cursor: pointer; font-size: 1.2rem; padding: 4px; }
.notif-badge {
    position: absolute; top: -4px; right: -6px;
    background: var(--red); color: white; font-size: 0.65rem; font-weight: 700;
    padding: 2px 5px; border-radius: 100px; min-width: 16px; text-align: center;
}
.dashboard-content { padding: 28px 32px; }

/* ─── Overview ─────────────────────────────────────────────── */
.overview-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; margin-bottom: 32px; }
.score-card-main { display: flex; align-items: center; gap: 24px; }
.score-circle {
    width: 100px; height: 100px; border-radius: 50%;
    border: 4px solid var(--score-color, var(--accent));
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: var(--bg-card); box-shadow: 0 0 24px rgba(0,0,0,0.2);
}
.score-circle--lg { width: 130px; height: 130px; border-width: 5px; }
.score-grade { font-size: 1.6rem; font-weight: 800; color: var(--score-color, var(--accent)); line-height: 1; }
.score-circle--lg .score-grade { font-size: 2.2rem; }
.score-number { font-size: 0.75rem; color: var(--text-muted); }
.score-circle--lg .score-number { font-size: 0.9rem; }
.score-meta h2 { font-size: 1.1rem; font-weight: 700; }
.score-meta p { color: var(--text-secondary); font-size: 0.85rem; }
.score-plan { color: var(--text-muted) !important; font-size: 0.8rem !important; }

.quick-actions { display: flex; gap: 12px; }

/* ─── Charts ───────────────────────────────────────────────── */
.overview-charts { margin-bottom: 32px; }
.chart-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 24px;
    max-height: 360px; position: relative;
}
.chart-card canvas { max-height: 260px; }
.chart-card h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 16px; color: var(--text-secondary); }
.domain-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 32px; }
@media (max-width: 900px) { .domain-charts { grid-template-columns: 1fr; } }

/* ─── Domain Cards ─────────────────────────────────────────── */
.overview-domains { margin-bottom: 32px; }
.domain-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; max-height: 520px; overflow-y: auto; padding-right: 4px; }
.domain-card {
    display: block; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px;
    transition: all var(--transition); color: var(--text-primary);
}
.domain-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.domain-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.domain-name { font-weight: 700; font-size: 0.95rem; }
.domain-grade {
    padding: 4px 10px; border-radius: var(--radius-sm);
    color: white; font-weight: 800; font-size: 0.8rem;
}
.domain-score-bar {
    height: 6px; background: var(--bg-deep); border-radius: 3px;
    margin-bottom: 10px; overflow: hidden;
}
.domain-score-fill { height: 100%; border-radius: 3px; transition: width 0.6s ease; }
.domain-card-stats { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 8px; }
.domain-card-meta { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--text-muted); }

/* ─── Domain Detail ────────────────────────────────────────── */
.domain-top { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-bottom: 32px; }
.domain-info h2 { font-size: 1.3rem; font-weight: 700; }
.domain-meta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.meta-tag {
    background: var(--bg-surface); padding: 4px 10px; border-radius: var(--radius-sm);
    font-size: 0.8rem; color: var(--text-secondary);
}
.meta-tag--active { background: var(--green-dim); color: var(--green); }
.domain-last-scan-time { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }
.domain-actions { margin-left: auto; display: flex; gap: 10px; }

/* ─── Findings ─────────────────────────────────────────────── */
.section-heading { font-size: 1rem; font-weight: 700; margin-bottom: 16px; color: var(--text-secondary); }
.findings-section { margin-bottom: 32px; }
.findings-category { margin-bottom: 24px; }
.category-heading {
    font-size: 0.85rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.05em; color: var(--text-muted);
    margin-bottom: 10px; display: flex; align-items: center; gap: 8px;
}
.category-count {
    background: var(--bg-surface); padding: 2px 8px; border-radius: 100px;
    font-size: 0.75rem; color: var(--text-secondary);
}
.findings-list { display: flex; flex-direction: column; gap: 8px; max-height: 600px; overflow-y: auto; padding-right: 4px; }
.finding-row {
    display: flex; gap: 14px; padding: 14px 18px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); transition: border-color var(--transition);
}
.finding-row:hover { border-color: var(--border-focus); }
.finding-row--critical { border-left: 3px solid var(--red); }
.finding-row--high { border-left: 3px solid var(--orange); }
.finding-row--medium { border-left: 3px solid var(--yellow); }
.finding-row--low { border-left: 3px solid var(--blue); }
.finding-row--info { border-left: 3px solid var(--gray); }
.finding-severity {
    padding: 3px 8px; border-radius: 4px; color: white;
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
    height: fit-content; white-space: nowrap;
}
.finding-details { flex: 1; min-width: 0; }
.finding-title { font-weight: 600; font-size: 0.9rem; }
.finding-title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.finding-domain-tag {
    font-size: 0.7rem; background: var(--bg-surface); padding: 2px 8px;
    border-radius: 4px; color: var(--text-muted);
}
.finding-desc { color: var(--text-secondary); font-size: 0.85rem; margin-top: 4px; }
.finding-remediation { color: var(--text-secondary); font-size: 0.8rem; margin-top: 6px; }
.finding-remediation strong { color: var(--green); }
.finding-evidence {
    margin-top: 6px; font-size: 0.8rem; color: var(--text-muted);
}
.finding-evidence summary { cursor: pointer; color: var(--text-muted); }
.finding-evidence code {
    display: block; margin-top: 4px; padding: 8px;
    background: var(--bg-deep); border-radius: 4px;
    font-size: 0.75rem; word-break: break-all;
}
.finding-tags { display: flex; gap: 6px; margin-top: 6px; }
.finding-cat-tag {
    font-size: 0.7rem; background: var(--bg-surface);
    padding: 2px 8px; border-radius: 4px; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.05em;
}
.finding-cwe { font-size: 0.7rem; color: var(--text-muted); background: var(--bg-surface); padding: 2px 8px; border-radius: 4px; }

/* ─── Findings Controls ────────────────────────────────────── */
.findings-controls {
    display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap;
    margin-bottom: 24px; padding: 16px; background: var(--bg-card);
    border: 1px solid var(--border); border-radius: var(--radius);
}
.filter-group { display: flex; flex-direction: column; gap: 4px; }
.filter-group label { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.filter-group select, .filter-group input {
    background: var(--bg-input); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 8px 12px;
    color: var(--text-primary); font-size: 0.85rem;
}
.filter-group select:focus, .filter-group input:focus { outline: none; border-color: var(--accent); }
.findings-count { margin-left: auto; color: var(--text-muted); font-size: 0.85rem; }

/* ─── Tables ───────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; max-height: 500px; overflow-y: auto; }
.data-table {
    width: 100%; border-collapse: collapse;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
}
.data-table th {
    text-align: left; padding: 10px 14px; font-size: 0.75rem;
    text-transform: uppercase; letter-spacing: 0.05em;
    color: var(--text-muted); background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
}
.data-table td {
    padding: 10px 14px; font-size: 0.85rem; color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg-surface); }
.grade-badge {
    display: inline-block; padding: 2px 8px; border-radius: 4px;
    color: white; font-size: 0.75rem; font-weight: 700;
}
.method-badge {
    background: var(--accent-glow); color: var(--accent);
    padding: 2px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: 600;
}
.scan-type-badge {
    background: var(--bg-surface); padding: 2px 8px; border-radius: 4px;
    font-size: 0.75rem; color: var(--text-muted);
}
.count-critical { color: var(--red); font-weight: 700; }
.count-high { color: var(--orange); font-weight: 700; }
.role-badge { padding: 3px 10px; border-radius: 100px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; }
.role-badge--admin { background: var(--accent-glow); color: var(--accent); }
.role-badge--member { background: var(--bg-surface); color: var(--text-muted); }

/* ─── Alerts ───────────────────────────────────────────────── */
.alert-feed { display: flex; flex-direction: column; gap: 8px; max-height: 400px; overflow-y: auto; padding-right: 4px; }
.alert-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; background: var(--bg-card);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.alert-severity-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.alert-content { flex: 1; }
.alert-title { font-size: 0.85rem; font-weight: 500; }
.alert-domain { font-size: 0.75rem; color: var(--text-muted); margin-left: 8px; }
.alert-time { font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; }

/* ─── Team ─────────────────────────────────────────────────── */
.team-sections { display: flex; flex-direction: column; gap: 32px; }
.team-section { }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.section-header h3 { font-size: 1rem; font-weight: 700; }
.member-cell { display: flex; align-items: center; gap: 10px; }
.member-avatar {
    width: 28px; height: 28px; border-radius: 50%; background: var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem; font-weight: 700; color: white;
}

/* ─── Settings ─────────────────────────────────────────────── */
.settings-sections { display: flex; flex-direction: column; gap: 32px; }
.settings-section h3 { font-size: 1rem; font-weight: 700; margin-bottom: 16px; }
.settings-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 24px;
}
.settings-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 0; border-bottom: 1px solid var(--border);
}
.settings-row:last-child { border-bottom: none; }
.settings-label { color: var(--text-secondary); font-size: 0.85rem; }
.settings-value { font-weight: 600; font-size: 0.9rem; }
.plan-badge {
    padding: 3px 10px; border-radius: 100px; font-size: 0.75rem; font-weight: 700;
}
.plan-badge--free { background: var(--bg-surface); color: var(--text-muted); }
.plan-badge--starter { background: var(--blue-dim); color: var(--blue); }
.plan-badge--growth { background: var(--green-dim); color: var(--green); }
.plan-badge--enterprise { background: rgba(168,85,247,0.15); color: #a855f7; }
.checkbox-group { display: flex; flex-direction: column; gap: 8px; }
.checkbox-label {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.85rem; color: var(--text-secondary); cursor: pointer;
}
.checkbox-label input[type="checkbox"] { accent-color: var(--accent); }
.upgrade-card {
    background: linear-gradient(135deg, rgba(59,130,246,0.1), rgba(129,140,248,0.1));
    border: 1px solid rgba(59,130,246,0.2); border-radius: var(--radius);
    padding: 24px; margin-top: 16px;
}
.upgrade-card h4 { font-size: 1rem; margin-bottom: 8px; }
.upgrade-card p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 16px; }

/* ─── Docs ─────────────────────────────────────────────────── */
.docs-content { display: flex; gap: 32px; }
.docs-sidebar {
    width: 200px; flex-shrink: 0; position: sticky; top: 80px; height: fit-content;
}
.docs-sidebar h4 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 12px; }
.docs-nav-link {
    display: block; padding: 6px 0; font-size: 0.85rem;
    color: var(--text-secondary); transition: color var(--transition);
}
.docs-nav-link:hover { color: var(--accent); }
.docs-body { flex: 1; min-width: 0; }
.docs-section { margin-bottom: 48px; }
.docs-section h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.docs-section h3 { font-size: 1rem; font-weight: 600; margin: 20px 0 8px; color: var(--accent); }
.docs-section p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 12px; line-height: 1.6; }
.docs-code {
    background: var(--bg-deep); border: 1px solid var(--border);
    border-radius: var(--radius-sm); margin-bottom: 16px; overflow-x: auto;
}
.docs-code pre {
    padding: 16px; font-family: var(--font-mono);
    font-size: 0.8rem; line-height: 1.7; color: var(--text-secondary);
}

/* ─── Modals ───────────────────────────────────────────────── */
.modal-overlay {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
}
.modal-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 32px;
    max-width: 480px; width: 100%; box-shadow: var(--shadow-lg);
}
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.modal-header h2 { font-size: 1.1rem; font-weight: 700; }
.modal-close {
    background: none; border: none; color: var(--text-muted);
    font-size: 1.5rem; cursor: pointer; padding: 4px;
}
.modal-close:hover { color: var(--text-primary); }

/* ─── Form feedback ────────────────────────────────────────── */
.form-error {
    background: var(--red-dim); color: var(--red);
    padding: 10px 14px; border-radius: var(--radius-sm);
    font-size: 0.85rem; margin: 12px 0;
    border: 1px solid rgba(239,68,68,0.2);
}
.form-success {
    background: var(--green-dim); color: var(--green);
    padding: 10px 14px; border-radius: var(--radius-sm);
    font-size: 0.85rem; margin: 12px 0;
    border: 1px solid rgba(16,185,129,0.2);
}
.form-success code {
    background: var(--bg-deep); padding: 4px 8px; border-radius: 4px;
    font-size: 0.8rem; word-break: break-all;
}
.key-display {
    display: block !important; margin-top: 8px; padding: 8px 12px !important;
    font-size: 0.9rem !important; user-select: all;
}

/* ─── Empty States ─────────────────────────────────────────── */
.empty-state {
    text-align: center; padding: 60px 24px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.empty-state--sm { padding: 24px; }
.empty-icon { font-size: 3rem; margin-bottom: 16px; opacity: 0.5; }
.empty-state h3 { font-size: 1.1rem; margin-bottom: 8px; }
.empty-state p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 20px; }

/* ─── Misc ─────────────────────────────────────────────────── */
.text-muted { color: var(--text-muted); font-size: 0.8rem; }
.overview-alerts { margin-top: 32px; }

/* ─── Scrollbar Styling ───────────────────────────────────── */
.domain-cards::-webkit-scrollbar,
.alert-feed::-webkit-scrollbar,
.findings-list::-webkit-scrollbar,
.table-wrap::-webkit-scrollbar {
    width: 6px;
}
.domain-cards::-webkit-scrollbar-track,
.alert-feed::-webkit-scrollbar-track,
.findings-list::-webkit-scrollbar-track,
.table-wrap::-webkit-scrollbar-track {
    background: transparent;
}
.domain-cards::-webkit-scrollbar-thumb,
.alert-feed::-webkit-scrollbar-thumb,
.findings-list::-webkit-scrollbar-thumb,
.table-wrap::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}
.domain-cards::-webkit-scrollbar-thumb:hover,
.alert-feed::-webkit-scrollbar-thumb:hover,
.findings-list::-webkit-scrollbar-thumb:hover,
.table-wrap::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ─── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
    .sidebar { width: 64px; }
    .sidebar-label { display: none; }
    .sidebar-brand .brand-text { display: none; }
    .sidebar-user-info { display: none; }
    .sidebar-brand { justify-content: center; padding: 20px 8px; }
    .sidebar-link { justify-content: center; padding: 10px; }
    .sidebar-icon { width: auto; }
    .dashboard-main { margin-left: 64px; }
    .dashboard-content { padding: 16px; }
    .overview-top { flex-direction: column; align-items: flex-start; }
    .domain-cards { grid-template-columns: 1fr; }
    .findings-controls { flex-direction: column; align-items: stretch; }
    .findings-count { margin-left: 0; }
    .hero-stats { gap: 24px; }
    .feature-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .docs-content { flex-direction: column; }
    .docs-sidebar { width: 100%; position: static; }
}
