/* ═══════════════════════════════════════
   GXMarkets — Global Dark Theme
   Gold: #f5a623  |  Dark BG: #0d0d0d
═══════════════════════════════════════ */
:root {
  --gold:       #f5a623;
  --gold-light: #ffc14d;
  --gold-dark:  #c88200;
  --green:      #00b876;
  --green-dark: #009660;
  --red:        #e74c3c;
  --blue:       #3498db;
  --bg:         #0d0d0d;
  --bg-card:    #161616;
  --bg-card2:   #1c1c1c;
  --bg-input:   #111;
  --border:     #2a2a2a;
  --border2:    #222;
  --text:       #e2e2e2;
  --text-muted: #888;
  --text-dim:   #666;
  --white:      #fff;
  --radius:     6px;
  --radius-lg:  10px;
  --shadow:     0 4px 24px rgba(0,0,0,.5);
  --font:       'DM Sans', 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 14px; }
body { font-family: var(--font); background: var(--bg); color: var(--text); min-height: 100vh; overflow-x: hidden; }
a { color: var(--gold); text-decoration: none; transition: color .18s; }
a:hover { color: var(--gold-light); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }

/* ── Container ─────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 16px; }

/* ── Buttons ───────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: var(--radius);
  font-size: 13px; font-weight: 600; transition: all .18s;
  white-space: nowrap; cursor: pointer;
}
.btn-gold     { background: var(--gold);  color: #000; border: 2px solid var(--gold); }
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); color: #000; }
.btn-outline-gold { background: transparent; color: var(--gold); border: 2px solid var(--gold); }
.btn-outline-gold:hover { background: var(--gold); color: #000; }
.btn-green    { background: var(--green); color: #fff; border: 2px solid var(--green); padding: 6px 14px; font-size: 12px; font-weight: 700; }
.btn-green:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.btn-outline  { background: transparent; color: var(--text-muted); border: 1px solid var(--border); font-size: 12px; padding: 5px 12px; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-vote     { background: var(--gold); color: #000; padding: 4px 12px; font-size: 11px; font-weight: 700; border-radius: 4px; }
.btn-vote:hover { background: var(--gold-light); color: #000; }
.btn-sm-gold  { background: var(--gold); color: #000; padding: 5px 14px; font-size: 12px; font-weight: 600; border-radius: 4px; }
.btn-full     { width: 100%; justify-content: center; }

/* ── Badges ────────────────────────────── */
.badge { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 10px; font-weight: 700; }
.badge-green  { background: rgba(0,184,118,.15); color: #00b876; }
.badge-gold   { background: rgba(245,166,35,.15); color: var(--gold); }
.badge-blue   { background: rgba(52,152,219,.15); color: var(--blue); }
.badge-red    { background: rgba(231,76,60,.15);  color: var(--red); }
.trusted-badge { background: var(--green); color: #fff; font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 3px; }

/* ── Star Rating ───────────────────────── */
.stars i { font-size: 10px; color: var(--border); }
.stars i.on { color: var(--gold); }

/* ── Section Headers ───────────────────── */
.sec-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 10px; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.sec-title { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 7px; }
.sec-title i { color: var(--gold); }
.view-all { font-size: 11px; font-weight: 600; color: var(--gold); white-space: nowrap; }
.view-all:hover { color: var(--gold-light); }

/* ── Widget Cards ──────────────────────── */
.widget {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 14px; margin-bottom: 14px;
}
.widget-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.widget-header h3 { font-size: 13px; font-weight: 700; }

/* ── Pagination ────────────────────────── */
.pagination { display: flex; justify-content: center; gap: 5px; margin-top: 20px; }
.page-btn { padding: 6px 11px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text-muted); font-size: 12px; transition: all .18s; }
.page-btn:hover, .page-btn.active { background: var(--gold); color: #000; border-color: var(--gold); }

/* ── Header ────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: #0a0a0a; border-bottom: 1px solid var(--border);
  height: 52px;
}
.header-inner {
  display: flex; align-items: center; gap: 16px;
  height: 52px; max-width: 1280px; margin: 0 auto; padding: 0 16px;
}
.site-logo { display: flex; align-items: center; flex-shrink: 0; font-size: 15px; font-weight: 800; letter-spacing: -.3px; }
.logo-gx { color: var(--gold); }
.logo-markets { color: var(--white); }

/* Primary Nav */
.primary-nav { flex: 1; }
.primary-nav > ul { display: flex; gap: 2px; }
.primary-nav > ul > li { position: relative; }
.primary-nav > ul > li > a {
  display: flex; align-items: center; gap: 4px;
  padding: 7px 11px; font-size: 12.5px; font-weight: 500;
  color: var(--text-muted); border-radius: var(--radius);
  transition: all .18s;
}
.primary-nav > ul > li > a:hover,
.primary-nav > ul > li.active > a { color: var(--gold); background: rgba(245,166,35,.07); }
.primary-nav > ul > li > a i { font-size: 9px; opacity: .7; }

/* Dropdown */
.dropdown {
  display: none; position: absolute; top: calc(100% + 3px); left: 0;
  background: var(--bg-card2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); min-width: 210px;
  box-shadow: var(--shadow); z-index: 200; padding: 4px 0;
}
.dropdown li a { display: block; padding: 8px 16px; font-size: 12px; color: var(--text-muted); transition: all .15s; }
.dropdown li a:hover { color: var(--gold); background: rgba(245,166,35,.06); }
.has-dropdown:hover .dropdown { display: block; }

/* Header right */
.header-right { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }
.hdr-admin { color: var(--text-muted); font-size: 12px; display: flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 4px; transition: all .15s; }
.hdr-admin:hover { color: var(--gold); }
.hdr-signout { color: var(--text-muted); font-size: 12px; transition: color .15s; }
.hdr-signout:hover { color: var(--red); }

/* Mobile toggle */
.mob-toggle { display: none; flex-direction: column; gap: 4px; padding: 5px; }
.mob-toggle span { display: block; width: 22px; height: 2px; background: var(--text-muted); border-radius: 2px; transition: all .2s; }

/* ── Footer ────────────────────────────── */
.site-footer { margin-top: 0; }
.footer-main { background: #080808; border-top: 1px solid var(--border); padding: 44px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 36px; }
.footer-logo { margin-bottom: 12px; }
.footer-about { font-size: 12px; color: var(--text-muted); line-height: 1.7; margin-bottom: 14px; }
.footer-social { display: flex; gap: 8px; margin-bottom: 14px; }
.footer-social a {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg-card2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 12px; transition: all .18s;
}
.footer-social a:hover { background: var(--gold); color: #000; border-color: var(--gold); }
.footer-contact p { font-size: 11px; color: var(--text-muted); margin-bottom: 5px; line-height: 1.6; }
.footer-contact i { color: var(--gold); margin-right: 5px; }
.footer-col h4 { font-size: 13px; font-weight: 700; margin-bottom: 12px; color: var(--white); }
.footer-col li { margin-bottom: 7px; }
.footer-col li a { font-size: 12px; color: var(--text-muted); }
.footer-col li a:hover { color: var(--gold); }
.footer-bottom { background: #040404; border-top: 1px solid var(--border); padding: 12px 0; text-align: center; }
.footer-bottom p { font-size: 11px; color: var(--text-dim); }

/* ── Sticky Footer Banner ──────────────── */
.sticky-bottom-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 999;
  background: #111; border-top: 2px solid var(--gold);
  padding: 10px 0;
  transform: translateY(0); transition: transform .3s;
}
.sticky-bottom-banner.hidden { transform: translateY(100%); }
.sbb-inner { display: flex; align-items: center; gap: 16px; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.sbb-logo img { height: 36px; object-fit: contain; }
.sbb-logo-text { font-size: 14px; font-weight: 800; }
.sbb-text span { display: block; font-size: 11px; color: var(--text-muted); }
.sbb-text strong { font-size: 22px; font-weight: 800; color: var(--gold); }
.sbb-close { margin-left: auto; color: var(--text-muted); font-size: 20px; line-height: 1; padding: 4px 8px; }
.sbb-close:hover { color: var(--white); }

/* ── Sticky Left/Right Banners ─────────── */
.sticky-side-banner {
  position: fixed; top: 50%; transform: translateY(-50%);
  z-index: 900; width: 100px;
  background: linear-gradient(135deg, #1a1200, #2a1c00);
  border: 1px solid #3a2800; border-radius: var(--radius);
  padding: 14px 10px; text-align: center;
  transition: opacity .3s;
}
.sticky-side-banner.left  { left: 0; border-left: none; border-radius: 0 var(--radius) var(--radius) 0; }
.sticky-side-banner.right { right: 0; border-right: none; border-radius: var(--radius) 0 0 var(--radius); }
.ssb-label  { font-size: 8px; font-weight: 700; color: var(--gold); letter-spacing: 1px; margin-bottom: 4px; }
.ssb-amount { font-size: 10px; color: var(--text-muted); }
.ssb-big    { display: block; font-size: 18px; font-weight: 800; color: var(--gold); }
.ssb-btn    { display: block; background: var(--gold); color: #000; font-size: 9px; font-weight: 700; padding: 4px 6px; border-radius: 3px; margin-top: 8px; }

/* ── Mobile Nav ────────────────────────── */
.mobile-nav { display: none; background: var(--bg-card); border-top: 1px solid var(--border); }
.mobile-nav ul { padding: 10px 14px; }
.mobile-nav li a { display: block; padding: 9px 0; border-bottom: 1px solid var(--border); color: var(--text-muted); font-size: 13px; }
.mobile-nav li:last-child a { border-bottom: none; }

/* ── Responsive ────────────────────────── */
@media (max-width: 1200px) {
  .sticky-side-banner { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 1024px) {
  .primary-nav { display: none; }
  .mob-toggle { display: flex; }
  .mobile-nav.open { display: block; }
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .sticky-bottom-banner .sbb-inner { flex-wrap: wrap; gap: 10px; }
}
