/* ============================================================
   DUARENA — Design System | Aqui não é brasa. Aqui é BATALHA.
   Aesthetic: Dark War Arena / Neon Combat Sports
============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Rajdhani:wght@400;500;600;700&family=Orbitron:wght@400;700;900&display=swap');

:root {
  --primary:       #00ff66;
  --primary-dark:  #00cc44;
  --primary-dim:   rgba(0,255,102,0.15);
  --primary-glow:  rgba(0,255,102,0.4);
  --secondary:     #050a05;
  --surface:       #0a120a;
  --surface2:      #0f1c0f;
  --surface3:      #162416;
  --surface4:      #1e301e;
  --border:        rgba(0,255,102,0.08);
  --border-mid:    rgba(0,255,102,0.2);
  --text:          #d4f0d4;
  --text-muted:    #4d7a4d;
  --text-dim:      #2a4a2a;
  --danger:        #ff3333;
  --warning:       #ffaa00;
  --success:       #00ff66;
  --info:          #00ccff;
  --ouro:          #ffd700;
  --prata:         #c0c0c0;
  --bronze:        #cd7f32;
  --accent:        #ff4400;
  --x1-color:      #ff6600;
  --x1-glow:       rgba(255,102,0,0.4);
  --gradient:      linear-gradient(135deg, var(--primary) 0%, #00ffcc 100%);
  --gradient-war:  linear-gradient(135deg, #ff4400 0%, #ff8800 100%);
  --gradient-x1:   linear-gradient(135deg, #ff6600 0%, #ff0044 100%);
  --font-display:  'Bebas Neue', sans-serif;
  --font-heading:  'Orbitron', sans-serif;
  --font-body:     'Rajdhani', sans-serif;
  --radius:        8px;
  --radius-lg:     14px;
  --shadow:        0 4px 24px rgba(0,0,0,0.7);
  --shadow-glow:   0 0 30px rgba(0,255,102,0.15);
  --shadow-x1:     0 0 40px rgba(255,102,0,0.3);
  --transition:    all 0.2s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--secondary);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Campo de batalha - scanlines + grid */
body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0,255,102,0.012) 3px, rgba(0,255,102,0.012) 4px),
    linear-gradient(135deg, rgba(0,255,102,0.03) 0%, transparent 50%, rgba(255,68,0,0.02) 100%);
  pointer-events: none; z-index: 0;
}
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(0,255,102,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,102,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none; z-index: 0;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--secondary); }
::-webkit-scrollbar-thumb { background: var(--surface4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

/* ── Typography ── */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-heading);
  font-weight: 700; line-height: 1.2;
  letter-spacing: 0.05em;
}
.display-title { font-family: var(--font-display); letter-spacing: 0.06em; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: var(--radius);
  font-family: var(--font-heading); font-weight: 700; font-size: 0.78rem;
  cursor: pointer; border: none; text-decoration: none;
  transition: var(--transition); white-space: nowrap;
  letter-spacing: 0.08em; text-transform: uppercase; position: relative; z-index: 1;
}
.btn-primary {
  background: var(--primary); color: #000;
  box-shadow: 0 0 20px var(--primary-glow);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.btn-primary:hover {
  background: #00ff99; box-shadow: 0 0 40px var(--primary-glow);
  transform: translateY(-2px);
}
.btn-danger { background: var(--danger); color: #fff; box-shadow: 0 0 15px rgba(255,51,51,0.3); }
.btn-danger:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(255,51,51,0.5); }
.btn-secondary { background: var(--surface3); color: var(--text); border: 1px solid var(--border-mid); }
.btn-secondary:hover { background: var(--surface4); border-color: var(--primary); }
.btn-outline { background: transparent; border: 1.5px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary-dim); box-shadow: 0 0 20px var(--primary-glow); }
.btn-x1 {
  background: var(--gradient-x1); color: #fff;
  box-shadow: var(--shadow-x1); font-size: 0.85rem;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.btn-x1:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 0 50px var(--x1-glow); }
.btn-sm  { padding: 7px 14px;  font-size: 0.7rem; }
.btn-lg  { padding: 14px 32px; font-size: 0.85rem; }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; }

