/* ================================================================
   NIXORA — Global Design System
   Neon Cyan #00D4FF · Purple #9D4EDD · Dark #0A0A2A
   ================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── Design Tokens ─────────────────────────────────────────────── */
:root {
  --cyan:           #00D4FF;
  --cyan-bright:    #00EEFF;
  --cyan-dim:       rgba(0,212,255,0.6);
  --cyan-glow:      rgba(0,212,255,0.15);
  --cyan-border:    rgba(0,212,255,0.3);
  --teal:           #00B8CC;
  --purple:         #9D4EDD;
  --purple-dim:     rgba(157,78,221,0.6);
  --purple-glow:    rgba(157,78,221,0.15);
  --purple-border:  rgba(157,78,221,0.3);

  --bg:             #0A0A2A;
  --bg-2:           #0D1440;
  --bg-card:        rgba(10,15,50,0.85);
  --bg-card-hover:  rgba(0,212,255,0.07);
  --text:           #FFFFFF;
  --text-2:         rgba(255,255,255,0.75);
  --text-3:         rgba(255,255,255,0.45);
  --success:        #00FF88;
  --warning:        #FFD700;
  --danger:         #FF4466;
  --gold:           #FFD700;

  --grad-primary:   linear-gradient(135deg, #00D4FF 0%, #9D4EDD 100%);
  --grad-reverse:   linear-gradient(135deg, #9D4EDD 0%, #00D4FF 100%);
  --grad-dark:      linear-gradient(180deg, #0A0A2A 0%, #0D1440 100%);
  --grad-card:      linear-gradient(135deg,rgba(0,212,255,0.08),rgba(157,78,221,0.08));
  --grad-gold:      linear-gradient(135deg,#FFD700,#FFA500);

  --shadow-cyan:    0 0 20px rgba(0,212,255,0.35), 0 0 50px rgba(0,212,255,0.15);
  --shadow-purple:  0 0 20px rgba(157,78,221,0.35), 0 0 50px rgba(157,78,221,0.15);
  --shadow-card:    0 8px 40px rgba(0,0,0,0.5);
  --shadow-hover:   0 12px 50px rgba(0,212,255,0.25);

  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 999px;

  --font-h:  'Orbitron', monospace;
  --font-b:  'Inter', sans-serif;

  --nav-h:   70px;
  --header-h:60px;
}

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100dvh;
  overflow: hidden;
  position: relative;
}
a { color: var(--cyan); text-decoration: none; }
button { cursor: pointer; }
input, select, button { font-family: var(--font-b); }
img, svg { display: block; max-width: 100%; }

/* ── Circuit Background ─────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(0,212,255,0.05) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(157,78,221,0.05) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ── Glass Card ─────────────────────────────────────────────────── */
.glass {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--cyan-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}
.glass-purple {
  border-color: var(--purple-border);
  box-shadow: var(--shadow-purple), var(--shadow-card);
}
.glass-gold {
  border-color: rgba(255,215,0,0.4);
  box-shadow: 0 0 20px rgba(255,215,0,0.2), var(--shadow-card);
}

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--r-full);
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  padding: 12px 24px;
  font-size: 13px;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  opacity: 0;
  transition: opacity 0.2s;
}
.btn:hover::after { opacity: 1; }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: var(--shadow-cyan);
  font-family: var(--font-h);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(0,212,255,0.55), 0 0 70px rgba(0,212,255,0.25);
}

.btn-secondary {
  background: transparent;
  border: 1.5px solid var(--cyan);
  color: var(--cyan);
  font-family: var(--font-b);
}
.btn-secondary:hover {
  background: var(--cyan-glow);
  box-shadow: var(--shadow-cyan);
  transform: translateY(-1px);
}

.btn-purple {
  background: var(--grad-reverse);
  color: #fff;
  font-family: var(--font-h);
  box-shadow: var(--shadow-purple);
}
.btn-purple:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(157,78,221,0.55);
}

.btn-gold {
  background: var(--grad-gold);
  color: #1a1000;
  font-family: var(--font-h);
  font-weight: 900;
  box-shadow: 0 0 20px rgba(255,215,0,0.4);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(255,215,0,0.6);
}

