/* ============================================================
   main.css — AI Trading Review Site
   Design: Dark editorial · Fraunces + Cabinet Grotesk
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,600;0,9..144,700;0,9..144,900;1,9..144,300;1,9..144,600&family=Cabinet+Grotesk:wght@300;400;500;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── TOKENS ── */
:root {
  --gold:       #c9a84c;
  --gold-light: #e8c76a;
  --gold-dim:   #8a6f32;
  --gold-glow:  rgba(201,168,76,0.18);
  --gold-border:rgba(201,168,76,0.22);

  --bg:    #0c0d0f;
  --bg2:   #111316;
  --bg3:   #161a1f;
  --card:  #13161b;
  --card2: #1a1f27;

  --border:  rgba(255,255,255,0.07);
  --border2: rgba(255,255,255,0.12);

  --text:   #f0ede8;
  --text2:  #9a9590;
  --text3:  #5c5751;

  --green:  #3ecf8e;
  --red:    #f05252;
  --blue:   #4a9eff;

  --radius: 12px;
  --radius-sm: 7px;
  --radius-lg: 18px;

  --header-h: 64px;
  --sidebar-w: 300px;

  --shadow-card: 0 2px 24px rgba(0,0,0,0.45);
  --shadow-gold: 0 0 32px rgba(201,168,76,0.12);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Cabinet Grotesk', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --fs-base:  16px;
  --lh-body:  1.78;
}

[data-theme="light"] {
  --bg:    #f7f5f0;
  --bg2:   #efece5;
  --bg3:   #e8e4db;
  --card:  #ffffff;
  --card2: #f3f0e8;

  --border:  rgba(0,0,0,0.08);
  --border2: rgba(0,0,0,0.14);

  --text:  #1a1612;
  --text2: #6b6560;
  --text3: #a09a94;

  --shadow-card: 0 2px 20px rgba(0,0,0,0.10);
  --shadow-gold: 0 0 28px rgba(201,168,76,0.08);
}

[data-theme="light"] body {
  background:
    radial-gradient(ellipse 70% 45% at 15% 0%,   rgba(201,168,76,0.18) 0%, transparent 65%),
    radial-gradient(ellipse 55% 35% at 88% 25%,  rgba(210,130,30,0.13) 0%, transparent 55%),
    radial-gradient(ellipse 45% 55% at 5%  85%,  rgba(180,140,40,0.12) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 70% 90%,  rgba(201,168,76,0.10) 0%, transparent 50%),
    #f7f5f0;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: var(--fs-base); scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  background:
    radial-gradient(ellipse 70% 45% at 15% 0%,   rgba(201,168,76,0.13) 0%, transparent 65%),
    radial-gradient(ellipse 55% 35% at 88% 25%,  rgba(180,100,20,0.10) 0%, transparent 55%),
    radial-gradient(ellipse 45% 55% at 5%  85%,  rgba(140,110,30,0.09) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 70% 90%,  rgba(201,168,76,0.07) 0%, transparent 50%),
    #0c0d0f;
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: var(--lh-body);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Noise texture */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: .6;
  
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 3px; }

/* ── SELECTION ── */
::selection { background: var(--gold-glow); color: var(--gold-light); }


/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 200;
  height: var(--header-h);
  background: linear-gradient(90deg,
    rgba(20,14,8,0.92) 0%,
    rgba(12,13,15,0.88) 40%,
    rgba(10,12,10,0.92) 100%);
  backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--gold-border);
  box-shadow: 0 1px 32px rgba(201,168,76,0.07);
  display: flex; align-items: center;
}
[data-theme="light"] .site-header {
  background: linear-gradient(90deg,
    rgba(245,238,220,0.94) 0%,
    rgba(247,245,240,0.90) 50%,
    rgba(242,238,228,0.94) 100%);
  border-bottom: 1px solid var(--gold-border);
  box-shadow: 0 1px 24px rgba(201,168,76,0.06);
}

.header-inner {
  width: 100%; max-width: 1320px; margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center; gap: 24px;
}

