* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0a0a0f;
  --surface: #13131a;
  --surface2: #1c1c26;
  --border: rgba(255,255,255,0.08);
  --text: #f0f0f5;
  --muted: #888899;
  --green: #00e096;
  --red: #ff4d6d;
  --accent: #7c6cfc;
  --accent2: #00e096;
  --nav-bg: rgba(10,10,15,0.85);
  --card-shadow: 0 4px 24px rgba(0,0,0,0.4);
}
body.light {
  --bg: #f4f4f8;
  --surface: #ffffff;
  --surface2: #e8e8f0;
  --border: rgba(0,0,0,0.1);
  --text: #1a1a2e;
  --muted: #6b6b80;
  --green: #00a86b;
  --red: #e63946;
  --accent: #6c5ce7;
  --accent2: #00a86b;
  --nav-bg: rgba(255,255,255,0.9);
  --card-shadow: 0 4px 24px rgba(0,0,0,0.1);
}

body {
  font-family: 'Heebo', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  direction: inherit;
}

.noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.4;
}

/* NAV */
nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0.5rem clamp(0.75rem, 2vw, 2rem);
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  border-bottom: 0.5px solid var(--border);
}
.nav-left { display: flex; align-items: center; gap: clamp(0.15rem, 0.4vw, 0.45rem); justify-content: flex-start; min-width: 0; }
.nav-center { display: flex; align-items: center; gap: clamp(0.4rem, 1vw, 1.5rem); justify-content: center; }
.nav-right { display: flex; align-items: center; gap: clamp(0.25rem, 0.5vw, 0.6rem); justify-content: flex-end; }
.nav-logo { font-weight: 700; font-size: clamp(0.8rem, 1.1vw, 1.15rem); color: var(--accent); white-space: nowrap; }
.nav-links { display: flex; gap: clamp(0.5rem, 1.2vw, 2rem); }
.nav-links a { color: var(--muted); text-decoration: none; font-size: clamp(0.72rem, 0.85vw, 0.95rem); transition: color 0.2s; white-space: nowrap; }
.nav-links a:hover { color: var(--text); }
.nav-active { color: var(--accent) !important; }

/* HEADER */
header {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 8rem 2rem 4rem; text-align: center;
  position: relative; overflow: hidden;
}
header::before {
  content: ''; position: absolute; top: -200px; right: -200px;
  width: 800px; height: 800px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124,108,252,0.18) 0%, transparent 70%);
  pointer-events: none;
}
header::after {
  content: ''; position: absolute; bottom: -100px; left: -100px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,224,150,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.header-content { max-width: 900px; width: 100%; animation: fadeUp 0.8s ease; }
.tag {
  display: inline-block; padding: 5px 18px;
  border: 0.5px solid var(--accent); border-radius: 100px;
  font-size: 0.85rem; color: var(--accent); margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}
h1 { font-size: clamp(3rem, 7vw, 6rem); font-weight: 900; line-height: 1.08; margin-bottom: 1.2rem; }
.accent { color: var(--accent); }
.subtitle { font-size: clamp(1rem, 1.5vw, 1.25rem); color: var(--muted); margin-bottom: 2.5rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.header-stats { display: flex; gap: 3rem; justify-content: center; }
.stat { display: flex; flex-direction: column; gap: 2px; align-items: center; }
.stat-num { font-size: clamp(2rem, 3vw, 2.8rem); font-weight: 700; color: var(--green); }
.stat-lbl { font-size: 0.85rem; color: var(--muted); }

/* TICKER */
.ticker-wrap {
  position: absolute; bottom: 0; left: 0; right: 0;
  overflow: hidden; background: var(--surface);
  border-top: 0.5px solid var(--border); padding: 10px 0;
}
.ticker { display: flex; gap: 3rem; animation: ticker 20s linear infinite; white-space: nowrap; }
.tick { font-size: 0.85rem; font-weight: 500; font-family: monospace; }
.tick.up { color: var(--green); }
.tick.down { color: var(--red); }

/* SECTIONS */
section { padding: 5rem 2rem; max-width: 1100px; margin: 0 auto; }
.section-header { margin-bottom: 3rem; }
.section-header h2 { font-size: 2rem; font-weight: 700; margin-bottom: 0.5rem; }
.section-header p { color: var(--muted); }

/* LESSONS GRID */
.lessons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.lesson-card {
  background: var(--surface); border: 0.5px solid var(--border);
  border-radius: 16px; padding: 1.5rem; cursor: pointer;
  transition: all 0.25s; position: relative; overflow: hidden;
}
.lesson-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(124,108,252,0.05), transparent);
  opacity: 0; transition: opacity 0.25s;
}
.lesson-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.lesson-card:hover::before { opacity: 1; }
.lesson-num { font-size: 0.75rem; color: var(--accent); font-weight: 700; margin-bottom: 0.8rem; letter-spacing: 0.1em; }
.lesson-icon { font-size: 2rem; margin-bottom: 0.8rem; }
.lesson-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.lesson-card p { font-size: 0.85rem; color: var(--muted); line-height: 1.6; margin-bottom: 1rem; }
.lesson-tag {
  display: inline-block; padding: 3px 10px; border-radius: 100px;
  font-size: 0.7rem; background: rgba(124,108,252,0.15); color: var(--accent);
}

/* MODAL */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.8); backdrop-filter: blur(8px);
  align-items: center; justify-content: center; padding: 2rem;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--surface); border: 0.5px solid var(--border);
  border-radius: 20px; padding: 2.5rem; max-width: 600px; width: 100%;
  max-height: 80vh; overflow-y: auto; position: relative;
  animation: fadeUp 0.3s ease;
}
.modal-close {
  position: absolute; top: 1rem; left: 1rem;
  background: var(--surface2); border: none; color: var(--muted);
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
  font-size: 0.9rem; display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { color: var(--text); }
#modal-content h2 { font-size: 1.5rem; margin-bottom: 1rem; }
#modal-content p { color: var(--muted); line-height: 1.8; margin-bottom: 1rem; font-size: 0.95rem; }
#modal-content .highlight {
  background: var(--surface2); border-right: 3px solid var(--accent);
  padding: 1rem 1.2rem; border-radius: 8px; margin: 1rem 0;
  color: var(--text); font-size: 0.9rem; line-height: 1.7;
}
#modal-content ul { padding-right: 1.2rem; }
#modal-content li { color: var(--muted); margin-bottom: 0.5rem; line-height: 1.7; font-size: 0.9rem; }

/* CALCULATOR */
.calc-card {
  background: var(--surface); border: 0.5px solid var(--border);
  border-radius: 20px; padding: 2rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
}
@media (max-width: 600px) { .calc-card { grid-template-columns: 1fr; } }
.input-group { margin-bottom: 1.5rem; }
.input-group label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 0.5rem; }
.input-row { display: flex; align-items: center; gap: 1rem; }
.input-row input[type=range] { flex: 1; accent-color: var(--accent); }
.input-row span { font-size: 0.9rem; font-weight: 600; min-width: 70px; color: var(--text); }
.calc-results { display: flex; flex-direction: column; justify-content: center; }
.result-big { font-size: 3rem; font-weight: 900; color: var(--green); margin-bottom: 0.3rem; }
.result-label { font-size: 0.85rem; color: var(--muted); margin-bottom: 2rem; }
.result-row { display: flex; justify-content: space-between; padding: 0.7rem 0; border-bottom: 0.5px solid var(--border); font-size: 0.9rem; }
.result-row span:last-child { font-weight: 600; }
.result-row.green span:last-child { color: var(--green); }

/* QUIZ */
.quiz-card { background: var(--surface); border: 0.5px solid var(--border); border-radius: 20px; padding: 2rem; }
.quiz-question { font-size: 1.1rem; font-weight: 600; margin-bottom: 1.5rem; }
.quiz-options { display: flex; flex-direction: column; gap: 0.7rem; }
.quiz-option {
  background: var(--surface2); border: 0.5px solid var(--border);
  border-radius: 10px; padding: 0.9rem 1.2rem; cursor: pointer;
  font-size: 0.9rem; color: var(--muted); transition: all 0.2s; text-align: right;
}
.quiz-option:hover { border-color: var(--accent); color: var(--text); }
.quiz-option.correct { border-color: var(--green); color: var(--green); background: rgba(0,224,150,0.08); }
.quiz-option.wrong { border-color: var(--red); color: var(--red); background: rgba(255,77,109,0.08); }
.quiz-feedback { margin-top: 1rem; font-size: 0.9rem; line-height: 1.7; padding: 1rem; border-radius: 10px; }
.quiz-feedback.correct { background: rgba(0,224,150,0.08); color: var(--green); }
.quiz-feedback.wrong { background: rgba(255,77,109,0.08); color: var(--red); }
.quiz-next {
  margin-top: 1.5rem; padding: 0.8rem 2rem; background: var(--accent);
  border: none; border-radius: 10px; color: white; font-family: 'Heebo', sans-serif;
  font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: opacity 0.2s;
}
.quiz-next:hover { opacity: 0.85; }
.quiz-score { text-align: center; padding: 2rem; }
.quiz-score .score-num { font-size: 4rem; font-weight: 900; color: var(--green); }
.quiz-score p { color: var(--muted); margin-top: 0.5rem; }
.quiz-restart {
  margin-top: 1.5rem; padding: 0.8rem 2rem; background: transparent;
  border: 0.5px solid var(--accent); border-radius: 10px; color: var(--accent);
  font-family: 'Heebo', sans-serif; font-size: 0.95rem; cursor: pointer;
}