/* ── Cards ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
  position: relative; z-index: 1;
}
.card:hover { border-color: var(--border-mid); }
.card-war {
  border-color: rgba(255,102,0,0.2);
  background: linear-gradient(135deg, var(--surface) 0%, rgba(255,68,0,0.05) 100%);
}
.card-war:hover { border-color: rgba(255,102,0,0.5); box-shadow: var(--shadow-x1); }
.card-glow { box-shadow: var(--shadow-glow); }

/* ── Forms ── */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block; font-size: 0.72rem; font-weight: 700;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 8px; font-family: var(--font-heading);
}
.form-control {
  width: 100%; padding: 11px 14px;
  background: var(--surface2); border: 1.5px solid var(--border);
  border-radius: var(--radius); color: var(--text);
  font-family: var(--font-body); font-size: 0.95rem;
  transition: var(--transition); outline: none;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-dim); }
.form-control::placeholder { color: var(--text-dim); }
select.form-control { appearance: none; cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 100px; }

/* ── Badges ── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 4px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  font-family: var(--font-heading);
}
.badge-success { background: rgba(0,255,102,0.12); color: var(--success); border: 1px solid rgba(0,255,102,0.25); }
.badge-danger  { background: rgba(255,51,51,0.12);  color: var(--danger);  border: 1px solid rgba(255,51,51,0.25); }
.badge-warning { background: rgba(255,170,0,0.12);  color: var(--warning); border: 1px solid rgba(255,170,0,0.25); }
.badge-info    { background: rgba(0,204,255,0.12);  color: var(--info);    border: 1px solid rgba(0,204,255,0.25); }
.badge-primary { background: var(--primary-dim);    color: var(--primary); border: 1px solid var(--border-mid); }
.badge-x1      { background: rgba(255,102,0,0.15);  color: var(--x1-color);border: 1px solid rgba(255,102,0,0.3); }

/* ── Tables ── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.table th {
  background: var(--surface2); padding: 12px 14px;
  font-family: var(--font-heading); font-size: 0.65rem;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em;
  text-align: left; font-weight: 700; white-space: nowrap;
}
.table td { padding: 13px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: rgba(0,255,102,0.02); }

/* ── Alerts ── */
.alert {
  padding: 13px 16px; border-radius: var(--radius);
  font-size: 0.88rem; display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 16px; font-family: var(--font-body);
}
.alert-success { background: rgba(0,255,102,0.08); border: 1px solid rgba(0,255,102,0.25); color: var(--success); }
.alert-danger   { background: rgba(255,51,51,0.08); border: 1px solid rgba(255,51,51,0.25);  color: var(--danger); }
.alert-warning  { background: rgba(255,170,0,0.08);  border: 1px solid rgba(255,170,0,0.25); color: var(--warning); }
.alert-info     { background: rgba(0,204,255,0.08); border: 1px solid rgba(0,204,255,0.25);  color: var(--info); }

/* ── Progress Bar ── */
.progress { height: 4px; background: var(--surface3); border-radius: 2px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--primary); border-radius: 2px; transition: width 0.6s ease; }

/* ── Avatar ── */
.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface3); border: 2px solid var(--border-mid);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 700; font-size: 0.85rem;
  color: var(--primary); flex-shrink: 0; overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg  { width: 64px;  height: 64px;  font-size: 1.2rem; }
.avatar-sm  { width: 30px;  height: 30px;  font-size: 0.68rem; }

/* ── Stat Card ── */
.stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px; position: relative; overflow: hidden;
}
.stat-card::before {
  content: ''; position: absolute; bottom: -10px; right: -10px;
  width: 70px; height: 70px; background: var(--primary);
  opacity: 0.04; border-radius: 50%;
}
.stat-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: var(--gradient); opacity: 0.6;
}
.stat-value { font-family: var(--font-display); font-size: 2.4rem; color: var(--primary); line-height: 1; }
.stat-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 6px; font-family: var(--font-heading); }
.stat-icon  { font-size: 1.8rem; margin-bottom: 10px; }

