@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=Space+Mono:wght@400;700&display=swap');

:root {
  --primary: #6c47ff;
  --primary-light: #8b6bff;
  --primary-dark: #4f2ee8;
  --accent: #00e5ff;
  --accent2: #ff6b35;
  --success: #00d68f;
  --warning: #ffb800;
  --danger: #ff3d71;
  --dark: #0a0a1a;
  --dark2: #10102a;
  --dark3: #181836;
  --card: #14142e;
  --card2: #1c1c40;
  --border: rgba(108,71,255,0.18);
  --text: #e0e0ff;
  --text-muted: #8888bb;
  --sidebar-w: 260px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 8px 32px rgba(108,71,255,0.18);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.35);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Sora', sans-serif;
  background: var(--dark);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--primary-light); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark2); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ─── SIDEBAR ─── */
.sidebar {
  position: fixed; top: 0; left: 0;
  width: var(--sidebar-w); height: 100vh;
  background: var(--dark2);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  z-index: 100;
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
}

.sidebar-logo {
  padding: 28px 24px 20px;
  border-bottom: 1px solid var(--border);
}
.sidebar-logo .logo-mark {
  display: flex; align-items: center; gap: 10px;
}
.logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800; color: #fff;
  box-shadow: 0 4px 16px rgba(108,71,255,0.4);
}
.logo-text { font-size: 20px; font-weight: 800; letter-spacing: -0.5px; }
.logo-text span { color: var(--accent); }

.sidebar-user {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
}
.user-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px; color: #fff;
  border: 2px solid var(--primary-light);
  flex-shrink: 0;
}
.user-info .name { font-size: 13px; font-weight: 600; }
.user-info .level {
  font-size: 11px; color: var(--warning);
  display: flex; align-items: center; gap: 4px; margin-top: 2px;
}

.sidebar-nav { padding: 16px 0; flex: 1; }
.nav-section-label {
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--text-muted);
  padding: 12px 24px 6px;
}
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 24px; font-size: 13.5px; font-weight: 500;
  color: var(--text-muted); cursor: pointer;
  border-left: 3px solid transparent;
  transition: all .2s;
}
.nav-item:hover { color: var(--text); background: rgba(108,71,255,0.08); }
.nav-item.active {
  color: var(--primary-light); background: rgba(108,71,255,0.12);
  border-left-color: var(--primary);
}
.nav-item .nav-icon { font-size: 17px; width: 20px; text-align: center; }
.nav-badge {
  margin-left: auto; background: var(--primary); color: #fff;
  font-size: 10px; font-weight: 700; padding: 2px 7px;
  border-radius: 20px; font-family: 'Space Mono', monospace;
}

/* ─── MAIN WRAPPER ─── */
.main-wrapper {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex; flex-direction: column;
}

/* ─── TOPBAR ─── */
.topbar {
  position: sticky; top: 0; z-index: 90;
  background: rgba(10,10,26,0.85);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  padding: 14px 32px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.topbar-left { display: flex; align-items: center; gap: 12px; }
.hamburger {
  display: none; background: none; border: none;
  color: var(--text); font-size: 22px; cursor: pointer;
}
.page-title { font-size: 18px; font-weight: 700; }

.topbar-right { display: flex; align-items: center; gap: 16px; }
.topbar-balance {
  background: var(--card2); border: 1px solid var(--border);
  padding: 8px 16px; border-radius: var(--radius-sm);
  font-size: 13px; display: flex; align-items: center; gap: 8px;
}
.topbar-balance .bal-label { color: var(--text-muted); font-size: 11px; }
.topbar-balance .bal-amount { font-weight: 700; color: var(--success); font-family: 'Space Mono', monospace; }

.topbar-icon-btn {
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  background: var(--card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; cursor: pointer; transition: all .2s; position: relative;
}
.topbar-icon-btn:hover { background: var(--card2); border-color: var(--primary); }
.notif-dot {
  position: absolute; top: 6px; right: 6px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--danger);
  border: 2px solid var(--dark);
}

/* ─── CONTENT ─── */
.content { padding: 32px; flex: 1; }

/* ─── STATS CARDS ─── */
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px; margin-bottom: 28px;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  position: relative; overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.stat-card::before {
  content: ''; position: absolute;
  top: -30px; right: -30px;
  width: 90px; height: 90px; border-radius: 50%;
  opacity: 0.12;
}
.stat-card.violet::before { background: var(--primary); }
.stat-card.cyan::before { background: var(--accent); }
.stat-card.green::before { background: var(--success); }
.stat-card.orange::before { background: var(--accent2); }
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.stat-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 16px;
}
.stat-card.violet .stat-icon { background: rgba(108,71,255,0.18); }
.stat-card.cyan .stat-icon { background: rgba(0,229,255,0.12); }
.stat-card.green .stat-icon { background: rgba(0,214,143,0.12); }
.stat-card.orange .stat-icon { background: rgba(255,107,53,0.12); }

