/* ========================================================
   NexAI SMM Panel — Cyberpunk AI Holographic Theme
   Unique dark neon + glass + 3D + neural aesthetic.
   ======================================================== */

:root {
  --bg-0: #05060f;
  --bg-1: #0a0b1a;
  --bg-2: #10122a;
  --bg-3: #171a3a;
  --surface: rgba(20, 22, 48, 0.55);
  --surface-2: rgba(30, 33, 68, 0.55);
  --border: rgba(120, 130, 255, 0.15);
  --border-strong: rgba(120, 130, 255, 0.35);
  --neon-cyan: #00f0ff;
  --neon-purple: #a855f7;
  --neon-magenta: #ff2ec4;
  --neon-green: #39ff88;
  --neon-yellow: #ffe066;
  --neon-red: #ff4d6d;
  --text: #e6e9ff;
  --text-dim: #98a0c9;
  --text-mute: #6771a3;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-glow: 0 0 30px rgba(0, 240, 255, 0.15), 0 0 60px rgba(168, 85, 247, 0.10);
  --shadow-card: 0 8px 32px rgba(2, 4, 20, 0.55), inset 0 0 0 1px rgba(120, 130, 255, 0.10);
  --grad-primary: linear-gradient(135deg, #00f0ff 0%, #a855f7 55%, #ff2ec4 100%);
  --grad-primary-soft: linear-gradient(135deg, rgba(0,240,255,0.20) 0%, rgba(168,85,247,0.20) 55%, rgba(255,46,196,0.20) 100%);
  --grad-cyan: linear-gradient(135deg, #00f0ff 0%, #4ea6ff 100%);
  --grad-purple: linear-gradient(135deg, #a855f7 0%, #ff2ec4 100%);
  --font: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Menlo', monospace;
}

[data-theme="holographic"] {
  --neon-cyan: #7cf9ff;
  --neon-purple: #c084fc;
  --neon-magenta: #ff7ad9;
  --grad-primary: linear-gradient(135deg, #7cf9ff 0%, #c084fc 55%, #ff7ad9 100%);
}

[data-theme="neural"] {
  --bg-0: #060a10;
  --bg-1: #0b1420;
  --neon-cyan: #39ff88;
  --neon-purple: #00d4ff;
  --neon-magenta: #ffe066;
  --grad-primary: linear-gradient(135deg, #39ff88 0%, #00d4ff 55%, #ffe066 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-font-smoothing: antialiased; }
html, body { min-height: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background: radial-gradient(1200px 800px at 10% -10%, rgba(168, 85, 247, 0.12), transparent 60%),
              radial-gradient(1000px 700px at 100% 0%, rgba(0, 240, 255, 0.12), transparent 60%),
              radial-gradient(900px 700px at 50% 120%, rgba(255, 46, 196, 0.10), transparent 60%),
              var(--bg-0);
  overflow-x: hidden;
  min-height: 100vh;
}

/* Grid background pattern */
.grid-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(120, 130, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 130, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 90%);
}

/* Floating orbs */
.orb { position: fixed; z-index: 0; width: 500px; height: 500px; border-radius: 50%; filter: blur(120px); opacity: 0.35; pointer-events: none; animation: orb-float 20s ease-in-out infinite; }
.orb-1 { background: var(--neon-cyan); top: -150px; left: -150px; }
.orb-2 { background: var(--neon-purple); bottom: -200px; right: -150px; animation-delay: -10s; }
@keyframes orb-float { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(60px, 40px) scale(1.1); } }

/* ============ Layout ============ */
.panel { display: flex; min-height: 100vh; position: relative; z-index: 1; }

.sidebar {
  width: 260px; flex-shrink: 0;
  background: linear-gradient(180deg, rgba(10, 11, 26, 0.85) 0%, rgba(5, 6, 15, 0.95) 100%);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--border);
  padding: 22px 14px;
  display: flex; flex-direction: column; gap: 20px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  z-index: 20;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }

.brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 10px; border-bottom: 1px solid var(--border); }
.brand-logo { width: 44px; height: 44px; position: relative; display: grid; place-items: center; }
.logo-hex {
  width: 40px; height: 40px; display: block; position: relative;
  background: var(--grad-primary);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.6));
  animation: pulse-hex 3s ease-in-out infinite;
}
.brand-logo.admin-logo .logo-hex { background: linear-gradient(135deg, #ff2ec4, #a855f7, #00f0ff); }
@keyframes pulse-hex { 0%,100% { transform: rotate(0deg) scale(1); filter: drop-shadow(0 0 10px rgba(0,240,255,0.6)); } 50% { transform: rotate(30deg) scale(1.08); filter: drop-shadow(0 0 18px rgba(168,85,247,0.7)); } }
.brand-name { font-weight: 700; font-size: 15px; letter-spacing: 0.5px; display: flex; flex-direction: column; }
.brand-name small { font-weight: 400; font-size: 10px; color: var(--text-mute); letter-spacing: 1px; text-transform: uppercase; }

.nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px;
  border-radius: 12px; color: var(--text-dim); text-decoration: none;
  font-size: 14px; font-weight: 500; position: relative; transition: all .25s ease;
  border: 1px solid transparent;
}
.nav-item i { width: 18px; height: 18px; }
.nav-item:hover { color: var(--text); background: rgba(120, 130, 255, 0.06); }
.nav-item.active {
  color: #fff; background: var(--grad-primary-soft);
  border-color: var(--border-strong);
  box-shadow: inset 0 0 20px rgba(0, 240, 255, 0.10);
}
.nav-item.active::before {
  content: ''; position: absolute; left: -14px; top: 20%; bottom: 20%; width: 3px;
  background: var(--grad-primary); border-radius: 3px; box-shadow: 0 0 12px var(--neon-cyan);
}

.sidebar-footer { padding-top: 12px; border-top: 1px solid var(--border); }

/* Main */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  height: 68px; padding: 0 26px; display: flex; align-items: center; gap: 16px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(10, 11, 26, 0.65), rgba(10, 11, 26, 0.35));
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  position: sticky; top: 0; z-index: 15;
}
.topbar-title { font-weight: 600; font-size: 18px; letter-spacing: 0.3px; }
.topbar-title::before { content: '◈'; color: var(--neon-cyan); margin-right: 8px; text-shadow: 0 0 10px var(--neon-cyan); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.balance-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px;
  border-radius: 999px; background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25); color: var(--neon-cyan);
  font-weight: 600; font-size: 14px; box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
}
.balance-pill i { width: 16px; height: 16px; }

