/* ================================================================
   SUNSETRADAR — BRAND DESIGN SYSTEM
   Intelligence dashboard meets cassette futurism.
   Bloomberg terminal with sunset colors.
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@400;500;600;700&family=IBM+Plex+Sans:wght@300;400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

/* ================================================================
   1. DESIGN TOKENS
   ================================================================ */
:root {
    /* Backgrounds — deep charcoal, not brown */
    --bg:            #0c0c0a;
    --bg-alt:        #121210;
    --surface:       #1a1714;
    --surface2:      #221f1a;

    /* Borders */
    --border:        #2e2a24;
    --border-hover:  rgba(232, 145, 58, 0.4);
    --border-glow:   rgba(232, 145, 58, 0.25);

    /* Accents — tangerine, not amber */
    --amber:         #e8913a;
    --amber-dim:     #d4782a;
    --amber-glow:    rgba(232, 145, 58, 0.15);
    --gold:          #cd7f32;
    --bronze:        #a0622d;
    --sienna:        #7a4a1e;

    /* Semantic */
    --green:         #7ab648;
    --warning:       #e8913a;
    --red:           #c44a2e;

    /* Text — cream */
    --text:          #e8dcc8;
    --text-dim:      #a89880;
    --text-muted:    #6a5e50;

    /* Glow */
    --glow:          rgba(232, 145, 58, 0.12);
    --glow-strong:   rgba(232, 145, 58, 0.22);

    /* Bevel — cassette-futurism hardware panel look */
    --bevel:         inset 0 1px 0 rgba(255,255,255,0.06), inset 0 -1px 0 rgba(0,0,0,0.3);
}

/* ================================================================
   2. RESET
   ================================================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* ================================================================
   3. BASE TYPOGRAPHY
   ================================================================ */
body {
    font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Chakra Petch', system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--text);
}

a {
    color: var(--amber);
    text-decoration: none;
    transition: color 0.2s, opacity 0.2s;
}

a:hover {
    color: #f0a855;
}

::selection {
    background: rgba(232, 145, 58, 0.3);
    color: var(--text);
}

/* ================================================================
   4. EFFECTS — GRAIN / SCANLINES / SCROLLBAR
   ================================================================ */
.grain {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 100;
    opacity: 0.4;
}

.radar-bg {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(232, 145, 58, 0.018) 2px,
        rgba(232, 145, 58, 0.018) 3px
    );
    pointer-events: none;
    z-index: 0;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--amber-dim); }

/* ================================================================
   5. CONTENT WRAPPER
   ================================================================ */
.content {
    position: relative;
    z-index: 10;
}

/* ================================================================
   6. LOGO TREATMENT
   Extracted radar graphic (PNG with transparency) + "SunsetRadar." text.
   The radar image is 56-64px for visible circuit board detail.
   Text sits to the RIGHT of the image, styled to match the original graphic.
   ================================================================ */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
}

.logo:hover .logo-text {
    color: #f0a855;
}

.logo-radar-wrap {
    width: 60px;
    height: 60px;
    overflow: hidden;
    border-radius: 50%;
    flex-shrink: 0;
    filter: drop-shadow(0 0 12px rgba(232, 145, 58, 0.35));
}

.logo-radar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* Fallback for SVG icon */
.logo-radar {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 12px rgba(232, 145, 58, 0.35));
}

.logo-text {
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    font-size: 1.9rem;
    letter-spacing: 0.02em;
    color: #e8913a;
    white-space: nowrap;
    transition: color 0.2s;
}

.logo-dot {
    color: #e8913a;
}

/* Hide old logo img if still referenced */
.logo-img {
    display: none !important;
}

/* ================================================================
   7. NAVIGATION (SHARED)
   ================================================================ */
nav {
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 0.75rem;
    border-bottom: 3px double var(--border);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.nav-link {
    font-size: 0.9rem;
    color: var(--text-dim);
    text-decoration: none;
    padding: 0.4rem 0.75rem;
    border-radius: 2px;
    transition: color 0.2s, background 0.2s;
    font-weight: 500;
}

.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--amber); }

.nav-links {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
}

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

.nav-btn {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.55rem 1.35rem;
    border-radius: 2px;
    text-decoration: none;
    transition: all 0.2s;
    background: linear-gradient(180deg, #f0a04a, var(--amber) 40%, var(--amber-dim));
    color: #0c0c0a;
    box-shadow: 0 2px 8px rgba(232, 145, 58, 0.25), inset 0 1px 0 rgba(255,255,255,0.2), inset 0 -1px 0 rgba(0,0,0,0.2);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--amber-dim);
}

.nav-btn:hover {
    box-shadow: 0 4px 16px rgba(232, 145, 58, 0.35), inset 0 1px 0 rgba(255,255,255,0.2);
    transform: translateY(-1px);
    color: #0c0c0a;
}

/* ================================================================
   8. BUTTONS
   ================================================================ */
.btn {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 2px;
    border: 1.5px solid var(--border);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    box-shadow: var(--bevel), 0 1px 3px rgba(0,0,0,0.3);
}

.btn:hover {
    border-color: var(--border-hover);
    background: rgba(232, 145, 58, 0.06);
    box-shadow: 0 0 10px rgba(232, 145, 58, 0.08), var(--bevel);
}

