/* ══════════════════════════════════════════════════════════════
   GOLDSIGNAL.CSS
   Upload to: /wp-content/uploads/goldsignal/goldsignal.css
   Bump GOLDSIGNAL_ASSET_VERSION in wp-config.php after re-upload.
   ══════════════════════════════════════════════════════════════ */

/* ── LIGHT MODE (default) ── */
:root {
  --bg: #f5f2ea;
  --surface-a: #ffffff;
  --surface-b: #faf8f3;
  --surface-c: #f0ece3;
  --border: #e2ddd4;
  --border-active: #c9a84c;
  --gold: #a07020;
  --gold-dim: #c9a84c;
  --text-primary: #1a1a1a;
  --text-secondary: #555555;
  --text-muted: #999999;
  --tp-bg: #43c18b;
  --tp-text: #1a7a40;
  --sl-bg: #e54c6f;
  --sl-text: #c0392b;
  --pending-bg: #eeebe4;
  --pending-text: #777777;
  --locked-bg: #fdf8ed;
  --header-bg: #ffffff;
  --card-bg: #ffffff;
  --panel-bg: #f8f5ee;
  --header-hover: rgba(0,0,0,0.03);
  --shadow: 0 1px 3px rgba(0,0,0,0.07);
  --radius: 6px;
  --radius-lg: 10px;
  --sticky-header-height: 56px;
  --font: 'Trebuchet MS', 'Lucida Grande', 'Lucida Sans Unicode', sans-serif;
}

/* ── DARK MODE ── */
body.dark {
  --bg: #0f0f0f;
  --surface-a: #1a1a1a;
  --surface-b: #141414;
  --surface-c: #202020;
  --border: #2a2a2a;
  --border-active: #c9a84c;
  --gold: #c9a84c;
  --gold-dim: #8a6e2f;
  --text-primary: #e8e8e8;
  --text-secondary: #888888;
  --text-muted: #808080;
  --tp-bg: #00854c;
  --tp-text: #74c69d;
  --sl-bg: #b70029;
  --sl-text: #f4acb7;
  --pending-bg: #2a2a2a;
  --pending-text: #888888;
  --locked-bg: #1c1a14;
  --header-bg: #0d0d0d;
  --card-bg: rgba(0,0,0,0.25);
  --panel-bg: #131313;
  --header-hover: rgba(255,255,255,0.03);
  --shadow: none;
}

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

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  padding-bottom: 40px;
  transition: background 0.3s, color 0.3s;
}

/* ── STICKY HEADER ── */
#site-header {
  position: sticky;
  top: 0;
  z-index: 98;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  height: var(--sticky-header-height);
  transition: background 0.3s, border-color 0.3s;
}

.header-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 15px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── HEADER DROPDOWN MENU ── */
#menu-panel {
  position: fixed;
  top: var(--sticky-header-height);
  left: 0;
  right: 0;
  z-index: 97;
  background: var(--panel-bg);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px 18px;
  transform: translateY(-100%);
  transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1), background 0.3s;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

#menu-panel.open {
  transform: translateY(0);
  z-index: 100;
}

#menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 98;
  background: rgba(0,0,0,0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  top: var(--sticky-header-height);
}

#menu-overlay.open { opacity: 1; pointer-events: all; }

.menu-header-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 20px;
  height: 32px;
  padding: 0 12px 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  color: var(--text-secondary);
}

.menu-header-btn:hover { border-color: var(--gold); color: var(--gold); }

.menu-header-label {
  font-family: var(--font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.menu-header-icon {
  font-size: 14px;
  line-height: 1;
}

.theme-icon-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  transition: border-color 0.2s, background 0.2s;
  color: var(--text-secondary);
}

.theme-icon-btn:hover { border-color: var(--gold); }

/* ── STICKY INFO SECTION ── */
#info-section {
  position: sticky;
  top: var(--sticky-header-height);
  z-index: 96;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, border-color 0.3s;
}

.info-tab-headers {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  max-width: 760px;
  margin: 0 auto;
}

.info-tab-btn {
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  padding: 0;
}

.info-tab-header {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 9px 14px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}

