/* ===================================================
   ALFA TECH GROUP — Main Stylesheet
   =================================================== */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

/* Google Fonts loaded via HTML <link> for performance — see layouts */

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
    color: var(--text-primary);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }

p { color: var(--text-secondary); margin-bottom: 1rem; }

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}
a:hover { color: var(--accent-hover); }

img { max-width: 100%; height: auto; }

/* --- Layout --- */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-sm { max-width: 900px; }
.container-xs { max-width: 640px; }

.section {
    padding: 5rem 0;
}
.section-sm { padding: 3rem 0; }
.section-lg { padding: 8rem 0; }

/* --- Grid --- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.flex { display: flex; gap: 1rem; }
.flex-center { align-items: center; justify-content: center; }
.flex-between { align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: var(--bg-nav);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    height: 68px;
    transition: var(--transition-slow);
}
.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    flex-shrink: 0;
}
.navbar-logo svg { width: 36px; height: 36px; }
.navbar-logo-text {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--accent);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}
.navbar-menu a {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-nav);
    transition: var(--transition);
    white-space: nowrap;
}
.navbar-menu a:hover,
.navbar-menu a.active {
    background: var(--accent-glow);
    color: var(--accent);
}

.navbar-menu .protected-link {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.navbar-menu .protected-link::before {
    content: '🔒';
    font-size: 0.7rem;
    opacity: 0.6;
}

/* ── Nav submenu (Extra dropdown) ──────────────────────────────────────── */
.has-dropdown { position: relative; }

.nav-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-nav);
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    line-height: 1;
}
.nav-dropdown-btn:hover,
.nav-dropdown-btn.active,
.has-dropdown.open .nav-dropdown-btn {
    background: var(--accent-glow);
    color: var(--accent);
}
.nav-dropdown-btn svg.chevron {
    transition: transform 0.2s ease;
}
.has-dropdown.open .nav-dropdown-btn svg.chevron {
    transform: rotate(180deg);
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.4rem;
    min-width: 160px;
    box-shadow: var(--shadow-lg);
    list-style: none;
    display: none;
    z-index: 500;
}
.nav-dropdown.open { display: block; }

.nav-dropdown li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}
.nav-dropdown li a:hover { background: var(--accent-glow); color: var(--accent); }
.nav-dropdown li a .lock-icon { font-size: 0.65rem; opacity: 0.55; }

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* ── Navbar action controls — shared height ───────────────────────────── */
/* All controls in .navbar-actions share a fixed height so they align. */
:root { --navbar-btn-h: 36px; }

.navbar-actions .lang-picker-btn,
.navbar-actions .theme-picker-btn,
.navbar-actions .btn {
    height: var(--navbar-btn-h);
    box-sizing: border-box;
    padding-top: 0;
    padding-bottom: 0;
    display: inline-flex;
    align-items: center;
}

/* Language picker */
.lang-picker {
    position: relative;
}
.lang-picker-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}
.lang-picker-btn:hover { border-color: var(--accent); color: var(--accent); }
.lang-picker-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.5rem;
    min-width: 160px;
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 200;
}
.lang-picker-dropdown.open { display: block; }
.lang-picker-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: var(--transition);
}
.lang-picker-dropdown a:hover { background: var(--accent-glow); color: var(--accent); }
.lang-picker-dropdown a.active { color: var(--accent); font-weight: 600; }

/* Theme picker — dropdown (replaces modal) */
.theme-picker { position: relative; }

.theme-picker-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0 0.6rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.85rem;
}
.theme-picker-btn:hover { border-color: var(--accent); color: var(--accent); }

.theme-picker-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.4rem;
    min-width: 150px;
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 300;
}
.theme-picker-dropdown.open { display: block; }

.theme-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.7rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}
.theme-item:hover  { background: var(--accent-glow); color: var(--accent); }
.theme-item.active { color: var(--accent); font-weight: 600; }