.btn-danger {
  background: linear-gradient(135deg, #FF4466, #CC0033);
  color: #fff;
  font-family: var(--font-h);
}

.btn-sm { padding: 8px 16px; font-size: 11px; }
.btn-lg { padding: 16px 36px; font-size: 15px; }
.btn-full { width: 100%; }
.btn-icon-only { padding: 10px; border-radius: 50%; width: 40px; height: 40px; }

/* ── Form Elements ──────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.form-input, .form-select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(0,212,255,0.05);
  border: 1px solid var(--cyan-border);
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: 14px;
  transition: all 0.2s;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.form-input::placeholder { color: var(--text-3); }
.form-input:focus, .form-select:focus {
  border-color: var(--cyan);
  background: rgba(0,212,255,0.08);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.12);
}
.form-select option { background: var(--bg-2); color: var(--text); }

.phone-wrapper {
  display: flex;
  align-items: center;
  background: rgba(0,212,255,0.05);
  border: 1px solid var(--cyan-border);
  border-radius: var(--r-sm);
  overflow: hidden;
  transition: all 0.2s;
}
.phone-wrapper:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.12);
}
.phone-prefix {
  padding: 12px 14px;
  background: rgba(0,212,255,0.12);
  color: var(--cyan);
  font-weight: 700;
  font-size: 14px;
  border-right: 1px solid var(--cyan-border);
  white-space: nowrap;
  user-select: none;
}
.phone-wrapper input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 16px;
  color: var(--text);
  font-size: 14px;
  outline: none;
}
.phone-wrapper input::placeholder { color: var(--text-3); }

/* ── Typography ─────────────────────────────────────────────────── */
.heading-xl { font-family: var(--font-h); font-size: clamp(20px,3vw,32px); font-weight: 900; }
.heading-lg { font-family: var(--font-h); font-size: clamp(16px,2.5vw,24px); font-weight: 800; }
.heading-md { font-family: var(--font-h); font-size: clamp(13px,2vw,18px); font-weight: 700; }
.heading-sm { font-family: var(--font-h); font-size: 13px; font-weight: 700; letter-spacing: 1px; }

.gradient-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.neon-cyan { color: var(--cyan); text-shadow: 0 0 12px rgba(0,212,255,0.7); }
.neon-purple { color: var(--purple); text-shadow: 0 0 12px rgba(157,78,221,0.7); }
.neon-gold { color: var(--gold); text-shadow: 0 0 12px rgba(255,215,0,0.6); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-muted { color: var(--text-3); }
.text-sm { font-size: 12px; }
.text-xs { font-size: 11px; }
.text-center { text-align: center; }
.uppercase { text-transform: uppercase; letter-spacing: 1px; }

/* ── Layout Utilities ──────────────────────────────────────────── */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: 8px; }
.gap-md { gap: 16px; }
.gap-lg { gap: 24px; }
.w-full { width: 100%; }
.relative { position: relative; }
.hidden { display: none !important; }

/* ── Progress Bar ───────────────────────────────────────────────── */
.progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--r-full);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--grad-primary);
  border-radius: var(--r-full);
  transition: width 0.6s cubic-bezier(0.4,0,0.2,1);
  position: relative;
}
.progress-fill::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 20px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5));
  border-radius: var(--r-full);
}

/* ── Toggle Switch ──────────────────────────────────────────────── */
.toggle { position: relative; display: inline-block; width: 48px; height: 26px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.15);
  border-radius: var(--r-full);
  cursor: pointer;
  transition: 0.3s;
  border: 1px solid var(--cyan-border);
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  left: 2px; top: 2px;
  background: #fff;
  border-radius: 50%;
  transition: 0.3s;
}
.toggle input:checked + .toggle-slider { background: var(--grad-primary); border-color: var(--cyan); }
.toggle input:checked + .toggle-slider::before { transform: translateX(22px); }

