/* =========================================================================
   SpawnRadar — Modern design system
   ========================================================================= */

:root {
    --color-brand: #6366f1;
    --color-brand-hover: #4f46e5;
    --color-brand-soft: #ede9fe;
    --color-bg-page: #f8fafc;
    --color-bg-surface: #ffffff;
    --color-bg-muted: #f1f5f9;
    --color-border: #e2e8f0;
    --color-text: #0f172a;
    --color-text-soft: #475569;
    --color-text-muted: #64748b;
    --color-text-faint: #94a3b8;
    --color-hero-text: #e2e8f0;
    --color-hero-heading: #f8fafc;
    --color-hero-start: #0f172a;
    --color-hero-mid: #111827;
    --color-hero-end: #1f2937;
    --color-hero-cyan-glow: rgba(56, 189, 248, 0.22);
    --color-hero-green-glow: rgba(34, 197, 94, 0.18);
    --color-hero-chip-border: rgba(226, 232, 240, 0.18);
    --color-hero-chip-bg: rgba(226, 232, 240, 0.08);
    --color-hero-card-bg: rgba(255, 255, 255, 0.08);
    --color-hero-card-border: rgba(226, 232, 240, 0.12);
    --color-hero-lede: rgba(226, 232, 240, 0.84);
    --color-hero-proof: rgba(226, 232, 240, 0.72);
    --shadow-brand-soft: 0 2px 8px rgba(99, 102, 241, 0.3);

    /* Tag palette */
    --tag-genre-bg: #ede9fe;
    --tag-genre-border: #c4b5fd;
    --tag-genre-text: #5b21b6;

    --tag-genre-secondary-bg: #fdf4ff;
    --tag-genre-secondary-border: #f0abfc;
    --tag-genre-secondary-text: #86198f;

    --tag-kindred-bg: #fff7ed;
    --tag-kindred-border: #fdba74;
    --tag-kindred-text: #9a3412;

    --tag-mechanics-bg: #ccfbf1;
    --tag-mechanics-border: #5eead4;
    --tag-mechanics-text: #0f766e;

    --tag-vibe-bg: #fef3c7;
    --tag-vibe-border: #fcd34d;
    --tag-vibe-text: #92400e;

    --tag-platform-bg: #dbeafe;
    --tag-platform-border: #93c5fd;
    --tag-platform-text: #1d4ed8;
}

/* Reset & base */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    background: var(--color-bg-page);
    color: var(--color-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 15px;
    line-height: 1.6;
}

a {
    color: var(--color-brand);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

code,
pre {
    font-family: "JetBrains Mono", "Fira Code", "Courier New", monospace;
    font-size: 13px;
}

pre {
    background: var(--color-bg-muted);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 12px 14px;
    overflow-x: auto;
}

/* -------------------------------------------------------------------------
   Navigation
   ------------------------------------------------------------------------- */
.navbar {
    background: var(--color-bg-surface);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 92px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    font-weight: 800;
    color: var(--color-brand);
    text-decoration: none;
    letter-spacing: -0.01em;
    line-height: 1;
}

.navbar-brand-mark {
    width: 72px;
    height: 72px;
    display: block;
    flex-shrink: 0;
    border-radius: 16px;
}

.navbar-brand:hover {
    text-decoration: none;
}

.navbar-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.nav-link {
    font-size: 14px;
    color: var(--color-text-soft);
    text-decoration: none;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--color-text);
    text-decoration: none;
}

.nav-user {
    font-size: 13px;
    color: var(--color-text-faint);
    font-weight: 500;
}

.game-switcher-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-soft);
    background: var(--color-bg-muted);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 4px 12px;
}

/* -------------------------------------------------------------------------
   Page shell
   ------------------------------------------------------------------------- */
.page-shell {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 40px 24px 64px;
    flex: 1 0 auto;
}

.site-footer {
    border-top: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.72);
    margin-top: auto;
}

.site-footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 16px 24px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: var(--color-text-muted);
    font-size: 14px;
}

.site-footer-copy {
    font-weight: 600;
    color: var(--color-text-soft);
}

.site-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: flex-end;
}

.site-footer-links a {
    color: var(--color-text-muted);
}

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

.form-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.legal-page {
    padding: 20px 0 0;
}

.legal-shell {
    max-width: 840px;
    margin: 0 auto;
}

.legal-effective {
    margin: 0 0 14px;
    color: var(--color-text-faint);
    font-size: 13px;
    font-weight: 600;
}

.legal-lede {
    max-width: 720px;
    margin: 0 0 24px;
    color: var(--color-text-soft);
    font-size: 16px;
}

.legal-card {
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
}

.legal-card h2 {
    margin-top: 24px;
    margin-bottom: 8px;
    font-size: 18px;
}

.legal-card h2:first-child {
    margin-top: 0;
}

.legal-card p,
.legal-card li {
    color: var(--color-text-soft);
}

