/* ===================================================================
   Phase VPN — Design System (Light Minimal Theme)
   =================================================================== */

:root {
    /* Backgrounds */
    --bg-primary: #F5F5F7;
    --bg-secondary: #FFFFFF;
    --bg-elevated: #FFFFFF;

    /* Brand */
    --primary: #7B6CB0;
    --primary-light: #A89ACD;
    --primary-pale: rgba(123, 108, 176, 0.08);
    --primary-hover: #6A5A9E;
    --primary-active: #5E4F93;

    /* Text */
    --text-primary: #1D1D1F;
    --text-secondary: #5F5F64;
    --text-tertiary: #86868B;

    /* Borders */
    --border-color: #E5E5EA;
    --border-subtle: #F0F0F2;

    /* Semantic */
    --success: #34C759;
    --success-bg: rgba(52, 199, 89, 0.08);
    --error: #FF3B30;
    --error-bg: rgba(255, 59, 48, 0.08);

    /* Typography */
    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', 'Consolas', monospace;

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-pill: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.02);
    --shadow-card-hover: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-btn: 0 1px 3px rgba(123, 108, 176, 0.2);
    --shadow-btn-hover: 0 4px 14px rgba(123, 108, 176, 0.25);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;
    --transition-slow: 0.4s ease;
}

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

/* ===== Base ===== */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
}

#app-container {
    width: 100%;
    max-width: 480px;
    padding: 24px;
    padding-top: 40px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== Typography ===== */
h1,
h2,
h3 {
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 1.2;
}

h1 {
    font-size: 28px;
    margin-bottom: 16px;
}

h2 {
    font-size: 20px;
    margin-bottom: 12px;
}

h3 {
    font-size: 17px;
    margin-bottom: 8px;
}

p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* ===== Brand ===== */
.brand-header {
    text-align: center;
    margin-bottom: 28px;
    animation: fadeIn 0.5s ease-out;
}

.brand-name {
    font-size: 32px;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: -0.01em;
}

.brand-text {
    color: var(--primary);
    font-weight: 600;
}

/* ===== Cards ===== */
.card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-card);
    animation: fadeIn 0.4s ease-out;
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.card:hover {
    box-shadow: var(--shadow-card-hover);
}

/* ===== Buttons ===== */
.btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    outline: none;
}

.btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--primary);
    color: #FFFFFF;
    box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: var(--shadow-btn-hover);
    transform: translateY(-1px);
}

.btn-primary:active {
    background: var(--primary-active);
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.btn-secondary {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-subtle);
    border-color: var(--text-tertiary);
}

.btn-secondary:active {
    background: var(--border-color);
}

.btn:disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

/* ===== Loader ===== */
.loader-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border-color);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 0.8s ease-in-out infinite;
}

/* ===== Status Row (Dashboard) ===== */
.status-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
}

.status-dot--active {
    background: var(--success);
    box-shadow: 0 0 0 3px rgba(52, 199, 89, 0.15);
}

.status-dot--expired {
    background: var(--error);
    box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.15);
}

.status-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.status-meta {
    font-size: 13px;
    color: var(--text-tertiary);
}

/* Legacy badge (kept for non-dashboard use) */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.badge-active {
    background: var(--success-bg);
    color: var(--success);
}

.badge-expired {
    background: var(--error-bg);
    color: var(--error);
}

/* ===== QR Container ===== */
.qr-container {
    background: var(--bg-secondary);
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.qr-container svg {
    width: 100%;
    height: auto;
    max-width: 250px;
}

/* ===== Invite Items ===== */
.invite-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-primary);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
    transition: background var(--transition-fast);
}

.invite-item:hover {
    background: var(--border-subtle);
}

.invite-code {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

.invite-used {
    text-decoration: line-through;
    color: var(--text-tertiary);
}

.invite-copy-btn {
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.invite-copy-btn:hover {
    background: var(--primary-pale);
    border-color: var(--primary-light);
    color: var(--primary);
}

/* ===== Toast ===== */
#toast-container {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 400px;
    z-index: 1000;
}

.toast {
    background: var(--text-primary);
    color: var(--bg-primary);
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 14px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    margin-top: 10px;
    animation: slideUp 0.3s ease-out;
}

/* ===== Utilities ===== */
.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 8px;
}

.mt-2 {
    margin-top: 16px;
}

.mt-3 {
    margin-top: 24px;
}

.mb-1 {
    margin-bottom: 8px;
}

.mb-2 {
    margin-bottom: 16px;
}

.mb-3 {
    margin-bottom: 24px;
}

/* ===== Animations ===== */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===================================================================
   Landing Page
   =================================================================== */
.landing {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* Nav */
.ln-nav {
    width: 100%;
    padding: 18px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ln-nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 16px;
    letter-spacing: -0.02em;
}

.ln-nav-mark {
    color: var(--primary);
    flex-shrink: 0;
}

.ln-nav-badge {
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
    background: transparent;
    border: none;
}

/* Hero */
.ln-hero {
    position: relative;
    padding: 48px 0 36px;
    text-align: center;
}

.particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
}

