/* ============================================
   ddot.build Portal -- Dark Mode Stylesheet
   ============================================ */

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

:root {
    --bg-deep: #07080c;
    --bg-surface: #0a0c12;
    --bg-card: #0d0f17;
    --bg-input: #111320;
    --border-subtle: rgba(99, 102, 241, 0.12);
    --border-card: rgba(99, 102, 241, 0.15);
    --border-focus: rgba(99, 102, 241, 0.5);
    --accent: #6366f1;
    --accent-light: #818cf8;
    --accent-glow: rgba(99, 102, 241, 0.25);
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --error: #ef4444;
    --error-bg: rgba(239, 68, 68, 0.08);
    --error-border: rgba(239, 68, 68, 0.2);
    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.08);
    --success-border: rgba(16, 185, 129, 0.2);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 200ms ease;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-deep);
    color: var(--text-primary);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* ---- Ambient Glow ---- */

.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

.ambient-glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    top: -200px;
    right: -100px;
}

.ambient-glow-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.06) 0%, transparent 70%);
    bottom: -150px;
    left: -100px;
}

/* ---- Navigation ---- */

.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(7, 8, 12, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.brand-symbol {
    color: var(--accent);
    font-weight: 700;
}

.brand-dot {
    color: var(--accent-light);
}

.brand-ext {
    color: var(--text-muted);
    font-weight: 400;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-user {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.nav-logout {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8125rem;
    padding: 0.375rem 0.875rem;
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    transition: all var(--transition);
}

.nav-logout:hover {
    color: var(--text-secondary);
    border-color: var(--border-card);
    background: rgba(99, 102, 241, 0.05);
}

/* ---- Main Content ---- */

.main-content {
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

/* ---- Flash Messages ---- */

.flash-container {
    max-width: 480px;
    margin: 0 auto;
    padding: 1rem 1.5rem 0;
}

.nav-bar ~ .main-content .flash-container {
    max-width: 1200px;
    padding-top: calc(80px + 1rem);
}

.flash {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.flash-error {
    background: var(--error-bg);
    border: 1px solid var(--error-border);
    color: var(--error);
}

.flash-success {
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    color: var(--success);
}

.flash-info {
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--accent-light);
}

/* ---- Auth Pages ---- */

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius);
    padding: 2.5rem;
    position: relative;
    box-shadow:
        0 0 0 1px rgba(99, 102, 241, 0.05),
        0 8px 40px rgba(0, 0, 0, 0.4),
        0 0 80px rgba(99, 102, 241, 0.03);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo-img {
    height: 100px;
    width: auto;
    margin-bottom: 0.75rem;
    filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.15));
}

.nav-logo-img {
    height: 56px;
    width: auto;
    filter: drop-shadow(0 0 12px rgba(99, 102, 241, 0.15));
}

.logo-rest {
    color: var(--text-primary);
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 0.8125rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.auth-note {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 0.75rem;
    line-height: 1.5;
}

/* ---- Forms ---- */

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.01em;
}

.form-optional {
    color: var(--text-muted);
    font-weight: 400;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    transition: all var(--transition);
    outline: none;
}

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

.form-input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--accent-glow);
    background: rgba(17, 19, 32, 0.8);
}

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

/* ---- Buttons ---- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #4f46e5 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}

.btn-primary:hover {
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
    color: #fff;
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

.btn-secondary-outline {
    background: transparent;
    border: 1px solid var(--border-card);
    color: var(--text-secondary);
    padding: 0.75rem 1.5rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-secondary-outline:hover {
    border-color: var(--accent);
    color: var(--text-primary);
}

.btn-full {
    width: 100%;
    margin-top: 0.5rem;
}

.btn-sm {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: 6px;
    text-decoration: none;
    transition: all var(--transition);
}

.btn-secondary-sm {
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid var(--border-subtle);
    color: var(--accent-light);
}

.btn-secondary-sm:hover {
    background: rgba(99, 102, 241, 0.12);
    border-color: var(--accent);
}

/* ---- Auth Footer ---- */

.auth-footer {
    text-align: center;
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-subtle);
}

.auth-footer p {
    color: var(--text-muted);
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
}

.auth-link {
    color: var(--accent-light);
    text-decoration: none;
    font-weight: 500;
}

