/* ─────────────────────────────────────────────────────────
   ANARYX PAY — STYLESHEET
   Font: Lato (clean, readable) + Space Mono (code/mono)
───────────────────────────────────────────────────────── */

:root {
  --bg:          #0a0e17;
  --bg2:         #0d1220;
  --bg3:         #111827;
  --bg4:         #1a2235;
  --border:      rgba(255,255,255,0.07);
  --border2:     rgba(255,255,255,0.12);
  --accent:      #00d68f;
  --accent2:     #00b87a;
  --accent-dim:  rgba(0,214,143,0.12);
  --amber:       #f59e0b;
  --red:         #ef4444;
  --blue:        #3b82f6;
  --purple:      #8b5cf6;
  --teal:        #14b8a6;
  --text:        #e2e8f0;
  --text2:       rgba(226,232,240,0.60);
  --text3:       rgba(226,232,240,0.35);
  --text4:       rgba(226,232,240,0.18);
  --shadow:      0 4px 24px rgba(0,0,0,0.4);
  --radius:      12px;
  --font:        'Lato', sans-serif;
  --font-mono:   'Space Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--bg4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent2); }

/* ══════════════════════════════════════════════════════════
   NAV
══════════════════════════════════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(10,14,23,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
nav.scrolled {
  background: rgba(10,14,23,0.97);
  border-bottom-color: var(--border2);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center;
  padding: 0 32px; height: 64px; gap: 32px;
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.logo-mark {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
  animation: logoPulse 2.4s ease-in-out infinite;
}
@keyframes logoPulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.4); opacity: 0.7; }
}
.logo-text {
  font-family: var(--font);
  font-size: 17px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.3px;
}
.logo-text strong {
  font-weight: 900;
  color: var(--accent);
}

.nav-links {
  display: flex; align-items: center; gap: 8px;
  list-style: none; margin-left: auto;
}
.nav-links a {
  color: var(--text2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  padding: 6px 12px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.05); }

.nav-btn-outline {
  border: 1px solid var(--border2) !important;
  color: var(--text) !important;
}
.nav-btn-outline:hover { border-color: var(--accent) !important; color: var(--accent) !important; background: var(--accent-dim) !important; }

.nav-btn-primary {
  background: var(--accent) !important;
  color: #000 !important;
  font-weight: 700 !important;
  padding: 7px 18px !important;
  border-radius: 8px !important;
}
.nav-btn-primary:hover { background: var(--accent2) !important; transform: translateY(-1px); }

.nav-hamburger {
  display: none;
  background: none; border: none; color: var(--text);
  font-size: 18px; cursor: pointer; padding: 8px; margin-left: auto;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 12px 24px 20px;
  border-top: 1px solid var(--border);
  background: rgba(10,14,23,0.98);
}
.nav-mobile a {
  display: block; padding: 10px 0;
  color: var(--text2); text-decoration: none;
  font-size: 15px; border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.nav-mobile a:hover { color: var(--accent); }
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile .mobile-cta {
  display: inline-block; margin-top: 12px;
  background: var(--accent); color: #000;
  font-weight: 700; padding: 10px 24px;
  border-radius: 8px; text-align: center;
  border-bottom: none !important;
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-inner { padding: 0 20px; }
}
.nav-mobile.open { display: flex; }

/* ══════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,214,143,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,214,143,0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black, transparent);
  pointer-events: none;
}

.hero-glow-left {
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,214,143,0.07) 0%, transparent 70%);
  top: 10%; left: -100px; pointer-events: none;
}
.hero-glow-right {
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(59,130,246,0.05) 0%, transparent 70%);
  bottom: 10%; right: -80px; pointer-events: none;
}

.hero-content {
  position: relative; z-index: 1;
  max-width: 820px;
  animation: fadeUp 0.7s ease both;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,214,143,0.08);
  border: 1px solid rgba(0,214,143,0.22);
  border-radius: 100px;
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.hero-badge i { font-size: 11px; }

.hero-title {
  font-family: var(--font);
  font-size: clamp(36px, 6.5vw, 76px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}
.text-accent { color: var(--accent); }
.text-dim { color: var(--text3); }

.hero-sub {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text2);
  max-width: 560px;
  margin: 0 auto 40px;
  font-weight: 300;
  line-height: 1.75;
}

.hero-actions {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; flex-wrap: wrap; margin-bottom: 40px;
}

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #000;
  padding: 14px 28px; border-radius: 10px;
  font-family: var(--font); font-size: 15px; font-weight: 700;
  text-decoration: none; border: none; cursor: pointer;
  transition: all 0.2s; letter-spacing: 0.02em;
}
.btn-primary:hover { background: var(--accent2); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,214,143,0.28); }
.btn-primary i { font-size: 13px; }

.btn-large { padding: 16px 36px; font-size: 16px; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--text);
  padding: 13px 24px; border-radius: 10px;
  border: 1px solid var(--border2);
  font-size: 15px; font-weight: 400;
  text-decoration: none; transition: all 0.2s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.05); }

.hero-trust {
  display: flex; align-items: center; justify-content: center;
  gap: 28px; flex-wrap: wrap;
  font-size: 13px; color: var(--text3); font-weight: 400;
}
.hero-trust span { display: flex; align-items: center; gap: 6px; }
.hero-trust i { color: var(--accent); font-size: 12px; }

/* ══════════════════════════════════════════════════════════
   STATS BAR
══════════════════════════════════════════════════════════ */
.stats-bar {
  display: flex; justify-content: center; flex-wrap: wrap;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat-item {
  flex: 1; min-width: 140px;
  padding: 28px 32px;
  text-align: center;
  border-right: 1px solid var(--border);
  position: relative;
}
.stat-item:last-child { border-right: none; }
.stat-val {
  font-family: var(--font);
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -1px;
}
.accent-num { color: var(--accent); }
.red-num { color: var(--red); text-decoration: line-through; }
.stat-label {
  font-size: 12px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

/* ══════════════════════════════════════════════════════════
   SECTIONS COMMON
══════════════════════════════════════════════════════════ */
.section { padding: 100px 24px; }
.section-alt { background: var(--bg2); }
.section-inner { max-width: 1120px; margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 64px; }

.section-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.section-eyebrow i { font-size: 10px; }

.section-title {
  font-family: var(--font);
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 14px;
}

.section-sub {
  font-size: 16px;
  color: var(--text2);
  max-width: 520px;
  margin: 0 auto;
  font-weight: 300;
  line-height: 1.75;
}

/* ── Reveal animation ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

/* ══════════════════════════════════════════════════════════
   FLOW GRID
══════════════════════════════════════════════════════════ */
.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 80px;
}
@media (max-width: 900px) { .flow-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .flow-grid { grid-template-columns: 1fr; } }

.flow-step {
  background: var(--bg2);
  padding: 32px 28px;
  position: relative;
  transition: background 0.2s;
}
.flow-step:hover { background: var(--bg3); }

.flow-step-num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text4);
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}
.flow-step-icon {
  font-size: 26px;
  color: var(--accent);
  margin-bottom: 14px;
  opacity: 0.85;
}
.flow-step h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.flow-step p {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.65;
  font-weight: 300;
}