.ln-hero-glow {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.05) 50%, transparent 70%);
    filter: blur(40px);
    pointer-events: none;
    animation: glowPulse 6s ease-in-out infinite alternate;
}

@keyframes glowPulse {
    0% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.ln-hero-eyebrow {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 14px;
}

.ln-hero-title {
    font-size: clamp(36px, 8vw, 48px);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 12px;
    text-align: center;
    animation: heroFadeIn 0.7s ease-out both;
}

.ln-hero-sub {
    animation: heroFadeIn 0.7s ease-out 0.15s both;
}

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

.ln-hero-sub {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 0;
    font-size: 14px;
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-tertiary);
    letter-spacing: 0;
    margin: 0 auto;
    max-width: 340px;
}

.ln-hero-sub .ln-tag {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.ln-hero-sub .ln-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--text-tertiary);
    opacity: 0.5;
    margin: 0 8px;
    flex-shrink: 0;
}

/* Server status pills */
.server-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 14px;
    color: var(--text-primary);
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

/* Hover effects removed for static pills */

.server-pill--pulse {
    animation: pillPulse 0.4s ease;
}

@keyframes pillPulse {
    0% {
        box-shadow: var(--shadow-sm);
    }

    50% {
        box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
    }

    100% {
        box-shadow: var(--shadow-sm);
    }
}

.server-pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22C55E;
    flex-shrink: 0;
    position: relative;
}

.server-pill-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22C55E;
    animation: radarPulse 2s ease-out infinite;
}

@keyframes radarPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
    }
}

.server-pill-flag {
    display: flex;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.server-pill-city {
    font-weight: 500;
    color: var(--text-primary);
}

.server-pill-ping {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    color: var(--success);
    letter-spacing: 0.02em;
}

/* Features — static 3-column grid */
.ln-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding: 0 0 28px;
    width: 100%;
    animation: fadeIn 0.6s ease-out 0.2s both;
}

.ln-feat {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ln-feat:hover {
    border-color: rgba(99, 102, 241, 0.15);
    box-shadow: var(--shadow-card);
}

.ln-feat-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--primary-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
    margin-bottom: 16px;
}

.ln-feat h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.ln-feat p {
    font-size: 13px;
    line-height: 1.6;
    color: #4A4A52;
    margin: 0;
}

/* Server pills inside card */
.ln-feat-servers {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
    padding-top: 14px;
}

.server-pill-status {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    color: var(--success);
    letter-spacing: 0.02em;
}

/* Access section */
.ln-access {
    padding: 0 0 24px;
    animation: fadeIn 0.7s ease-out 0.3s both;
}

.ln-access-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.03) 100%);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-xl);
    padding: 32px 24px;
    text-align: center;
}

.ln-access-card h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.ln-access-desc {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 400px;
    margin: 0 auto 20px;
    line-height: 1.6;
}

.ln-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.ln-step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
}

.ln-step-n {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

.ln-step-arrow {
    color: var(--text-tertiary);
    font-size: 14px;
    flex-shrink: 0;
}

.ln-access-existing {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid rgba(99, 102, 241, 0.08);
    font-size: 13px;
    color: var(--text-tertiary);
}

.ln-link-tg {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    transition: color var(--transition-fast);
}

.ln-link-tg:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Footer */
.ln-footer {
    width: 100%;
    padding: 20px 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    border-top: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--text-tertiary);
}

.ln-footer a {
    color: var(--text-secondary);
    text-decoration: none;
}

.ln-footer a:hover {
    text-decoration: underline;
}

/* ===== Dashboard-specific ===== */
.dash-sub-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.dash-sub-meta {
    font-size: 13px;
    color: var(--text-tertiary);
}

.dash-traffic {
    display: flex;
    justify-content: space-around;
    padding: 14px 0;
    border-top: 1px solid var(--border-color);
    margin-top: 14px;
}

.dash-traffic-item {
    text-align: center;
}

.dash-traffic-label {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 4px;
}

.dash-traffic-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.tg-card {
    border-color: rgba(123, 108, 176, 0.15);
}

.tg-card-linked {
    border-color: rgba(42, 171, 238, 0.2);
    background: rgba(42, 171, 238, 0.04);
}

/* Telegram connected card (branded) */
.tg-linked-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    background: rgba(42, 171, 238, 0.05);
    border: 1px solid rgba(42, 171, 238, 0.15);
    border-radius: var(--radius-lg);
}

.tg-linked-card svg {
    flex-shrink: 0;
}