.legal-card ul {
    margin: 0 0 16px 20px;
    padding: 0;
}

@media (max-width: 720px) {
    .page-shell {
        padding: 24px 16px 44px;
    }

    .site-footer-inner {
        padding: 14px 16px 16px;
        align-items: flex-start;
        flex-direction: column;
    }

    .site-footer-links {
        gap: 12px;
        justify-content: flex-start;
    }

    .legal-card {
        padding: 22px;
    }
}

/* -------------------------------------------------------------------------
   Typography
   ------------------------------------------------------------------------- */
h1 {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 6px;
    color: var(--color-text);
}

h2 {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 0 0 6px;
    color: var(--color-text);
}

.section-heading {
    margin-bottom: 18px;
}

.subtle {
    color: var(--color-text-muted);
    font-size: 14px;
}
.required {
    color: #ef4444;
}
.hint {
    color: var(--color-text-faint);
    font-size: 13px;
}
.field-hint {
    margin: 4px 0 0;
    color: var(--color-text-faint);
    font-size: 12px;
}

/* -------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    border-radius: 8px;
    border: none;
    background: var(--color-brand);
    color: var(--color-bg-surface);
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    line-height: 1;
    transition:
        background 0.15s,
        box-shadow 0.15s;
    white-space: nowrap;
}

.button:hover {
    background: var(--color-brand-hover);
    color: var(--color-bg-surface);
    text-decoration: none;
    box-shadow: var(--shadow-brand-soft);
}

.button.secondary {
    background: var(--color-bg-muted);
    color: #334155;
    border: 1px solid var(--color-border);
}

.button.secondary:hover {
    background: var(--color-border);
    box-shadow: none;
    color: #334155;
}

.button.danger {
    background: #ef4444;
}

.button.danger:hover {
    background: #dc2626;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.button.button-sent {
    background: #10b981;
}

.button.button-sent:hover {
    background: #059669;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.button-full {
    width: 100%;
}
.button-sm {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 6px;
}

/* -------------------------------------------------------------------------
   Forms
   ------------------------------------------------------------------------- */
.form-group {
    margin-bottom: 20px;
}

.form-group label,
.field-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #334155;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    font-family: inherit;
    font-size: 14px;
    color: #0f172a;
    outline: none;
    transition:
        border-color 0.15s,
        box-shadow 0.15s;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

textarea {
    resize: vertical;
    min-height: 90px;
}

textarea.textarea-compact {
    min-height: 56px;
}
.draft-body {
    min-height: 180px;
}
.note-input {
    min-height: 64px;
}
.subject-input {
    margin-bottom: 4px;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 6px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    cursor: pointer;
    color: #334155;
}

.checkbox-label input {
    width: auto;
    accent-color: #6366f1;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.form-section {
    margin-bottom: 0;
}

/* -------------------------------------------------------------------------
   Pills & tags
   ------------------------------------------------------------------------- */
.pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 9999px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    font-size: 12px;
    font-weight: 500;
    color: #475569;
}

.pill-platform {
    background: #ede9fe;
    border-color: #c4b5fd;
    color: #5b21b6;
}

.pill-action {
    font-weight: 700;
}

.pill-approve {
    background: #dcfce7;
    border-color: #86efac;
    color: #166534;
}
.pill-review {
    background: #fef9c3;
    border-color: #fde047;
    color: #713f12;
}
.pill-backlog {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #475569;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0;
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 500;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.tag-genre {
    background: var(--tag-genre-bg);
    border-color: var(--tag-genre-border);
    color: var(--tag-genre-text);
}
.tag-genre-secondary {
    background: var(--tag-genre-secondary-bg);
    border-color: var(--tag-genre-secondary-border);
    color: var(--tag-genre-secondary-text);
}
.tag-kindred {
    background: var(--tag-kindred-bg);
    border-color: var(--tag-kindred-border);
    color: var(--tag-kindred-text);
}
.tag-kindred-secondary {
    background: var(--tag-kindred-bg);
    border-color: var(--tag-kindred-border);
    color: var(--tag-kindred-text);
}
.tag-mechanics {
    background: var(--tag-mechanics-bg);
    border-color: var(--tag-mechanics-border);
    color: var(--tag-mechanics-text);
}
.tag-vibe {
    background: var(--tag-vibe-bg);
    border-color: var(--tag-vibe-border);
    color: var(--tag-vibe-text);
}
.tag-custom {
    background: #fff7ed;
    border-color: #fdba74;
    color: #9a3412;
}
.tag-more {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #64748b;
    font-style: italic;
}
.tag-platform {
    background: var(--tag-platform-bg);
    border-color: var(--tag-platform-border);
    color: var(--tag-platform-text);
}

.pill-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 26px;
}

.tag-picker-list {
    display: grid;
    gap: 14px;
    margin-top: 10px;
}

