:root {
  --primary: #7c3aed;
  --primary-dark: #6d28d9;
  --bg: #0f0f1a;
  --bg-card: #1a1a2e;
  --bg-dark: #0a0a14;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --border: #2d2d4e;
  --success: #22c55e;
  --error: #ef4444;
  --warning: #f59e0b;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font-family: 'Segoe UI', system-ui, sans-serif; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Nav */
.navbar { background: var(--bg-card); border-bottom: 1px solid var(--border); padding: 16px 0; position: sticky; top: 0; z-index: 100; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 1.4rem; font-weight: 800; color: var(--primary); }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: var(--text-muted); text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--text); }

/* Hero */
.hero { padding: 100px 0 80px; text-align: center; background: radial-gradient(ellipse at center, #1a0a3e 0%, var(--bg) 70%); }
.hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; line-height: 1.2; margin-bottom: 20px; }
.highlight { color: var(--primary); }
.hero-sub { color: var(--text-muted); font-size: 1.2rem; margin-bottom: 36px; }

/* Buttons */
.btn { display: inline-block; padding: 12px 24px; border-radius: 8px; border: none; cursor: pointer; font-size: 1rem; font-weight: 600; text-decoration: none; transition: all .2s; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-lg { padding: 16px 40px; font-size: 1.1rem; }
.btn-danger { background: var(--error); color: white; }
.w-full { width: 100%; }

/* Sections */
.section { padding: 80px 0; }
.bg-dark { background: var(--bg-dark); }
.section-title { text-align: center; font-size: 2rem; font-weight: 800; margin-bottom: 48px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.step { text-align: center; }
.step-num { width: 56px; height: 56px; border-radius: 50%; background: var(--primary); color: white; font-size: 1.5rem; font-weight: 900; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--text-muted); }

/* Plans */
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.plan-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 28px; transition: border-color .2s, transform .2s; }
.plan-card:hover { border-color: var(--primary); transform: translateY(-4px); }
.plan-card.unavailable { opacity: .5; pointer-events: none; }
.plan-badge { display: inline-block; background: var(--primary); color: white; font-size: .75rem; padding: 4px 10px; border-radius: 20px; margin-bottom: 12px; }
.plan-badge.sold-out { background: var(--error); }
.plan-name { font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; }
.plan-price { font-size: 2rem; font-weight: 900; color: var(--primary); margin-bottom: 16px; }
.plan-price span { font-size: 1rem; color: var(--text-muted); font-weight: 400; }
.plan-features { list-style: none; margin-bottom: 24px; }
.plan-features li { padding: 6px 0; color: var(--text-muted); font-size: .95rem; }
.plan-features li::before { content: "✓ "; color: var(--success); font-weight: 700; }

/* Modal */
.modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.7); z-index: 200; align-items: center; justify-content: center; }
.modal.active { display: flex; }
.modal-content { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 32px; width: 100%; max-width: 420px; position: relative; }
.modal-close { position: absolute; top: 16px; right: 16px; background: none; border: none; color: var(--text-muted); font-size: 1.2rem; cursor: pointer; }
.modal-content h3 { margin-bottom: 20px; font-size: 1.3rem; }

/* Tabs */
.tabs { display: flex; gap: 8px; margin-bottom: 24px; }
.tab { flex: 1; padding: 10px; background: none; border: 1px solid var(--border); border-radius: 8px; color: var(--text-muted); cursor: pointer; font-size: 1rem; }
.tab.active { background: var(--primary); border-color: var(--primary); color: white; }

/* Inputs */
.input { width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 12px 16px; color: var(--text); font-size: 1rem; margin-bottom: 12px; outline: none; }
.input:focus { border-color: var(--primary); }
.hint { color: var(--text-muted); font-size: .85rem; margin-bottom: 16px; }

/* Messages */
.error-msg { color: var(--error); font-size: .9rem; margin-top: 12px; min-height: 20px; }
.loading { color: var(--text-muted); text-align: center; padding: 40px; }

/* Dashboard */
.dashboard { padding: 40px 0; }
.dashboard-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.server-list { display: grid; gap: 16px; }
.server-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 20px; display: flex; justify-content: space-between; align-items: center; }
.server-info h3 { margin-bottom: 4px; }
.server-info p { color: var(--text-muted); font-size: .9rem; }
.status-badge { padding: 4px 12px; border-radius: 20px; font-size: .8rem; font-weight: 600; }
.status-active { background: #16a34a22; color: var(--success); border: 1px solid var(--success); }
.status-suspended { background: #d9770622; color: var(--warning); border: 1px solid var(--warning); }
.status-pending { background: #3b82f622; color: #60a5fa; border: 1px solid #3b82f6; }

/* Admin */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 40px; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 20px; text-align: center; }
.stat-value { font-size: 2rem; font-weight: 900; color: var(--primary); }
.stat-label { color: var(--text-muted); font-size: .9rem; }

/* Table */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: .9rem; }
th { color: var(--text-muted); font-weight: 600; }
tr:hover td { background: #ffffff05; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 32px 0; text-align: center; color: var(--text-muted); }