/* ===== LESSON PAGE ===== */
#lesson-page {
  position: fixed; inset: 0; z-index: 150;
  background: var(--bg); overflow-y: auto;
}
.lp-topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(10,10,15,0.9); backdrop-filter: blur(20px);
  border-bottom: 0.5px solid var(--border);
}
.lp-back {
  background: var(--surface2); border: 0.5px solid var(--border);
  color: var(--text); border-radius: 8px; padding: 0.5rem 1rem;
  font-family: 'Heebo', sans-serif; font-size: 0.9rem; cursor: pointer;
  transition: border-color 0.2s;
}
.lp-back:hover { border-color: var(--accent); color: var(--accent); }
.lp-progress { font-size: 0.8rem; color: var(--muted); }
.lp-body { max-width: 860px; margin: 0 auto; padding: 3rem 2rem 5rem; }

.lp-hero { margin-bottom: 3rem; }
.lp-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.lp-tag-chip {
  display: inline-block; padding: 3px 12px; border-radius: 100px;
  font-size: 0.75rem; background: rgba(124,108,252,0.15); color: var(--accent);
  margin-bottom: 1rem;
}
.lp-title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; margin-bottom: 0.8rem; }
.lp-lead { font-size: 1.1rem; color: var(--muted); line-height: 1.8; max-width: 680px; }

.lp-section { margin-bottom: 2.5rem; }
.lp-section-title {
  font-size: 1.2rem; font-weight: 700; margin-bottom: 1rem;
  padding-bottom: 0.5rem; border-bottom: 0.5px solid var(--border);
  color: var(--text);
}
.lp-text { color: var(--muted); line-height: 1.9; font-size: 0.95rem; margin-bottom: 1rem; }
.lp-highlight {
  background: var(--surface); border-right: 3px solid var(--accent);
  border-radius: 8px; padding: 1rem 1.2rem; margin: 1rem 0;
  color: var(--text); font-size: 0.93rem; line-height: 1.8;
}
.lp-highlight.green { border-color: var(--green); }
.lp-highlight.red { border-color: var(--red); }

.lp-chart-card {
  background: var(--surface); border: 0.5px solid var(--border);
  border-radius: 16px; padding: 1.5rem; margin: 1.5rem 0;
}
.lp-chart-title { font-size: 0.85rem; color: var(--muted); margin-bottom: 1rem; font-weight: 600; }
.lp-chart-wrap { position: relative; height: 240px; }

.lp-cards-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin: 1rem 0; }
.lp-mini-card {
  background: var(--surface); border: 0.5px solid var(--border);
  border-radius: 12px; padding: 1.2rem; text-align: center;
}
.lp-mini-num { font-size: 1.8rem; font-weight: 900; color: var(--green); }
.lp-mini-lbl { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }

.lp-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; margin: 1rem 0; }
.lp-list li {
  background: var(--surface); border: 0.5px solid var(--border);
  border-radius: 10px; padding: 0.8rem 1rem;
  font-size: 0.9rem; color: var(--muted); display: flex; gap: 0.6rem;
}
.lp-list li strong { color: var(--text); }

.lp-nav-btns { display: flex; justify-content: space-between; margin-top: 3rem; gap: 1rem; }
.lp-nav-btn {
  flex: 1; padding: 0.85rem; background: var(--surface);
  border: 0.5px solid var(--border); border-radius: 10px;
  color: var(--text); font-family: 'Heebo', sans-serif; font-size: 0.9rem;
  cursor: pointer; transition: border-color 0.2s;
}
.lp-nav-btn:hover { border-color: var(--accent); }
.lp-nav-btn.next { background: var(--accent); border-color: var(--accent); font-weight: 700; }

.price-alt { font-size: 1.2rem; color: var(--muted); font-weight: 400; }

/* ===== AUTH & PAYMENT ===== */
.nav-btn {
  background: var(--accent); color: white; border: none;
  padding: clamp(0.28rem, 0.4vw, 0.42rem) clamp(0.55rem, 0.9vw, 1.1rem);
  border-radius: 8px; font-family: 'Heebo', sans-serif;
  font-size: clamp(0.7rem, 0.8vw, 0.88rem); font-weight: 600;
  cursor: pointer; transition: opacity 0.2s; white-space: nowrap;
}
.nav-btn:hover { opacity: 0.85; }
.theme-toggle-btn {
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--text);
  width: clamp(26px, 2.2vw, 34px); height: clamp(26px, 2.2vw, 34px);
  border-radius: 50%; font-size: clamp(0.8rem, 0.9vw, 1rem);
  cursor: pointer; transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.theme-toggle-btn:hover { border-color: var(--accent); transform: scale(1.1); }
.nav-icon-btn {
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--text);
  width: clamp(24px, 2vw, 32px); height: clamp(24px, 2vw, 32px);
  border-radius: 8px; font-size: clamp(0.78rem, 0.85vw, 0.95rem);
  cursor: pointer; transition: all 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.nav-icon-btn:hover { border-color: var(--accent); }
.nav-logout-btn {
  background: none; border: 1px solid var(--border); color: var(--muted);
  padding: clamp(0.22rem, 0.3vw, 0.32rem) clamp(0.4rem, 0.65vw, 0.75rem);
  border-radius: 8px; font-size: clamp(0.68rem, 0.75vw, 0.82rem);
  font-family: 'Heebo', sans-serif; cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.nav-logout-btn:hover { border-color: var(--red); color: var(--red); }

.auth-modal-content, .payment-modal-content, .success-modal-content { max-width: 420px; }

.auth-tabs {
  display: flex; gap: 4px; margin-bottom: 1.5rem;
  background: var(--surface2); border-radius: 10px; padding: 4px;
}
.auth-tab {
  flex: 1; padding: 0.5rem; background: transparent; border: none;
  border-radius: 8px; color: var(--muted); font-family: 'Heebo', sans-serif;
  font-size: 0.9rem; cursor: pointer; transition: all 0.2s;
}
.auth-tab.active { background: var(--accent); color: white; font-weight: 600; }

.auth-subtitle { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.5rem; margin-top: 0.3rem; }

.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.8rem; color: var(--muted); margin-bottom: 0.4rem; }
.form-group input {
  width: 100%; background: var(--surface2); border: 0.5px solid var(--border);
  border-radius: 8px; padding: 0.75rem 1rem; color: var(--text);
  font-family: 'Heebo', sans-serif; font-size: 0.9rem; outline: none;
  transition: border-color 0.2s; direction: ltr; text-align: right;
}
.form-group input:focus { border-color: var(--accent); }
.form-group input::placeholder { color: var(--muted); opacity: 0.6; }

.btn-primary {
  width: 100%; padding: 0.85rem; background: var(--accent); border: none;
  border-radius: 10px; color: white; font-family: 'Heebo', sans-serif;
  font-size: 1rem; font-weight: 700; cursor: pointer; transition: opacity 0.2s;
  margin-top: 0.5rem; display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.btn-primary:hover { opacity: 0.85; }

.payment-header { text-align: center; margin-bottom: 1rem; }
.payment-icon { font-size: 2.5rem; margin-bottom: 0.3rem; }
.currency-picker {
  display: flex; gap: 0.5rem; justify-content: center;
  flex-wrap: wrap; margin-bottom: 0.8rem;
}
.pay-opt-btn {
  background: var(--surface2); border: 1.5px solid var(--border);
  color: var(--text); border-radius: 10px; padding: 0.4rem 0.9rem;
  font-size: 0.9rem; font-weight: 600; cursor: pointer;
  transition: all 0.2s;
}
.pay-opt-btn:hover { border-color: var(--green); }
.pay-opt-btn.selected {
  background: var(--green); color: #000;
  border-color: var(--green);
}
.price-badge {
  text-align: center; font-size: 2.8rem; font-weight: 900;
  color: var(--green); margin-bottom: 1.2rem;
}
.payment-features {
  background: var(--surface2); border-radius: 10px; padding: 1rem;
  margin-bottom: 1.2rem; display: flex; flex-direction: column; gap: 0.5rem;
}
.feature-item { font-size: 0.85rem; color: var(--muted); }
.divider { height: 0.5px; background: var(--border); margin-bottom: 1.2rem; }
.payment-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.card-input-wrapper { position: relative; }
.card-input-wrapper input { padding-left: 2.5rem; }
.card-icon { position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); font-size: 1rem; pointer-events: none; }
.secure-note { text-align: center; font-size: 0.75rem; color: var(--muted); margin-top: 0.75rem; }