.btn-primary {
    background: linear-gradient(180deg, #f0a04a, var(--amber) 40%, var(--amber-dim));
    border: 1.5px solid var(--amber-dim);
    color: #0c0c0a;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(232, 145, 58, 0.25), inset 0 1px 0 rgba(255,255,255,0.2), inset 0 -1px 0 rgba(0,0,0,0.15);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-family: 'Chakra Petch', sans-serif;
}

.btn-primary:hover {
    box-shadow: 0 4px 16px rgba(232, 145, 58, 0.35), inset 0 1px 0 rgba(255,255,255,0.2);
    transform: translateY(-1px);
}

.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-deep {
    background: linear-gradient(180deg, #d49045, var(--bronze) 40%, var(--sienna));
    border: 1.5px solid var(--sienna);
    color: #0c0c0a;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(205, 127, 50, 0.25), inset 0 1px 0 rgba(255,255,255,0.2), inset 0 -1px 0 rgba(0,0,0,0.15);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-family: 'Chakra Petch', sans-serif;
    border-radius: 2px;
}

.btn-deep:hover {
    box-shadow: 0 4px 16px rgba(205, 127, 50, 0.3);
    transform: translateY(-1px);
}

.btn-deep:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-brand {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.6rem 1.5rem;
    border-radius: 2px;
    border: 1.5px solid var(--amber-dim);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: linear-gradient(180deg, #f0a04a, var(--amber) 40%, var(--amber-dim));
    color: #0c0c0a;
    box-shadow: 0 2px 8px rgba(232, 145, 58, 0.25), inset 0 1px 0 rgba(255,255,255,0.2), inset 0 -1px 0 rgba(0,0,0,0.15);
}

.btn-brand:hover {
    box-shadow: 0 4px 16px rgba(232, 145, 58, 0.35), inset 0 1px 0 rgba(255,255,255,0.2);
    transform: translateY(-1px);
}

.btn-upgrade {
    background: linear-gradient(180deg, #f0a04a, var(--amber) 40%, var(--amber-dim));
    border: 1.5px solid var(--amber-dim);
    color: #0c0c0a;
    font-size: 0.8rem;
    padding: 0.4rem 0.9rem;
    border-radius: 2px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), inset 0 -1px 0 rgba(0,0,0,0.15);
    font-weight: 700;
    border-radius: 3px;
}

.btn-upgrade:hover { box-shadow: 0 4px 12px rgba(232, 145, 58, 0.3); }

/* ================================================================
   9. FORMS
   ================================================================ */
.form-group {
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group.full { grid-column: 1 / -1; }

.form-group label,
label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: 'IBM Plex Mono', monospace;
    margin-bottom: 0.35rem;
}

.form-group input,
.form-group select,
.form-group textarea,
input, textarea, select {
    width: 100%;
    padding: 0.7rem 0.9rem;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 3px;
    color: var(--text);
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
input:focus, textarea:focus, select:focus {
    border-color: var(--amber);
    box-shadow: 0 0 0 3px rgba(232, 145, 58, 0.1);
}

.form-group input::placeholder,
input::placeholder,
textarea::placeholder { color: var(--text-muted); }

.form-group select { appearance: none; cursor: pointer; }

textarea { min-height: 140px; }

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* ================================================================
   10. STATUS INDICATORS
   ================================================================ */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-pill.healthy { color: var(--green); background: rgba(122, 182, 72, 0.12); border: 1px solid rgba(122, 182, 72, 0.25); }
.status-pill.warning { color: var(--warning); background: rgba(232, 145, 58, 0.12); border: 1px solid rgba(232, 145, 58, 0.25); }
.status-pill.dead { color: var(--red); background: rgba(196, 74, 46, 0.12); border: 1px solid rgba(196, 74, 46, 0.25); }
.status-pill.unknown { color: var(--text-dim); background: rgba(168, 152, 128, 0.08); border: 1px solid rgba(168, 152, 128, 0.15); }

.status-pill .dot {
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: currentColor;
    box-shadow: 0 0 6px currentColor, 0 0 10px currentColor;
}

.status-pill.healthy .dot { animation: pulse-dot 2s ease-in-out infinite; }

/* Tier badges */
.tier-badge {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.tier-badge.free { background: rgba(168, 152, 128, 0.12); border: 1px solid rgba(168, 152, 128, 0.25); color: var(--text-dim); }
.tier-badge.pro { background: rgba(232, 145, 58, 0.12); border: 1px solid rgba(232, 145, 58, 0.25); color: var(--amber); }
.tier-badge.team { background: rgba(205, 127, 50, 0.12); border: 1px solid rgba(205, 127, 50, 0.25); color: var(--bronze); }

.monitor-count {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-dim);
    white-space: nowrap;
}
.monitor-count.at-limit { color: var(--amber); }

/* Metric colors */
.metric { font-family: 'IBM Plex Mono', monospace; font-size: 0.8rem; }
.metric.good { color: var(--green); }
.metric.warn { color: var(--warning); }
.metric.bad { color: var(--red); }
.metric.na { color: var(--text-dim); }

/* Score pills */
.score-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.2rem 0.6rem;
    border-radius: 2px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'IBM Plex Mono', monospace;
}

.score-green { background: rgba(122, 182, 72, 0.12); color: var(--green); border: 1px solid rgba(122, 182, 72, 0.3); }
.score-amber { background: rgba(232, 145, 58, 0.12); color: var(--amber); border: 1px solid rgba(232, 145, 58, 0.3); }
.score-red { background: rgba(196, 74, 46, 0.12); color: var(--red); border: 1px solid rgba(196, 74, 46, 0.3); }

/* ================================================================
   11. CARD SYSTEM
   ================================================================ */
.card-hover {
    transition: border-color 0.25s, box-shadow 0.25s;
    box-shadow: var(--bevel);
}

.card-hover:hover {
    border-color: var(--border-glow) !important;
    box-shadow: 0 0 16px rgba(232, 145, 58, 0.1), var(--bevel) !important;
}

/* ================================================================
   12. LANDING PAGE
   ================================================================ */

/* Hero */
.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem 4rem;
    text-align: center;
}

.hero-tag {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: var(--amber);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(232, 145, 58, 0.3);
    padding: 0.35rem 0.85rem;
    background: rgba(232, 145, 58, 0.06);
    display: inline-block;
    border-radius: 2px;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, var(--amber), var(--red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1.25rem;
    color: var(--text-dim);
    max-width: 620px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-cta a {
    display: inline-block;
    padding: 0.9rem 2rem;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 3px;
    text-decoration: none;
    transition: all 0.2s;
    letter-spacing: 0.02em;
}

.cta-primary {
    background: linear-gradient(180deg, #f0a04a, var(--amber) 40%, var(--amber-dim));
    color: #0c0c0a;
    box-shadow: 0 4px 16px rgba(232, 145, 58, 0.3), inset 0 1px 0 rgba(255,255,255,0.25), inset 0 -2px 0 rgba(0,0,0,0.15);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 700;
    border: 1.5px solid var(--amber-dim);
    border-radius: 2px;
}

.cta-primary:hover {
    box-shadow: 0 6px 24px rgba(232, 145, 58, 0.4), inset 0 1px 0 rgba(255,255,255,0.25);
    transform: translateY(-2px);
    color: #0c0c0a;
}

.cta-secondary {
    background: var(--surface);
    border: 1.5px solid var(--border);
    color: var(--text);
    box-shadow: var(--bevel), 0 2px 6px rgba(0,0,0,0.3);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-family: 'Chakra Petch', sans-serif;
    border-radius: 2px;
}

.cta-secondary:hover {
    border-color: var(--amber);
    color: var(--text);
    box-shadow: 0 0 12px rgba(232, 145, 58, 0.1), var(--bevel);
}

.hero-note {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    color: var(--text-dim);
    margin-top: 1.25rem;
    letter-spacing: 0.02em;
}

/* Vendor teaser */
.teaser {
    max-width: 960px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
}

.teaser-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.teaser-header h2 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-dim);
    letter-spacing: 0;
}

.teaser-header h2 span { color: var(--amber); }

.teaser-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1.5px solid var(--border);
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.teaser-card {
    background: var(--surface);
    padding: 1.75rem;
    transition: box-shadow 0.3s;
    box-shadow: var(--bevel);
}

.teaser-card:hover {
    box-shadow: inset 0 0 30px rgba(232, 145, 58, 0.05), var(--bevel);
}

.teaser-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.teaser-vendor-name { font-weight: 600; font-size: 1rem; }
.teaser-vendor-domain { font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem; color: var(--text-dim); margin-top: 0.1rem; }

.teaser-status {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.teaser-status.healthy { color: var(--green); background: rgba(122, 182, 72, 0.1); border: 1px solid rgba(122, 182, 72, 0.2); }
.teaser-status.warning { color: var(--warning); background: rgba(232, 145, 58, 0.1); border: 1px solid rgba(232, 145, 58, 0.2); }
.teaser-status.dead { color: var(--red); background: rgba(196, 74, 46, 0.1); border: 1px solid rgba(196, 74, 46, 0.2); }

.teaser-status .dot {
    width: 6px;
    height: 6px;
    border-radius: 2px;
    background: currentColor;
    box-shadow: 0 0 6px currentColor;
}

.teaser-status.healthy .dot { animation: pulse-dot 2s ease-in-out infinite; }

.teaser-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.teaser-metric { font-family: 'IBM Plex Mono', monospace; }
.teaser-metric-label { font-size: 0.6rem; text-transform: uppercase; color: var(--text-dim); letter-spacing: 0.08em; margin-bottom: 0.15rem; }
.teaser-metric-value { font-size: 0.8rem; }
.teaser-metric-value.green { color: var(--green); }
.teaser-metric-value.amber { color: var(--amber); }
.teaser-metric-value.red { color: var(--red); }

.teaser-bottom { text-align: center; margin-top: 1.5rem; }
.teaser-bottom p { font-family: 'IBM Plex Mono', monospace; font-size: 0.75rem; color: var(--text-dim); }
.teaser-bottom p a { color: var(--amber); text-decoration: none; }
.teaser-bottom p a:hover { text-decoration: underline; }

.teaser-blur-overlay { position: relative; }
.teaser-blur-overlay::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 60px;
    background: linear-gradient(transparent, var(--bg));
    pointer-events: none;
    border-radius: 0 0 12px 12px;
}

/* Terminal display */
.terminal {
    max-width: 720px;
    margin: 0 auto 6rem;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 3px;
    overflow: hidden;
    text-align: left;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.terminal-header {
    padding: 0.85rem 1.25rem;
    background: rgba(232, 145, 58, 0.03);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: 0 0 3px currentColor;
}

.terminal-dot.r { background: var(--red); color: var(--red); }
.terminal-dot.y { background: var(--warning); color: var(--warning); }
.terminal-dot.g { background: var(--green); color: var(--green); }

.terminal-title {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-dim);
    margin-left: auto;
}

.terminal-body {
    padding: 1.5rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    line-height: 2;
}

.line { display: flex; align-items: center; gap: 0.5rem; }
.line .prefix { color: var(--text-dim); }
.line .cmd { color: var(--text); }
.line .status-dead { color: var(--red); font-weight: 700; }
.line .status-warn { color: var(--warning); font-weight: 700; }
.line .status-ok { color: var(--green); font-weight: 700; }
.line .dim { color: var(--text-dim); }

/* Signals section */
.signals {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.signals h2 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    text-align: center;
}

.signals-sub {
    color: var(--text-dim);
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.05rem;
}

.signals h2::after, .graveyard h2::after {
    content: '';
    display: block;
    width: 120px;
    height: 0;
    border-top: 2px solid var(--amber);
    margin: 0.75rem auto 0;
    opacity: 0.5;
}

.signal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1.5px solid var(--border);
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.signal-card {
    background: var(--surface);
    padding: 2rem;
    transition: box-shadow 0.3s;
    box-shadow: var(--bevel);
}

.signal-card:hover {
    box-shadow: inset 0 0 30px rgba(232, 145, 58, 0.05), var(--bevel);
}

.signal-icon {
    width: 44px;
    height: 44px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
}

.signal-card:nth-child(1) .signal-icon { background: rgba(196, 74, 46, 0.12); }
.signal-card:nth-child(2) .signal-icon { background: rgba(232, 145, 58, 0.12); }
.signal-card:nth-child(3) .signal-icon { background: rgba(205, 127, 50, 0.12); }
.signal-card:nth-child(4) .signal-icon { background: rgba(122, 182, 72, 0.12); }

.signal-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 0;
}

.signal-card p {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Graveyard */
.graveyard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem 4rem;
}

.graveyard h2 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.graveyard-sub {
    color: var(--text-dim);
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
}

.tombstones {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.tombstone {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 3px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-shadow: var(--bevel);
}

.tombstone:hover {
    border-color: rgba(196, 74, 46, 0.3);
    box-shadow: 0 0 20px rgba(196, 74, 46, 0.08);
}

.tombstone::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--red);
    opacity: 0.4;
}

.tombstone-name { font-weight: 700; font-size: 0.95rem; margin-bottom: 0.25rem; }
.tombstone-year { font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem; color: var(--red); opacity: 0.8; }
.tombstone-desc { font-size: 0.82rem; color: var(--text-dim); margin-top: 0.5rem; }

/* Migration playbook teaser */
.playbook-teaser {
    max-width: 840px;
    margin: 0 auto 6rem;
    padding: 0 2rem;
}

.playbook-inner {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 3px;
    padding: 3rem 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.playbook-inner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--amber), var(--red), var(--amber));
    opacity: 0.5;
}