/* Logo */
.site-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 20px; font-weight: 700;
  letter-spacing: -0.3px;
  white-space: nowrap;
  flex-shrink: 0;
}
.site-logo .logo-icon {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.site-logo .logo-icon svg { width: 18px; height: 18px; color: #0c0d0f; }
.site-logo .logo-text { color: var(--text); }
.site-logo .logo-text span { color: var(--gold); }

/* Nav spacer */
.header-spacer { flex: 1; }

/* Lang switcher */
.lang-switcher {
  position: relative;
  list-style: none;
}

.lang-switcher .lang-active {
  display: flex; align-items: center; gap: 5px;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 12px; font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 0.3px;
  background: var(--gold);
  color: #0c0d0f;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.lang-switcher .lang-active::after {
  content: '';
  display: block;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #0c0d0f;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.lang-switcher.open .lang-active::after {
  transform: rotate(180deg);
}

.lang-switcher .lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--card);
  border: 1px solid var(--border2);
  border-radius: 9px;
  padding: 4px;
  min-width: 80px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  z-index: 300;
}

.lang-switcher.open .lang-dropdown {
  display: block;
  animation: dropIn 0.15s ease;
}

@keyframes dropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.lang-switcher .lang-dropdown li {
  list-style: none;
}

.lang-switcher .lang-dropdown a {
  display: block;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 12px; font-weight: 500;
  font-family: var(--font-mono);
  color: var(--text2);
  transition: all 0.15s;
  white-space: nowrap;
}

.lang-switcher .lang-dropdown a:hover {
  background: var(--gold-glow);
  color: var(--gold);
}

/* Theme toggle */
.theme-toggle {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: var(--bg3);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text2);
  transition: all 0.2s;
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--gold-border); color: var(--gold); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }


/* ============================================================
   PAGE LAYOUT (review page)
   ============================================================ */
.page-wrap {
  max-width: 1320px; margin: 0 auto;
  padding: 48px 24px 80px;
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  grid-template-areas: "main sidebar";
  gap: 48px;
  position: relative; z-index: 1;
}

/* ── MAIN COLUMN ── */
.review-main { grid-area: main; min-width: 0; }

/* ── SIDEBAR ── */
.review-sidebar {
  grid-area: sidebar;
  width: var(--sidebar-w);
}
.sidebar-sticky {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  display: flex; flex-direction: column; gap: 16px;
}


/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--text3);
  font-family: var(--font-mono);
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text2); transition: color .2s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb-sep { color: var(--text3); }
.breadcrumb-current { color: var(--text2); }


/* ============================================================
   REVIEW HEADER
   ============================================================ */
.review-header { margin-bottom: 32px; }

.review-category {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  font-family: var(--font-mono);
  margin-bottom: 16px;
}
.review-category::before {
  content: '';
  display: block; width: 20px; height: 1px;
  background: var(--gold);
}

.review-h1 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.5px;
  color: var(--text);
  margin-bottom: 20px;
}
.review-h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--gold);
}

/* Meta bar */
.review-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 18px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.meta-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text2);
}
.meta-item svg { width: 14px; height: 14px; opacity: .6; flex-shrink: 0; }
.meta-spacer { flex: 1; }

/* Font size buttons */
.font-controls {
  display: flex; align-items: center; gap: 4px; margin-left: auto;
}
.font-btn {
  width: 28px; height: 28px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg3);
  color: var(--text2);
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  transition: all .18s;
}
.font-btn:hover { border-color: var(--gold-border); color: var(--gold); }


/* ============================================================
   REVIEW BODY TEXT
   ============================================================ */
.review-body {
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--text2);
  transition: font-size .2s;
}
.review-body h2 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 600;
  color: var(--text);
  margin: 40px 0 16px;
  line-height: 1.25;
  letter-spacing: -0.3px;
}
.review-body h2::before {
  content: '';
  display: block; width: 32px; height: 2px;
  background: var(--gold); margin-bottom: 10px;
  border-radius: 2px;
}
.review-body h3 {
  font-family: var(--font-display);
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 600;
  color: var(--text);
  margin: 28px 0 12px;
  letter-spacing: -0.2px;
}
.review-body p { margin-bottom: 18px; }
.review-body strong { color: var(--text); font-weight: 700; }
.review-body em { color: var(--gold-light); font-style: italic; }
.review-body a { color: var(--gold); border-bottom: 1px solid var(--gold-border); transition: border-color .2s; }
.review-body a:hover { border-color: var(--gold); }
.review-body ul, .review-body ol {
  padding-left: 22px; margin-bottom: 18px;
}
.review-body li { margin-bottom: 6px; }