.info-tab-btn:not(:last-child) .info-tab-header {
  border-right: 1px solid var(--border);
}

.info-tab-btn.open .info-tab-header { border-bottom-color: var(--gold); }

.info-tab-icon { font-size: 11px; opacity: 0.6; }

.info-tab-label {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.info-tab-btn.open .info-tab-label { color: var(--gold); }

.info-chevron {
  margin-left: auto;
  font-size: 9px;
  color: var(--text-muted);
  transition: transform 0.25s;
  flex-shrink: 0;
}

.info-tab-btn.open .info-chevron { transform: rotate(180deg); }

.info-tab-body {
  display: none;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--border);
  background: var(--surface-b);
  width: 100%;
  transition: background 0.3s;
}

.info-tab-body > * {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.info-tab-body.open { display: block; }

.info-tab-body p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.info-tab-body p + p { margin-top: 8px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.stat-item {
  background: var(--surface-a);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow);
  align-items: center;
}

.stat-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.stat-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.stat-item.stat-winrate .stat-value { color: var(--tp-text); }

.stat-item.stat-updated .stat-value {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.video-embed-placeholder {
  background: var(--surface-c);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.play-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-muted);
}

/* ── MAIN CONTENT ── */
#main-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 24px 0;
}

.feed-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.feed-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #808080;
}

.feed-actions { display: flex; gap: 8px; align-items: center; }

.btn-ghost {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ── WEEK GROUP ── */
.week-group { margin-bottom: 6px; }

.week-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 8px 12px 6px;
  border-left: 2px solid var(--border);
  margin-bottom: 2px;
}

/* ── DAY ACCORDION ── */
.day-row {
  border-radius: var(--radius);
  margin-bottom: 3px;
  overflow: hidden;
  border: 1px solid transparent;
  transition: border-color 0.2s, background 0.3s;
}

.week-a .day-row { background: var(--surface-a); box-shadow: var(--shadow); }
.week-b .day-row { background: var(--surface-b); }

.day-row.open { border-color: var(--border); }
.day-row.today { border-color: var(--gold-dim); }

.day-header {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  cursor: pointer;
  gap: 12px;
  user-select: none;
  transition: background 0.15s;
}

.day-header:hover { background: var(--header-hover); }

.day-date {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  min-width: 100px;
}

.day-label {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.day-row.today { position: relative; }

.today-tag {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--gold);
  color: #fff;
  padding: 2px 7px;
  border-radius: var(--radius) 0 var(--radius) 0;
  line-height: 1.6;
  pointer-events: none;
}

