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

html { scroll-behavior: smooth; }

:root {
    --bg:      #05050f;
    --surface: rgba(255,255,255,0.04);
    --border:  rgba(255,255,255,0.08);
    --primary: #6366f1;
    --cyan:    #22d3ee;
    --purple:  #a855f7;
    --text:    #f1f5f9;
    --muted:   #64748b;
}

body {
    font-family: 'Heebo', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 2px; }

/* ===== FLOATING ORBS ===== */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
}
.orb-1 {
    width: 650px; height: 650px;
    background: radial-gradient(circle, rgba(99,102,241,0.35), transparent 70%);
    top: -200px; left: -150px;
    animation: float1 14s ease-in-out infinite;
}
.orb-2 {
    width: 520px; height: 520px;
    background: radial-gradient(circle, rgba(34,211,238,0.22), transparent 70%);
    bottom: -150px; right: -150px;
    animation: float2 18s ease-in-out infinite;
}
.orb-3 {
    width: 380px; height: 380px;
    background: radial-gradient(circle, rgba(168,85,247,0.18), transparent 70%);
    top: 45%; left: 45%;
    animation: float3 11s ease-in-out infinite;
}

@keyframes float1 {
    0%,100% { transform: translate(0,0) scale(1); }
    33%     { transform: translate(55px,40px) scale(1.08); }
    66%     { transform: translate(-30px,55px) scale(0.94); }
}
@keyframes float2 {
    0%,100% { transform: translate(0,0) scale(1); }
    40%     { transform: translate(-50px,-45px) scale(1.1); }
    70%     { transform: translate(30px,-20px) scale(0.92); }
}
@keyframes float3 {
    0%,100% { transform: translate(-50%,-50%) scale(1); }
    50%     { transform: translate(-50%,-50%) scale(1.25); }
}

/* Grid overlay */
.grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

/* ===== GLASS ===== */
.glass {
    background: var(--surface);
    border: 1px solid var(--border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

/* ===== GRADIENT TEXT ===== */
.gradient-text {
    background: linear-gradient(135deg, var(--cyan), var(--primary), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== GLOW BUTTON ===== */
.btn-glow {
    background: linear-gradient(135deg, var(--primary), var(--purple));
    color: white;
    position: relative;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}
.btn-glow::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: inherit;
    filter: blur(14px);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}
.btn-glow:hover::after { opacity: 0.55; }
.btn-glow:hover { transform: translateY(-2px); }

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0; width: 100%;
    z-index: 100;
    background: rgba(5,5,15,0.85);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

/* ===== SPLASH CONS ===== */
.con-item {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.con-item.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== FILTER BUTTONS ===== */
.filter-btn {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--muted);
    cursor: pointer;
    transition: all 0.2s;
}
.filter-btn:hover { border-color: var(--primary); color: var(--text); }
.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* ===== TEMPLATE CARDS ===== */
.template-card {
    background: var(--surface);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    animation: fadeInUp 0.4s ease both;
}
.template-card:hover {
    border-color: rgba(99,102,241,0.5);
    transform: translateY(-6px);
    box-shadow: 0 24px 50px rgba(0,0,0,0.5), 0 0 35px rgba(99,102,241,0.15);
}

/* ===== PLAN CARDS ===== */
.plan-card {
    background: var(--surface);
    border: 1px solid var(--border);
    transition: border-color 0.3s;
}
.plan-card:hover { border-color: rgba(99,102,241,0.4); }
.plan-card.featured {
    border-color: var(--primary);
    background: rgba(99,102,241,0.07);
}

/* ===== FAQ ===== */
.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    transition: border-color 0.2s;
}
.faq-item:hover { border-color: rgba(99,102,241,0.35); }
.faq-icon { transition: transform 0.3s; }
.faq-icon.open { transform: rotate(180deg); }

/* ===== ORDER PAGE ===== */
.plan-option {
    border: 1px solid var(--border);
    background: var(--surface);
    transition: all 0.2s;
    cursor: pointer;
}
.plan-option:hover { border-color: var(--primary); }
.plan-option.selected {
    border-color: var(--primary) !important;
    background: rgba(99,102,241,0.1);
}

.dark-input {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    color: var(--text);
    transition: all 0.2s;
}
.dark-input:focus {
    outline: none;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}
.dark-input::placeholder { color: var(--muted); }

/* ===== ADMIN ===== */
.nav-link { transition: all 0.2s; color: var(--muted); }
.nav-link:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-link.active { color: var(--primary); background: rgba(99,102,241,0.1); }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from { opacity:0; transform: translateY(18px); }
    to   { opacity:1; transform: translateY(0); }
}
@keyframes bounce {
    0%,100% { transform: translateX(-50%) translateY(0); }
    50%     { transform: translateX(-50%) translateY(8px); }
}
.bounce-arrow {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 1.8s ease-in-out infinite;
    color: var(--muted);
    z-index: 10;
}