/* Callout box */
.review-body .callout {
  background: var(--card);
  border: 1px solid var(--gold-border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 14px;
}

/* Placeholder */
.content-placeholder {
  min-height: 400px;
  background: var(--card);
  border: 1px dashed var(--border2);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--text3);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.5px;
  margin-bottom: 48px;
}


/* ============================================================
   SCORE WIDGET
   ============================================================ */
.score-widget {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 48px;
  overflow: hidden;
  position: relative;
}
.score-widget::before {
  content: '';
  position: absolute; top: -40px; right: -40px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
  pointer-events: none;
}

.score-widget-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 24px; gap: 16px;
}
.score-widget-title {
  font-family: var(--font-display);
  font-size: 19px; font-weight: 700;
  color: var(--text);
  letter-spacing: -0.2px;
}
.score-widget-subtitle {
  font-size: 12px; color: var(--text3);
  margin-top: 4px;
  font-family: var(--font-mono);
}

/* Circle score */
.score-circle-wrap {
  display: flex; align-items: center; gap: 28px;
  flex-wrap: wrap;
}
.score-circle {
  position: relative;
  width: 100px; height: 100px; flex-shrink: 0;
}
.score-circle svg {
  width: 100px; height: 100px;
  transform: rotate(-90deg);
}
.score-circle .track {
  fill: none;
  stroke: var(--bg3);
  stroke-width: 7;
}
.score-circle .fill {
  fill: none;
  stroke: url(#scoreGrad);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 251.2;
  stroke-dashoffset: 251.2;
  transition: stroke-dashoffset 1.4s cubic-bezier(.4,0,.2,1);
}
.score-circle-num {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 26px; font-weight: 900;
  color: var(--gold);
  line-height: 1;
}
.score-circle-num small {
  font-size: 11px; color: var(--text3);
  font-family: var(--font-mono);
  font-weight: 400;
}

/* Score bars */
.score-bars { flex: 1; min-width: 0; width: 100%; display: flex; flex-direction: column; gap: 10px; }
.score-bar-row {
  display: grid;
  grid-template-columns: 130px 1fr 36px;
  align-items: center; gap: 10px;
}
.score-bar-label { font-size: 12.5px; color: var(--text2); font-weight: 500; }
.score-bar-track {
  height: 6px; background: var(--bg3);
  border-radius: 3px; overflow: hidden;
}
.score-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold-light));
  border-radius: 3px;
  width: 0;
  transition: width 1.2s cubic-bezier(.4,0,.2,1);
}
.score-bar-val {
  font-size: 12px; color: var(--gold);
  font-family: var(--font-mono); font-weight: 500;
  text-align: right;
}


/* ============================================================
   COMMENTS
   ============================================================ */
.comments-section { margin-bottom: 56px; }

.comments-header {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.comments-title {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700;
  color: var(--text); letter-spacing: -0.3px;
}
.comments-count-badge {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 12px;
  font-size: 12px; color: var(--text2);
  font-family: var(--font-mono);
}
.avg-stars {
  margin-left: auto;
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text2);
}
.avg-stars .stars { color: var(--gold); font-size: 15px; letter-spacing: 1px; }
.avg-stars strong { color: var(--text); font-family: var(--font-mono); }

/* Comment card */
.comment-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 12px;
  transition: border-color .2s;
}
.comment-card:hover { border-color: var(--border2); }
.comment-card.is-reply {
  margin-left: 40px;
  background: var(--bg3);
  border-style: dashed;
}

