/* ════════════════════════════════════════════════════════
   GoldOSRS — Main Stylesheet
   Clean, light "fintech" theme. Class names are shared with
   every page, so keep them stable when restyling.
   ════════════════════════════════════════════════════════ */

:root {
  /* Accent gold (pages also use --gold inline) */
  --gold: #eab308;
  --gold-light: #facc15;
  --gold-dark: #ca8a04;
  --on-accent: #111827;
  --accent-soft: rgba(234,179,8,0.12);
  --accent-border: rgba(234,179,8,0.35);
  --amber: #f59e0b;

  --bg-dark: #0b1220;      /* page background */
  --bg-mid: #111a2e;
  --bg-card: #131d33;
  --bg-card2: #0f172a;
  --bg-input: #1c2742;
  --border: #22304d;
  --border-hover: #33456b;
  --text: #e5e7eb;
  --text-muted: #94a3b8;
  --red: #f87171;
  --green: #22c55e;

  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow: 0 4px 16px rgba(0,0,0,0.35);
  --shadow-lg: 0 12px 36px rgba(0,0,0,0.5);
  --shadow-gold: var(--shadow);
  --nav-h: 64px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg-dark);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); }
img { max-width: 100%; }
button, input, select, textarea { font-family: inherit; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; }

/* Retired decorative elements (markup may still exist on some pages) */
.rune-rain, .torch-glow, .loading-screen, .spark, .flame-burst { display: none !important; }

/* ── Navbar ────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(11,18,32,0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 50000;
  display: flex; align-items: center;
}
.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  width: 100%; display: flex; align-items: center; gap: 24px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.nav-logo img { width: 32px; height: 32px; }
.nav-brand { display: flex; flex-direction: column; line-height: 1.15; }
.brand-main { font-size: 17px; font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
.brand-sub { font-size: 11px; color: var(--text-muted); }

.nav-links { display: flex; list-style: none; gap: 2px; margin-left: auto; }
.nav-link {
  color: var(--text-muted); text-decoration: none;
  padding: 8px 12px; border-radius: var(--radius);
  font-size: 14px; font-weight: 500;
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover, .nav-link.active { color: var(--text); background: var(--bg-mid); }
.nav-auth { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* ── Buttons ───────────────────────────────────────────── */
.btn-primary, .btn-gold, .btn-register, .btn-secondary, .btn-login, .btn-dash {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: var(--radius);
  font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
  line-height: 1.2; white-space: nowrap;
}
.btn-primary { padding: 12px 22px; font-size: 15px; background: var(--gold); color: var(--on-accent); border: 1px solid var(--gold); }
.btn-primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); }
.btn-gold, .btn-register { padding: 9px 16px; font-size: 14px; background: var(--gold); color: var(--on-accent); border: 1px solid var(--gold); }
.btn-gold:hover, .btn-register:hover { background: var(--gold-dark); border-color: var(--gold-dark); }
.btn-secondary { padding: 12px 22px; font-size: 15px; background: var(--bg-card); color: var(--text); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: var(--border-hover); background: var(--bg-card2); }
.btn-login { padding: 9px 16px; font-size: 14px; background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-login:hover { background: var(--bg-mid); }
.btn-dash { padding: 9px 16px; font-size: 14px; background: var(--accent-soft); color: var(--gold); border: 1px solid var(--accent-border); }
.btn-dash:hover { background: rgba(234,179,8,0.2); }
.btn-full { width: 100%; padding: 13px; font-size: 15px; }
button:disabled, .btn-primary[disabled] { opacity: 0.55; cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Burger */
.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px; margin-left: auto;
}
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.25s, opacity 0.25s; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: var(--bg-card); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg);
  z-index: 49999;
  display: flex; flex-direction: column; padding: 12px 16px; gap: 2px;
  transform: translateY(-110%); visibility: hidden;
  transition: transform 0.25s ease;
}
.mobile-nav.open { transform: translateY(0); visibility: visible; }
.mob-link { color: var(--text); text-decoration: none; padding: 12px; border-radius: var(--radius); font-size: 15px; font-weight: 500; display: block; }
.mob-link:hover { background: var(--bg-mid); }
.mob-auth { display: flex; gap: 8px; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--border); }
.mob-auth a { flex: 1; }
.nav-overlay { position: fixed; inset: 0; background: rgba(15,23,42,0.3); z-index: 49998; display: none; }
.nav-overlay.show { display: block; }

