:root {
  --bg: #0b0e14;
  --bg-soft: #11151f;
  --panel: #151a26;
  --border: #232a3a;
  --text: #e6e9f0;
  --text-dim: #8b93a7;
  --accent: #6366f1;
  --green: #16c784;
  --green-soft: rgba(22, 199, 132, 0.14);
  --red: #ea3943;
  --red-soft: rgba(234, 57, 67, 0.14);
  --yellow: #facc15;
  --radius: 12px;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.disclaimer-banner {
  background: linear-gradient(90deg, #2a1e3f, #1e2a3f);
  color: #cbd2e0;
  text-align: center;
  font-size: 12px;
  padding: 7px 12px;
  border-bottom: 1px solid var(--border);
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px clamp(14px, 4vw, 40px);
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-icon {
  font-size: 22px;
  color: var(--accent);
  background: rgba(99, 102, 241, 0.15);
  border-radius: 8px;
  padding: 4px 9px;
}
.brand h1 { font-size: 20px; font-weight: 700; letter-spacing: 0.3px; }
.brand h1 span { color: var(--accent); }

.main-nav { display: flex; gap: 4px; margin-left: 18px; }
.main-nav a {
  color: var(--text-dim); text-decoration: none; font-size: 13px; font-weight: 600;
  padding: 7px 14px; border-radius: 8px; transition: color 0.15s, background 0.15s;
}
.main-nav a:hover { color: var(--text); }
.main-nav a.active { color: #fff; background: var(--accent); }

.user-chip { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; }
.user-chip button {
  background: none; border: 1px solid var(--border); color: var(--text-dim);
  border-radius: 8px; padding: 6px 12px; font-size: 12px; cursor: pointer;
}
.user-chip button:hover { border-color: var(--red); color: var(--red); }

.header-right { display: flex; align-items: center; gap: 14px; }
.header-status { font-size: 12px; color: var(--text-dim); text-align: right; }

.live-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 800; letter-spacing: 1.2px; color: var(--text-dim);
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #4a5164; }
.live-dot.on { background: var(--green); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22, 199, 132, 0.55); }
  50% { box-shadow: 0 0 0 5px rgba(22, 199, 132, 0); }
}

@keyframes flashUp { 0% { color: var(--green); } 100% { color: inherit; } }
@keyframes flashDown { 0% { color: var(--red); } 100% { color: inherit; } }
.flash-up { animation: flashUp 0.9s ease-out; }
.flash-down { animation: flashDown 0.9s ease-out; }

.layout {
  flex: 1; width: 100%; max-width: 1380px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px;
  padding: 20px clamp(12px, 3vw, 32px) 40px;
}
main { min-width: 0; }
.sidebar { display: flex; flex-direction: column; gap: 16px; }

/* ---------------- ad slots ---------------- */
.ad-slot { border-radius: var(--radius); overflow: hidden; }
.ad-banner {
  max-width: 1380px; margin: 14px auto 0; width: calc(100% - 2 * clamp(12px, 3vw, 32px));
  min-height: 90px;
}
.ad-box { min-height: 250px; }
.ad-placeholder {
  height: 100%; min-height: inherit; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px;
  border: 1px dashed var(--border); border-radius: var(--radius);
  background: var(--bg-soft); color: var(--text-dim); font-size: 12px;
  text-align: center; padding: 14px;
}
.ad-tag {
  font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase;
  border: 1px solid var(--border); border-radius: 99px; padding: 2px 8px;
}
.sponsor .ad-placeholder { min-height: 110px; }
.ad-box.sponsor { min-height: 110px; }

/* ---------------- news panel ---------------- */
.news-panel h3 { margin-bottom: 10px; }
.news-panel input {
  width: 100%; background: var(--bg-soft); border: 1px solid var(--border);
  color: var(--text); border-radius: 8px; padding: 8px 12px; font-size: 13px;
  outline: none; margin-bottom: 12px;
}
.news-panel input:focus { border-color: var(--accent); }
.news-list { display: flex; flex-direction: column; max-height: 640px; overflow-y: auto; }
.news-item { padding: 10px 2px; border-bottom: 1px solid rgba(35, 42, 58, 0.55); }
.news-item:last-child { border-bottom: none; }
.news-item a {
  color: var(--text); text-decoration: none; font-size: 13px; font-weight: 600;
  line-height: 1.35; display: block;
}
.news-item a:hover { color: var(--accent); }
.news-meta { font-size: 11px; color: var(--text-dim); margin-bottom: 3px; }
.news-source { color: var(--accent); font-weight: 600; }
.news-chips { margin-top: 5px; display: flex; gap: 5px; flex-wrap: wrap; }
.news-chip {
  background: rgba(99, 102, 241, 0.12); color: var(--accent);
  border: none; border-radius: 99px; font-size: 10px; font-weight: 700;
  padding: 2px 8px; cursor: pointer;
}
.news-chip:hover { background: rgba(99, 102, 241, 0.25); }
.news-empty { color: var(--text-dim); font-size: 13px; padding: 12px 2px; }

/* ---------------- controls ---------------- */
.controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 16px; }

.tf-tabs { display: flex; background: var(--panel); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.tf-tabs button {
  background: none; border: none; color: var(--text-dim);
  padding: 9px 16px; font-size: 13px; font-weight: 600; cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.tf-tabs.small button { padding: 7px 13px; font-size: 12px; }
.tf-tabs button:hover { color: var(--text); }
.tf-tabs button.active { background: var(--accent); color: #fff; }

.profile-hint { font-size: 12px; color: var(--text-dim); }

.filters { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.filters input, .filters select {
  background: var(--panel); border: 1px solid var(--border); color: var(--text);
  border-radius: 8px; padding: 8px 12px; font-size: 13px; outline: none;
}
.filters input:focus, .filters select:focus { border-color: var(--accent); }
.filters input { width: 150px; }

/* ---------------- coin table ---------------- */
.table-wrap {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); overflow-x: auto;
}
.coin-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.coin-table th {
  text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.6px;
  color: var(--text-dim); padding: 12px 14px; border-bottom: 1px solid var(--border);
}
.coin-table th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
.coin-table th.sortable:hover { color: var(--text); }
.sort-arrow { display: inline-block; width: 12px; }
th.sorted-asc { color: var(--accent) !important; }
th.sorted-desc { color: var(--accent) !important; }
th.sorted-asc .sort-arrow::after { content: "▲"; font-size: 8px; margin-left: 3px; }
th.sorted-desc .sort-arrow::after { content: "▼"; font-size: 8px; margin-left: 3px; }

.load-more-wrap { text-align: center; margin-top: 16px; }
.load-more {
  background: var(--panel); color: var(--text); border: 1px solid var(--border);
  border-radius: 10px; padding: 11px 26px; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: border-color 0.15s, color 0.15s;
}
.load-more:hover { border-color: var(--accent); color: var(--accent); }
.coin-table th.num, .coin-table td.num { text-align: right; }
.coin-table tbody tr { cursor: pointer; transition: background 0.12s; }
.coin-table tbody tr:hover { background: rgba(99, 102, 241, 0.07); }
.coin-table td { padding: 12px 14px; border-bottom: 1px solid rgba(35, 42, 58, 0.55); }
.coin-table tbody tr:last-child td { border-bottom: none; }

.col-rank { width: 40px; color: var(--text-dim); }
.coin-cell { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.coin-avatar {
  width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 11px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.coin-pair { color: var(--text-dim); font-size: 11px; font-weight: 400; display: block; }

.pos { color: var(--green); }
.neg { color: var(--red); }

.score-track { background: #232a3a; border-radius: 99px; height: 6px; width: 110px; position: relative; overflow: hidden; }
.score-fill { position: absolute; top: 0; bottom: 0; border-radius: 99px; }
.score-num { font-size: 11px; color: var(--text-dim); margin-top: 4px; display: block; }

.badge {
  display: inline-block; padding: 4px 11px; border-radius: 99px;
  font-size: 12px; font-weight: 700; white-space: nowrap;
}
.badge.strong_buy { background: var(--green); color: #052e1c; }
.badge.buy { background: var(--green-soft); color: var(--green); }
.badge.neutral { background: rgba(139, 147, 167, 0.15); color: var(--text-dim); }
.badge.sell { background: var(--red-soft); color: var(--red); }
.badge.strong_sell { background: var(--red); color: #fff; }
.badge.none { background: rgba(139, 147, 167, 0.1); color: var(--text-dim); }

.loading-cell { text-align: center; color: var(--text-dim); padding: 40px !important; }

/* ---------------- detail view ---------------- */
.hidden { display: none !important; }

.back-btn {
  background: var(--panel); color: var(--text); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 14px; font-size: 13px; cursor: pointer; margin-bottom: 16px;
}
.back-btn:hover { border-color: var(--accent); }

.detail-header { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.detail-header h2 { font-size: 24px; margin-bottom: 6px; }
.d-price { font-size: 28px; font-weight: 700; }
.d-change { font-size: 15px; font-weight: 600; margin-left: 10px; }

.d-signal-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 18px; min-width: 220px;
}
.d-signal-label { font-size: 18px; font-weight: 800; margin-bottom: 2px; }
.d-signal-score { font-size: 12px; color: var(--text-dim); }

/* ---------------- trade plan ---------------- */
.trade-plan { margin-bottom: 16px; }
.tp-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.tp-head h3 { margin-bottom: 0; }
.tp-sub { font-size: 10px; text-transform: none; letter-spacing: 0; opacity: 0.7; margin-left: 6px; }
.tp-action-wrap { display: flex; align-items: center; gap: 10px; }
.tp-action {
  padding: 6px 16px; border-radius: 99px; font-size: 13px; font-weight: 800;
  letter-spacing: 0.6px;
}
.act-long { background: var(--green); color: #052e1c; }
.act-short { background: var(--red); color: #fff; }
.act-spot { background: rgba(56, 189, 248, 0.18); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.4); }
.act-wait { background: rgba(139, 147, 167, 0.15); color: var(--text-dim); }
.tp-confidence { font-size: 11px; color: var(--text-dim); text-transform: capitalize; }
.tp-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px;
}
.tp-cell {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 12px;
}
.tp-cell span { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--text-dim); margin-bottom: 4px; }
.tp-cell b { font-size: 14px; display: block; }
.tp-cell i { font-style: normal; font-size: 10px; color: var(--text-dim); display: block; margin-top: 3px; }
.tp-note { font-size: 12px; color: var(--text-dim); margin-top: 12px; }

.chart-box {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  height: 420px; margin-top: 14px; overflow: hidden;
}
.chart-legend { display: flex; gap: 16px; font-size: 12px; color: var(--text-dim); margin: 8px 2px 0; }
.chart-legend i { display: inline-block; width: 10px; height: 3px; border-radius: 2px; margin-right: 5px; vertical-align: middle; }

.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.panel { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.panel h3 { font-size: 14px; margin-bottom: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; }

.breakdown-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.breakdown-table th { text-align: left; color: var(--text-dim); font-size: 11px; padding: 6px 4px; }
.breakdown-table td { padding: 8px 4px; border-top: 1px solid rgba(35, 42, 58, 0.55); }
.breakdown-table .num { text-align: right; font-weight: 700; }

.tf-signal-list { display: flex; flex-direction: column; gap: 10px; }
.tf-signal-row { display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.tf-signal-row .tf-name { color: var(--text-dim); width: 46px; }
.tf-signal-row .profile-tag { font-size: 11px; color: var(--text-dim); flex: 1; }

/* ---------------- learn trading page ---------------- */
.auth-hero { text-align: center; margin: 26px auto 24px; max-width: 620px; }
.auth-hero h2 { font-size: 26px; margin-bottom: 10px; }
.auth-hero p { color: var(--text-dim); font-size: 14px; line-height: 1.6; }

.auth-card { max-width: 420px; margin: 0 auto 28px; }
.auth-tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.auth-tabs button {
  flex: 1; background: var(--bg-soft); border: 1px solid var(--border);
  color: var(--text-dim); border-radius: 8px; padding: 9px; font-size: 13px;
  font-weight: 600; cursor: pointer;
}
.auth-tabs button.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.auth-card form { display: flex; flex-direction: column; gap: 10px; }
.auth-card input {
  background: var(--bg-soft); border: 1px solid var(--border); color: var(--text);
  border-radius: 8px; padding: 11px 13px; font-size: 14px; outline: none;
}
.auth-card input:focus { border-color: var(--accent); }

.primary-btn {
  background: var(--accent); color: #fff; border: none; border-radius: 9px;
  padding: 12px 18px; font-size: 14px; font-weight: 700; cursor: pointer;
}
.primary-btn:hover { filter: brightness(1.12); }
.ghost-btn {
  background: none; border: 1px solid var(--border); color: var(--text);
  border-radius: 9px; padding: 10px 16px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.ghost-btn:hover { border-color: var(--accent); color: var(--accent); }

.auth-error, .trade-error {
  background: var(--red-soft); color: var(--red); border-radius: 8px;
  padding: 10px 13px; font-size: 13px; margin-top: 10px;
}

.pricing-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 8px 0 30px; }
.pricing-row.vertical { grid-template-columns: 1fr; margin: 0; }
.plan-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; text-align: center;
}
.plan-card.active { border-color: var(--accent); }
.plan-name { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); }
.plan-price { font-size: 24px; font-weight: 800; margin: 8px 0 4px; }
.plan-desc { font-size: 12px; color: var(--text-dim); margin-bottom: 12px; }
.plan-current { font-size: 12px; color: var(--green); font-weight: 700; }

.stats-bar {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; align-items: stretch;
}
.stat {
  background: var(--panel); border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 16px; min-width: 110px;
}
.stat span { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--text-dim); margin-bottom: 3px; }
.stat b { font-size: 16px; }
.stat-warn { border-color: var(--red); }
.stat-warn b { color: var(--red); }
.stat-badges { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.badge-chip {
  background: rgba(250, 204, 21, 0.1); border: 1px solid rgba(250, 204, 21, 0.3);
  color: #facc15; font-size: 11px; font-weight: 600; border-radius: 99px; padding: 4px 10px;
}

.trade-form-panel { margin-bottom: 16px; }
.trade-form { display: flex; flex-direction: column; gap: 12px; }
.tf-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.tf-row label { display: flex; flex-direction: column; gap: 5px; font-size: 11px; color: var(--text-dim); flex: 1; min-width: 120px; }
.tf-row input, .tf-row select {
  background: var(--bg-soft); border: 1px solid var(--border); color: var(--text);
  border-radius: 8px; padding: 10px 12px; font-size: 14px; outline: none; width: 100%;
}
.tf-row input:focus, .tf-row select:focus { border-color: var(--accent); }
.tf-price { min-width: 120px; padding-bottom: 2px; }
.tf-price span { display: block; font-size: 11px; color: var(--text-dim); margin-bottom: 5px; }
.tf-price b { font-size: 17px; }
.tf-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.table-scroll { overflow-x: auto; }
.mini-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 560px; }
.mini-table th {
  text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: 0.6px;
  color: var(--text-dim); padding: 8px 10px; border-bottom: 1px solid var(--border);
}
.mini-table th.num, .mini-table td.num { text-align: right; }
.mini-table td { padding: 9px 10px; border-bottom: 1px solid rgba(35, 42, 58, 0.55); }
.mini-table tr:last-child td { border-bottom: none; }

.side-tag { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 99px; }
.side-spot { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.side-long { background: var(--green-soft); color: var(--green); }
.side-short { background: var(--red-soft); color: var(--red); }

.close-btn {
  background: none; border: 1px solid var(--border); color: var(--text-dim);
  border-radius: 7px; padding: 5px 12px; font-size: 12px; cursor: pointer;
}
.close-btn:hover { border-color: var(--accent); color: var(--accent); }

.lb-row {
  display: flex; align-items: center; gap: 8px; padding: 8px 4px;
  border-bottom: 1px solid rgba(35, 42, 58, 0.55); font-size: 13px;
}
.lb-row:last-child { border-bottom: none; }
.lb-me { background: rgba(99, 102, 241, 0.08); border-radius: 8px; }
.lb-rank { width: 34px; font-weight: 700; }
.lb-name { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-score { color: var(--accent); font-weight: 700; font-size: 12px; }
.lb-bal { color: var(--text-dim); font-size: 12px; min-width: 70px; text-align: right; }

/* ---------------- community page ---------------- */
.composer-panel { margin-bottom: 16px; }
.composer-panel form { display: flex; flex-direction: column; gap: 10px; }
.composer-panel input, .composer-panel textarea, .composer-panel select {
  background: var(--bg-soft); border: 1px solid var(--border); color: var(--text);
  border-radius: 8px; padding: 10px 12px; font-size: 13px; outline: none;
  font-family: inherit; resize: vertical;
}
.composer-panel input:focus, .composer-panel textarea:focus, .composer-panel select:focus { border-color: var(--accent); }
.composer-row { display: flex; gap: 8px; flex-wrap: wrap; }
.composer-row select, .composer-row input { flex: 1; min-width: 130px; }
.composer-prompt { font-size: 13px; color: var(--text-dim); padding: 4px 0; }
.composer-prompt a { color: var(--accent); font-weight: 600; }

.feed-controls { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.cat-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.cat-chips button {
  background: var(--panel); border: 1px solid var(--border); color: var(--text-dim);
  border-radius: 99px; font-size: 12px; font-weight: 600; padding: 6px 14px; cursor: pointer;
}
.cat-chips button:hover { color: var(--text); }
.cat-chips button.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.feed { display: flex; flex-direction: column; gap: 12px; }
.post-card { cursor: pointer; transition: border-color 0.15s; }
.post-card:hover { border-color: var(--accent); }
.post-card.full { cursor: default; margin-bottom: 16px; }
.post-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.cat-tag {
  font-size: 11px; font-weight: 700; color: var(--text-dim);
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 99px; padding: 3px 10px;
}
.post-meta { font-size: 11px; color: var(--text-dim); margin-left: auto; }
.post-title { font-size: 16px; margin-bottom: 6px; }
.post-body { font-size: 13px; color: var(--text-dim); line-height: 1.55; }
.post-actions { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.vote-btn {
  background: var(--bg-soft); border: 1px solid var(--border); color: var(--text-dim);
  border-radius: 8px; padding: 5px 12px; font-size: 12px; font-weight: 700; cursor: pointer;
}
.vote-btn:hover { border-color: var(--accent); color: var(--accent); }
.vote-btn.voted { background: rgba(99, 102, 241, 0.18); border-color: var(--accent); color: var(--accent); }
.comment-count { font-size: 12px; color: var(--text-dim); }

.setup-card {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 14px; margin-top: 10px; font-size: 12px;
}

.comment { padding: 10px 2px; border-bottom: 1px solid rgba(35, 42, 58, 0.55); font-size: 13px; }
.comment:last-child { border-bottom: none; }
.comment-meta { font-size: 11px; color: var(--text-dim); margin-bottom: 3px; }
.comment-form { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.comment-form textarea {
  background: var(--bg-soft); border: 1px solid var(--border); color: var(--text);
  border-radius: 8px; padding: 10px 12px; font-size: 13px; outline: none;
  font-family: inherit; resize: vertical;
}
.comment-form textarea:focus { border-color: var(--accent); }
.comment-form .primary-btn { align-self: flex-end; }

.guidelines { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.guidelines li {
  font-size: 12px; color: var(--text-dim); line-height: 1.5; padding-left: 16px; position: relative;
}
.guidelines li::before { content: "•"; color: var(--accent); position: absolute; left: 2px; }

/* ---------------- accuracy page ---------------- */
.accuracy-intro { margin: 4px 0 18px; max-width: 720px; }
.accuracy-intro h2 { font-size: 22px; margin-bottom: 8px; }
.accuracy-intro p { font-size: 13px; color: var(--text-dim); line-height: 1.6; }
.accuracy-intro em { color: var(--accent); font-style: normal; font-weight: 700; }

.acc-controls { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.acc-controls h3 { margin-bottom: 0; }
.acc-cell { display: flex; align-items: center; gap: 8px; }
.score-track.wide { width: 90px; }

.oc-badge { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.oc-pending { background: rgba(56, 189, 248, 0.14); color: #38bdf8; }
.oc-target { background: var(--green-soft); color: var(--green); }
.oc-stop { background: var(--red-soft); color: var(--red); }
.oc-expired { background: rgba(139, 147, 167, 0.15); color: var(--text-dim); }

/* ---------------- footer ---------------- */
footer {
  border-top: 1px solid var(--border); background: var(--bg-soft);
  text-align: center; padding: 18px 16px; font-size: 12px; color: var(--text-dim);
}
.footer-disclaimer { margin-top: 5px; font-size: 11px; opacity: 0.8; }

/* ---------------- responsive ---------------- */
@media (max-width: 1080px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { order: 2; }
  .news-list { max-height: 420px; }
  .ad-box { min-height: 130px; }
}

@media (max-width: 760px) {
  .filters { margin-left: 0; width: 100%; }
  .filters input { flex: 1; }
  .detail-grid { grid-template-columns: 1fr; }
  .col-vol { display: none; }
  .chart-box { height: 320px; }
  .d-price { font-size: 22px; }
  .header-status { display: none; }
  .tp-grid { grid-template-columns: repeat(2, 1fr); }
  .tp-grid .tp-cell:first-child { grid-column: 1 / -1; }
}