.stat-label { font-size: 12px; color: var(--text-muted); font-weight: 500; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-value { font-size: 26px; font-weight: 800; font-family: 'Space Mono', monospace; }
.stat-card.violet .stat-value { color: var(--primary-light); }
.stat-card.cyan .stat-value { color: var(--accent); }
.stat-card.green .stat-value { color: var(--success); }
.stat-card.orange .stat-value { color: var(--accent2); }
.stat-change { font-size: 12px; margin-top: 6px; display: flex; align-items: center; gap: 4px; }
.stat-change.up { color: var(--success); }
.stat-change.down { color: var(--danger); }

/* ─── GRID LAYOUTS ─── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 28px; }
.grid-3-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; margin-bottom: 28px; }

/* ─── CARD ─── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.card-title { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.card-title .icon { font-size: 17px; }
.card-body { padding: 24px; }
.card-link { font-size: 12px; color: var(--primary-light); font-weight: 600; }

/* ─── TASK CARDS ─── */
.task-list { display: flex; flex-direction: column; gap: 12px; }
.task-item {
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  display: flex; align-items: center; gap: 14px;
  transition: all .2s; cursor: pointer;
}
.task-item:hover { border-color: var(--primary); transform: translateX(4px); }

.task-thumb {
  width: 46px; height: 46px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.task-thumb.normal { background: rgba(108,71,255,0.15); }
.task-thumb.selected { background: rgba(255,184,0,0.15); }

.task-info { flex: 1; min-width: 0; }
.task-name { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task-meta { font-size: 11.5px; color: var(--text-muted); margin-top: 3px; }

.task-right { text-align: right; flex-shrink: 0; }
.task-price { font-size: 15px; font-weight: 800; font-family: 'Space Mono', monospace; color: var(--success); }
.task-commission {
  font-size: 11px; margin-top: 3px; font-weight: 600;
  padding: 2px 8px; border-radius: 20px; display: inline-block;
}
.task-commission.normal-comm { background: rgba(108,71,255,0.15); color: var(--primary-light); }
.task-commission.selected-comm { background: rgba(255,184,0,0.15); color: var(--warning); }

.task-badge {
  font-size: 10px; font-weight: 700; padding: 3px 8px;
  border-radius: 20px; text-transform: uppercase; letter-spacing: 0.5px;
}
.task-badge.selected-badge { background: rgba(255,184,0,0.2); color: var(--warning); border: 1px solid rgba(255,184,0,0.3); }
.task-badge.normal-badge { background: rgba(108,71,255,0.2); color: var(--primary-light); border: 1px solid rgba(108,71,255,0.3); }

/* ─── MEMBERSHIP TIERS ─── */
.membership-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.mem-card {
  background: var(--card2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; text-align: center;
  position: relative; transition: all .3s;
}
.mem-card.active-mem {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), var(--shadow);
}
.mem-card.active-mem::after {
  content: 'CURRENT';
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff;
  font-size: 9px; font-weight: 700; letter-spacing: 1px;
  padding: 3px 10px; border-radius: 20px;
}
.mem-icon { font-size: 32px; margin-bottom: 10px; }
.mem-name { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.mem-commission { font-size: 22px; font-weight: 800; color: var(--primary-light); font-family: 'Space Mono', monospace; }
.mem-comm-label { font-size: 11px; color: var(--text-muted); }
.mem-tasks { font-size: 12px; color: var(--text-muted); margin-top: 8px; }

/* ─── TABLE ─── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.8px; color: var(--text-muted);
  padding: 12px 16px; text-align: left;
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
td {
  padding: 14px 16px; font-size: 13px;
  border-bottom: 1px solid rgba(108,71,255,0.07);
  vertical-align: middle;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(108,71,255,0.04); }

.status-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600; padding: 4px 10px;
  border-radius: 20px; text-transform: capitalize;
}
.status-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; }
.status-completed { background: rgba(0,214,143,0.12); color: var(--success); }
.status-completed::before { background: var(--success); }
.status-pending { background: rgba(255,184,0,0.12); color: var(--warning); }
.status-pending::before { background: var(--warning); }
.status-rejected { background: rgba(255,61,113,0.12); color: var(--danger); }
.status-rejected::before { background: var(--danger); }

/* ─── CHART BARS ─── */
.chart-bars { display: flex; align-items: flex-end; gap: 8px; height: 140px; padding: 0 4px; }
.bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bar {
  width: 100%; border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  transition: height .5s cubic-bezier(.4,0,.2,1);
  position: relative; cursor: pointer;
}
.bar:hover { background: linear-gradient(180deg, var(--accent), var(--primary)); }
.bar-label { font-size: 10px; color: var(--text-muted); font-family: 'Space Mono', monospace; }

/* ─── REFERRAL ─── */
.referral-box {
  background: linear-gradient(135deg, rgba(108,71,255,0.15), rgba(0,229,255,0.08));
  border: 1px solid rgba(108,71,255,0.3); border-radius: var(--radius);
  padding: 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.ref-link-wrap { flex: 1; min-width: 200px; }
.ref-link {
  background: var(--dark2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 14px; font-size: 12px; font-family: 'Space Mono', monospace;
  color: var(--accent); display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.ref-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600; font-family: 'Sora', sans-serif;
  cursor: pointer; border: none; transition: all .2s; text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; box-shadow: 0 4px 16px rgba(108,71,255,0.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(108,71,255,0.5); color: #fff; }
.btn-outline {
  background: transparent; color: var(--primary-light);
  border: 1px solid rgba(108,71,255,0.4);
}
.btn-outline:hover { background: rgba(108,71,255,0.1); }
.btn-success { background: linear-gradient(135deg, var(--success), #00b87a); color: #fff; }
.btn-sm { padding: 7px 14px; font-size: 12px; }
.btn-icon { width: 32px; height: 32px; padding: 0; justify-content: center; border-radius: var(--radius-sm); background: var(--card2); border: 1px solid var(--border); color: var(--text-muted); font-size: 14px; }
.btn-icon:hover { border-color: var(--primary); color: var(--primary-light); }

/* ─── PROGRESS ─── */
.progress-bar-wrap { background: var(--dark2); border-radius: 20px; height: 8px; overflow: hidden; }
.progress-bar { height: 100%; border-radius: 20px; background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width .6s ease; }

/* ─── FORM ELEMENTS ─── */
.form-group { margin-bottom: 18px; }
.form-label { font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; display: block; text-transform: uppercase; letter-spacing: 0.5px; }
.form-input {
  width: 100%; padding: 11px 14px;
  background: var(--dark2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  font-family: 'Sora', sans-serif; font-size: 13.5px;
  transition: border-color .2s;
}
.form-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(108,71,255,0.15); }
.form-input::placeholder { color: var(--text-muted); }
.input-group { position: relative; }
.input-prefix {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: 13px;
}
.input-group .form-input { padding-left: 30px; }

/* ─── ALERTS ─── */
.alert {
  padding: 14px 18px; border-radius: var(--radius-sm);
  font-size: 13px; display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 20px;
}
.alert-info { background: rgba(0,229,255,0.08); border: 1px solid rgba(0,229,255,0.2); color: var(--accent); }
.alert-success { background: rgba(0,214,143,0.08); border: 1px solid rgba(0,214,143,0.2); color: var(--success); }
.alert-warning { background: rgba(255,184,0,0.08); border: 1px solid rgba(255,184,0,0.2); color: var(--warning); }

/* ─── PAGE SPECIFIC ─── */
.page-section { display: none; }
.page-section.active { display: block; }

/* ─── QUICK ACTIONS ─── */
.quick-actions { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 28px; }
.qa-btn {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 14px; text-align: center;
  cursor: pointer; transition: all .2s;
}
.qa-btn:hover { border-color: var(--primary); background: var(--card2); transform: translateY(-2px); }
.qa-icon { font-size: 24px; margin-bottom: 8px; }
.qa-label { font-size: 12px; font-weight: 600; color: var(--text-muted); }

/* ─── NOTIFICATION ITEM ─── */
.notif-item {
  display: flex; gap: 12px; padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.notif-item:last-child { border-bottom: none; }
.notif-dot-icon {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.notif-text { font-size: 13px; line-height: 1.5; }
.notif-time { font-size: 11px; color: var(--text-muted); margin-top: 3px; }

/* ─── PILL TABS ─── */
.pill-tabs { display: flex; gap: 6px; background: var(--dark2); padding: 6px; border-radius: 10px; margin-bottom: 20px; width: fit-content; }
.pill-tab { padding: 7px 18px; border-radius: 7px; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: all .2s; color: var(--text-muted); }
.pill-tab.active { background: var(--primary); color: #fff; box-shadow: 0 4px 14px rgba(108,71,255,0.35); }

/* ─── EARNING HISTORY AMOUNT ─── */
.earn-amount { font-family: 'Space Mono', monospace; font-weight: 700; }
.earn-amount.credit { color: var(--success); }
.earn-amount.debit { color: var(--danger); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3-1 { grid-template-columns: 1fr; }
  .quick-actions { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  :root { --sidebar-w: 260px; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-wrapper { margin-left: 0; }
  .hamburger { display: flex; }
  .content { padding: 20px 16px; }
  .topbar { padding: 12px 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .membership-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .quick-actions { grid-template-columns: repeat(2,1fr); }
}

/* ─── OVERLAY ─── */
.sidebar-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  z-index: 99; backdrop-filter: blur(2px);
}
.sidebar-overlay.open { display: block; }

/* ─── LANDING PAGE ─── */
body.landing-page { background: var(--dark); }
.landing-nav {
  padding: 20px 48px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border); background: rgba(10,10,26,0.9);
  backdrop-filter: blur(20px); position: sticky; top: 0; z-index: 100;
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--text-muted); }
.nav-links a:hover { color: var(--text); }
.nav-auth { display: flex; gap: 10px; align-items: center; }

.hero {
  padding: 100px 48px 80px; text-align: center;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(108,71,255,0.25) 0%, transparent 70%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%236c47ff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(108,71,255,0.15); border: 1px solid rgba(108,71,255,0.3);
  padding: 7px 16px; border-radius: 20px; font-size: 13px; font-weight: 600;
  color: var(--primary-light); margin-bottom: 28px;
}
.hero h1 { font-size: clamp(36px, 6vw, 68px); font-weight: 800; line-height: 1.1; margin-bottom: 20px; letter-spacing: -1.5px; }
.hero h1 .highlight { color: var(--primary-light); position: relative; }
.hero h1 .highlight::after { content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 2px; }
.hero p { font-size: 18px; color: var(--text-muted); max-width: 580px; margin: 0 auto 40px; line-height: 1.7; }
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-lg { padding: 14px 32px; font-size: 15px; border-radius: 12px; }

.hero-stats { display: flex; gap: 48px; justify-content: center; margin-top: 64px; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat .h-val { font-size: 36px; font-weight: 800; font-family: 'Space Mono', monospace; color: var(--primary-light); }
.hero-stat .h-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

.section { padding: 80px 48px; }
.section-title { font-size: 36px; font-weight: 800; text-align: center; margin-bottom: 12px; letter-spacing: -0.5px; }
.section-sub { font-size: 16px; color: var(--text-muted); text-align: center; max-width: 520px; margin: 0 auto 52px; line-height: 1.7; }

.features-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.feature-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: all .3s;
}
.feature-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon { font-size: 36px; margin-bottom: 16px; }
.feature-title { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.feature-desc { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

.plans-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.plan-card {
  background: var(--card); border: 2px solid var(--border);
  border-radius: var(--radius); padding: 32px;
  text-align: center; transition: all .3s; position: relative;
}
.plan-card.popular {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), var(--shadow);
}
.plan-popular-tag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff; font-size: 11px; font-weight: 700;
  padding: 4px 14px; border-radius: 20px; letter-spacing: 1px;
}
.plan-icon { font-size: 42px; margin-bottom: 16px; }
.plan-name { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.plan-price { font-size: 42px; font-weight: 800; font-family: 'Space Mono', monospace; color: var(--primary-light); margin: 16px 0 4px; }
.plan-period { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }
.plan-features { list-style: none; margin-bottom: 28px; text-align: left; }
.plan-features li { font-size: 13.5px; padding: 8px 0; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; color: var(--text-muted); }
.plan-features li:last-child { border-bottom: none; }
.plan-features li .check { color: var(--success); font-size: 15px; }

.footer { background: var(--dark2); border-top: 1px solid var(--border); padding: 60px 48px 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand p { font-size: 14px; color: var(--text-muted); margin-top: 12px; line-height: 1.7; max-width: 260px; }
.footer-col h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; color: var(--text); }
.footer-col a { display: block; font-size: 13.5px; color: var(--text-muted); margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: var(--primary-light); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--text-muted); }

/* ─── AUTH PAGE ─── */
.auth-wrapper {
  min-height: 100vh; display: flex;
  background: var(--dark);
}
.auth-left {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 48px;
  background: radial-gradient(ellipse 70% 80% at 30% 50%, rgba(108,71,255,0.2) 0%, transparent 70%);
}
.auth-right {
  width: 480px; flex-shrink: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex; align-items: center; justify-content: center;
  padding: 48px;
  position: relative;
}
.auth-right::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,10,26,0.3), rgba(15,15,35,0.4));
  pointer-events: none;
  z-index: 1;
}
.auth-branding { max-width: 440px; }
.auth-branding h2 { font-size: clamp(28px, 4vw, 46px); font-weight: 800; line-height: 1.2; margin: 24px 0 16px; letter-spacing: -1px; }
.auth-branding p { font-size: 16px; color: var(--text-muted); line-height: 1.7; }
.auth-perks { margin-top: 36px; display: flex; flex-direction: column; gap: 14px; }
.perk { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.perk-icon { width: 32px; height: 32px; border-radius: 8px; background: rgba(108,71,255,0.15); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }

.auth-form-wrap {
  width: 100%;
  position: relative;
  z-index: 2;
  background: rgba(20,20,46,0.3);
  border: 1px solid rgba(108,71,255,0.3);
  border-radius: 20px;
  padding: 40px;
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1),
              0 8px 32px rgba(0,0,0,0.3),
              0 0 0 1px rgba(108,71,255,0.15);
  transition: all 0.3s ease;
}
.auth-form-wrap:hover {
  border-color: rgba(108,71,255,0.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15),
              0 12px 40px rgba(108,71,255,0.15),
              0 0 0 1px rgba(108,71,255,0.2);
}
.auth-form-wrap h3 { 
  font-size: 28px; 
  font-weight: 800; 
  margin-bottom: 8px; 
  background: linear-gradient(135deg, #fff, var(--primary-light)); 
  -webkit-background-clip: text; 
  background-clip: text; 
  -webkit-text-fill-color: transparent; 
}

.auth-form-wrap h3 { font-size: 28px; font-weight: 800; margin-bottom: 8px; background: linear-gradient(135deg, #fff, var(--primary-light)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.auth-form-wrap p { font-size: 14px; color: var(--text-muted); margin-bottom: 32px; }
.divider { display: flex; align-items: center; gap: 12px; margin: 28px 0 24px; color: var(--text-muted); font-size: 12px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent); }

/* Auth Form Specific Styles */
.auth-form-wrap .form-group { margin-bottom: 20px; }
.auth-form-wrap .form-label { font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.auth-form-wrap .form-input {
  width: 100%;
  padding: 13px 16px;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(108,71,255,0.2);
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  transition: all 0.3s ease;
}
.auth-form-wrap .form-input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 0 4px rgba(108,71,255,0.2),
              inset 0 1px 2px rgba(0,0,0,0.1);
}
.auth-form-wrap .form-input::placeholder { color: rgba(255,255,255,0.4); }

.auth-form-wrap .btn-primary {
  width: 100%;
  padding: 14px 20px;
  margin-top: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(108,71,255,0.4);
}
.auth-form-wrap .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(108,71,255,0.6);
}
.auth-form-wrap .btn-primary:active {
  transform: translateY(0);
}

.auth-form-wrap .btn-outline {
  flex: 1;
  padding: 12px 16px;
  background: rgba(108,71,255,0.08);
  border: 1.5px solid rgba(108,71,255,0.25);
  color: var(--primary-light);
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
}
.auth-form-wrap .btn-outline:hover {
  background: rgba(108,71,255,0.15);
  border-color: var(--primary-light);
}

@media (max-width: 900px) {
  .auth-left { display: none; }
  .auth-right { width: 100%; }
  .landing-nav { padding: 16px 20px; }
  .nav-links { display: none; }
  .hero { padding: 64px 20px 48px; }
  .section { padding: 60px 20px; }
  .features-grid, .plans-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