.tag-picker-row {
    display: grid;
    grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.tag-picker-field,
.tag-picker-preview {
    padding: 14px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    background: var(--color-bg-muted);
    position: relative;
}

.tag-picker-field label,
.tag-picker-preview-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
}

.tag-picker-preview {
    min-height: 100%;
}

.tag-picker-preview-label {
    margin-bottom: 10px;
}

.tag-picker-preview .pill-preview {
    margin-top: 0;
}

.tag-input-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 20;
    display: none;
    max-height: 280px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-bg-surface);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.12);
}

.tag-input-wrap {
    position: relative;
}

.tag-input-dropdown .tag-suggestion {
    display: block;
    width: 100%;
    border-radius: 10px;
    text-align: left;
    padding: 8px 10px;
    color: var(--color-text);
}

.tag-input-dropdown .tag-suggestion + .tag-suggestion {
    margin-top: 6px;
}

.tag-suggestion {
    padding: 5px 10px;
    border-radius: 9999px;
    border: 1px solid var(--color-border);
    background: var(--color-bg-surface);
    color: var(--color-text-soft);
    font: inherit;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
}

.tag-suggestion:hover,
.tag-suggestion--focused {
    border-color: #c4b5fd;
    color: var(--color-brand);
}

.tag-input-dropdown .tag-suggestion--focused {
    background: rgba(196, 181, 253, 0.15);
    color: var(--color-brand);
}

.tag-remove {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    margin-left: 4px;
    padding: 0 1px;
    opacity: 0.55;
    color: inherit;
    font-weight: 700;
    vertical-align: middle;
}

.tag-remove:hover {
    opacity: 1;
}

/* -------------------------------------------------------------------------
   Alerts
   ------------------------------------------------------------------------- */
.alert {
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 14px;
    border: 1px solid;
}

.alert-error {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #991b1b;
}
.alert-success {
    background: #f0fdf4;
    border-color: #86efac;
    color: #166534;
}
.alert-warning {
    background: #fffbeb;
    border-color: #fcd34d;
    color: #92400e;
}

/* -------------------------------------------------------------------------
   Auth pages
   ------------------------------------------------------------------------- */
.auth-card {
    max-width: 420px;
    margin: 72px auto;
    padding: 40px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.07);
}

.auth-title {
    margin: 0 0 6px;
    font-size: 24px;
}
.auth-subtitle {
    margin: 0 0 28px;
    color: #64748b;
    font-size: 14px;
}
.auth-form {
    margin-bottom: 20px;
}
.auth-switch {
    margin: 0;
    font-size: 14px;
    text-align: center;
    color: #64748b;
}
.button-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #fff;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    font-weight: 500;
    margin-bottom: 4px;
}
.button-google:hover {
    background: #f8fafc;
    color: #1e293b;
    border-color: #cbd5e1;
}
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    color: #94a3b8;
    font-size: 13px;
}
.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.verify-pending-shell {
    display: flex;
    justify-content: center;
    padding: 40px 0 24px;
}

.verify-pending-card {
    width: 100%;
    max-width: 820px;
    padding: 40px 44px;
    border-radius: 28px;
    border: 1px solid var(--color-hero-card-border);
    background:
        radial-gradient(
            circle at top left,
            var(--color-hero-cyan-glow),
            transparent 36%
        ),
        radial-gradient(
            circle at bottom right,
            var(--color-hero-green-glow),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            var(--color-hero-start) 0%,
            var(--color-hero-mid) 56%,
            var(--color-hero-end) 100%
        );
    box-shadow: 0 24px 56px rgba(15, 23, 42, 0.16);
    text-align: center;
    color: var(--color-hero-text);
}

.verify-pending-card .marketing-kicker {
    margin-bottom: 18px;
}

.verify-pending-card h1 {
    margin: 0;
    font-size: clamp(40px, 7vw, 58px);
    line-height: 0.95;
    letter-spacing: -0.05em;
    color: var(--color-hero-heading);
}

.verify-pending-lede {
    margin: 20px 0 0;
    font-size: 16px;
    color: var(--color-hero-proof);
}

.verify-pending-email {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 16px;
    padding: 10px 16px;
    border-radius: 9999px;
    border: 1px solid var(--color-hero-chip-border);
    background: var(--color-hero-chip-bg);
    color: var(--color-hero-heading);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.verify-pending-copy {
    max-width: 560px;
    margin: 18px auto 0;
    font-size: 18px;
    line-height: 1.7;
    color: var(--color-hero-lede);
}

.verify-pending-alert {
    max-width: 560px;
    margin: 24px auto 0;
    text-align: left;
}

.verify-pending-actions {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.verify-pending-card .button.secondary {
    border-color: var(--color-hero-chip-border);
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-hero-heading);
}

.verify-pending-card .button.secondary:hover {
    background: rgba(255, 255, 255, 0.14);
    color: var(--color-hero-heading);
}

.verify-pending-meta {
    max-width: 520px;
    margin: 18px auto 0;
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-hero-proof);
}

