html, body {
  height: 100%;
  height: 100dvh;
  overflow: hidden;
}
body {
  display: flex;
  flex-direction: column;
}

:root {
  --bg: #090a10;
  --card: rgba(16, 18, 28, 0.42);
  --card-2: rgba(18, 20, 32, 0.55);
  --border: rgba(255,255,255,0.08);
  --text-muted: #7b849c;
  --accent: #ff3535;
  --accent-hover: #ff5252;
  --green: #2ecc71;
  --yellow: #f1c40f;
  --font: 'Outfit', 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', Consolas, ui-monospace, monospace;
  --radius: 22px;
  --header-h: 88px;
  --glass: linear-gradient(165deg, rgba(255,255,255,0.055) 0%, rgba(255,255,255,0.012) 55%, rgba(255,53,53,0.04) 100%);
}

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

body {
  background-color: var(--bg);
  color: #fff;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
  overflow: hidden;
  overflow-anchor: none;
}
body.auth-pending #authLoggedOut,
body.auth-pending #authLoggedIn {
  opacity: 0;
  pointer-events: none;
}

a { color: var(--accent); text-decoration: none; }

/* ===================== BACKGROUND ===================== */
.bg-scene {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
}
.bg-grid {
  position: absolute; inset: -1px;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, #000 20%, transparent 75%);
  opacity: 0.45;
}
.blob {
  position: absolute;
  width: 58vmax; height: 58vmax;
  max-width: 820px; max-height: 820px;
  border-radius: 50%;
  transform: translate3d(0,0,0);
  will-change: transform;
}
.blob-a {
  top: -22%; right: -12%;
  background: radial-gradient(circle, rgba(255,53,53,0.22) 0%, transparent 68%);
  animation: driftA 26s ease-in-out infinite;
}
.blob-b {
  bottom: -28%; left: -16%;
  background: radial-gradient(circle, rgba(80,70,255,0.16) 0%, transparent 68%);
  animation: driftB 32s ease-in-out infinite;
}
.blob-c {
  top: 38%; left: 32%;
  width: 42vmax; height: 42vmax;
  background: radial-gradient(circle, rgba(200,40,180,0.1) 0%, transparent 70%);
  animation: driftC 22s ease-in-out infinite;
}
@keyframes driftA {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(-8%, 10%, 0) scale(1.08); }
}
@keyframes driftB {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(10%, -8%, 0) scale(1.1); }
}
@keyframes driftC {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(-6%, -12%, 0) scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  .blob { animation: none; }
}

/* ===================== HEADER ===================== */
.site-top, #hgHeader {
  position: relative;
  flex: 0 0 auto;
  z-index: 5;
  width: 100%;
  background: #06070c;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.site-main {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
}
.site-header {
  max-width: 1400px; margin: 0 auto;
  height: 58px;
  background: transparent;
  border: none;
  border-radius: 0;
  display: flex; align-items: center;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.06);
  position: relative;
}
.site-header::before {
  content: '';
  position: absolute; top: 0; left: 18%; right: 18%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,53,53,0.7), transparent);
  border-radius: 20px;
}
.header-inner {
  width: 100%; padding: 0 14px 0 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}