.playbook-icon {
    width: 60px;
    height: 60px;
    border-radius: 3px;
    background: rgba(232, 145, 58, 0.08);
    border: 1px solid rgba(232, 145, 58, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--amber);
}

.playbook-headline {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.playbook-desc {
    color: var(--text-dim);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 480px;
    margin: 0 auto 2rem;
}

.playbook-example {
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: 3px;
    overflow: hidden;
    max-width: 480px;
    margin: 0 auto 2rem;
    text-align: left;
}

.playbook-example-header {
    padding: 0.65rem 1.25rem;
    background: rgba(232, 145, 58, 0.03);
    border-bottom: 1px solid var(--border);
}

.playbook-example-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.playbook-example-body { padding: 1.25rem; }

.playbook-example-vendor {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.playbook-vendor-name { font-weight: 700; font-size: 1rem; }

.playbook-vendor-health {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.playbook-vendor-health strong { color: var(--amber); font-size: 0.9rem; }

.health-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--amber);
    animation: pulse-dot 2s ease-in-out infinite;
}

.playbook-alternatives { margin-bottom: 0.75rem; }
.playbook-alt-label { font-family: 'IBM Plex Mono', monospace; font-size: 0.65rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.5rem; }
.playbook-alt-list { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }

.playbook-alt-badge {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    font-weight: 500;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 0.3rem 0.75rem;
    color: var(--text);
}

.playbook-meta { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.playbook-meta-tag {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    color: var(--text-dim);
    background: rgba(232, 145, 58, 0.04);
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 0.2rem 0.5rem;
}

.playbook-cta {
    display: inline-block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--amber);
    text-decoration: none;
    transition: opacity 0.2s;
    padding: 0.5rem 1rem;
}

.playbook-cta:hover { opacity: 0.8; }

/* Closer section */
.closer {
    max-width: 800px;
    margin: 0 auto;
    padding: 6rem 2rem;
    text-align: center;
}

.closer h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.closer p {
    color: var(--text-dim);
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto;
}

.closer-cta {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.9rem 2rem;
    background: linear-gradient(180deg, #f0a04a, var(--amber) 40%, var(--amber-dim));
    color: #0c0c0a;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 2px;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 4px 16px rgba(232, 145, 58, 0.3), inset 0 1px 0 rgba(255,255,255,0.2), inset 0 -1px 0 rgba(0,0,0,0.15);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-family: 'Chakra Petch', sans-serif;
    border: 1.5px solid var(--amber-dim);
}

.closer-cta:hover {
    box-shadow: 0 6px 24px rgba(232, 145, 58, 0.4), inset 0 1px 0 rgba(255,255,255,0.2);
    transform: translateY(-2px);
    color: #0c0c0a;
}

/* ================================================================
   13. AUTH PAGE
   ================================================================ */
.auth-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 4px;
    padding: 2.5rem;
    max-width: 420px;
    width: 100%;
    box-shadow: var(--bevel), 0 16px 48px rgba(0,0,0,0.5);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.auth-card:hover {
    border-color: rgba(232, 145, 58, 0.25);
    box-shadow: 0 0 24px rgba(232, 145, 58, 0.08), var(--bevel), 0 16px 48px rgba(0,0,0,0.5);
}

.auth-card h1 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.auth-card .subtitle {
    color: var(--text-dim);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.btn-submit {
    width: 100%;
    padding: 0.85rem;
    background: linear-gradient(180deg, #f0a04a, var(--amber) 40%, var(--amber-dim));
    border: 1.5px solid var(--amber-dim);
    border-radius: 2px;
    color: #0c0c0a;
    font-family: 'Chakra Petch', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 0.5rem;
    box-shadow: 0 2px 8px rgba(232, 145, 58, 0.25), inset 0 1px 0 rgba(255,255,255,0.2), inset 0 -1px 0 rgba(0,0,0,0.15);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.btn-submit:hover { box-shadow: 0 4px 16px rgba(232, 145, 58, 0.3); transform: translateY(-1px); }
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.error-msg {
    background: rgba(196, 74, 46, 0.1);
    border: 1px solid rgba(196, 74, 46, 0.25);
    color: var(--red);
    padding: 0.65rem 0.9rem;
    border-radius: 3px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: none;
}

.error-msg.active { display: block; }

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-dim);
}

.auth-switch a { color: var(--amber); text-decoration: none; font-weight: 600; }
.auth-switch a:hover { text-decoration: underline; }

.divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    color: var(--text-dim);
    font-size: 0.75rem;
    font-family: 'IBM Plex Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.features-list {
    list-style: none;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
}

.features-list li span { color: var(--green); font-size: 0.9rem; }

/* ================================================================
   14. DASHBOARD
   ================================================================ */
.main { max-width: 1400px; margin: 0 auto; padding: 2rem; }

/* Upgrade banner */
.upgrade-banner {
    background: rgba(232, 145, 58, 0.04);
    border: 1.5px solid rgba(232, 145, 58, 0.2);
    border-radius: 3px;
    padding: 1.1rem 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.upgrade-banner-text { font-size: 0.9rem; }
.upgrade-banner-text strong { color: var(--amber); }
.upgrade-banner.hidden { display: none; }

/* Stats bar */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1.5px solid var(--border);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.stat-card {
    background: var(--surface);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--bevel);
}

.stat-label {
    font-size: 0.72rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: 'IBM Plex Mono', monospace;
    margin-bottom: 0.25rem;
}

.stat-value { font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; }
.stat-sub { font-size: 0.7rem; color: var(--text-dim); font-family: 'IBM Plex Mono', monospace; margin-top: 0.1rem; }
.stat-value.green { color: var(--green); }
.stat-value.amber { color: var(--amber); }
.stat-value.red { color: var(--red); }
.stat-value.dim { color: var(--text-dim); }
.stat-value.blue { color: var(--gold); }
.stat-value.purple { color: var(--bronze); }

/* Toolbar */
.toolbar { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.search-box { flex: 1; min-width: 200px; position: relative; }
.search-box input { width: 100%; padding: 0.65rem 1rem 0.65rem 2.5rem; background: var(--surface); border: 1.5px solid var(--border); border-radius: 3px; color: var(--text); font-family: 'IBM Plex Sans', sans-serif; font-size: 0.9rem; outline: none; transition: border-color 0.2s; }
.search-box input:focus { border-color: var(--amber); }
.search-box input::placeholder { color: var(--text-muted); }
.search-box::before { content: '\1F50D'; position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); font-size: 0.9rem; opacity: 0.5; }

.filter-group { display: flex; gap: 0.25rem; background: var(--surface); border: 1.5px solid var(--border); border-radius: 3px; padding: 0.25rem; }
.filter-btn { font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem; padding: 0.4rem 0.75rem; border: none; background: transparent; color: var(--text-dim); cursor: pointer; border-radius: 3px; transition: all 0.2s; text-transform: uppercase; letter-spacing: 0.05em; }
.filter-btn:hover { color: var(--text); }
.filter-btn.active { background: rgba(232, 145, 58, 0.12); color: var(--amber); }

/* Vendor table */
.vendor-table { width: 100%; border: 1.5px solid var(--border); border-radius: 3px; overflow: hidden; background: var(--surface); box-shadow: 0 4px 16px rgba(0,0,0,0.3); }
.vendor-table table { width: 100%; border-collapse: collapse; }
.vendor-table th { font-family: 'Chakra Petch', sans-serif; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); padding: 1rem; text-align: left; border-bottom: 1px solid var(--border); background: rgba(232, 145, 58, 0.03); }
.vendor-table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); font-size: 0.9rem; vertical-align: middle; }
.vendor-table tr:last-child td { border-bottom: none; }
.vendor-table tr.vendor-row:hover td { background: rgba(232, 145, 58, 0.02); cursor: pointer; }
.vendor-name { font-weight: 600; display: flex; align-items: center; gap: 0.5rem; }
.vendor-domain { font-family: 'IBM Plex Mono', monospace; font-size: 0.8rem; color: var(--text-dim); }
.vendor-category { font-family: 'IBM Plex Mono', monospace; font-size: 0.75rem; color: var(--text-dim); background: rgba(232, 145, 58, 0.04); padding: 0.2rem 0.5rem; border-radius: 2px; border: 1px solid var(--border); }
.custom-badge { font-family: 'IBM Plex Mono', monospace; font-size: 0.6rem; color: var(--bronze); background: rgba(205, 127, 50, 0.1); border: 1px solid rgba(205, 127, 50, 0.3); padding: 0.1rem 0.35rem; border-radius: 4px; margin-left: 0.35rem; }