.user-chip { display: flex; align-items: center; gap: 10px; padding: 6px 10px 6px 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--grad-primary); display: grid; place-items: center; font-weight: 700; color: #05060f; font-size: 14px; box-shadow: 0 0 12px rgba(0,240,255,0.35); }
.avatar.admin-avatar { background: linear-gradient(135deg, #ff2ec4, #a855f7); color: #fff; }
.user-name { font-size: 13px; display: flex; flex-direction: column; line-height: 1.1; }
.user-name small { color: var(--text-mute); font-size: 11px; }

.hamburger { display: none; width: 36px; height: 36px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; flex-direction: column; justify-content: center; align-items: center; gap: 4px; cursor: pointer; padding: 0; }
.hamburger span { display: block; width: 18px; height: 2px; background: var(--neon-cyan); border-radius: 2px; box-shadow: 0 0 6px var(--neon-cyan); }

.content { padding: 26px; flex: 1; }

/* ============ Cards ============ */
.card {
  background: var(--surface); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: var(--shadow-card);
  position: relative; overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s ease, border-color .35s ease;
}
.card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--grad-primary);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .3s ease;
  pointer-events: none;
}
.card:hover::before { opacity: 0.6; }
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,240,255,0.10), var(--shadow-card); }
.card-title { font-size: 13px; font-weight: 600; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.card-title i { width: 15px; height: 15px; color: var(--neon-cyan); }

/* Stat cards grid */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-bottom: 24px; }
.stat-card { position: relative; padding: 20px; }
.stat-card .stat-value { font-size: 30px; font-weight: 800; letter-spacing: -0.5px; background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; color: transparent; margin-top: 6px; font-family: var(--font-mono); }
.stat-card .stat-icon { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-primary-soft); border: 1px solid var(--border-strong); }
.stat-card .stat-icon i { color: var(--neon-cyan); width: 22px; height: 22px; }
.stat-card .stat-delta { font-size: 12px; color: var(--neon-green); font-weight: 500; margin-top: 6px; }
.stat-card .stat-delta.neg { color: var(--neon-red); }