@media (max-width: 640px) {
    .verify-pending-shell {
        padding: 16px 0 8px;
    }

    .verify-pending-card {
        padding: 28px 20px;
        border-radius: 22px;
    }

    .verify-pending-copy {
        font-size: 16px;
    }

    .verify-pending-email {
        width: 100%;
    }
}

/* -------------------------------------------------------------------------
   Marketing
   ------------------------------------------------------------------------- */
.marketing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.85fr);
    gap: 24px;
    padding: 36px;
    border-radius: 24px;
    background:
        radial-gradient(
            circle at top left,
            var(--color-hero-cyan-glow),
            transparent 34%
        ),
        radial-gradient(
            circle at bottom right,
            var(--color-hero-green-glow),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            var(--color-hero-start) 0%,
            var(--color-hero-mid) 52%,
            var(--color-hero-end) 100%
        );
    color: var(--color-hero-text);
    overflow: hidden;
}

.marketing-kicker {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 6px 10px;
    border-radius: 9999px;
    border: 1px solid var(--color-hero-chip-border);
    background: var(--color-hero-chip-bg);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.marketing-hero h1 {
    max-width: 12ch;
    margin-bottom: 14px;
    font-size: 48px;
    line-height: 1;
    color: var(--color-hero-heading);
}

.marketing-lede {
    max-width: 62ch;
    margin: 0;
    font-size: 16px;
    color: var(--color-hero-lede);
}

.marketing-actions {
    display: flex;
    gap: 10px;
    margin-top: 22px;
    flex-wrap: wrap;
}

.marketing-proof {
    display: flex;
    gap: 18px;
    margin-top: 20px;
    flex-wrap: wrap;
    color: var(--color-hero-proof);
    font-size: 13px;
    font-weight: 600;
}

.marketing-panel {
    display: grid;
    gap: 14px;
    align-content: start;
}

.marketing-stat-card,
.feature-card,
.plan-card {
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border);
    border-radius: 16px;
}

.marketing-stat-card {
    padding: 18px;
    background: var(--color-hero-card-bg);
    border-color: var(--color-hero-card-border);
}

.marketing-step-heading {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
}

.marketing-step-number {
    color: var(--color-accent);
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
}

.marketing-stat-card strong {
    display: block;
    color: var(--color-hero-heading);
    font-size: 15px;
}

.marketing-stat-card p {
    margin: 0;
    color: rgba(226, 232, 240, 0.78);
    font-size: 14px;
}

.feature-band {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.feature-card {
    padding: 22px;
}

.feature-card h2 {
    margin-bottom: 10px;
}

.feature-card p {
    margin: 0;
    color: var(--color-text-muted);
}

.pricing-header {
    margin-top: 32px;
}

.pricing-header {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* -------------------------------------------------------------------------
   Dashboard / game list
   ------------------------------------------------------------------------- */
.dashboard-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}

.dashboard-plan {
    display: flex;
    align-items: center;
    gap: 10px;
}

.upgrade-nudge {
    padding: 14px 18px;
    background: #fefce8;
    border: 1px solid #fde047;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 24px;
    color: #713f12;
}

.trial-banner {
    padding: 12px 18px;
    background: #ede9fe;
    border: 1px solid #c4b5fd;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 20px;
    color: #4c1d95;
}
.trial-banner a {
    color: #6366f1;
    font-weight: 600;
}

.tier-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tier-free {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}
.tier-indie {
    background: #dbeafe;
    color: #1d4ed8;
    border: 1px solid #93c5fd;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

@media (min-width: 1100px) {
    .game-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1100px) {
    .game-card-add {
        min-height: 420px;
    }
}

.game-card {
    padding: 28px;
    background: #ffffff;
    border: 1px solid #d8e1ef;
    border-radius: 16px;
    box-shadow:
        0 10px 30px rgba(15, 23, 42, 0.06),
        0 2px 8px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition:
        transform 0.15s,
        box-shadow 0.15s,
        border-color 0.15s;
}

.game-card:hover {
    transform: translateY(-2px);
    border-color: #cdd7ea;
    box-shadow:
        0 18px 42px rgba(15, 23, 42, 0.09),
        0 6px 16px rgba(15, 23, 42, 0.05);
}

.game-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.game-card-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.game-card-title-link {
    color: #6366f1;
    text-decoration: none;
}

.game-card-title-link:hover {
    text-decoration: underline;
    text-underline-offset: 0.12em;
}
.game-card-desc {
    margin: 0;
}

.game-card-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #e6ebf5;
}

.game-card-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.game-card-controls {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.card-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    font-size: 19px;
    line-height: 1;
    text-decoration: none;
    padding: 0;
    transition:
        background 0.1s,
        color 0.1s;
}

.card-icon-btn:hover {
    background: #e8edf5;
    color: #1e293b;
    text-decoration: none;
}

.card-menu {
    position: relative;
}

.card-menu-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    background: #ffffff;
    border: 1px solid #d8e1ef;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.1);
    min-width: 130px;
    z-index: 200;
    overflow: hidden;
}