.success-modal-content { text-align: center; }
.success-icon { font-size: 3rem; margin-bottom: 1rem; }
.email-sent-box {
  display: flex; align-items: center; gap: 1rem;
  background: var(--surface2); border-radius: 10px; padding: 1rem;
  margin: 1.5rem 0; text-align: right;
}
.email-icon { font-size: 2rem; flex-shrink: 0; }
.email-sent-title { font-size: 0.9rem; font-weight: 600; }
.email-sent-sub { font-size: 0.8rem; color: var(--accent); margin-top: 2px; }
.access-code-box {
  background: var(--surface2); border: 0.5px solid var(--accent);
  border-radius: 10px; padding: 1rem; margin-bottom: 1.5rem;
}
.access-code-label { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.4rem; }
.access-code { font-size: 1.5rem; font-weight: 900; color: var(--green); letter-spacing: 0.1em; font-family: monospace; }

/* ===== GAMES ===== */
.games-tabs-row { display: flex; gap: 0.5rem; margin-bottom: 2rem; }
.game-tab-btn {
  padding: 0.7rem 1.5rem;
  background: var(--surface); border: 0.5px solid var(--border);
  border-radius: 10px; color: var(--muted);
  font-family: 'Heebo', sans-serif; font-size: 0.95rem; cursor: pointer;
  transition: all 0.2s;
}
.game-tab-btn.active { background: var(--accent); border-color: var(--accent); color: white; font-weight: 700; }
.sg-header {
  display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-bottom: 1.5rem;
}
.sg-stat-card {
  background: var(--surface); border: 0.5px solid var(--border);
  border-radius: 12px; padding: 0.8rem 1.2rem; min-width: 110px;
}
.sg-stat-val { font-size: 1.1rem; font-weight: 700; }
.sg-stat-lbl { font-size: 0.72rem; color: var(--muted); margin-top: 2px; }
.sg-reset-btn {
  margin-right: auto; padding: 0.6rem 1rem;
  background: var(--surface2); border: 0.5px solid var(--border);
  border-radius: 8px; color: var(--muted);
  font-family: 'Heebo', sans-serif; font-size: 0.85rem; cursor: pointer;
}
.sg-reset-btn:hover { color: var(--text); border-color: var(--accent); }
.sg-news-bar {
  background: var(--surface); border: 0.5px solid var(--accent);
  border-radius: 10px; padding: 0.6rem 1rem;
  font-size: 0.85rem; color: var(--accent); margin-bottom: 1.5rem;
  min-height: 36px;
}
.sg-layout { display: grid; grid-template-columns: 1fr 300px; gap: 1.5rem; }
@media (max-width: 900px) { .sg-layout { grid-template-columns: 1fr; } }
.sg-filter-row { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.sg-search {
  flex: 1; background: var(--surface); border: 0.5px solid var(--border);
  border-radius: 8px; padding: 0.6rem 1rem; color: var(--text);
  font-family: 'Heebo', sans-serif; font-size: 0.85rem; outline: none; direction: rtl;
}
.sg-search:focus { border-color: var(--accent); }
.sg-select {
  background: var(--surface); border: 0.5px solid var(--border);
  border-radius: 8px; padding: 0.6rem 0.8rem; color: var(--text);
  font-family: 'Heebo', sans-serif; font-size: 0.85rem; outline: none; cursor: pointer;
}
.sg-stocks-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 0.75rem; max-height: 62vh; overflow-y: auto; padding-left: 4px;
}
.sg-stock-card {
  background: var(--surface); border: 0.5px solid var(--border);
  border-radius: 12px; padding: 1rem; cursor: default; transition: border-color 0.2s;
}
.sg-stock-card:hover { border-color: rgba(124,108,252,0.4); }
.sg-stock-sym { font-size: 0.72rem; color: var(--accent); font-weight: 700; letter-spacing: 0.06em; }
.sg-stock-name { font-size: 0.82rem; font-weight: 600; margin: 2px 0; }
.sg-stock-sector { font-size: 0.68rem; color: var(--muted); margin-bottom: 0.5rem; }
.sg-stock-price { font-size: 1.15rem; font-weight: 900; }
.sg-stock-change { font-size: 0.78rem; font-weight: 600; }
.sg-stock-change.up { color: var(--green); }
.sg-stock-change.down { color: var(--red); }
.sg-stock-actions { display: flex; gap: 0.4rem; margin-top: 0.7rem; }
.sg-buy-btn, .sg-sell-btn {
  flex: 1; padding: 0.4rem 0.3rem; border: none; border-radius: 6px;
  font-family: 'Heebo', sans-serif; font-size: 0.75rem; font-weight: 600; cursor: pointer; transition: opacity 0.2s;
}
.sg-buy-btn { background: rgba(0,224,150,0.2); color: var(--green); }
.sg-buy-btn:hover { background: rgba(0,224,150,0.35); }
.sg-sell-btn { background: rgba(255,77,109,0.2); color: var(--red); }
.sg-sell-btn:hover { background: rgba(255,77,109,0.35); }
.sg-portfolio-panel {
  background: var(--surface); border: 0.5px solid var(--border);
  border-radius: 16px; padding: 1.2rem; max-height: 65vh; overflow-y: auto;
}
.sg-panel-title { font-size: 0.88rem; font-weight: 700; color: var(--muted); }
.sg-holding-row {
  display: flex; flex-direction: column; gap: 2px;
  padding: 0.65rem 0; border-bottom: 0.5px solid var(--border); font-size: 0.85rem;
}
.sg-holding-top { display: flex; justify-content: space-between; }
.sg-holding-sym { font-weight: 700; color: var(--accent); }
.sg-holding-val { font-weight: 600; }
.sg-holding-detail { display: flex; justify-content: space-between; font-size: 0.73rem; color: var(--muted); margin-top: 2px; }
.sg-holding-pnl.pos { color: var(--green); }
.sg-holding-pnl.neg { color: var(--red); }
.sg-empty { color: var(--muted); font-size: 0.85rem; text-align: center; padding: 2rem 0; line-height: 1.7; }

/* DROP GAME */
.dg-layout { display: grid; grid-template-columns: 1fr 320px; gap: 1.5rem; }
@media (max-width: 900px) { .dg-layout { grid-template-columns: 1fr; } }
.dg-products-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.dg-product-card {
  background: var(--surface); border: 0.5px solid var(--border); border-radius: 14px; padding: 1.2rem;
}
.dg-product-icon { font-size: 1.8rem; margin-bottom: 0.4rem; }
.dg-product-name { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.25rem; }
.dg-product-cost { font-size: 0.75rem; color: var(--muted); margin-bottom: 0.8rem; }
.dg-price-row { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.4rem; }
.dg-price-row label { font-size: 0.73rem; color: var(--muted); min-width: 70px; }
.dg-price-input {
  width: 72px; background: var(--surface2); border: 0.5px solid var(--border);
  border-radius: 6px; padding: 0.28rem 0.4rem; color: var(--text);
  font-family: 'Heebo', sans-serif; font-size: 0.83rem; outline: none; text-align: center;
}
.dg-price-input:focus { border-color: var(--accent); }
.dg-margin { font-size: 0.78rem; margin-top: 0.4rem; }
.dg-margin.good { color: var(--green); }
.dg-margin.bad { color: var(--red); }
.dg-demand-bar { height: 4px; background: var(--surface2); border-radius: 2px; margin-top: 0.6rem; overflow: hidden; }
.dg-demand-fill { height: 100%; background: var(--accent); border-radius: 2px; transition: width 0.5s; }
.dg-demand-lbl { font-size: 0.68rem; color: var(--muted); margin-top: 3px; }
.dg-feed-panel {
  background: var(--surface); border: 0.5px solid var(--border);
  border-radius: 16px; padding: 1.2rem; max-height: 65vh; overflow-y: auto;
}
.dg-feed-item { padding: 0.45rem 0; border-bottom: 0.5px solid var(--border); font-size: 0.8rem; animation: fadeUp 0.3s ease; }
.dg-feed-item.sale { color: var(--green); }
.dg-feed-item.pass { color: var(--muted); opacity: 0.7; }
.dg-feed-item.event { color: var(--accent); font-weight: 600; }
.dg-tip {
  margin-top: 1rem; padding: 0.8rem; background: var(--surface2);
  border-radius: 8px; font-size: 0.8rem; color: var(--accent);
  border-right: 3px solid var(--accent); display: none;
}