/* Flash */
.flash { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface); margin-bottom: 16px; font-size: 14px; }
.flash i { width: 18px; height: 18px; }
.flash-success { color: var(--neon-green); border-color: rgba(57,255,136,0.3); background: rgba(57,255,136,0.06); }
.flash-danger  { color: var(--neon-red); border-color: rgba(255,77,109,0.35); background: rgba(255,77,109,0.06); }
.flash-warning { color: var(--neon-yellow); border-color: rgba(255,224,102,0.35); background: rgba(255,224,102,0.06); }
.flash-info    { color: var(--neon-cyan); border-color: rgba(0,240,255,0.3); background: rgba(0,240,255,0.06); }

/* ============ Forms ============ */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 12px; font-weight: 600; color: var(--text-dim); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.8px; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  background: rgba(5, 6, 15, 0.7); color: var(--text);
  border: 1px solid var(--border); font-size: 14px; font-family: inherit;
  transition: all .25s ease;
}
.form-textarea { min-height: 100px; resize: vertical; }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--neon-cyan);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.15), 0 0 20px rgba(0, 240, 255, 0.1);
  background: rgba(5, 6, 15, 0.9);
}
.form-input::placeholder { color: var(--text-mute); }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2300f0ff'%3E%3Cpath d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 36px; }
.form-help { font-size: 12px; color: var(--text-mute); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.checkbox { display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 13px; color: var(--text-dim); }
.checkbox input { appearance: none; width: 18px; height: 18px; border-radius: 5px; border: 1px solid var(--border-strong); background: rgba(5,6,15,0.6); cursor: pointer; flex-shrink: 0; margin-top: 1px; position: relative; transition: all .2s ease; }
.checkbox input:checked { background: var(--grad-primary); border-color: var(--neon-cyan); box-shadow: 0 0 10px rgba(0,240,255,0.5); }
.checkbox input:checked::after { content: '✓'; position: absolute; inset: 0; display: grid; place-items: center; color: #05060f; font-weight: 900; font-size: 12px; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 12px; font-weight: 600; font-size: 14px;
  border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--text); cursor: pointer; text-decoration: none;
  transition: all .25s ease; font-family: inherit; position: relative; overflow: hidden;
}
.btn i { width: 16px; height: 16px; }
.btn:hover { border-color: var(--neon-cyan); color: var(--neon-cyan); box-shadow: 0 0 20px rgba(0,240,255,0.15); transform: translateY(-1px); }
.btn-primary {
  background: var(--grad-primary); color: #05060f; border-color: transparent;
  box-shadow: 0 0 22px rgba(0,240,255,0.35), 0 0 44px rgba(168,85,247,0.20);
}
.btn-primary:hover { color: #05060f; filter: brightness(1.1); box-shadow: 0 0 30px rgba(0,240,255,0.55), 0 0 60px rgba(168,85,247,0.30); transform: translateY(-2px); }
.btn-ghost { background: transparent; border-color: var(--border); }
.btn-danger { background: rgba(255,77,109,0.15); border-color: rgba(255,77,109,0.4); color: var(--neon-red); }
.btn-success { background: rgba(57,255,136,0.15); border-color: rgba(57,255,136,0.4); color: var(--neon-green); }
.btn-sm { padding: 7px 12px; font-size: 12px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ============ Tables ============ */
.table-wrap { border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: hidden; background: var(--surface); }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 12px 14px; text-align: left; font-size: 13px; border-bottom: 1px solid var(--border); }
.table th { color: var(--text-dim); font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px; font-size: 11px; background: rgba(10,11,26,0.5); }
.table tr:hover td { background: rgba(120,130,255,0.04); }
.table tr:last-child td { border-bottom: none; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; border: 1px solid transparent; }
.badge-success { color: var(--neon-green); background: rgba(57,255,136,0.12); border-color: rgba(57,255,136,0.30); }
.badge-progress { color: var(--neon-cyan); background: rgba(0,240,255,0.10); border-color: rgba(0,240,255,0.30); }
.badge-pending { color: var(--neon-yellow); background: rgba(255,224,102,0.10); border-color: rgba(255,224,102,0.30); }
.badge-warn { color: #ffb84a; background: rgba(255,184,74,0.10); border-color: rgba(255,184,74,0.30); }
.badge-danger { color: var(--neon-red); background: rgba(255,77,109,0.10); border-color: rgba(255,77,109,0.30); }
.badge-info { color: #99b8ff; background: rgba(153,184,255,0.10); border-color: rgba(153,184,255,0.30); }

/* ============ Auth pages ============ */
.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 30px 16px; position: relative; z-index: 1; }
.auth-card { width: 100%; max-width: 460px; padding: 34px 30px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); box-shadow: var(--shadow-glow), 0 25px 70px rgba(0,0,0,0.6); position: relative; }
.auth-card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--grad-primary);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.auth-logo { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 18px; }
.auth-title { font-size: 22px; font-weight: 700; text-align: center; margin-bottom: 4px; }
.auth-title span { background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-subtitle { text-align: center; color: var(--text-dim); font-size: 13px; margin-bottom: 24px; }
.auth-link { color: var(--neon-cyan); text-decoration: none; font-weight: 500; }
.auth-link:hover { text-shadow: 0 0 8px var(--neon-cyan); }
.auth-divider { display: flex; align-items: center; gap: 10px; color: var(--text-mute); font-size: 12px; margin: 20px 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* Category pills */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 13px; color: var(--text-dim); cursor: pointer; transition: all .2s ease; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.chip i { width: 14px; height: 14px; }
.chip.active { background: var(--grad-primary-soft); border-color: var(--border-strong); color: #fff; }
.chip:hover { color: var(--text); border-color: var(--border-strong); }

/* Service item */
.service-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); margin-bottom: 10px; transition: all .25s ease; }
.service-item:hover { border-color: var(--border-strong); transform: translateX(3px); }
.service-id { min-width: 44px; text-align: center; padding: 6px 8px; border-radius: 8px; background: rgba(0,240,255,0.08); color: var(--neon-cyan); font-family: var(--font-mono); font-size: 12px; font-weight: 600; }
.service-name { font-weight: 500; font-size: 14px; }
.service-meta { color: var(--text-mute); font-size: 12px; margin-top: 3px; }
.service-price { font-weight: 700; color: var(--neon-green); font-size: 14px; text-align: right; }

/* Empty state */
.empty { padding: 60px 20px; text-align: center; color: var(--text-dim); }
.empty i { width: 48px; height: 48px; opacity: 0.4; margin-bottom: 12px; }
.empty h4 { margin-bottom: 6px; color: var(--text); }

/* Order code */
.mono { font-family: var(--font-mono); }
code.inline { padding: 3px 8px; background: rgba(0,0,0,0.35); border: 1px solid var(--border); border-radius: 6px; font-family: var(--font-mono); color: var(--neon-cyan); font-size: 12px; }

/* Payment method grid */
.pm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.pm-card { padding: 20px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); text-align: center; cursor: pointer; text-decoration: none; color: var(--text); transition: all .25s ease; position: relative; }
.pm-card:hover { border-color: var(--border-strong); transform: translateY(-3px); box-shadow: 0 0 25px rgba(0,240,255,0.15); }
.pm-card i { width: 32px; height: 32px; color: var(--neon-cyan); margin-bottom: 10px; }
.pm-card .pm-name { font-weight: 600; font-size: 14px; margin-bottom: 3px; }
.pm-card .pm-desc { color: var(--text-mute); font-size: 11px; }

/* Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; overflow-x: auto; }
.tab { padding: 10px 16px; background: transparent; border: none; color: var(--text-dim); font-size: 13px; font-weight: 500; cursor: pointer; border-bottom: 2px solid transparent; transition: all .2s ease; white-space: nowrap; }
.tab.active { color: var(--neon-cyan); border-bottom-color: var(--neon-cyan); text-shadow: 0 0 8px var(--neon-cyan); }

/* Chart holder */
.chart-box { padding: 20px; min-height: 320px; }

/* Announcements banner */
.announce { padding: 16px 20px; border-radius: 14px; background: linear-gradient(90deg, rgba(0,240,255,0.10), rgba(168,85,247,0.10)); border: 1px solid var(--border-strong); margin-bottom: 20px; display: flex; gap: 14px; align-items: center; }
.announce i { color: var(--neon-cyan); width: 22px; height: 22px; }

/* Section header */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 12px; }
.section-header h2 { font-size: 18px; font-weight: 700; }
.section-header .actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* Small utility */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.text-muted { color: var(--text-mute); }
.text-dim { color: var(--text-dim); }
.text-neon { color: var(--neon-cyan); }
.text-green { color: var(--neon-green); }
.text-red { color: var(--neon-red); }
.text-purple { color: var(--neon-purple); }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 6px; } .mb-2 { margin-bottom: 12px; } .mb-3 { margin-bottom: 20px; }
.mt-2 { margin-top: 12px; } .mt-3 { margin-top: 20px; }
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; } .gap-2 { gap: 10px; } .gap-3 { gap: 16px; }
.w-full { width: 100%; }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(2,4,15,0.72); backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-backdrop.open { display: flex; }
.modal { max-width: 520px; width: 100%; background: var(--bg-1); border: 1px solid var(--border-strong); border-radius: 20px; padding: 22px; position: relative; box-shadow: var(--shadow-glow); }
.modal-close { position: absolute; top: 14px; right: 14px; background: none; border: none; color: var(--text-dim); cursor: pointer; }