.card-menu-dropdown.hidden {
    display: none;
}

.card-menu-dropdown form {
    margin: 0;
}

.card-menu-item {
    display: block;
    width: 100%;
    padding: 9px 14px;
    text-align: left;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    color: #334155;
    transition: background 0.1s;
}

.card-menu-item:hover {
    background: #f8fafc;
}

.card-menu-item--danger {
    color: #ef4444;
}

.card-menu-item--danger:hover {
    background: #fef2f2;
}

.game-card-note {
    margin: 10px 0 0;
    font-size: 13px;
    color: var(--color-text-muted);
}

.queue-badge {
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    white-space: nowrap;
}

.game-card-add {
    border: 2px dashed #cbd5e1;
    background: #fbfdff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    text-decoration: none;
    color: #94a3b8;
    cursor: pointer;
    transition:
        background 0.15s,
        border-color 0.15s,
        color 0.15s;
}

.game-card-add:hover {
    background: #f8fafc;
    border-color: #6366f1;
    color: #6366f1;
    text-decoration: none;
}

.game-card-add-locked {
    background: #f8fafc;
    border-color: #d7deea;
    color: #a3afc2;
    cursor: default;
}

.game-card-add-locked:hover {
    background: #f8fafc;
    border-color: #d7deea;
    color: #a3afc2;
    text-decoration: none;
}

.game-card-add-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.game-card-add-note {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 500;
}

.add-icon {
    font-size: 32px;
    line-height: 1;
}

.empty-state {
    text-align: center;
    padding: 64px 24px;
    color: #64748b;
}

.empty-state p {
    margin-bottom: 20px;
}

/* -------------------------------------------------------------------------
   Game setup page
   ------------------------------------------------------------------------- */
.setup-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 32px;
    gap: 16px;
    flex-wrap: wrap;
}

.setup-header-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.setup-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 24px;
}

.setup-section h2 {
    margin-bottom: 14px;
}

.template-list,
.asset-list {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}

.template-card,
.asset-card {
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.template-header,
.asset-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    gap: 8px;
}

.template-subject {
    margin: 4px 0 8px;
    font-size: 13px;
    color: #475569;
}

.template-body {
    font-size: 12px;
    line-height: 1.6;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px 10px;
    max-height: 120px;
    overflow-y: auto;
    white-space: pre-wrap;
    color: #475569;
}

.asset-body {
    font-size: 13px;
    margin: 4px 0 0;
    color: #475569;
}

.add-section {
    margin-top: 18px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.add-section summary {
    padding: 12px 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #6366f1;
    background: #f8fafc;
    user-select: none;
    list-style: none;
}

.add-section summary::-webkit-details-marker {
    display: none;
}
.add-section[open] summary {
    border-bottom: 1px solid #e2e8f0;
}

.add-form {
    padding: 18px;
}

.empty-state-inline {
    margin: 0 0 14px;
    color: #94a3b8;
    font-size: 14px;
}

.discovery-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.form-page {
    max-width: 700px;
}

.billing-status-rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0 4px;
    padding: 16px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.billing-status-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.billing-status-label {
    color: #64748b;
}

.billing-status-value {
    font-weight: 600;
    color: #1e293b;
}

@media (max-width: 960px) {
    .tag-picker-row {
        grid-template-columns: 1fr;
    }
}

/* -------------------------------------------------------------------------
   Review queue
   ------------------------------------------------------------------------- */
.queue-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 28px;
    gap: 16px;
    flex-wrap: wrap;
}

.queue-header-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.discovery-guidance {
    margin: 0 0 24px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid #dbe3f0;
    background: #f8fafc;
}

.discovery-guidance .quota-bars {
    margin-bottom: 10px;
}

.discovery-guidance-policy {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.discovery-guidance-note {
    margin: 8px 0 0;
}

.discovery-status {
    margin: 10px 0 0;
    color: #475569;
}

.discovery-status.is-blocked {
    color: #b45309;
    font-weight: 600;
}

.discovery-source-picker {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

.source-picker-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-right: 2px;
}

.discovery-guidance-run {
    margin-left: auto;
}

.source-toggle {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    cursor: pointer;
    transition:
        border-color 0.15s,
        color 0.15s,
        background 0.15s;
    user-select: none;
}

.source-toggle.is-active {
    border-color: #c4b5fd;
    background: #ede9fe;
    color: #5b21b6;
}

.source-toggle:not(.is-active):hover {
    border-color: #cbd5e1;
    color: #334155;
}

.source-toggle.is-unavailable {
    opacity: 0.4;
    cursor: not-allowed;
}

.queue-filter-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.queue-filter-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-right: 2px;
}

