/* ========================= THEME ========================= */
:root {
    --bg: #0c0e14;
    --surface: #13161f;
    --surface-2: #1a1e2a;
    --border: rgba(99, 102, 241, 0.12);
    --border-hover: rgba(99, 102, 241, 0.3);
    --text: #e2e8f0;
    --text-muted: #64748b;
    --primary: #6366f1;
    --primary-dim: rgba(99, 102, 241, 0.15);
    --success: #22c55e;
    --success-dim: rgba(34, 197, 94, 0.12);
    --warning: #f59e0b;
    --warning-dim: rgba(245, 158, 11, 0.12);
    --error: #ef4444;
    --error-dim: rgba(239, 68, 68, 0.12);
    --info: #38bdf8;
    --mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 0.92rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--info); }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================= NAVBAR ========================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: rgba(12, 14, 20, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    z-index: 100;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--mono);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
}

.nav-brand .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.4);
    animation: dotPulse 2s ease infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.nav-brand .domain-ext {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 4px;
    align-items: center;
}

.nav-links a {
    display: block;
    padding: 6px 14px;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s;
}

.nav-links a:hover { color: var(--text); background: var(--primary-dim); }
.nav-links a.active { color: var(--primary); background: var(--primary-dim); }
.nav-links .nav-admin { color: var(--warning); font-size: 0.75rem; }
.nav-links .nav-admin:hover { background: var(--warning-dim); color: var(--warning); }
.nav-links .nav-admin i { margin-right: 2px; }

.nav-cta {
    padding: 6px 16px !important;
    background: var(--primary) !important;
    color: #fff !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 0.78rem !important;
}

.nav-cta:hover {
    filter: brightness(1.15);
    background: var(--primary) !important;
    color: #fff !important;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
}

/* ========================= BUTTONS ========================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 0.88rem;
    font-weight: 600;
    font-family: var(--sans);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    line-height: 1.4;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    filter: brightness(1.15);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
    color: #fff;
}

.btn-outline-light {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.btn-outline-light:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-dim);
}

.btn-sm { padding: 8px 18px; font-size: 0.78rem; }
.btn-full { width: 100%; justify-content: center; }
.btn-danger { background: var(--error); color: #fff; }
.btn-danger:hover { filter: brightness(1.15); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { filter: brightness(1.15); color: #fff; }

/* ========================= HERO ========================= */
.hero {
    padding: 140px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: 40%;
    left: 50%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 65%);
    transform: translate(-50%, -55%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: var(--primary-dim);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 20px;
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 28px;
    letter-spacing: 0.5px;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text) 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 540px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

/* ========================= SECTION ========================= */
.section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.section-heading {
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
}

.section-desc {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.88rem;
    max-width: 500px;
    margin: 0 auto 40px;
}

/* ========================= FEATURES ========================= */
.features {
    padding: 40px 0 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--primary-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ========================= STEPS ========================= */
.steps {
    padding: 40px 0 60px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
}

.steps-grid::before {
    content: '';
    position: absolute;
    top: 24px;
    left: calc(16.67% + 12px);
    right: calc(16.67% + 12px);
    height: 2px;
    background: var(--border);
}

.step-card {
    text-align: center;
    padding: 0 16px;
    position: relative;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mono);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 auto 20px;
    position: relative;
}

.step-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ========================= CTA ========================= */
.cta {
    padding: 40px 0 80px;
}

.cta-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 56px 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 60%);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.cta-box h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    position: relative;
}

.cta-box p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 28px;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.cta-box .btn { position: relative; }

/* ========================= STATS ROW ========================= */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px 20px;
}

.stat-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.stat-value {
    font-family: var(--mono);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text);
}

.stat-value.good { color: var(--success); }
.stat-value.warn { color: var(--warning); }
.stat-value.bad { color: var(--error); }

.stat-change {
    font-size: 0.72rem;
    margin-top: 4px;
    color: var(--text-muted);
}

/* ========================= DASHBOARD ========================= */
.dash-page {
    padding-top: 88px;
    min-height: 80vh;
}

.dash-login {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 65vh;
    padding: 40px 20px;
}

.login-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 36px;
    width: 100%;
    max-width: 400px;
}

.login-box h2 {
    font-size: 1.2rem;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-box h2 i {
    color: var(--primary);
}

.login-box .subtitle {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-family: var(--mono);
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s;
}

.form-input:focus { border-color: var(--primary); }
.form-input::placeholder { color: var(--text-muted); opacity: 0.5; }

.login-error {
    background: var(--error-dim);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.82rem;
    color: var(--error);
    margin-bottom: 16px;
    display: none;
}

.login-error.visible { display: block; }

.dash-content {
    display: none;
}

.dash-content.visible {
    display: block;
}

.dash-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.dash-left,
.dash-right {
    min-width: 0;
}


.app-license-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 12px;
}

.app-license-card:last-child {
    margin-bottom: 0;
}

.app-license-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.app-license-header i {
    color: var(--primary);
}