.tg-linked-card span {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.btn-tg {
    background: var(--primary-pale);
    border: 1px solid rgba(123, 108, 176, 0.2);
    color: var(--primary);
}

.btn-tg:hover {
    background: rgba(123, 108, 176, 0.12);
    border-color: var(--primary-light);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .ln-features {
        grid-template-columns: 1fr;
    }

    .ln-nav {
        display: none;
    }

    .ln-hero {
        padding: 32px 0 24px;
    }

    .ln-hero-eyebrow {
        display: none;
    }

    .ln-hero-title {
        font-size: 36px;
    }

    .ln-hero-sub {
        font-size: 13px;
        max-width: none;
    }

    .ln-steps {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
        max-width: 220px;
        margin-left: auto;
        margin-right: auto;
    }

    .ln-step {
        position: relative;
        padding: 10px 0;
    }

    /* Vertical connector between steps */
    .ln-step:not(:last-child)::after {
        content: '';
        position: absolute;
        left: 11px;
        top: calc(10px + 24px);
        bottom: 4px;
        width: 2px;
        background: var(--primary-light);
        opacity: 0.35;
        border-radius: 1px;
    }

    /* Small chevron arrow at connector end */
    .ln-step:not(:last-child)::before {
        content: '';
        position: absolute;
        left: 8px;
        bottom: 2px;
        width: 8px;
        height: 8px;
        border-right: 2px solid var(--primary-light);
        border-bottom: 2px solid var(--primary-light);
        transform: rotate(45deg);
        opacity: 0.35;
    }

    .ln-step-arrow {
        display: none;
    }

    .server-pill {
        padding: 8px 14px;
        font-size: 13px;
    }
}

@media (max-width: 520px) {
    .ln-nav-badge {
        display: none;
    }
}

@media (min-width: 768px) {
    #app-container {
        padding-top: 48px;
    }

    .particle-canvas {
        pointer-events: auto;
        cursor: default;
    }
}

.brand-base {
    display: inline-flex;
    align-items: center;
    text-transform: lowercase;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--text-primary);
    line-height: 1;
}

.brand-super {
    color: var(--primary);
    font-size: 0.45em;
    font-weight: 700;
    margin-left: 0;
    text-transform: lowercase;
    letter-spacing: 0;
    position: relative;
    top: -0.8em;
}

/* ===== Payment Section (Dashboard) ===== */
.pay-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.pay-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pay-period {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-pay {
    display: block;
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    background: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-btn);
}

.btn-pay:hover {
    background: var(--primary-hover);
    box-shadow: var(--shadow-btn-hover);
    transform: translateY(-1px);
}

.btn-pay:active {
    background: var(--primary-active);
    transform: translateY(0);
}

.btn-pay-alt {
    display: block;
    width: 100%;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all var(--transition-fast);
    background: var(--bg-primary);
    color: var(--text-primary);
}

.btn-pay-alt:hover {
    background: var(--primary-pale);
    border-color: var(--primary-light);
    color: var(--primary);
    transform: translateY(-1px);
}

.btn-pay-alt:active {
    background: var(--border-color);
    transform: translateY(0);
}

.pay-hint {
    text-align: center;
    font-size: 12px;
    color: var(--text-tertiary);
    margin: 0;
}

.spinner-small {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

/* ===== Onboarding (Dashboard) ===== */
.onboarding-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 4px;
}

.onboarding-step {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.onboarding-step-n {
    width: 26px;
    height: 26px;
    min-width: 26px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.onboarding-apps {
    display: flex;
    flex-direction: column;
}

.onboarding-install {
    text-align: center;
}

.onboarding-install-links {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.install-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    transition: all var(--transition-fast);
}

.install-link:hover {
    background: var(--primary-pale);
    border-color: var(--primary-light);
}

/* ===== Dashboard Premium Enhancements ===== */

/* Section headers with icons (matching landing .ln-feat-icon) */
.dash-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.dash-section-header h2,
.dash-section-header h3 {
    margin-bottom: 0;
}

.dash-section-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 10px;
    background: var(--primary-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
}

.dash-section-icon--success {
    background: var(--success-bg);
    color: var(--success);
}

/* Brand header with glow (dashboard/invite/error) */
.dash-brand {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.dash-brand-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(123, 108, 176, 0.08) 0%, rgba(123, 108, 176, 0.03) 50%, transparent 70%);
    filter: blur(30px);
    pointer-events: none;
    animation: glowPulse 6s ease-in-out infinite alternate;
}

/* Staggered card entrance */
.dash-card {
    animation: fadeIn 0.5s ease-out both;
}

/* Status dot with radar pulse (like server pills on landing) */
.status-dot--active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    animation: radarPulse 2s ease-out infinite;
}

/* Inline icon alignment in buttons and links */
.btn svg,
.install-link svg {
    vertical-align: -2px;
}

/* Device limit badge */
.device-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--primary-pale);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    margin-top: 12px;
}

.device-badge svg {
    flex-shrink: 0;
}

/* Invite status text alignment (matches .invite-copy-btn height) */
.invite-status {
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-tertiary);
    text-align: right;
}