/* ── Layout ────────────────────────────────────────────── */
main, .page-content { padding-top: var(--nav-h); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 20px; position: relative; }
.section-alt { background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-header { text-align: center; margin-bottom: 48px; }
.section-label {
  display: inline-block; font-size: 13px; font-weight: 600;
  color: var(--gold); margin-bottom: 10px;
}
.section-title { font-size: clamp(26px, 3.5vw, 36px); font-weight: 700; letter-spacing: -0.02em; color: var(--text); margin-bottom: 12px; line-height: 1.2; }
.section-sub { color: var(--text-muted); font-size: 16px; max-width: 560px; margin: 0 auto; }

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  padding: calc(var(--nav-h) + 88px) 20px 88px;
  text-align: center;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(234,179,8,0.10), transparent 70%),
    var(--bg-dark);
  border-bottom: 1px solid var(--border);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--bg-card); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  font-size: 13px; font-weight: 500; color: var(--text-muted); margin-bottom: 24px;
}
.hero-badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.hero h1 {
  font-size: clamp(34px, 5.5vw, 60px); font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.08; color: var(--text); margin: 0 auto 20px; max-width: 820px;
}
.hero h1 span { color: var(--gold); }
.hero-sub { font-size: clamp(16px, 2vw, 19px); color: var(--text-muted); max-width: 620px; margin: 0 auto 36px; }
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; margin-top: 48px; }
.hero-stat { text-align: center; }
.hero-stat strong { display: block; font-size: 22px; font-weight: 700; color: var(--text); }
.hero-stat span { font-size: 13px; color: var(--text-muted); }

/* Trust / feature bar */
.feats-bar {
  max-width: 1200px; margin: -36px auto 0; position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); overflow: hidden;
}
.feat { padding: 22px 24px; border-right: 1px solid var(--border); }
.feat:last-child { border-right: none; }
.feat-icon { width: 36px; height: 36px; border-radius: 8px; background: var(--accent-soft); color: var(--gold); display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.feat-icon svg { width: 18px; height: 18px; }
.feat h4 { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.feat p { font-size: 13px; color: var(--text-muted); }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 20px; max-width: 1100px; margin: 0 auto; counter-reset: step; }
.step { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); }
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--gold); color: var(--on-accent); font-size: 14px; font-weight: 700; margin-bottom: 14px;
}
.step h4 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--text-muted); }

/* ── Cards ─────────────────────────────────────────────── */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
  position: relative;
}
.card:hover { border-color: var(--border-hover); box-shadow: var(--shadow); }
.card-badge {
  position: absolute; top: 16px; right: 16px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
  background: var(--accent-soft); color: var(--gold); border: 1px solid var(--accent-border);
}
.card-icon { display: none; }
.card h3 { font-size: 17px; font-weight: 600; color: var(--text); margin-bottom: 4px; padding-right: 80px; }
.card-game { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.card p { color: var(--text-muted); font-size: 14px; margin-bottom: 16px; }
.card ul { list-style: none; margin-bottom: 20px; }
.card ul li { color: var(--text); font-size: 14px; padding: 5px 0 5px 24px; position: relative; }
.card ul li::before {
  content: ''; position: absolute; left: 2px; top: 10px; width: 12px; height: 7px;
  border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg);
}
.price-amount { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; color: var(--text); display: block; margin-bottom: 2px; }
.price-amount small { font-size: 14px; font-weight: 500; color: var(--text-muted); letter-spacing: 0; }
.price-label { font-size: 13px; color: var(--text-muted); }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; max-width: 1200px; margin: 0 auto; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; max-width: 1200px; margin: 0 auto; }