.app-license-header span {
    font-size: 0.92rem;
    font-weight: 600;
}

.app-license-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.app-license-meta .meta-item {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.app-license-meta .meta-item strong {
    display: block;
    font-family: var(--mono);
    font-size: 0.95rem;
    font-weight: 700;
    margin-top: 2px;
}

.app-license-meta .meta-item strong.good { color: var(--success); }
.app-license-meta .meta-item strong.bad { color: var(--error); }

.download-app-label {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    background: var(--surface-2);
    padding: 6px 12px;
    border-radius: 6px;
    margin-bottom: 8px;
    margin-top: 14px;
}

.download-app-label:first-child {
    margin-top: 0;
}

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

.dash-header h2 {
    font-size: 1.15rem;
    font-weight: 600;
}

.dash-header h2 span {
    color: var(--primary);
}

.dash-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.dash-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
}

.dash-card-title {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dash-card-title i { color: var(--primary); }

.license-tier {
    font-family: var(--mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: capitalize;
    margin-bottom: 12px;
}

.license-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.license-detail i {
    width: 16px;
    text-align: center;
    font-size: 0.72rem;
    color: var(--primary);
}

.license-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 12px;
}

.license-status.active { background: var(--success-dim); color: var(--success); }
.license-status.expired { background: var(--error-dim); color: var(--error); }
.license-status.lifetime { background: var(--primary-dim); color: var(--primary); }

.license-status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.download-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 8px;
    transition: border-color 0.2s;
}

.download-item:last-child { margin-bottom: 0; }
.download-item:hover { border-color: var(--border-hover); }

.download-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.download-info i {
    color: var(--primary);
    font-size: 1rem;
}

.download-name {
    font-size: 0.85rem;
    font-weight: 500;
}

.download-tier {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-family: var(--mono);
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--primary-dim);
    color: var(--primary);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--sans);
}

.download-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.download-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.download-btn:disabled:hover {
    background: var(--primary-dim);
    color: var(--primary);
    border-color: rgba(99, 102, 241, 0.2);
}

.dash-empty {
    text-align: center;
    padding: 32px 16px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.dash-empty i {
    font-size: 1.5rem;
    opacity: 0.3;
    display: block;
    margin-bottom: 10px;
}

/* ========================= ANNOUNCEMENTS ========================= */
.announcement {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 12px;
    border: 1px solid;
    font-size: 0.85rem;
    line-height: 1.5;
}
.announcement-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.announcement-body { flex: 1; }
.announcement-body strong { display: block; margin-bottom: 2px; font-size: 0.88rem; }
.announcement-body p { margin: 0; opacity: 0.85; font-size: 0.82rem; }
.announcement-info {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.25);
    color: var(--primary);
}
.announcement-warning {
    background: var(--warning-dim);
    border-color: rgba(234, 179, 8, 0.25);
    color: var(--warning);
}
.announcement-success {
    background: var(--success-dim);
    border-color: rgba(34, 197, 94, 0.25);
    color: var(--success);
}
.announcement-error {
    background: var(--error-dim);
    border-color: rgba(239, 68, 68, 0.25);
    color: var(--error);
}