.comment-top {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 12px;
}
.comment-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: var(--bg3);
  border: 2px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 15px; font-weight: 700;
  color: var(--gold);
}
.comment-meta { flex: 1; }
.comment-author { font-size: 14px; font-weight: 700; color: var(--text); }
.comment-date   { font-size: 11px; color: var(--text3); font-family: var(--font-mono); margin-top: 1px; }
.comment-stars  { color: var(--gold); font-size: 13px; letter-spacing: 1px; }
.comment-body   { font-size: 14px; color: var(--text2); line-height: 1.7; }

/* No reviews */
.no-comments {
  text-align: center; padding: 40px;
  color: var(--text3); font-size: 14px;
  font-family: var(--font-mono);
}


/* ============================================================
   REVIEW FORM
   ============================================================ */
.review-form-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 48px;
}
.review-form-title {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 700;
  color: var(--text); margin-bottom: 24px;
  letter-spacing: -0.2px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-label { font-size: 12px; font-weight: 700; color: var(--text2); text-transform: uppercase; letter-spacing: 0.8px; font-family: var(--font-mono); }
.form-label small { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--text3); font-size: 11px; }

.form-input, .form-textarea {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  color: var(--text);
  font: 14px / 1.5 var(--font-body);
  width: 100%;
  transition: border-color .18s, box-shadow .18s;
  outline: none;
}
.form-input:focus, .form-textarea:focus {
  border-color: var(--gold-border);
  box-shadow: 0 0 0 3px var(--gold-glow);
}
.form-input.error, .form-textarea.error {
  border-color: rgba(240,82,82,.5);
}
.form-textarea { min-height: 120px; resize: vertical; }
.form-error-msg { font-size: 11px; color: var(--red); font-family: var(--font-mono); display: none; }
.form-error-msg.visible { display: block; }

/* Star rating input */
.star-input { display: flex; gap: 4px; }
.star-input button {
  font-size: 24px; color: var(--bg3);
  transition: color .15s, transform .15s;
  line-height: 1;
}
.star-input button.active,
.star-input button.hovered { color: var(--gold); }
.star-input button:hover { transform: scale(1.2); }

/* Submit */
.form-submit-wrap { margin-top: 20px; }
.btn-submit {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 32px;
  background: linear-gradient(135deg, var(--gold-dim) 0%, var(--gold) 50%, var(--gold-light) 100%);
  background-size: 200% 100%;
  border-radius: 9px;
  color: #ffffff;
  font: 700 14px / 1 var(--font-body);
  letter-spacing: 0.3px;
  transition: background-position .3s, transform .15s, box-shadow .2s;
}
.btn-submit:hover {
  background-position: 100% 0;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(201,168,76,.3);
}
.btn-submit .spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(0,0,0,.2);
  border-top-color: #0c0d0f;
  border-radius: 50%;
  animation: spin .6s linear infinite;
  display: none;
}
.btn-submit.loading .spinner { display: block; }
.btn-submit.loading .btn-text { opacity: .5; }

.form-success {
  display: none;
  align-items: center; gap: 12px;
  padding: 16px 20px;
  background: rgba(62,207,142,.08);
  border: 1px solid rgba(62,207,142,.25);
  border-radius: var(--radius-sm);
  color: var(--green);
  font-size: 14px;
  margin-top: 16px;
}
.form-success.visible { display: flex; }
.form-success svg { width: 18px; height: 18px; flex-shrink: 0; }

@keyframes spin { to { transform: rotate(360deg); } }


/* ============================================================
   SIDEBAR CARDS
   ============================================================ */
.scard {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

/* Platform info card */
.scard-platform {
  padding: 20px;
}
.platform-name {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 700;
  color: var(--text); letter-spacing: -0.3px;
  margin-bottom: 4px;
}
.platform-tagline {
  font-size: 12px; color: var(--text3);
  font-family: var(--font-mono); margin-bottom: 18px;
}

.sinfo-row {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px; gap: 12px;
}
.sinfo-row:last-child { border-bottom: none; }
.sinfo-key { color: var(--text3); flex-shrink: 0; font-size: 12px; }
.sinfo-val { color: var(--text); text-align: right; font-weight: 500; }

.btn-visit {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 12px;
  margin-top: 16px;
  background: linear-gradient(135deg, var(--gold-dim), var(--gold));
  border-radius: var(--radius-sm);
  color: #ffffff;
  font: 700 13px / 1 var(--font-body);
  letter-spacing: 0.3px;
  transition: opacity .2s, transform .15s, box-shadow .2s;
}
.btn-visit:hover {
  opacity: .9; transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201,168,76,.28);
}
.btn-visit svg { width: 14px; height: 14px; }