/* Swatch sizes */
.swatch {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
    display: inline-block;
}
.swatch-btn {
    width: 16px; height: 16px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    flex-shrink: 0;
    display: inline-block;
}
.swatch-sm {
    width: 13px; height: 13px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    flex-shrink: 0;
    display: inline-block;
}
.swatch-dark,      .swatch-btn.swatch-dark,      .swatch-sm.swatch-dark      { background: linear-gradient(135deg, #0a0b0f, #00d4ff); }
.swatch-light,     .swatch-btn.swatch-light,     .swatch-sm.swatch-light     { background: linear-gradient(135deg, #f8f9fc, #0066cc); }
.swatch-red-black, .swatch-btn.swatch-red-black, .swatch-sm.swatch-red-black { background: linear-gradient(135deg, #0a0000, #ff2233); }
.swatch-funny,     .swatch-btn.swatch-funny,     .swatch-sm.swatch-funny     { background: linear-gradient(135deg, #0d0d2b, #ff6ec7); }
.swatch-tech,      .swatch-btn.swatch-tech,      .swatch-sm.swatch-tech      { background: linear-gradient(135deg, #000000, #00ff41); }
.swatch-custom,    .swatch-btn.swatch-custom,    .swatch-sm.swatch-custom    { background: conic-gradient(red, yellow, green, blue, red); }

/* Custom color pickers */
.custom-colors { display: none; }
.custom-colors.show { display: block; }
.color-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.color-row label { flex: 1; }
.color-row input[type="color"] {
    width: 40px;
    height: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: none;
    cursor: pointer;
    padding: 0;
}

/* Legacy modal (kept for backwards compat, not actively shown) */
.theme-modal { display: none !important; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Main content offset for fixed navbar --- */
main { padding-top: 68px; }

/* --- Hero Section --- */
.hero {
    display: flex;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

/* Override section-lg padding on hero to match other page top spacing */
.hero.section-lg {
    padding-top: 2rem;
    padding-bottom: 5rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 40%, rgba(var(--accent-rgb), 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 20% 80%, rgba(var(--accent-rgb), 0.04) 0%, transparent 60%);
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(var(--accent-rgb), 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--accent-rgb), 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.6) 0%, transparent 75%);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: var(--accent-glow);
    border: 1px solid rgba(var(--accent-rgb), 0.3);
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}
.hero-title .highlight {
    background: linear-gradient(135deg, var(--accent), var(--accent2, #7c3aed));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 540px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    white-space: nowrap;
    text-decoration: none;
    line-height: 1;
}

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

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-accent);
}
.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-glow);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: none;
}
.btn-ghost:hover { color: var(--text-primary); }

.btn-danger {
    background: var(--danger);
    color: #fff;
}
.btn-danger:hover { opacity: 0.85; }

.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.05rem; border-radius: var(--radius-lg); }
.btn-full { width: 100%; }

/* --- Cards --- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
}
.card:hover {
    border-color: var(--border-accent);
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-icon {
    width: 52px; height: 52px;
    background: var(--accent-glow);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(var(--accent-rgb), 0.2);
}

/* --- Stats --- */
.stats-bar {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 2.5rem 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}
.stat-value {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.4rem;
}
.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* --- Section headers --- */
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}
.section-header .eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 0.75rem;
}
.section-header h2 { margin-bottom: 1rem; }
.section-header p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* --- Hosting plans --- */
.plan-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.plan-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.plan-card.popular {
    border-color: var(--accent);
    background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
                linear-gradient(135deg, var(--accent), var(--accent2, #7c3aed)) border-box;
    border: 2px solid transparent;
}
.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent), var(--accent2, #7c3aed));
    color: #000;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    white-space: nowrap;
}
.plan-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.plan-price {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.25rem;
}
.plan-price .currency { font-size: 1.2rem; vertical-align: top; margin-top: 0.3rem; display: inline-block; }
.plan-price .period { font-size: 1rem; color: var(--text-muted); font-weight: 400; }
.plan-features {
    list-style: none;
    margin: 1.5rem 0;
    flex: 1;
}
.plan-features li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}
.plan-features li:last-child { border: none; }
.plan-features .check { color: var(--success); flex-shrink: 0; }
.plan-features .cross { color: var(--text-muted); flex-shrink: 0; }

/* --- Forms --- */
.form-group { margin-bottom: 1.25rem; }
.form-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}
.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
    appearance: none;
}
.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
}
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { min-height: 140px; resize: vertical; }
select.form-control { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238892b0' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.form-error { font-size: 0.8rem; color: var(--danger); margin-top: 0.35rem; }

/* --- Login / Auth pages --- */
.auth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}
.auth-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 70% at 50% 50%, rgba(var(--accent-rgb), 0.05) 0%, transparent 70%);
}
.auth-card {
    position: relative;
    z-index: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 3rem;
    width: min(460px, 100%);
    box-shadow: var(--shadow-lg);
}
.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}
.auth-logo svg { width: 56px; height: 56px; }
.auth-logo-name {
    font-size: 1.5rem;
    font-weight: 800;
    margin-top: 0.75rem;
    letter-spacing: -0.02em;
}
.auth-logo-name span { color: var(--accent); }
.auth-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-align: center;
}
.auth-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}
.alert {
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}
.alert-danger { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: #fca5a5; }
.alert-success { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.3); color: #6ee7b7; }
.alert-info { background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.3); color: #93c5fd; }

/* --- Maintenance page --- */
.maintenance-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    background: var(--bg-primary);
}
.maintenance-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 100% 80% at 50% 50%, rgba(var(--accent-rgb), 0.04) 0%, transparent 70%);
}
.maintenance-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(var(--accent-rgb), 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--accent-rgb), 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}
.maintenance-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 680px;
}
.maintenance-logo { margin-bottom: 2rem; }
.maintenance-logo svg { width: 72px; height: 72px; }
.maintenance-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}
.maintenance-subtitle {
    font-size: 1.1rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1.5rem;
}
.maintenance-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.7;
}
.maintenance-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: rgba(var(--accent-rgb), 0.08);
    border: 1px solid rgba(var(--accent-rgb), 0.2);
    border-radius: var(--radius-md);
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
    margin-top: 2rem;
}
.maintenance-login-btn:hover {
    background: rgba(var(--accent-rgb), 0.15);
    color: var(--accent);
}