/* ── Tabs ──────────────────────────────────────────────── */
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--bg-mid); border: 1px solid var(--border); border-radius: 10px; margin: 0 auto 32px; }
.tabs-center { text-align: center; }
.tab-btn {
  padding: 8px 18px; border-radius: 7px; background: transparent; border: none;
  color: var(--text-muted); font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.15s;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { background: var(--bg-card); color: var(--text); box-shadow: var(--shadow-sm); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.tab-panel.active.grid-3 { display: grid; }

/* ── Forms ─────────────────────────────────────────────── */
.form-wrap {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px; max-width: 680px; margin: 0 auto;
  box-shadow: var(--shadow);
}
.form-title { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 24px; }
.form-group { margin-bottom: 18px; }
.form-group label, label.form-label { display: block; font-size: 14px; font-weight: 500; color: var(--text); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea,
input[type=text], input[type=email], input[type=password], input[type=number], select, textarea {
  width: 100%; padding: 10px 12px;
  background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); font-size: 15px; outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus,
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(234,179,8,0.25); }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--gold); }
.form-group textarea, textarea { resize: vertical; min-height: 84px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-error { color: var(--red); font-size: 13px; margin-top: 4px; display: none; }
.form-error.show { display: block; }
.form-success { background: #ecfdf5; border: 1px solid var(--accent-border); border-radius: var(--radius); padding: 14px 16px; color: #065f46; display: none; margin-bottom: 16px; }
.form-success.show { display: block; }
.form-alert { background: #fef2f2; border: 1px solid #fecaca; border-radius: var(--radius); padding: 14px 16px; color: #991b1b; margin-bottom: 16px; display: none; }
.form-alert.show { display: block; }
.ssl-note { text-align: center; margin-top: 12px; font-size: 13px; color: var(--text-muted); }

.payment-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.payment-opt {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; cursor: pointer; transition: all 0.15s; text-align: left;
  display: flex; flex-direction: column; gap: 2px;
}
.payment-opt:hover { border-color: var(--border-hover); }
.payment-opt.selected { border-color: var(--gold); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--gold); }
.payment-opt input { display: none; }
.payment-opt-icon { display: none; }
.payment-opt-label { font-size: 15px; font-weight: 600; color: var(--text); }
.payment-opt-sub { font-size: 13px; color: var(--text-muted); }

/* ── Chat Widget ───────────────────────────────────────── */
#chat-wrapper { position: fixed; bottom: 24px; right: 24px; z-index: 40000; }
.chat-fab {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--gold); color: var(--on-accent); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg); transition: background 0.15s; position: relative;
}
.chat-fab:hover { background: var(--gold-dark); }
.chat-fab-icon { font-size: 0; }
.chat-fab-icon::before {
  content: ''; width: 24px; height: 24px; display: block; background: var(--bg-card);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.chat-badge {
  position: absolute; top: -2px; right: -2px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--red); color: var(--on-accent); font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.chat-window {
  position: absolute; bottom: 68px; right: 0; width: 360px; max-height: 540px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-lg);
  display: none; flex-direction: column;
}
.chat-window.open { display: flex; }
.chat-header { background: var(--gold); color: var(--on-accent); padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; }
.chat-header-info { display: flex; align-items: center; gap: 10px; }
.chat-agent-avatar { display: none; }
.chat-header strong { display: block; font-size: 15px; }
.chat-status { font-size: 12px; opacity: 0.85; }
.chat-close { background: none; border: none; color: var(--on-accent); font-size: 16px; cursor: pointer; opacity: 0.85; }
.chat-close:hover { opacity: 1; }
.chat-guest-form { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.chat-guest-form p { font-size: 14px; color: var(--text-muted); }
.chat-messages { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--bg-card2); min-height: 240px; }
.chat-msg { max-width: 80%; padding: 9px 13px; border-radius: 14px; font-size: 14px; line-height: 1.45; word-break: break-word; }
.chat-msg.user { background: var(--gold); color: var(--on-accent); align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-msg.agent, .chat-msg.admin { background: var(--bg-card); border: 1px solid var(--border); color: var(--text); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-msg-time { font-size: 11px; color: var(--text-muted); margin-top: 3px; }
.chat-typing-dots { display: flex; gap: 4px; align-items: center; padding: 4px 0; }
.chat-typing-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); animation: typingBounce 1.2s infinite; }
.chat-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce { 0%,80%,100%{transform:translateY(0)} 40%{transform:translateY(-5px)} }
.chat-input-row { padding: 10px; border-top: 1px solid var(--border); display: flex; gap: 8px; align-items: flex-end; background: var(--bg-card); }
.chat-input { flex: 1; padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px; resize: none; outline: none; max-height: 100px; min-height: 0; }
.chat-input:focus { border-color: var(--gold); }
.chat-send { padding: 9px 14px; background: var(--gold); color: var(--on-accent); border: none; border-radius: var(--radius); cursor: pointer; font-size: 15px; flex-shrink: 0; }
.chat-send:hover { background: var(--gold-dark); }