/* ── Loader ── */
.loader {
  width: 36px; height: 36px; border: 3px solid var(--border);
  border-top-color: var(--primary); border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Utilities ── */
.container    { max-width: 1280px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.container-sm { max-width: 960px;  margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
@media(max-width:768px){
  .grid-2,.grid-3,.grid-4 { grid-template-columns: 1fr; }
}
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-muted   { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.text-accent  { color: var(--accent); }
.text-danger  { color: var(--danger); }
.text-success { color: var(--success); }
.text-x1      { color: var(--x1-color); }
.text-ouro    { color: var(--ouro); }
.mt-1{margin-top:4px} .mt-2{margin-top:8px} .mt-3{margin-top:12px} .mt-4{margin-top:16px}
.mb-1{margin-bottom:4px} .mb-2{margin-bottom:8px} .mb-3{margin-bottom:12px} .mb-4{margin-bottom:16px}
.w-full { width: 100%; } .hidden { display: none !important; }
.divider { height: 1px; background: var(--border); margin: 20px 0; }
.section    { padding: 60px 0; }
.section-sm { padding: 40px 0; }

/* ── Toast ── */
#toast-container {
  position: fixed; bottom: 24px; right: 24px;
  display: flex; flex-direction: column; gap: 10px; z-index: 9999;
}
.toast {
  background: var(--surface2); border: 1px solid var(--border-mid);
  border-radius: var(--radius); padding: 14px 20px;
  display: flex; align-items: center; gap: 12px; min-width: 280px;
  box-shadow: var(--shadow); animation: slideIn 0.3s ease;
  font-family: var(--font-body);
}
@keyframes slideIn { from { transform: translateX(100px); opacity: 0; } }
.toast-success { border-left: 3px solid var(--success); }
.toast-error   { border-left: 3px solid var(--danger); }
.toast-info    { border-left: 3px solid var(--info); }

/* ── Tabs ── */
.tabs { display: flex; gap: 3px; background: var(--surface2); padding: 4px; border-radius: var(--radius); }
.tab {
  flex: 1; padding: 9px 14px; border-radius: 6px;
  font-family: var(--font-heading); font-size: 0.72rem; font-weight: 700;
  color: var(--text-muted); cursor: pointer; border: none; background: none;
  transition: var(--transition); text-align: center; letter-spacing: 0.08em; text-transform: uppercase;
}
.tab.active { background: var(--surface3); color: var(--primary); border: 1px solid var(--border-mid); }
.tab:hover:not(.active) { color: var(--text); }

/* ── Search bar ── */
.search-bar {
  display: flex; align-items: center;
  background: var(--surface2); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 10px 16px; gap: 10px;
  transition: var(--transition);
}
.search-bar:focus-within { border-color: var(--primary); }
.search-bar input { background: none; border: none; outline: none; color: var(--text); font-size: 0.9rem; flex: 1; font-family: var(--font-body); }
.search-bar .icon { color: var(--text-muted); }

/* ── Pagination ── */
.pagination { display: flex; gap: 5px; justify-content: center; }
.page-btn {
  width: 36px; height: 36px; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--surface2); color: var(--text-muted); cursor: pointer;
  font-family: var(--font-heading); font-weight: 700; font-size: 0.8rem;
  transition: var(--transition); display: flex; align-items: center; justify-content: center;
}
.page-btn:hover, .page-btn.active { background: var(--primary); color: #000; border-color: var(--primary); }

/* ── Modal ── */
body.modal-open { overflow: hidden; }
.modal-overlay.hidden { display: none !important; }
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.85);
  backdrop-filter: blur(6px); z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal {
  background: var(--surface); border: 1px solid var(--border-mid);
  border-radius: var(--radius-lg); padding: 28px; max-width: 560px; width: 100%;
  max-height: 90vh; overflow-y: auto; animation: modalIn 0.25s ease;
  position: relative; z-index: 1;
}
@keyframes modalIn { from { transform: scale(0.95) translateY(10px); opacity: 0; } }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.modal-title { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; letter-spacing: 0.05em; }
.modal-close { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1.2rem; transition: var(--transition); }
.modal-close:hover { color: var(--danger); }

/* ── Match Card ── */
.match-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px;
  transition: var(--transition); position: relative; overflow: hidden;
}
.match-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: var(--gradient); opacity: 0; transition: var(--transition);
}
.match-card:hover { border-color: var(--border-mid); transform: translateY(-2px); }
.match-card:hover::before { opacity: 1; }
.match-teams { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.team-info { display: flex; align-items: center; gap: 10px; flex: 1; }
.team-info.away { flex-direction: row-reverse; }
.team-logo {
  width: 40px; height: 40px; border-radius: 8px;
  background: var(--surface2); display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; overflow: hidden; flex-shrink: 0; border: 1px solid var(--border);
}
.team-logo img { width: 100%; height: 100%; object-fit: contain; }
.team-name { font-family: var(--font-heading); font-weight: 700; font-size: 0.88rem; letter-spacing: 0.03em; }
.match-score {
  background: var(--surface2); border: 1px solid var(--border-mid);
  border-radius: 8px; padding: 8px 18px;
  font-family: var(--font-display); font-size: 1.8rem; letter-spacing: 0.05em;
  text-align: center; min-width: 74px;
}
.match-meta { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }

/* ── Ranking Positions ── */
.rank-1 { color: var(--ouro); }
.rank-2 { color: var(--prata); }
.rank-3 { color: var(--bronze); }

/* ── X1 Challenge Card ── */
.x1-card {
  background: linear-gradient(135deg, var(--surface) 0%, rgba(255,68,0,0.08) 100%);
  border: 1px solid rgba(255,102,0,0.25);
  border-radius: var(--radius-lg);
  padding: 20px; position: relative; overflow: hidden;
  transition: var(--transition);
}
.x1-card::before {
  content: '⚔️'; position: absolute; right: 16px; top: 50%;
  transform: translateY(-50%); font-size: 3rem; opacity: 0.06;
}
.x1-card:hover { border-color: rgba(255,102,0,0.5); box-shadow: var(--shadow-x1); }
.x1-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--gradient-x1); color: #fff;
  font-family: var(--font-heading); font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 4px;
}
.x1-vs {
  font-family: var(--font-display); font-size: 1.6rem;
  color: var(--x1-color); text-shadow: 0 0 20px var(--x1-glow);
  margin: 0 10px;
}