/* ── Scrollbar ──────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--cyan-dim); border-radius: 2px; }
* { scrollbar-width: thin; scrollbar-color: var(--cyan-dim) transparent; }

/* ── Animations ─────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideRight {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes float {
  0%,100% { transform: translateY(0px); }
  50%      { transform: translateY(-8px); }
}
@keyframes glowPulse {
  0%,100% { box-shadow: 0 0 10px rgba(0,212,255,0.3); }
  50%      { box-shadow: 0 0 30px rgba(0,212,255,0.7), 0 0 60px rgba(0,212,255,0.3); }
}
@keyframes glowPulsePurple {
  0%,100% { box-shadow: 0 0 10px rgba(157,78,221,0.3); }
  50%      { box-shadow: 0 0 30px rgba(157,78,221,0.7), 0 0 60px rgba(157,78,221,0.3); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes loadingFill {
  from { width: 0; }
  to   { width: 100%; }
}
@keyframes circuitFlow {
  from { stroke-dashoffset: 200; }
  to   { stroke-dashoffset: 0; }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes countUp {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes cardFlip {
  0%   { transform: rotateY(0deg); }
  50%  { transform: rotateY(90deg); }
  100% { transform: rotateY(0deg); }
}

.anim-fadeUp    { animation: fadeUp    0.5s ease forwards; }
.anim-fadeIn    { animation: fadeIn    0.4s ease forwards; }
.anim-slideRight{ animation: slideRight 0.4s ease forwards; }
.anim-float     { animation: float 3.5s ease-in-out infinite; }
.anim-spin      { animation: spin 1s linear infinite; }
.anim-pulse-cyan  { animation: glowPulse 2.5s ease-in-out infinite; }
.anim-pulse-purple{ animation: glowPulsePurple 2.5s ease-in-out infinite; }

/* Stagger animation delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* ── Badge ──────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.badge-cyan   { background: var(--cyan-glow); border: 1px solid var(--cyan-border); color: var(--cyan); }
.badge-purple { background: var(--purple-glow); border: 1px solid var(--purple-border); color: var(--purple); }
.badge-gold   { background: rgba(255,215,0,0.15); border: 1px solid rgba(255,215,0,0.4); color: var(--gold); }
.badge-success{ background: rgba(0,255,136,0.15); border: 1px solid rgba(0,255,136,0.4); color: var(--success); }
.badge-danger { background: rgba(255,68,102,0.15); border: 1px solid rgba(255,68,102,0.4); color: var(--danger); }

/* ── Divider ─────────────────────────────────────────────────────── */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan-border), transparent);
  margin: 16px 0;
}

/* ── Copy Button ─────────────────────────────────────────────────── */
.copy-btn {
  background: var(--cyan-glow);
  border: 1px solid var(--cyan-border);
  border-radius: var(--r-xs);
  color: var(--cyan);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.copy-btn:hover { background: var(--cyan); color: var(--bg); }
.copy-btn.copied { background: var(--success); border-color: var(--success); color: #000; }

/* ── Toast ───────────────────────────────────────────────────────── */
#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  padding: 14px 20px;
  border-radius: var(--r-md);
  background: var(--bg-card);
  border-left: 4px solid var(--cyan);
  backdrop-filter: blur(20px);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  max-width: 300px;
  box-shadow: var(--shadow-cyan);
  pointer-events: all;
  animation: slideRight 0.3s ease, fadeIn 0.3s ease;
}
.toast.success { border-color: var(--success); }
.toast.error   { border-color: var(--danger); }
.toast.warning { border-color: var(--warning); }
.toast.info    { border-color: var(--cyan); }
.toast-title   { font-weight: 700; font-size: 13px; margin-bottom: 2px; }

/* ── Modal ───────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,10,42,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.25s ease;
}
.modal-box {
  background: linear-gradient(135deg,rgba(10,15,60,0.97),rgba(10,10,42,0.97));
  border: 1px solid var(--cyan-border);
  border-radius: var(--r-xl);
  padding: 32px;
  max-width: 480px;
  width: 100%;
  max-height: 90dvh;
  overflow-y: auto;
  box-shadow: var(--shadow-cyan);
  animation: fadeUp 0.35s ease;
  position: relative;
}
.modal-close-btn {
  position: absolute;
  top: 16px; right: 16px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  width: 32px; height: 32px;
  color: var(--text-2);
  font-size: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.modal-close-btn:hover { background: var(--danger); color: #fff; border-color: var(--danger); }

/* ── Language Buttons ───────────────────────────────────────────── */
.lang-btns {
  display: flex;
  gap: 4px;
}
.lang-btn {
  background: transparent;
  border: 1px solid var(--cyan-border);
  border-radius: var(--r-xs);
  color: var(--text-2);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.lang-btn.active, .lang-btn:hover {
  background: var(--cyan-glow);
  border-color: var(--cyan);
  color: var(--cyan);
}

/* ── Nixora SVG Logo ─────────────────────────────────────────────── */
.nixora-logo { display: inline-block; }
.nixora-logo svg { filter: drop-shadow(0 0 8px rgba(0,212,255,0.5)); }

/* ── ETB value shimmer effect ──────────────────────────────────── */
.etb-shimmer {
  background: linear-gradient(90deg, var(--cyan) 25%, #ffffff 50%, var(--cyan) 75%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}