/* Terms textarea */
.terms { padding: 12px; background: rgba(5,6,15,0.55); border: 1px solid var(--border); border-radius: 10px; font-size: 12px; color: var(--text-dim); max-height: 100px; overflow-y: auto; margin-bottom: 10px; }

/* Responsive */
@media (max-width: 960px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .sidebar { position: fixed; left: -280px; top: 0; transition: left .3s ease; box-shadow: 0 0 30px rgba(0,0,0,0.5); }
  .sidebar.open { left: 0; }
  .hamburger { display: inline-flex; }
  .content { padding: 18px; }
  .topbar { padding: 0 16px; }
  .balance-pill { display: none; }
  .user-name { display: none; }
}

/* Code preview */
.code-block { padding: 16px; border-radius: 12px; background: #030410; border: 1px solid var(--border); font-family: var(--font-mono); color: #b0f5ff; font-size: 12px; line-height: 1.7; overflow-x: auto; white-space: pre; }

/* Ticket chat */
.chat { display: flex; flex-direction: column; gap: 12px; }
.chat .msg { max-width: 78%; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); font-size: 14px; }
.chat .msg.me { align-self: flex-end; background: var(--grad-primary-soft); border-color: var(--border-strong); }
.chat .msg .meta { font-size: 11px; color: var(--text-mute); margin-bottom: 4px; }

/* Install wizard */
.wizard { max-width: 640px; margin: 40px auto; padding: 30px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 20px; box-shadow: var(--shadow-glow); }
.wizard h1 { font-size: 24px; margin-bottom: 6px; }
.wizard h1 span { background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step-list { display: flex; gap: 10px; margin: 20px 0; }
.step-list .step { flex: 1; padding: 10px; text-align: center; border-radius: 10px; border: 1px solid var(--border); font-size: 12px; color: var(--text-mute); }
.step-list .step.active { color: var(--neon-cyan); border-color: var(--border-strong); background: var(--grad-primary-soft); }