/* Mini score */
.scard-score { padding: 18px 20px; }
.scard-score-title {
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text3);
  font-family: var(--font-mono); margin-bottom: 14px;
}
.mini-bar-row {
  display: grid; grid-template-columns: 1fr auto;
  align-items: center; gap: 8px; margin-bottom: 9px;
}
.mini-bar-label { font-size: 12px; color: var(--text2); }
.mini-bar-track {
  grid-column: 1/-1;
  height: 3px; background: var(--bg3);
  border-radius: 2px; overflow: hidden;
  margin-top: -4px; margin-bottom: 2px;
}
.mini-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold));
  border-radius: 2px; width: 0;
  transition: width 1s cubic-bezier(.4,0,.2,1);
}
.mini-bar-val {
  font-size: 12px; color: var(--gold);
  font-family: var(--font-mono);
}

/* Gallery */
.scard-gallery { padding: 16px; }
.gallery-title {
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text3);
  font-family: var(--font-mono); margin-bottom: 12px;
}
.gallery-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
}
.gallery-thumb {
  aspect-ratio: 16/10;
  border-radius: 6px; overflow: hidden;
  cursor: pointer; position: relative;
  background: var(--bg3);
  border: 1px solid var(--border);
}
.gallery-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s;
}
.gallery-thumb::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(0,0,0,.4);
  opacity: 0; transition: opacity .2s;
}
.gallery-thumb:hover img { transform: scale(1.06); }
.gallery-thumb:hover::after { opacity: 1; }
.gallery-thumb .zoom-icon {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  color: #fff; opacity: 0; transition: opacity .2s;
}
.gallery-thumb:hover .zoom-icon { opacity: 1; }
.gallery-thumb .zoom-icon svg { width: 20px; height: 20px; }


/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.92);
  display: none; align-items: center; justify-content: center;
  backdrop-filter: blur(8px);
  padding: 20px;
}
.lightbox.open { display: flex; animation: lbIn .22s ease; }
@keyframes lbIn { from { opacity:0; } to { opacity:1; } }

.lightbox-img {
  max-width: 90vw; max-height: 85vh;
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0,0,0,.8);
  object-fit: contain;
}
.lightbox-close {
  position: absolute; top: 20px; right: 20px;
  width: 42px; height: 42px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  color: #fff; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.lightbox-close:hover { background: rgba(255,255,255,.2); }
.lightbox-prev,
.lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px;
  background: rgba(255,255,255,.1);
  border-radius: 50%; color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(201,168,76,.4); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev svg, .lightbox-next svg { width: 20px; height: 20px; }
.lightbox-counter {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  font-size: 12px; color: rgba(255,255,255,.5);
  font-family: var(--font-mono);
}


/* ============================================================
   HOME PAGE
   ============================================================ */
.home-wrap { position: relative; z-index: 1; }

/* Hero */
.home-hero {
  max-width: 1320px; margin: 0 auto;
  padding: 80px 24px 64px;
  position: relative;
}
.home-hero::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse 70% 80% at 50% 0%, rgba(201,168,76,.1) 0%, transparent 70%);
  pointer-events: none;
    max-width: 100%;
  overflow: hidden;
}

.hero-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gold);
  font-family: var(--font-mono); margin-bottom: 20px;
}
.hero-label-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; transform: scale(1); }
  50%      { opacity:.4; transform: scale(.7); }
}

.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 68px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -1.5px;
  color: var(--text);
  max-width: 780px;
  margin-bottom: 20px;
}
.hero-h1 .italic { font-style: italic; font-weight: 300; color: var(--gold); }

.hero-sub {
  font-size: 17px; color: var(--text2);
  max-width: 520px; line-height: 1.6;
  margin-bottom: 0;
}