/* ── Toasts ────────────────────────────────────────────── */
#toast-container { position: fixed; bottom: 92px; right: 24px; z-index: 39000; display: flex; flex-direction: column-reverse; gap: 8px; }
.toast { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; font-size: 14px; color: var(--text); box-shadow: var(--shadow-lg); animation: toastIn 0.25s ease; max-width: 300px; }
@keyframes toastIn { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:none} }

/* ── Motion ────────────────────────────────────────────── */
.scroll-reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.4s ease, transform 0.4s ease; }
.scroll-reveal.visible { opacity: 1; transform: none; }
.page-enter { animation: pageEnter 0.3s ease forwards; }
@keyframes pageEnter { from { opacity: 0; } to { opacity: 1; } }

/* ── Admin chat sessions sidebar (mobile) ──────────────── */
.admin-sessions-panel {
  position: fixed; top: var(--nav-h); left: 0; bottom: 0; width: 300px;
  background: var(--bg-card); border-right: 1px solid var(--border); z-index: 45000;
  transform: translateX(-100%); transition: transform 0.25s ease;
  display: flex; flex-direction: column;
}
.admin-sessions-panel.open { transform: translateX(0); }
.admin-sessions-toggle {
  display: none; position: fixed; bottom: 88px; left: 16px; z-index: 46000;
  background: var(--gold); color: var(--on-accent); border: none; border-radius: 50%;
  width: 48px; height: 48px; font-size: 20px; cursor: pointer; box-shadow: var(--shadow-lg);
  align-items: center; justify-content: center;
}
@media (max-width: 900px) { .admin-sessions-toggle { display: flex; } }

/* ── Pagination ────────────────────────────────────────── */
.pagination { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.pagination a, .pagination span { padding: 7px 13px; border-radius: var(--radius); font-size: 14px; border: 1px solid var(--border); text-decoration: none; color: var(--text-muted); background: var(--bg-card); }
.pagination a:hover { border-color: var(--border-hover); color: var(--text); }
.pagination .current { border-color: var(--gold); color: var(--on-accent); background: var(--gold); font-weight: 600; }

/* ── Referral / promo ──────────────────────────────────── */
.referral-block { background: var(--accent-soft); border: 1px solid var(--accent-border); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 24px; }
.referral-block h3 { color: var(--text); font-size: 17px; margin-bottom: 8px; }
.promo-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--gold); border: 1px solid var(--accent-border); font-size: 12px; font-weight: 600; }