.auth-link:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* ---- Signup Card (wider than login) ---- */

.signup-card {
    width: 100%;
    max-width: 720px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius);
    padding: 2.5rem;
    position: relative;
    box-shadow:
        0 0 0 1px rgba(99, 102, 241, 0.05),
        0 8px 40px rgba(0, 0, 0, 0.4),
        0 0 80px rgba(99, 102, 241, 0.03);
}

.signup-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}

/* ---- Tier Selection ---- */

.tier-section {
    margin-top: 0.25rem;
}

.tier-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 0.75rem;
}

.tier-card {
    position: relative;
    cursor: pointer;
    display: block;
}

.tier-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.tier-inner {
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 1.25rem;
    transition: all 250ms ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tier-card.selected .tier-inner,
.tier-card input:checked ~ .tier-inner {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-glow), 0 4px 20px rgba(99, 102, 241, 0.1);
}

.tier-card:hover .tier-inner {
    border-color: rgba(99, 102, 241, 0.35);
}

.tier-card-featured .tier-inner {
    border-color: rgba(236, 72, 153, 0.25);
}

.tier-card-featured.selected .tier-inner,
.tier-card-featured input:checked ~ .tier-inner {
    border-color: #ec4899;
    box-shadow: 0 0 0 2px rgba(236, 72, 153, 0.25), 0 4px 20px rgba(236, 72, 153, 0.1);
}

.tier-badge {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #ec4899;
    margin-bottom: 0.625rem;
}

.tier-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.875rem;
}

.tier-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
}

.tier-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--accent-light);
}

.tier-period {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-muted);
}

.tier-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
}

.tier-features li {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    padding-left: 1.125rem;
    position: relative;
    line-height: 1.5;
}

.tier-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.6;
}

.tier-card-featured .tier-features li::before {
    background: #ec4899;
}

/* ---- Dashboard ---- */

.dashboard-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: calc(80px + 3rem) 2rem 3rem;
}

.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-title {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.dashboard-subtitle {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

/* ---- Status Banner ---- */

.status-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-card);
    border: 1px solid var(--success-border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.04);
}

.status-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
    animation: pulse-dot 2s ease-in-out infinite;
}

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

.status-text {
    font-weight: 600;
    color: var(--success);
    font-size: 0.9375rem;
}

.status-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.status-tier {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.status-sep {
    color: var(--text-muted);
    opacity: 0.4;
}

.status-key {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ---- Quick Actions ---- */

.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.action-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-secondary);
    transition: all var(--transition);
    font-size: 0.875rem;
    font-weight: 500;
}

.action-card:hover {
    border-color: var(--accent);
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.04);
}

.action-card svg {
    color: var(--accent-light);
    flex-shrink: 0;
}

/* ---- Section Divider ---- */

.section-divider {
    margin-bottom: 1.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-subtle);
    padding-top: 2rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    margin-bottom: 0.375rem;
}

.section-desc {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ---- Report Grid ---- */

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

.report-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius);
    padding: 1.75rem;
    text-decoration: none;
    color: inherit;
    transition: all 300ms ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

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

.report-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 60px rgba(99, 102, 241, 0.06);
    transform: translateY(-2px);
}

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

.report-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-light);
    margin-bottom: 1.25rem;
}

.report-title {
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    margin-bottom: 0.625rem;
}

.report-desc {
    font-size: 0.8125rem;
    line-height: 1.6;
    color: var(--text-secondary);
    flex-grow: 1;
    margin-bottom: 1.25rem;
}

.report-link {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    transition: color var(--transition);
}

.report-card:hover .report-link {
    color: var(--accent-light);
}

.report-link::after {
    content: ' -->';
    font-family: var(--font-mono);
    transition: transform var(--transition);
}

.report-card:hover .report-link::after {
    transform: translateX(3px);
}

/* ---- Featured Card (Magenta Glow) ---- */

.report-card-featured {
    border-color: rgba(236, 72, 153, 0.35);
    box-shadow:
        0 0 0 1px rgba(236, 72, 153, 0.1),
        0 0 20px rgba(236, 72, 153, 0.08),
        0 0 60px rgba(236, 72, 153, 0.04);
}