/* Latest reviews section */
.latest-section {
  max-width: 1320px; margin: 0 auto;
  padding: 0 24px 80px;
}
.latest-header {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 28px;
}
.latest-title {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text3); font-family: var(--font-mono);
}
.latest-line { flex: 1; height: 1px; background: var(--border); }

/* Review cards grid */
.reviews-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }

.review-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .22s, border-color .22s, box-shadow .22s;
}
.review-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-border);
  box-shadow: var(--shadow-gold);
}
.review-card-thumb {
  aspect-ratio: 16/9; background: var(--bg3);
  overflow: hidden; position: relative;
}
.review-card-thumb img { width:100%; height:100%; object-fit: cover; transition: transform .4s; }
.review-card:hover .review-card-thumb img { transform: scale(1.04); }
.review-card-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text3); font-family: var(--font-mono); font-size: 11px;
}

.review-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.review-card-name {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 700;
  color: var(--text); margin-bottom: 8px;
  letter-spacing: -0.2px;
  line-height: 1.25;
}
.review-card-desc { font-size: 13px; color: var(--text2); flex: 1; margin-bottom: 16px; line-height: 1.6; }
.review-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto;
}
.review-card-score {
  font-size: 22px; font-weight: 900;
  font-family: var(--font-display);
  color: var(--gold); letter-spacing: -0.5px;
  line-height: 1;
}
.review-card-score small { font-size: 13px; color: var(--text3); font-family: var(--font-mono); font-weight: 400; }
.btn-read {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text2);
  font-size: 13px; font-weight: 600;
  transition: all .18s;
}
.btn-read:hover { border-color: var(--gold-border); color: var(--gold); }
.btn-read svg { width: 13px; height: 13px; transition: transform .18s; }
.review-card:hover .btn-read svg { transform: translateX(3px); }


/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  position: relative; z-index: 1;
}
.footer-inner {
  max-width: 1320px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.footer-copy { font-size: 12px; color: var(--text3); font-family: var(--font-mono); }
.footer-lang { }


/* ============================================================
   ANIMATIONS (IntersectionObserver targets)
   ============================================================ */
.anim-up {
  opacity: 0; transform: translateY(24px);
  transition: opacity .5s ease, transform .5s ease;
}
.anim-up.in-view { opacity: 1; transform: none; }

/* Stagger children */
.anim-stagger > * {
  opacity: 0; transform: translateY(20px);
  transition: opacity .45s ease, transform .45s ease;
}
.anim-stagger.in-view > *:nth-child(1) { opacity:1; transform:none; transition-delay: 0s; }
.anim-stagger.in-view > *:nth-child(2) { opacity:1; transform:none; transition-delay:.07s; }
.anim-stagger.in-view > *:nth-child(3) { opacity:1; transform:none; transition-delay:.14s; }


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  :root { --sidebar-w: 260px; }
  .page-wrap { gap: 32px; }
}

@media (max-width: 900px) {
  .page-wrap {
    grid-template-columns: 1fr;
    grid-template-areas: "sidebar" "main";
    padding-top: 24px;
  }
  .review-sidebar { width: 100%; }
  .sidebar-sticky { position: static; }
  .reviews-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .header-inner { padding: 0 16px; gap: 12px; }
  .page-wrap { padding: 16px 16px 60px; }
  .reviews-grid { grid-template-columns: 1fr; }
  .score-circle-wrap { flex-direction: column; align-items: flex-start; }
  .form-row { grid-template-columns: 1fr; }
  .score-bar-row { grid-template-columns: 100px 1fr 30px; }
  .latest-section, .home-hero { padding-left: 16px; padding-right: 16px; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}


/* ── TABLE OF CONTENTS ── */
.review-toc {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 36px;
}
.toc-label {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--text3); margin-bottom: 12px;
}
.toc-list {
  list-style: none;
  counter-reset: toc;
  display: flex; flex-direction: column; gap: 6px;
}
.toc-list li {
  counter-increment: toc;
  display: flex; align-items: baseline; gap: 10px;
}
.toc-list li::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 11px; color: var(--gold);
  flex-shrink: 0;
}
.toc-list a {
  font-size: 14px; color: var(--text2);
  border-bottom: 1px solid transparent;
  transition: color .18s, border-color .18s;
}
.toc-list a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold-border);
}