body.dark .today-tag { color: #0f0f0f; }

.day-row.today .day-header { padding-top: 20px; }

.day-meta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.signal-count { font-size: 10px; color: var(--text-muted); letter-spacing: 0.04em; }

/* ── DAY RESULT INDICATOR ── */
.day-indicators { display: flex; align-items: center; gap: 2px; }

.day-result-indicator {
  font-size: 12px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.day-chevron {
  font-size: 10px;
  color: var(--text-muted);
  transition: transform 0.25s;
  margin-left: 4px;
}

.day-row.open .day-chevron { transform: rotate(180deg); }

/* ── DAY BODY ── */
.day-body { display: none; padding: 10px 12px 10px 12px; }
.day-row.open .day-body { display: block; }

/* ── AUTH / ENROLLMENT STATES ── */
.day-state-box {
  border-radius: var(--radius);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.day-state-box.state-login {
  background: var(--surface-b);
  border: 1px solid var(--border);
}

.day-state-box.state-enroll {
  background: var(--locked-bg);
  border: 1px solid var(--gold-dim);
}

.day-state-box.state-pending {
  background: var(--surface-b);
  border: 1px solid var(--border);
}

.state-icon { font-size: 22px; line-height: 1; }

.state-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.state-sub {
  font-size: 11px;
  color: var(--text-muted);
  max-width: 220px;
  line-height: 1.6;
}

.btn-state {
  margin-top: 4px;
  border: none;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-state.btn-login { background: var(--text-primary); color: var(--bg); }
body.dark .btn-state.btn-login { color: #0f0f0f; }
.btn-state.btn-enroll { background: var(--gold); color: #fff; }
body.dark .btn-state.btn-enroll { color: #0f0f0f; }
.btn-state:hover { opacity: 0.82; }

/* Loader dots */
.loader-dots {
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.loader-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: dotPulse 1.4s ease-in-out infinite;
}

.loader-dots span:nth-child(2) { animation-delay: 0.2s; }
.loader-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotPulse {
  0%, 80%, 100% { opacity: 0.2; transform: scale(0.85); }
  40% { opacity: 1; transform: scale(1); }
}

/* ── SIGNAL CARD ── */
.signal-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 8px;
  box-shadow: var(--shadow);
  transition: background 0.3s, border-color 0.3s;
}

.signal-card:last-child { margin-bottom: 0; }

.signal-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.signal-pair {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-primary);
}

.signal-pair span { color: var(--gold); }

.signal-direction {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  font-weight: 700;
}

.direction-buy  { background: #43c18b36; color: var(--tp-text); }
.direction-sell { background: #e54c6f42; color: var(--sl-text); }

.signal-levels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.level-item { display: flex; flex-direction: column; gap: 3px; }

.level-label {
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.level-value {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.level-item.sl .level-value { color: var(--sl-text); }
.level-item.tp .level-value { color: var(--tp-text); }

.signal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-top: 2px;
}

.signal-time { font-size: 10px; color: var(--text-muted); letter-spacing: 0.04em; }

.result-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
}

.result-tp      { background: #7d7d7d1f;      color: #00a140; }
.result-sl      { background: #7d7d7d1f;      color: #c71300; }
.result-pending { background: var(--pending-bg); color: var(--pending-text); }

/* ── PAGINATION ── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.btn-page {
  background: var(--surface-a);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.btn-page:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); }
.btn-page:disabled { opacity: 0.3; cursor: not-allowed; }

.btn-jump {
  padding: 8px 12px;
  font-size: 14px;
  letter-spacing: 0;
}

/* ── MARKET SESSION ── */
.market-session-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ms-title {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

.market-session {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ms-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ms-label {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.ms-sydney   { background: #4e9af1; }
.ms-tokyo    { background: #e86c3a; }
.ms-london   { background: #3ab88a; }
.ms-new-york { background: #a07020; }
.ms-closed   { background: var(--border); }

.market-session[data-session="sydney"]   .ms-label { color: #4e9af1; }
.market-session[data-session="tokyo"]    .ms-label { color: #e86c3a; }
.market-session[data-session="london"]   .ms-label { color: #3ab88a; }
.market-session[data-session="new-york"] .ms-label { color: var(--gold); }
.market-session[data-session="closed"]   .ms-label { color: var(--text-muted); }



.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-width: 760px;
  margin: 0 auto;
}

.menu-flat {
  background: var(--surface-a);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 16px;
  cursor: pointer;
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  transition: border-color 0.2s, color 0.2s;
  text-decoration: none;
}

.menu-flat:hover { border-color: var(--gold-dim); color: var(--gold); }

.menu-flat.active {
  border-color: var(--gold-dim);
  background: var(--locked-bg);
  color: var(--gold);
}

.menu-flat-arrow { font-size: 11px; color: var(--text-muted); }
.menu-flat.active .menu-flat-arrow { color: var(--gold); }

.menu-divider {
  height: 1px;
  background: var(--border);
  margin: 10px 0;
}

.menu-item {
  background: var(--surface-a);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 8px 12px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  font-family: var(--font);
}

.menu-item:hover { border-color: var(--gold-dim); }

.menu-item.active {
  border-color: var(--gold-dim);
  background: var(--locked-bg);
}

.menu-item-icon { font-size: 18px; line-height: 1; }

.menu-item-label {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 600;
  line-height: 1.2;
}

.menu-item.active .menu-item-label { color: var(--gold); }

.menu-close {
  position: absolute;
  top: 20px; right: 20px;
  background: none;
  border: none;
  font-size: 18px;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

/* ── WEEK PICKER MODAL ── */
#weekpicker-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  padding: 20px;
}

#weekpicker-overlay.open { opacity: 1; pointer-events: all; }

.weekpicker-panel {
  background: var(--surface-a);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  width: 300px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.weekpicker-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.week-option-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--surface-b);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 13px;
  padding: 10px 14px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  letter-spacing: 0.02em;
}

.week-option-btn:hover { border-color: var(--gold); color: var(--gold); }
.week-option-btn:last-of-type { margin-bottom: 0; }

.weekpicker-actions {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.btn-cancel {
  width: 100%;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 9px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.btn-cancel:hover { border-color: var(--border-active); color: var(--text-primary); }

/* ── PAGES ── */
.page-view { display: none; }
.page-view.active { display: block; }

.page-back-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 24px 0;
  max-width: 760px;
  margin: 0 auto;
}

.back-link {
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 11px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  letter-spacing: 0.04em;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.back-link:hover { color: var(--gold); }
.back-link-sep { font-size: 10px; color: var(--border); }
.back-link-current {
  font-size: 11px;
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.page-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 24px 0;
}

/* ── ENROLL PAGE ── */
.enroll-intro { margin-bottom: 28px; }

.enroll-intro h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.enroll-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.enroll-bullets li {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}

.enroll-bullets li::before {
  content: '—';
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── PLAN TOGGLE CARD ── */
.plan-toggle-card {
  background: var(--surface-a);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
  max-width: 380px;
}

.plan-toggle-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border);
}

.plan-toggle-btn {
  background: none;
  border: none;
  padding: 12px 16px;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.plan-toggle-btn:first-child {
  border-right: 1px solid var(--border);
}

.plan-toggle-btn.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
  background: var(--locked-bg);
}

.plan-toggle-btn:hover:not(.active) {
  color: var(--text-primary);
  background: var(--header-hover);
}

.plan-toggle-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.plan-price-display {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.plan-price-amount {
  font-size: 28px;
  font-weight: 700;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.plan-price-period {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.plan-cards {
  display: none; /* legacy — replaced by toggle card */
}

.plan-card {
  background: var(--surface-a);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow);
  transition: border-color 0.2s;
}

.plan-card:hover { border-color: var(--gold-dim); }

.plan-card-head { display: flex; flex-direction: column; gap: 4px; }

.plan-name {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 600;
}

.plan-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.plan-price sub {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  vertical-align: baseline;
}

.plan-rules {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.plan-rules li {
  font-size: 11px;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.5;
}

.plan-rules li::before { content: '·'; color: var(--gold-dim); flex-shrink: 0; }

.btn-enroll-plan {
  background: var(--gold);
  color: #fff;
  border: none;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: opacity 0.2s;
  width: 100%;
}

body.dark .btn-enroll-plan { color: #0f0f0f; }
.btn-enroll-plan:hover { opacity: 0.85; }
.btn-enroll-plan:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-enroll-plan.btn-enrolled {
  background: var(--surface-c);
  color: var(--text-primary);
  cursor: not-allowed;
  opacity: 0.65;
  border: 1px solid var(--border);
}

/* Enrollment history */
.section-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 700;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.history-table th {
  text-align: left;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: 0 12px 10px 0;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

.history-table td {
  padding: 10px 12px 10px 0;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.history-table tr:last-child td { border-bottom: none; }

.history-plan-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--surface-c);
  color: var(--text-muted);
}

.history-plan-badge.monthly  { background: var(--locked-bg); color: var(--gold); }
.history-plan-badge.biweekly { background: var(--locked-bg); color: var(--gold); }

/* ── DASHBOARD PAGE ── */
.dash-section {
  background: var(--surface-a);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.dash-section-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 16px;
}

.profile-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.profile-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

body.dark .profile-avatar { color: #0f0f0f; }

.profile-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.profile-email { font-size: 11px; color: var(--text-muted); }

.profile-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.profile-detail-item { display: flex; flex-direction: column; gap: 3px; }

.profile-detail-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.profile-detail-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.enroll-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.enroll-status-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 5px;
  border-radius: 10px;
}

.badge-active   { background: var(--tp-bg); color: var(--tp-text); }
.badge-inactive { background: var(--surface-c); color: var(--text-muted); }
.badge-pending  { background: var(--locked-bg); color: var(--gold); }

.enroll-status-detail { font-size: 11px; color: var(--text-muted); }

.notif-centre {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.notif-info { display: flex; flex-direction: column; gap: 4px; flex: 1; }

.notif-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.notif-sub { font-size: 11px; color: var(--text-muted); }

.btn-telegram {
  background: #229ED9;
  color: #fff;
  border: none;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-telegram:hover { opacity: 0.85; }

/* ── FAQ PAGE ── */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 6px;
  overflow: hidden;
  background: var(--surface-a);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  gap: 12px;
  user-select: none;
  transition: background 0.15s;
}

.faq-question:hover { background: var(--header-hover); }

.faq-chevron {
  font-size: 10px;
  color: var(--text-muted);
  transition: transform 0.25s;
  flex-shrink: 0;
}

.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  display: none;
  padding: 12px 16px 16px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.7;
  border-top: 1px solid var(--border);
}

.faq-item.open .faq-answer { display: block; }

/* ── ENROLL PAGE ADDITIONS ── */
.enroll-section-divider {
  height: 1px;
  background: var(--border);
  margin: 28px 0;
}

.enroll-telegram-nudge {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0;
}

.enroll-nudge-hook {
  color: var(--text-primary);
  font-weight: 700;
}

.enroll-telegram-nudge a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
}

.enroll-telegram-nudge a:hover { text-decoration: underline; }

.enroll-telegram-nudge .btn-telegram {
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

/* ── DASHBOARD ADDITIONS ── */
.profile-identity { display: flex; flex-direction: column; gap: 3px; }

.dash-divider {
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}

.dash-status-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.dash-status-left { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }

.notif-icon {
  font-size: 20px;
  flex-shrink: 0;
  opacity: 0.5;
}

/* ── ABOUT PAGE ── */
.about-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}

.about-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.about-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  position: relative;
  z-index: 1;
}

body.dark .about-avatar { color: #0f0f0f; }

.about-avatar-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--gold-dim);
  opacity: 0.5;
}

.about-hero-text { display: flex; flex-direction: column; gap: 4px; }

.about-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}

.about-tagline {
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.about-card {
  background: var(--surface-a);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.about-bio {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.about-socials-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 32px;
}

.about-social-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface-a);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.about-social-card:hover { border-color: var(--gold-dim); }

.about-social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}

.about-social-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

body.dark .about-social-icon { color: #0f0f0f; }

.about-social-info { display: flex; flex-direction: column; gap: 2px; flex: 1; }

.about-social-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.about-social-note { font-size: 11px; color: var(--text-muted); }

.about-social-arrow {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-social-arrow svg {
  width: 14px;
  height: 14px;
  display: block;
}

.about-social-card:hover .about-social-arrow { color: var(--gold); }

/* ── PAYMENT MODAL ── */
#payment-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(0,0,0,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  padding: 20px;
}

#payment-overlay.open { opacity: 1; pointer-events: all; }

.payment-panel {
  background: var(--surface-a);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
  position: relative;
}

.payment-close {
  position: absolute;
  top: 16px; right: 16px;
  background: none;
  border: none;
  font-size: 18px;
  color: var(--text-muted);
  cursor: pointer;
}

.payment-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}

.payment-subtitle {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.usdt-detail-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 12px;
}

.usdt-detail-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 600;
}

.usdt-detail-value {
  font-size: 12px;
  color: var(--text-primary);
  font-weight: 600;
  background: var(--surface-b);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 10px;
  word-break: break-all;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.usdt-warning {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--locked-bg);
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius);
  padding: 10px 12px;
  margin: 12px 0 16px;
  line-height: 1.6;
}

/* USDT screenshot upload */
.usdt-upload-wrap {
  margin-bottom: 16px;
}

.usdt-upload-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}

.usdt-file-input {
  width: 100%;
  font-family: var(--font);
  font-size: 11px;
  color: var(--text-secondary);
  background: var(--surface-b);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 10px;
  cursor: pointer;
}

/* Success step */
.payment-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  padding: 8px 0;
}

.success-icon { font-size: 40px; line-height: 1; }

.success-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--tp-text);
}

.success-sub {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 240px;
  line-height: 1.6;
}

.telegram-cta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.telegram-cta a {
  color: #229ED9;
  text-decoration: none;
  font-weight: 600;
}

.telegram-cta a:hover { text-decoration: underline; }

.btn-primary {
  background: var(--gold);
  color: #fff;
  border: none;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 24px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: opacity 0.2s;
  width: 100%;
}

body.dark .btn-primary { color: #0f0f0f; }
.btn-primary:hover { opacity: 0.85; }

/* ── AUTH MODAL ── */
#auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(0,0,0,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  padding: 20px;
}

#auth-overlay.open { opacity: 1; pointer-events: all; }

.auth-panel {
  background: var(--surface-a);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  width: 100%;
  max-width: 340px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
  position: relative;
  text-align: center;
}

.auth-close {
  position: absolute;
  top: 16px; right: 16px;
  background: none;
  border: none;
  font-size: 18px;
  color: var(--text-muted);
  cursor: pointer;
}

.auth-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.auth-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.auth-input {
  width: 100%;
  background: var(--surface-b);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 13px;
  padding: 10px 12px;
  margin-bottom: 10px;
  outline: none;
  transition: border-color 0.2s;
}

.auth-input:focus { border-color: var(--gold-dim); }

.auth-error {
  font-size: 11px;
  color: var(--sl-text);
  margin-bottom: 10px;
  min-height: 16px;
}

.auth-switch {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 12px;
}

.auth-switch a {
  color: var(--gold);
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
}

.auth-resend {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 10px;
}

.auth-resend button {
  background: none;
  border: none;
  color: var(--gold);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.auth-resend button:disabled {
  color: var(--text-muted);
  cursor: not-allowed;
}

/* Rollover notice */
.rollover-notice {
  font-size: 11px;
  color: var(--gold);
  background: var(--locked-bg);
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius);
  padding: 8px 12px;
  margin-bottom: 12px;
  text-align: center;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* ── HEADER LOGO IMAGE ── */
.logo-img-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header-logo-img {
  height: 38px;
  width: auto;
  display: block;
}

body.dark .header-logo-img {
  filter: invert(1);
}

/* ── ABOUT AUTHOR PHOTO ── */
.about-avatar-photo {
  padding: 0;
  overflow: hidden;
  background: none;
}

.about-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

/* ── YOUTUBE EMBED ── */
.video-embed-wrap {
  position: relative;
  width: 100%;
  max-width: 480px;
  padding-bottom: min(56.25%, 270px);
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}

.video-embed-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ── COPY HINT ── */
.copyable {
  cursor: pointer;
  transition: opacity 0.15s;
  user-select: none;
}

.copyable:active {
  opacity: 0.6;
}

.copy-hint {
  display: block;
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  height: 12px;
  opacity: 0;
  transition: opacity 0.15s;
  pointer-events: none;
  line-height: 12px;
}

.copy-hint.copy-hint-show {
  animation: copyFade 1s ease forwards;
}

@keyframes copyFade {
  0%   { opacity: 1; }
  60%  { opacity: 1; }
  100% { opacity: 0; }
}

/* ── RESULT SCREENSHOT LIGHTBOX ── */
#result-lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0,0,0,0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  cursor: zoom-out;
}

#result-lightbox-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.result-lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  display: block;
  cursor: default;
  object-fit: contain;
}

.result-lightbox-close {
  position: fixed;
  top: 18px;
  right: 20px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: background 0.2s;
  line-height: 1;
}

.result-lightbox-close:hover {
  background: rgba(255,255,255,0.2);
}

/* View result proof row */
.signal-proof-row {
  border-top: 1px dashed var(--border);
  padding-top: 6px;
  margin-top: 8px;
  text-align: right;
}

.signal-result-screenshot-link {
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--gold);
  cursor: pointer;
  text-decoration: none;
  border: none;
  background: none;
  padding: 0;
  font-family: var(--font);
  font-weight: 600;
  transition: opacity 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.signal-result-screenshot-link:hover {
  opacity: 0.75;
}