:root {
  --bg: #05070c;
  --bg-soft: #0b1018;
  --panel: rgba(13, 18, 28, 0.94);
  --panel-2: rgba(17, 24, 37, 0.98);
  --stroke: rgba(255,255,255,.08);
  --stroke-soft: rgba(255,255,255,.05);
  --text: #f4f7ff;
  --muted: #95a3bf;
  --red: #ff5148;
  --blue: #4da4ff;
  --violet: #7c8fff;
  --green: #6fe5a5;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.42);
  --radius: 26px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body {
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background: #03060b;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.noise {
  position: fixed; inset: 0; pointer-events: none; opacity: .12;
  background-image: radial-gradient(rgba(255,255,255,.06) .6px, transparent .6px);
  background-size: 22px 22px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 85%);
}
.container { width: min(1240px, calc(100% - 34px)); margin: 0 auto; }
.glass {
  background: linear-gradient(180deg, rgba(13,18,28,.96), rgba(8,12,20,.98));
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.glass-inner {
  background: rgba(255,255,255,.025);
  border: 1px solid var(--stroke-soft);
}
.site-header { position: sticky; top: 0; z-index: 60; padding: 18px 0; backdrop-filter: blur(14px); }
.nav-shell {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 14px 18px; border-radius: 999px;
}
.brand { display: inline-flex; align-items: center; min-width: 190px; }
.brand-logo-wide { width: 176px; height: auto; }
.main-nav { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: center; }
.main-nav a {
  padding: 10px 16px; border-radius: 999px; color: var(--muted);
  border: 1px solid transparent; transition: .2s ease;
}
.main-nav a:hover, .main-nav a.is-active {
  color: white; background: rgba(255,255,255,.045); border-color: rgba(255,255,255,.08);
}
.nav-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.currency-toggle {
  display: inline-flex; gap: 6px; align-items: center; padding: 6px;
  border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); color: white;
}
.toggle-chip { padding: 8px 12px; border-radius: 999px; color: var(--muted); transition: .2s ease; }
.toggle-chip.is-active { background: linear-gradient(135deg, rgba(255,81,72,.9), rgba(77,164,255,.9)); color: white; }
.support-chip, .user-pill, .cta-small, .cta-primary, .cta-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; font-weight: 700; transition: .2s ease; cursor: pointer;
}
.support-chip { padding: 10px 14px; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.07); color: #fff; }
.support-chip .dot, .status-live .dot, .live-support-fab .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 14px rgba(111,229,165,.85); }
.user-pill { padding: 10px 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); color: white; }
.user-pill strong { color: #9fd4ff; }
.cta-small, .cta-primary, .cta-secondary { border: 0; font-family: inherit; }
.cta-small { padding: 10px 16px; background: linear-gradient(135deg, var(--red), #ff6d5b); color: white; }
.cta-small.ghost, .cta-secondary {
  background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.08); color: white;
}
.cta-primary {
  padding: 14px 20px; background: linear-gradient(135deg, var(--red), #ff6d5b 42%, var(--blue));
  color: white; box-shadow: 0 14px 34px rgba(255,81,72,.22);
}
.cta-secondary { padding: 13px 18px; }
.cta-primary:hover, .cta-secondary:hover, .cta-small:hover, .support-chip:hover { transform: translateY(-1px); }
.wide { width: 100%; }
.flash-stack { display: grid; gap: 10px; margin-top: 10px; }
.flash { padding: 14px 18px; border-radius: 18px; border: 1px solid rgba(255,255,255,.08); }
.flash.success { background: rgba(111,229,165,.12); color: #97f0bd; }
.flash.error { background: rgba(255,81,72,.14); color: #ff9f97; }
.page-grid { display: grid; gap: 18px; padding: 16px 0 44px; }
.home-grid { grid-template-columns: 1.2fr .88fr .84fr; align-items: start; }
.clean-home .full-width { grid-column: 1 / -1; }
.hero-card, .section-card, .dashboard-hero, .wallet-card, .tap-panel, .orders-card, .auth-card {
  border-radius: var(--radius); padding: 28px;
}
.hero-clean { display: grid; gap: 18px; }
.hero-brand-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.status-live, .status-note {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; font-size: .84rem;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); color: var(--muted);
}
.hero-logo-main { width: 290px; max-width: 100%; }
.hero-clean h1, .support-page-head h1, .premium-top-clean h1, .dashboard-hero h1, .auth-card h1 {
  margin: 0; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.05; letter-spacing: -.04em;
}
.hero-clean .lead.compact, .section-card p, .dashboard-hero p, .auth-card p, .info-card p, .footer-grid p { color: var(--muted); line-height: 1.7; }
.hero-actions-row, .mini-actions, .wallet-actions, .inline-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.eyebrow {
  margin: 0 0 10px; color: #9fb6d9; letter-spacing: .18em; font-size: .75rem; font-weight: 700;
}
.metric-grid { display: grid; gap: 14px; }
.metric-grid.compact-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metric-grid article, .wallet-grid article, .coin-stats > div, .contact-lines > div {
  padding: 16px 18px; border-radius: 20px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06);
}
.metric-grid span, .wallet-grid span, .coin-stats span, .contact-lines span { display: block; color: var(--muted); margin-bottom: 8px; font-size: .88rem; }
.metric-grid strong, .wallet-grid strong, .coin-stats strong, .contact-lines strong { font-size: 1.1rem; }
.coin-card-clean { display: grid; gap: 18px; }
.coin-head-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.coin-head-row h2, .section-card h2, .section-card h3, .info-card h3 { margin: 0; }
.coin-stage {
  position: relative; min-height: 310px; display: grid; place-items: center; border-radius: 26px;
  background: radial-gradient(circle at center, rgba(77,164,255,.11), transparent 42%), rgba(0,0,0,.24);
  border: 1px solid rgba(255,255,255,.06);
}
.mining-button {
  position: relative; width: 218px; height: 218px; border: 0; border-radius: 50%;
  background: transparent; cursor: pointer; isolation: isolate;
}
.mining-glow {
  position: absolute; inset: 12px;
  background: radial-gradient(circle at 30% 30%, #9bcaff 0%, #5d8eff 38%, #ff5f5f 100%);
  border-radius: 50%; filter: blur(4px); opacity: .95; box-shadow: 0 0 60px rgba(77,164,255,.22);
}
.mining-ring {
  position: absolute; inset: -8px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12); animation: pulseRing 2.4s ease-in-out infinite;
}
.mining-core {
  position: absolute; inset: 28px; display: grid; place-items: center; border-radius: 50%;
  background: linear-gradient(145deg, rgba(9,13,21,.95), rgba(19,28,43,.94));
  color: white; font-size: 3rem; font-weight: 800; letter-spacing: .12em; text-shadow: 0 0 20px rgba(77,164,255,.24);
  border: 1px solid rgba(255,255,255,.08);
}
.tap-feedback-layer { position: absolute; inset: 0; pointer-events: none; z-index: 12; overflow: visible; }
.tap-feedback {
  position: absolute; transform: translate(-50%, -50%); color: #fff; font-weight: 800;
  text-shadow: 0 6px 24px rgba(0,0,0,.55); animation: floatTap .95s ease-out forwards; z-index: 15;
}
.clean-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.info-stack { display: grid; gap: 14px; }
.info-card { padding: 24px; border-radius: 24px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); }
.section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.cards-3, .cards-4, .feature-band { display: grid; gap: 16px; }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.store-card {
  display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.07);
}
.store-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.badge {
  display: inline-flex; align-items: center; padding: 8px 12px; border-radius: 999px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.08); font-size: .75rem;
}
.badge.soft { background: rgba(77,164,255,.12); }
.feature-list { margin: 0; padding-left: 18px; color: var(--muted); display: grid; gap: 6px; }
.price-line {
  display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 18px; background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.05);
}
.price-line strong { font-size: 1.5rem; }
.checkout-form, .form-grid, .support-form { display: grid; gap: 14px; }
.form-grid.two-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.full-span { grid-column: 1 / -1; }
label { display: grid; gap: 8px; color: var(--muted); }
input, select, textarea {
  width: 100%; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.08); color: white; outline: none; font: inherit;
}
select option { color: black; }
input::placeholder, textarea::placeholder { color: rgba(255,255,255,.35); }
.auth-wrap { padding: 30px 0 60px; display: grid; place-items: center; }
.auth-card { width: min(620px, 100%); }
.auth-card-wide { width: min(760px, 100%); }
.split-note { margin-top: 16px; color: var(--muted); }
.split-note a { color: white; text-decoration: underline; }
.panel-grid { grid-template-columns: 1.15fr .85fr; }
.dashboard-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.dashboard-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.wallet-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tap-panel .tap-zone { position: relative; min-height: 320px; display: grid; place-items: center; }
.tap-panel .mining-button.large { width: 230px; height: 230px; }
.payment-note {
  display: grid; gap: 6px; padding: 16px 18px; background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08); border-radius: 18px;
}
.table-wrap { overflow: auto; }
.table-wrap.compact { max-height: 420px; }
.data-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.data-table th, .data-table td { padding: 14px 12px; border-bottom: 1px solid rgba(255,255,255,.07); text-align: left; vertical-align: top; }
.data-table th { color: #9fb0e7; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.status { display: inline-flex; padding: 8px 12px; border-radius: 999px; font-size: .8rem; text-transform: capitalize; }
.status.pending { background: rgba(255,185,84,.14); color: #ffcf7c; }
.status.approved { background: rgba(111,229,165,.14); color: #8df0b8; }
.status.rejected { background: rgba(255,77,116,.14); color: #ff95ad; }
.small { padding: 9px 12px; font-size: .85rem; }
.footer-grid {
  display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 24px; padding: 24px; border-radius: 28px; margin-bottom: 42px;
}
.footer-logo { width: 180px; height: auto; margin-bottom: 12px; }
.site-footer { padding-top: 16px; }
.site-footer h4 { margin: 0 0 12px; }
.site-footer a, .site-footer p { color: var(--muted); display: block; margin: 0 0 8px; }
.muted-text { color: var(--muted); }
.contact-lines { display: grid; gap: 14px; }
.support-page-head { display: grid; gap: 10px; }
.support-status { color: var(--muted); font-size: .95rem; }
.live-support-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; border: 0;
  padding: 14px 18px; border-radius: 999px; background: linear-gradient(135deg, #101826, #172336);
  color: white; font-weight: 800; box-shadow: 0 12px 34px rgba(0,0,0,.3); display: inline-flex; gap: 8px; align-items: center;
  border: 1px solid rgba(255,255,255,.08);
}
.support-drawer {
  position: fixed; inset: 0; background: rgba(2,4,8,.68); opacity: 0; pointer-events: none; transition: .2s ease; z-index: 95;
}
.support-drawer.is-open { opacity: 1; pointer-events: auto; }
.support-card {
  position: absolute; right: 18px; bottom: 80px; width: min(380px, calc(100% - 28px));
  padding: 20px; border-radius: 24px;
}
.support-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.support-card-head p { margin: 6px 0 0; color: var(--muted); font-size: .9rem; }
.support-close { border: 0; background: transparent; color: white; font-size: 1.6rem; cursor: pointer; }
@keyframes floatTap {
  0% { opacity: 0; transform: translate(-50%, -20%) scale(.7); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -170%) scale(1.15); }
}
@keyframes pulseRing {
  0% { transform: scale(.98); opacity: .8; }
  50% { transform: scale(1.03); opacity: .3; }
  100% { transform: scale(.98); opacity: .8; }
}
@media (max-width: 1160px) {
  .home-grid, .panel-grid, .cards-4 { grid-template-columns: 1fr 1fr; }
  .info-stack, .cards-4 > *:last-child { grid-column: auto; }
  .cards-3, .footer-grid, .metric-grid.compact-grid, .wallet-grid, .clean-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 920px) {
  .nav-shell { border-radius: 30px; padding: 16px; flex-wrap: wrap; }
  .main-nav, .nav-actions { width: 100%; justify-content: center; }
  .home-grid, .panel-grid, .cards-4, .cards-3, .metric-grid.compact-grid, .wallet-grid, .clean-stats, .form-grid.two-cols, .footer-grid { grid-template-columns: 1fr; }
  .dashboard-hero, .section-head, .hero-brand-line, .coin-head-row { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 640px) {
  .container { width: min(100% - 22px, 100%); }
  .hero-card, .section-card, .dashboard-hero, .wallet-card, .tap-panel, .orders-card, .auth-card, .support-card { padding: 22px; }
  .mining-button { width: 186px; height: 186px; }
  .tap-panel .mining-button.large { width: 190px; height: 190px; }
  .nav-actions { flex-direction: column; }
  .user-pill { width: 100%; }
  .brand-logo-wide { width: 148px; }
}

/* v13 overrides */
body {
  background: #06080d;
}
.noise { display: none; }
.site-header-clean { padding-top: 14px; }
.only-wide-logo { width: 190px; }
.hero-logo-main { width: 240px; }
.hero-clean h1 { max-width: 900px; }
.hero-card, .section-card, .dashboard-hero, .wallet-card, .orders-card, .auth-card, .support-card {
  background: #0b1220;
  border-color: rgba(255,255,255,.07);
}
.info-card, .store-card, .glass-inner, .payment-note, .metric-grid article, .wallet-grid article, .contact-lines > div {
  background: #0f1727;
}
.cards-2 { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:16px; }
.trade-grid, .store-grid, .support-page-grid { grid-template-columns: 1fr; }
.footer-clean { background: #0a1120; }
.support-chat-log {
  height: 320px; overflow: auto; padding: 12px; border-radius: 18px;
  background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.06); display:grid; gap:12px;
}
.page-chat-log { height: 420px; }
.chat-row { display:flex; }
.chat-row.is-user { justify-content: flex-end; }
.chat-row.is-admin { justify-content: flex-start; }
.chat-bubble {
  max-width: 78%; background: #111c30; border: 1px solid rgba(255,255,255,.07);
  padding: 12px 14px; border-radius: 16px; color: #eef4ff;
}
.chat-row.is-user .chat-bubble { background: linear-gradient(135deg, rgba(255,81,72,.20), rgba(77,164,255,.16)); }
.chat-bubble strong { display:block; margin-bottom:6px; }
.chat-bubble p { margin:0 0 8px; white-space:pre-wrap; word-break:break-word; }
.chat-bubble small { color: var(--muted); }
.support-chat-meta { margin-top: 10px; color: var(--muted); min-height: 20px; }
.support-chat-form { margin-top: 12px; }
.admin-support-grid { grid-template-columns: 320px 1fr; }
.admin-thread-list { display:grid; gap:10px; max-height: 520px; overflow:auto; }
.admin-thread-item { display:grid; gap:4px; padding: 14px; border-radius: 16px; background:#10192b; border:1px solid rgba(255,255,255,.06); color: var(--muted); }
.admin-thread-item strong { color: white; }
.admin-thread-item.is-active { border-color: rgba(77,164,255,.35); background:#12203a; }
.admin-chat-log { height: 360px; margin-bottom: 14px; }
.inline-reset-form { display:flex; gap:8px; align-items:center; }
.inline-reset-form input { min-width: 140px; padding: 10px 12px; }
.support-page-head h1, .dashboard-hero h1, .auth-card h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.support-form input[readonly] { opacity: .85; }
.market-promo {
  display:grid; gap:6px; padding:16px 18px; border-radius:18px; background:#10192b; border:1px solid rgba(255,255,255,.06);
}
.market-promo span { color: var(--muted); }
.market-promo strong { font-size: 1.3rem; }
@media (max-width: 920px) {
  .cards-2, .admin-support-grid { grid-template-columns: 1fr; }
  .chat-bubble { max-width: 92%; }
}


.tap-layout { display:grid; grid-template-columns: minmax(280px, 420px) 1fr; gap: 20px; align-items:center; }
.tap-layout.single { grid-template-columns: 1fr; }
.tap-zone { position: relative; min-height: 320px; display: grid; place-items: center; }
.tap-panel .section-head.compact { margin-bottom: 10px; }
.mining-button.is-tapping { transform: scale(.97); transition: transform .08s ease; }
.mining-button[disabled] { cursor: not-allowed; opacity: .8; }

.mining-button.is-pulse .mining-glow { animation: tapPulse .28s ease-out; }
.mining-button.is-shake { animation: tapShake .24s ease-in-out; }
@keyframes tapPulse {
  0% { transform: scale(1); filter: blur(4px) brightness(1); }
  50% { transform: scale(1.08); filter: blur(6px) brightness(1.25); }
  100% { transform: scale(1); filter: blur(4px) brightness(1); }
}
@keyframes tapShake {
  0%,100% { transform: translateX(0) scale(.97); }
  25% { transform: translateX(-4px) scale(.97); }
  50% { transform: translateX(4px) scale(.97); }
  75% { transform: translateX(-2px) scale(.97); }
}
[data-tap-status].is-error { color: #ff95ad; }
[data-tap-status].is-success { color: #8df0b8; }

@media (max-width: 980px) {
  .tap-layout { grid-template-columns: 1fr; }
}

.inline-balance-form { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.inline-balance-form select, .inline-balance-form input { min-width: 110px; padding: 10px 12px; }
.inline-balance-form button { white-space: nowrap; }

/* v16 admin/support polish */
.support-chip { position: relative; }
.support-chip-badge {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: linear-gradient(135deg, #ff5f72, #ff8e6b);
  color: white; display: inline-flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 800; margin-left: 8px; box-shadow: 0 8px 18px rgba(255,95,114,.35);
}
.badge.alert, .thread-pill.alert {
  background: rgba(255,95,114,.16);
  color: #ffadbc;
  border-color: rgba(255,95,114,.34);
}
.admin-page-grid { gap: 18px; }
.admin-hero-card {
  background: linear-gradient(180deg, rgba(14,22,38,.96), rgba(10,16,28,.96));
}
.admin-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.summary-stat {
  padding: 20px 22px;
  border-radius: 24px;
  display: grid;
  gap: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.07);
}
.summary-stat span { color: var(--muted); font-size: .92rem; }
.summary-stat strong { font-size: clamp(1.5rem, 2vw, 2.1rem); }
.summary-stat small { color: var(--muted); }
.admin-support-grid {
  grid-template-columns: 340px 1fr;
  align-items: stretch;
}
.admin-support-sidebar,
.admin-support-main {
  display: grid;
  gap: 14px;
}
.admin-section-line {
  align-items: center;
}
.admin-thread-list {
  display: grid;
  gap: 10px;
  max-height: 620px;
  overflow: auto;
  padding-right: 2px;
}
.admin-thread-item {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 18px;
  background: #0f1727;
  border: 1px solid rgba(255,255,255,.06);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.admin-thread-item:hover {
  transform: translateY(-1px);
  border-color: rgba(100,151,255,.28);
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}
.admin-thread-item.is-active {
  background: linear-gradient(180deg, rgba(36,55,92,.72), rgba(15,24,41,.88));
  border-color: rgba(108,157,255,.34);
}
.admin-thread-item.is-unread {
  border-color: rgba(255,115,143,.22);
}
.admin-thread-item > span,
.admin-thread-item p,
.admin-thread-item small { color: var(--muted); margin: 0; }
.admin-thread-item p { line-height: 1.45; min-height: 38px; }
.admin-thread-topline,
.admin-thread-bottomline,
.inline-actions.between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.thread-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.08);
  font-size: .8rem;
  color: #eaf1ff;
}
.thread-pill.unread {
  background: rgba(255,95,114,.15);
  border-color: rgba(255,95,114,.28);
  color: #ffb7c3;
}
.thread-pill.muted { color: var(--muted); }
.text-open { color: #8df0b8 !important; }
.admin-chat-log {
  min-height: 420px;
  background: radial-gradient(circle at top, rgba(77,164,255,.08), transparent 55%), #0b1220;
}
.admin-reply-form textarea {
  min-height: 130px;
}
.inline-balance-form,
.inline-reset-form {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.inline-balance-form select,
.inline-balance-form input,
.inline-reset-form input {
  min-width: 120px;
  padding: 10px 12px;
}
@media (max-width: 1100px) {
  .admin-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-support-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .admin-summary-grid { grid-template-columns: 1fr; }
  .inline-balance-form, .inline-reset-form { flex-direction: column; align-items: stretch; }
}

/* v5 refresh */
body {
  background:
    radial-gradient(circle at top right, rgba(77,164,255,.09), transparent 24%),
    radial-gradient(circle at top left, rgba(255,81,72,.07), transparent 18%),
    linear-gradient(180deg, #05070c 0%, #070b12 100%);
}
.site-header { position: sticky; top: 0; z-index: 80; padding-bottom: 8px; }
.market-strip {
  margin-top: 10px; padding: 10px 14px; border-radius: 20px;
  display: flex; align-items: center; gap: 14px; overflow: hidden;
}
.market-strip-label {
  flex: 0 0 auto; color: #a7b5d0; font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.market-ticker { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; width: 100%; }
.ticker-chip {
  min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; border-radius: 16px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.05);
}
.ticker-symbol { color: #dce6ff; font-weight: 800; font-size: .86rem; }
.ticker-chip strong { font-size: .95rem; white-space: nowrap; }
.ticker-chip small { white-space: nowrap; color: var(--muted); }
.mini-toast-stack {
  position: fixed; top: 118px; right: 18px; z-index: 120; display: grid; gap: 10px; pointer-events: none;
}
.mini-toast {
  min-width: 180px; max-width: 260px; padding: 11px 14px; border-radius: 14px;
  background: rgba(11,16,26,.96); border: 1px solid rgba(255,255,255,.08); box-shadow: 0 12px 30px rgba(0,0,0,.32);
  color: #fff; font-size: .92rem; transform: translateY(-8px); opacity: 0; transition: .22s ease;
}
.mini-toast.is-visible { transform: translateY(0); opacity: 1; }
.mini-toast-success { border-color: rgba(111,229,165,.24); color: #c8ffe1; }
.mini-toast-error { border-color: rgba(255,81,72,.24); color: #ffd0cc; }
.home-top-grid { grid-template-columns: 1.05fr .95fr; }
.home-top-grid .info-stack,
.home-top-grid .section-card { grid-column: 1 / -1; }
.hero-tight h1 { max-width: 12ch; }
.top-metrics-grid { margin-top: 6px; }
.hero-tap-panel { padding-top: 24px; }
.tap-top-head { margin-bottom: 12px; }
.top-layout { grid-template-columns: .82fr 1.18fr; align-items: center; gap: 20px; }
.compact-top-zone { min-height: 260px !important; }
.compact-top-stats { align-content: start; }
.two-col-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
.panel-tap-stats { margin-top: 10px; }
.minute-reward-bar {
  width: 100%; height: 10px; margin-top: 14px; border-radius: 999px; overflow: hidden;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.05);
}
.minute-reward-fill {
  width: 0%; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, rgba(255,81,72,.95), rgba(77,164,255,.95));
  transition: width .28s linear;
}
.tap-top-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.status-live {
  background: rgba(77,164,255,.1);
  border: 1px solid rgba(77,164,255,.22);
  color: #cfe6ff;
}
.compact-top-stats {
  padding: 16px 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.07);
}
.compact-top-stats .coin-stats > div {
  padding: 14px 15px;
  border-radius: 18px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.05);
}
.compact-top-stats .coin-stats strong {
  font-size: 1.05rem;
}
.mini-market-card {
  min-height: 110px;
  align-content: start;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.025));
}
.mini-market-card small {
  color: var(--muted);
}
.actions-card {
  gap: 10px;
}
.actions-card a {
  min-height: 44px;
}
.small-pill { padding: 10px 14px; }
.top-gap-12 { margin-top: 12px; }
.mining-button, .mining-button * { touch-action: manipulation; user-select: none; }
.mining-button.large { width: 208px !important; height: 208px !important; }
.mining-button:focus { outline: none; }
.tap-feedback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(7,11,18,.88);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 12px 28px rgba(0,0,0,.28);
  backdrop-filter: blur(8px);
}
.footer-logo { width: 154px; }
.footer-grid { align-items: start; }
@media (max-width: 1160px) {
  .home-top-grid { grid-template-columns: 1fr; }
  .market-ticker { grid-template-columns: 1fr; }
}
@media (max-width: 920px) {
  .top-layout { grid-template-columns: 1fr; }
  .mini-toast-stack { top: 150px; right: 12px; left: 12px; }
  .mini-toast { max-width: none; }
  .market-strip { flex-direction: column; align-items: stretch; }
}

/* v6 compact live layout */
.site-header-clean { padding-top: 18px; }
.compact-home-grid { gap: 18px; }
.compact-only-panel { padding: 22px; }
.top-dashboard-grid { display:grid; grid-template-columns: 340px 1fr 280px; gap:16px; align-items:stretch; }
.center-zone { min-height: 360px; }
.market-side-cards { display:grid; gap:12px; }
.mini-market-card { padding:18px; border-radius:20px; background:rgba(255,255,255,.035); border:1px solid rgba(255,255,255,.07); display:grid; gap:8px; transition: background-color .25s ease, box-shadow .25s ease; }
.mini-market-card span { color: var(--muted); font-size:.84rem; }
.mini-market-card strong { font-size:1.3rem; }
.actions-card { align-content:stretch; }
.actions-card a { text-align:center; }
.six-cells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.slim-section { padding: 18px 22px; }
.ticker-chip, #heroMarketCard { transition: background-color .3s ease, box-shadow .3s ease, border-color .3s ease; }
.flash-up { background-color: rgba(61, 190, 120, .12) !important; box-shadow: 0 0 0 1px rgba(61,190,120,.18) inset, 0 0 24px rgba(61,190,120,.1); }
.flash-down { background-color: rgba(255, 70, 90, .12) !important; box-shadow: 0 0 0 1px rgba(255,70,90,.18) inset, 0 0 24px rgba(255,70,90,.1); }
.trade-converter-card .convert-preview { padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.06); color: var(--muted); }
.disclaimer-check textarea { min-height: 220px; resize: vertical; }
.checkbox-line { display:flex; align-items:flex-start; gap:10px; background: rgba(255,255,255,.03); padding:14px 16px; border-radius:16px; border:1px solid rgba(255,255,255,.06); }
.checkbox-line input { width:auto; margin-top: 2px; }
.only-wide-logo { width: 130px; height:auto; }
.brand { min-width: 150px; }
.live-support-fab { right: 18px; bottom: 18px; }
.support-card { width: min(420px, calc(100% - 24px)); }
.support-chat-log { max-height: 320px; overflow:auto; margin-bottom: 12px; }
.chat-row { display:flex; margin-bottom:10px; }
.chat-row.is-admin { justify-content:flex-start; }
.chat-row.is-user { justify-content:flex-end; }
.chat-bubble { max-width: 85%; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.07); }
.chat-row.is-user .chat-bubble { background: rgba(77,164,255,.12); }
.mining-button { touch-action: manipulation; }
.support-chip-badge { margin-left:8px; display:inline-flex; align-items:center; justify-content:center; min-width:18px; height:18px; border-radius:999px; background:#ff6d85; font-size:.72rem; padding:0 5px; }
.inline-balance-form { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.inline-balance-form select, .inline-balance-form input { max-width: 112px; }

@media (max-width: 1180px) {
  .top-dashboard-grid { grid-template-columns: 1fr; }
  .center-zone { min-height: 280px; }
  .market-side-cards { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 720px) {
  .market-side-cards { grid-template-columns: 1fr; }
  .six-cells { grid-template-columns: 1fr 1fr; }
  .tap-top-meta { justify-content: flex-start; }
  .support-card { right: 12px; bottom: 74px; }
}

/* v7 cleanup */
body { background: radial-gradient(circle at 20% 0%, rgba(92,16,22,.22), transparent 28%), #03060b; }
.site-header { position: static; }
.container { width: min(1120px, calc(100% - 28px)); }
.market-strip { margin-top: 8px; border-radius: 20px; padding: 10px 14px; }
.market-strip-label { min-width: auto; font-size: .95rem; }
.market-ticker { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; }
.ticker-chip { min-width: 0; padding: 12px 14px; }
.ticker-chip strong { font-size: 1.15rem; }
.ticker-chip small { font-size: .9rem; }
.home-shell-v7 { padding-top: 14px; gap: 16px; }
.home-hero-v7 { padding: 18px; }
.home-hero-grid-v7 { display: grid; grid-template-columns: 1.1fr .95fr; gap: 16px; align-items: stretch; }
.home-coin-stage-v7, .home-stats-stage-v7 { min-width: 0; }
.hero-head-v7 h1 { font-size: clamp(2rem, 3.7vw, 3rem); max-width: 11ch; margin: 0; }
.hero-coin-zone-v7 { min-height: 370px !important; border-radius: 24px; background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.05); }
.home-stats-stage-v7 { display: grid; gap: 14px; align-content: start; }
.hero-side-top-v7, .hero-stats-grid-v7 { display: grid; gap: 12px; }
.hero-side-top-v7 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hero-stats-grid-v7 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hero-stat-v7 { min-width: 0; padding: 16px 18px; border-radius: 22px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); display: grid; gap: 8px; }
.hero-stat-v7 span { color: var(--muted); font-size: .84rem; }
.hero-stat-v7 strong { font-size: 1.2rem; line-height: 1.15; word-break: break-word; }
.hero-stat-v7 small { color: var(--muted); font-size: .86rem; }
.hero-actions-v7 { margin-top: 2px; }
.hero-actions-v7 .cta-primary, .hero-actions-v7 .cta-secondary { min-width: 124px; }
.site-footer-minimal { padding: 0 0 28px; }
.footer-minimal-row { border-radius: 22px; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.footer-brand-mini img { width: 120px; }
.footer-mini-links { display: flex; gap: 18px; color: var(--muted); }
.footer-mini-links a:hover { color: #fff; }
.support-status:empty { display: none; }
.mini-toast-stack { top: 24px; right: 24px; }
.support-drawer { z-index: 120; }
.support-chat-log { background: rgba(255,255,255,.02); border-radius: 18px; padding: 10px; }
#heroMarketCard.flash-up, .ticker-chip.flash-up { box-shadow: 0 0 0 1px rgba(80,255,160,.18) inset, 0 0 26px rgba(80,255,160,.14); }
#heroMarketCard.flash-down, .ticker-chip.flash-down { box-shadow: 0 0 0 1px rgba(255,80,110,.18) inset, 0 0 26px rgba(255,80,110,.14); }
@media (max-width: 1040px) {
  .home-hero-grid-v7 { grid-template-columns: 1fr; }
  .hero-coin-zone-v7 { min-height: 300px !important; }
}
@media (max-width: 720px) {
  .market-ticker, .hero-side-top-v7, .hero-stats-grid-v7 { grid-template-columns: 1fr; }
  .footer-minimal-row { flex-direction: column; align-items: flex-start; }
  .main-nav { gap: 4px; }
  .main-nav a { padding: 8px 12px; font-size: .92rem; }
}


/* v9 no-mail + cleaner home */
.auth-card p, .split-note { color: var(--muted); }
.home-shell-v9 { padding-top: 14px; gap: 18px; }
.home-focus-card-v9 { padding: 18px; }
.home-focus-grid-v9 { display:grid; grid-template-columns: 360px minmax(0,1fr); gap:18px; align-items:stretch; }
.home-focus-coin-v9, .home-focus-side-v9 { min-width:0; }
.hero-head-v9 h1 { margin:0; font-size: clamp(1.35rem, 2vw, 1.8rem); }
.hero-coin-zone-v9 { min-height: 360px !important; border-radius: 24px; background: rgba(255,255,255,.022); border: 1px solid rgba(255,255,255,.06); }
.home-focus-side-v9 { display:flex; flex-direction:column; gap:14px; justify-content:space-between; }
.hero-stats-grid-v9 { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:12px; }
.hero-stat-v9 { min-width:0; padding:16px 18px; border-radius:20px; background: rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.06); display:grid; gap:7px; }
.hero-stat-v9 span { color: var(--muted); font-size: .83rem; }
.hero-stat-v9 strong { font-size: 1.18rem; line-height: 1.12; word-break: break-word; }
.hero-stat-v9 small { color: var(--muted); font-size: .84rem; }
.hero-actions-v9 { display:flex; flex-wrap:wrap; gap:12px; }
.hero-actions-v9 .cta-primary, .hero-actions-v9 .cta-secondary { min-width: 124px; }
.mini-toast-stack { top: 20px; right: 20px; }
.support-drawer { z-index: 130; }
@media (max-width: 1020px) {
  .home-focus-grid-v9 { grid-template-columns: 1fr; }
  .hero-coin-zone-v9 { min-height: 300px !important; }
}
@media (max-width: 720px) {
  .hero-stats-grid-v9 { grid-template-columns: 1fr; }
  .hero-actions-v9 .cta-primary, .hero-actions-v9 .cta-secondary { width: 100%; text-align:center; }
}