/* ===== LANGUAGE PICKER ===== */
.lang-picker { position: relative; }
.lang-btn {
  background: var(--surface2); border: 0.5px solid var(--border);
  color: var(--text); border-radius: 8px; padding: 0.4rem 0.8rem;
  font-family: 'Heebo', sans-serif; font-size: 0.85rem; cursor: pointer;
  transition: border-color 0.2s; white-space: nowrap;
}
.lang-btn:hover { border-color: var(--accent); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--surface); border: 0.5px solid var(--border);
  border-radius: 10px; padding: 0.4rem; z-index: 300;
  min-width: 150px; box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.lang-menu button {
  display: block; width: 100%; padding: 0.5rem 0.8rem;
  background: none; border: none; color: var(--muted);
  font-family: 'Heebo', sans-serif; font-size: 0.85rem;
  cursor: pointer; border-radius: 6px; text-align: left;
  transition: background 0.15s;
}
.lang-menu button:hover { background: var(--surface2); color: var(--text); }

footer {
  border-top: 0.5px solid var(--border);
  padding: 3rem 2rem 2rem;
  background: var(--bg);
}
.footer-inner {
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  max-width: 600px; margin: 0 auto; text-align: center;
}
.footer-brand {
  display: flex; align-items: center; gap: 0.6rem;
}
.footer-logo {
  width: 36px; height: 36px; object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(167,139,250,0.4));
}
.footer-name {
  font-size: 1.2rem; font-weight: 800; color: var(--text);
  letter-spacing: 0.02em;
}
.footer-tagline {
  font-size: 0.85rem; color: var(--muted); margin: 0;
}
.footer-copy {
  font-size: 0.75rem; color: var(--muted); opacity: 0.6; margin: 0.4rem 0 0;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== CHATBOTS ===== */
.chat-fab {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 1000;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent); border: none; font-size: 1.5rem;
  cursor: pointer; box-shadow: 0 4px 20px rgba(108,99,255,0.4);
  transition: transform 0.2s;
}
.chat-fab:hover { transform: scale(1.1); }
.admin-fab { background: #e67e22; box-shadow: 0 4px 20px rgba(230,126,34,0.4); right: 5rem; }
.chat-box {
  position: fixed; bottom: 5rem; right: 1.5rem; z-index: 999;
  width: 340px; height: 480px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 16px;
  display: flex; flex-direction: column;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
.admin-chat-box { right: 5rem; border-color: #e67e22; }
.chat-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.75rem 1rem; background: var(--accent);
  border-radius: 16px 16px 0 0; font-weight: 700; font-size: 0.9rem;
}
.admin-header { background: #e67e22; }
.chat-header button { background: none; border: none; color: #fff; font-size: 1rem; cursor: pointer; }
.chat-messages {
  flex: 1; overflow-y: auto; padding: 0.75rem; display: flex;
  flex-direction: column; gap: 0.6rem; font-size: 0.85rem;
}
.chat-msg { padding: 0.5rem 0.75rem; border-radius: 10px; max-width: 85%; line-height: 1.5; }
.chat-msg.user { background: var(--accent); color: #fff; align-self: flex-end; border-radius: 10px 10px 2px 10px; }
.chat-msg.bot { background: var(--surface2); color: var(--text); align-self: flex-start; border-radius: 10px 10px 10px 2px; }
.chat-msg.typing { color: var(--muted); font-style: italic; }
.chat-input-row {
  display: flex; gap: 0.4rem; padding: 0.6rem;
  border-top: 1px solid var(--border);
}
.chat-input-row input {
  flex: 1; background: var(--surface2); border: 1px solid var(--border);
  color: var(--text); border-radius: 8px; padding: 0.5rem 0.75rem;
  font-size: 0.85rem; font-family: 'Heebo', sans-serif;
}
.chat-input-row button {
  background: var(--accent); border: none; color: #fff;
  border-radius: 8px; padding: 0.5rem 0.75rem; cursor: pointer; font-size: 1rem;
}
.chat-powered { text-align: center; font-size: 0.65rem; color: var(--muted); padding: 0.3rem; }

/* ===== ADMIN PANEL ===== */
.admin-nav-pill {
  background: linear-gradient(135deg,#e67e22,#f39c12);
  border: none; color: #fff; font-weight: 700;
  font-size: clamp(0.68rem, 0.75vw, 0.82rem);
  padding: clamp(0.25rem, 0.35vw, 0.38rem) clamp(0.5rem, 0.75vw, 0.9rem);
  border-radius: 20px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.3rem;
  box-shadow: 0 2px 10px rgba(230,126,34,0.35); transition: opacity 0.2s;
  white-space: nowrap;
}
.admin-nav-pill:hover { opacity: 0.85; }
#admin-panel-modal {
  display: none; position: fixed; inset: 0; z-index: 1100;
  background: rgba(0,0,0,0.75); backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
}
#admin-panel-modal.open { display: flex; }
.admin-panel-content {
  width: 880px; max-width: 96vw; height: 600px; max-height: 90vh;
  background: #0d0d1a; border: 1px solid #2a2a3e; border-radius: 20px;
  display: flex; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}
.admin-panel-sidebar {
  width: 200px; min-width: 200px; background: #090912;
  border-right: 1px solid #1e1e2e; padding: 1.2rem;
  display: flex; flex-direction: column; gap: 0.75rem;
}
.admin-panel-logo { font-size: 1rem; font-weight: 800; color: #f39c12; }
.admin-panel-user { font-size: 0.75rem; color: #666; }
.admin-nav-links { display: flex; flex-direction: column; gap: 0.3rem; margin-top: 0.5rem; }
.admin-nav-btn {
  background: none; border: none; color: #888; text-align: left;
  padding: 0.5rem 0.75rem; border-radius: 8px; cursor: pointer;
  font-size: 0.82rem; font-family: 'Heebo', sans-serif; transition: all 0.15s;
}
.admin-nav-btn:hover { background: #1a1a2e; color: #fff; }
.admin-nav-btn.active { background: #1e1e3a; color: #f39c12; font-weight: 600; }
.admin-api-section { margin-top: auto; padding-top: 0.75rem; border-top: 1px solid #1e1e2e; }
.admin-close-btn {
  background: none; border: 1px solid #333; color: #666;
  padding: 0.4rem; border-radius: 8px; cursor: pointer; font-size: 0.8rem;
  width: 100%; transition: all 0.15s;
}
.admin-close-btn:hover { border-color: #e74c3c; color: #e74c3c; }
.admin-panel-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.admin-tab { display: flex; flex-direction: column; height: 100%; }
.admin-chat-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.75rem 1.25rem; border-bottom: 1px solid #1e1e2e;
  font-weight: 700; font-size: 0.9rem;
}
.admin-chat-messages {
  flex: 1; overflow-y: auto; padding: 1rem; display: flex;
  flex-direction: column; gap: 0.75rem;
}
.admin-chat-messages .chat-msg.bot {
  background: #131325; border: 1px solid #2a2a3e;
  white-space: pre-wrap; font-size: 0.85rem; max-width: 95%;
}
.admin-chat-messages .chat-msg.user { background: #e67e22; max-width: 80%; }
.admin-chat-input-area {
  padding: 0.75rem 1rem; border-top: 1px solid #1e1e2e;
  display: flex; gap: 0.5rem; align-items: flex-end;
}
.admin-chat-input-area textarea {
  flex: 1; background: #131325; border: 1px solid #2a2a3e;
  color: #fff; border-radius: 10px; padding: 0.6rem 0.9rem;
  font-size: 0.85rem; font-family: 'Heebo', sans-serif;
  resize: none; line-height: 1.5;
}
.admin-send-btn {
  background: linear-gradient(135deg,#e67e22,#f39c12); border: none;
  color: #fff; font-weight: 700; border-radius: 10px;
  padding: 0.6rem 1rem; cursor: pointer; font-size: 0.85rem; white-space: nowrap;
}
.admin-info-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 1.5rem;
}
.admin-info-card {
  background: #131325; border: 1px solid #1e1e2e; border-radius: 12px;
  padding: 1.2rem; text-align: center;
}
.admin-info-num { font-size: 2.2rem; font-weight: 900; color: #f39c12; }
.admin-info-label { font-size: 0.8rem; color: #888; margin-top: 0.25rem; }
.lesson-reactions { display:flex; align-items:center; gap:0.75rem; padding:1.25rem 2rem 0; margin-top:1rem; border-top:1px solid var(--border); }
.rxn-btn { background:var(--surface2); border:1px solid var(--border); color:var(--text); padding:0.4rem 1rem; border-radius:20px; cursor:pointer; font-size:0.9rem; transition:all 0.2s; }
.rxn-btn:hover { border-color:var(--accent); }
.rxn-active { background:rgba(0,224,150,0.15); border-color:var(--green); color:var(--green); }
.rxn-active-red { background:rgba(255,77,109,0.15); border-color:var(--red); color:var(--red); }
.rxn-label { font-size:0.8rem; color:var(--muted); }
.comments-section { padding:1.25rem 2rem 2rem; }
.comments-title { font-weight:700; font-size:1rem; margin-bottom:1rem; }
.comment-input-row { display:flex; gap:0.5rem; margin-bottom:1.25rem; }
.comment-item { background:var(--surface); border:1px solid var(--border); border-radius:12px; padding:0.85rem 1rem; margin-bottom:0.65rem; }
.comment-header { display:flex; align-items:center; gap:0.5rem; margin-bottom:0.4rem; }
.comment-author { font-weight:700; font-size:0.85rem; }
.comment-time { font-size:0.72rem; color:var(--muted); margin-left:auto; }
.comment-del { background:none; border:none; cursor:pointer; font-size:0.8rem; opacity:0.5; transition:opacity 0.2s; }
.comment-del:hover { opacity:1; }
.comment-text { font-size:0.88rem; line-height:1.55; margin-bottom:0.5rem; color:var(--text); }
.comment-reactions { display:flex; gap:0.5rem; }
.comment-rxn { background:none; border:1px solid var(--border); color:var(--muted); padding:0.2rem 0.55rem; border-radius:12px; cursor:pointer; font-size:0.78rem; transition:all 0.15s; }
.comment-rxn:hover { border-color:var(--accent); }
.comment-empty { text-align:center; color:var(--muted); font-size:0.85rem; padding:1.5rem 0; }
.friends-section-title { font-size:0.75rem; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:0.05em; margin-bottom:0.5rem; }
.friend-row { display:flex; align-items:center; justify-content:space-between; padding:0.6rem 0; border-bottom:1px solid var(--border); }
.friend-info { display:flex; flex-direction:column; gap:0.15rem; }
.friend-name { font-weight:600; font-size:0.88rem; }
.friend-email { font-size:0.75rem; color:var(--muted); }
.friend-accept-btn { background:var(--green); border:none; color:#000; padding:0.25rem 0.6rem; border-radius:6px; cursor:pointer; font-size:0.75rem; font-weight:700; }
.friend-decline-btn { background:none; border:1px solid var(--border); color:var(--muted); padding:0.25rem 0.5rem; border-radius:6px; cursor:pointer; font-size:0.75rem; transition:all 0.15s; }
.friend-decline-btn:hover { border-color:var(--red); color:var(--red); }
.lb-row { display:grid; grid-template-columns:2rem 1fr auto auto auto; align-items:center; gap:0.5rem; padding:0.55rem 0.25rem; border-bottom:1px solid var(--border); font-size:0.85rem; }
.lb-me { background:rgba(124,108,252,0.08); border-radius:8px; }
.lb-rank { font-weight:800; }
.lb-name { font-weight:600; }
.lb-xp { color:#f39c12; font-weight:700; font-size:0.8rem; }
.lb-streak { color:#e67e22; font-size:0.8rem; }
.lb-badges { color:var(--muted); font-size:0.8rem; }
.badge-item { display:flex; flex-direction:column; align-items:center; gap:0.2rem; padding:0.5rem 0.6rem; border-radius:10px; border:1px solid var(--border); font-size:1.3rem; min-width:60px; text-align:center; transition:all 0.2s; }
.badge-item.earned { border-color:#f39c12; background:rgba(243,156,18,0.08); }
.badge-item.locked { opacity:0.3; filter:grayscale(1); }
#notif-banner {
  position: fixed; top: 60px; left: 0; right: 0; z-index: 90;
  background: linear-gradient(135deg, #f39c12, #e67e22);
  color: #fff; padding: 0.6rem 2rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; font-weight: 600;
  box-shadow: 0 2px 12px rgba(243,156,18,0.4);
  animation: slideDown 0.3s ease;
}
@keyframes slideDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }
.admin-users-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.75rem 1.25rem; border-bottom: 1px solid #1e1e2e;
  font-weight: 700; font-size: 0.9rem;
}
.admin-users-list { flex: 1; overflow-y: auto; padding: 0.75rem; display: flex; flex-direction: column; gap: 0.5rem; }
.admin-user-row {
  display: flex; align-items: center; justify-content: space-between;
  background: #131325; border: 1px solid #1e1e2e; border-radius: 10px;
  padding: 0.6rem 1rem; font-size: 0.85rem;
}
.admin-user-info { display: flex; flex-direction: column; gap: 0.15rem; }
.admin-user-name { font-weight: 600; color: #f0f0f5; }
.admin-user-email { font-size: 0.75rem; color: #666; }
.admin-user-date { font-size: 0.7rem; color: #444; }
.admin-user-delete {
  background: none; border: 1px solid #333; color: #e74c3c;
  padding: 0.25rem 0.6rem; border-radius: 6px; cursor: pointer;
  font-size: 0.75rem; transition: all 0.15s;
}
.admin-user-delete:hover { background: #e74c3c; color: #fff; border-color: #e74c3c; }

/* ── Admin Stats Tab ─────────────────────────────────────────────────── */
.stats-cards {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem;
  padding: 1rem;
}
.stats-card {
  background: #131325; border: 1px solid #1e1e2e; border-radius: 12px;
  padding: 1rem 1.25rem; display: flex; flex-direction: column; gap: 0.2rem;
}
.stats-num { font-size: 1.6rem; font-weight: 800; color: #a78bfa; line-height: 1; }
.stats-label { font-size: 0.75rem; color: #666; font-weight: 500; }
.stats-section { padding: 0.5rem 1rem 1rem; }
.stats-section h4 { font-size: 0.8rem; color: #888; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 0.6rem; }
.stats-row {
  display: flex; align-items: center; justify-content: space-between;
  background: #131325; border: 1px solid #1e1e2e; border-radius: 8px;
  padding: 0.5rem 0.8rem; margin-bottom: 0.4rem; font-size: 0.82rem;
}
.stats-row-name { font-weight: 600; color: #f0f0f5; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stats-row-val { color: #a78bfa; font-weight: 700; font-size: 0.85rem; margin-left: 0.5rem; flex-shrink: 0; }
.stats-empty { color: #444; font-size: 0.8rem; text-align: center; padding: 1rem; }

/* ── Logo images ─────────────────────────────────────────────────────── */
.nav-logo-img {
  width: 32px; height: 32px; object-fit: contain;
  vertical-align: middle; margin-right: 4px;
}
.hero-logo {
  width: clamp(90px, 10vw, 150px); height: clamp(90px, 10vw, 150px);
  object-fit: contain; display: block;
  margin: 0 auto 1.5rem auto;
  filter: drop-shadow(0 0 28px rgba(167,139,250,0.5));
}

/* ── Loading Screen ──────────────────────────────────────────────────── */
#loading-screen {
  position: fixed; inset: 0; z-index: 9999;
  background: #0a0a1a;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#loading-screen.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.loading-logo { width: 110px; height: 110px; object-fit: contain; animation: loadPulse 1.2s ease infinite; }
@keyframes loadPulse { 0%,100%{transform:scale(1);filter:drop-shadow(0 0 18px #a78bfa);} 50%{transform:scale(1.08);filter:drop-shadow(0 0 35px #a78bfa);} }
.loading-bar { width: 200px; height: 4px; background: #1e1e2e; border-radius: 99px; overflow: hidden; }
.loading-fill { height: 100%; width: 0; background: linear-gradient(90deg,#a78bfa,#00e096); border-radius: 99px; animation: loadFill 1.8s ease forwards; }
@keyframes loadFill { to { width: 100%; } }
.loading-text { font-size: 1.1rem; font-weight: 700; color: #a78bfa; letter-spacing: 0.15em; }

/* ── Custom Cursor ───────────────────────────────────────────────────── */
body.custom-cursor-active * { cursor: none !important; }
#cursor-dot {
  position: fixed; width: 8px; height: 8px; border-radius: 50%;
  background: #a78bfa; pointer-events: none; z-index: 99999;
  left: -100px; top: -100px;
  transform: translate(-50%,-50%); transition: transform 0.05s;
}
#cursor-ring {
  position: fixed; width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid rgba(167,139,250,0.5); pointer-events: none; z-index: 99998;
  left: -100px; top: -100px;
  transform: translate(-50%,-50%); transition: transform 0.12s ease, width 0.2s, height 0.2s, opacity 0.2s;
}
#cursor-ring.expand { width: 48px; height: 48px; opacity: 0.6; }
@media (hover: none) and (pointer: coarse) {
  #cursor-dot, #cursor-ring { display: none !important; }
  body.custom-cursor-active * { cursor: auto !important; }
}

/* ── Particles Canvas ────────────────────────────────────────────────── */
#particles-canvas {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.4;
}

/* ── Scroll Animations ───────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Search Bar ──────────────────────────────────────────────────────── */
#search-bar-wrap {
  position: sticky; top: 60px; z-index: 80;
  background: var(--bg); padding: 0.75rem 2rem;
  border-bottom: 1px solid var(--border);
}
.search-bar-inner {
  display: flex; align-items: center; gap: 0.6rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 0.5rem 1rem; max-width: 500px; margin: 0 auto;
  transition: border-color 0.2s;
}
.search-bar-inner:focus-within { border-color: #a78bfa; }
.search-icon { font-size: 1rem; }
#search-input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text); font-size: 0.9rem;
}
.search-clear { background: none; border: none; color: #666; cursor: pointer !important; font-size: 1rem; padding: 0; }
.search-results {
  max-width: 500px; margin: 0.5rem auto 0;
  display: flex; flex-direction: column; gap: 0.4rem;
}
.search-result-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 0.6rem 1rem; cursor: pointer !important;
  display: flex; align-items: center; gap: 0.75rem;
  transition: border-color 0.15s;
}
.search-result-item:hover { border-color: #a78bfa; }
.search-result-tag { font-size: 0.7rem; background: #1e1e2e; color: #a78bfa; padding: 2px 8px; border-radius: 99px; }
.search-result-title { font-size: 0.85rem; font-weight: 600; }
.search-no-results { text-align: center; color: #555; font-size: 0.85rem; padding: 0.5rem; }

/* ── Onboarding ──────────────────────────────────────────────────────── */
#onboarding-overlay {
  position: fixed; inset: 0; z-index: 5000;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
}
.onboarding-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 2.5rem 2rem 1.75rem;
  max-width: 360px; width: 90%; text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  animation: obIn 0.35s ease;
}
@keyframes obIn { from{opacity:0;transform:scale(0.92)} to{opacity:1;transform:scale(1)} }
.ob-emoji { font-size: 3rem; margin-bottom: 0.75rem; }
.onboarding-box h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 0.5rem; }
.onboarding-box p { color: var(--text-muted, #888); font-size: 0.9rem; line-height: 1.6; }
.ob-dots { display: flex; gap: 0.4rem; justify-content: center; margin: 1.25rem 0 1rem; }
.ob-dot { width: 8px; height: 8px; border-radius: 50%; background: #333; transition: background 0.2s, transform 0.2s; }
.ob-dot.active { background: #a78bfa; transform: scale(1.3); }
.ob-btns { display: flex; justify-content: space-between; align-items: center; }
.ob-skip { background: none; border: none; color: #555; cursor: pointer !important; font-size: 0.85rem; }
.ob-next { background: linear-gradient(135deg,#a78bfa,#7c6cfc); color: #fff; border: none; padding: 0.5rem 1.5rem; border-radius: 10px; font-weight: 700; cursor: pointer !important; }

/* ── Avatar ──────────────────────────────────────────────────────────── */
.profile-avatar-big {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--surface); border: 2px solid #a78bfa;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; cursor: pointer !important; flex-shrink: 0;
  transition: transform 0.15s;
}
.profile-avatar-big:hover { transform: scale(1.08); }
.avatar-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px;
  margin-bottom: 1rem;
}
.avatar-option {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--surface); border: 2px solid transparent;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; position: relative; overflow: hidden;
  transition: border-color 0.15s, transform 0.15s;
}
.avatar-option.av-unlocked { cursor: pointer !important; }
.avatar-option.av-unlocked:hover { border-color: #a78bfa; transform: scale(1.05); }
.avatar-option.selected { border-color: #00e096; box-shadow: 0 0 8px rgba(0,224,150,0.35); }
.avatar-option.av-locked { opacity: 0.45; cursor: pointer !important; }
.av-lock-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.55);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 0.75rem; gap: 1px; border-radius: 10px;
}
.av-lock-overlay span { font-size: 0.48rem; color: #aaa; font-weight: 700; }

/* ── Battle Pass ─────────────────────────────────────────────────────── */
.bp-nav-btn { background: linear-gradient(135deg,#f39c12,#e67e22) !important; color:#fff !important; }
#nav-lb-btn   { background: linear-gradient(135deg,#f1c40f,#e67e22) !important; color:#fff !important; border:none !important; }
#friend-bell  { background: linear-gradient(135deg,#8e44ad,#6c3483) !important; color:#fff !important; border:none !important; }
#nav-missions-btn { background: linear-gradient(135deg,#27ae60,#1e8449) !important; color:#fff !important; border:none !important; }
.bp-modal-inner { padding: 0 !important; overflow: hidden; }
.bp-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg,#1a0a2e,#0d0d1a);
  border-bottom: 1px solid #2a1a4e;
}
.bp-season-label { font-size: 0.65rem; font-weight: 800; letter-spacing: 0.15em; color: #f39c12; margin-bottom: 0.2rem; }
.bp-season-title { font-size: 1.1rem; font-weight: 800; color: #fff; }
.bp-xp-pill { background: #1e1e2e; border: 1px solid #a78bfa; border-radius: 99px; padding: 0.3rem 0.9rem; font-size: 0.8rem; font-weight: 700; color: #a78bfa; }
.bp-plus-owned { background: linear-gradient(135deg,#f39c12,#e67e22); color:#fff; padding:0.3rem 0.8rem; border-radius:99px; font-size:0.75rem; font-weight:800; }
.bp-buy-plus-btn {
  background: linear-gradient(135deg,#f39c12,#e67e22); color:#fff;
  border: none; border-radius: 10px; padding: 0.45rem 1rem;
  font-size: 0.8rem; font-weight: 700; cursor: pointer !important;
  transition: opacity 0.15s;
}
.bp-buy-plus-btn:hover { opacity: 0.85; }
.bp-close-btn { background:none; border:none; color:#888; font-size:1.1rem; cursor:pointer !important; }
.bp-legend { display:flex; align-items:center; gap:1rem; padding:0.5rem 1.5rem; background:#0d0d1a; border-bottom:1px solid #1e1e2e; font-size:0.72rem; font-weight:600; }
.bp-legend-free { color:#a78bfa; }
.bp-legend-plus { color:#f39c12; }
.bp-track-wrap { overflow-x: auto; padding: 1.25rem 1rem 1.5rem; background: #0d0d1a; }
.bp-track { display: flex; gap: 0.75rem; min-width: max-content; }
.bp-tier { display:flex; flex-direction:column; align-items:center; gap:0.4rem; width:90px; }
.bp-tier-num { font-size:0.65rem; font-weight:800; color:#555; text-transform:uppercase; letter-spacing:0.05em; }
.bp-tier-xp { font-size:0.62rem; color:#888; margin-top:-0.2rem; }
.bp-reward {
  width:82px; border-radius:12px; padding:0.6rem 0.4rem 0.5rem;
  display:flex; flex-direction:column; align-items:center; gap:0.25rem;
  border: 2px solid #1e1e2e; background:#131325;
  position:relative; transition:border-color 0.15s, transform 0.15s;
}
.bp-reward.unlocked { border-color:#a78bfa; cursor:pointer !important; }
.bp-reward.unlocked:hover { transform:translateY(-3px); border-color:#c4b5fd; }
.bp-reward.plus { border-color:#2a1a0a; background:#1a100a; }
.bp-reward.plus.unlocked { border-color:#f39c12; }
.bp-reward.equipped { border-color:#00e096 !important; box-shadow:0 0 10px rgba(0,224,150,0.3); }
.bp-reward.locked { opacity:0.5; }
.bp-skin { font-size:1.8rem; line-height:1; }
.bp-skin-name { font-size:0.6rem; font-weight:600; color:#aaa; text-align:center; }
.bp-bonus { display:block; color:#f39c12; font-size:0.58rem; font-weight:700; }
.bp-plus-tag { position:absolute; top:3px; right:4px; font-size:0.48rem; font-weight:800; color:#f39c12; letter-spacing:0.05em; }
.bp-equipped-badge { position:absolute; top:3px; left:4px; background:#00e096; color:#000; font-size:0.48rem; font-weight:800; border-radius:4px; padding:1px 4px; }
.bp-lock { position:absolute; bottom:4px; right:4px; font-size:0.7rem; }

/* ── BP equipped dot (replaces ON badge) ─────────────────────────────── */
.bp-eq-dot {
  position:absolute; top:4px; left:4px;
  width:8px; height:8px; border-radius:50%;
  background:#00e096; box-shadow:0 0 6px #00e096;
}

/* ── Admin Create User ───────────────────────────────────────────────── */
.admin-create-user-form {
  display:flex; gap:0.4rem; padding:0.75rem;
  border-bottom:1px solid #1e1e2e; flex-wrap:wrap;
}
.admin-create-input {
  flex:1; min-width:90px; background:#131325; border:1px solid #2a2a3e;
  color:#fff; border-radius:8px; padding:0.4rem 0.7rem; font-size:0.78rem;
}
.admin-create-btn {
  background:linear-gradient(135deg,#a78bfa,#7c6cfc); color:#fff;
  border:none; border-radius:8px; padding:0.4rem 0.9rem;
  font-size:0.78rem; font-weight:700; cursor:pointer !important;
  white-space:nowrap;
}
.admin-grant-plus-btn {
  background:linear-gradient(135deg,#f39c12,#e67e22); color:#fff;
  border:none; border-radius:6px; padding:0.2rem 0.5rem;
  font-size:0.7rem; font-weight:700; cursor:pointer !important;
}
.bp-plus-mini {
  background:linear-gradient(135deg,#f39c12,#e67e22); color:#fff;
  border-radius:6px; padding:1px 5px; font-size:0.62rem; font-weight:800;
}

.lb-avatar { font-size: 1.3rem; line-height: 1; }

/* ── Daily Missions ──────────────────────────────────────────────────── */
#nav-missions-btn.missions-ready {
  background: linear-gradient(135deg,#f39c12,#e67e22) !important;
  color: #fff !important;
  animation: missionPulse 1.5s ease infinite;
}
@keyframes missionPulse { 0%,100%{box-shadow:0 0 0 0 rgba(243,156,18,0.4);} 50%{box-shadow:0 0 0 6px rgba(243,156,18,0);} }
.mission-item {
  display: flex; align-items: center; gap: 0.75rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 0.85rem 1rem; margin-bottom: 0.6rem;
  transition: border-color 0.15s;
}
.mission-item.mission-done { border-color: #f39c12; }
.mission-item.mission-claimed { opacity: 0.5; }
.mission-icon { font-size: 1.4rem; flex-shrink: 0; }
.mission-info { flex: 1; display: flex; flex-direction: column; gap: 0.3rem; }
.mission-desc { font-size: 0.85rem; font-weight: 600; }
.mission-bar-wrap { height: 5px; background: #1e1e2e; border-radius: 99px; overflow: hidden; }
.mission-bar { height: 100%; background: linear-gradient(90deg,#a78bfa,#7c6cfc); border-radius: 99px; transition: width 0.4s; }
.mission-item.mission-done .mission-bar { background: linear-gradient(90deg,#f39c12,#e67e22); }
.mission-progress { font-size: 0.65rem; color: #888; }
.mission-reward { font-size: 0.78rem; font-weight: 800; color: #f39c12; flex-shrink: 0; }
.mission-claim-btn {
  background: linear-gradient(135deg,#f39c12,#e67e22); color:#fff;
  border:none; border-radius:8px; padding:0.35rem 0.8rem;
  font-size:0.78rem; font-weight:700; cursor:pointer !important;
  flex-shrink:0;
}
.mission-claimed-badge { font-size:1.1rem; color:#00e096; }

/* ── Find Game ───────────────────────────────────────────────────────── */
.gm-nav-btn { background: linear-gradient(135deg,#e74c3c,#c0392b) !important; color:#fff !important; }
.game-modal-inner { max-width: 600px; width: 95%; padding: 1.75rem; }
.gm-title { font-size: 1.2rem; font-weight: 800; text-align: center; margin-bottom: 1.25rem; }
.gm-section-label { font-size: 0.7rem; font-weight: 800; color: #888; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.5rem; }
.gm-mode-row, .gm-size-row { display: flex; gap: 0.5rem; margin-bottom: 1.25rem; }
.gm-mode-btn, .gm-size-btn {
  flex: 1; padding: 0.55rem 0; border-radius: 10px;
  background: var(--surface); border: 2px solid var(--border);
  color: var(--text); font-weight: 700; font-size: 0.85rem; cursor: pointer !important;
  transition: all 0.15s;
}
.gm-mode-btn.active, .gm-size-btn.active { border-color: #a78bfa; background: #1e1e2e; color: #a78bfa; }
.gm-find-btn {
  width: 100%; padding: 0.7rem; border-radius: 12px;
  background: linear-gradient(135deg,#e74c3c,#c0392b); color: #fff;
  border: none; font-size: 1rem; font-weight: 800; cursor: pointer !important;
  margin-bottom: 0.5rem; transition: opacity 0.15s;
}
.gm-find-btn:hover { opacity: 0.85; }
.gm-cancel-small { background:none; border:none; color:#666; width:100%; text-align:center; cursor:pointer !important; font-size:0.82rem; padding:0.3rem; }
/* Searching */
.gm-search-anim { font-size: 2.5rem; text-align:center; animation: loadPulse 1.2s ease infinite; margin-bottom: 0.75rem; }
.gm-search-status { text-align:center; font-size:0.95rem; font-weight:700; margin-bottom:0.5rem; }
.gm-bot-warn { text-align:center; font-size:0.75rem; color:#888; margin-bottom:1.25rem; }
/* Match */
.gm-match-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:1rem; }
.gm-match-mode { font-size:0.85rem; font-weight:700; color:#a78bfa; }
.gm-match-timer { font-size:2rem; font-weight:900; color:#e74c3c; line-height:1; }
.gm-match-timer-wrap { text-align:center; }
.gm-teams-wrap { display:flex; gap:0.5rem; align-items:flex-start; margin-bottom:0.75rem; }
.gm-team { flex:1; background: var(--surface); border-radius:12px; padding:0.75rem; border:1px solid var(--border); }
.gm-vs { font-size:1.1rem; font-weight:900; color:#888; align-self:center; flex-shrink:0; }
.gm-team-label { font-size:0.62rem; font-weight:800; letter-spacing:0.1em; margin-bottom:0.5rem; }
.my-label { color:#a78bfa; }
.enemy-label { color:#e74c3c; }
.gm-player { display:flex; align-items:center; gap:0.4rem; padding:0.3rem 0; font-size:0.82rem; border-bottom:1px solid var(--border); }
.gm-player:last-child { border-bottom:none; }
.gm-me { font-weight:700; }
.gm-p-avatar { font-size:1rem; }
.gm-p-name { flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.gm-p-score { font-weight:700; color:#f39c12; font-size:0.82rem; }
.gm-team-total { font-size:0.75rem; font-weight:800; color:#888; text-align:right; margin-top:0.4rem; }
/* Chat */
.gm-chat-wrap { border:1px solid var(--border); border-radius:10px; overflow:hidden; }
.gm-chat-messages { height:80px; overflow-y:auto; padding:0.5rem 0.75rem; display:flex; flex-direction:column; gap:0.2rem; background:var(--surface); }
.gm-chat-msg { font-size:0.75rem; color:#aaa; }
.gm-chat-me { color:#a78bfa; }
.gm-chat-sender { font-weight:700; }
.gm-chat-input-row { display:flex; border-top:1px solid var(--border); }
.gm-chat-input-row input { flex:1; background:none; border:none; outline:none; padding:0.4rem 0.75rem; color:var(--text); font-size:0.8rem; }
.gm-chat-input-row button { background:none; border:none; border-left:1px solid var(--border); padding:0.4rem 0.75rem; color:#a78bfa; font-weight:700; cursor:pointer !important; font-size:0.78rem; }
/* Results */
.gm-result-banner { font-size:1.8rem; font-weight:900; text-align:center; padding:1rem; border-radius:12px; margin-bottom:1rem; }
.gm-result-banner.victory { background:linear-gradient(135deg,#1a3a1a,#0d2a0d); color:#00e096; }
.gm-result-banner.defeat  { background:linear-gradient(135deg,#3a1a1a,#2a0d0d); color:#e74c3c; }
.gm-result-scores { display:flex; align-items:center; justify-content:center; gap:1rem; margin-bottom:0.75rem; }
.gm-result-team { text-align:center; }
.gm-result-score { font-size:1.4rem; font-weight:900; }
.gm-result-xp { text-align:center; font-size:1rem; font-weight:700; color:#f39c12; }

.score-up { color: #00e096 !important; }
.score-down { color: #e74c3c !important; }
.gm-sim-bar {
  display: flex; align-items: center; justify-content: space-between;
  background: #0d1f0d; border: 1px solid #1a3a1a; border-radius: 10px;
  padding: 0.5rem 0.85rem; margin-bottom: 0.5rem; font-size: 0.78rem; color: #00e096;
}
.gm-sim-btn {
  background: #00e096; color: #000; border: none; border-radius: 7px;
  padding: 0.3rem 0.7rem; font-size: 0.75rem; font-weight: 800; cursor: pointer !important;
}

/* ── Match Embedded Simulator ── */
.msim-wrap { background:#0a0a14; border:1px solid #1e1e3a; border-radius:12px; padding:0.5rem; margin:0.5rem 0; max-height:220px; display:flex; flex-direction:column; gap:0.35rem; }
.msim-header { display:flex; gap:1rem; font-size:0.72rem; padding:0.3rem 0.4rem; color:#ccc; border-bottom:1px solid #1e1e3a; flex-wrap:wrap; }
.msim-header b { color:#fff; }
.msim-search { background:#13132a; border:1px solid #2a2a4a; border-radius:7px; padding:0.3rem 0.6rem; font-size:0.72rem; color:#fff; width:100%; }
.msim-list { overflow-y:auto; flex:1; display:flex; flex-direction:column; gap:0.2rem; }
.msim-row { display:flex; align-items:center; gap:0.4rem; padding:0.25rem 0.35rem; border-radius:7px; background:#0d0d20; font-size:0.72rem; }
.msim-sym { font-weight:800; color:#a78bfa; min-width:60px; }
.msim-held { font-size:0.65rem; background:#2a1f4a; color:#c4b5fd; border-radius:4px; padding:0 3px; }
.msim-price { flex:1; font-size:0.7rem; }
.msim-btns { display:flex; gap:0.25rem; }
.msim-buy { background:#00e096; color:#000; border:none; border-radius:5px; padding:0.15rem 0.4rem; font-size:0.68rem; font-weight:800; cursor:pointer; }
.msim-sell { background:#e74c3c; color:#fff; border:none; border-radius:5px; padding:0.15rem 0.4rem; font-size:0.68rem; font-weight:800; cursor:pointer; }

/* ── Responsive logo size only ── */
.hero-logo { width: clamp(70px, 9vw, 130px); height: clamp(70px, 9vw, 130px); }

/* ── Hamburger Button (hidden on large screens) ── */
.nav-hamburger {
  display: none; background: none; border: 1px solid var(--border);
  color: var(--text); border-radius: 8px; padding: 0.35rem 0.6rem;
  font-size: 1.1rem; cursor: pointer; z-index: 110; order: 99;
}

/* ── Mobile Right Drawer ── */
.mobile-drawer {
  position: fixed; top: 0; right: -300px; width: 260px; height: 100vh;
  background: var(--card); border-left: 1px solid var(--border);
  z-index: 1050; transition: right 0.3s ease; padding: 1.5rem 1rem;
  display: flex; flex-direction: column;
}
.mobile-drawer.open { right: 0; }
.mobile-drawer-inner { display: flex; flex-direction: column; gap: 0.5rem; height: 100%; }
.mobile-drawer-close {
  align-self: flex-end; background: none; border: none; color: var(--muted);
  font-size: 1.2rem; cursor: pointer; margin-bottom: 1rem;
}
.mobile-nav-links { display: flex; flex-direction: column; gap: 0.2rem; }
.mobile-nav-links a {
  display: block; padding: 0.7rem 1rem; border-radius: 10px; color: var(--text);
  text-decoration: none; font-size: 1rem; font-weight: 600; transition: background 0.15s;
}
.mobile-nav-links a:hover { background: var(--border); }
.mobile-nav-actions {
  margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem;
  border-top: 1px solid var(--border); padding-top: 1rem; flex-wrap: wrap;
}
.mobile-drawer-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 1040; backdrop-filter: blur(2px);
}
.mobile-drawer-overlay.open { display: block; }

/* ── Compact desktop: 1600px - 1400px ── */
@media (max-width: 1600px) {
  .nav-links { gap: 0.8rem; }
  .nav-links a { font-size: 0.82rem; }
  .nav-center { gap: 0.8rem; }
  .nav-left { gap: 0.25rem; }
  .nav-auth-btn { font-size: 0.78rem; padding: 0.32rem 0.7rem; }
  .nav-logout-btn { font-size: 0.75rem; padding: 0.25rem 0.55rem; }
  .admin-nav-pill { font-size: 0.78rem; padding: 0.3rem 0.65rem; }
}

/* ── Hide hamburger on large screens ── */
@media (min-width: 1401px) {
  .nav-hamburger { display: none !important; }
}

/* ── Hamburger on 16" and below (≤1400px) ── */
@media (max-width: 1400px) {
  .nav-hamburger { display: flex !important; align-items: center; }
  .nav-center { display: none; }
  .nav-left { display: none; }
  nav { grid-template-columns: 1fr auto; padding: 0.55rem 1rem; }
}

/* ── Mobile landscape: mini desktop layout ── */
@media (max-width: 900px) and (orientation: landscape) {
  .nav-hamburger { display: flex !important; align-items: center; }
  .nav-center { display: none; }
  .nav-left { display: none; }
}

/* ── Very small mobile ── */
@media (max-width: 480px) {
  nav { padding: 0.45rem 0.75rem; }
  .nav-logo { font-size: 0.95rem; }
}

/* ── Reports & Profanity ── */
.admin-report-badge {
  display:inline-flex; align-items:center; gap:0.25rem;
  background:#3a1010; color:#e74c3c; border:1px solid #5a1a1a;
  border-radius:8px; padding:0.15rem 0.45rem; font-size:0.7rem;
  font-weight:800; cursor:pointer; margin-left:0.4rem;
}
.admin-report-badge:hover { background:#5a1a1a; }
.lb-report-btn {
  background:none; border:1px solid #333; border-radius:6px;
  color:#888; font-size:0.75rem; padding:0.1rem 0.35rem;
  cursor:pointer; margin-left:auto;
}
.lb-report-btn:hover { background:#2a0d0d; color:#e74c3c; border-color:#e74c3c; }

.gm-leave-btn {
  background: #2a0a0a; border: 1px solid #5a1a1a; color: #e74c3c;
  border-radius: 8px; padding: 0.3rem 0.7rem; font-size: 0.75rem;
  font-weight: 700; cursor: pointer; transition: background 0.15s;
}
.gm-leave-btn:hover { background: #5a1a1a; }

.bpp-pay-btn {
  background: linear-gradient(135deg, #a78bfa, #7c6cfc);
  color: #fff; border: none; border-radius: 12px;
  padding: 0.75rem; font-size: 1rem; font-weight: 800;
  cursor: pointer; transition: opacity 0.2s;
}
.bpp-pay-btn:hover { opacity: 0.9; }
.bpp-pay-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.remember-row { display:flex; align-items:center; margin-bottom:0.75rem; }
.remember-label { display:flex; align-items:center; gap:0.4rem; font-size:0.82rem; color:var(--muted); cursor:pointer; user-select:none; }
.remember-label input[type="checkbox"] { width:15px; height:15px; cursor:pointer; accent-color:var(--accent); }

/* ── User Settings ── */
.settings-row { display:flex; align-items:center; justify-content:space-between; padding:0.4rem 0; font-size:0.85rem; }
.settings-toggle {
  background:var(--surface2); border:1px solid var(--border); color:var(--accent);
  border-radius:20px; padding:0.2rem 0.7rem; font-size:0.75rem; font-weight:700; cursor:pointer;
  transition:background 0.15s;
}
.settings-toggle:hover { background:var(--accent); color:#fff; }
.settings-change-pw { display:flex; flex-direction:column; gap:0.4rem; margin:0.5rem 0; }
.settings-input {
  background:var(--surface2); border:1px solid var(--border); color:var(--text);
  border-radius:8px; padding:0.45rem 0.7rem; font-size:0.82rem; font-family:inherit;
}
.settings-save-btn {
  background:var(--accent); color:#fff; border:none; border-radius:8px;
  padding:0.4rem; font-size:0.82rem; font-weight:700; cursor:pointer;
}
.delete-account-btn {
  width:100%; margin-top:0.75rem; background:#2a0a0a; border:1px solid #5a1a1a;
  color:#e74c3c; border-radius:8px; padding:0.5rem; font-size:0.82rem;
  font-weight:700; cursor:pointer; transition:background 0.15s;
}
.delete-account-btn:hover { background:#5a1a1a; }

/* ── Settings inputs dark fix ── */
.settings-input {
  background: var(--surface2) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
  border-radius: 8px; padding: 0.45rem 0.7rem;
  font-size: 0.82rem; font-family: inherit; width: 100%;
}
.settings-input::placeholder { color: var(--muted); }
.settings-change-pw { display: flex; flex-direction: column; gap: 0.5rem; }

/* ── Volume Slider ── */
.vol-slider {
  -webkit-appearance: none; appearance: none;
  width: 130px; height: 4px; border-radius: 4px;
  background: var(--border); outline: none; cursor: pointer;
}
.vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent); cursor: pointer;
}
.vol-slider::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent); cursor: pointer; border: none;
}