/* ── Payment pills ── */
.payment-section { text-align: center; }
.payment-title {
  font-family: var(--font);
  font-size: 22px; font-weight: 900; margin-bottom: 8px;
}
.payment-sub { font-size: 14px; color: var(--text2); margin-bottom: 28px; font-weight: 300; }
.payment-pills {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
}
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 700;
  transition: border-color 0.2s, transform 0.15s;
  cursor: default;
}
.pill:hover { border-color: var(--accent); transform: translateY(-2px); }
.pill i { font-size: 7px; }
.pill-green { color: var(--text); } .pill-green i { color: #22c55e; }
.pill-blue { color: var(--text); } .pill-blue i { color: #3b82f6; }
.pill-amber { color: var(--text); } .pill-amber i { color: #f59e0b; }
.pill-red { color: var(--text); } .pill-red i { color: #ef4444; }
.pill-purple { color: var(--text); } .pill-purple i { color: #a855f7; }
.pill-teal { color: var(--text); } .pill-teal i { color: #14b8a6; }

/* ══════════════════════════════════════════════════════════
   PRICING
══════════════════════════════════════════════════════════ */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 780px;
  margin: 0 auto 48px;
}
@media (max-width: 640px) { .pricing-grid { grid-template-columns: 1fr; } }

.price-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
  position: relative;
}
.price-card.price-good {
  border-color: rgba(0,214,143,0.3);
  background: rgba(0,214,143,0.03);
}
.price-card.price-good::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  border-radius: 16px 16px 0 0;
}
.price-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0,214,143,0.12);
  border: 1px solid rgba(0,214,143,0.25);
  color: var(--accent);
  font-size: 11px; font-weight: 700;
  padding: 4px 12px; border-radius: 100px;
  text-transform: uppercase; letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.price-who {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.1em;
  color: var(--text3); text-transform: uppercase; margin-bottom: 8px;
}
.price-name {
  font-size: 20px; font-weight: 900; margin-bottom: 20px;
}
.price-fee-val {
  font-family: var(--font);
  font-size: 58px; font-weight: 900; line-height: 1;
  margin-bottom: 4px; letter-spacing: -2px;
}
.price-accent { color: var(--accent); }
.price-strike { color: var(--red); text-decoration: line-through; opacity: 0.7; }
.price-unit { font-size: 28px; color: var(--text2); font-weight: 400; }
.price-period { font-size: 12px; color: var(--text3); margin-bottom: 24px; }
.price-features {
  list-style: none;
  display: flex; flex-direction: column; gap: 10px;
}
.price-features li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--text2); line-height: 1.5;
}
.price-features li i { flex-shrink: 0; margin-top: 2px; font-size: 12px; }
.price-features li.ok i { color: var(--accent); }
.price-features li.bad i { color: var(--red); }
.price-features li.bad { color: var(--text3); }
.price-cta {
  display: flex; align-items: center; gap: 8px;
  background: var(--accent); color: #000;
  font-size: 14px; font-weight: 700;
  padding: 12px 24px; border-radius: 10px;
  text-decoration: none; margin-top: 24px;
  transition: all 0.2s; justify-content: center;
}
.price-cta:hover { background: var(--accent2); transform: translateY(-1px); }