/* Animated dots */
.maintenance-dots { display: flex; gap: 0.5rem; justify-content: center; margin-bottom: 2rem; }
.maintenance-dots span {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse-dot 1.4s ease-in-out infinite;
}
.maintenance-dots span:nth-child(2) { animation-delay: 0.2s; }
.maintenance-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes pulse-dot {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

/* Countdown */
.countdown {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.countdown-item { text-align: center; }
.countdown-val {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
    font-variant-numeric: tabular-nums;
    min-width: 3ch;
    display: block;
}
.countdown-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 0.25rem;
}
.countdown-sep {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--border-accent);
    padding-top: 0.1rem;
    align-self: flex-start;
}

/* --- Footer --- */
.footer {
    background: var(--bg-footer);
    border-top: 1px solid var(--border);
    padding: 4rem 0 2rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-brand p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 1rem 0;
}
.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul a {
    font-size: 0.88rem;
    color: var(--text-secondary);
    transition: var(--transition);
}
.footer-col ul a:hover { color: var(--accent); }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a {
    width: 34px; height: 34px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition);
}
.footer-social a:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-glow);
}

/* --- Admin panel --- */
.admin-layout {
    display: flex;
    min-height: 100vh;
    padding-top: 68px;
}
.admin-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    padding: 1.5rem 0;
    position: fixed;
    top: 68px;
    bottom: 0;
    left: 0;
    overflow-y: auto;
    z-index: 100;
}
.admin-sidebar-nav { list-style: none; padding: 0 0.75rem; }
.admin-sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}
.admin-sidebar-nav li a:hover,
.admin-sidebar-nav li a.active {
    background: var(--accent-glow);
    color: var(--accent);
}
.admin-sidebar-nav .nav-icon { font-size: 1rem; }
.admin-main {
    flex: 1;
    margin-left: 260px;
    padding: 2rem;
    background: var(--bg-primary);
}
.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.25rem; margin-bottom: 2rem; }
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}
.stat-card-val {
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.4rem;
}
.stat-card-label { font-size: 0.82rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.data-table th, .data-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.data-table th {
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}
.data-table tr:hover td { background: var(--bg-tertiary); }
.badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.badge-success { background: rgba(16,185,129,0.15); color: var(--success); }
.badge-danger  { background: rgba(239,68,68,0.15);  color: var(--danger); }
.badge-warning { background: rgba(245,158,11,0.15); color: var(--warning); }
.badge-info    { background: rgba(59,130,246,0.15);  color: var(--info); }

/* Chart container */
.chart-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.chart-title { font-size: 0.9rem; font-weight: 700; margin-bottom: 1.25rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.08em; }

/* --- Breadcrumbs --- */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { opacity: 0.5; }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--border-accent); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* --- Animations --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0); }
    50%       { box-shadow: 0 0 20px 4px rgba(var(--accent-rgb), 0.2); }
}

.animate-fadeInUp { animation: fadeInUp 0.6s ease forwards; }
.animate-fadeIn   { animation: fadeIn 0.4s ease forwards; }

[data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].revealed { opacity: 1; transform: none; }

/* Staggered children */
[data-stagger] > * { transition-delay: calc(var(--i, 0) * 0.1s); }

/* Tech theme matrix animation */
[data-theme="tech"] body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 65, 0.01) 2px,
        rgba(0, 255, 65, 0.01) 4px
    );
    pointer-events: none;
    z-index: 9999;
}

/* --- Utilities --- */
.text-accent  { color: var(--accent); }
.text-muted   { color: var(--text-muted); }
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-sm      { font-size: 0.85rem; }
.text-xs      { font-size: 0.75rem; }
.text-lg      { font-size: 1.1rem; }
.font-mono    { font-family: 'JetBrains Mono', monospace; }
.font-bold    { font-weight: 700; }
.font-black   { font-weight: 900; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.p-0 { padding: 0; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Divider */
.divider { height: 1px; background: var(--border); margin: 2rem 0; }

/* Tag / chip */
.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
}
.tag.tag-accent { background: var(--accent-glow); border-color: rgba(var(--accent-rgb), 0.3); color: var(--accent); }

/* Tooltip */
[title] { position: relative; }