/* SSL badges */
.ssl-badge { display: inline-flex; align-items: center; gap: 0.3rem; font-family: 'IBM Plex Mono', monospace; font-size: 0.75rem; }
.ssl-badge.valid { color: var(--green); }
.ssl-badge.expiring { color: var(--warning); }
.ssl-badge.expired { color: var(--red); }
.ssl-badge.unknown { color: var(--text-dim); }

/* Score ring */
.score-ring { position: relative; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; }
.score-ring svg { position: absolute; top: 0; left: 0; transform: rotate(-90deg); }
.score-ring .score-text { font-family: 'IBM Plex Mono', monospace; font-size: 0.65rem; font-weight: 700; position: relative; z-index: 1; }

.score-gated { display: inline-flex; align-items: center; gap: 0.3rem; font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem; color: var(--text-dim); cursor: pointer; border: 1px solid var(--border); border-radius: 2px; padding: 0.25rem 0.5rem; transition: all 0.2s; }
.score-gated:hover { border-color: var(--amber); color: var(--amber); }

/* Signal badges */
.signal-badges { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.signal-badge { display: inline-flex; align-items: center; gap: 0.2rem; font-family: 'IBM Plex Mono', monospace; font-size: 0.6rem; padding: 0.15rem 0.45rem; border-radius: 2px; border: 1px solid var(--border); background: rgba(232, 145, 58, 0.03); color: var(--text-dim); cursor: help; position: relative; }
.signal-badge.good { color: var(--green); border-color: rgba(122, 182, 72, 0.3); }
.signal-badge.warn { color: var(--warning); border-color: rgba(232, 145, 58, 0.3); }
.signal-badge.bad { color: var(--red); border-color: rgba(196, 74, 46, 0.3); }
.signals-gated { font-family: 'IBM Plex Mono', monospace; font-size: 0.65rem; color: var(--text-dim); cursor: pointer; display: inline-flex; align-items: center; gap: 0.3rem; border: 1px solid var(--border); border-radius: 2px; padding: 0.15rem 0.5rem; transition: all 0.2s; }
.signals-gated:hover { border-color: var(--amber); color: var(--amber); }

/* Signal detail row */
.signal-detail-row td { padding: 0 !important; border-bottom: 1px solid var(--border); }
.signal-detail-row.hidden { display: none; }
.signal-detail { padding: 1rem 1.5rem; background: rgba(0,0,0,0.15); }
.signal-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }
.signal-card-title { font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); }
.signal-card-score { font-family: 'IBM Plex Mono', monospace; font-size: 0.75rem; font-weight: 700; }
.signal-card-body { font-size: 0.85rem; line-height: 1.5; }
.signal-card-body .detail-line { display: flex; justify-content: space-between; align-items: center; padding: 0.2rem 0; }
.signal-card-body .detail-label { color: var(--text-dim); font-size: 0.8rem; }
.signal-card-body .detail-value { font-family: 'IBM Plex Mono', monospace; font-size: 0.8rem; }
.signal-card-body a { color: var(--gold); text-decoration: none; font-size: 0.75rem; }
.signal-card-body a:hover { text-decoration: underline; }

/* Deep signal gate */
.deep-signal-gate { background: rgba(232, 145, 58, 0.03); border: 1px dashed rgba(232, 145, 58, 0.2); border-radius: 3px; padding: 1.5rem; text-align: center; }
.deep-signal-gate h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--amber); }
.deep-signal-gate p { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 1rem; }

/* Action buttons */
.scan-btn-cell { text-align: center; }
.scan-single { font-family: 'IBM Plex Mono', monospace; font-size: 0.65rem; padding: 0.3rem 0.6rem; border: 1px solid var(--border); background: transparent; color: var(--text-dim); border-radius: 2px; cursor: pointer; transition: all 0.2s; }
.scan-single:hover { border-color: var(--amber); color: var(--amber); }
.scan-single:disabled { opacity: 0.3; cursor: not-allowed; }
.scan-btn-cell button { margin-left: 0.2rem; }
.scan-btn-cell button:first-child { margin-left: 0; }