/* Calc box */
.calc-box {
  max-width: 520px; margin: 0 auto;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.calc-header {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
  font-size: 13px; font-weight: 700;
  color: var(--accent); text-transform: uppercase; letter-spacing: 0.05em;
}
.calc-body { padding: 24px; }
.calc-body > p { font-size: 14px; color: var(--text2); margin-bottom: 16px; }
.calc-rows { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.calc-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px;
}
.calc-row span { color: var(--text2); }
.calc-row strong { font-weight: 700; }
.calc-row .red { color: var(--red); }
.calc-total { padding-top: 12px; border-top: 1px solid var(--border); }
.calc-total span { color: var(--text); font-weight: 700; font-size: 15px; }
.calc-total .accent { color: var(--accent); font-size: 18px; }
.calc-compare { font-size: 12px; color: var(--text3); border-top: 1px solid var(--border); padding-top: 14px; }

/* ══════════════════════════════════════════════════════════
   STEPS
══════════════════════════════════════════════════════════ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 860px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .steps-grid { grid-template-columns: 1fr; } }

.step-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.2s;
}
.step-card:hover { border-color: var(--border2); transform: translateY(-3px); }
.step-num {
  position: absolute; top: 14px; right: 18px;
  font-family: var(--font);
  font-size: 52px; font-weight: 900;
  color: rgba(0,214,143,0.06); line-height: 1;
  user-select: none; pointer-events: none;
}
.step-icon {
  font-size: 22px; color: var(--accent);
  margin-bottom: 14px; display: block; opacity: 0.9;
}
.step-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.step-card p { font-size: 13px; color: var(--text2); line-height: 1.65; font-weight: 300; }

/* ══════════════════════════════════════════════════════════
   API DOCS
══════════════════════════════════════════════════════════ */
.docs-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 760px) { .docs-layout { grid-template-columns: 1fr; } }

.docs-nav { position: sticky; top: 88px; }
.docs-nav-label {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text3);
  margin-bottom: 12px;
}
.docs-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 9px;
  cursor: pointer; font-size: 13px; color: var(--text2);
  transition: background 0.15s, color 0.15s;
  margin-bottom: 3px;
}
.docs-nav-item:hover { background: rgba(255,255,255,0.04); color: var(--text); }
.docs-nav-item.active { background: rgba(0,214,143,0.08); color: var(--text); }
.docs-nav-item.active .method { color: var(--accent) !important; border-color: rgba(0,214,143,0.3) !important; }

.method {
  font-family: var(--font-mono);
  font-size: 9px; font-weight: 700;
  padding: 3px 7px; border-radius: 5px;
  border: 1px solid var(--border);
  color: var(--text3); letter-spacing: 0.05em;
  min-width: 38px; text-align: center;
  flex-shrink: 0;
}
.method.post { color: #f59e0b; border-color: rgba(245,158,11,0.3); }
.method.get  { color: #22c55e; border-color: rgba(34,197,94,0.3); }

.docs-base-url {
  margin-top: 20px;
  padding: 12px 14px;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 8px;
}
.docs-base-label {
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text3);
  margin-bottom: 6px;
}
.docs-base-url code {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--accent);
  word-break: break-all;
}

