/* MoonSniper v2 — layout 3 kolom ala CoinSniper.
   SEMUA warna diatur lewat variabel di :root.
   Ganti nilai di bawah untuk mengganti tema situs tanpa menyentuh aturan lain. */
:root {
  --bg: #171b26;
  --surface: #1f2431;
  --surface-2: #262c3a;
  --surface-3: #2e3547;
  --text: #eef0f6;
  --muted: #8b93a7;
  --muted-2: #6b7280;
  --border: #2c3345;
  --accent: #a855f7;
  --accent-2: #d946ef;
  --accent-dim: #7e22ce;
  --gold: #f5c518;
  --red: #ef4444;
  --green: #22c55e;
  --blue: #6db3f2;
  --radius: 10px;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.45;
}
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.01em; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 14px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.tiny { font-size: 11px; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.up { color: var(--green); }
.down { color: var(--red); }

/* ---------- header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(23, 27, 38, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.topbar-in {
  max-width: 1440px; margin: 0 auto; padding: 10px 14px;
  display: flex; align-items: center; gap: 16px;
}
.logo { font-weight: 800; letter-spacing: 0.5px; color: var(--text); font-size: 18px; white-space: nowrap; }
.logo:hover { text-decoration: none; }
.logo-mark { color: var(--accent); }
.search { flex: 1; display: flex; gap: 6px; max-width: 560px; margin: 0 auto; }
.search input {
  flex: 1; background: var(--surface-2); color: var(--text);
  border: 1px solid var(--border); border-radius: 8px; padding: 9px 12px; font-size: 13px;
}
.search button {
  background: var(--accent); color: #fff; border: 0; border-radius: 8px;
  padding: 9px 16px; font-weight: 700; font-size: 13px; cursor: pointer;
}
.search button:hover { background: var(--accent-2); }
.top-actions { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.btn-submit-top {
  background: var(--accent); color: #fff !important; font-weight: 700; font-size: 13px;
  padding: 9px 14px; border-radius: 8px; white-space: nowrap; text-transform: uppercase;
}
.btn-submit-top:hover { background: var(--accent-2); text-decoration: none; }
.btn-ads {
  border: 1px solid var(--accent); color: var(--accent-2) !important; font-weight: 700; font-size: 13px;
  padding: 8px 13px; border-radius: 8px; white-space: nowrap; text-transform: uppercase;
}
.btn-ads:hover { background: rgba(168, 85, 247, 0.12); text-decoration: none; }
.btn-login {
  background: transparent; border: 1px solid var(--border); color: var(--text);
  font-weight: 700; font-size: 13px; padding: 8px 14px; border-radius: 8px; cursor: pointer;
  text-transform: uppercase;
}
.btn-login:hover { border-color: var(--accent); color: var(--accent-2); }

/* ---------- 3-column shell ---------- */
.shell {
  max-width: 1440px; margin: 0 auto; padding: 14px;
  display: grid; grid-template-columns: 210px minmax(0, 1fr) 260px; gap: 14px;
  align-items: start;
}
.content { min-width: 0; }
.side { position: sticky; top: 64px; display: flex; flex-direction: column; gap: 12px; }
.side-sec h4, .side-panel h4 {
  margin: 0 0 6px; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted-2);
}
.side-sec a {
  display: block; color: var(--muted); padding: 5px 8px; border-radius: 6px; font-size: 13px;
}
.side-sec a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.side-sec a.on { color: var(--accent-2); background: var(--surface-2); font-weight: 700; }
.side-panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px;
}
.side-panel h4 { margin-bottom: 8px; }
.promo-row, .snipes-row {
  display: flex; align-items: center; gap: 8px; padding: 7px 2px;
  border-bottom: 1px solid var(--border); color: var(--text); font-size: 13px;
}
.promo-row:last-child, .snipes-row:last-child { border-bottom: 0; }
.promo-row:hover, .snipes-row:hover { text-decoration: none; background: var(--surface-2); border-radius: 6px; }
.promo-name, .snipes-name { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.promo-name small, .snipes-name small { color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 110px; }
.promo-votes, .snipes-score { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--accent-2); white-space: nowrap; }
.ad-box { text-align: center; background: linear-gradient(180deg, var(--surface), #2a1535); }
.ad-box b { color: var(--accent-2); }
.ad-box p { margin: 6px 0; }

/* ---------- highlight strip + hero ---------- */
.highlight-strip {
  display: flex; gap: 14px; flex-wrap: wrap; margin: 2px 0 12px;
  font-size: 12px; color: var(--muted);
}
.hl-item b { color: var(--text); }
.hero {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 26px 8px 18px; position: relative; overflow: hidden;
}
.hero h1 { font-size: 46px; line-height: 1.02; margin: 0 0 12px; letter-spacing: -1px; }
.tagline { font-size: 18px; margin: 3px 0; }
.tagline2 { font-size: 18px; margin: 3px 0; color: var(--muted); }
.hero-cta { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.moon-wrap { position: relative; flex: none; width: 200px; height: 200px; }
.moon {
  width: 170px; height: 170px; border-radius: 50%; position: absolute; top: 15px; left: 15px;
  background: radial-gradient(circle at 35% 32%, #e8eaf2 0%, #b9becd 45%, #7d8398 100%);
  box-shadow: 0 0 60px rgba(200, 210, 240, 0.25);
}
.moon::after {
  content: ''; position: absolute; width: 140px; height: 140px; border-radius: 50%;
  background: var(--bg); top: 2px; left: 46px;
}
.moon::before {
  content: ''; position: absolute; width: 170px; height: 170px; border-radius: 50%;
  background: radial-gradient(circle at 62% 60%, rgba(0,0,0,0.12) 0 8%, transparent 9%),
    radial-gradient(circle at 40% 68%, rgba(0,0,0,0.10) 0 6%, transparent 7%),
    radial-gradient(circle at 55% 30%, rgba(0,0,0,0.10) 0 5%, transparent 6%);
}
.star { position: absolute; color: #cdd3e6; font-size: 13px; }
.star.s1 { top: 8px; left: 6px; }
.star.s2 { top: 30px; right: 2px; font-size: 10px; }
.star.s3 { bottom: 22px; left: 30px; font-size: 10px; }
.star.s4 { bottom: 6px; right: 26px; }

/* ---------- rank strip ---------- */
.rank-strip {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 4px;
  scrollbar-width: none;
}
.rank-strip::-webkit-scrollbar { display: none; }
.rank-card {
  flex: none; display: flex; align-items: center; gap: 7px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 9px;
  padding: 7px 10px; color: var(--text); font-size: 12px;
}
.rank-card:hover { text-decoration: none; border-color: var(--accent); }
.rank-card.rank-first { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.rank-num { font-weight: 800; color: var(--accent-2); }
.rank-first .rank-num { color: var(--gold); }
.rank-sym { display: flex; flex-direction: column; line-height: 1.15; }
.rank-sym small { color: var(--muted); font-size: 10px; max-width: 90px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-votes { color: var(--muted); font-size: 11px; white-space: nowrap; }

/* ---------- panels ---------- */
.panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; margin: 12px 0;
}
.panel h2 { margin: 0 0 6px; font-size: 19px; }
.panel h5 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.sec-head a { font-size: 13px; white-space: nowrap; }

/* market overview */
.market3 { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 16px; margin-top: 12px; }
.mkt-col { background: var(--surface-2); border: 1px solid var(--border); border-radius: 9px; padding: 12px; }
.mkt-col h5 { display: flex; justify-content: space-between; }
.sent-label { font-size: 22px; font-weight: 800; margin: 4px 0 0; }
.sent-score { font-size: 15px; color: var(--muted); margin: 2px 0 10px; }
.sent-greed { color: var(--green); }
.sent-mid { color: var(--gold); }
.sent-bad { color: var(--red); }
.meter { position: relative; height: 10px; border-radius: 20px; background: linear-gradient(90deg, var(--red), var(--gold) 50%, var(--green)); }
.meter-fill { display: none; }
.meter-mark {
  position: absolute; top: -4px; width: 4px; height: 18px; background: #fff;
  border-radius: 2px; transform: translateX(-2px); box-shadow: 0 0 4px rgba(0,0,0,0.6);
}
.meter-ends { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); margin: 6px 0 0; text-transform: uppercase; }
.topcoin { display: flex; align-items: baseline; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--border); }
.topcoin:last-child { border-bottom: 0; }
.topcoin-name { color: var(--muted); font-size: 12px; width: 74px; text-transform: uppercase; }
.topcoin b { font-size: 15px; }
.topcoin span:last-child { margin-left: auto; font-size: 12px; font-weight: 700; }
.summary-text { font-size: 13px; color: var(--text); margin: 0 0 8px; }
.summary-news { font-size: 12px; color: var(--muted); margin: 4px 0; }
.movers { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 14px; }
.movers p { margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mover { font-size: 13px; color: var(--text); background: var(--surface-2); border: 1px solid var(--border); border-radius: 7px; padding: 4px 9px; }
.mover:hover { text-decoration: none; border-color: var(--accent); }
.mover.up b { color: var(--green); }
.mover.down b { color: var(--red); }

/* new listings */
.new-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.new-card {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 9px;
  padding: 12px; display: flex; flex-direction: column; gap: 2px; color: var(--text);
}
.new-card:hover { text-decoration: none; border-color: var(--accent); }
.new-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 5px; gap: 4px; flex-wrap: wrap; }
.new-name { color: var(--muted); font-size: 12px; }
.new-meta { font-size: 11px; color: var(--accent-2); margin-top: 4px; }

/* tabs */
.tab-row { display: flex; gap: 6px; margin: 10px 0 4px; }
.tab { padding: 6px 12px; border-radius: 7px; background: var(--surface-2); color: var(--muted); font-size: 13px; border: 1px solid var(--border); }
.tab:hover { text-decoration: none; color: var(--text); }
.tab.on { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 700; }

/* best today */
.best-list { display: flex; flex-direction: column; margin-top: 8px; }
.best-row {
  display: flex; align-items: center; gap: 9px; padding: 8px 4px;
  border-bottom: 1px solid var(--border); color: var(--text); font-size: 13px;
}
.best-row:hover { text-decoration: none; background: var(--surface-2); border-radius: 6px; }
.best-row:last-child { border-bottom: 0; }
.rank { font-weight: 800; width: 20px; text-align: center; color: var(--accent-2); }
.best-name { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.best-name small { color: var(--muted); font-size: 11px; }
.best-votes { margin-left: auto; color: var(--accent-2); font-weight: 700; font-size: 13px; white-space: nowrap; }

/* duo (presales + scores) */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.duo .panel { margin: 0; }

/* coin logo (asli / inisial) */
.coin-logo-wrap { position: relative; display: inline-flex; flex: none; }
.coin-logo {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--accent), #6db3f2);
  color: #fff; font-weight: 800;
}
.coin-logo-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border-radius: 50%; object-fit: cover; background: var(--surface-3);
}

/* badges */
.badge {
  display: inline-block; font-size: 10px; font-weight: 700; padding: 2px 6px;
  border-radius: 20px; white-space: nowrap; vertical-align: middle;
}
.badge-chain { background: #1e2b4a; color: #9db8e8; font-weight: 700; letter-spacing: .02em; }
.badge-chain-sol { background: rgba(168, 85, 247, 0.22); color: #d8b4fe; border: 1px solid rgba(168, 85, 247, 0.55); }
.badge-chain-rh { background: rgba(0, 200, 5, 0.18); color: #4ade80; border: 1px solid rgba(0, 200, 5, 0.55); }
.badge-screener { background: rgba(168, 85, 247, 0.16); color: var(--accent-2); }
.badge-listener { background: rgba(109, 179, 242, 0.15); color: var(--blue); }
.badge-community { background: rgba(245, 197, 24, 0.15); color: var(--gold); }
.badge-presale { background: rgba(239, 68, 68, 0.18); color: var(--red); }

/* tables */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 13px; }
.tbl th, .tbl td { padding: 8px 7px; border-bottom: 1px solid var(--border); text-align: left; }
.tbl th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.4px; }
.tbl tr:hover td { background: var(--surface-2); }
.coin-cell { display: flex; align-items: center; gap: 9px; color: var(--text); }
.coin-cell span { display: flex; flex-direction: column; line-height: 1.2; }
.coin-cell small { color: var(--muted); font-size: 11px; }
.snipe {
  display: inline-block; min-width: 32px; text-align: center;
  background: var(--surface-3); color: var(--accent-2); border-radius: 7px; padding: 2px 6px; font-weight: 800;
}
.pager { display: flex; gap: 16px; align-items: center; justify-content: center; margin-top: 14px; }

/* filters */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.filters input, .filters select, .form input, .form textarea, .form select {
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--border); border-radius: 8px; padding: 8px 11px; font-size: 13px;
}
.filters input { flex: 1; min-width: 160px; }
.filters button, .btn {
  background: var(--accent); color: #fff; border: 0; border-radius: 8px;
  padding: 8px 16px; font-weight: 700; font-size: 13px; cursor: pointer; display: inline-block;
}
.btn:hover { background: var(--accent-2); text-decoration: none; }
.btn-purple { background: var(--accent); }
.btn-purple:hover { background: var(--accent-2); }
.btn-ghost { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--surface-3); }
.btn-small { padding: 4px 10px; font-size: 12px; }

/* giveaway */
.giveaway { text-align: center; background: linear-gradient(180deg, var(--surface), #2a1535); }
.giveaway h2 { font-size: 19px; }
.give-big { font-size: 30px; font-weight: 800; margin: 4px 0 0; }
.give-sub { color: var(--muted); letter-spacing: 2px; font-size: 12px; margin-top: 0; }
.progress { height: 12px; background: var(--surface-3); border-radius: 20px; overflow: hidden; max-width: 520px; margin: 14px auto 8px; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 20px; }
.winners { margin-top: 10px; font-size: 13px; }
.winners summary { cursor: pointer; color: var(--accent-2); }

/* blog */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 10px; }
.blog-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: 9px; overflow: hidden; }
.blog-thumb { height: 110px; }
.blog-thumb img, .blog-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.grad-1 { background: linear-gradient(135deg, #7e22ce, #d946ef 55%, #f5c518); }
.grad-2 { background: linear-gradient(135deg, #1e3a5f, #6db3f2 60%, #a855f7); }
.grad-3 { background: linear-gradient(135deg, #3f1d5c, #ef4444 60%, #f5c518); }
.blog-card h3 { font-size: 14px; margin: 10px 12px 4px; }
.blog-card p { margin: 4px 12px 12px; }

/* faq */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 10px; }
.faq-grid article { background: var(--surface-2); border: 1px solid var(--border); border-radius: 9px; padding: 14px; }
.faq-grid h3 { margin: 0 0 6px; font-size: 15px; color: var(--accent-2); }
.faq-grid p { margin: 0; color: var(--muted); font-size: 13px; }

/* stats (detail) */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.stat {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 9px; padding: 12px;
}
.stat span { display: block; color: var(--muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.stat b { font-size: 21px; display: block; margin: 3px 0 2px; }
.stat small { color: var(--muted); font-size: 11px; }
.stat-ic { font-style: normal; margin-right: 4px; color: var(--accent-2); }

/* stat harga paling menonjol */
.stat-price { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 18px rgba(168, 85, 247, .22); }
.stat-price b { font-size: clamp(19px, 2.6vw, 30px); }

/* warna RugCheck: skor tinggi = bahaya */
.stat.rug-safe b, .stat.rug-safe small { color: var(--green); }
.stat.rug-mid b, .stat.rug-mid small { color: var(--gold); }
.stat.rug-high { border-color: var(--red); background: rgba(239, 68, 68, .13); box-shadow: 0 0 14px rgba(239, 68, 68, .25); }
.stat.rug-high b, .stat.rug-high small { color: var(--red); }
.stat.rug-high small { font-weight: 800; }

/* gauge cincin Snipe Score */
.stat-snipe { text-align: center; }
.gauge { display: inline-block; margin: 2px 0 0; }
.gauge svg { display: block; }
.gauge-bg { fill: none; stroke: var(--surface-3); stroke-width: 6; }
.gauge-fg { fill: none; stroke-width: 6; stroke-linecap: round; transform: rotate(-90deg); transform-origin: center; }
.gauge.snipe-high .gauge-fg { stroke: var(--green); }
.gauge.snipe-mid .gauge-fg { stroke: var(--gold); }
.gauge.snipe-low .gauge-fg { stroke: var(--red); }
.gauge-num { fill: var(--text); font-family: var(--font-mono); font-size: 16px; font-weight: 700; }
.gauge.snipe-high .gauge-num { fill: var(--green); }
.gauge.snipe-mid .gauge-num { fill: var(--gold); }
.gauge.snipe-low .gauge-num { fill: var(--red); }

/* coin detail */
.coin-head { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.coin-head h2 { margin: 0; font-size: 30px; }
.coin-title { min-width: 0; }
.coin-sub { margin: 5px 0 0; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.coin-sym { font-family: var(--font-mono); font-weight: 700; font-size: 15px; }
.coin-vote { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.coin-vote .btn { padding: 10px 18px; font-size: 15px; }
.vote-count { font-size: 21px; font-weight: 800; }
.detail-stats { grid-template-columns: repeat(4, 1fr); }
.snipe-big { color: var(--accent-2); }
.mint-line { display: flex; align-items: center; gap: 8px; }
.mint-line code { font-family: var(--font-mono); background: var(--surface-3); padding: 3px 8px; border-radius: 6px; font-size: 12px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.desc { background: var(--surface-2); border: 1px solid var(--border); border-radius: 9px; padding: 12px; }
.links { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.risk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.risk-grid h3 { font-size: 14px; margin: 0 0 6px; }
.risk-list { list-style: none; padding: 0; margin: 0; font-size: 12px; }
.risk-list.bad li { color: var(--red); }
.risk-list.warn li { color: var(--gold); }

/* submit form */
.form { display: flex; flex-direction: column; gap: 11px; max-width: 560px; margin-top: 12px; }
.form label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; }
.form label.check { flex-direction: row; align-items: center; font-weight: 400; }
.ok-msg { background: rgba(34, 197, 94, 0.12); border: 1px solid var(--green); color: var(--green); padding: 10px 14px; border-radius: 9px; }

/* footer */
.footer { border-top: 1px solid var(--border); margin-top: 26px; padding: 26px 0 30px; }
.foot-cols { display: grid; grid-template-columns: 1.6fr repeat(6, 1fr); gap: 18px; }
.foot-col h5 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); }
.foot-col a { display: block; color: var(--muted); font-size: 13px; padding: 3px 0; }
.foot-col a:hover { color: var(--text); }
.foot-brand { font-weight: 800; font-size: 17px; }
.foot-tag { color: var(--accent-2); font-weight: 700; font-size: 12px; letter-spacing: 1px; margin: 6px 0; }
.foot-bottom { margin-top: 20px; }
.disclaimer { color: var(--muted); font-size: 12px; max-width: 720px; }
.foot-small { color: var(--muted); font-size: 11px; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .shell { grid-template-columns: 190px minmax(0, 1fr); }
  .side-right { grid-column: 1 / -1; position: static; display: grid; grid-template-columns: 1fr 1fr; }
  .market3 { grid-template-columns: 1fr 1fr; }
  .mkt-col:last-child { grid-column: 1 / -1; }
  .foot-cols { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side-left {
    position: static; flex-direction: row; flex-wrap: wrap; gap: 8px;
  }
  .side-left .side-sec { flex: 1; min-width: 150px; }
  .moon-wrap { display: none; }
  .hero h1 { font-size: 36px; }
  .new-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: 1fr; }
  .duo, .faq-grid, .risk-grid, .movers { grid-template-columns: 1fr; }
  .side-right { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .topbar-in { flex-wrap: wrap; gap: 10px; }
  .search { order: 3; max-width: none; width: 100%; margin: 0; }
  .top-actions { margin-left: 0; }
  .hero h1 { font-size: 30px; }
  .stats, .detail-stats { grid-template-columns: repeat(2, 1fr); }
  .market3 { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: repeat(2, 1fr); }
  .coin-vote { margin-left: 0; }
  .coin-head h2 { font-size: 24px; }
  .chart-wrap iframe { height: 360px; }
}

/* ---------- price chart (detail koin) ---------- */
.chart-section { margin-top: 18px; }
.chart-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.chart-head h3 { margin: 0 0 2px; font-size: 17px; }
.chart-head p { margin: 0; }
.chart-wrap { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.chart-wrap iframe { display: block; width: 100%; height: 480px; border: 0; background: var(--surface-2); }

/* ---------- boost ---------- */
.badge-boosted { background: rgba(217, 70, 239, 0.18); color: var(--accent-2); }
.boost-btn { white-space: nowrap; }
.boost-count { font-size: 21px; font-weight: 800; }

/* ---------- banner iklan ---------- */
.banner-slot { display: block; margin: 2px 0 12px; border-radius: var(--radius); overflow: hidden; }
.banner-slot img { display: block; width: 100%; height: auto; }
.banner-home-top img { max-height: 110px; object-fit: cover; }
.banner-detail-top { margin: 0 0 14px; }
.banner-detail-top img { max-height: 100px; object-fit: cover; }
.banner-sidebar { margin: 0; }
.banner-sidebar img { max-height: 300px; object-fit: cover; }
.banner-ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: linear-gradient(180deg, var(--surface), #2a1535);
  border: 1px dashed var(--accent); color: var(--accent-2);
  padding: 14px; text-align: center; font-weight: 800; min-height: 64px;
}
.banner-ph:hover { text-decoration: none; border-color: var(--accent-2); }
.banner-ph small { color: var(--muted); font-weight: 400; font-size: 11px; }
.banner-home-top.banner-ph { min-height: 72px; }
.banner-sidebar.banner-ph { min-height: 120px; }

/* ---------- advertise ---------- */
.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 12px 0 16px; }
.adv-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: 9px; padding: 14px; }
.adv-card h3 { margin: 0 0 6px; font-size: 15px; }

/* ---------- admin ---------- */
.admin-wrap { max-width: 1080px; margin: 0 auto; padding: 20px 14px 40px; }
.admin-login { max-width: 420px; margin: 60px auto 0; }
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin-top h2 { margin: 0; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 10px 0 18px; }
.admin-stat { background: var(--surface-2); border: 1px solid var(--border); border-radius: 9px; padding: 12px; }
.admin-stat span { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.admin-stat b { font-size: 24px; }
.admin-stat small { display: block; margin-top: 2px; font-size: 12px; }
.admin-dash h3 { margin: 22px 0 8px; font-size: 16px; }
.err-msg { background: rgba(239, 68, 68, 0.12); border: 1px solid var(--red); color: var(--red); padding: 10px 14px; border-radius: 9px; }
.st { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px; }
.st-ok { background: rgba(34, 197, 94, 0.15); color: var(--green); }
.st-warn { background: rgba(245, 197, 24, 0.15); color: var(--gold); }
.st-bad { background: rgba(239, 68, 68, 0.15); color: var(--red); }
.nowrap { white-space: nowrap; }

@media (max-width: 900px) {
  .adv-grid { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- member ---------- */
.badge-paid { background: rgba(245, 197, 24, 0.18); color: var(--gold); border: 1px solid rgba(245, 197, 24, 0.45); }
.pay-box { border: 1px dashed var(--accent); background: linear-gradient(180deg, var(--surface), #2a1535); }
.pay-addr { word-break: break-all; font-size: 12px; }
.pay-msg { margin: 4px 0 0; }
.boost-credit-btn { margin-left: 8px; }
@media (max-width: 900px) {
  .pay-addr { font-size: 11px; }
}

/* Pagination (server-side, /coins) */
.pagination { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-top: 16px; }
.pg-info { color: var(--muted); font-size: 13px; }
.pg-links { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pg-num, .pg-nav { display: inline-block; padding: 6px 11px; border: 1px solid var(--hatch-widget-border); border-radius: 8px; background: var(--hatch-widget-surface); color: var(--hatch-widget-text); text-decoration: none; font-size: 13px; }
a.pg-num:hover, a.pg-nav:hover { border-color: var(--accent-2); }
.pg-current { background: rgba(168, 85, 247, 0.25); border-color: rgba(168, 85, 247, 0.6); color: #fff; font-weight: 700; }
.pg-disabled { opacity: 0.45; }
.pg-ellipsis { padding: 6px 2px; color: var(--muted); }