.report-card-featured::before {
    background: linear-gradient(90deg, transparent, #ec4899, transparent);
    opacity: 0.6;
}

.report-card-featured:hover {
    border-color: rgba(236, 72, 153, 0.5);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(236, 72, 153, 0.12),
        0 0 80px rgba(236, 72, 153, 0.06);
}

.report-card-featured .report-icon {
    background: rgba(236, 72, 153, 0.1);
    border-color: rgba(236, 72, 153, 0.2);
    color: #f472b6;
}

.report-card-featured .report-link {
    color: #ec4899;
}

.report-card-featured:hover .report-link {
    color: #f472b6;
}

/* ============================================
   Onboarding Page
   ============================================ */

.onboard-wrapper {
    max-width: 760px;
    margin: 0 auto;
    padding: calc(80px + 3rem) 2rem 4rem;
}

.onboard-header {
    text-align: center;
    margin-bottom: 3rem;
}

.onboard-check {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: var(--success);
}

.onboard-title {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.onboard-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

.onboard-section {
    margin-bottom: 2.5rem;
}

.onboard-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}

/* ---- License Key Card ---- */

.onboard-key-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
}

.key-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.key-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.key-value {
    font-family: var(--font-mono);
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--accent-light);
    letter-spacing: 0.04em;
}

.key-copy {
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.key-copy:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--accent);
    color: var(--accent-light);
}

.key-tier {
    font-size: 0.8125rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.tier-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.tier-dot-community { background: var(--accent); }
.tier-dot-pro { background: #ec4899; }
.tier-dot-ent { background: #f59e0b; }

/* ---- Install Steps ---- */

.install-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.install-step {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius);
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, #4f46e5 100%);
    color: #fff;
    font-weight: 700;
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-content {
    flex-grow: 1;
    min-width: 0;
}

.step-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.375rem;
}

.step-desc {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.875rem;
}

.step-cmd-wrap {
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 0.625rem 0.75rem;
    gap: 0.75rem;
}

.step-cmd {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--accent-light);
    flex-grow: 1;
    white-space: nowrap;
    overflow-x: auto;
}

.cmd-copy {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0.25rem;
    display: flex;
    align-items: center;
    transition: color var(--transition);
    flex-shrink: 0;
}

.cmd-copy:hover {
    color: var(--accent-light);
}

.step-alt {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.step-link {
    color: var(--accent-light);
    text-decoration: none;
}

.step-link:hover {
    text-decoration: underline;
}

.step-connector {
    width: 2px;
    height: 24px;
    background: var(--border-card);
    margin-left: 17px;
    flex-shrink: 0;
}

/* ---- Verify Card ---- */

.verify-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.verify-expected {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.verify-line {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.verify-check {
    color: var(--success);
    font-weight: 600;
    font-size: 0.75rem;
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    border-radius: 4px;
    padding: 0.125rem 0.375rem;
}

/* ---- What's Next Grid ---- */

.next-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.next-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.next-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-light);
    margin-bottom: 1rem;
}

.next-card h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

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

/* ---- Onboard Section Desc ---- */

.onboard-section-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    margin-top: -0.75rem;
    line-height: 1.6;
}

.onboard-section-desc strong {
    color: var(--text-primary);
    font-weight: 600;
}

.onboard-section-desc code {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    background: var(--bg-input);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    color: var(--accent-light);
}

/* ---- Install Tabs ---- */

.install-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-subtle);
}

.install-tab {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.5rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
}

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