/* Code block */
.code-block {
  display: none;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.code-block.active { display: block; }

.code-top {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.code-dots { display: flex; gap: 6px; }
.code-dots span {
  width: 10px; height: 10px; border-radius: 50%;
}
.code-dots span:nth-child(1) { background: #ef4444; }
.code-dots span:nth-child(2) { background: #f59e0b; }
.code-dots span:nth-child(3) { background: #22c55e; }
.code-title {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--text3);
  letter-spacing: 0.05em; flex: 1;
}
.code-copy-btn {
  display: flex; align-items: center; gap: 5px;
  background: none; border: 1px solid var(--border);
  border-radius: 6px; color: var(--text3);
  font-family: var(--font-mono); font-size: 10px;
  padding: 4px 10px; cursor: pointer; transition: all 0.15s;
}
.code-copy-btn:hover { color: var(--accent); border-color: var(--accent); }
.code-body {
  padding: 24px; overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 12px; line-height: 2;
}
.c-cmt  { color: var(--text3); }
.c-key  { color: #7dd3fc; }
.c-str  { color: #86efac; }
.c-num  { color: #fca5a5; }
.c-kw   { color: #c084fc; }
.c-method { color: #f59e0b; font-weight: 700; }

/* ══════════════════════════════════════════════════════════
   FAQ
══════════════════════════════════════════════════════════ */
.faq-list {
  max-width: 720px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 6px;
}
.faq-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item.open { border-color: rgba(0,214,143,0.22); }
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; gap: 16px;
  background: none; border: none; cursor: pointer;
  font-family: var(--font); font-size: 14px; font-weight: 700;
  color: var(--text); text-align: left;
  transition: color 0.2s;
}
.faq-q:hover { color: var(--accent); }
.faq-icon {
  flex-shrink: 0; font-size: 12px; color: var(--text3);
  transition: transform 0.25s, color 0.2s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--accent); }
.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 22px;
}
.faq-item.open .faq-a { max-height: 200px; padding: 0 22px 18px; }
.faq-a p { font-size: 14px; color: var(--text2); line-height: 1.75; font-weight: 300; }

/* ══════════════════════════════════════════════════════════
   CTA BOTTOM
══════════════════════════════════════════════════════════ */
.cta-section {
  background: var(--bg3);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 100px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(0,214,143,0.06) 0%, transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; max-width: 600px; margin: 0 auto; }
.cta-inner h2 { font-size: clamp(22px, 4vw, 38px); font-weight: 900; margin-bottom: 12px; letter-spacing: -0.5px; }
.cta-inner p { font-size: 16px; color: var(--text2); margin-bottom: 32px; font-weight: 300; }

/* ══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 56px 24px 28px;
}
.footer-inner {
  max-width: 1120px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
@media (max-width: 720px) { .footer-inner { grid-template-columns: 1fr; gap: 32px; } }

.footer-brand p {
  font-size: 13px; color: var(--text3);
  margin-top: 14px; max-width: 300px; line-height: 1.75; font-weight: 300;
}
.footer-col-title {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text3); margin-bottom: 14px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col a {
  font-size: 13px; color: var(--text2); text-decoration: none;
  font-weight: 400; transition: color 0.15s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  max-width: 1120px; margin: 24px auto 0;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  font-size: 12px; color: var(--text3);
}

/* ══════════════════════════════════════════════════════════
   AUTH PAGES — LOGIN & REGISTER
══════════════════════════════════════════════════════════ */
.auth-page {
  min-height: 100vh;
  display: flex; flex-direction: column;
  background: var(--bg);
}

.auth-wrap {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 64px);
}
@media (max-width: 860px) { .auth-wrap { grid-template-columns: 1fr; } }

/* Left panel */
.auth-left {
  background: var(--bg2);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 60px 64px;
  position: relative; overflow: hidden;
}
@media (max-width: 860px) { .auth-left { display: none; } }

.auth-left-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,214,143,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,214,143,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}
.auth-left-glow {
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,214,143,0.07) 0%, transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  pointer-events: none;
}
.auth-left-content { position: relative; z-index: 1; text-align: center; }
.auth-left-icon {
  width: 80px; height: 80px; border-radius: 20px;
  background: rgba(0,214,143,0.1);
  border: 1px solid rgba(0,214,143,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; color: var(--accent);
  margin: 0 auto 28px;
}
.auth-left h2 { font-size: 26px; font-weight: 900; margin-bottom: 12px; }
.auth-left p { font-size: 15px; color: var(--text2); line-height: 1.75; font-weight: 300; }

.auth-benefits {
  list-style: none; margin-top: 32px; text-align: left;
  display: flex; flex-direction: column; gap: 12px;
}
.auth-benefits li {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; color: var(--text2);
}
.auth-benefits li i { color: var(--accent); font-size: 12px; width: 16px; flex-shrink: 0; }

/* Right panel */
.auth-right {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 60px 48px;
}
@media (max-width: 480px) { .auth-right { padding: 40px 24px; } }

.auth-form-wrap { width: 100%; max-width: 420px; }

.auth-form-logo {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 36px; text-decoration: none;
}

.auth-title { font-size: 26px; font-weight: 900; margin-bottom: 6px; letter-spacing: -0.5px; }
.auth-subtitle { font-size: 14px; color: var(--text2); margin-bottom: 32px; font-weight: 300; }

/* Form fields */
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-size: 12px; font-weight: 700;
  color: var(--text2);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.form-field input,
.form-field select {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 16px;
  color: var(--text);
  font-family: var(--font); font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-field input:focus,
.form-field select:focus {
  border-color: rgba(0,214,143,0.45);
  box-shadow: 0 0 0 3px rgba(0,214,143,0.08);
}
.form-field input::placeholder { color: var(--text3); }
.form-field select { cursor: pointer; }
.form-field select option { background: var(--bg3); }

/* Input with icon */
.input-wrap { position: relative; }
.input-icon {
  position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--text3); font-size: 13px;
  pointer-events: none;
}
.input-wrap input { padding-left: 40px; }
.input-toggle {
  position: absolute; right: 14px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none; color: var(--text3);
  cursor: pointer; font-size: 13px;
  transition: color 0.2s;
}
.input-toggle:hover { color: var(--text); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 420px) { .form-row { grid-template-columns: 1fr; } }

.form-check {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--text2); margin-bottom: 24px;
  cursor: pointer;
}
.form-check input { width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--accent); cursor: pointer; margin-top: 2px; }
.form-check a { color: var(--accent); text-decoration: none; }
.form-check a:hover { text-decoration: underline; }

.btn-full {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #000;
  border: none; border-radius: 10px;
  padding: 13px; font-family: var(--font);
  font-size: 15px; font-weight: 700;
  cursor: pointer; transition: all 0.2s; letter-spacing: 0.02em;
}
.btn-full:hover { background: var(--accent2); transform: translateY(-1px); box-shadow: 0 6px 24px rgba(0,214,143,0.22); }
.btn-full:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.form-divider {
  display: flex; align-items: center; gap: 14px;
  margin: 20px 0;
  font-size: 12px; color: var(--text3);
}
.form-divider::before,
.form-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

.auth-alt { text-align: center; margin-top: 24px; font-size: 13px; color: var(--text2); }
.auth-alt a { color: var(--accent); text-decoration: none; font-weight: 700; }
.auth-alt a:hover { text-decoration: underline; }

.forgot-link {
  display: block; text-align: right;
  font-size: 12px; color: var(--accent);
  text-decoration: none; margin-top: -8px; margin-bottom: 18px;
}
.forgot-link:hover { text-decoration: underline; }

/* Error message */
.form-error {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.25);
  color: #fca5a5;
  font-size: 13px; padding: 12px 16px;
  border-radius: 10px; margin-bottom: 16px; display: none;
}
.form-error.show { display: block; }
.form-success {
  background: rgba(0,214,143,0.08);
  border: 1px solid rgba(0,214,143,0.25);
  color: var(--accent);
  font-size: 13px; padding: 12px 16px;
  border-radius: 10px; margin-bottom: 16px; display: none;
}
.form-success.show { display: block; }

/* ══════════════════════════════════════════════════════════
   DASHBOARD
══════════════════════════════════════════════════════════ */
.dashboard-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}
@media (max-width: 900px) { .dashboard-layout { grid-template-columns: 1fr; } }