.queue-filter-btn {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    color: #64748b;
    cursor: pointer;
    transition:
        border-color 0.15s,
        color 0.15s,
        background 0.15s;
}

.queue-filter-btn.is-active {
    border-color: #c4b5fd;
    background: #ede9fe;
    color: #5b21b6;
}

.queue-filter-btn:not(.is-active):hover {
    border-color: #cbd5e1;
    color: #334155;
}

.quota-bars {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.quota-bars-title {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    padding-right: 4px;
    border-right: 1px solid #e2e8f0;
}

.quota-bar-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.quota-bar-label {
    font-size: 12px;
    font-weight: 500;
    color: #475569;
    white-space: nowrap;
}

.quota-bar-track {
    width: 80px;
    height: 6px;
    background: #e2e8f0;
    border-radius: 9999px;
    overflow: hidden;
    flex-shrink: 0;
}

.quota-bar-fill {
    height: 100%;
    border-radius: 9999px;
    background: var(--color-brand);
    transition: width 0.3s ease;
}

.quota-bar-count {
    font-size: 11px;
    color: #94a3b8;
    white-space: nowrap;
}

.queue-list {
    display: grid;
    gap: 20px;
}

.queue-card {
    padding: 26px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

.queue-topline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 14px;
}

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

.queue-topline-actions {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex-shrink: 0;
}

.prospect-name {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.prospect-name a {
    color: #6366f1;
}
.prospect-name a:hover {
    color: #6366f1;
    text-decoration: none;
}

.prospect-handle {
    font-weight: 400;
    font-size: 14px;
    color: #94a3b8;
    margin-left: 8px;
}

.prospect-followers {
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.contact-popover {
    position: relative;
}

.contact-trigger {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 92px;
    padding: 10px 12px;
    border: 1px solid #dbe3f0;
    border-radius: 12px;
    background: #f8fafc;
    color: #475569;
    cursor: pointer;
    user-select: none;
}

.contact-trigger::-webkit-details-marker {
    display: none;
}

.contact-trigger-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
}

.contact-trigger-value {
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.contact-popover:hover .contact-trigger,
.contact-popover:focus-within .contact-trigger,
.contact-popover[open] .contact-trigger {
    background: #ffffff;
    border-color: #cbd5e1;
}

.contact-popover-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 8;
    width: min(320px, calc(100vw - 72px));
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    display: none;
    gap: 10px;
}

.contact-popover:hover .contact-popover-panel,
.contact-popover:focus-within .contact-popover-panel,
.contact-popover[open] .contact-popover-panel {
    display: grid;
}

.contact-popover-row {
    display: grid;
    gap: 4px;
}

.contact-popover-key {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #94a3b8;
}

.contact-popover-value,
.contact-popover-link {
    font-size: 14px;
    color: #334155;
    line-height: 1.5;
    word-break: break-word;
}

.contact-popover-link {
    color: #4f46e5;
    text-decoration: none;
}

.contact-popover-link:hover {
    text-decoration: underline;
}

/* Score badge */
.score-badge {
    flex-shrink: 0;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 3px solid;
}

.score-number {
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
}
.score-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 1px;
}

.score-green {
    background: #f0fdf4;
    border-color: #4ade80;
    color: #166534;
}
.score-yellow {
    background: #fefce8;
    border-color: #facc15;
    color: #713f12;
}
.score-red {
    background: #fff1f2;
    border-color: #fb7185;
    color: #9f1239;
}

/* Channel avatar in queue card */
.prospect-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
}

.prospect-name-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.prospect-name-row .prospect-name {
    margin-bottom: 0;
}

/* Video thumbnail strip */
.video-thumbnails {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    margin: 14px 0 18px;
}

.video-thumbnail {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #dbe3f0;
    background: #0f172a;
}