/* ── REVIEW FIGURE (images inside body) ── */
.review-figure {
  margin: 28px 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.review-figure img {
  width: 100%; height: auto;
  display: block;
}
.review-figure figcaption {
  padding: 10px 14px;
  font-size: 12px; color: var(--text3);
  font-family: var(--font-mono);
  background: var(--card);
  border-top: 1px solid var(--border);
}

/* ── PROS & CONS ── */
.review-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}
.review-pros,
.review-cons {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.review-pros { border-top: 3px solid var(--green); }
.review-cons { border-top: 3px solid var(--red); }

.review-pros h3,
.review-cons h3 {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 700;
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.review-pros h3 { color: var(--green); }
.review-cons h3 { color: var(--red); }
.review-pros h3 svg { color: var(--green); }
.review-cons h3 svg { color: var(--red); }

/* Убираем ::before от общего h3 внутри review-body */
.review-pros-cons h3::before { display: none !important; }

.review-pros ul,
.review-cons ul {
  list-style: none;
  padding: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.review-pros li,
.review-cons li {
  font-size: 13.5px; color: var(--text2);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}
.review-pros li::before {
  content: '✓';
  position: absolute; left: 0;
  color: var(--green); font-weight: 700; font-size: 12px;
}
.review-cons li::before {
  content: '✕';
  position: absolute; left: 0;
  color: var(--red); font-weight: 700; font-size: 12px;
}

@media (max-width: 640px) {
  .review-pros-cons { grid-template-columns: 1fr; }
}


/* ── HERO eyebrow ── */
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gold);
  font-family: var(--font-mono); margin-bottom: 20px;
}

/* ── STATS SECTION ── */
.home-stats {
  max-width: 1320px; margin: 0 auto 24px;
  padding: 0 24px;
}
.stats-inner {
  display: flex; align-items: stretch;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.stats-inner::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg,
    rgba(201,168,76,.06) 0%,
    transparent 50%,
    rgba(201,168,76,.04) 100%);
  pointer-events: none;
}

.stat-item {
  flex: 1; padding: 36px 24px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; gap: 10px;
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -1px;
  min-width: 120px;
}
.stat-num.stat-money { letter-spacing: -1.5px; }

.stat-label {
  font-size: 12px; color: var(--text3);
  font-family: var(--font-mono);
  text-transform: uppercase; letter-spacing: 0.8px;
  line-height: 1.4;
}

.stat-divider {
  width: 1px;
  background: var(--border);
  margin: 24px 0;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .stats-inner {
    flex-wrap: wrap;
  }
  .stat-item {
    flex: 1 1 50%;
    padding: 28px 16px;
    border-bottom: 1px solid var(--border);
  }
  .stat-item:nth-child(1),
  .stat-item:nth-child(3) { border-right: 1px solid var(--border); }
  .stat-divider { display: none; }
}
@media (max-width: 400px) {
  .stat-item { flex: 1 1 100%; border-right: none !important; }
}

/* ── HOME CONTENT SECTIONS ── */
.home-content-section {
  max-width: 1320px; margin: 0 auto;
  padding: 0 24px 64px;
}
.home-content-wrap {
  border-top: 1px solid var(--border);
  padding-top: 48px;
}

.home-section-label {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--gold); margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.home-section-label::before {
  content: '';
  display: block; width: 20px; height: 1px;
  background: var(--gold);
}

.home-section-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700; line-height: 1.2;
  letter-spacing: -0.5px;
  color: var(--text);
  margin-bottom: 32px;
}

.home-text-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.home-text-col p {
  font-size: 15px; color: var(--text2);
  line-height: 1.8; margin-bottom: 16px;
}
.home-text-col p strong { color: var(--text); }
.home-text-col a {
  color: var(--gold);
  border-bottom: 1px solid var(--gold-border);
  transition: border-color .18s;
}
.home-text-col a:hover { border-color: var(--gold); }

@media (max-width: 768px) {
  .home-text-columns { grid-template-columns: 1fr; gap: 0; }
}