/* Sidebar */
.sidebar {
  background: var(--bg2);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
  overflow-y: auto;
}
.sidebar-logo {
  display: flex; align-items: center; gap: 10px;
  padding: 22px 20px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}
.sidebar-nav { flex: 1; padding: 12px 10px; }
.sidebar-nav-section {
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text4);
  padding: 14px 12px 6px;
}
.sidebar-link {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 9px;
  text-decoration: none; font-size: 13px; font-weight: 700;
  color: var(--text2);
  transition: background 0.15s, color 0.15s;
  margin-bottom: 2px;
}
.sidebar-link:hover { background: rgba(255,255,255,0.04); color: var(--text); }
.sidebar-link.active { background: rgba(0,214,143,0.1); color: var(--accent); }
.sidebar-link i { font-size: 14px; width: 18px; flex-shrink: 0; }
.sidebar-badge {
  margin-left: auto;
  background: rgba(0,214,143,0.15);
  color: var(--accent);
  font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 100px;
}
.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border);
}
.sidebar-user {
  display: flex; align-items: center; gap: 10px;
  padding: 10px; border-radius: 9px;
  background: rgba(255,255,255,0.03);
}
.sidebar-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #00b87a);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 900; color: #000;
  flex-shrink: 0;
}
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name {
  font-size: 13px; font-weight: 700;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sidebar-user-role { font-size: 11px; color: var(--text3); }
.sidebar-logout {
  background: none; border: none; color: var(--text3);
  cursor: pointer; font-size: 13px; padding: 4px;
  transition: color 0.2s;
}
.sidebar-logout:hover { color: var(--red); }

/* Dashboard main */
.dashboard-main {
  background: var(--bg);
  overflow-x: hidden;
}
.dashboard-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 32px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(10px);
}
.topbar-title { font-size: 18px; font-weight: 900; letter-spacing: -0.3px; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.topbar-notif {
  width: 38px; height: 38px; border-radius: 9px;
  background: var(--bg3); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text2); cursor: pointer; font-size: 15px;
  transition: all 0.2s; position: relative;
}
.topbar-notif:hover { border-color: var(--border2); color: var(--text); }
.notif-dot {
  position: absolute; top: 7px; right: 7px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}