.install-tab.active {
    color: var(--accent-light);
    border-bottom-color: var(--accent);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ---- Config Block ---- */

.config-block {
    background: var(--bg-input);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.config-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.875rem;
    background: rgba(99, 102, 241, 0.04);
    border-bottom: 1px solid var(--border-subtle);
}

.config-filename {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.config-header .cmd-copy {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.copy-label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: color var(--transition);
}

.config-code {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    line-height: 1.7;
    color: var(--accent-light);
    padding: 1rem;
    margin: 0;
    overflow-x: auto;
    white-space: pre;
}

/* ---- Step Highlight ---- */

.step-highlight {
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius);
    background: rgba(99, 102, 241, 0.02);
}

.step-note {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: 0;
}

/* ---- Restart Visual ---- */

.restart-visual {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.restart-step-mini {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 0.5rem 0.875rem;
}

.restart-done {
    border-color: var(--success-border);
    color: var(--success);
    background: var(--success-bg);
}

.mini-num {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(99, 102, 241, 0.1);
    border-radius: 4px;
    padding: 0.125rem 0.375rem;
}

.mini-check {
    display: flex;
    align-items: center;
}

.restart-arrow {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ---- Onboard Divider ---- */

.onboard-divider {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

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

.onboard-divider span {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ---- Big Command ---- */

.step-cmd-big {
    padding: 0.875rem 1rem;
}

.step-cmd-big .step-cmd {
    font-size: 0.875rem;
    font-weight: 500;
}

/* ---- After Paste Note ---- */

.after-paste {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    border-radius: 6px;
}

.after-paste p {
    font-size: 0.8125rem;
    color: var(--success);
    font-weight: 500;
    margin: 0;
}

/* ---- How It Works Accordion ---- */

.how-it-works {
    margin-top: 1rem;
}

.how-it-works details {
    background: rgba(99, 102, 241, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    overflow: hidden;
}

.how-it-works summary {
    padding: 0.75rem 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color var(--transition);
}

.how-it-works summary:hover {
    color: var(--text-primary);
}

.how-it-works summary::-webkit-details-marker {
    display: none;
}

.how-it-works summary::before {
    content: '+';
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--accent);
    font-weight: 600;
    width: 16px;
    text-align: center;
}

.how-it-works details[open] summary::before {
    content: '-';
}

.how-it-works details p {
    padding: 0 1rem 1rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* ---- Threat Icons (red) ---- */

.next-icon-red {
    background: var(--error-bg);
    border-color: var(--error-border);
    color: var(--error);
}

/* ---- Onboard Actions ---- */

.onboard-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding-top: 1rem;
}

/* ---- Responsive ---- */

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

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

    .quick-actions {
        grid-template-columns: 1fr;
    }

    .status-banner {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .status-left {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 640px) {
    .auth-card,
    .signup-card {
        padding: 2rem 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .dashboard-wrapper,
    .onboard-wrapper {
        padding-left: 1rem;
        padding-right: 1rem;
    }

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

    .nav-inner {
        padding: 0 1rem;
    }

    .key-value {
        font-size: 1rem;
    }

    .onboard-actions {
        flex-direction: column;
    }
}

/* Beta Badge - Glowing */
.tier-beta-badge {
    display: inline-block;
    padding: 4px 14px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #a78bfa);
    border-radius: 20px;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.5), 0 0 30px rgba(139, 92, 246, 0.3);
    animation: betaGlow 2s ease-in-out infinite alternate;
}

@keyframes betaGlow {
    0% {
        box-shadow: 0 0 8px rgba(99, 102, 241, 0.4), 0 0 20px rgba(139, 92, 246, 0.2);
    }
    100% {
        box-shadow: 0 0 16px rgba(99, 102, 241, 0.7), 0 0 40px rgba(139, 92, 246, 0.4), 0 0 60px rgba(167, 139, 250, 0.2);
    }
}

/* Email verification banner */
.verify-banner { background: rgba(234, 179, 8, 0.1); border: 1px solid rgba(234, 179, 8, 0.3); border-radius: 8px; padding: 12px 16px; margin-bottom: 24px; }
.verify-banner-inner { display: flex; align-items: center; gap: 10px; color: #eab308; font-size: 0.9rem; }
.verify-resend { color: #facc15; text-decoration: underline; margin-left: auto; font-weight: 500; }
.verify-resend:hover { color: #fde047; }

/* Auth links (forgot password) */
.auth-links { text-align: center; margin: 12px 0 0; }
.auth-links .auth-link { font-size: 0.85rem; color: var(--text-secondary); }
.auth-links .auth-link:hover { color: var(--accent-light); }

/* Flash messages */
.flash { padding: 10px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 0.9rem; }
.flash-error { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.3); color: #fca5a5; }
.flash-success { background: rgba(34, 197, 94, 0.1); border: 1px solid rgba(34, 197, 94, 0.3); color: #86efac; }
.flash-info { background: rgba(99, 102, 241, 0.1); border: 1px solid rgba(99, 102, 241, 0.3); color: #a5b4fc; }