.scan-single-deep { font-family: 'IBM Plex Mono', monospace; font-size: 0.65rem; padding: 0.3rem 0.6rem; border: 1px solid rgba(205, 127, 50, 0.4); background: rgba(205, 127, 50, 0.06); color: rgba(205, 127, 50, 0.9); border-radius: 2px; cursor: pointer; transition: all 0.2s; }
.scan-single-deep:hover { border-color: var(--bronze); color: var(--bronze); }
.scan-single-deep:disabled { opacity: 0.3; cursor: not-allowed; }
.scan-single-deep.gated { font-size: 0.6rem; padding: 0.3rem 0.5rem; border-color: rgba(255,255,255,0.08); background: rgba(255,255,255,0.02); color: rgba(255,255,255,0.15); cursor: not-allowed; }

.remove-monitor { font-family: 'IBM Plex Mono', monospace; font-size: 0.6rem; padding: 0.25rem 0.5rem; border: 1px solid rgba(196, 74, 46, 0.3); background: transparent; color: rgba(196, 74, 46, 0.5); border-radius: 2px; cursor: pointer; transition: all 0.2s; }
.remove-monitor:hover { border-color: var(--red); color: var(--red); }

.alert-toggle { font-family: 'IBM Plex Mono', monospace; font-size: 0.6rem; padding: 0.25rem 0.5rem; border-radius: 2px; cursor: pointer; transition: all 0.2s; border: none; }
.alert-toggle.on { background: rgba(122, 182, 72, 0.12); color: var(--green); border: 1px solid rgba(122, 182, 72, 0.3); }
.alert-toggle.off { background: rgba(168, 152, 128, 0.08); color: var(--text-dim); border: 1px solid var(--border); }
.alert-toggle.gated { background: transparent; color: var(--text-dim); border: 1px dashed var(--border); cursor: default; opacity: 0.5; }

/* Scanning overlay */
.scanning-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--amber), transparent); animation: scan-progress 1.5s ease-in-out infinite; z-index: 200; }
.scanning-overlay.active { display: block; }
.scanning-overlay.deep { background: linear-gradient(90deg, transparent, var(--bronze), var(--gold), transparent); }

.last-checked { font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem; color: var(--text-dim); }

/* Frequency selector */
.freq-selector { display: flex; align-items: center; gap: 0.5rem; }
.freq-select { background: var(--surface2); border: 1px solid var(--border); color: var(--text); font-size: 0.72rem; font-family: 'IBM Plex Mono', monospace; padding: 0.2rem 0.4rem; border-radius: 2px; cursor: pointer; }
.freq-select:focus { outline: none; border-color: var(--amber); }
.freq-select:disabled { opacity: 0.5; cursor: default; }
.freq-gated { font-size: 0.72rem; color: var(--text-dim); cursor: pointer; }
.freq-gated:hover { color: var(--amber); }
.schedule-footer { padding: 0.75rem 1.5rem; border-top: 1px solid var(--border); background: var(--surface); display: flex; align-items: center; gap: 0.5rem; font-size: 0.72rem; color: var(--text-dim); }
.schedule-footer span { opacity: 0.6; }
.schedule-footer strong { color: var(--text-muted); }

/* Empty state */
.empty-state { text-align: center; padding: 4rem 2rem; color: var(--text-dim); }
.empty-state p { font-size: 1.1rem; margin-bottom: 1rem; }

/* Response bar */
.response-bar { display: flex; align-items: center; gap: 0.5rem; }
.response-bar-track { width: 60px; height: 4px; background: var(--surface2); border-radius: 4px; overflow: hidden; border: 1px solid var(--border); }
.response-bar-fill { height: 100%; border-radius: 4px; transition: width 0.3s; }

/* ================================================================
   15. MODALS
   ================================================================ */
.modal-backdrop { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.75); z-index: 150; align-items: center; justify-content: center; }
.modal-backdrop.active { display: flex; }

.modal {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 4px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    box-shadow: var(--bevel), 0 24px 64px rgba(0,0,0,0.6);
    max-height: 90vh;
    overflow-y: auto;
}

.modal h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 1.5rem; letter-spacing: -0.02em; }
.modal-wide { max-width: 700px; }
.modal-actions { display: flex; gap: 0.75rem; justify-content: flex-end; margin-top: 1.5rem; }

.modal-tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; gap: 0; }
.modal-tab { font-size: 0.85rem; font-weight: 600; padding: 0.6rem 1rem; cursor: pointer; border-bottom: 2px solid transparent; color: var(--text-dim); background: none; border-top: none; border-left: none; border-right: none; transition: all 0.2s; font-family: 'IBM Plex Sans', sans-serif; }
.modal-tab.active { color: var(--amber); border-bottom-color: var(--amber); }
.modal-tab:hover:not(.active) { color: var(--text); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* Catalog */
.catalog-search { position: relative; margin-bottom: 1rem; }
.catalog-search input { width: 100%; padding: 0.6rem 1rem 0.6rem 2.25rem; background: var(--bg); border: 1.5px solid var(--border); border-radius: 3px; color: var(--text); font-size: 0.9rem; outline: none; font-family: 'IBM Plex Sans', sans-serif; }
.catalog-search input:focus { border-color: var(--amber); }
.catalog-search::before { content: '\1F50D'; position: absolute; left: 0.6rem; top: 50%; transform: translateY(-50%); font-size: 0.8rem; opacity: 0.5; }
.catalog-list { max-height: 300px; overflow-y: auto; border: 1.5px solid var(--border); border-radius: 3px; }
.catalog-item { display: flex; align-items: center; justify-content: space-between; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--border); transition: background 0.15s; }
.catalog-item:last-child { border-bottom: none; }
.catalog-item:hover { background: rgba(232, 145, 58, 0.02); }
.catalog-item-info { flex: 1; }
.catalog-item-name { font-weight: 600; font-size: 0.9rem; }
.catalog-item-domain { font-family: 'IBM Plex Mono', monospace; font-size: 0.75rem; color: var(--text-dim); }
.catalog-item-cat { font-family: 'IBM Plex Mono', monospace; font-size: 0.65rem; color: var(--text-dim); background: rgba(232, 145, 58, 0.04); padding: 0.1rem 0.4rem; border-radius: 2px; border: 1px solid var(--border); margin-left: 0.4rem; }
.catalog-add-btn { font-family: 'IBM Plex Mono', monospace; font-size: 0.65rem; padding: 0.25rem 0.6rem; border: 1px solid rgba(232, 145, 58, 0.4); background: transparent; color: var(--amber); border-radius: 2px; cursor: pointer; transition: all 0.2s; flex-shrink: 0; }
.catalog-add-btn:hover { background: rgba(232, 145, 58, 0.08); }
.catalog-add-btn.added { border-color: var(--green); color: var(--green); cursor: default; }
.catalog-add-btn.added:hover { background: transparent; }
.catalog-loading { padding: 1.5rem; text-align: center; color: var(--text-dim); font-size: 0.85rem; font-family: 'IBM Plex Mono', monospace; }

/* Alert settings */
.alert-section { margin-bottom: 1.5rem; }
.alert-section h4 { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); font-family: 'IBM Plex Mono', monospace; margin-bottom: 0.75rem; }
.radio-group { display: flex; flex-direction: column; gap: 0.5rem; }
.radio-item { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; padding: 0.5rem 0.75rem; border: 1px solid var(--border); border-radius: 3px; transition: all 0.2s; }
.radio-item:hover { border-color: rgba(232, 145, 58, 0.3); }
.radio-item.selected { border-color: var(--amber); background: rgba(232, 145, 58, 0.04); }
.radio-item input[type=radio] { accent-color: var(--amber); }
.radio-label { font-size: 0.9rem; }
.radio-desc { font-size: 0.75rem; color: var(--text-dim); margin-top: 0.1rem; }
.email-verify-status { font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem; padding: 0.2rem 0.5rem; border-radius: 2px; margin-left: 0.5rem; }
.email-verify-status.verified { background: rgba(122, 182, 72, 0.12); color: var(--green); border: 1px solid rgba(122, 182, 72, 0.3); }
.email-verify-status.pending { background: rgba(232, 145, 58, 0.1); color: var(--amber); border: 1px solid rgba(232, 145, 58, 0.2); }
.alert-gate { background: rgba(232, 145, 58, 0.03); border: 1px dashed rgba(232, 145, 58, 0.2); border-radius: 3px; padding: 1.25rem; text-align: center; }
.alert-gate p { font-size: 0.9rem; color: var(--text-dim); margin-bottom: 1rem; }
.slack-section { display: none; }
.slack-section.visible { display: block; }