/* ── CTA JOIN SECTION ── */
.home-cta-section {
  max-width: 1320px; margin: 0 auto;
  padding: 0 24px 64px;
}
.home-cta-inner {
  position: relative;
  background: var(--card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 48px;
  overflow: hidden;
}
.home-cta-glow {
  position: absolute; top: -60px; right: -60px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(201,168,76,.12) 0%, transparent 70%);
  pointer-events: none;
}
.home-cta-content {
  display: flex; align-items: center; gap: 32px;
  position: relative; z-index: 1;
  flex-wrap: wrap;
}
.home-cta-icon {
  width: 64px; height: 64px; flex-shrink: 0;
  background: var(--gold-glow);
  border: 1px solid var(--gold-border);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
}
.home-cta-icon svg { width: 28px; height: 28px; }

.home-cta-text { flex: 1; min-width: 240px; }
.home-cta-title {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 700; color: var(--text);
  letter-spacing: -0.3px; margin-bottom: 8px;
}
.home-cta-desc {
  font-size: 14px; color: var(--text2); line-height: 1.6;
}

.btn-join {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--gold-dim) 0%, var(--gold) 50%, var(--gold-light) 100%);
  background-size: 200% 100%;
  border-radius: 10px;
  color: #ffffff;
  font: 700 14px / 1 var(--font-body);
  letter-spacing: 0.3px;
  white-space: nowrap; flex-shrink: 0;
  transition: background-position .3s, transform .15s, box-shadow .2s;
}
.btn-join:hover {
  background-position: 100% 0;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201,168,76,.3);
}
.btn-join svg { width: 16px; height: 16px; }

@media (max-width: 640px) {
  .home-cta-inner { padding: 28px 20px; }
  .home-cta-content { gap: 20px; }
  .btn-join { width: 100%; justify-content: center; }
}

/* ── MODAL ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.open {
  display: flex;
  animation: lbIn .2s ease;
}

.modal-box {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 36px;
  width: 100%; max-width: 580px;
  max-height: 90vh; overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text2);
  display: flex; align-items: center; justify-content: center;
  transition: all .18s;
}
.modal-close:hover { border-color: var(--gold-border); color: var(--gold); }

.modal-header { margin-bottom: 28px; }
.modal-title {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700;
  color: var(--text); letter-spacing: -0.3px;
  margin-bottom: 6px;
}
.modal-subtitle { font-size: 13px; color: var(--text3); }

/* Modal form fields */
.modal-form { display: flex; flex-direction: column; gap: 0; }
.mform-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.mform-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.mform-label {
  font-size: 12px; font-weight: 700; color: var(--text2);
  text-transform: uppercase; letter-spacing: .8px;
  font-family: var(--font-mono);
}
.mform-label small {
  font-weight: 400; text-transform: none;
  letter-spacing: 0; color: var(--text3); font-size: 11px;
}
.mform-input, .mform-select, .mform-textarea {
  background: var(--bg);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  color: var(--text);
  font: 14px / 1.5 var(--font-body);
  width: 100%; outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.mform-select { appearance: none; cursor: pointer; }
.mform-input:focus, .mform-select:focus, .mform-textarea:focus {
  border-color: var(--gold-border);
  box-shadow: 0 0 0 3px var(--gold-glow);
}
.mform-input.error, .mform-select.error, .mform-textarea.error {
  border-color: rgba(240,82,82,.5);
}
.mform-textarea { min-height: 100px; resize: vertical; }
.mform-error {
  font-size: 11px; color: var(--red);
  font-family: var(--font-mono); display: none;
}
.mform-error.visible { display: block; }

/* Radio group */
.mform-radio-group {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.mform-radio {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 14px;
  background: var(--bg);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px; color: var(--text2);
  transition: all .15s;
}
.mform-radio input { display: none; }
.mform-radio:has(input:checked) {
  background: var(--gold-glow);
  border-color: var(--gold-border);
  color: var(--gold);
}
.mform-radio span { pointer-events: none; }

.mform-submit-wrap { margin-top: 8px; }

@media (max-width: 520px) {
  .mform-row { grid-template-columns: 1fr; }
  .modal-box { padding: 24px 18px; }
}