@media (max-width: 920px) {
    .video-thumbnails {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .discovery-guidance-run {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }

    .queue-topline {
        flex-direction: column;
    }

    .queue-topline-actions {
        width: 100%;
        justify-content: space-between;
        align-items: center;
    }
}

/* Match insights */
.queue-insights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.insight-card {
    padding: 16px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #ffffff;
}

.insight-card-title {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}

.insight-card-body {
    margin: 0;
    font-size: 14px;
    color: #475569;
    line-height: 1.7;
}

@media (max-width: 920px) {
    .queue-insights {
        grid-template-columns: 1fr;
    }
}

/* Always-visible score snapshot */
.score-snapshot {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    margin-bottom: 16px;
    background: #f8fafc;
    padding: 16px;
}

.score-snapshot-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.score-snapshot-title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.score-snapshot-subtle {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.01em;
}

.score-breakdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.score-dim-card {
    padding: 12px 13px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.score-dim-topline {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.score-dim-label {
    color: #64748b;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.01em;
}

.score-dim-bar {
    display: block;
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 9999px;
    position: relative;
    overflow: hidden;
}

.score-dim-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: #6366f1;
    border-radius: 9999px;
}

.score-dim-value {
    font-weight: 700;
    font-size: 15px;
    color: #0f172a;
}

.reasons-list {
    margin: 14px 0 0;
    padding-left: 18px;
    font-size: 13px;
    color: #475569;
}

.reasons-list li {
    margin-bottom: 4px;
}

.message-accordion {
    margin-top: 18px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
    overflow: hidden;
}

.message-accordion summary {
    padding: 14px 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    list-style: none;
    user-select: none;
}

.message-accordion summary::after {
    content: "▾";
    font-size: 28px;
    line-height: 1;
    color: #64748b;
    transition: transform 0.15s ease;
}

.message-accordion summary::-webkit-details-marker {
    display: none;
}

.message-accordion[open] summary {
    border-bottom: 1px solid #e2e8f0;
}

.message-accordion[open] summary::after {
    transform: rotate(180deg);
}

.message-accordion-body {
    padding: 18px;
    background: #ffffff;
}

.message-accordion .form-group:last-child {
    margin-bottom: 0;
}

/* Action row */
.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.card-status-msg {
    margin-top: 10px;
    font-size: 13px;
    color: #64748b;
    font-style: italic;
}

/* Empty queue */
.empty-queue {
    text-align: center;
    padding: 72px 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}

.empty-queue h2 {
    margin-bottom: 12px;
    color: #64748b;
}

/* -------------------------------------------------------------------------
   Billing page
   ------------------------------------------------------------------------- */
.billing-page {
    max-width: 820px;
}

.pricing-shell {
    display: flex;
    justify-content: center;
    width: 100%;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 360px));
    justify-content: center;
    gap: 16px;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
}

.pricing-cards-single {
    grid-template-columns: minmax(320px, 460px);
    justify-content: center;
    justify-items: center;
    width: 100%;
}

.pricing-header-single {
    max-width: 640px;
}

.plan-card-single {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
}

.plan-card-top-single {
    align-items: center;
}

.plan-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 9999px;
    background: var(--color-brand-soft);
    border: 1px solid #c4b5fd;
    color: var(--color-brand);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.pricing-note {
    margin: 16px 0 0;
    color: var(--color-text-faint);
    font-size: 13px;
    text-align: center;
}

.current-plan-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 32px;
}

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

.plan-limits {
    display: flex;
    gap: 32px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.limit-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.limit-label {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.limit-value {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.plan-status-active {
    background: #dcfce7;
    border: 1px solid #86efac;
    color: #166534;
    border-radius: 9999px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
}
.plan-status-cancelled {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
    border-radius: 9999px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
}
.plan-status-past_due {
    background: #fefce8;
    border: 1px solid #fde047;
    color: #713f12;
    border-radius: 9999px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.plan-card {
    padding: 26px;
    transition: box-shadow 0.15s;
}

.plan-card:hover {
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

.plan-card-current {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.plan-card-featured {
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.14);
}

.plan-card-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.plan-name {
    margin: 0 0 16px;
    font-size: 20px;
    font-weight: 700;
}

.plan-price {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0f172a;
}

.plan-price span {
    margin-left: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
}

.plan-summary {
    margin: 0 0 16px;
    color: #64748b;
    font-size: 14px;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.8;
    color: #475569;
}

.plan-features li::before {
    content: "✓ ";
    color: #10b981;
    font-weight: 700;
}

@media (max-width: 860px) {
    .navbar-inner {
        height: auto;
        padding: 14px 16px 16px;
        flex-wrap: wrap;
        row-gap: 12px;
    }

    .navbar-brand {
        flex: 1 0 100%;
        font-size: 22px;
    }

    .navbar-brand-mark {
        width: 56px;
        height: 56px;
        border-radius: 14px;
    }

    .navbar-center {
        order: 3;
        flex: 1 0 100%;
        justify-content: flex-start;
    }

    .navbar-right {
        width: 100%;
        flex-wrap: wrap;
        gap: 10px 12px;
        justify-content: flex-start;
    }

    .nav-user {
        display: none;
    }

    .marketing-hero,
    .feature-band {
        grid-template-columns: 1fr;
    }

    .pricing-cards {
        width: 100%;
        grid-template-columns: 1fr;
    }

    .marketing-hero {
        padding: 28px;
    }

    .marketing-hero h1 {
        max-width: none;
        font-size: 38px;
    }
}

@media (max-width: 640px) {
    .marketing-hero {
        gap: 18px;
        padding: 24px 20px;
        border-radius: 20px;
    }

    .marketing-kicker {
        margin-bottom: 10px;
        font-size: 10px;
        letter-spacing: 0.1em;
    }

    .marketing-hero h1 {
        font-size: clamp(34px, 14vw, 44px);
        line-height: 0.96;
        margin-bottom: 12px;
    }

    .marketing-lede {
        font-size: 16px;
        line-height: 1.6;
    }

    .marketing-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .marketing-actions .button {
        width: 100%;
    }

    .marketing-panel {
        gap: 12px;
    }

    .marketing-stat-card {
        padding: 16px;
        border-radius: 18px;
    }

    .marketing-step-heading {
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: start;
        gap: 10px;
        margin-bottom: 10px;
    }

    .marketing-step-number {
        font-size: 14px;
        min-width: 18px;
    }

    .marketing-stat-card strong {
        font-size: 14px;
        line-height: 1.3;
    }

    .marketing-stat-card p {
        font-size: 14px;
        line-height: 1.65;
    }
}

/* -------------------------------------------------------------------------
   Admin table
   ------------------------------------------------------------------------- */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
}
.admin-table th {
    background: #f8fafc;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #475569;
    border-bottom: 1px solid #e2e8f0;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.admin-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    vertical-align: middle;
}
.admin-table tr:last-child td {
    border-bottom: none;
}
.admin-table tr:hover td {
    background: #f8fafc;
}

/* ── Blog ────────────────────────────────────────────────────────────────── */
.blog-index-shell {
    max-width: 720px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}
.blog-index-header {
    margin-bottom: 48px;
}
.blog-index-header h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--color-text);
    margin: 0 0 8px;
}
.blog-index-header p {
    color: var(--color-text-soft);
    font-size: 16px;
    margin: 0;
}
.blog-post-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.blog-card {
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 32px;
}
.blog-card:last-child {
    border-bottom: none;
}
.blog-card-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
}
.blog-card-date,
.blog-card-read-time {
    font-size: 13px;
    color: var(--color-text-muted);
}
.blog-card-date::after {
    content: "·";
    margin-left: 12px;
}
.blog-card-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.3;
}
.blog-card-title a {
    color: var(--color-text);
    text-decoration: none;
}
.blog-card-title a:hover {
    color: var(--color-brand);
}
.blog-card-excerpt {
    color: var(--color-text-soft);
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 12px;
}
.blog-card-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-brand);
    text-decoration: none;
}
.blog-card-link:hover {
    color: var(--color-brand-hover);
}