.topbar-env {
  display: flex; align-items: center; gap: 6px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 9px; padding: 7px 14px;
  font-size: 12px; font-weight: 700; color: var(--text2);
  cursor: pointer; transition: all 0.2s;
}
.topbar-env:hover { border-color: var(--border2); }
.env-dot { width: 7px; height: 7px; border-radius: 50%; }
.env-dot.sandbox { background: var(--amber); }
.env-dot.live { background: var(--accent); box-shadow: 0 0 6px var(--accent); }

.dashboard-content { padding: 32px; }
@media (max-width: 600px) { .dashboard-content { padding: 20px; } }

/* Cards */
.dash-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
@media (max-width: 1024px) { .dash-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .dash-cards { grid-template-columns: 1fr; } }

.dash-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 24px;
  transition: border-color 0.2s;
}
.dash-card:hover { border-color: var(--border2); }
.dash-card-label {
  font-size: 12px; font-weight: 700;
  color: var(--text3); text-transform: uppercase;
  letter-spacing: 0.06em; margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.dash-card-label i { font-size: 11px; }
.dash-card-val {
  font-family: var(--font);
  font-size: 26px; font-weight: 900;
  letter-spacing: -0.5px; margin-bottom: 6px;
}
.dash-card-sub { font-size: 12px; color: var(--text3); }
.dash-card-sub .up { color: #22c55e; }
.dash-card-sub .down { color: var(--red); }
.dash-card.accent-card { border-color: rgba(0,214,143,0.25); }
.dash-card.accent-card .dash-card-val { color: var(--accent); }

/* Dashboard grid */
.dash-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 20px;
  margin-bottom: 28px;
}
@media (max-width: 1024px) { .dash-grid { grid-template-columns: 1fr; } }

.dash-panel {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.dash-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
}
.dash-panel-title {
  font-size: 14px; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
}
.dash-panel-title i { color: var(--accent); font-size: 13px; }
.dash-panel-action {
  font-size: 12px; color: var(--accent); text-decoration: none;
  font-weight: 700;
}
.dash-panel-action:hover { text-decoration: underline; }

/* Transaction list */
.trx-list { padding: 8px; }
.trx-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px; border-radius: 10px;
  transition: background 0.15s; cursor: pointer;
}
.trx-item:hover { background: rgba(255,255,255,0.03); }
.trx-icon {
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--bg3);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}
.trx-info { flex: 1; min-width: 0; }
.trx-name { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.trx-player { font-size: 11px; color: var(--text3); }
.trx-right { text-align: right; flex-shrink: 0; }
.trx-amount { font-size: 13px; font-weight: 700; color: var(--accent); }
.trx-time { font-size: 11px; color: var(--text3); margin-top: 2px; }
.trx-status {
  display: inline-block;
  font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 100px;
  margin-top: 3px;
}
.status-settlement { background: rgba(34,197,94,0.12); color: #22c55e; }
.status-pending    { background: rgba(245,158,11,0.12); color: #f59e0b; }
.status-expire     { background: rgba(100,116,139,0.12); color: #64748b; }
.status-cancel     { background: rgba(239,68,68,0.12); color: #ef4444; }

/* API Key box */
.api-key-panel { padding: 16px; }
.api-env-tabs {
  display: flex; gap: 6px; margin-bottom: 14px;
}
.api-env-tab {
  flex: 1; padding: 8px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 8px; text-align: center;
  font-size: 12px; font-weight: 700;
  cursor: pointer; transition: all 0.15s; color: var(--text2);
}
.api-env-tab.active {
  background: rgba(0,214,143,0.1);
  border-color: rgba(0,214,143,0.3);
  color: var(--accent);
}
.api-key-box {
  background: var(--bg);
  border: 1px solid rgba(0,214,143,0.18);
  border-radius: 10px; padding: 14px 16px;
  margin-bottom: 12px;
}
.api-key-label {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text3); margin-bottom: 8px;
}
.api-key-val {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--accent);
  word-break: break-all; margin-bottom: 10px;
}
.api-key-actions { display: flex; gap: 8px; }
.btn-small {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; padding: 6px 14px;
  border-radius: 7px; cursor: pointer; transition: all 0.15s;
  border: 1px solid var(--border); background: var(--bg3);
  color: var(--text2);
}
.btn-small:hover { border-color: var(--accent); color: var(--accent); }
.btn-small.danger:hover { border-color: var(--red); color: var(--red); }

/* Withdraw card */
.withdraw-form { padding: 16px; }
.withdraw-balance {
  background: var(--bg);
  border: 1px solid rgba(0,214,143,0.15);
  border-radius: 10px; padding: 14px 16px;
  margin-bottom: 14px;
}
.withdraw-balance-label { font-size: 11px; color: var(--text3); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.withdraw-balance-val { font-size: 24px; font-weight: 900; color: var(--accent); letter-spacing: -0.5px; }

.withdraw-input {
  width: 100%; background: var(--bg);
  border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 14px; color: var(--text);
  font-family: var(--font); font-size: 14px;
  margin-bottom: 10px; outline: none;
  transition: border-color 0.2s;
}
.withdraw-input:focus { border-color: rgba(0,214,143,0.4); }
.withdraw-select {
  width: 100%; background: var(--bg);
  border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 14px; color: var(--text);
  font-family: var(--font); font-size: 14px;
  margin-bottom: 14px; outline: none; cursor: pointer;
  transition: border-color 0.2s;
}
.withdraw-select option { background: var(--bg2); }
.withdraw-btn {
  width: 100%;
  background: var(--accent); color: #000;
  border: none; border-radius: 10px;
  padding: 11px; font-family: var(--font);
  font-size: 14px; font-weight: 700;
  cursor: pointer; transition: all 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.withdraw-btn:hover { background: var(--accent2); }

/* Table */
.dash-table-wrap {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
}
.dash-table-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
}
.table-title { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.table-title i { color: var(--accent); }
.table-filter { display: flex; gap: 8px; }
.filter-btn {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 7px; padding: 6px 14px;
  font-size: 12px; font-weight: 700;
  color: var(--text2); cursor: pointer; transition: all 0.15s;
}
.filter-btn.active { background: rgba(0,214,143,0.1); border-color: rgba(0,214,143,0.3); color: var(--accent); }

table { width: 100%; border-collapse: collapse; }
thead th {
  padding: 12px 20px; text-align: left;
  font-size: 11px; font-weight: 700;
  color: var(--text3); text-transform: uppercase;
  letter-spacing: 0.07em;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
tbody td {
  padding: 14px 20px;
  font-size: 13px; border-bottom: 1px solid var(--border);
  color: var(--text2);
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: rgba(255,255,255,0.02); }
.td-bold { font-weight: 700; color: var(--text); }
.td-mono { font-family: var(--font-mono); font-size: 11px; }
.td-green { color: var(--accent); font-weight: 700; }
.td-red { color: var(--red); font-weight: 700; }

/* ══════════════════════════════════════════════════════════
   UTILITIES
══════════════════════════════════════════════════════════ */
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.gap-8 { gap: 8px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.text-accent { color: var(--accent) !important; }
.text-red { color: var(--red) !important; }
.text-dim { color: var(--text3) !important; }
.font-bold { font-weight: 700; }

/* ══════════════════════════════════════════════════════════
   TOAST
══════════════════════════════════════════════════════════ */
.toast-wrap {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  display: flex; flex-direction: column; gap: 10px;
  pointer-events: none;
}
.toast {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 10px; padding: 12px 18px;
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  animation: toastIn 0.35s cubic-bezier(0.34,1.56,0.64,1) both;
  pointer-events: all;
}
.toast.success { border-color: rgba(0,214,143,0.3); }
.toast.success i { color: var(--accent); }
.toast.error { border-color: rgba(239,68,68,0.3); }
.toast.error i { color: var(--red); }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(60px); }
  to   { opacity: 1; transform: none; }
  
  /* ════════════════════════════════════════════════════
   ANARYX PAY — style_patch.css
   CARA PAKAI: Tambahkan isi file ini ke bagian BAWAH
   style.css yang sudah ada di server kamu.
════════════════════════════════════════════════════ */

/* ── FIX 1: Sidebar tidak overflow / manjang ── */
.sidebar {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 240px;
  height: 100vh !important;
  max-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  z-index: 50;
}

/* Sidebar nav area bisa scroll jika konten banyak */
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px 10px;
}

/* Footer sidebar tetap di bawah */
.sidebar-footer {
  flex-shrink: 0;
  padding: 16px;
  border-top: 1px solid var(--border);
}

/* Dashboard layout kompensasi sidebar fixed */
.dashboard-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

/* Main content tidak tertimpa sidebar */
.dashboard-main {
  min-height: 100vh;
  overflow-x: hidden;
}

/* Topbar sticky di bawah fixed sidebar */
.dashboard-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ── FIX 2: Env indicator strip ── */
.sandbox-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 32px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.sandbox-strip.sandbox {
  background: rgba(245,158,11,0.05);
  border-bottom: 1px solid rgba(245,158,11,0.15);
  color: #f59e0b;
}
.sandbox-strip.live {
  background: rgba(0,214,143,0.05);
  border-bottom: 1px solid rgba(0,214,143,0.15);
  color: var(--accent);
}

/* ── FIX 3: ENV dot colors ── */
.env-dot.sandbox {
  background: #f59e0b;
  box-shadow: 0 0 8px rgba(245,158,11,0.7);
}
.env-dot.live {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(0,214,143,0.7);
}

/* ── FIX 4: API Key box warna berbeda ── */
.api-key-box.sandbox-key {
  border-color: rgba(245,158,11,0.25);
  background: rgba(245,158,11,0.03);
}
.api-key-box.sandbox-key .api-key-val {
  color: #f59e0b;
}
.api-key-box.live-key {
  border-color: rgba(0,214,143,0.25);
  background: rgba(0,214,143,0.03);
}
.api-key-box.live-key .api-key-val {
  color: var(--accent);
}

/* ── FIX 5: API env tab warna ── */
.api-env-tab[data-tab="sandbox"].active {
  background: rgba(245,158,11,0.10);
  border-color: rgba(245,158,11,0.35);
  color: #f59e0b;
}
.api-env-tab[data-tab="live"].active {
  background: rgba(0,214,143,0.10);
  border-color: rgba(0,214,143,0.35);
  color: var(--accent);
}

/* ── FIX 6: Profile panel ── */
.profile-avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 24px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.profile-avatar-big {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #00b87a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 900;
  color: #000;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.profile-name  { font-size: 20px; font-weight: 900; margin-bottom: 4px; }
.profile-email { font-size: 13px; color: var(--text3); margin-bottom: 12px; }
.profile-studio-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,214,143,0.08);
  border: 1px solid rgba(0,214,143,0.2);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 100px;
}
.profile-stats {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.profile-stat {
  background: var(--bg2);
  text-align: center;
  padding: 20px 12px;
}
.profile-stat-val {
  font-size: 20px;
  font-weight: 900;
  color: var(--accent);
}
.profile-stat-lbl {
  font-size: 11px;
  color: var(--text3);
  margin-top: 4px;
}

/* ── FIX 7: Mobile sidebar ── */
@media (max-width: 900px) {
  .sidebar {
    display: none;
  }
  .dashboard-layout {
    grid-template-columns: 1fr;
  }
  .dashboard-main {
    margin-left: 0;
  }
}

/* ── Skeleton loading animation ── */
@keyframes skelPulse {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 0.7; }
}
.skel {
  animation: skelPulse 1.4s ease infinite;
  background: var(--bg3) !important;
  border-radius: 12px;
}
}