/* Upgrade modal */
.upgrade-modal-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 0.5rem; }
.upgrade-plan-card { border: 1.5px solid var(--border); border-radius: 3px; padding: 1.25rem; cursor: pointer; transition: all 0.2s; }
.upgrade-plan-card:hover { border-color: rgba(232, 145, 58, 0.4); background: rgba(232, 145, 58, 0.03); }
.upgrade-plan-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 0.25rem; }
.upgrade-plan-card .price { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; color: var(--amber); }
.upgrade-plan-card .price span { font-size: 0.85rem; color: var(--text-dim); font-weight: 400; }
.upgrade-plan-card ul { list-style: none; margin-top: 0.75rem; }
.upgrade-plan-card ul li { font-size: 0.8rem; color: var(--text-dim); padding: 0.2rem 0; display: flex; gap: 0.35rem; }
.upgrade-plan-card ul li::before { content: '\2713'; color: var(--green); flex-shrink: 0; }
.upgrade-plan-card a { display: block; text-align: center; margin-top: 1rem; padding: 0.65rem; border-radius: 3px; font-weight: 700; font-size: 0.85rem; text-decoration: none; }
.upgrade-plan-card.pro a { background: linear-gradient(135deg, var(--amber), var(--amber-dim)); color: #0c0c0a; }
.upgrade-plan-card.team a { background: linear-gradient(135deg, var(--bronze), var(--gold)); color: #fff; }

/* Playbook in dashboard */
.playbook-section { margin-top: 1.25rem; border: 1px solid rgba(196, 74, 46, 0.25); border-radius: 3px; overflow: hidden; background: rgba(196, 74, 46, 0.03); box-shadow: var(--bevel), 0 2px 8px rgba(0,0,0,0.2); }
.playbook-header { display: flex; align-items: flex-start; gap: 0.75rem; padding: 1rem 1.25rem; border-bottom: 1px solid rgba(196, 74, 46, 0.15); background: rgba(196, 74, 46, 0.04); }
.playbook-title { font-weight: 700; font-size: 0.95rem; color: var(--red); margin-bottom: 0.2rem; }
.playbook-subtitle { font-size: 0.8rem; color: var(--text-dim); }
.playbook-alternatives { padding: 1rem 1.25rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.75rem; }
.alt-card { border: 1.5px solid var(--border); border-radius: 3px; padding: 1rem; background: var(--surface); }
.alt-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.5rem; }
.alt-card-name { font-weight: 700; font-size: 0.9rem; }
.alt-card-domain { font-family: 'IBM Plex Mono', monospace; font-size: 0.75rem; color: var(--text-dim); }
.alt-score-badge { font-family: 'IBM Plex Mono', monospace; font-size: 0.85rem; font-weight: 700; flex-shrink: 0; }
.alt-difficulty { font-family: 'IBM Plex Mono', monospace; font-size: 0.65rem; padding: 0.15rem 0.4rem; border-radius: 2px; }
.alt-difficulty.easy { background: rgba(122, 182, 72, 0.1); color: var(--green); border: 1px solid rgba(122, 182, 72, 0.3); }
.alt-difficulty.medium { background: rgba(232, 145, 58, 0.1); color: var(--amber); border: 1px solid rgba(232, 145, 58, 0.3); }
.alt-difficulty.hard { background: rgba(196, 74, 46, 0.1); color: var(--red); border: 1px solid rgba(196, 74, 46, 0.3); }
.alt-considerations { margin-top: 0.5rem; }
.alt-consideration { font-size: 0.78rem; color: var(--text-dim); padding: 0.15rem 0; }
.alt-consideration::before { content: '\00B7 '; }
.alt-actions { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.alt-link { font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem; color: var(--gold); text-decoration: none; border: 1px solid rgba(205, 127, 50, 0.3); padding: 0.2rem 0.5rem; border-radius: 2px; transition: all 0.2s; }
.alt-link:hover { background: rgba(205, 127, 50, 0.08); }
.playbook-gated { padding: 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.playbook-gated-text { font-size: 0.85rem; color: var(--text-dim); }
.playbook-loading { padding: 1rem 1.25rem; color: var(--text-dim); font-size: 0.85rem; font-family: 'IBM Plex Mono', monospace; }

/* Tooltip */
.tip { position: relative; }
.tip::after { content: attr(data-tip); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); background: var(--surface); color: var(--text); font-size: 0.7rem; font-family: 'IBM Plex Sans', sans-serif; padding: 0.4rem 0.6rem; border-radius: 2px; border: 1px solid var(--border); white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity 0.15s; z-index: 50; margin-bottom: 4px; }
.tip:hover::after { opacity: 1; }
.expand-icon { display: inline-block; font-size: 0.6rem; color: var(--text-dim); transition: transform 0.2s; margin-right: 0.35rem; }
.expand-icon.open { transform: rotate(90deg); }

/* Discovery */
.discovery-spinner-wrap { text-align: center; padding: 1.5rem 0; }
.discovery-pulse { width: 48px; height: 48px; border-radius: 50%; background: rgba(232, 145, 58, 0.12); border: 2px solid var(--amber); margin: 0 auto 1rem; animation: discovery-pulse 1.5s ease-in-out infinite; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.discovery-checklist { display: flex; flex-direction: column; gap: 0.35rem; margin: 1rem 0 0; }
.discovery-check-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: var(--text-dim); font-family: 'IBM Plex Mono', monospace; }
.dci-spinner { display: inline-block; animation: discovery-spin 1.2s linear infinite; color: var(--amber); font-size: 0.9rem; }
.discovery-section { margin-bottom: 1.25rem; }
.discovery-section-title { font-family: 'Chakra Petch', sans-serif; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); margin-bottom: 0.6rem; display: flex; align-items: center; gap: 0.5rem; }
.discovery-missing-title { color: var(--amber); }
.discovery-found-item { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.4rem 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.discovery-found-item:last-child { border-bottom: none; }
.discovery-signal-label { font-family: 'IBM Plex Mono', monospace; font-size: 0.75rem; color: var(--text-dim); flex-shrink: 0; min-width: 100px; }
.discovery-found-link { font-family: 'IBM Plex Mono', monospace; font-size: 0.78rem; color: var(--green); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.discovery-found-link:hover { text-decoration: underline; }
.discovery-hint-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.discovery-hint-input { flex: 1; padding: 0.45rem 0.75rem; background: var(--bg); border: 1px solid var(--border); border-radius: 2px; color: var(--text); font-family: 'IBM Plex Mono', monospace; font-size: 0.8rem; outline: none; transition: border-color 0.2s; }
.discovery-hint-input:focus { border-color: var(--amber); }
.discovery-hint-input::placeholder { color: var(--text-muted); }
.discovery-score-line { font-size: 0.85rem; padding: 0.6rem 0.85rem; background: rgba(232, 145, 58, 0.04); border: 1px solid rgba(232, 145, 58, 0.15); border-radius: 3px; }

/* ================================================================
   16. UPGRADE PAGE
   ================================================================ */
.plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.plan-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 4px;
    padding: 2.25rem;
    position: relative;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-shadow: var(--bevel), 0 4px 16px rgba(0,0,0,0.3);
}

.plan-card:hover {
    border-color: rgba(232, 145, 58, 0.3);
    box-shadow: 0 0 20px rgba(232, 145, 58, 0.1), var(--bevel), 0 4px 16px rgba(0,0,0,0.3);
}

.plan-card.featured {
    border: 2px solid var(--amber);
    box-shadow: 0 0 30px rgba(232, 145, 58, 0.12), 0 0 60px rgba(232, 145, 58, 0.04);
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--amber), var(--amber-dim));
    color: #0c0c0a;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.85rem;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
    font-family: 'Chakra Petch', sans-serif;
    box-shadow: 0 2px 8px rgba(232, 145, 58, 0.3);
}