/* Blog post page */
.blog-post-shell {
    max-width: 720px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}
.blog-post-header {
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--color-border);
}
.blog-post-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}
.blog-post-header h1 {
    font-size: 36px;
    font-weight: 800;
    color: var(--color-text);
    line-height: 1.2;
    margin: 0 0 12px;
}
.blog-post-lede {
    font-size: 18px;
    color: var(--color-text-soft);
    line-height: 1.6;
    margin: 0;
}
.blog-post-body {
    font-size: 16px;
    line-height: 1.75;
    color: var(--color-text);
}
.blog-post-body h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 48px 0 16px;
    color: var(--color-text);
}
.blog-post-body h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 32px 0 12px;
    color: var(--color-text);
}
.blog-post-body p {
    margin: 0 0 20px;
}
.blog-post-body ul,
.blog-post-body ol {
    margin: 0 0 20px;
    padding-left: 24px;
}
.blog-post-body li {
    margin-bottom: 6px;
}
.blog-post-body hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 48px 0;
}
.blog-post-body a {
    color: var(--color-brand);
    text-decoration: underline;
}
.blog-post-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 24px;
    font-size: 14px;
}
.blog-post-body th {
    text-align: left;
    padding: 8px 12px;
    font-weight: 600;
    color: var(--color-text-muted);
    border-bottom: 2px solid var(--color-border);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.blog-post-body td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--color-border);
    vertical-align: top;
}
.blog-template-block {
    background: var(--color-bg-muted);
    border-left: 3px solid var(--color-brand);
    border-radius: 4px;
    padding: 20px 24px;
    margin: 24px 0;
    font-size: 15px;
}
.blog-template-block p {
    margin: 0 0 12px;
}
.blog-template-block p:last-child {
    margin: 0;
}
.blog-post-footer {
    margin-top: 64px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}
.blog-back-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-soft);
    text-decoration: none;
}
.blog-back-link:hover {
    color: var(--color-brand);
}

.not-found-panel {
    max-width: 720px;
    margin: 56px auto 0;
    padding: 48px;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    background: var(--color-bg-surface);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
    text-align: center;
}

.not-found-kicker {
    display: inline-flex;
    margin-bottom: 16px;
    padding: 6px 10px;
    border-radius: 9999px;
    border: 1px solid #c4b5fd;
    background: var(--color-brand-soft);
    color: var(--color-brand);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.not-found-panel h1 {
    margin-bottom: 12px;
    font-size: 44px;
    line-height: 1.05;
}

.not-found-panel p {
    max-width: 48ch;
    margin: 0 auto;
    color: var(--color-text-muted);
    font-size: 16px;
}

.not-found-actions {
    justify-content: center;
}

@media (max-width: 720px) {
    .not-found-panel {
        margin-top: 24px;
        padding: 32px 22px;
    }

    .not-found-panel h1 {
        font-size: 34px;
    }
}