/* ── Odds bar ── */
.odds-bar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; margin-top: 8px; }
.odds-home { background: var(--primary); }
.odds-draw { background: var(--warning); }
.odds-away { background: var(--accent); }
.odds-labels { display: flex; justify-content: space-between; font-size: 0.68rem; color: var(--text-muted); margin-top: 4px; }

/* ── Landing específico ── */
.landing-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 32px; height: 66px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(5,10,5,0.92); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.landing-nav .brand {
  font-family: var(--font-display); font-size: 1.7rem;
  color: var(--primary); text-decoration: none;
  display: flex; align-items: center; gap: 10px;
  text-shadow: 0 0 20px var(--primary-glow); letter-spacing: 2px;
}
.landing-nav .brand img { height: 34px; object-fit: contain; }

/* ── Hero landing ── */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; position: relative; overflow: hidden; padding: 100px 24px 60px;
}
.hero-bg { position: absolute; inset: 0; background: var(--secondary); }
.hero-bg-img {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0.22;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,255,102,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,102,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero-orb {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, var(--primary), transparent);
  opacity: 0.07; animation: pulseOrb 6s ease-in-out infinite;
}
.hero-orb-1 { width: 700px; height: 700px; top: -200px; left: -200px; }
.hero-orb-2 { width: 500px; height: 500px; bottom: -100px; right: -100px; animation-delay: 3s; }
@keyframes pulseOrb { 0%,100%{transform:scale(1)} 50%{transform:scale(1.12)} }
.hero-content { position: relative; z-index: 1; max-width: 780px; }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 7rem);
  line-height: 0.9; color: var(--primary);
  text-shadow: 0 0 60px var(--primary-glow), 0 0 120px rgba(0,255,102,0.2);
  letter-spacing: 4px;
}
.hero-sub {
  font-size: 1.1rem; color: var(--text-muted); margin: 22px auto;
  max-width: 520px; line-height: 1.8; font-family: var(--font-body);
}
.hero-cta { display: flex; gap: 14px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 48px; justify-content: center; margin-top: 60px; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat-value { font-family: var(--font-display); font-size: 3rem; color: var(--primary); text-shadow: 0 0 20px var(--primary-glow); }
.hero-stat-label { font-family: var(--font-heading); font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.12em; margin-top: 4px; }

/* Feature cards landing */
.features { padding: 80px 0; background: var(--surface); }
.feature-card { text-align: center; padding: 30px 22px; }
.feature-icon { font-size: 2.8rem; margin-bottom: 14px; }
.feature-title { font-family: var(--font-heading); font-size: 0.9rem; font-weight: 700; margin-bottom: 8px; color: var(--primary); letter-spacing: 0.06em; text-transform: uppercase; }
.feature-desc { color: var(--text-muted); font-size: 0.88rem; line-height: 1.7; }

/* ── Modal Auth duplo ── */
.modal-box {
  width: min(100%, 880px);
  background: var(--surface);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-lg);
  display: grid; grid-template-columns: 1fr 1fr;
  overflow: hidden; max-height: 92vh; overflow-y: auto;
}
.modal-left {
  position: relative; padding: 36px 28px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  background:
    radial-gradient(ellipse 80% 50% at 20% 10%, rgba(0,255,102,0.12), transparent),
    radial-gradient(ellipse 60% 60% at 80% 90%, rgba(255,102,0,0.08), transparent),
    var(--surface2);
  overflow: hidden;
}
/* Mascote fundo */
.modal-left::after {
  content: '⚔️'; position: absolute; right: -10px; bottom: -10px;
  font-size: 8rem; opacity: 0.04; pointer-events: none;
}
.modal-left > * { position: relative; z-index: 1; }
.modal-brand { display: flex; align-items: center; gap: 10px; }
.modal-brand img { height: 28px; object-fit: contain; }
.modal-brand-name { font-family: var(--font-display); font-size: 1.6rem; color: var(--primary); letter-spacing: 3px; text-shadow: 0 0 15px var(--primary-glow); }
.modal-brand-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; margin-top: 5px;
  background: rgba(0,255,102,0.08); border: 1px solid var(--border-mid);
  border-radius: 4px; font-family: var(--font-heading);
  font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--primary);
}
.modal-copy h2 { font-family: var(--font-display); font-size: clamp(1.8rem,3.5vw,2.8rem); line-height: 0.9; color: #fff; margin-bottom: 10px; letter-spacing: 2px; }
.modal-copy h2 span { color: var(--primary); text-shadow: 0 0 20px var(--primary-glow); }
.modal-copy p { font-size: 0.84rem; color: var(--text-muted); line-height: 1.8; }
.modal-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; }
.modal-metric {
  padding: 10px 6px; background: rgba(255,255,255,0.03);
  border: 1px solid var(--border); border-radius: 6px; text-align: center;
}
.modal-metric strong { display: block; font-family: var(--font-display); font-size: 1.2rem; color: var(--primary); line-height: 1; }
.modal-metric span   { display: block; margin-top: 2px; font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); font-family: var(--font-heading); }
.modal-right { padding: 32px 28px; display: flex; flex-direction: column; justify-content: center; position: relative; }
.modal-close-btn {
  position: absolute; top: 12px; right: 12px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--surface3); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 0.9rem; color: var(--text-muted);
}
.modal-close-btn:hover { background: var(--danger); color: #fff; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.divider-or { display: flex; align-items: center; gap: 10px; margin: 12px 0; color: var(--text-muted); font-size: 0.74rem; }
.divider-or::before, .divider-or::after { content: ''; flex: 1; height: 1px; background: var(--border); }

@media(max-width:640px){
  .modal-box { grid-template-columns: 1fr; }
  .modal-left { padding: 22px 18px; }
  .modal-right { padding: 22px 18px; }
  .form-row { grid-template-columns: 1fr; }
  .modal-left::after { display: none; }
}
@media(max-width:768px){
  .modal-overlay { align-items: flex-end; padding: 0; }
  .modal { max-width: none; width: 100%; max-height: 88vh; border-radius: 14px 14px 0 0; padding: 22px; }
}

/* ── Pulse glow animation ── */
@keyframes glowPulse {
  0%,100% { box-shadow: 0 0 15px var(--primary-glow); }
  50%      { box-shadow: 0 0 35px var(--primary-glow), 0 0 60px rgba(0,255,102,0.15); }
}
@keyframes x1Pulse {
  0%,100% { box-shadow: 0 0 15px var(--x1-glow); }
  50%      { box-shadow: 0 0 35px var(--x1-glow), 0 0 60px rgba(255,102,0,0.15); }
}

/* ── Sidebar nav user ── */
.sidebar-nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: var(--radius);
  color: var(--text-muted); text-decoration: none;
  font-family: var(--font-heading); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  transition: var(--transition); border: 1px solid transparent;
}
.sidebar-link:hover { color: var(--text); background: var(--surface2); }
.sidebar-link.active { color: var(--primary); background: var(--primary-dim); border-color: var(--border-mid); }
.sidebar-link-x1 { color: var(--x1-color) !important; }
.sidebar-link-x1:hover, .sidebar-link-x1.active { background: rgba(255,102,0,0.1) !important; border-color: rgba(255,102,0,0.3) !important; }