.plan-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.25rem; }
.plan-price { font-size: 2.5rem; font-weight: 700; letter-spacing: -0.03em; margin: 0.75rem 0 0.25rem; }
.plan-price span { font-size: 1rem; color: var(--text-dim); font-weight: 400; }
.plan-tagline { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 1.5rem; }

.plan-features { list-style: none; margin-bottom: 2rem; }
.plan-features li { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.9rem; padding: 0.35rem 0; color: var(--text-dim); }
.plan-features li .check { color: var(--green); flex-shrink: 0; margin-top: 0.1rem; }
.plan-features li .lock { color: var(--text-dim); opacity: 0.4; flex-shrink: 0; margin-top: 0.1rem; }
.plan-features li strong { color: var(--text); }

.plan-cta {
    display: block;
    text-align: center;
    padding: 0.85rem;
    border-radius: 3px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s;
}

.cta-free { border: 1.5px solid var(--border); color: var(--text-dim); cursor: default; }
.cta-pro { background: linear-gradient(180deg, #f0a04a, var(--amber) 40%, var(--amber-dim)); color: #0c0c0a; box-shadow: 0 2px 8px rgba(232, 145, 58, 0.25), inset 0 1px 0 rgba(255,255,255,0.2), inset 0 -1px 0 rgba(0,0,0,0.15); text-transform: uppercase; letter-spacing: 0.06em; font-family: 'Chakra Petch', sans-serif; border: 1.5px solid var(--amber-dim); border-radius: 2px; }
.cta-pro:hover { box-shadow: 0 4px 16px rgba(232, 145, 58, 0.35), inset 0 1px 0 rgba(255,255,255,0.2); transform: translateY(-1px); color: #0c0c0a; }
.cta-team { background: linear-gradient(180deg, #d49045, var(--bronze) 40%, var(--sienna)); color: #0c0c0a; box-shadow: 0 2px 8px rgba(205, 127, 50, 0.25), inset 0 1px 0 rgba(255,255,255,0.2), inset 0 -1px 0 rgba(0,0,0,0.15); text-transform: uppercase; letter-spacing: 0.06em; font-family: 'Chakra Petch', sans-serif; border: 1.5px solid var(--sienna); border-radius: 2px; }
.cta-team:hover { box-shadow: 0 4px 16px rgba(205, 127, 50, 0.35), inset 0 1px 0 rgba(255,255,255,0.2); transform: translateY(-1px); color: #0c0c0a; }

.current-badge { background: rgba(122, 182, 72, 0.1); border: 1px solid rgba(122, 182, 72, 0.3); color: var(--green); font-size: 0.7rem; font-family: 'IBM Plex Mono', monospace; padding: 0.2rem 0.5rem; border-radius: 2px; vertical-align: middle; margin-left: 0.5rem; }

/* FAQ (upgrade page) */
.faq { margin-top: 4rem; }
.faq h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; text-align: center; }
.faq-item { border-bottom: 1px solid var(--border); padding: 1.25rem 0; }
.faq-q { font-weight: 600; margin-bottom: 0.5rem; }
.faq-a { color: var(--text-dim); font-size: 0.9rem; line-height: 1.6; }

/* ================================================================
   17. HOW-TO PAGE
   ================================================================ */
.page-header { margin-bottom: 3.5rem; }
.page-header .tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(232, 145, 58, 0.08);
    border: 1px solid rgba(232, 145, 58, 0.2);
    color: var(--amber);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.35rem 0.85rem;
    border-radius: 2px;
    margin-bottom: 1rem;
}

.page-header h1 { font-size: 2.5rem; letter-spacing: -0.04em; line-height: 1.15; margin-bottom: 0.875rem; }
.page-header h1 span { color: var(--amber); }
.page-header p { color: var(--text-dim); font-size: 1.05rem; max-width: 520px; line-height: 1.7; }

.section-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 2rem;
}

.section-label::after {
    content: '';
    flex: 1;
    height: 0;
    border-top: 1px solid var(--border);
}

/* Steps */
.steps { position: relative; display: flex; flex-direction: column; gap: 0; }
.steps::before { content: ''; position: absolute; left: 22px; top: 48px; bottom: 48px; width: 2px; background: linear-gradient(to bottom, var(--amber), rgba(212, 120, 42, 0.3), transparent); }
.step { display: flex; gap: 1.5rem; padding: 0 0 2.5rem; }
.step:last-child { padding-bottom: 0; }
.step-num {
    flex-shrink: 0;
    width: 46px; height: 46px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 3px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'IBM Plex Mono', monospace;
    color: var(--amber);
    position: relative;
    z-index: 1;
    transition: border-color 0.2s, background 0.2s;
}
.step:hover .step-num { border-color: rgba(232, 145, 58, 0.3); background: rgba(232, 145, 58, 0.04); }
.step-icon { font-size: 1.25rem; }
.step-body { flex: 1; padding-top: 0.6rem; }
.step-body h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.step-body p { color: var(--text-dim); font-size: 0.9rem; line-height: 1.75; }
.step-body p strong { color: var(--text); }
.step-body p a { color: var(--amber); text-decoration: none; }
.step-body p a:hover { text-decoration: underline; }
.step-body code {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.82rem;
    background: var(--surface2);
    padding: 0.15rem 0.45rem;
    border-radius: 2px;
    border: 1px solid var(--border);
    color: var(--text);
}

/* Score legend */
.score-legend { display: flex; gap: 0.75rem; margin-top: 0.75rem; flex-wrap: wrap; }

/* Signal grid for how-to */
.sig-label { font-size: 0.78rem; font-weight: 700; color: var(--text); margin-bottom: 0.35rem; display: flex; align-items: center; gap: 0.4rem; }
.sig-desc { font-size: 0.8rem; color: var(--text-dim); line-height: 1.55; }

/* CTA card */
.cta-card {
    background: linear-gradient(135deg, rgba(232, 145, 58, 0.05), rgba(196, 74, 46, 0.03));
    border: 1.5px solid rgba(232, 145, 58, 0.2);
    border-radius: 4px;
    padding: 2.5rem;
    text-align: center;
    margin-top: 4rem;
}
.cta-card h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 0.5rem; }
.cta-card p { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 1.5rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ================================================================
   18. SUPPORT PAGE
   ================================================================ */
/* FAQ accordion (support page) */
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 4rem; }
.support-faq .faq-item,
.faq-list .faq-item {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 3px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.faq-list .faq-item:hover { border-color: rgba(232, 145, 58, 0.15); }
.faq-list .faq-item.open { border-color: rgba(232, 145, 58, 0.3); }
.faq-list .faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.25rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    gap: 1rem;
    user-select: none;
    border-bottom: none;
}
.faq-list .faq-q:hover { color: var(--amber); }
.faq-list .faq-item.open .faq-q { color: var(--amber); }
.faq-chevron { width: 18px; height: 18px; flex-shrink: 0; transition: transform 0.2s; color: var(--text-dim); }
.faq-list .faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--amber); }
.faq-list .faq-a {
    display: none;
    padding: 0 1.25rem 1.1rem;
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.7;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}
.faq-list .faq-item.open .faq-a { display: block; }
.faq-a strong { color: var(--text); }
.faq-a code { font-family: 'IBM Plex Mono', monospace; font-size: 0.82rem; background: var(--surface2); padding: 0.1rem 0.4rem; border-radius: 2px; border: 1px solid var(--border); }