.brand { display: flex; align-items: center; gap: 10px; cursor: pointer; flex-shrink: 0; }
.brand-icon { color: var(--accent); display: flex; align-items: center; }
.brand-icon svg { width: 24px; height: 24px; filter: drop-shadow(0 0 6px rgba(255,53,53,0.55)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-title { font-size: 18px; font-weight: 800; color: #fff; letter-spacing: -0.4px; }
.brand-title span { color: var(--accent); text-shadow: 0 0 12px rgba(255,53,53,0.5); }
.brand-meta { display: flex; align-items: center; gap: 6px; margin-top: 3px; }
.live-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 8px rgba(46,204,113,0.8);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
.brand-chip {
  font-size: 9px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--text-muted);
}

.nav-menu {
  display: flex; list-style: none; gap: 2px;
  background: transparent;
  border: none;
  padding: 0;
}
.nav-link {
  color: var(--text-muted); font-size: 15px; font-weight: 650;
  cursor: pointer; text-decoration: none;
  padding: 10px 16px; border-radius: 0;
  position: relative;
  display: inline-flex; align-items: center; gap: 7px;
  transition: color 0.15s;
}
.nav-link .ico { width: 16px; height: 16px; opacity: 0.8; }
.nav-link:hover .ico, .nav-link.active .ico { opacity: 1; color: var(--accent); }
.nav-link::after {
  content: '';
  position: absolute; left: 16px; right: 16px; bottom: 4px;
  height: 2px; border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(255,53,53,0.55);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.16s ease;
}
.nav-link:hover { color: #fff; background: transparent; }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.active { color: #fff; background: transparent; box-shadow: none; }
.nav-link.active::after { transform: scaleX(1); }

.header-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.lang-switch {
  display: flex; align-items: center; gap: 2px;
  background: rgba(0,0,0,0.4);
  border-radius: 999px; padding: 3px;
  border: 1px solid rgba(255,255,255,0.1);
  margin: 0 6px;
}
.lang-btn {
  background: none; border: none; color: var(--text-muted);
  padding: 6px 12px; cursor: pointer; font-weight: 800; font-size: 11px;
  letter-spacing: 0.08em; border-radius: 999px;
  transition: all 0.15s; font-family: var(--font);
}
.lang-btn:hover { color: #fff; }
.lang-btn.active { background: var(--accent); color: #fff; box-shadow: 0 0 14px rgba(255,53,53,0.35); }

.auth-actions { display: flex; gap: 8px; }
.btn-signin { background: transparent; border: 1px solid var(--border); color: #fff; padding: 8px 14px; border-radius: 10px; cursor: pointer; font-weight: 500; transition: all 0.15s; font-size: 13px; font-family: var(--font); display: inline-flex; align-items: center; gap: 7px; }
.btn-signin:hover { border-color: var(--text-muted); background: rgba(255,255,255,0.05); }
.btn-signup { background: var(--accent); border: none; color: #fff; padding: 8px 14px; border-radius: 10px; cursor: pointer; font-weight: 700; transition: background 0.15s; font-size: 13px; font-family: var(--font); box-shadow: 0 0 16px rgba(255,53,53,0.3); display: inline-flex; align-items: center; gap: 7px; }
.btn-signup:hover { background: var(--accent-hover); }

.user-menu-wrap { position: relative; }
.user-avatar-btn {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 999px; padding: 4px 10px 4px 4px;
  cursor: pointer; transition: all 0.15s; color: #e8eaf2;
  box-shadow: none;
}
.user-avatar-btn:hover { border-color: rgba(255,53,53,0.55); background: rgba(255,53,53,0.14); box-shadow: 0 0 24px rgba(255,53,53,0.32); }
.user-avatar-circle {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #7b35ff);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 12px; color: #fff; flex-shrink: 0;
  box-shadow: 0 0 14px rgba(255,53,53,0.55);
}
.user-avatar-name {
  font-size: 13px; font-weight: 700; letter-spacing: 0.01em;
  color: #fff;
  text-shadow: 0 0 10px rgba(255,53,53,0.7), 0 0 22px rgba(255,80,180,0.35);
}
.guest-pill {
  font-size: 9px; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase;
  color: var(--yellow); background: rgba(241,196,15,0.12); border: 1px solid rgba(241,196,15,0.25);
  padding: 1px 6px; border-radius: 99px;
}

.user-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0;
  background: rgba(16, 18, 28, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px; padding: 8px 0; width: 230px;
  box-shadow: 0 16px 50px rgba(0,0,0,0.7), 0 0 24px rgba(255,53,53,0.08);
  opacity: 0; pointer-events: none; transform: translateY(-8px) scale(0.98);
  transform-origin: top right;
  transition: opacity 0.16s ease, transform 0.16s ease; z-index: 300;
}
.user-dropdown.active { opacity: 1; pointer-events: all; transform: none; }
.ud-header { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.ud-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #7b35ff);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px; color: #fff; flex-shrink: 0;
}
.ud-name { font-weight: 700; font-size: 14px; color: #fff; }
.ud-sub  { font-size: 12px; color: var(--text-muted); margin-top: 1px; }
.ud-divider { border: none; border-top: 1px solid var(--border); margin: 4px 0; }
.ud-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%; text-align: left; background: none; border: none;
  color: #a8b2d1; padding: 10px 16px; font-size: 13px; cursor: pointer;
  transition: all 0.12s; font-family: var(--font);
}
.ud-item:hover { background: rgba(255,255,255,0.05); color: #fff; }
.ud-danger { color: #ff6b6b; }
.ud-danger:hover { background: rgba(255,53,53,0.1); color: #ff3535; }

/* ===================== VIEWS ===================== */
.view { display: none; max-width: 1400px; margin: 0 auto; padding: 28px 24px 20px; width: 100%; }
.view.active { display: block; animation: paneFade 0.14s ease-out; }
@keyframes paneFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===================== BUTTONS ===================== */
.btn-primary { background: var(--accent); color: #fff; border: none; padding: 10px 18px; border-radius: 10px; font-size: 13px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background 0.15s, box-shadow 0.15s; font-family: var(--font); box-shadow: 0 0 16px rgba(255,53,53,0.28); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
.btn-secondary { background: rgba(255,255,255,0.05); color: #fff; border: 1px solid var(--border); padding: 10px 18px; border-radius: 10px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.15s; font-family: var(--font); }
.btn-secondary:hover { background: rgba(255,255,255,0.09); border-color: var(--text-muted); }
.btn-ghost { background: none; border: none; color: var(--text-muted); cursor: pointer; font-family: var(--font); font-size: 13px; font-weight: 600; }
.btn-ghost:hover { color: #fff; }
.btn-table { background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: var(--text-muted); padding: 4px 11px; border-radius: 8px; font-size: 12px; cursor: pointer; transition: all 0.15s; font-family: var(--font); }
.btn-table:hover { border-color: var(--text-muted); color: #fff; }
.btn-table.danger { color: #ff6b6b; }
.btn-table.danger:hover { border-color: var(--accent); color: #ff3535; background: rgba(255,53,53,0.08); }
.btn-table.warn { color: #f1c40f; }
.btn-table.warn:hover { border-color: rgba(241,196,15,0.5); color: #f1c40f; background: rgba(241,196,15,0.08); }

/* ===================== HOME ===================== */
.hero-box { text-align: center; max-width: 820px; margin: 28px auto 56px; }
.hero-tag { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,53,53,0.1); color: var(--accent); padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 700; margin-bottom: 18px; border: 1px solid rgba(255,53,53,0.25); }
.hero-heading { font-size: 46px; font-weight: 800; line-height: 1.08; margin-bottom: 16px; letter-spacing: -1.2px; }
.red-accent { color: var(--accent); text-shadow: 0 0 28px rgba(255,53,53,0.4); }
.hero-subtext { color: var(--text-muted); font-size: 16px; line-height: 1.6; margin-bottom: 28px; }
.hero-btns { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.features-trio { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.feature-card {
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px; padding: 22px; transition: border-color 0.2s;
}
.feature-card:hover { border-color: rgba(255,53,53,0.35); }
.feature-icon-badge { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: rgba(255,53,53,0.1); color: var(--accent); border-radius: 12px; margin-bottom: 14px; }
.feature-card h3 { font-size: 15px; margin-bottom: 6px; }
.feature-card p { color: var(--text-muted); font-size: 13px; }

/* ===================== SHELLS ===================== */
.shell {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.012) 100%),
    linear-gradient(160deg, rgba(28, 12, 18, 0.28) 0%, rgba(10, 12, 22, 0.18) 55%, rgba(12, 10, 28, 0.22) 100%);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 28px;
  padding: 22px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.09);
  position: relative;
}
.shell::before {
  content: '';
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(ellipse 80% 50% at 10% 0%, rgba(255,53,53,0.08), transparent 55%);
}
.card-panel {
  background: var(--glass);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px; padding: 22px; margin-bottom: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  position: relative;
}
.card-panel:last-child { margin-bottom: 0; }
.panel-title-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; gap: 12px; }
.panel-title-bar h3, .ptitle {
  font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 10px; margin: 0;
}
.ptitle-ico {
  width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,53,53,0.12); color: var(--accent);
  box-shadow: 0 0 12px rgba(255,53,53,0.16);
}
.ptitle-ico .ico { width: 16px; height: 16px; }

/* ===================== DASHBOARD ===================== */
.dash-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; gap: 16px; flex-wrap: wrap; }
.dash-title {
  font-size: 22px; font-weight: 800; letter-spacing: -0.03em;
  text-shadow: 0 0 22px rgba(255,53,53,0.22);
}
.dash-sub { color: var(--text-muted); font-size: 13px; margin-top: 2px; }
.project-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.project-select { display: none; }
.cselect { position: relative; min-width: 240px; }
.cselect-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff; padding: 9px 12px; border-radius: 12px;
  font-family: var(--font); font-size: 13px; font-weight: 600; outline: none; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.cselect-btn:hover { border-color: rgba(255,53,53,0.4); }
.cselect.open .cselect-btn { border-color: rgba(255,53,53,0.55); box-shadow: 0 0 0 3px rgba(255,53,53,0.12); }
.cselect-btn svg { flex-shrink: 0; opacity: 0.7; transition: transform 0.16s ease; }
.cselect.open .cselect-btn svg { transform: rotate(180deg); }
.cselect-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.cselect-label .ico { width: 14px; height: 14px; color: var(--accent); flex-shrink: 0; }
.cselect-opt { display: flex; align-items: center; gap: 8px; }
.cselect-opt .ico { width: 14px; height: 14px; color: var(--accent); flex-shrink: 0; }
.cselect-menu {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 40;
  background: rgba(14, 16, 26, 0.92);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px; padding: 6px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,53,53,0.08);
  opacity: 0; pointer-events: none; transform: translateY(-8px) scale(0.98);
  transform-origin: top center;
  transition: opacity 0.16s ease, transform 0.16s ease;
  max-height: 260px; overflow: auto;
}
.cselect.open .cselect-menu { opacity: 1; pointer-events: all; transform: none; }
.cselect-opt {
  display: block; width: 100%; text-align: left; background: none; border: none;
  color: #c5cde0; padding: 9px 12px; border-radius: 10px; cursor: pointer;
  font-family: var(--font); font-size: 13px; font-weight: 600;
  transition: background 0.12s, color 0.12s;
}
.cselect-opt:hover { background: rgba(255,255,255,0.06); color: #fff; }
.cselect-opt.active { background: rgba(255,53,53,0.14); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,53,53,0.25); }
.cselect-empty { padding: 12px; color: var(--text-muted); font-size: 12px; }
.slot-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.slot-chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: 99px; padding: 6px 12px; font-size: 12px; color: var(--text-muted); font-weight: 600;
}
.slot-chip b { color: #fff; font-weight: 800; }
.slot-chip.warn b { color: var(--yellow); }
.slot-chip.full b { color: var(--accent); }

.dash-layout { display: flex; gap: 18px; align-items: flex-start; }
.dash-sidebar {
  width: 200px; flex-shrink: 0;
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px; padding: 8px; display: flex; flex-direction: column; gap: 4px;
  position: sticky; top: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.dash-nav-link {
  background: none; border: none; color: var(--text-muted);
  padding: 11px 14px; text-align: left; cursor: pointer; font-size: 13px; font-weight: 600;
  transition: all 0.14s; font-family: var(--font); width: 100%; border-radius: 12px;
  display: flex; align-items: center; gap: 10px;
}
.dash-nav-link .ico { width: 16px; height: 16px; opacity: 0.7; }
.dash-nav-link:hover { color: #fff; background: rgba(255,255,255,0.04); }
.dash-nav-link:hover .ico { opacity: 1; }
.dash-nav-link.active { color: #fff; background: rgba(255,53,53,0.12); box-shadow: inset 0 0 0 1px rgba(255,53,53,0.22); }
.dash-nav-link.active .ico { color: var(--accent); opacity: 1; filter: drop-shadow(0 0 6px rgba(255,53,53,0.45)); }
.dash-content { flex-grow: 1; min-width: 0; }
.tab-pane { display: none; }
.tab-pane.active { display: block; animation: paneFade 0.12s ease-out; }

.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.stat-mini {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px; padding: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  display: flex; align-items: flex-start; gap: 12px;
}
.stat-ico, .pstat-ico {
  width: 36px; height: 36px; border-radius: 11px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,53,53,0.1); color: var(--accent);
}
.stat-ico .ico, .pstat-ico .ico { width: 18px; height: 18px; }
.stat-mini .val {
  text-shadow: 0 0 16px rgba(255,53,53,0.18);
}
.stat-mini .lbl { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.stat-mini .val { font-size: 22px; font-weight: 800; margin-top: 6px; }

/* ===================== AUTH GATE ===================== */
.dash-gate { max-width: 460px; margin: 48px auto 0; text-align: center; }
.dash-gate .card-panel { padding: 36px 28px; }
.dash-gate-icon {
  width: 54px; height: 54px; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,53,53,0.1); color: var(--accent); border-radius: 16px;
}
.dash-gate h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.dash-gate p { color: var(--text-muted); font-size: 13px; margin-bottom: 20px; }
.dash-gate-btns { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }

/* ===================== TABLES ===================== */
.admin-form-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.admin-form-row .form-group { flex: 1; min-width: 160px; margin-bottom: 0; }
.admin-form-error { color: var(--accent); font-size: 12px; margin-top: 10px; display: none; }
.inline-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.db-table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: 16px; scrollbar-width: none; }
.db-table-wrap::-webkit-scrollbar { display: none; }
.db-table { width: 100%; min-width: 720px; border-collapse: collapse; table-layout: fixed; }
.db-table th { text-align: left; padding: 12px 14px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); background: rgba(8,10,18,0.45); border-bottom: 1px solid var(--border); }
.db-table td { padding: 12px 14px; font-size: 13px; border-bottom: 1px solid rgba(30,34,51,0.4); vertical-align: middle; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.db-table td.cell-wrap { white-space: normal; overflow: visible; }
.db-table tbody tr:hover { background: rgba(255,53,53,0.04); }
.table-badge { padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; display: inline-block; }
.badge-active  { background: rgba(46,204,113,0.12); color: #2ecc71; border: 1px solid rgba(46,204,113,0.2); }
.badge-banned  { background: rgba(255,53,53,0.12);  color: #ff3535; border: 1px solid rgba(255,53,53,0.2); }
.badge-pending { background: rgba(241,196,15,0.12); color: #f1c40f; border: 1px solid rgba(241,196,15,0.2); }
.badge-free { background: rgba(46,204,113,0.12); color: #2ecc71; }
.badge-paid { background: rgba(241,196,15,0.12); color: #f1c40f; }

/* ===================== PROFILE PAGE ===================== */
#view-profile { max-width: 980px; }
.profile-hero { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--border); margin-bottom: 16px; }
.profile-hero-bg { position: relative; height: 150px; background-size: cover; background-position: center; background-color: #14080c; }
.profile-hero-body { background: var(--card); padding: 0 24px 22px; display: flex; align-items: flex-end; gap: 16px; }
.ph-avatar {
  width: 84px; height: 84px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #7b35ff);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 32px; color: #fff;
  border: 4px solid var(--card); margin-top: 0; flex-shrink: 0;
}
.ph-info { padding-top: 12px; flex: 1; min-width: 0; }
.ph-name { font-size: 22px; font-weight: 800; }
.ph-username { font-size: 13px; color: var(--text-muted); }
.ph-bio { color: #c5cde0; font-size: 13px; margin-top: 8px; }
.ph-socials { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.soc-link {
  font-size: 11px; font-weight: 700; color: var(--text-muted);
  border: 1px solid var(--border); border-radius: 99px; padding: 4px 10px;
}
.soc-link:hover { color: #fff; border-color: var(--text-muted); }
.profile-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.pstat-card {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px; padding: 16px;
  display: flex; align-items: flex-start; gap: 12px;
}
.pstat-label { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.pstat-value { font-size: 20px; font-weight: 800; margin-top: 6px; }
.pi-highlight { color: var(--accent); }
.pi-active { color: var(--green); }

/* ===================== EXPLORE ===================== */
.explore-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.search-wrap { min-width: 260px; flex: 1; max-width: 420px; position: relative; }
.search-wrap .search-ico {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--text-muted); pointer-events: none;
}
.search-wrap .input-basic { padding-left: 36px; }
.explore-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.pcard {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px; overflow: hidden;
  cursor: pointer; transition: border-color 0.2s, transform 0.2s;
}
.pcard:hover { border-color: rgba(255,53,53,0.4); transform: translateY(-2px); }
.pcard-cover { height: 132px; background-size: cover; background-position: center; background-color: #161018; position: relative; }
.pcard-cover .badge-paid, .pcard-cover .badge-free { position: absolute; top: 10px; right: 10px; padding: 4px 8px; border-radius: 8px; font-size: 11px; font-weight: 800; }
.pcard-body { padding: 14px; }
.pcard-game { font-size: 11px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.4px; display: inline-flex; align-items: center; gap: 5px; }
.pcard-game .ico { width: 12px; height: 12px; }
.pcard-title { font-size: 16px; font-weight: 800; margin: 4px 0 2px; }
.pcard-author { font-size: 12px; color: var(--text-muted); display: inline-flex; align-items: center; gap: 5px; }
.pcard-author .ico { width: 12px; height: 12px; color: var(--accent); }
.badge-paid, .badge-free { display: inline-flex; align-items: center; gap: 4px; }
.badge-paid .ico, .badge-free .ico { width: 11px; height: 11px; }
.comment-time { display: inline-flex; align-items: center; gap: 4px; }
.comment-time .ico { width: 11px; height: 11px; }
.pcard-meta { display: flex; gap: 14px; margin-top: 10px; color: var(--text-muted); font-size: 12px; font-weight: 600; flex-wrap: wrap; }
.pcard-meta span { display: inline-flex; align-items: center; gap: 6px; }
.pcard-meta .ico { width: 14px; height: 14px; color: var(--accent); opacity: 0.85; }
.pcard-meta .meta-views { color: #d8e4ff; font-size: 13px; }
.pcard-meta .meta-views .ico { width: 18px; height: 18px; opacity: 1; color: #7eb6ff; filter: drop-shadow(0 0 6px rgba(126,182,255,0.45)); }
.pcard-meta .meta-likes .ico { width: 15px; height: 15px; color: #ff6b81; }
.pcard-cover { display: flex; align-items: center; justify-content: center; }
.cover-fallback { width: 42px; height: 42px; color: rgba(255,53,53,0.38); filter: drop-shadow(0 0 10px rgba(255,53,53,0.2)); }
.pub-cover { display: flex; align-items: center; justify-content: center; }
.pub-cover .cover-fallback { width: 64px; height: 64px; }

.pub-hero { border-radius: 20px; overflow: hidden; border: 1px solid var(--border); margin-bottom: 16px; }
.pub-cover { height: 220px; background-size: cover; background-position: center; background-color: #12080c; }
.pub-thumbs { display: flex; gap: 8px; padding: 10px; background: var(--card); overflow-x: auto; }
.pub-thumbs img, .pub-thumbs .thumb {
  width: 88px; height: 52px; border-radius: 8px; object-fit: cover; flex-shrink: 0;
  border: 1px solid var(--border); background: #0d0f18;
}
.comment { padding: 12px 0; border-bottom: 1px solid rgba(30,34,51,0.5); }
.comment-user { font-weight: 700; font-size: 13px; }
.comment-text { color: #c5cde0; font-size: 13px; margin-top: 4px; }
.comment-time { color: var(--text-muted); font-size: 11px; }

/* ===================== LOADER GUI ===================== */
.hg-loader {
  background: linear-gradient(180deg, #14151c 0%, #0c0d14 100%);
  border: 1px solid rgba(255,53,53,0.25);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.03), 0 12px 40px rgba(0,0,0,0.4), 0 0 40px rgba(255,53,53,0.08);
}
.hg-loader-row { display: flex; align-items: center; gap: 14px; }
.hg-loader-logo {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), #7b35ff);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 13px; color: #fff;
  box-shadow: 0 0 16px rgba(255,53,53,0.35);
}
.hg-loader-copy { min-width: 148px; }
.hg-loader-name { font-weight: 800; font-size: 14px; letter-spacing: -0.2px; }
.hg-loader-made { font-size: 10px; color: var(--text-muted); font-weight: 600; }
.hg-loader-track {
  flex: 1; height: 8px; background: #090a10; border-radius: 99px; overflow: hidden;
  border: 1px solid var(--border);
}
.hg-loader-bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, #ff3535, #ff7a7a);
  box-shadow: 0 0 12px rgba(255,53,53,0.6);
  border-radius: 99px;
  transition: width 0.25s linear;
}
.hg-loader-status { margin-top: 8px; font-size: 11px; color: var(--text-muted); font-weight: 600; display: flex; justify-content: space-between; }
.hg-loader-status b { color: var(--green); }

.code-area { width: 100%; min-height: 160px; background: rgba(6,8,14,0.55); border: 1px solid var(--border); padding: 12px; border-radius: 12px; color: #fff; font-family: var(--mono); font-size: 12px; resize: vertical; outline: none; }
.code-area:focus { border-color: var(--accent); }
.code-area::placeholder, .input-basic::placeholder, .form-input::placeholder {
  color: #5c6578 !important;
  -webkit-text-fill-color: #5c6578 !important;
  opacity: 1;
}
.notice-box { display: flex; gap: 10px; background: rgba(255,53,53,0.05); border: 1px solid rgba(255,53,53,0.2); padding: 12px; border-radius: 12px; margin-bottom: 14px; color: var(--text-muted); font-size: 13px; }
.notice-box svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.chart-box { position: relative; height: 260px; width: 100%; opacity: 0; }
.chart-box.chart-in { animation: chartFadeIn .5s ease forwards; }
@keyframes chartFadeIn { from { opacity: 0; } to { opacity: 1; } }
.sim-box { background: rgba(6,8,14,0.5); border: 1px solid var(--border); padding: 14px; border-radius: 12px; font-family: var(--mono); font-size: 12px; min-height: 88px; }
.input-basic { background: rgba(6,8,14,0.5); border: 1px solid var(--border); padding: 8px 12px; border-radius: 10px; color: #fff; font-family: var(--font); outline: none; font-size: 13px; width: 100%; }
.input-basic:focus { border-color: var(--accent); }

/* ===================== PRICING ===================== */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.price-card {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px; padding: 28px; display: flex; flex-direction: column; text-align: center;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.price-card:hover {
  transform: scale(1.035);
  border-color: rgba(255,53,53,0.45);
  box-shadow: 0 18px 40px rgba(0,0,0,.35), 0 0 24px rgba(255,53,53,.18);
  z-index: 1;
}
.price-ico {
  width: 46px; height: 46px; margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,53,53,0.1); color: var(--accent); border-radius: 14px;
  box-shadow: 0 0 16px rgba(255,53,53,0.18);
}
.price-ico .ico { width: 22px; height: 22px; }
.price-card.featured .price-ico { background: rgba(255,53,53,0.18); }
.price-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(255,53,53,0.15), 0 12px 40px -10px rgba(255,53,53,0.35); }
.price-tier { font-size: 12px; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.4px; margin-bottom: 8px; }
.price-amount { font-size: 38px; font-weight: 800; margin-bottom: 16px; }
.price-features { list-style: none; text-align: left; margin-bottom: 20px; }
.price-features li { padding: 8px 0; font-size: 13px; color: var(--text-muted); border-bottom: 1px solid rgba(30,34,51,0.45); display: flex; gap: 8px; }
.price-features li > span:first-child { color: var(--green); font-weight: 800; }
.slot-packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-top: 8px; }
.slot-pack {
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px; padding: 14px; text-align: center;
}
.slot-pack b { display: block; font-size: 18px; margin: 4px 0; }

/* ===================== MODALS ===================== */
.modal-overlay { position: fixed; inset: 0; background: rgba(5,6,10,0.92); z-index: 1000; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.12s ease-out; padding: 20px; }
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal-card {
  background: linear-gradient(180deg, rgba(22,24,36,0.92), rgba(12,14,22,0.92));
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px; width: 100%; max-width: 440px; padding: 26px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.08);
}
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.modal-header h3 { font-size: 18px; font-weight: 800; }
.close-modal-btn { background: none; border: none; color: var(--text-muted); font-size: 18px; cursor: pointer; }
.form-group { margin-bottom: 14px; display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.form-input, select.form-input {
  width: 100%; background-color: rgba(8,10,18,0.55) !important; border: 1px solid var(--border);
  padding: 11px 14px; border-radius: 10px; color: #fff !important; font-size: 14px;
  outline: none; font-family: var(--font);
  -webkit-box-shadow: 0 0 0 1000px rgba(8,10,18,0.55) inset !important; -webkit-text-fill-color: #fff !important;
}
.form-input::placeholder {
  color: #5c6578 !important;
  -webkit-text-fill-color: #5c6578 !important;
  opacity: 1;
}
.form-input:focus { border-color: var(--accent); }
.password-wrapper { position: relative; display: flex; align-items: center; }
.password-wrapper .form-input { padding-right: 42px; }
.btn-eye { position: absolute; right: 10px; background: none; border: none; color: var(--text-muted); cursor: pointer; display: flex; align-items: center; padding: 0; }
.btn-eye:hover { color: #fff; }
.auth-step { display: none; }
.auth-step.active { display: block; }
.code-row { display: flex; gap: 8px; justify-content: center; margin: 8px 0 14px; }
.code-digit {
  width: 44px; height: 50px; text-align: center; font-size: 20px; font-weight: 800;
  background: #0a0c14; border: 1px solid var(--border); border-radius: 12px; color: #fff;
  outline: none; font-family: var(--font);
}
.code-digit:focus { border-color: var(--accent); }
.auth-hint { color: var(--text-muted); font-size: 12px; text-align: center; margin-bottom: 12px; }
.auth-error { color: var(--accent); font-size: 12px; margin-bottom: 8px; display: none; text-align: center; }
.photo-slots { display: flex; gap: 8px; flex-wrap: wrap; }
.photo-slot {
  width: 120px; height: 72px; border-radius: 10px; border: 1px dashed var(--border);
  background: #0a0c14; display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 12px; cursor: pointer; overflow: hidden;
}
.photo-slot img { width: 100%; height: 100%; object-fit: cover; }

.pub-status {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.pub-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: 99px; font-size: 12px; font-weight: 700;
  border: 1px solid var(--border);
}
.pub-pill .ico { width: 13px; height: 13px; }
.pub-pill.private { color: var(--text-muted); background: rgba(255,255,255,0.04); }
.pub-pill.public {
  color: #2ecc71;
  background: rgba(46,204,113,0.1);
  border-color: rgba(46,204,113,0.28);
}
.pub-status-hint { color: var(--text-muted); font-size: 13px; }

.claim-steps {
  color: var(--text-muted); font-size: 13px; line-height: 1.7;
  padding-left: 18px; margin: 0;
}
.claim-steps li { margin: 4px 0; }

.empty-state { text-align: center; padding: 40px 16px; color: var(--text-muted); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty-state h3 { color: #fff; margin-bottom: 6px; }
.empty-state .empty-ico { width: 36px; height: 36px; color: var(--accent); opacity: 0.55; margin-bottom: 4px; }

.ico-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico {
  width: 16px; height: 16px;
  display: inline-block; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  vertical-align: -0.15em;
}
.btn-primary .ico, .btn-secondary .ico, .btn-signin .ico, .btn-signup .ico, .btn-ghost .ico { width: 15px; height: 15px; }
.btn-table .ico { width: 12px; height: 12px; }
.slot-chip .ico { width: 13px; height: 13px; color: var(--accent); }
.soc-link { display: inline-flex; align-items: center; gap: 6px; }
.soc-link .ico { width: 12px; height: 12px; color: var(--accent); }
.comment-user { display: flex; align-items: center; gap: 6px; }
.comment-user .ico { width: 13px; height: 13px; color: var(--accent); }
.doc-steps { display: flex; flex-direction: column; gap: 14px; }
.doc-step { display: flex; gap: 14px; align-items: flex-start; }
.doc-step p { margin: 0; }
.doc-step-ico {
  width: 36px; height: 36px; border-radius: 11px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,53,53,0.1); color: var(--accent);
}
.doc-step-ico .ico { width: 18px; height: 18px; }
.claim-steps { list-style: none; padding-left: 0; }
.claim-steps li {
  display: flex; gap: 10px; align-items: flex-start; margin: 8px 0;
}
.step-num {
  width: 22px; height: 22px; border-radius: 7px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,53,53,0.12); color: var(--accent);
  font-size: 11px; font-weight: 800;
}
.dash-title { display: flex; align-items: center; gap: 10px; }
.hero-tag .ico { width: 14px; height: 14px; }
.close-modal-btn { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; }
.close-modal-btn .ico { width: 16px; height: 16px; }
.close-modal-btn:hover { background: rgba(255,255,255,0.06); color: #fff; }
.form-group label { display: inline-flex; align-items: center; gap: 6px; }
.form-group label .ico { width: 13px; height: 13px; color: var(--accent); opacity: 0.8; }
.btn-secondary, .btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn-table { display: inline-flex; align-items: center; gap: 5px; }
.cselect-opt { display: flex !important; align-items: center; gap: 8px; }
.slot-pack { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.slot-pack-ico {
  width: 34px; height: 34px; margin-bottom: 6px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,53,53,0.1); color: var(--accent); border-radius: 10px;
}
.slot-pack-ico .ico { width: 16px; height: 16px; }
.price-features .ico { width: 14px; height: 14px; color: var(--green); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1100px) {
  .stats-row, .profile-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .dash-layout { flex-direction: column; }
  .dash-sidebar { width: 100%; position: static; flex-direction: row; overflow-x: auto; }
  .dash-nav-link { white-space: nowrap; }
  .nav-burger { display: inline-flex; }
  .nav-menu {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #06070c; border-bottom: 1px solid rgba(255,255,255,.08);
    padding: 8px 12px 14px; z-index: 30;
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu .nav-link { width: 100%; }
  .hero-heading { font-size: 32px; }
  .pub-grid { grid-template-columns: 1fr; }
  .pub-title-row { flex-direction: column; }
  .header-inner { position: relative; gap: 8px; }
  .header-right { gap: 6px; }
  .wallet-chip { padding: 6px 8px; }
  .cash-tiles { grid-template-columns: 1fr; }
  .crop-card { max-width: calc(100vw - 16px); margin: 8px auto; }
  .crop-actions { flex-direction: column; }
  .crop-actions .btn-primary, .crop-actions .btn-secondary { width: 100%; }
  .pay-sheet { max-width: calc(100vw - 16px); }
  .notif-drop { width: min(320px, calc(100vw - 16px)); right: -4px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .ph-name-row { flex-wrap: wrap; }
}
@media (max-width: 768px) {
  .site-top { padding: 0; }
  .user-avatar-name { display: none; }
  .profile-stats-grid, .stats-row { grid-template-columns: 1fr; }
  .hg-loader-row { flex-wrap: wrap; }
  .dash-head { flex-direction: column; align-items: flex-start; }
  .wal-balance { font-size: 28px; }
}

.wallet-chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 999px; padding: 6px 12px 6px 10px;
  color: #e8eaf2; font-weight: 750; font-size: 12.5px; font-family: var(--font);
  cursor: pointer; letter-spacing: 0.01em;
  box-shadow: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.wallet-chip .ico { width: 16px; height: 16px; opacity: 1; color: #ff6b6b; }
.wallet-chip:hover { border-color: rgba(255,53,53,0.62); box-shadow: 0 0 22px rgba(255,53,53,0.34); }
.wal-bal-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-bottom: 10px; color: var(--text-muted); font-weight: 600;
}
.wal-bal-row strong { font-size: 28px; color: #fff; letter-spacing: -0.03em; }
.wal-hint { color: var(--text-muted); font-size: 13px; margin: 0 0 14px; }
.wal-packs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wal-packs .btn-secondary { justify-content: center; font-weight: 800; }

.btn-like { position: relative; overflow: visible; }
.like-stack {
  position: relative; width: 18px; height: 18px; flex-shrink: 0;
}
.like-stack .ico {
  position: absolute; inset: 0; width: 18px; height: 18px;
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.like-stack .like-outline { color: #ff6b81; opacity: 1; }
.like-stack .like-fill { color: #ff3555; opacity: 0; transform: scale(0.55); filter: drop-shadow(0 0 0 transparent); }
.btn-like.is-liked .like-stack .like-outline { opacity: 0; transform: scale(0.7); }
.btn-like.is-liked .like-stack .like-fill {
  opacity: 1; transform: scale(1);
  filter: drop-shadow(0 0 8px rgba(255,53,85,0.75));
}
.btn-like.is-liked { border-color: rgba(255,53,85,0.5); background: rgba(255,53,85,0.12); color: #ffd6dc; }
.btn-like.like-pop .like-fill { animation: likePop 0.42s ease; }
@keyframes likePop {
  0% { transform: scale(0.4); filter: drop-shadow(0 0 0 transparent); }
  55% { transform: scale(1.28); filter: drop-shadow(0 0 12px rgba(255,53,85,0.95)); }
  100% { transform: scale(1); filter: drop-shadow(0 0 8px rgba(255,53,85,0.75)); }
}


.plan-rows { display: flex; flex-direction: column; gap: 8px; }
.plan-row {
  display: grid; grid-template-columns: 1fr 1fr auto auto;
  gap: 8px; align-items: end;
  padding: 10px; border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
}
.plan-row label { display: flex; flex-direction: column; gap: 4px; font-size: 11px; font-weight: 700; color: var(--text-muted); }
.plan-row .form-input { margin: 0; }
.pub-buy-col { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.buy-plans { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.buy-plan {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: 12px; padding: 8px 12px; color: #fff; cursor: pointer;
  font-family: var(--font); min-width: 92px;
}
.buy-plan b { font-size: 13px; }
.buy-plan span { font-size: 12px; color: var(--accent); font-weight: 800; }
.buy-plan.on {
  border-color: rgba(255,53,53,0.55);
  background: rgba(255,53,53,0.14);
  box-shadow: 0 0 16px rgba(255,53,53,0.2);
}
.access-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 99px; font-size: 12px; font-weight: 800;
  color: #2ecc71; background: rgba(46,204,113,0.12);
  border: 1px solid rgba(46,204,113,0.3);
}
.comment-count {
  margin-left: 8px; padding: 1px 8px; border-radius: 99px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  font-size: 12px; font-weight: 800; color: var(--text-muted);
}
.pcard-meta .meta-comments .ico { width: 14px; height: 14px; }
@media (max-width: 768px) {
  .plan-row { grid-template-columns: 1fr 1fr; }
  .pub-buy-col { align-items: stretch; }
}

.pcard-meta .ico, .pcard-meta .meta-likes .ico, .pcard-meta .meta-views .ico, .pcard-meta .meta-stars .ico {
  width: 16px; height: 16px; opacity: 1;
  color: var(--accent);
  filter: drop-shadow(0 0 6px rgba(255,53,53,0.55));
}
.pcard-meta .meta-views .ico { color: #ff6b6b; filter: drop-shadow(0 0 7px rgba(255,80,80,0.6)); }
.pcard-meta .meta-stars { color: #ffd36b; }
.pcard-meta .meta-stars .ico { color: #ffd36b; filter: drop-shadow(0 0 7px rgba(255,200,80,0.7)); }
.pcard-price {
  margin-top: 12px; font-size: 22px; font-weight: 800; letter-spacing: -0.03em;
  color: #fff; text-shadow: 0 0 16px rgba(255,53,53,0.35);
}
.pcard-price.free { font-size: 16px; color: #2ecc71; text-shadow: none; }
.badge-paid { background: rgba(255,53,53,0.16); color: #fff; font-size: 13px; padding: 6px 10px; }

.pub-layout { display: grid; grid-template-columns: 1fr 300px; gap: 22px; align-items: start; }
.pub-desc { color: var(--text-muted); margin: 12px 0 0; line-height: 1.65; }
.buy-sheet {
  position: relative; top: auto;
  background: var(--glass); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}
.buy-price-lg { font-size: 34px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.buy-price-sub { color: var(--text-muted); font-size: 12px; font-weight: 700; margin: 0; }
.buy-plans { display: flex; flex-direction: column; gap: 8px; }
.buy-plan {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; min-width: 0; text-align: left;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  border-radius: 14px; padding: 12px 14px; color: #fff; cursor: pointer;
  font-family: var(--font);
}
.buy-plan b { font-size: 13px; }
.buy-plan span { font-size: 14px; font-weight: 800; color: #fff; }
.buy-plan.on {
  border-color: rgba(255,53,53,0.6);
  background: linear-gradient(180deg, rgba(255,53,53,0.16), rgba(255,255,255,0.03));
  box-shadow: 0 0 18px rgba(255,53,53,0.2);
}
.buy-cta { width: 100%; justify-content: center; height: 44px; }
.review-form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; align-items: center; }
.review-form .input-basic { flex: 1; min-width: 180px; }
.star-pick { display: inline-flex; gap: 4px; }
.star-pick button {
  background: none; border: 0; padding: 2px; cursor: pointer; color: #3a4154;
}
.star-pick button .ico { width: 22px; height: 22px; opacity: 1; transition: transform 0.15s, color 0.15s, filter 0.15s; }
.star-pick button.on { color: #ffd36b; }
.star-pick button.on .ico { filter: drop-shadow(0 0 8px rgba(255,200,80,0.8)); transform: scale(1.08); animation: starPop 0.35s ease; }
@keyframes starPop { 0% { transform: scale(0.6); } 60% { transform: scale(1.2); } 100% { transform: scale(1.08); } }
.rev-card { padding: 12px 0; border-bottom: 1px solid var(--border); }
.rev-top { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.rev-stars { display: inline-flex; gap: 2px; color: #ffd36b; }
.rev-stars .ico { width: 13px; height: 13px; opacity: 1; }
.avg-stars { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: #ffd36b; }
.hwid-check-msg { margin-top: 8px; font-size: 13px; font-weight: 700; }
.hwid-check-msg.ok { color: #2ecc71; }
.hwid-check-msg.bad { color: var(--accent); }

.notif-wrap { position: relative; }
.notif-btn {
  width: 38px; height: 38px; border-radius: 12px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  color: #fff; cursor: pointer; display: grid; place-items: center; position: relative;
}
.notif-btn .ico { width: 16px; height: 16px; opacity: 1; }
.notif-dot {
  position: absolute; top: 7px; right: 8px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px var(--accent);
}
.notif-drop {
  display: none; position: absolute; right: 0; top: 46px; width: 320px; max-height: 380px; overflow: hidden;
  background: #14161f; border: 1px solid var(--border); border-radius: 14px; z-index: 40;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.notif-wrap.open .notif-drop { display: block; }
.notif-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; font-weight: 800; font-size: 12px; }
.notif-list {
  padding: 0 8px 8px; max-height: 320px; overflow-y: auto; overflow-x: hidden;
  scrollbar-width: thin; scrollbar-color: rgba(255,53,53,.55) transparent;
}
.notif-list::-webkit-scrollbar { width: 4px; }
.notif-list::-webkit-scrollbar-thumb { background: rgba(255,53,53,.55); border-radius: 99px; }
.notif-list::-webkit-scrollbar-track { background: transparent; }
.notif-item { padding: 10px; border-radius: 10px; margin-bottom: 6px; background: rgba(255,255,255,0.03); }
.notif-item b { display: block; font-size: 13px; }
.notif-item span { color: var(--text-muted); font-size: 12px; }
.notif-item.unread { border: 1px solid rgba(255,53,53,0.25); }

.wal-hero {
  display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; flex-wrap: wrap;
  padding: 8px 0 6px;
}
.wal-kicker { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.wal-balance { font-size: 48px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.wal-hero-actions { display: flex; gap: 8px; }
.wal-ops { display: flex; flex-direction: column; gap: 6px; }
.wal-op {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,0.03);
}
.wal-op .amt { font-weight: 800; font-variant-numeric: tabular-nums; }
.wal-op .amt.plus, .val.plus { color: #2ecc71; }
.wal-op .amt.minus, .val.minus { color: #ff4d6d; }
.stat-ico.plus { color: #2ecc71; }
.stat-ico.minus { color: #ff4d6d; }
.wallet-chip.flash-up { box-shadow: 0 0 22px rgba(46,204,113,0.45); border-color: rgba(46,204,113,0.6); }
.wallet-chip.flash-down { box-shadow: 0 0 22px rgba(255,53,53,0.5); border-color: rgba(255,53,53,0.7); }
.money-toast {
  position: fixed; right: 18px; bottom: 18px; z-index: 80;
  font-weight: 800; font-size: 18px; pointer-events: none; opacity: 0;
  transform: translateY(8px); transition: opacity 0.25s, transform 0.25s;
}
.money-toast.show { opacity: 1; transform: translateY(0); }
.money-toast.plus { color: #2ecc71; text-shadow: 0 0 16px rgba(46,204,113,0.6); }
.money-toast.minus { color: #ff4d6d; text-shadow: 0 0 16px rgba(255,53,53,0.6); }

.docs-shell { max-width: 760px; margin: 0 auto; }
.doc-steps { display: flex; flex-direction: column; gap: 14px; }
.doc-step { display: flex; gap: 14px; align-items: flex-start; color: var(--text-muted); line-height: 1.7; font-size: 14px; }
.doc-step h4 { color: #fff; margin: 0 0 4px; font-size: 15px; }
.doc-step p { margin: 0; }
.doc-step-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,53,53,0.1); color: var(--accent); flex-shrink: 0; }

.chart-box { height: 220px; position: relative; }

@media (max-width: 900px) {
  .pub-layout { grid-template-columns: 1fr; }
  .buy-sheet { position: static; }
}

#view-dashboard, #view-wallet { max-width: none; padding: 10px 12px 36px; }
.dash-wide {
  min-height: calc(100vh - 96px);
  padding: 16px 16px 20px;
  border-radius: 22px;
}
.dash-wide .dash-layout { min-height: calc(100vh - 180px); }
.dash-wide .dash-sidebar { width: 216px; }
.dash-wide .dash-content { min-width: 0; flex: 1; }
.dash-wide .dash-head { margin-bottom: 14px; }

.star {
  position: relative; display: inline-block; width: 15px; height: 15px; vertical-align: middle;
}
.star .ico { width: 15px; height: 15px; position: absolute; inset: 0; color: rgba(255,211,107,0.22); }
.star .star-on { color: #ffd36b; filter: drop-shadow(0 0 5px rgba(255,200,80,0.65)); }
.star-half .star-clip {
  position: absolute; inset: 0 auto 0 0; width: 50%; overflow: hidden;
}
.star-half .star-clip .ico { color: #ffd36b; filter: drop-shadow(0 0 5px rgba(255,200,80,0.65)); }
.meta-stars { display: inline-flex; align-items: center; gap: 5px; color: #ffd36b; font-weight: 800; }
.meta-stars .star-num { color: #ffe9a8; font-size: 13px; }

.plan-row {
  display: grid; grid-template-columns: 140px 1fr 120px auto;
  gap: 10px; align-items: center;
  padding: 12px 12px; border-radius: 14px;
}
.plan-days-box {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: 12px; padding: 4px 8px 4px 10px; height: 42px;
}
.plan-days-box.is-life { border-color: rgba(255,53,53,0.35); background: rgba(255,53,53,0.08); }
.plan-days-box .plan-days { border: 0; background: transparent; width: 64px; padding: 0; height: auto; }
.plan-inf {
  display: none; align-items: center; gap: 4px; font-weight: 800; font-size: 13px; color: #fff;
}
.plan-days-box.is-life .plan-days { display: none; }
.plan-days-box.is-life .plan-inf { display: inline-flex; }
.plan-inf .ico { width: 18px; height: 18px; opacity: 1; color: var(--accent); }
.plan-life-tog.on {
  border-color: rgba(255,53,53,0.5); color: #fff;
  background: rgba(255,53,53,0.14);
}
.plan-row .plan-price { height: 42px; }

.notif-drop {
  width: 360px; max-height: 440px; overflow: hidden;
  display: none; flex-direction: column;
}
.notif-wrap.open .notif-drop { display: flex; }
.notif-list { overflow-y: auto; flex: 1; padding: 0 8px 8px; max-height: 360px; }
.notif-item { width: 100%; text-align: left; cursor: pointer; border: 1px solid transparent; color: inherit; font-family: var(--font); }
.notif-item:hover { background: rgba(255,255,255,0.06); }
.notif-user { color: var(--accent); font-weight: 800; cursor: pointer; }
.notif-user:hover { text-decoration: underline; }

.btn-flash-ok {
  background: #2ecc71 !important; border-color: #2ecc71 !important; color: #fff !important;
  box-shadow: 0 0 22px rgba(46,204,113,0.45);
  transition: background 0.25s, box-shadow 0.25s, transform 0.25s;
  transform: scale(1.03);
}
.btn-primary .btn-label, .btn-secondary .btn-label { transition: opacity 0.18s; }

.wal-ops { max-height: calc(100vh - 260px); overflow-y: auto; }
.wal-buy { cursor: pointer; }
.wal-buy:hover { background: rgba(255,255,255,0.06); }

.meta-stars .star .ico {
  width: 15px; height: 15px; opacity: 1;
  color: rgba(255, 211, 107, 0.28);
  filter: none;
}
.meta-stars .star .star-on,
.meta-stars .star-half .star-clip .ico {
  color: #ffd36b;
  filter: drop-shadow(0 0 5px rgba(255, 200, 80, 0.65));
}
.notif-item {
  display: block;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255,255,255,0.03);
}
#wal-overview .stats-row { grid-template-columns: 1fr 1fr; max-width: 560px; }
@media (max-width: 720px) {
  .plan-row { grid-template-columns: 1fr auto; }
  .plan-row .plan-price { grid-column: 1 / -1; }
  .dash-wide { padding: 12px; border-radius: 16px; }
}

.wal-pane { display: none !important; }
.wal-pane.active { display: block !important; animation: paneFade 0.12s ease-out; }
#pubCommentCount, .comment-count { display: none !important; }
.notif-drop { z-index: 90; pointer-events: auto; }
.notif-item { pointer-events: auto; }
.wal-packs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.wal-packs .btn-secondary { min-height: 48px; font-size: 16px; }

/* ===== Public product page ===== */
#view-public { max-width: 1240px; padding-top: 18px; }
.pub-page { display: flex; flex-direction: column; gap: 16px; }
.pub-back { align-self: flex-start; }
.pub-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}
.pub-media {
  border-radius: 22px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: #12080c;
  box-shadow: 0 20px 50px rgba(0,0,0,0.28);
}
.pub-cover { height: 280px; background-size: cover; background-position: center; background-color: #12080c; }
.pub-heading { margin-top: 18px; }
.pub-kicker {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pub-kicker .ico { width: 14px; height: 14px; opacity: 1; color: var(--accent); }
.pub-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pub-title {
  margin: 6px 0 0; font-size: 32px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.15;
}
.pub-title-actions { display: flex; gap: 8px; flex-shrink: 0; }
.pub-subline {
  display: flex; align-items: center; gap: 10px; margin-top: 10px; color: var(--text-muted); font-size: 13px;
}
.pub-author {
  background: none; border: 0; color: #fff; font-weight: 700; cursor: pointer;
  font-family: var(--font); padding: 0; display: inline-flex; align-items: center; gap: 6px;
}
.pub-author:hover { color: var(--accent); }
.pub-dot { width: 4px; height: 4px; border-radius: 50%; background: #5a6278; }
.pub-updated { color: var(--text-muted); font-weight: 600; }
.pub-desc { font-size: 15px; line-height: 1.7; color: #c5cad8; margin: 16px 0 0; white-space: pre-wrap; }
.pub-edit { margin-top: 16px; }

.buy-card {
  position: relative; top: auto;
  padding: 22px;
  border-radius: 24px;
  display: flex; flex-direction: column; gap: 12px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(255,53,53,0.16), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,53,53,0.28);
  box-shadow: 0 0 40px rgba(255,53,53,0.12), 0 24px 50px rgba(0,0,0,0.35);
}
.buy-kicker {
  font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); text-shadow: 0 0 10px rgba(255,53,53,0.45);
}
.buy-card .buy-price-lg {
  font-size: 40px; font-weight: 800; letter-spacing: -0.05em;
  text-shadow: 0 0 18px rgba(255,255,255,0.12);
}
.buy-card .buy-plans { display: flex; flex-direction: column; gap: 8px; }
.buy-plan {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; min-height: 52px; padding: 12px 14px;
  border-radius: 14px; cursor: pointer; text-align: left;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff; font-family: var(--font);
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.buy-plan b { font-size: 14px; }
.buy-plan span { color: #ffe0e0; font-weight: 800; }
.buy-plan:hover { border-color: rgba(255,53,53,0.4); }
.buy-plan.on {
  border-color: var(--accent);
  background: rgba(255,53,53,0.14);
  box-shadow: 0 0 18px rgba(255,53,53,0.22), inset 0 0 0 1px rgba(255,53,53,0.25);
}
.buy-cta {
  width: 100%; justify-content: center; height: 52px; font-size: 16px; font-weight: 800;
  box-shadow: 0 0 28px rgba(255,53,53,0.45);
}
.buy-note { color: var(--text-muted); font-size: 12px; margin: 0; line-height: 1.45; }
.buy-owner-lead { color: #d0d4e0; font-size: 14px; margin: 0; line-height: 1.5; }
.access-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 999px; font-weight: 800; font-size: 13px;
  background: rgba(46,204,113,0.12); border: 1px solid rgba(46,204,113,0.35); color: #7dffa8;
}
#pubOwnerPane, #pubBuyPane, #pubOwnedPane { display: flex; flex-direction: column; gap: 12px; }

/* ===== Analytics neon ===== */
.an-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 16px; }
.an-head .ptitle { margin: 0; }
.an-controls { display: flex; gap: 8px; flex-wrap: wrap; }
.seg {
  display: inline-flex; padding: 3px; border-radius: 12px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
}
.seg-btn {
  background: none; border: 0; color: var(--text-muted);
  padding: 8px 12px; border-radius: 10px; cursor: pointer;
  font-family: var(--font); font-weight: 800; font-size: 12px;
}
.seg-btn.on {
  color: #fff; background: rgba(255,53,53,0.16);
  box-shadow: 0 0 14px rgba(255,53,53,0.25);
}
.an-stats { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.an-panel {
  position: relative; overflow: hidden;
  border-color: rgba(255,53,53,0.22);
  box-shadow: 0 0 40px rgba(255,53,53,0.08);
}
.an-panel::before {
  content: ''; position: absolute; inset: auto 10% -40% 10%; height: 90px;
  background: radial-gradient(closest-side, rgba(255,53,53,0.22), transparent);
  pointer-events: none;
}
.an-togs { display: flex; gap: 8px; margin-bottom: 12px; }
.an-tog {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  color: var(--text-muted); border-radius: 999px; padding: 6px 12px;
  font-family: var(--font); font-weight: 700; font-size: 12px; cursor: pointer;
}
.an-tog.on { color: #fff; border-color: rgba(255,255,255,0.18); }
.an-tog .dot { width: 8px; height: 8px; border-radius: 50%; }
.an-tog .dot.ok { background: #2ecc71; box-shadow: 0 0 8px #2ecc71; }
.an-tog .dot.deny { background: #ff3535; box-shadow: 0 0 8px #ff3535; }
.chart-neon { height: 340px; }
.chart-neon canvas { filter: drop-shadow(0 0 8px rgba(255,53,53,0.25)); }

@media (max-width: 960px) {
  .pub-grid { grid-template-columns: 1fr; }
  .buy-card { position: static; }
  .an-stats { grid-template-columns: repeat(3, 1fr); }
  .pub-title { font-size: 26px; }
  .pub-cover { height: 200px; }
}

/* sticky header that does not scroll away */
.site-top {
  pointer-events: auto;
}
.site-top .header-inner {
  pointer-events: auto;
  height: 58px;
}
.site-header, .site-top .site-header {
  box-shadow: none !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.header-spacer { display: none; height: 0; }

/* hide browser number spinners + ugly autofill */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; appearance: textfield; }
input, textarea { autocomplete: off; }
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff;
  caret-color: #fff;
  transition: background-color 9999s ease-out 0s;
  box-shadow: 0 0 0 1000px #14161f inset;
}

/* dashboard rail */
.dash-sidebar, .dash-wide .dash-sidebar {
  width: 232px;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 4px 12px 4px 0;
  gap: 2px;
  border-right: 1px solid rgba(255,255,255,0.07) !important;
}
.dash-nav-link {
  position: relative;
  padding: 13px 16px;
  font-size: 14px;
  border-radius: 12px;
  color: #c5cad8;
}
.dash-nav-link .ico { width: 18px; height: 18px; }
.dash-nav-link:hover { color: #fff; background: rgba(255,255,255,0.04); }
.dash-nav-link.active {
  color: #fff;
  background: rgba(255,53,53,0.12);
  box-shadow: none;
}
.dash-nav-link.active::before {
  content: '';
  position: absolute;
  left: -10px; top: 12px; bottom: 12px; width: 3px;
  border-radius: 4px;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
}
.dash-nav-link.active .ico { color: var(--accent); opacity: 1; filter: drop-shadow(0 0 8px rgba(255,53,53,0.7)); }

.db-table td, .db-table th { color: #fff; }
.db-table td { font-size: 13px; }
.hwid-cell { font-family: var(--mono); color: #fff !important; font-weight: 600; letter-spacing: 0.02em; }
.st-online { color: #7dffa8; text-shadow: 0 0 10px rgba(46,204,113,0.55); font-weight: 800; }
.st-kicked { color: #ff6b6b; font-weight: 800; }
.st-off { color: #9aa3b8; }
.days-mini {
  width: 64px; height: 32px; border-radius: 8px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  color: #fff; padding: 0 8px; font-family: var(--font); font-weight: 700;
}
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

.loader-theme { margin: 14px 0 16px; }
.loader-theme > label { display: block; font-size: 12px; font-weight: 800; color: var(--text-muted); margin: 0 0 8px; }
.preset-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.preset-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 12px 8px; border-radius: 14px; cursor: pointer;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  color: #fff; font-family: var(--font);
}
.preset-card b { font-size: 12px; }
.preset-card.on {
  border-color: var(--accent);
  background: rgba(255,53,53,0.12);
  box-shadow: 0 0 18px rgba(255,53,53,0.22);
}
.preset-ico {
  width: 42px; height: 28px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: #12141c; position: relative;
}
.preset-ico.ring::after { content:''; position:absolute; inset:6px 12px; border-radius: 6px; border: 2px solid var(--accent); }
.preset-ico.bar::after { content:''; position:absolute; left:6px; right:6px; top:10px; height:8px; border-radius: 99px; background: var(--accent); }
.preset-ico.card::after { content:''; position:absolute; inset:5px 7px; border-radius: 5px; background: linear-gradient(90deg, var(--accent), transparent); }
.preset-ico.orb::after { content:''; position:absolute; left:50%; top:50%; width:14px; height:14px; margin:-7px 0 0 -7px; border-radius:50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.color-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.color-row input[type=color] {
  width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 10px;
  padding: 0; background: none; cursor: pointer;
}
.grad-preview {
  height: 36px; flex: 1; min-width: 80px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: linear-gradient(90deg, #ff3535, #b428a0);
  box-shadow: 0 0 16px rgba(255,53,53,0.25);
}
.swatches { display: flex; gap: 6px; }
.swatch {
  width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer; padding: 0;
}
.swatch:hover { transform: scale(1.12); }

.chart-neon, .chart-box { height: 340px; }
.chart-box {
  background:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px) 0 0 / 100% 28px,
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px) 0 0 / 40px 100%;
  border-radius: 14px;
}

@media (max-width: 960px) {
  .header-spacer { display: none; }
  .preset-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-sidebar, .dash-wide .dash-sidebar {
    width: 100%; border-right: none !important;
    flex-direction: row; overflow-x: auto;
  }
  .dash-nav-link.active::before { display: none; }
}

#hgHeader {
  position: relative !important;
  top: auto !important; left: auto !important; right: auto !important;
  width: 100% !important;
  z-index: 5 !important;
  transform: none !important;
  filter: none !important;
  pointer-events: auto !important;
  padding: 0 !important;
  background: #0c0e16 !important;
}
.header-spacer { display: none !important; height: 0 !important; }

.soc-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px; border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff; text-decoration: none; font-weight: 800; font-size: 12px;
  font-family: var(--font);
}
.soc-btn .ico { width: 14px; height: 14px; opacity: 1; color: var(--accent); }
.soc-btn:hover {
  border-color: rgba(255,53,53,0.45);
  box-shadow: 0 0 16px rgba(255,53,53,0.2);
  color: #fff;
}

.db-table { border-collapse: collapse; }
.db-table th, .db-table td {
  border-right: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  color: #fff;
}
.db-table th:last-child, .db-table td:last-child { border-right: 0; }
.db-table tr:hover td { background: rgba(255,255,255,0.03); }

.preset-grid-2 { grid-template-columns: 1fr 1fr; max-width: 420px; }
.hg-palette {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px; padding: 12px; margin-top: 8px;
}
.pal-slots { display: flex; gap: 8px; margin-bottom: 10px; }
.pal-slot {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 12px; cursor: pointer;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  color: #fff; font-family: var(--font); font-weight: 800; font-size: 12px;
}
.pal-slot i {
  width: 16px; height: 16px; border-radius: 50%; display: block;
  box-shadow: 0 0 10px currentColor; background: #ff3535;
}
.pal-slot.on { border-color: var(--accent); box-shadow: 0 0 14px rgba(255,53,53,0.25); }
.paint-picker {
  display: flex; gap: 10px; align-items: stretch;
  user-select: none; -webkit-user-select: none; margin: 4px 0 10px;
  min-height: 180px;
}
.sv-box {
  position: relative; flex: 1 1 auto; height: 180px; min-height: 180px;
  border-radius: 10px; overflow: hidden; cursor: crosshair;
  touch-action: none; -webkit-user-drag: none;
  border: 1px solid rgba(255,255,255,0.16);
  background: #ff0000;
}
.sv-white, .sv-black {
  position: absolute; left: 0; right: 0; top: 0; bottom: 0;
  pointer-events: none !important;
}
.sv-white { background: linear-gradient(to right, #fff, rgba(255,255,255,0)); }
.sv-black { background: linear-gradient(to top, #000, rgba(0,0,0,0)); }
.sv-cursor {
  position: absolute; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid #fff; box-shadow: 0 0 0 1px #000, 0 2px 8px rgba(0,0,0,.5);
  transform: translate(-50%, -50%); pointer-events: none !important; z-index: 2;
  left: 100%; top: 0;
}
.hue-bar {
  position: relative; width: 28px; min-width: 28px; flex-shrink: 0;
  min-height: 180px; border-radius: 8px;
  cursor: ns-resize; touch-action: none;
  border: 1px solid rgba(255,255,255,0.16);
  background: linear-gradient(to bottom,
    #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000);
}
.hue-cursor {
  position: absolute; left: -3px; right: -3px; height: 8px; top: 0;
  border-radius: 3px; background: #fff; border: 1.5px solid #111;
  box-shadow: 0 1px 6px rgba(0,0,0,.45);
  transform: translateY(-50%); pointer-events: none !important;
}
.pal-hex {
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  letter-spacing: 0.06em; color: #d0d4e0;
  padding: 6px 10px; border-radius: 8px;
  background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.08);
  width: max-content;
}
.grad-preview {
  height: 38px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: linear-gradient(90deg, #ff3535, #b428a0);
  box-shadow: 0 0 18px rgba(255,53,53,0.25);
}


/* site header = top of the page, not a floating overlay */
html, body { height: 100% !important; height: 100dvh !important; overflow: hidden !important; }
body { display: flex !important; flex-direction: column !important; }
.site-top, #hgHeader {
  position: relative !important;
  top: auto !important; left: auto !important; right: auto !important;
  inset: auto !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  z-index: 5 !important;
  transform: none !important;
  filter: none !important;
  pointer-events: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  background: #0c0e16 !important;
  border-bottom: 1px solid rgba(255,255,255,0.10) !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
.site-main {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  position: relative !important;
  z-index: 1 !important;
}
.site-header {
  max-width: 1400px !important;
  margin: 0 auto !important;
  height: 58px !important;
  border-radius: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

#svCanvas, #hueCanvas { image-rendering: auto; }


/* ===== studio + trust ===== */
.trust-band { margin: 64px 0 8px; }
.trust-kicker, .studio-kicker, .pub-preview-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
  background: rgba(255,53,53,.1); border: 1px solid rgba(255,53,53,.28);
  padding: 6px 12px; border-radius: 999px;
}
.studio-kicker, .pub-preview-kicker { color: var(--text-muted); background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
.hw-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.hw-step {
  background: var(--glass);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 18px; padding: 22px;
  min-height: 0;
  box-shadow: none;
  transition: border-color .2s;
}
.hw-step:hover { border-color: rgba(255,53,53,.35); }
.hw-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.hw-n {
  font-size: 11px; font-weight: 800; letter-spacing: .14em; line-height: 1;
  text-transform: uppercase; color: var(--accent);
  font-family: var(--font);
}
.hw-ico {
  width: 40px; height: 40px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,53,53,.1); color: var(--accent);
}
.hw-ico .ico { width: 16px; height: 16px; }
.hw-step h3 { font-size: 15px; margin: 0 0 6px; color: #fff; font-weight: 800; }
.hw-step p { font-size: 13px; color: var(--text-muted); margin: 0; line-height: 1.55; }
.faq-band {
  margin: 52px 0 12px; max-width: 820px;
  background: rgba(18,20,32,.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px; padding: 22px 24px 10px;
}
.faq-title { font-size: 22px; margin: 0 0 8px; color: #fff; font-weight: 800; }
.faq-item { border-top: 1px solid rgba(255,255,255,.08); }
.faq-item:first-child { border-top: none; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: none; border: 0; color: #fff; font: inherit; font-weight: 700; font-size: 15px;
  text-align: left; padding: 15px 0; cursor: pointer; border-radius: 0; box-shadow: none;
}
.faq-q:hover { color: #ffb3b3; }
.faq-plus { width: 18px; height: 18px; position: relative; flex-shrink: 0; opacity: .6; }
.faq-plus::before, .faq-plus::after { content: ''; position: absolute; background: #fff; border-radius: 1px; }
.faq-plus::before { left: 0; right: 0; top: 8px; height: 2px; }
.faq-plus::after { top: 0; bottom: 0; left: 8px; width: 2px; }
.faq-item.open .faq-plus::after { opacity: 0; }
.faq-a { display: none; padding: 0 8px 14px 0; }
.faq-item.open .faq-a { display: block; }
.faq-a p { color: var(--text-muted); font-size: 14px; line-height: 1.55; margin: 0; max-width: 62ch; }
.site-footer {
  margin-top: 12px; padding: 16px 28px 10px;
  border-top: 1px solid rgba(255,255,255,.1);
  background: #0c0e16;
}
#view-dashboard.active ~ .site-footer,
#view-wallet.active ~ .site-footer,
#view-profile.active ~ .site-footer,
#view-public.active ~ .site-footer { display: none; }
.ft-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; max-width: 1400px; margin: 0 auto 22px; }
.ft-brand p { color: var(--text-muted); margin: 8px 0 12px; font-size: 13px; }
.ft-status { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: #9dffc9; }
.ft-status.down { color: #ff8a8a; }
.site-footer h4 { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 10px; }
.ft-link {
  display: block; background: none; border: 0; color: #d0d4e0; font: inherit; font-size: 13px;
  padding: 5px 0; cursor: pointer; text-align: left;
}
.ft-link:hover { color: #fff; }
.ft-bar {
  max-width: 1400px; margin: 0 auto; padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.06);
  display: flex; justify-content: space-between; gap: 12px;
  color: var(--text-muted); font-size: 12px;
}
.cmd-hint {
  font-family: var(--mono); font-size: 11px; padding: 3px 8px; border-radius: 6px;
  border: 1px solid rgba(255,255,255,.1); color: #c8cddb;
}
.dash-studio {
  margin-top: 8px; padding: 28px 26px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 22px;
  background: rgba(16,18,28,.4);
}
.studio-h { font-size: 22px; font-weight: 750; margin: 0 0 22px; max-width: 34ch; line-height: 1.3; }
.studio-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 22px; }
.studio-step {
  padding: 16px; border-radius: 14px; background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
}
.studio-step span { display: block; font-family: var(--mono); font-size: 11px; color: var(--accent); margin-bottom: 8px; }
.studio-step b { display: block; margin-bottom: 6px; }
.studio-step p { margin: 0; color: var(--text-muted); font-size: 13px; }
.pub-studio { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 18px; align-items: start; }
.pub-preview-col { position: sticky; top: 12px; }
.pub-preview-col .pcard { pointer-events: none; }
.skel-block, .skel-line {
  background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.1), rgba(255,255,255,.04));
  background-size: 200% 100%;
  animation: skelShine 1.15s ease infinite;
  border-radius: 8px;
}
.skel-line { height: 11px; margin: 8px 0; }
.skel-line.w60 { width: 60%; }
.pcard.skel { pointer-events: none; }
@keyframes skelShine { to { background-position: -200% 0; } }
.cmdk-overlay {
  position: fixed; inset: 0; z-index: 1400;
  background: rgba(5,6,10,.72);
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 16vh;
}
.cmdk-overlay[hidden] { display: none !important; }
.cmdk-box {
  width: min(520px, calc(100% - 28px));
  background: rgba(14,16,24,.96);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0,0,0,.55);
  overflow: hidden;
}
.cmdk-input {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.08);
  color: #fff; font: inherit; font-size: 16px; padding: 16px 16px;
  outline: none;
}
.cmdk-list { max-height: 320px; overflow: auto; padding: 8px; }
.cmdk-item {
  width: 100%; display: flex; align-items: center; gap: 10px;
  background: none; border: 0; color: #e6e8f0; font: inherit;
  padding: 10px 10px; border-radius: 10px; cursor: pointer; text-align: left;
}
.cmdk-item.on, .cmdk-item:hover { background: rgba(255,53,53,.12); }
.cmdk-empty { padding: 18px 12px; color: var(--text-muted); font-size: 13px; }
@media (max-width: 960px) {
  .hw-grid, .studio-steps, .ft-grid, .pub-studio { grid-template-columns: 1fr 1fr; }
  .pub-preview-col { position: static; }
}
@media (max-width: 640px) {
  .hw-grid, .studio-steps, .ft-grid { grid-template-columns: 1fr; }
}

.dash-check {
  margin: 10px 0 16px; padding: 18px 18px 16px;
  background: rgba(12,14,24,.82);
  border: 1px solid rgba(255,53,53,.22);
  border-radius: 20px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.04), 0 18px 50px rgba(0,0,0,.35);
}
.check-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.check-kicker { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.check-progress { font-family: var(--mono); font-size: 12px; color: var(--text-muted); }
.check-steps { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; }
.check-step {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08);
  color: #9aa3b8; border-radius: 14px; padding: 10px 12px;
  font-size: 13px; font-weight: 700; cursor: pointer; text-align: left;
}
.check-ico {
  width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.05);
}
.check-ico .ico { width: 15px; height: 15px; }
.check-meta { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.check-meta b { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; opacity: .7; }
.check-step.done { border-color: rgba(0,229,255,.45); color: #7af0ff; }
.check-step.done .check-ico { background: rgba(0,229,255,.12); color: #00e5ff; }
.check-step.now {
  border-color: rgba(255,53,53,.7); color: #fff;
  box-shadow: 0 0 18px rgba(255,53,53,.22);
}
.check-step.now .check-ico { background: rgba(255,53,53,.16); color: var(--accent); }
.check-next { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0 16px; }
.check-hint { margin: 0; color: #b4bbc9; font-size: 13px; line-height: 1.45; flex: 1; }
.check-paths { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check-path {
  border-radius: 14px; padding: 14px 14px 12px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08);
}
.check-path.is-auto { border-left: 3px solid #00e5ff; }
.check-path.is-manual { border-left: 3px solid #ff4ecd; }
.path-tag {
  display: inline-block; font-size: 10px; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; color: #00e5ff;
}
.check-path.is-manual .path-tag { color: #ff4ecd; }
.check-path h4 { color: #fff; font-size: 14px; margin: 0 0 8px; font-weight: 800; }
.check-path p, .check-path li { color: var(--text-muted); font-size: 12.5px; line-height: 1.5; margin: 0; }
.check-path ol { margin: 0; padding-left: 16px; display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 800px) {
  .check-steps, .check-paths { grid-template-columns: 1fr; }
  .check-next { flex-direction: column; align-items: stretch; }
}

.dash-coach {
  margin: 8px 0 12px; padding: 16px 16px 14px;
  background: rgba(12,14,24,.88);
  border: 1px solid rgba(255,53,53,.28);
  border-radius: 18px;
  box-shadow: 0 0 24px rgba(255,53,53,.12);
}
.coach-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.coach-kicker { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.coach-x {
  background: none; border: 0; color: #8b93a7; cursor: pointer;
  width: 32px; height: 32px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
}
.coach-x:hover { color: #fff; background: rgba(255,255,255,.06); }
.coach-list { display: flex; flex-direction: column; gap: 8px; }
.coach-card {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px; border-radius: 14px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08);
}
.coach-card h4 { margin: 0 0 4px; color: #fff; font-size: 14px; font-weight: 800; }
.coach-card p { margin: 0; color: var(--text-muted); font-size: 13px; line-height: 1.45; }
.coach-actions { margin-left: auto; display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
.coach-go {
  background: rgba(255,53,53,.16); border: 1px solid rgba(255,53,53,.4);
  color: #fff; font-weight: 800; font-size: 12px;
  border-radius: 10px; padding: 7px 10px; cursor: pointer; white-space: nowrap;
}
.coach-skip { background: none; border: 0; color: #6d758c; font-size: 11px; font-weight: 700; cursor: pointer; }
.check-meta span { font-weight: 800; font-size: 14px; letter-spacing: -.02em; }
#hgHeader .header-inner { height: 64px; }
#hgHeader .nav-link { font-weight: 800; }

.empty-hero { text-align: center; max-width: 460px; margin: 0 auto 22px; }
.empty-hero-ico {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,53,53,.12); border: 1px solid rgba(255,53,53,.35); color: var(--accent);
}
.empty-hero-ico .ico { width: 28px; height: 28px; }
.empty-hero h3 { font-size: 24px; font-weight: 800; margin: 0 0 8px; color: #fff; }
.empty-hero p { color: var(--text-muted); font-size: 14px; line-height: 1.5; margin: 0 0 18px; }
.empty-tiles { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.empty-tile {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 12px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08);
  color: #fff; font-weight: 800; font-size: 13px;
}
.dash-studio {
  margin-top: 12px; padding: 36px 28px;
  border: 1px solid rgba(255,53,53,.22);
  border-radius: 22px;
  background: rgba(12,14,24,.78);
}

#hgTour[hidden] { display: none !important; }
.tour-spot {
  position: fixed; z-index: 1250; pointer-events: none; border-radius: 14px;
  box-shadow: 0 0 0 2px #ff3535, 0 0 22px rgba(255,53,53,.55);
  animation: tourPulse 1.25s ease-in-out infinite;
}
.tour-orb {
  position: fixed; z-index: 1251; pointer-events: none;
  width: 14px; height: 14px; border-radius: 50%; background: #ff3535;
  animation: tourOrb 1.2s ease-out infinite;
}
@keyframes tourPulse {
  0%,100% { box-shadow: 0 0 0 2px #ff3535, 0 0 16px rgba(255,53,53,.45); }
  50% { box-shadow: 0 0 0 6px rgba(255,53,53,.25), 0 0 28px rgba(255,53,53,.7); }
}
@keyframes tourOrb {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,53,53,.65); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 12px rgba(255,53,53,0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,53,53,0); }
}
.tour-tip {
  position: fixed; z-index: 1252; width: min(300px, calc(100vw - 24px));
  background: #141824; border: 1px solid rgba(255,53,53,.4); border-radius: 16px;
  padding: 14px 36px 14px 14px; box-shadow: 0 18px 50px rgba(0,0,0,.55);
}
.tour-kicker { font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.tour-tip h4 { margin: 0 0 6px; color: #fff; font-size: 15px; font-weight: 800; }
.tour-tip p { margin: 0; color: var(--text-muted); font-size: 13px; line-height: 1.45; }
.tour-x { position: absolute; top: 8px; right: 8px; background: none; border: 0; color: #8b93a7; cursor: pointer; width: 28px; height: 28px; }


/* ===== Explore filters / tags / slideshow / toasts / notifs / wallet buys ===== */
.ex-tools {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin: -4px 0 14px;
}
.ex-seg, .ex-range {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px; border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}
.ex-chip {
  appearance: none; border: 0; background: transparent;
  color: #9aa3b8; font: inherit; font-size: 12px; font-weight: 800;
  padding: 7px 11px; border-radius: 10px; cursor: pointer;
  letter-spacing: .02em; transition: background .18s, color .18s, box-shadow .18s;
}
.ex-chip:hover { color: #fff; background: rgba(255,255,255,.05); }
.ex-chip.on {
  color: #fff; background: rgba(255,53,53,.18);
  box-shadow: inset 0 0 0 1px rgba(255,53,53,.4), 0 0 16px rgba(255,53,53,.18);
}
.ex-range { padding: 4px 8px; }
.ex-range .form-input {
  width: 72px; height: 32px; padding: 0 8px; font-size: 12px; font-weight: 700;
  background: transparent; border: 0; box-shadow: none;
}
.ex-range-k { color: #8b93a7; font-size: 12px; font-weight: 800; }
.ex-tags, .user-search-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.ex-tags:empty, .user-search-row:empty { display: none; }
.ptag, .ex-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(255,53,53,.1); border: 1px solid rgba(255,53,53,.22);
  color: #ffb3b3; font-size: 11px; font-weight: 800; letter-spacing: .03em;
  cursor: pointer; font-family: inherit;
}
.ex-tag.on, .ptag.on {
  background: rgba(255,53,53,.28); color: #fff;
  box-shadow: 0 0 14px rgba(255,53,53,.25);
}
.pcard-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.pcard-cover {
  position: relative; overflow: hidden; height: 148px;
}
.pcard-cover .slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity .85s ease;
}
.pcard-cover .slide.on { opacity: 1; }
.pcard-cover .cover-fallback { position: relative; z-index: 1; }

.pub-cover { position: relative; overflow: hidden; }
.pub-cover .slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity .85s ease;
}
.pub-cover .slide.on { opacity: 1; }
.pub-thumbs .thumb {
  cursor: pointer; opacity: .7; transition: opacity .2s, box-shadow .2s;
}
.pub-thumbs .thumb.on, .pub-thumbs .thumb:hover { opacity: 1; box-shadow: 0 0 0 2px #ff3535; }

.tag-edit { display: flex; flex-direction: column; gap: 8px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-list .ptag { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); color: #fff; }
.photo-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 8px; margin-bottom: 8px;
}
.photo-cell {
  position: relative; aspect-ratio: 16/10; border-radius: 12px; overflow: hidden;
  background-size: cover; background-position: center;
  border: 1px solid rgba(255,255,255,.1);
}
.photo-cell button {
  position: absolute; top: 4px; right: 4px; width: 22px; height: 22px;
  border: 0; border-radius: 8px; background: rgba(0,0,0,.55); color: #fff;
  cursor: pointer; display: grid; place-items: center;
}
.photo-add {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 12px; cursor: pointer;
  border: 1px dashed rgba(255,255,255,.18); color: #c5cde0; font-weight: 700; font-size: 13px;
}
.photo-add:hover { border-color: rgba(255,53,53,.45); color: #fff; }

.avatar-edit { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.ph-avatar.sm { width: 64px; height: 64px; font-size: 22px; margin-top: 0; border-width: 0; }
.ph-avatar, .user-avatar-circle, .ud-avatar {
  background-size: cover; background-position: center;
}
.ph-avatar.has-photo, .user-avatar-circle.has-photo, .ud-avatar.has-photo { color: transparent; }

.wal-op, button.wal-buy {
  color: #fff;
  font: inherit;
  border: 0;
  width: 100%;
  text-align: left;
  background: rgba(255,255,255,0.03);
}
.wal-op b, .wal-buy b { color: #fff; font-weight: 800; }
.wal-buy .comment-time, .wal-op .comment-time { color: var(--text-muted); }

.faq-plus { transition: transform .28s ease; }
.faq-item.open .faq-plus { transform: rotate(45deg); }
.faq-a {
  display: grid; grid-template-rows: 0fr; opacity: 0;
  transition: grid-template-rows .38s ease, opacity .28s ease;
}
.faq-a p { overflow: hidden; }
.faq-item.open .faq-a { grid-template-rows: 1fr; opacity: 1; }

.doc-step { animation: riseIn .5s ease both; }
.doc-step:nth-child(1) { animation-delay: .04s; }
.doc-step:nth-child(2) { animation-delay: .1s; }
.doc-step:nth-child(3) { animation-delay: .16s; }
.doc-step:nth-child(4) { animation-delay: .22s; }
.doc-step:nth-child(5) { animation-delay: .28s; }
.doc-step:nth-child(6) { animation-delay: .34s; }
@keyframes riseIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.toast-host {
  position: fixed; right: 18px; bottom: 18px; z-index: 1400;
  display: flex; flex-direction: column; gap: 8px; pointer-events: none;
  width: min(340px, calc(100vw - 28px));
}
.hg-toast {
  pointer-events: auto;
  background: rgba(16,18,28,.94);
  border: 1px solid rgba(255,255,255,.12);
  border-left: 3px solid #ff3535;
  border-radius: 14px;
  padding: 12px 14px;
  color: #fff; font-size: 13px; font-weight: 700; line-height: 1.4;
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
  opacity: 0; transform: translateY(12px) scale(.98);
  transition: opacity .28s ease, transform .28s ease;
}
.hg-toast.show { opacity: 1; transform: none; }
.hg-toast.ok { border-left-color: #2ecc71; }
.hg-toast.warn { border-left-color: #f1c40f; }

.notif-drop {
  display: flex; flex-direction: column;
  visibility: hidden; opacity: 0; pointer-events: none;
  transform: translateY(-10px) scale(.96);
  transform-origin: top right;
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
  width: 360px; max-height: 440px; overflow: hidden;
  background: rgba(16,18,28,.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  box-shadow: 0 22px 60px rgba(0,0,0,.55), 0 0 24px rgba(255,53,53,.08);
  z-index: 90;
}
.notif-wrap.open .notif-drop {
  visibility: visible; opacity: 1; pointer-events: auto; transform: none;
}
.notif-head { padding: 12px 14px 8px; }
.notif-item {
  display: flex; flex-direction: column; gap: 4px;
  width: 100%; text-align: left; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background: rgba(255,255,255,0.03);
  border: 1px solid transparent;
  color: #fff; font-family: var(--font);
  border-radius: 12px; padding: 10px 12px; margin-bottom: 6px;
  transform: translateY(4px); animation: notifIn .28s ease both;
}
@keyframes notifIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.notif-item.unread { border-color: rgba(255,53,53,0.28); background: rgba(255,53,53,.08); }
.notif-item:hover { background: rgba(255,255,255,0.07); }
.notif-item b { color: #fff; }
.notif-dot { animation: tourOrb 1.4s ease-out infinite; }

.ex-range input[type=number]::-webkit-outer-spin-button,
.ex-range input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ex-range input[type=number] { -moz-appearance: textfield; appearance: textfield; }

html[lang="ru"], html[lang="ru"] body {
  font-family: 'Manrope', 'Outfit', system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: 0;
}
html[lang="ru"] .nav-link,
html[lang="ru"] .dash-title,
html[lang="ru"] .hero-heading,
html[lang="ru"] .pcard-title,
html[lang="ru"] .brand-title,
html[lang="ru"] .btn-primary,
html[lang="ru"] .btn-secondary,
html[lang="ru"] h1, html[lang="ru"] h2, html[lang="ru"] h3, html[lang="ru"] h4,
html[lang="ru"] .faq-q, html[lang="ru"] .ptitle, html[lang="ru"] .ex-chip {
  font-weight: 800;
}

.site-main {
  display: flex !important;
  flex-direction: column !important;
}
.site-footer { margin-top: auto !important; width: 100%; flex: 0 0 auto; padding-bottom: 16px; }
.view.active { width: 100%; }

button.wal-buy, button.wal-buy b, .wal-buy, .wal-buy b, .wal-op b {
  color: #fff !important;
}
button.wal-buy { color: #fff !important; }

.rev-user {
  background: none; border: 0; color: #fff; font: inherit; font-weight: 800;
  cursor: pointer; padding: 0; display: inline-flex; align-items: center; gap: 6px;
}
.rev-user:hover { color: var(--accent); }
.ph-rating { margin-top: 8px; display: flex; align-items: center; gap: 8px; }
.ph-rating .star-num { font-weight: 800; color: #ffd36b; }

.header-right { gap: 8px; flex-wrap: nowrap; }

#view-explore { padding-bottom: 8px; flex: 1 0 auto; }

.dash-empty {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  margin: 8px 0 18px; padding: 18px 20px; border-radius: 18px;
  background: rgba(255,53,53,.08); border: 1px solid rgba(255,53,53,.28);
  animation: emptyIn .4s ease;
}
.dash-empty[hidden] { display: none !important; }
.dash-empty h3 { margin: 0 0 4px; font-size: 18px; }
.dash-empty p { margin: 0; color: var(--text-muted); font-size: 13px; max-width: 46ch; }
.dash-empty-orb {
  width: 14px; height: 14px; border-radius: 50%; background: #ff3535;
  box-shadow: 0 0 0 0 rgba(255,53,53,.6); animation: tourOrb 1.2s ease-out infinite;
}
@keyframes emptyIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.lang-switch { position: relative; isolation: isolate; flex-shrink: 0; overflow: hidden; }
.lang-pill {
  position: absolute; top: 3px; bottom: 3px; width: calc(50% - 4px); left: 3px;
  border-radius: 999px; background: var(--accent);
  box-shadow: 0 0 14px rgba(255,53,53,.35);
  transition: transform .28s cubic-bezier(.2,.8,.2,1);
  pointer-events: none; z-index: 0;
}
.lang-switch.is-ru .lang-pill { transform: translateX(100%); }
.lang-switch .lang-btn { position: relative; z-index: 1; background: transparent !important; box-shadow: none !important; }
.lang-switch .lang-btn.active { color: #fff; }

.theme-btn {
  width: 38px; height: 38px; border-radius: 12px;
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
  color: #fff; cursor: pointer; display: grid; place-items: center;
}
.theme-btn .theme-moon { display: none; }
html[data-theme="light"] .theme-btn .theme-sun { display: none; }
html[data-theme="light"] .theme-btn .theme-moon { display: block; }

.tag-edit { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tag-plus {
  width: 32px; height: 32px; border-radius: 10px; border: 1px dashed rgba(255,255,255,.2);
  background: transparent; color: #fff; font-size: 18px; cursor: pointer;
}
.tag-plus:hover { border-color: var(--accent); color: var(--accent); }
.tag-input { width: 120px; height: 32px; padding: 0 10px; }
.ptag { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: #fff; }

.up-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  padding: 14px 16px; border-radius: 14px; cursor: pointer;
  border: 1px dashed rgba(255,255,255,.18); color: #c5cde0;
}
.up-card b { color: #fff; font-size: 13px; }
.up-card span { font-size: 11px; color: var(--text-muted); }
.up-card:hover { border-color: rgba(255,53,53,.45); }

.rule-hint {
  margin: 8px 0 0; font-size: 11px; font-weight: 700; color: rgba(255,90,90,.72);
  letter-spacing: .01em;
}

.ph-avatar-wrap { position: relative; flex-shrink: 0; width: 84px; height: 84px; margin-top: -42px; border-radius: 50%; overflow: hidden; z-index: 4; }
.ph-edit-fab {
  position: absolute; display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 10px; cursor: pointer;
  background: rgba(10,12,18,.82); border: 1px solid rgba(255,255,255,.14); color: #fff;
  opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s;
}
.profile-hero-bg .ph-edit-fab { right: 12px; bottom: 12px; }
.ph-edit-fab.av { right: 0; bottom: 6px; }
.profile-hero-bg:hover .ph-edit-fab,
.ph-avatar-wrap:hover .ph-edit-fab { opacity: 1; transform: none; }

.ph-name-row { display: flex; align-items: center; gap: 8px; }
.ph-flag { font-size: 18px; line-height: 1; filter: saturate(.9); opacity: .9; }
.flag-pick-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
  color: #fff; border-radius: 12px; padding: 8px 12px; cursor: pointer; font: inherit;
}
.flag-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 6px; max-height: 360px; overflow: auto; margin-top: 12px;
}
.flag-opt {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.03); border: 1px solid transparent;
  border-radius: 10px; padding: 8px 10px; cursor: pointer; color: #fff; font: inherit; text-align: left;
}
.flag-opt:hover, .flag-opt.on { border-color: rgba(255,53,53,.4); background: rgba(255,53,53,.1); }
.flag-opt b { font-size: 16px; font-weight: 500; }

.lib-list { display: flex; flex-direction: column; gap: 10px; }
.lib-card {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 14px; border-radius: 16px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08);
  animation: emptyIn .35s ease both;
}
.lib-card b { display: block; color: #fff; }
.lib-card p { margin: 4px 0 0; color: var(--text-muted); font-size: 12px; font-family: var(--mono); }
.lib-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

.wal-buy {
  display: grid !important; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center;
  padding: 14px 14px !important;
}
.wal-buy .buy-name { color: #fff; font-weight: 800; font-size: 14px; }
.wal-buy .buy-meta { grid-column: 1; color: var(--text-muted); font-size: 12px; margin-top: 2px; }
.wal-buy .amt { grid-column: 2; grid-row: 1 / span 2; }

.btn-reset-hwid {
  appearance: none; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  color: #fff; border-radius: 10px; padding: 8px 12px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px; font: inherit; font-weight: 700;
}
.btn-reset-hwid.is-used { color: #ff5a5a; border-color: rgba(255,53,53,.35); background: rgba(255,53,53,.08); }
.reset-cd { margin-top: 8px; font-size: 11px; color: var(--text-muted); font-weight: 700; }

.notif-drop {
  width: 380px !important; border-radius: 20px !important;
  background: rgba(12,14,22,.97) !important;
  box-shadow: 0 28px 70px rgba(0,0,0,.6), 0 0 0 1px rgba(255,53,53,.12) !important;
}
.notif-item {
  display: grid !important; grid-template-columns: 40px 1fr; gap: 2px 12px; align-items: start;
  padding: 12px !important; border-radius: 14px !important;
}
.notif-ico {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255,53,53,.12); color: #ff6b6b; grid-row: 1 / span 3;
}
.notif-ico.sale { background: rgba(61,255,154,.12); color: #3dff9a; }
.notif-item b { font-size: 13px; }
.notif-item .notif-body { color: var(--text-muted); font-size: 12px; line-height: 1.4; }
.notif-item.unread { background: rgba(255,53,53,.1) !important; box-shadow: inset 2px 0 0 #ff3535; }

.cap-card { max-width: 420px; }
.cap-body { color: var(--text-muted); line-height: 1.55; margin: 0 0 16px; }


/* ===== THEMES ===== */
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #090a10;
  --card: rgba(16, 18, 28, 0.42);
  --card-2: rgba(18, 20, 32, 0.55);
  --border: rgba(255,255,255,0.08);
  --text-muted: #7b849c;
  --glass: linear-gradient(165deg, rgba(255,255,255,0.055) 0%, rgba(255,255,255,0.012) 55%, rgba(255,53,53,0.04) 100%);
  --ink: #fff;
  --paper: #0c0e16;
}
html[data-theme="light"] {
  color-scheme: light;
  --bg: #efe8e4;
  --card: #fff;
  --card-2: #fff;
  --border: rgba(28, 18, 18, 0.10);
  --text-muted: #6a6370;
  --glass: linear-gradient(165deg, rgba(255,255,255,.94) 0%, rgba(255,246,244,.86) 100%);
  --ink: #1b1418;
  --paper: #f7f2ee;
}
html[data-theme="light"] body {
  background-color: var(--bg) !important;
  color: var(--ink) !important;
}
html[data-theme="light"] .bg-grid { opacity: .22; filter: invert(1); }
html[data-theme="light"] .blob { opacity: .22; }
html[data-theme="light"] .blob-a { background: radial-gradient(circle, rgba(255,53,53,0.18) 0%, transparent 68%); }
html[data-theme="light"] .blob-b { background: radial-gradient(circle, rgba(120,90,255,0.12) 0%, transparent 68%); }

html[data-theme="light"] .site-top,
html[data-theme="light"] #hgHeader {
  background: #f6f1ed !important;
  border-bottom-color: rgba(20,12,12,.08) !important;
  box-shadow: inset 0 -1px 0 rgba(255,53,53,.45) !important;
}
html[data-theme="light"] #hgHeader .brand-title,
html[data-theme="light"] .brand-title { color: #1b1418 !important; }
html[data-theme="light"] #hgHeader .nav-link { color: #5c5660 !important; }
html[data-theme="light"] #hgHeader .nav-link:hover { color: #1b1418 !important; }
html[data-theme="light"] #hgHeader .nav-link.active {
  background: rgba(255,53,53,.14) !important;
  color: #c01010 !important;
}
html[data-theme="light"] #hgHeader .nav-menu {
  background: rgba(0,0,0,.04) !important;
  border-color: rgba(0,0,0,.08) !important;
}
html[data-theme="light"] .theme-btn,
html[data-theme="light"] .notif-btn {
  background: #fff; border-color: rgba(0,0,0,.1); color: #1b1418;
}
html[data-theme="light"] #hgHeader .lang-switch {
  background: #fff !important;
  border-color: rgba(0,0,0,.1) !important;
}
html[data-theme="light"] .lang-switch .lang-btn { color: #6a6370; }
html[data-theme="light"] .lang-switch .lang-btn.active { color: #fff; }
html[data-theme="light"] .user-avatar-name,
html[data-theme="light"] .btn-signin { color: #1b1418; }
html[data-theme="light"] .btn-signin { border-color: rgba(0,0,0,.12); }

html[data-theme="light"] h1, html[data-theme="light"] h2, html[data-theme="light"] h3, html[data-theme="light"] h4,
html[data-theme="light"] .hero-heading, html[data-theme="light"] .dash-title, html[data-theme="light"] .ptitle,
html[data-theme="light"] .pcard-title, html[data-theme="light"] .pub-title, html[data-theme="light"] .faq-title,
html[data-theme="light"] .faq-q, html[data-theme="light"] .hw-step h3, html[data-theme="light"] .doc-step h4,
html[data-theme="light"] .empty-hero h3, html[data-theme="light"] .empty-state h3, html[data-theme="light"] .coach-card h4,
html[data-theme="light"] .check-path h4, html[data-theme="light"] .ud-name, html[data-theme="light"] .ph-name,
html[data-theme="light"] .buy-price-lg, html[data-theme="light"] .price-amount, html[data-theme="light"] .price-tier,
html[data-theme="light"] .wal-balance, html[data-theme="light"] .wal-bal-row strong, html[data-theme="light"] .slot-chip b,
html[data-theme="light"] .stat-mini .val, html[data-theme="light"] .pstat-value, html[data-theme="light"] .db-table td,
html[data-theme="light"] .db-table th, html[data-theme="light"] .cselect-btn, html[data-theme="light"] .preset-card,
html[data-theme="light"] .pal-slot, html[data-theme="light"] .ex-chip, html[data-theme="light"] .seg-btn,
html[data-theme="light"] .an-tog, html[data-theme="light"] .dash-nav-link, html[data-theme="light"] .ft-link,
html[data-theme="light"] .pub-author, html[data-theme="light"] .rev-user, html[data-theme="light"] .buy-name,
html[data-theme="light"] .lib-card b, html[data-theme="light"] .wal-op, html[data-theme="light"] .wal-op b,
html[data-theme="light"] button.wal-buy, html[data-theme="light"] button.wal-buy b, html[data-theme="light"] .wal-buy .buy-name,
html[data-theme="light"] .modal-card, html[data-theme="light"] .modal-card h3, html[data-theme="light"] .ptag,
html[data-theme="light"] .tag-plus, html[data-theme="light"] .up-card, html[data-theme="light"] .up-card b,
html[data-theme="light"] .flag-opt, html[data-theme="light"] .flag-pick-btn, html[data-theme="light"] .cmdk-input,
html[data-theme="light"] .empty-tile, html[data-theme="light"] .check-meta span {
  color: #1b1418 !important;
}
html[data-theme="light"] .hero-subtext, html[data-theme="light"] .dash-sub, html[data-theme="light"] .hw-step p,
html[data-theme="light"] .feature-card p, html[data-theme="light"] .faq-a p, html[data-theme="light"] .wal-hint,
html[data-theme="light"] .buy-note, html[data-theme="light"] .pub-desc, html[data-theme="light"] .ud-sub,
html[data-theme="light"] .ph-bio, html[data-theme="light"] .ph-username, html[data-theme="light"] .ft-brand p,
html[data-theme="light"] .buy-meta, html[data-theme="light"] .lib-card p, html[data-theme="light"] .cap-body {
  color: #6a6370 !important;
}
html[data-theme="light"] .red-accent { color: #e11d2e !important; }

html[data-theme="light"] .pcard,
html[data-theme="light"] .card-panel,
html[data-theme="light"] .price-card,
html[data-theme="light"] .feature-card,
html[data-theme="light"] .hw-step,
html[data-theme="light"] .faq-band,
html[data-theme="light"] .buy-card,
html[data-theme="light"] .stat-mini,
html[data-theme="light"] .pstat-card,
html[data-theme="light"] .slot-pack,
html[data-theme="light"] .dash-sidebar,
html[data-theme="light"] .db-table-wrap,
html[data-theme="light"] .modal-card,
html[data-theme="light"] .user-dropdown,
html[data-theme="light"] .notif-drop,
html[data-theme="light"] .cselect-menu,
html[data-theme="light"] .cmdk-box,
html[data-theme="light"] .tour-tip,
html[data-theme="light"] .dash-empty,
html[data-theme="light"] .dash-studio,
html[data-theme="light"] .dash-coach,
html[data-theme="light"] .dash-check,
html[data-theme="light"] .lib-card,
html[data-theme="light"] .wal-op,
html[data-theme="light"] .profile-hero,
html[data-theme="light"] .profile-hero-body {
  background: #fff !important;
  border-color: rgba(20,12,12,.08) !important;
  color: #1b1418;
  box-shadow: 0 10px 28px rgba(40,16,16,.06);
}
html[data-theme="light"] .site-footer {
  background: #e7e0db !important;
  border-top-color: rgba(0,0,0,.08) !important;
}
html[data-theme="light"] .site-footer h4 { color: #8a8490 !important; }
html[data-theme="light"] .ft-bar { color: #8a8490 !important; border-top-color: rgba(0,0,0,.08) !important; }

html[data-theme="light"] .input-basic,
html[data-theme="light"] .form-input,
html[data-theme="light"] .code-area,
html[data-theme="light"] .code-digit,
html[data-theme="light"] .project-select,
html[data-theme="light"] .search-wrap .input-basic,
html[data-theme="light"] .cmdk-input {
  background: #fff !important;
  color: #1b1418 !important;
  border-color: rgba(20,12,12,.12) !important;
}
html[data-theme="light"] .btn-secondary,
html[data-theme="light"] .btn-ghost,
html[data-theme="light"] .btn-table,
html[data-theme="light"] .ex-chip,
html[data-theme="light"] .seg-btn,
html[data-theme="light"] .an-tog,
html[data-theme="light"] .preset-card,
html[data-theme="light"] .dash-nav-link,
html[data-theme="light"] .check-step,
html[data-theme="light"] .up-card,
html[data-theme="light"] .tag-plus,
html[data-theme="light"] .ptag,
html[data-theme="light"] .flag-opt,
html[data-theme="light"] .flag-pick-btn,
html[data-theme="light"] .buy-plan,
html[data-theme="light"] .photo-add {
  background: #f6f1ed !important;
  color: #1b1418 !important;
  border-color: rgba(20,12,12,.1) !important;
}
html[data-theme="light"] .btn-primary,
html[data-theme="light"] .btn-signup,
html[data-theme="light"] .coach-go,
html[data-theme="light"] .buy-cta {
  color: #fff !important;
}
html[data-theme="light"] .dash-nav-link.active,
html[data-theme="light"] .ex-chip.on,
html[data-theme="light"] .seg-btn.on,
html[data-theme="light"] .an-tog.on,
html[data-theme="light"] .preset-card.on,
html[data-theme="light"] .buy-plan.on {
  background: rgba(255,53,53,.12) !important;
  color: #c01010 !important;
  border-color: rgba(255,53,53,.35) !important;
}
html[data-theme="light"] .db-table th { color: #6a6370 !important; background: #f6f1ed; }
html[data-theme="light"] .db-table td { border-bottom-color: rgba(0,0,0,.06) !important; }
html[data-theme="light"] .notice-box { background: rgba(255,53,53,.06); color: #1b1418; }
html[data-theme="light"] .hg-toast { background: #fff; color: #1b1418; }
html[data-theme="light"] .modal-overlay { background: rgba(30,18,18,.45); }

html[data-theme="light"] .user-avatar-circle,
html[data-theme="light"] .ud-avatar { color: #fff !important; }
html[data-theme="light"] .pcard-price { color: #c01010 !important; }
html[data-theme="light"] .wal-buy .amt.minus { color: #e11d2e !important; }
html[data-theme="light"] .stat-mini .val.plus, html[data-theme="light"] .amt.plus { color: #128a4a !important; }
html[data-theme="light"] .ud-item { color: #1b1418; }
html[data-theme="light"] .ud-item:hover { background: rgba(0,0,0,.04); color: #1b1418; }
html[data-theme="light"] .notif-item { background: #f6f1ed !important; color: #1b1418; }
html[data-theme="light"] .notif-item b { color: #1b1418 !important; }
html[data-theme="light"] .notif-item .notif-body { color: #6a6370 !important; }
html[data-theme="light"] .ph-edit-fab { background: #fff; color: #1b1418; border-color: rgba(0,0,0,.12); }
html[data-theme="light"] .profile-hero-bg { background-color: #eadfd8; }
html[data-theme="light"] .faq-item { border-top-color: rgba(0,0,0,.08) !important; }
html[data-theme="light"] .faq-plus::before, html[data-theme="light"] .faq-plus::after { background: #1b1418; }
html[data-theme="light"] .cmd-hint { color: #1b1418 !important; border-color: rgba(0,0,0,.12) !important; }
html[data-theme="light"] .sim-box { background: #f6f1ed; color: #1b1418; }
html[data-theme="light"] .chart-box { background: transparent; }
html[data-theme="light"] .pub-kicker, html[data-theme="light"] .buy-kicker { color: #c01010; }
html[data-theme="light"] .btn-reset-hwid { background: #fff; border-color: rgba(0,0,0,.12); color: #1b1418; }
html[data-theme="light"] .btn-reset-hwid.is-used { color: #e11d2e; }

#formComment[hidden]{display:none!important;}
.btn-table.warn#btnResetMyHwid{color:#fff;}
.btn-reset-hwid{color:#fff;}
.btn-reset-hwid.is-used{color:#ff5a5a;}

#hgHeader .header-inner { min-width: 0; overflow: visible; }
#hgHeader .nav-menu { display: flex !important; flex-shrink: 1; min-width: 0; }
@media (max-width: 1100px) {
  #hgHeader .nav-link { padding: 8px 10px !important; font-size: 13px !important; }
  #hgHeader .brand-meta { display: none; }
  .header-right { gap: 6px; }
}
@media (max-width: 900px) {
  #hgHeader .nav-menu { display: flex !important; }
  #hgHeader .nav-link span { display: none; }
  #hgHeader .nav-link { padding: 8px 9px !important; }
  .user-avatar-name { display: none; }
}


/* ===== v24 fixes ===== */
.buy-card { position: relative !important; top: auto !important; align-self: start; }

.tag-edit { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.tag-add-row { display: flex; align-items: center; gap: 10px; }
.tag-input {
  flex: 1; min-width: 0; height: 44px !important; padding: 0 14px !important;
  font-size: 14px !important; font-weight: 800 !important; letter-spacing: .08em;
  text-transform: uppercase;
}
.tag-plus {
  width: 44px !important; height: 44px !important; flex-shrink: 0;
  border-radius: 12px !important; font-size: 26px !important; line-height: 1;
  border: 1px solid rgba(255,53,53,.4) !important;
  background: rgba(255,53,53,.12) !important; color: #fff !important;
  display: grid; place-items: center; cursor: pointer;
}
.tag-plus:hover { background: rgba(255,53,53,.22) !important; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list .ptag, .ptag, .ex-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 999px;
  background: rgba(255,53,53,.12); border: 1px solid rgba(255,53,53,.28);
  color: #ffd0d0; font-size: 12px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase;
}

.profile-hero-bg { position: relative; height: 168px; }
.ph-banner-overlay {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: rgba(0,0,0,.42); color: #fff; cursor: pointer;
  opacity: 0; transition: opacity .2s ease;
}
.profile-hero-bg:hover .ph-banner-overlay { opacity: 1; }
.ph-overlay-ico { width: 40px; height: 40px; display: grid; place-items: center; }
.ph-overlay-ico .ico { width: 22px; height: 22px; }
.ph-overlay-lab { font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.ph-avatar-wrap { position: relative; width: 84px; height: 84px; margin-top: -42px; border-radius: 50%; overflow: hidden; z-index: 4; }
.ph-av-overlay {
  position: absolute; inset: 0; border-radius: 50%; z-index: 2;
  display: grid; place-items: center;
  background: rgba(0,0,0,.48); color: #fff; cursor: pointer;
  opacity: 0; transition: opacity .2s ease;
}
.ph-avatar-wrap:hover .ph-av-overlay { opacity: 1; }
.ph-av-overlay .ico { width: 28px; height: 28px; }
.ph-country {
  margin-top: 6px; display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-muted); font-size: 13px; font-weight: 700;
}

.code-row { gap: 10px; }
.code-digit {
  width: 52px !important; height: 52px !important; border-radius: 12px !important;
  font-size: 22px !important; font-weight: 800;
  background: rgba(255,255,255,.04) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  color: #fff !important;
}
.code-digit:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(255,53,53,.22);
}

.ex-tools { gap: 12px; }
.ex-seg, .ex-range {
  background: rgba(12,14,22,.72) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
}
.ex-range .form-input {
  background: rgba(255,255,255,.04) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  width: 78px; height: 34px;
}

.doc-step-ico {
  background: rgba(255,255,255,.05) !important;
  color: #c5cad8 !important;
}
.doc-step h4 { color: #fff; }

.dash-sidebar, .dash-wide .dash-sidebar,
html[data-theme="light"] .dash-sidebar,
html[data-theme="light"] .dash-wide .dash-sidebar {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-right: 1px solid rgba(255,255,255,.08) !important;
}

html[data-theme="light"] .bg-grid {
  opacity: .45 !important; filter: none !important;
  background-image:
    linear-gradient(rgba(20,16,16,.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,16,16,.11) 1px, transparent 1px) !important;
}
html[data-theme="light"] .blob { opacity: .85 !important; }
html[data-theme="light"] .blob-a {
  background: radial-gradient(circle, rgba(255,70,70,.42) 0%, transparent 68%) !important;
}
html[data-theme="light"] .blob-b {
  background: radial-gradient(circle, rgba(110,80,255,.32) 0%, transparent 68%) !important;
}
html[data-theme="light"] .blob-c {
  background: radial-gradient(circle, rgba(255,90,160,.22) 0%, transparent 70%) !important;
}

html[data-theme="light"] .form-input,
html[data-theme="light"] select.form-input,
html[data-theme="light"] .input-basic,
html[data-theme="light"] .code-area,
html[data-theme="light"] .search-wrap .input-basic,
html[data-theme="light"] .ex-range .form-input {
  background: #fff !important;
  background-color: #fff !important;
  color: #1b1418 !important;
  -webkit-text-fill-color: #1b1418 !important;
  border: 1px solid rgba(20,12,12,.16) !important;
  -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
  box-shadow: none !important;
  caret-color: #1b1418 !important;
}
html[data-theme="light"] .form-input::placeholder,
html[data-theme="light"] .input-basic::placeholder,
html[data-theme="light"] .code-area::placeholder {
  color: #8a8490 !important;
  -webkit-text-fill-color: #8a8490 !important;
}
html[data-theme="light"] input:-webkit-autofill,
html[data-theme="light"] input:-webkit-autofill:hover,
html[data-theme="light"] input:-webkit-autofill:focus {
  -webkit-text-fill-color: #1b1418 !important;
  caret-color: #1b1418;
  box-shadow: 0 0 0 1000px #fff inset !important;
  -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
}
html[data-theme="light"] .code-digit {
  background: #fff !important;
  color: #1b1418 !important;
  -webkit-text-fill-color: #1b1418 !important;
  border: 1px solid rgba(20,12,12,.16) !important;
}
html[data-theme="light"] .ex-seg,
html[data-theme="light"] .ex-range {
  background: #fff !important;
  border: 1px solid rgba(20,12,12,.12) !important;
  box-shadow: 0 8px 22px rgba(40,16,16,.06);
}
html[data-theme="light"] .ex-chip { color: #5c5660 !important; background: transparent !important; }
html[data-theme="light"] .ex-chip.on {
  color: #c01010 !important;
  background: rgba(255,53,53,.12) !important;
}
html[data-theme="light"] .ex-range-k { color: #6a6370 !important; }
html[data-theme="light"] .dash-sidebar,
html[data-theme="light"] .dash-wide .dash-sidebar {
  border-right: 1px solid rgba(20,12,12,.1) !important;
}
html[data-theme="light"] .dash-nav-link { color: #4a4450 !important; background: transparent !important; }
html[data-theme="light"] .dash-nav-link:hover { color: #1b1418 !important; background: rgba(0,0,0,.04) !important; }
html[data-theme="light"] .dash-nav-link.active {
  color: #c01010 !important;
  background: rgba(255,53,53,.1) !important;
}
html[data-theme="light"] .wal-balance,
html[data-theme="light"] .wal-bal-row strong,
html[data-theme="light"] .stat-mini .val { color: #1b1418 !important; }
html[data-theme="light"] .wal-op, html[data-theme="light"] .wal-buy .buy-name { color: #1b1418 !important; }
html[data-theme="light"] .tag-plus {
  background: rgba(255,53,53,.12) !important;
  color: #c01010 !important;
  border-color: rgba(255,53,53,.35) !important;
}
html[data-theme="light"] .ptag, html[data-theme="light"] .ex-tag, html[data-theme="light"] .tag-list .ptag {
  background: rgba(255,53,53,.1) !important;
  color: #c01010 !important;
  border-color: rgba(255,53,53,.28) !important;
}
html[data-theme="light"] .doc-step-ico {
  background: rgba(0,0,0,.04) !important;
  color: #4a4450 !important;
}
html[data-theme="light"] .doc-step h4 { color: #1b1418 !important; }
html[data-theme="light"] .buy-card {
  background: #fff !important;
  border-color: rgba(255,53,53,.28) !important;
}
html[data-theme="light"] .hw-step,
html[data-theme="light"] .faq-band,
html[data-theme="light"] .feature-card {
  background: #fff !important;
}


/* ===== v25 punch ===== */
.ph-avatar-wrap {
  position: relative !important;
  width: 84px !important;
  height: 84px !important;
  margin-top: -42px !important;
  border-radius: 50%;
  overflow: hidden;
  z-index: 4;
  flex-shrink: 0;
}
.ph-avatar-wrap .ph-avatar {
  margin-top: 0 !important;
  width: 100%;
  height: 100%;
}
.ph-av-overlay {
  position: absolute; inset: 0; border-radius: 50%; z-index: 2;
  display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: rgba(0,0,0,.52); color: #fff; cursor: pointer;
}
.ph-fmt {
  font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255,255,255,.88);
  text-shadow: 0 1px 8px rgba(0,0,0,.55);
  text-align: center; line-height: 1.25; max-width: 90%;
}
.ph-fmt.sm { font-size: 8px; letter-spacing: .04em; max-width: 70px; }
.ph-av-overlay .ico { width: 22px; height: 22px; }
.ph-banner-overlay { gap: 6px; }
.ph-banner-overlay .ph-fmt { font-size: 12px; }

.hg-toast {
  display: flex; align-items: center; gap: 10px;
  border-left-width: 0 !important;
  border-radius: 16px !important;
  padding: 12px 14px 12px 12px !important;
  box-shadow: 0 0 28px rgba(255,53,53,.22), 0 18px 40px rgba(0,0,0,.45) !important;
}
.hg-toast.ok { box-shadow: 0 0 28px rgba(46,204,113,.28), 0 18px 40px rgba(0,0,0,.45) !important; }
.hg-toast.warn { box-shadow: 0 0 28px rgba(241,196,15,.25), 0 18px 40px rgba(0,0,0,.45) !important; }
.hg-toast-ico {
  width: 34px; height: 34px; border-radius: 11px; flex-shrink: 0;
  display: grid; place-items: center;
  background: rgba(255,53,53,.16);
  box-shadow: 0 0 14px rgba(255,53,53,.4);
  color: #ff6b6b;
}
.hg-toast.ok .hg-toast-ico { background: rgba(46,204,113,.16); box-shadow: 0 0 14px rgba(46,204,113,.45); color: #3dff9a; }
.hg-toast.warn .hg-toast-ico { background: rgba(241,196,15,.16); box-shadow: 0 0 14px rgba(241,196,15,.4); color: #f7d774; }
.hg-toast-svg { width: 18px; height: 18px; display: block; }
.hg-toast-txt { flex: 1; min-width: 0; }

.notif-item {
  box-shadow: 0 0 0 1px rgba(255,255,255,.04);
}
.notif-item.unread {
  box-shadow: 0 0 18px rgba(255,53,53,.18), inset 2px 0 0 #ff3535 !important;
}
.notif-ico {
  box-shadow: 0 0 12px rgba(255,53,53,.28);
}
.notif-ico.sale { box-shadow: 0 0 12px rgba(61,255,154,.28); }
.notif-ico.reply { background: rgba(124,108,255,.16); color: #b9a8ff; box-shadow: 0 0 12px rgba(124,108,255,.3); }

.slot-num { display: inline-flex; align-items: baseline; font-variant-numeric: tabular-nums; }
.slot-ch { display: inline-block; }
.slot-reel {
  display: inline-block; height: 1.05em; overflow: hidden;
  width: .62em; vertical-align: -0.08em;
}
.slot-reel i {
  display: flex; flex-direction: column; font-style: normal; font-weight: inherit;
  transform: translateY(calc(var(--d, 0) * -1.05em));
  transition: transform .95s cubic-bezier(.12,.82,.18,1);
}
.slot-reel i span {
  height: 1.05em; line-height: 1.05em; display: block; text-align: center;
}
.wal-balance, #walletChipAmt, #walletModalAmt { font-variant-numeric: tabular-nums; }
.wal-balance.slot-up, .wallet-chip.flash-up #walletChipAmt { text-shadow: 0 0 18px rgba(46,204,113,.55); }
.wal-balance.slot-down, .wallet-chip.flash-down #walletChipAmt { text-shadow: 0 0 18px rgba(255,53,53,.55); }
@keyframes slotGlowUp {
  0%,100% { filter: none; }
  40% { filter: drop-shadow(0 0 10px rgba(46,204,113,.7)); }
}
@keyframes slotGlowDown {
  0%,100% { filter: none; }
  40% { filter: drop-shadow(0 0 10px rgba(255,53,53,.7)); }
}
.wallet-chip.flash-up { animation: slotGlowUp 1s ease; }
.wallet-chip.flash-down { animation: slotGlowDown 1s ease; }

.rev-reply {
  margin-top: 10px; padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,53,53,.06);
  border: 1px solid rgba(255,53,53,.16);
  box-shadow: 0 0 16px rgba(255,53,53,.08);
}
.rev-reply-lab {
  display: block; font-size: 10px; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 4px;
}
.rev-reply p { margin: 0; font-size: 13px; color: var(--text); line-height: 1.45; }
.rev-reply-form { display: flex; gap: 8px; margin-top: 10px; align-items: center; }
.rev-reply-form .input-basic { flex: 1; min-width: 0; }

.hg-switch {
  position: relative; display: flex; align-items: center; gap: 12px; cursor: pointer;
  user-select: none; font-weight: 700; font-size: 14px;
}
.hg-switch input {
  position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none;
}
.hg-switch-track {
  width: 46px; height: 26px; border-radius: 999px; flex-shrink: 0;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: inset 0 0 8px rgba(0,0,0,.25);
  display: block; position: relative;
  transition: background .2s, box-shadow .2s, border-color .2s;
}
.hg-switch-knob {
  position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.35);
  transition: transform .2s ease;
  display: block;
}
.hg-switch input:checked + .hg-switch-track {
  background: rgba(255,53,53,.5);
  border-color: rgba(255,53,53,.7);
  box-shadow: 0 0 16px rgba(255,53,53,.35), inset 0 0 8px rgba(255,53,53,.2);
}
.hg-switch input:checked + .hg-switch-track .hg-switch-knob {
  transform: translateX(20px);
}
html[data-theme="light"] .hg-switch-track { background: rgba(0,0,0,.08); border-color: rgba(0,0,0,.12); }
html[data-theme="light"] .hg-toast {
  background: #fff !important; color: #1b1418 !important;
  box-shadow: 0 0 24px rgba(255,53,53,.18), 0 12px 28px rgba(0,0,0,.12) !important;
}


/* ===== v26 next-step + tour ===== */
.dash-next {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 14px; padding: 10px 12px 10px 14px;
  background: rgba(255,53,53,.08);
  border: 1px solid rgba(255,53,53,.32);
  border-radius: 14px;
  box-shadow: 0 0 22px rgba(255,53,53,.12);
}
.dash-next[hidden] { display: none !important; }
.dash-next b {
  flex: 1; min-width: 0; font-size: 13px; font-weight: 800; line-height: 1.35; color: #fff;
}
.next-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
  background: #ff3535; box-shadow: 0 0 12px #ff3535;
  animation: nextPulse 1.2s ease-in-out infinite;
}
@keyframes nextPulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: .7; }
}
.dash-next .coach-go {
  flex-shrink: 0; border: 0; cursor: pointer;
  background: #ff3535; color: #fff; font: inherit; font-weight: 800; font-size: 12px;
  padding: 8px 12px; border-radius: 10px;
  box-shadow: 0 0 16px rgba(255,53,53,.35);
}
.dash-next .coach-x {
  background: none; border: 0; color: #8b93a7; cursor: pointer;
  width: 28px; height: 28px; display: grid; place-items: center; flex-shrink: 0;
}
.tour-go {
  margin-top: 12px; width: 100%;
  background: #ff3535; color: #fff; border: 0; cursor: pointer;
  font: inherit; font-weight: 800; font-size: 13px;
  padding: 9px 12px; border-radius: 10px;
  box-shadow: 0 0 16px rgba(255,53,53,.4);
}
.tour-tip { padding-bottom: 14px; }
#btnTogglePublish:disabled {
  opacity: .45; cursor: not-allowed; filter: grayscale(.2);
}
html[data-theme="light"] .dash-next b { color: #1b1418; }


/* ===== v27 ===== */
.icon-btn {
  width: 38px; height: 38px; border-radius: 12px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.10);
  color: #c5cbe0; cursor: pointer; display: grid; place-items: center;
}
.icon-btn:hover { color: #fff; border-color: rgba(255,255,255,.18); }
.icon-btn .ico { width: 16px; height: 16px; }

.wallet-chip .ico { opacity: .7; width: 15px; height: 15px; }
.wallet-chip:hover { border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.07); }
.user-avatar-btn:hover { border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.07); }

.code-area, textarea.code-area, textarea {
  resize: none !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,53,53,.4) transparent;
}
.code-area::-webkit-scrollbar, textarea::-webkit-scrollbar { width: 8px; height: 8px; }
.code-area::-webkit-scrollbar-thumb, textarea::-webkit-scrollbar-thumb {
  background: rgba(255,53,53,.4); border-radius: 8px;
}
.code-area::-webkit-scrollbar-track, textarea::-webkit-scrollbar-track { background: transparent; }

.faq-chev {
  width: 22px; height: 22px; display: grid; place-items: center; flex-shrink: 0;
  color: #c5cbe0; transition: transform .28s ease, color .2s;
}
.faq-chev .ico { width: 16px; height: 16px; }
.faq-item.open .faq-chev { transform: rotate(180deg); color: #ff3535; }

.cselect-sm { min-width: 180px; max-width: 260px; }
.cselect-sm .cselect-opt { width: 100%; text-align: left; }

.set-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px; margin-top: 18px;
}
.settings-shell { max-width: 980px; }
.set-grid .card-panel h3 { margin-bottom: 12px; }
.seg.wrap { flex-wrap: wrap; }
.wal-pending {
  margin: 12px 0; padding: 12px 14px; border-radius: 12px;
  background: rgba(241,196,15,.08); border: 1px solid rgba(241,196,15,.28);
  color: #f7d774; font-weight: 700; font-size: 13px;
}
#walWithdrawHold { margin: 12px 0; }
.ft-grid { margin-bottom: 10px !important; gap: 16px !important; }
.ft-bar { padding-top: 10px; }

html[data-theme="light"] .hw-n { color: var(--accent); background: none; }
html[data-theme="light"] .wallet-chip,
html[data-theme="light"] .user-avatar-btn,
html[data-theme="light"] .icon-btn {
  background: #fff; border-color: rgba(0,0,0,.1); color: #1b1418;
  box-shadow: none;
}
html[data-theme="light"] .faq-chev { color: #4a4450; }


/* v28 */
.hw-n { font-variant-numeric: lining-nums !important; }
.hw-ico .ico { width: 22px !important; height: 22px !important; }
.lab-block { margin-top: 16px; }
.lab-kicker {
  font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 8px;
}
.site-footer { margin-top: auto; padding: 10px 24px 8px; }
.ft-grid { gap: 12px; margin-bottom: 8px; }

/* v29 */
.cash-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-top: 8px; }
.cash-row .btn-primary, .cash-row .btn-secondary { white-space: nowrap; }
.hw-n { background: none !important; -webkit-background-clip: unset !important; background-clip: unset !important; }

/* v30 */
.ph-av-overlay[hidden], .ph-banner-overlay[hidden] { display: none !important; opacity: 0 !important; pointer-events: none !important; }
.cookie-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1400;
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  padding: 16px 18px; border-radius: 16px;
  background: rgba(14,16,24,.94); border: 1px solid rgba(255,53,53,.35);
  box-shadow: 0 18px 50px rgba(0,0,0,.45); backdrop-filter: blur(16px);
}
.cookie-bar[hidden] { display: none !important; }
.cookie-copy { flex: 1; min-width: 200px; }
.cookie-copy b { display: block; margin-bottom: 4px; }
.cookie-copy p { margin: 0; color: var(--text-muted); font-size: 13px; line-height: 1.45; }
.cookie-actions { display: flex; gap: 8px; }
.crop-card { max-width: 640px; }
.crop-stage {
  position: relative; height: 360px; border-radius: 14px; overflow: hidden;
  background: #0b0d14; border: 1px solid rgba(255,255,255,.08); touch-action: none; cursor: grab;
}
#cropCanvas { display: block; width: 100%; height: 100%; }
#cropZoom { width: 100%; margin-top: 12px; accent-color: #ff3535; }
.cf-turnstile { margin: 10px 0 12px; min-height: 0; }
#hgTour { pointer-events: none; }
.tour-tip, .tour-go, .tour-x { pointer-events: auto; }
.tour-go { position: relative; z-index: 2; }
.rep-mini { margin-left: auto; background: none; border: 0; color: #6d758c; cursor: pointer; font-size: 12px; font-weight: 700; }
.rev-top { display: flex; align-items: center; gap: 8px; }


#authNewPassWrap[hidden] { display: none !important; }
.nav-burger {
  display: none; width: 40px; height: 40px; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; cursor: pointer; flex-shrink: 0;
}
.nav-burger span { display: block; width: 16px; height: 1.5px; background: #e8eaf2; border-radius: 2px; }
.crop-actions {
  display: flex; gap: 10px; justify-content: flex-end; align-items: center; margin-top: 14px; flex-wrap: nowrap;
}
.crop-actions .btn-primary, .crop-actions .btn-secondary {
  flex: 0 1 auto; white-space: nowrap; min-width: 0;
}
.cash-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cash-tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.09); border-radius: 18px; padding: 18px 16px;
  color: inherit; cursor: pointer; font-family: var(--font);
  transition: border-color .15s, transform .15s;
}
.cash-tile:hover { border-color: rgba(255,53,53,.45); transform: translateY(-1px); }
.cash-tile-ico {
  width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255,53,53,.12); color: #ff6b6b;
}
.cash-tile-ico.out { background: rgba(255,255,255,.06); color: #c5cad8; }
.cash-tile-t { font-weight: 800; font-size: 15px; }
.cash-tile-s { color: var(--text-muted); font-size: 12px; line-height: 1.35; font-weight: 500; }
.pay-sheet { max-width: 420px; }
.pay-methods { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.pay-method {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); color: #d5d8e4;
  border-radius: 999px; padding: 8px 12px; font: 700 12px var(--font); cursor: pointer;
}
.pay-method.on { border-color: rgba(255,53,53,.55); background: rgba(255,53,53,.12); color: #fff; }
.rev-av, .pub-av {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  background: #1a1d28 center/cover no-repeat; border: 1px solid rgba(255,255,255,.12);
  display: inline-grid; place-items: center; font-size: 11px; font-weight: 800; color: #c5cad8;
}
.pub-author { display: inline-flex; align-items: center; gap: 8px; }
.rev-top { display: flex; align-items: center; gap: 8px; }
.rev-user { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; color: inherit; cursor: pointer; font: inherit; font-weight: 700; padding: 0; }
#btnReportProfile { margin-left: auto; }
.header-inner { min-width: 0; }
.header-right { min-width: 0; }