/* ========================= DISCORD PROFILE CARD ========================= */
.discord-profile-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 12px; overflow: hidden; margin-bottom: 20px;
}
.discord-banner {
    height: 100px; background: linear-gradient(135deg, #5865F2 0%, var(--primary) 100%);
    background-size: cover; background-position: center;
}
.discord-profile-body {
    display: flex; align-items: center; gap: 14px;
    padding: 0 20px 16px; margin-top: -32px; flex-wrap: wrap;
}
.discord-avatar {
    width: 64px; height: 64px; border-radius: 50%;
    border: 4px solid var(--surface); background: var(--bg);
    object-fit: cover; flex-shrink: 0;
}
.discord-info { flex: 1; min-width: 0; padding-top: 36px; }
.discord-display-name {
    font-size: 1rem; font-weight: 700; color: var(--text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.discord-username {
    font-size: 0.78rem; color: var(--text-muted); font-family: var(--mono);
}
.discord-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 12px; border-radius: 20px; font-size: 0.72rem;
    font-weight: 600; background: rgba(88, 101, 242, 0.15);
    color: #5865F2; margin-top: 36px; flex-shrink: 0;
}
.discord-not-linked {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 20px; margin-bottom: 20px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 10px; font-size: 0.82rem; color: var(--text-muted);
}
.discord-not-linked i { font-size: 1.2rem; color: #5865F2; flex-shrink: 0; }
.discord-not-linked code {
    background: var(--bg); padding: 2px 6px; border-radius: 4px;
    font-family: var(--mono); font-size: 0.78rem; color: var(--primary);
}

/* ========================= DISCORD GATE ========================= */
.discord-gate {
    text-align: center; padding: 64px 24px; margin-bottom: 24px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 14px;
}
.discord-gate-icon {
    width: 80px; height: 80px; margin: 0 auto 24px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; font-size: 2.2rem;
    background: rgba(88, 101, 242, 0.15); color: #5865F2;
}
.discord-gate h2 {
    font-size: 1.4rem; margin-bottom: 12px; color: var(--text);
}
.discord-gate > p {
    color: var(--text-muted); font-size: 0.88rem; max-width: 440px;
    margin: 0 auto 28px; line-height: 1.6;
}
.discord-gate-steps {
    display: flex; flex-direction: column; gap: 12px;
    max-width: 340px; margin: 0 auto 28px;
}
.discord-gate-step {
    display: flex; align-items: center; gap: 14px; text-align: left;
    padding: 10px 16px; background: var(--bg); border-radius: 8px;
    font-size: 0.85rem; color: var(--text);
}
.discord-gate-step .step-num {
    width: 28px; height: 28px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; font-weight: 700; font-size: 0.78rem;
    background: var(--primary-dim); color: var(--primary);
}
.discord-gate-step code {
    background: var(--surface-2); padding: 2px 6px; border-radius: 4px;
    font-family: var(--mono); font-size: 0.78rem; color: var(--primary);
}
.discord-gate-hint {
    color: var(--text-muted); font-size: 0.78rem; font-style: italic;
}

/* ========================= AUTH PAGE ========================= */
.auth-icon {
    width: 64px; height: 64px; margin: 0 auto 16px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; font-size: 1.6rem;
    background: var(--primary-dim); color: var(--primary);
}
.auth-icon-success { background: var(--success-dim); color: var(--success); }
.auth-icon-error { background: var(--error-dim); color: var(--error); }

.auth-info {
    background: var(--surface-2); border-radius: 10px;
    padding: 14px 18px; margin: 16px 0; text-align: left;
}
.auth-info-row {
    display: flex; align-items: center; gap: 10px;
    font-size: 0.82rem; color: var(--text-muted); padding: 4px 0;
}
.auth-info-row i { width: 16px; text-align: center; color: var(--primary); }
.auth-info-row strong { color: var(--text); }

.auth-perms {
    text-align: left; margin: 16px 0 0;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 10px; padding: 14px 18px;
}
.auth-perm {
    display: flex; align-items: center; gap: 10px;
    font-size: 0.8rem; color: var(--text-muted); padding: 5px 0;
}
.auth-perm i { color: var(--success); font-size: 0.75rem; }

/* ========================= ERROR PAGE ========================= */
.error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 75vh;
    text-align: center;
    padding: 40px 20px;
}

.error-code {
    font-family: var(--mono);
    font-size: clamp(4rem, 12vw, 7rem);
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
    opacity: 0.8;
}

.error-msg {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.error-detail {
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--text-muted);
    opacity: 0.4;
    margin-bottom: 32px;
}

/* ========================= STATUS BADGES ========================= */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.operational { background: var(--success-dim); color: var(--success); }
.status-badge.degraded { background: var(--warning-dim); color: var(--warning); }
.status-badge.down { background: var(--error-dim); color: var(--error); }
.status-badge.maintenance { background: var(--primary-dim); color: var(--primary); }

.status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

/* ========================= FOOTER ========================= */
.site-footer {
    margin-top: 0;
    padding: 28px 24px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 0.8rem;
    color: var(--text-muted);
}

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

.footer-copy {
    font-size: 0.72rem;
    color: var(--text-muted);
    opacity: 0.6;
}

/* ========================= PRELOADER ========================= */
.dash-preloader {
    position: fixed;
    inset: 0;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.4s ease;
}

.dash-preloader.loaded { opacity: 0; pointer-events: none; }

.loader-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loader-text {
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ========================= SCROLL REVEAL ========================= */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================= TOAST ========================= */
.toast-container {
    position: fixed;
    top: 72px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 360px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.82rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    animation: toastIn 0.3s ease;
    border: 1px solid;
}

.toast-error { background: var(--error-dim); border-color: rgba(239, 68, 68, 0.3); color: var(--error); }
.toast-success { background: var(--success-dim); border-color: rgba(34, 197, 94, 0.3); color: var(--success); }
.toast-out { animation: toastOut 0.3s ease forwards; }

@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(40px); } }

/* ========================= RESPONSIVE ========================= */
@media (max-width: 900px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .navbar { padding: 0 16px; }

    .nav-toggle { display: block; }

    .nav-links {
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        background: rgba(12, 14, 20, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 16px;
        gap: 4px;
        border-bottom: 1px solid var(--border);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links a {
        padding: 10px 16px;
        font-size: 0.88rem;
    }

    .hero { padding: 110px 0 60px; }
    .hero h1 { letter-spacing: -1px; }

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

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .steps-grid::before { display: none; }

    .dash-grid { grid-template-columns: 1fr; }
    .dash-layout { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-actions .btn { width: 100%; max-width: 280px; }
    .nav-brand span:not(.dot):not(.domain-ext) { display: none; }
}