/* Contact form */
.contact-card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 4px;
    padding: 2.25rem;
    box-shadow: var(--bevel);
}
.contact-card h2 { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 0.4rem; }
.contact-card .subtitle { color: var(--text-dim); font-size: 0.875rem; margin-bottom: 1.75rem; }

.honeypot { display: none !important; visibility: hidden; }

.submit-row { display: flex; align-items: center; justify-content: space-between; margin-top: 1.25rem; gap: 1rem; }

.submit-btn {
    background: linear-gradient(180deg, #f0a04a, var(--amber) 40%, var(--amber-dim));
    border: 1.5px solid var(--amber-dim);
    color: #0c0c0a;
    padding: 0.8rem 2rem;
    border-radius: 2px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: 'Chakra Petch', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    box-shadow: 0 2px 8px rgba(232, 145, 58, 0.25), inset 0 1px 0 rgba(255,255,255,0.2), inset 0 -1px 0 rgba(0,0,0,0.15);
}

.submit-btn:hover { box-shadow: 0 4px 16px rgba(232, 145, 58, 0.3); transform: translateY(-1px); }
.submit-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.privacy-note { font-size: 0.77rem; color: var(--text-dim); }

.form-msg { display: none; padding: 1rem 1.25rem; border-radius: 3px; font-size: 0.9rem; margin-top: 1rem; font-weight: 500; }
.form-msg.success { display: block; background: rgba(122, 182, 72, 0.1); border: 1px solid rgba(122, 182, 72, 0.3); color: var(--green); }
.form-msg.error { display: block; background: rgba(196, 74, 46, 0.1); border: 1px solid rgba(196, 74, 46, 0.3); color: var(--red); }

/* How-to banner */
.howto-banner {
    background: linear-gradient(135deg, rgba(232, 145, 58, 0.04), rgba(205, 127, 50, 0.04));
    border: 1.5px solid rgba(232, 145, 58, 0.15);
    border-radius: 3px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 3rem;
}
.howto-banner p { font-size: 0.875rem; color: var(--text-dim); }
.howto-banner strong { color: var(--text); }
.howto-banner a { color: var(--amber); font-weight: 600; font-size: 0.875rem; text-decoration: none; white-space: nowrap; }
.howto-banner a:hover { text-decoration: underline; }

/* ================================================================
   19. BLOG PAGE
   ================================================================ */
.blog-content h1 { font-size: 2.2rem; margin-bottom: 0.5rem; margin-top: 2rem; color: var(--amber); }
.blog-content h2 { font-size: 1.5rem; border-left: 3px solid var(--amber); padding-left: 1rem; }
.blog-content h3 { font-size: 1.2rem; color: var(--amber); }
.blog-content p { margin-bottom: 1.25rem; }
.blog-content strong { color: var(--amber); }
.blog-content em { color: var(--gold); font-style: italic; }
.blog-content ul, .blog-content ol { margin-left: 2rem; margin-bottom: 1.25rem; }
.blog-content li { margin-bottom: 0.75rem; }
.blog-content code { background: var(--surface2); padding: 0.2rem 0.5rem; border-radius: 2px; font-family: 'IBM Plex Mono', monospace; font-size: 0.9em; color: var(--green); }

.article-meta { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 2.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }

.signal {
    background: var(--surface);
    border-left: 3px solid var(--amber);
    padding: 1.75rem;
    margin: 2rem 0;
    border-radius: 3px;
}
.signal h3 { margin-top: 0; margin-bottom: 0.75rem; }

.signal-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--amber);
    color: var(--bg);
    width: 32px; height: 32px;
    border-radius: 50%;
    font-weight: 700;
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

.cta-section {
    background: linear-gradient(135deg, rgba(232, 145, 58, 0.06), rgba(196, 74, 46, 0.03));
    border: 1.5px solid var(--border);
    padding: 2.25rem;
    margin: 3rem 0;
    border-radius: 4px;
    text-align: center;
}
.cta-section h3 { margin-top: 0; margin-bottom: 1rem; }

.cta-button {
    display: inline-block;
    background: linear-gradient(180deg, #f0a04a, var(--amber) 40%, var(--amber-dim));
    color: #0c0c0a;
    padding: 0.85rem 1.8rem;
    border-radius: 2px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    margin: 0.5rem;
    border: 1.5px solid var(--amber-dim);
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-family: 'Chakra Petch', sans-serif;
    box-shadow: 0 2px 8px rgba(232, 145, 58, 0.25), inset 0 1px 0 rgba(255,255,255,0.2), inset 0 -1px 0 rgba(0,0,0,0.15);
    box-shadow: 0 2px 8px rgba(232, 145, 58, 0.2);
}
.cta-button:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232, 145, 58, 0.3); color: #0c0c0a; }
.cta-button.secondary { background: transparent; color: var(--amber); border: 1.5px solid var(--amber); box-shadow: none; }
.cta-button.secondary:hover { background: rgba(232, 145, 58, 0.06); transform: translateY(-2px); }

.back-link { display: inline-block; margin-bottom: 2rem; color: var(--text-dim); text-decoration: none; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.03em; }
.back-link:hover { color: var(--amber); }

.highlight { background: rgba(232, 145, 58, 0.1); padding: 0.2rem 0.4rem; border-radius: 2px; }

/* ================================================================
   20. FOOTER
   ================================================================ */
footer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--text-dim);
}

footer a { color: var(--text-dim); text-decoration: none; }
footer a:hover { color: var(--text); }
.footer-links { display: flex; gap: 1.5rem; align-items: center; }

/* ================================================================
   21. TOAST
   ================================================================ */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 3px;
    padding: 0.85rem 1.25rem;
    font-size: 0.9rem;
    display: none;
    align-items: center;
    gap: 0.5rem;
    z-index: 200;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    animation: toast-in 0.3s ease-out;
    max-width: 400px;
}
.toast.active { display: flex; }
.toast.success { border-color: rgba(122, 182, 72, 0.3); }
.toast.error { border-color: rgba(196, 74, 46, 0.3); }

/* ================================================================
   22. ANIMATIONS
   ================================================================ */
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes scan-progress { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes toast-in { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes sweep { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes discovery-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes discovery-pulse { 0%, 100% { opacity: 0.3; transform: scale(0.9); } 50% { opacity: 1; transform: scale(1.1); } }

/* ================================================================
   23. RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
    .vendor-table { overflow-x: auto; }
    .vendor-table table { min-width: 900px; }
}

@media (max-width: 768px) {
    nav { padding: 1rem; }

    .hero { padding: 4rem 1.25rem 3rem; }
    .signals, .graveyard { padding: 3rem 1.25rem; }
    .closer { padding: 4rem 1.25rem; }
    .terminal-body { font-size: 0.7rem; padding: 1rem; }
    .tombstones { grid-template-columns: repeat(2, 1fr); }
    .teaser-cards { grid-template-columns: 1fr; }
    .hero-cta { flex-direction: column; }

    .main { padding: 1rem; }
    .toolbar { flex-direction: column; }
    .search-box { min-width: 100%; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
    .signal-grid { grid-template-columns: 1fr; }
    .upgrade-modal-plans { grid-template-columns: 1fr; }

    .nav-link { display: none; }

    footer { flex-direction: column; gap: 0.75rem; text-align: center; }
    .footer-links { gap: 1rem; }

    .form-grid { grid-template-columns: 1fr; }
    .submit-row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
    .page-header h1 { font-size: 1.9rem; }
    .steps::before { left: 20px; }
}

@media (max-width: 480px) {
    .tombstones { grid-template-columns: 1fr; }
    .signal-grid { grid-template-columns: 1fr; }
    .stats-bar { grid-template-columns: 1fr 1fr; }
    .auth-card { padding: 1.5rem; }
}
