/* ── Auth Pages ── */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
}

.auth-mesh-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0a0a0f 0%, #12121a 100%);
    z-index: 0;
}

.auth-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    animation: auth-float 12s ease-in-out infinite;
    z-index: 1;
}

.auth-orb-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.15) 0%, transparent 70%);
}

.auth-orb-2 {
    width: 350px;
    height: 350px;
    bottom: -80px;
    left: -80px;
    background: radial-gradient(circle, rgba(118, 75, 162, 0.12) 0%, transparent 70%);
    animation-delay: -6s;
}

@keyframes auth-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -20px) scale(1.1); }
}

.auth-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 28px;
    padding: 2.5rem;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

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

.auth-divider-line {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

/* ── Gradient Button ── */
.gradient-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border-radius: 12px !important;
    height: 48px;
    font-weight: 600 !important;
    text-transform: none !important;
    font-family: 'Inter', sans-serif !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
    transition: all 0.3s ease !important;
}

.gradient-btn:hover {
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5) !important;
    transform: translateY(-1px);
}

/* ── Plan Cards ── */
.plan-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}

/* ═══════════════════════════════════════════════════════════════════
   Installation Page
   ═══════════════════════════════════════════════════════════════════ */

.install-page {
    padding-top: 5rem;
    padding-bottom: 4rem;
}

/* ── Hero ── */
.install-hero {
    text-align: center;
    padding: 2.5rem 0 3.5rem;
    position: relative;
}

.install-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(16,185,129,0.10);
    border: 1px solid rgba(16,185,129,0.28);
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #10b981;
    margin-bottom: 1.25rem;
    font-family: 'Inter', sans-serif;
}

.install-hero-title {
    font-size: clamp(2.2rem, 5vw, 3.5rem) !important;
    font-weight: 800 !important;
    font-family: 'Inter', sans-serif !important;
    line-height: 1.08 !important;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #fff 40%, rgba(255,255,255,0.55));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.install-hero-subtitle {
    color: rgba(255,255,255,0.48) !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 1.05rem;
    max-width: 52ch;
    margin: 0 auto;
    line-height: 1.65;
}

/* ── Section label ── */
.section-label {
    display: block;
    letter-spacing: 0.18em !important;
    color: rgba(255,255,255,0.3) !important;
    font-family: 'Inter', sans-serif !important;
    margin-bottom: 1.25rem !important;
}

.section-divider {
    height: 1px;
    background: rgba(255,255,255,0.06);
    margin: 3rem 0 2.5rem;
}

/* ── MudTabs override ── */
.install-tabs .mud-tabs-tabbar {
    background: rgba(255,255,255,0.03) !important;
    border: 1px solid rgba(255,255,255,0.07) !important;
    border-radius: 14px !important;
    padding: 4px !important;
}

.install-tabs .mud-tab {
    color: rgba(255,255,255,0.5) !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    text-transform: none !important;
    min-width: 140px !important;
    transition: color 0.2s;
}

.install-tabs .mud-tab-active,
.install-tabs .mud-tab.mud-tab-active {
    color: rgba(255,255,255,0.92) !important;
    background: rgba(255,255,255,0.07) !important;
}

/* ── Platform Cards ── */
.platform-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 22px;
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.platform-card:hover {
    border-color: rgba(255,255,255,0.14);
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.35);
}

.platform-card--recommended {
    border-color: rgba(16,185,129,0.4) !important;
    background: rgba(16,185,129,0.04) !important;
    box-shadow: 0 0 0 1px rgba(16,185,129,0.15), 0 8px 32px rgba(16,185,129,0.08) !important;
}

.platform-badge {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #10b981, #667eea);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 3px 12px;
    border-radius: 100px;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
}

.platform-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
}

/* ── Architecture Toggle ── */
.arch-toggle {
    display: flex;
    gap: 6px;
    margin-bottom: 1.25rem;
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    padding: 4px;
}

.arch-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 6px;
    border: none;
    border-radius: 9px;
    background: transparent;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255,255,255,0.45);
    transition: background 0.2s, color 0.2s;
}

.arch-btn--active {
    background: rgba(16,185,129,0.16);
    color: #10b981;
}

.arch-chip {
    font-size: 0.62rem;
    font-weight: 500;
    opacity: 0.7;
    letter-spacing: 0.04em;
}

/* ── Code Blocks ── */
.code-block {
    background: rgba(6,8,14,0.7) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 16px !important;
    overflow: hidden;
}

.code-block-header {
    padding: 10px 14px 10px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.02);
}

.code-content {
    padding: 1.25rem 1.5rem;
    margin: 0;
    font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'Menlo', monospace;
    font-size: 0.82rem;
    line-height: 1.75;
    color: rgba(255,255,255,0.82);
    white-space: pre;
    overflow-x: auto;
    tab-size: 2;
}

/* ── Feature Panels ── */
.feature-panel {
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    user-select: none;
}

.feature-panel:hover {
    border-color: rgba(255,255,255,0.13);
    background: rgba(255,255,255,0.04);
}

.feature-panel--open {
    border-color: rgba(16,185,129,0.28);
    background: rgba(16,185,129,0.025);
}

.feature-panel-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
}

.feature-panel-body {
    padding: 0 1.25rem 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: 0;
    cursor: default;
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    flex-shrink: 0;
}

/* ── Feature Steps ── */
.feature-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 6px 0;
}

.feature-step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    font-size: 0.72rem;
    font-weight: 800;
    color: rgba(255,255,255,0.6);
    font-family: 'Inter', sans-serif;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ── Sovereign Footer ── */
.sovereign-footer {
    background: rgba(255,255,255,0.025) !important;
    border: 1px solid rgba(16,185,129,0.2) !important;
    border-radius: 22px !important;
    padding: 2rem 2rem !important;
    margin-top: 0.5rem;
}

.sovereign-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(16,185,129,0.18), rgba(102,126,234,0.14));
    border-radius: 16px;
}

@media (max-width: 600px) {
    .install-hero {
        padding: 1.5rem 0 2.5rem;
    }

    .platform-card {
        padding: 1.5rem;
    }

    .arch-toggle {
        flex-direction: row;
    }

    .sovereign-footer {
        padding: 1.5rem !important;
    }
}