/* ── Reviews ───────────────────────────────────────────── */
.review-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); }
.review-stars { color: #f59e0b; font-size: 16px; letter-spacing: 2px; margin-bottom: 10px; }
.review-text { color: var(--text); font-size: 15px; margin-bottom: 14px; }
.review-author { font-size: 14px; font-weight: 600; color: var(--text); }
.review-service { font-size: 13px; color: var(--text-muted); }
.review-verified { font-size: 12px; color: var(--green); margin-top: 6px; }
.trustpilot-block { text-align: center; padding: 32px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); margin-top: 32px; }
.trustpilot-stars { font-size: 28px; color: #f59e0b; }
.trustpilot-score { font-size: 26px; font-weight: 700; }
.trustpilot-count { color: var(--text-muted); font-size: 14px; }

/* ── Dashboard ─────────────────────────────────────────── */
.dash-layout { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - var(--nav-h)); }
.dash-sidebar { background: var(--bg-card); border-right: 1px solid var(--border); padding: 20px 0; position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h)); overflow-y: auto; }
.dash-nav { display: flex; flex-direction: column; }
.dash-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 20px; margin: 1px 10px; border-radius: var(--radius); color: var(--text-muted); text-decoration: none; font-size: 14px; font-weight: 500; }
.dash-nav a:hover { background: var(--bg-mid); color: var(--text); }
.dash-nav a.active { background: var(--accent-soft); color: var(--gold); }
.dash-main { padding: 32px; }
.dash-header { margin-bottom: 28px; }
.dash-header h1 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
.dash-header p { color: var(--text-muted); font-size: 15px; margin-top: 4px; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px,1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.stat-card .stat-val { font-size: 24px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.stat-card .stat-lbl { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; background: var(--bg-card); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); }
.data-table th { background: var(--bg-card2); color: var(--text-muted); padding: 11px 16px; text-align: left; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 1px solid var(--border); }
.data-table td { padding: 12px 16px; border-top: 1px solid var(--border); color: var(--text); }
.data-table tr:first-child td { border-top: none; }
.data-table tr:hover td { background: var(--bg-card2); }
.status-badge { padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; display: inline-block; text-transform: capitalize; }
.status-pending    { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.status-paid       { background: #ecfdf5; color: #047857; border: 1px solid var(--accent-border); }
.status-processing { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.status-completed  { background: #f1f5f9; color: #334155; border: 1px solid #cbd5e1; }
.status-cancelled, .status-refunded, .status-rejected { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.feed-won { color: var(--green); font-weight: 600; }
.feed-lost { color: var(--red); }

/* ── Admin ─────────────────────────────────────────────── */
.admin-layout { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - var(--nav-h)); }
.admin-sidebar { background: #0f172a; padding: 20px 0; }
.admin-sidebar h2 { padding: 0 20px 16px; font-size: 14px; font-weight: 600; color: var(--on-accent); border-bottom: 1px solid #1e293b; margin-bottom: 10px; }
.admin-nav { display: flex; flex-direction: column; }
.admin-nav a { display: block; padding: 10px 20px; color: #94a3b8; text-decoration: none; font-size: 14px; border-left: 2px solid transparent; }
.admin-nav a:hover { color: var(--on-accent); background: #1e293b; }
.admin-nav a.active { color: var(--on-accent); border-left-color: #34d399; background: #1e293b; }
.admin-main { padding: 28px; background: var(--bg-dark); min-width: 0; }
.session-item { cursor: pointer; }
.quick-reply { padding: 6px 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-card); color: var(--text); font-size: 13px; cursor: pointer; }
.quick-reply:hover { border-color: var(--gold); color: var(--gold); }

/* ── Order success / payment ───────────────────────────── */
.success-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; text-align: center; max-width: 560px; margin: 0 auto; box-shadow: var(--shadow); }
.success-icon { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 16px; background: var(--accent-soft); color: var(--gold); font-size: 0; display: flex; align-items: center; justify-content: center; }
.success-icon::before { content: ''; width: 18px; height: 10px; border-left: 3px solid var(--gold); border-bottom: 3px solid var(--gold); transform: rotate(-45deg) translate(2px,-2px); }
.success-ref { font-size: 22px; font-weight: 700; color: var(--text); margin-bottom: 8px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.success-box p { color: var(--text-muted); }
.btc-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; text-align: center; max-width: 440px; margin: 0 auto; box-shadow: var(--shadow); }
.btc-box h2 { color: var(--text) !important; }
.btc-qr { width: 180px; height: 180px; margin: 16px auto; border-radius: 8px; }
.btc-address { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; word-break: break-all; color: var(--text); background: var(--bg-mid); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; margin: 12px 0; cursor: pointer; }
.btc-address-reveal { animation: pageEnter 0.3s ease forwards; }
.btc-timer { font-size: 26px; font-weight: 700; color: var(--amber); font-variant-numeric: tabular-nums; }
.payment-status { padding: 12px; border-radius: var(--radius); margin-top: 16px; font-size: 14px; }
.payment-pending { background: #fffbeb; color: #92400e; }
.payment-confirmed { background: #ecfdf5; color: #065f46; }

/* ── Page hero (non-homepage) ──────────────────────────── */
.page-hero { padding: 72px 20px 48px; text-align: center; }
.page-hero h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.page-hero p { color: var(--text-muted); font-size: 17px; max-width: 600px; margin: 12px auto 0; }

/* ── Footer ────────────────────────────────────────────── */
.footer { background: #0f172a; color: #cbd5e1; padding: 56px 20px 24px; margin-top: 40px; }
.footer-container { max-width: 1200px; margin: 0 auto 40px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.footer-brand img { width: 32px; }
.footer-logo-text { font-size: 17px; font-weight: 700; color: var(--on-accent); display: block; }
.footer-logo-sub { font-size: 12px; color: #94a3b8; }
.footer-brand p { font-size: 14px; color: #94a3b8; max-width: 320px; }
.footer-col h4 { font-size: 13px; font-weight: 600; color: var(--on-accent); margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { color: #94a3b8; text-decoration: none; font-size: 14px; }
.footer-col ul a:hover { color: var(--on-accent); }
.footer-bottom { max-width: 1200px; margin: 0 auto; border-top: 1px solid #1e293b; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: #64748b; font-size: 13px; }

/* ── Utility ───────────────────────────────────────────── */
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; }
.hidden { display: none !important; }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-container { grid-template-columns: 1fr 1fr; }
  .dash-layout, .admin-layout { grid-template-columns: 1fr; }
  .dash-sidebar, .admin-sidebar { position: static; height: auto; }
}
@media (max-width: 768px) {
  .nav-links, .nav-auth { display: none; }
  .nav-burger { display: flex; }
  .footer-container { grid-template-columns: 1fr; gap: 28px; }
  .form-row, .payment-options { grid-template-columns: 1fr; }
  .feats-bar { margin: -28px 16px 0; }
  .feat { border-right: none; border-bottom: 1px solid var(--border); }
  .feat:last-child { border-bottom: none; }
  .hero { padding: calc(var(--nav-h) + 56px) 16px 64px; }
  .hero-stats { gap: 24px; }
  .section { padding: 56px 16px; }
  .form-wrap { padding: 22px; }
  .dash-main, .admin-main { padding: 20px 16px; }
  .chat-window { width: calc(100vw - 32px); right: -8px; }
  #chat-wrapper { right: 16px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}


/* ── Dark theme fix-ups ────────────────────────────────── */
.footer, .footer-logo-text, .footer-col h4, .admin-sidebar h2, .admin-nav a:hover, .admin-nav a.active { color: #fff; }
.footer { background: #070c17; border-top: 1px solid var(--border); }
.admin-sidebar { background: #070c17; border-right: 1px solid var(--border); }
.btn-dash { color: var(--gold); }
.chat-msg.user { color: var(--on-accent); }
.form-alert { background: rgba(248,113,113,0.1); border-color: rgba(248,113,113,0.35); color: #fca5a5; }
.form-success, .payment-confirmed { background: rgba(34,197,94,0.1); border-color: rgba(34,197,94,0.35); color: #86efac; }
.payment-pending { background: rgba(245,158,11,0.1); color: #fcd34d; }
.status-pending    { background: rgba(245,158,11,0.12); color: #fcd34d; border-color: rgba(245,158,11,0.35); }
.status-paid       { background: rgba(34,197,94,0.12); color: #86efac; border-color: rgba(34,197,94,0.35); }
.status-processing { background: rgba(59,130,246,0.12); color: #93c5fd; border-color: rgba(59,130,246,0.35); }
.status-completed  { background: rgba(148,163,184,0.12); color: #cbd5e1; border-color: rgba(148,163,184,0.35); }
.status-cancelled, .status-refunded, .status-rejected { background: rgba(248,113,113,0.12); color: #fca5a5; border-color: rgba(248,113,113,0.35); }
input::placeholder, textarea::placeholder { color: #64748b; }
select option { background: var(--bg-card); color: var(--text); }

/* ── Hero (Probemas-style) ─────────────────────────────── */
.hero {
  padding: calc(var(--nav-h) + 64px) 20px 72px;
  background:
    radial-gradient(70% 60% at 50% 0%, rgba(234,179,8,0.10), transparent 70%),
    linear-gradient(180deg, #0d1628 0%, var(--bg-dark) 100%);
  border-bottom: 1px solid var(--border);
}
.hero h1 { color: var(--gold); font-size: clamp(38px, 6vw, 64px); margin-bottom: 14px; }
.hero-sub { color: var(--text); font-size: clamp(16px, 2vw, 19px); margin-bottom: 22px; }
.hero-badge { background: rgba(255,255,255,0.03); color: var(--text); border-color: var(--border); margin-bottom: 0; }

/* ── Gold cards ────────────────────────────────────────── */
.gold-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 410px)); gap: 24px; justify-content: center; margin: 44px auto 0; }
.gold-card { border: 2px solid var(--gold); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-lg); text-align: center; padding: 0; }
.gold-card-buy  { background: linear-gradient(180deg, #0b1a1a 0%, #0c2a21 70%, #0f3a2b 100%); }
.gold-card-sell { background: linear-gradient(180deg, #160d1d 0%, #241128 70%, #321533 100%); }
.gold-card-head {
  margin: 0; padding: 16px 20px; background: rgba(0,0,0,0.25);
  border-bottom: 1px solid var(--accent-border);
  color: var(--gold); font-size: 22px; font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase;
}
.gold-card-body { padding: 22px 22px 24px; }
.gold-card-rate { display: flex; align-items: center; gap: 14px; justify-content: center; font-size: 26px; font-weight: 800; color: #fff; margin-bottom: 18px; }
.gold-card-rate::before, .gold-card-rate::after { content: ''; flex: 1; max-width: 70px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent-border)); }
.gold-card-rate::after { background: linear-gradient(90deg, var(--accent-border), transparent); }
.gold-card-rate span { color: var(--gold); font-size: 26px; font-weight: 800; }
.gold-convert { display: grid; grid-template-columns: auto 1fr auto auto 1fr; gap: 8px; align-items: center; margin-bottom: 22px; }
.gc-unit { display: flex; flex-direction: column; align-items: center; line-height: 1; color: var(--gold); font-size: 20px; font-weight: 800; }
.gc-unit small { font-size: 9px; font-weight: 700; color: #cbd5e1; text-transform: uppercase; letter-spacing: 0.04em; margin-top: 3px; }
.gold-convert input {
  width: 100%; min-width: 0; padding: 9px 8px; text-align: center;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.08); border-radius: 6px;
  color: #fff; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
}
.gold-convert input::-webkit-outer-spin-button, .gold-convert input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.gold-convert input:focus { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(234,179,8,0.25); }
.gc-arrows { color: var(--gold); font-size: 22px; font-weight: 700; }
.gc-buy {
  width: 100%; padding: 14px; border: none; border-radius: 6px; cursor: pointer;
  background: var(--gold); color: var(--on-accent);
  font-size: 15px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  transition: background 0.15s;
}
.gc-buy:hover { background: var(--gold-light); }
@media (max-width: 860px) { .gold-cards { grid-template-columns: minmax(0, 440px); } }
@media (max-width: 420px) { .gold-convert { grid-template-columns: auto 1fr auto 1fr; } .gc-arrows { display: none; } }

/* Feature bar sits under the hero on dark */
.feats-bar { margin-top: 32px; }

/* ── Idle chat nudge ───────────────────────────────────── */
.chat-nudge {
  position: absolute; bottom: 70px; right: 0; width: 260px;
  background: var(--bg-card); border: 1px solid var(--gold); border-radius: 12px 12px 4px 12px;
  padding: 14px 32px 14px 16px; color: var(--text); font-size: 14px; font-weight: 500; line-height: 1.4;
  box-shadow: var(--shadow-lg); cursor: pointer; animation: toastIn 0.3s ease;
}
.chat-nudge:hover { border-color: var(--gold-light); }
.chat-nudge-close {
  position: absolute; top: 6px; right: 8px; background: none; border: none;
  color: var(--text-muted); font-size: 18px; line-height: 1; cursor: pointer;
}
.chat-nudge-close:hover { color: var(--text); }

/* ── Checkout (card fields + PayPal) ───────────────────── */
.checkout { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }
.checkout-summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 18px; margin-bottom: 20px; border-bottom: 1px solid var(--border); }
.checkout-label { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; }
.checkout-item { font-size: 16px; font-weight: 600; }
.checkout-total { font-size: 28px; font-weight: 800; color: var(--gold); }
.checkout-card .card-field { min-height: 50px; margin-bottom: 6px; }
.card-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.checkout-card .gc-buy { margin-top: 8px; }
.checkout-or { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--text-muted); font-size: 13px; }
.checkout-or::before, .checkout-or::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.checkout-note { margin-top: 14px; font-size: 12px; color: var(--text-muted); text-align: center; }
