/* custom chrome */
html, body, #siteMain { scrollbar-width: thin; scrollbar-color: rgba(255,53,53,.5) rgba(255,255,255,.04); }
#siteMain::-webkit-scrollbar, .app-scroll::-webkit-scrollbar { width: 8px; }
#siteMain::-webkit-scrollbar-thumb { background: linear-gradient(180deg,#ff3535,#b428a0); border-radius: 99px; }
#siteMain::-webkit-scrollbar-track { background: rgba(255,255,255,.03); }
input[type=range] { -webkit-appearance: none; appearance: none; height: 6px; border-radius: 99px; background: rgba(255,255,255,.12); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #ff3535; border: 2px solid #fff; }
.btn-google { display:inline-flex; align-items:center; gap:10px; background:#fff !important; color:#1f1f1f !important; border:0 !important; border-radius:12px !important; font-weight:800 !important; font-size:14px !important; padding:12px 16px !important; cursor:pointer; }

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; }

/* `hidden` must always win. Component rules like `.mail-read-empty{display:flex}`
   or `.nav-mail-badge{display:grid}` used to override the UA `[hidden]` style,
   which left "empty" placeholders and zero badges permanently on screen. */
[hidden] { display: none !important; }

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: 26px; height: 26px; filter: drop-shadow(0 0 6px rgba(255,53,53,0.55)); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-title { font-size: 20px; font-weight: 800; color: #fff; letter-spacing: -0.5px; }
.brand-title span { color: var(--accent); text-shadow: 0 0 12px rgba(255,53,53,0.5); }
.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; }
}
.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 — a square-ish tile with the amount in tabular figures, so it
   lines up with the other header controls instead of reading as a pill. */
.wallet-chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 12px 0 5px;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 11px;
  color: #e8eaf2; font-family: var(--font); font-size: 13px; font-weight: 800;
  letter-spacing: -0.01em; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  transition: border-color .16s, box-shadow .16s, background .16s, transform .12s;
}
.wallet-chip-ico {
  width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0;
  display: grid; place-items: center;
  background: rgba(255,53,53,.14); border: 1px solid rgba(255,53,53,.28); color: #ff6b6b;
}
.wallet-chip-ico .ico { width: 15px; height: 15px; opacity: 1; }
.wallet-chip-amt { font-variant-numeric: tabular-nums; }
.wallet-chip:hover {
  border-color: rgba(255,53,53,.55);
  background: linear-gradient(180deg, rgba(255,53,53,.16), rgba(255,53,53,.05));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 20px rgba(255,53,53,.22);
}
.wallet-chip:active { transform: translateY(1px); }
html[data-theme="light"] .wallet-chip {
  background: #fff; border-color: rgba(20,12,12,.12); color: #1b1418;
  box-shadow: 0 6px 18px rgba(40,16,16,.07);
}
html[data-theme="light"] .wallet-chip:hover {
  background: #fff; border-color: rgba(255,53,53,.45);
  box-shadow: 0 8px 22px rgba(255,53,53,.14);
}
.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)); }
}


.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; }

/* Access plans — days / lifetime / price on one line.
   The number is a real text field (no spinner, tabular figures, full width)
   so a 4-digit value is never clipped, and "lifetime" is a small square
   toggle rather than a full-width button. */
.plan-rows { display: flex; flex-direction: column; gap: 8px; }
.plan-row {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr) 44px;
  gap: 8px; align-items: stretch;
}
.plan-field {
  display: flex; align-items: center; gap: 6px; min-width: 0; height: 44px;
  padding: 0 8px 0 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color .16s, background .16s, box-shadow .16s;
}
.plan-field:focus-within {
  border-color: rgba(255,53,53,.55);
  background: rgba(255,53,53,.05);
  box-shadow: 0 0 0 3px rgba(255,53,53,.10);
}
.plan-num {
  flex: 1; min-width: 0; width: 100%; height: 100%;
  border: 0; background: transparent; padding: 0; margin: 0;
  color: #fff; font-family: var(--font);
  font-size: 15px; font-weight: 800; letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield; appearance: textfield;
}
.plan-num:focus { outline: none; box-shadow: none; }
.plan-num::-webkit-outer-spin-button,
.plan-num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.plan-num::placeholder { color: var(--text-muted); font-weight: 600; }
.plan-unit, .plan-cur {
  flex-shrink: 0; font-size: 11px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted);
}
.plan-cur { text-transform: none; font-size: 13px; letter-spacing: 0; }
.plan-inf {
  display: none; flex: 1; min-width: 0; align-items: center; gap: 6px;
  font-weight: 800; font-size: 14px; color: #fff; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.plan-inf .ico { width: 17px; height: 17px; opacity: 1; color: var(--accent); flex-shrink: 0; }
.plan-life {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px;
  display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--border); background: rgba(255,255,255,.05);
  color: var(--text-muted); font-size: 16px; font-weight: 800; line-height: 1;
  font-family: var(--font); padding: 0;
  transition: color .16s, border-color .16s, background .16s, box-shadow .16s;
}
.plan-life:hover { color: #fff; border-color: rgba(255,53,53,.45); }
.plan-life[aria-pressed="true"] {
  color: #ff8a8a; border-color: rgba(255,53,53,.55);
  background: rgba(255,53,53,.16);
  box-shadow: 0 0 14px rgba(255,53,53,.22);
}
.plan-row.is-life .plan-days,
.plan-row.is-life .plan-unit { display: none; }
.plan-row.is-life .plan-inf { display: flex; }
.plan-row.is-life .plan-field:first-child {
  border-color: rgba(255,53,53,.35); background: rgba(255,53,53,.07);
}
.plan-del {
  width: 44px; height: 44px; border-radius: 10px; cursor: pointer;
  display: grid; place-items: center; padding: 0;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: color .16s, border-color .16s, background .16s;
}
.plan-del .ico { width: 16px; height: 16px; }
.plan-del:hover { color: #ff6b6b; border-color: rgba(255,53,53,.45); background: rgba(255,53,53,.1); }
@media (max-width: 560px) {
  .plan-row { grid-template-columns: minmax(0,1fr) 44px; }
  .plan-row .plan-field:last-of-type { grid-column: 1; }
  .plan-del { grid-row: 1; grid-column: 2; height: 44px; }
}
html[data-theme="light"] .plan-field,
html[data-theme="light"] .plan-del {
  background: #f6f1ed; border-color: rgba(20,12,12,.1);
}
html[data-theme="light"] .plan-field:focus-within {
  background: #fff; border-color: rgba(255,53,53,.5);
  box-shadow: 0 0 0 3px rgba(255,53,53,.08);
}
html[data-theme="light"] .plan-num { color: #1b1418; }
html[data-theme="light"] .plan-inf { color: #1b1418; }
html[data-theme="light"] .plan-unit, html[data-theme="light"] .plan-cur { color: #6a6370; }
html[data-theme="light"] .plan-life { background: #fff; border-color: rgba(20,12,12,.1); color: #6a6370; }
html[data-theme="light"] .plan-life:hover { color: #c01010; border-color: rgba(255,53,53,.4); }
html[data-theme="light"] .plan-life[aria-pressed="true"] {
  color: #c01010; background: rgba(255,53,53,.12); border-color: rgba(255,53,53,.45);
}
html[data-theme="light"] .plan-row.is-life .plan-field:first-child {
  background: rgba(255,53,53,.06); border-color: rgba(255,53,53,.3);
}
html[data-theme="light"] .plan-del:hover { background: rgba(255,53,53,.1); border-color: rgba(255,53,53,.4); color: #c01010; }

.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; }
}

#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);
}

/* ===== 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: pulseRing 1.4s ease-out infinite; }
@keyframes pulseRing {
  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); }
}

.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: pulseRing 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"] .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 {
  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"] .dash-empty,
html[data-theme="light"] .dash-studio,
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"] .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"] .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; }
  .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;
}


/* ===== Setup guide =====
   One card in the dashboard flow. It replaced a floating fixed-position tip
   whose action button fought the page for scroll position. */
.guide {
  position: relative;
  display: grid; grid-template-columns: minmax(0,1fr) auto;
  align-items: center; gap: 18px;
  margin: 0 0 16px; padding: 16px 18px 16px 20px;
  border-radius: 16px; overflow: hidden;
  background: linear-gradient(120deg, rgba(255,53,53,.11), rgba(255,53,53,.03) 48%, rgba(255,255,255,.02));
  border: 1px solid rgba(255,53,53,.28);
  box-shadow: 0 18px 40px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.05);
}
.guide[hidden] { display: none !important; }
.guide-rail {
  position: absolute; top: 0; bottom: 0; left: 0; width: 3px;
  background: linear-gradient(180deg, #ff3535, rgba(255,53,53,0));
}
.guide-body { min-width: 0; }
.guide-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.guide-kicker { font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.guide-step {
  font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--text-muted);
  padding: 2px 7px; border-radius: 6px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
}
.guide-title { display: block; font-size: 16px; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.guide-sub { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: var(--text-muted); max-width: 62ch; }
.guide-track { display: flex; gap: 4px; margin-top: 10px; }
.guide-seg {
  height: 3px; width: 34px; border-radius: 2px; background: rgba(255,255,255,.12);
  transition: background .25s, box-shadow .25s;
}
.guide-seg.done { background: rgba(255,53,53,.38); }
.guide-seg.on { background: #ff3535; box-shadow: 0 0 10px rgba(255,53,53,.6); }
.guide-actions { display: flex; flex-direction: column; align-items: stretch; gap: 6px; flex-shrink: 0; }
.guide-go { white-space: nowrap; min-height: 40px; }
.guide-skip {
  background: none; border: 0; cursor: pointer; padding: 2px 4px;
  color: var(--text-muted); font-family: var(--font); font-size: 12px; font-weight: 700;
}
.guide-skip:hover { color: #fff; text-decoration: underline; }
@media (max-width: 860px) {
  .guide { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .guide-actions { flex-direction: row; align-items: center; }
  .guide-go { flex: 1; justify-content: center; }
}
html[data-theme="light"] .guide {
  background: linear-gradient(120deg, rgba(255,53,53,.09), rgba(255,53,53,.02) 50%, #fff);
  border-color: rgba(255,53,53,.28);
  box-shadow: 0 12px 30px rgba(40,16,16,.08), inset 0 1px 0 #fff;
}
html[data-theme="light"] .guide-title { color: #1b1418; }
html[data-theme="light"] .guide-sub { color: #6a6370; }
html[data-theme="light"] .guide-step { background: rgba(0,0,0,.04); border-color: rgba(0,0,0,.08); color: #6a6370; }
html[data-theme="light"] .guide-seg { background: rgba(0,0,0,.1); }
html[data-theme="light"] .guide-skip:hover { color: #1b1418; }
#btnTogglePublish:disabled {
  opacity: .45; cursor: not-allowed; filter: grayscale(.2);
}


/* ===== 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; }

.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"] .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; }
/* Report controls — one shared look for profile, listing and comment rows. */
.rep-btn, .rep-chip {
  display: inline-flex; align-items: center; gap: 7px;
  cursor: pointer; font-family: var(--font); font-weight: 700;
  color: var(--text-muted);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  transition: color .16s, border-color .16s, background .16s, box-shadow .16s;
}
.rep-btn { height: 34px; padding: 0 12px; border-radius: 10px; font-size: 12.5px; }
.rep-chip {
  margin-left: auto; height: 28px; padding: 0 10px; border-radius: 8px; font-size: 11.5px;
}
.rep-btn .ico, .rep-chip .ico { width: 14px; height: 14px; opacity: 1; flex-shrink: 0; }
.rep-btn:hover, .rep-chip:hover {
  color: #ff8a8a; border-color: rgba(255,53,53,.45);
  background: rgba(255,53,53,.10);
  box-shadow: 0 0 18px rgba(255,53,53,.14);
}
html[data-theme="light"] .rep-btn, html[data-theme="light"] .rep-chip {
  background: #f6f1ed; border-color: rgba(20,12,12,.1); color: #6a6370;
}
html[data-theme="light"] .rep-btn:hover, html[data-theme="light"] .rep-chip:hover {
  color: #c01010; background: rgba(255,53,53,.08); border-color: rgba(255,53,53,.4);
  box-shadow: none;
}
.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;
}
/* v48: wallet cash hero — big balance + two proper action buttons */
.cash-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(255,53,53,.10), transparent 45%),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px; padding: 20px 22px;
}
.cash-hero-bal { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cash-hero-lbl { color: var(--text-muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.cash-hero-amt { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.cash-hero-pend { color: var(--text-muted); font-size: 12.5px; font-weight: 600; }
.cash-hero-actions { display: flex; gap: 12px; flex: 1 1 340px; justify-content: flex-end; flex-wrap: wrap; }
.cash-cta {
  flex: 1 1 170px; min-width: 160px;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 16px; cursor: pointer; font-family: var(--font);
  border: 1px solid transparent; color: #fff; text-align: left;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.cash-cta:active { transform: translateY(1px); }
.cash-cta-ico {
  width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; flex-shrink: 0;
}
.cash-cta-ico .ico { width: 20px; height: 20px; }
.cash-cta-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cash-cta-txt b { font-size: 15.5px; font-weight: 800; letter-spacing: -0.01em; }
.cash-cta-txt small { font-size: 11.5px; font-weight: 600; opacity: .78; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cash-cta-go { margin-left: auto; opacity: .65; width: 16px; height: 16px; flex-shrink: 0; }
.cash-cta.withdraw {
  background: linear-gradient(135deg, #ff4d4d, #c81e3c);
  box-shadow: 0 10px 26px -14px rgba(255,53,53,.65), inset 0 1px 0 rgba(255,255,255,.18);
}
.cash-cta.withdraw .cash-cta-ico { background: rgba(255,255,255,.16); color: #fff; }
.cash-cta.withdraw:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -12px rgba(255,53,53,.75), inset 0 1px 0 rgba(255,255,255,.22); }
.cash-cta.topup { background: rgba(255,255,255,.05); border-color: rgba(74,222,128,.35); color: #eafff1; }
.cash-cta.topup .cash-cta-ico { background: rgba(46,204,113,.15); color: #4ade80; }
.cash-cta.topup:hover { transform: translateY(-1px); border-color: rgba(74,222,128,.6); box-shadow: 0 12px 26px -16px rgba(46,204,113,.5); }
@media (max-width: 640px) {
  .cash-hero { flex-direction: column; align-items: stretch; }
  .cash-hero-actions { justify-content: stretch; }
}
html[data-theme="light"] .cash-hero { background: linear-gradient(180deg, #fff, #faf7f7); border-color: rgba(20,12,12,.08); }
html[data-theme="light"] .cash-hero-amt { color: #1b1418; }
html[data-theme="light"] .cash-hero-lbl, html[data-theme="light"] .cash-hero-pend { color: #6a6370; }
html[data-theme="light"] .cash-cta.topup { background: #fff; color: #1b1418; border-color: rgba(22,163,74,.35); box-shadow: 0 6px 18px rgba(40,16,16,.06); }
.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; }
.rev-del {
  margin-left: auto; width: 26px; height: 26px; border-radius: 8px;
  display: grid; place-items: center; cursor: pointer;
  background: none; border: 1px solid transparent;
  color: #6d758c; font-size: 16px; line-height: 1; font-family: var(--font);
  transition: color .16s, background .16s, border-color .16s;
}
.rev-del:hover { color: #ff6b6b; background: rgba(255,53,53,.12); border-color: rgba(255,53,53,.35); }
.rev-del + .rep-chip { margin-left: 6px; }
.header-inner { min-width: 0; }
.header-right { min-width: 0; }

html.is-chrome .blob, html.is-chrome .bg-grid { animation: none !important; }
html.is-chrome .hw-step { animation: none !important; }
html.is-chrome .card-panel, html.is-chrome .hw-step, html.is-chrome .site-top {
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
}
.wd-card {
  background: linear-gradient(135deg, #1a1d2c, #3a1020);
  border: 1px solid rgba(255,53,53,.35);
  border-radius: 16px; padding: 16px 18px; margin: 0 0 14px;
  min-height: 132px; color: #fff;
}
.wd-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.wd-brand { font-weight: 800; letter-spacing: .12em; font-size: 12px; }
.wd-chip { width: 28px; height: 22px; border-radius: 4px; background: linear-gradient(135deg,#d4af37,#8a6d1f); }
.wd-card-num { font-family: ui-monospace, monospace; font-size: 18px; letter-spacing: .12em; font-weight: 700; }
.wd-card-bot { margin-top: 14px; font-size: 11px; letter-spacing: .08em; color: #c8cddb; }
.pay-methods { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.pay-method {
  border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04);
  color: #fff; border-radius: 999px; padding: 7px 12px; font-weight: 700; cursor: pointer;
}
.pay-method.on { border-color: rgba(255,53,53,.55); background: rgba(255,53,53,.16); }

.buy-confirm-hero {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 14px 4px; margin: 0 0 14px;
  border-radius: 16px;
  background: rgba(255,53,53,.08);
  border: 1px solid rgba(255,53,53,.28);
}
.buy-confirm-ico {
  width: 44px; height: 44px; border-radius: 14px; flex-shrink: 0;
  display: grid; place-items: center;
  background: rgba(255,53,53,.18); color: #ff6b6b;
  box-shadow: 0 0 18px rgba(255,53,53,.28);
}
.buy-confirm-ico .ico { width: 22px; height: 22px; }
.buy-confirm-hero .cap-body { margin: 0; color: #e8eaf2; font-weight: 650; }
.buy-confirm-actions { width: 100%; }
.buy-confirm-actions .btn-primary { flex: 1; justify-content: center; min-height: 44px; }
.buy-confirm-actions .btn-ghost { min-height: 44px; padding: 0 14px; border: 1px solid var(--border); border-radius: 10px; }
#view-pricing { max-width: 1080px; }
#view-pricing .pr-terms { margin: 14px auto 0; }
.price-card { min-height: 420px; }
.price-card .btn-primary, .price-card .btn-secondary { margin-top: auto; width: 100%; justify-content: center; min-height: 46px; }
.price-amount { letter-spacing: -0.04em; }
.trust-row { display:flex; flex-wrap:wrap; gap:8px; margin:12px 0 4px; }
.trust-row span, .trust-mini {
  display:inline-flex; align-items:center; gap:6px;
  font-size:11px; font-weight:800; color:#c5cad8;
  padding:5px 10px; border-radius:999px;
  background:rgba(46,204,113,.08); border:1px solid rgba(46,204,113,.22);
}
.trust-mini { margin-top:8px; font-size:10px; }
.trust-row .ico, .trust-mini .ico { width:12px; height:12px; color:#2ecc71; }
.rf-card {
  display:flex; align-items:center; gap:10px; flex-wrap:wrap;
  padding:12px; border-radius:14px;
  background:rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.08);
}
.rf-ico {
  width:40px; height:40px; border-radius:12px; display:grid; place-items:center;
  background:rgba(255,53,53,.12); color:#ff6b6b; flex-shrink:0;
}

/* ===== v33: compact footer, refund center, terms, password checklist ===== */

/* --- compact footer --- */
.site-footer { padding: 8px 20px 6px !important; }
.ft-grid {
  display: flex !important; align-items: center; gap: 18px; flex-wrap: wrap;
  max-width: 1400px; margin: 0 auto !important; grid-template-columns: none !important;
}
.ft-brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.ft-brand .brand-title { font-size: 15px !important; }
.ft-brand p, .ft-status { display: none !important; }
.site-footer h4 { display: none !important; }
.ft-grid > div { display: contents !important; }
.ft-link { display: inline-block !important; padding: 6px 2px !important; font-size: 12px !important; white-space: nowrap; }
.ft-bar { display: none !important; }
@media (max-width: 640px) {
  .ft-grid { gap: 4px 14px; }
  .ft-brand { width: 100%; margin: 0 0 2px; }
}

/* --- refund modal --- */
.refund-card { max-width: 540px; max-height: 92vh; overflow-y: auto; }
#rfBody { display: flex; flex-direction: column; gap: 14px; }
.rf-sum {
  padding: 14px 16px; border-radius: 16px;
  background: rgba(255,53,53,.07); border: 1px solid rgba(255,53,53,.22);
}
.rf-sum-name { font-size: 17px; font-weight: 800; margin-bottom: 10px; }
.rf-sum-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rf-sum-rows > div {
  display: flex; flex-direction: column; gap: 2px;
  background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px; padding: 8px 12px;
}
.rf-sum-rows span { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; }
.rf-sum-rows b { font-size: 16px; }
.rf-reasons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rf-reason {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  padding: 10px 12px; border-radius: 12px; cursor: pointer; text-align: left;
  background: rgba(255,255,255,.03); border: 1px solid var(--border);
  color: #fff; font-family: var(--font);
}
.rf-reason b { font-size: 13px; }
.rf-reason span { font-size: 11px; color: var(--text-muted); line-height: 1.35; }
.rf-reason:hover { border-color: rgba(255,53,53,.4); }
.rf-reason.on { border-color: var(--accent); background: rgba(255,53,53,.13); box-shadow: 0 0 14px rgba(255,53,53,.18); }
.rf-comment { resize: vertical; min-height: 64px; }
.rf-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 2px; }
.rf-actions .btn-primary, .rf-actions .btn-secondary, .rf-actions .btn-ghost { min-height: 42px; }
.rf-status {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 14px; border-radius: 14px;
}
.rf-status .ico { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }
.rf-status b { display: block; font-size: 14px; margin-bottom: 2px; }
.rf-status p { margin: 0; font-size: 12px; color: var(--text-muted); line-height: 1.45; }
.rf-status.pend { background: rgba(241,196,15,.08); border: 1px solid rgba(241,196,15,.3); }
.rf-status.pend .ico { color: #f1c40f; }
.rf-status.deny { background: rgba(255,53,53,.08); border: 1px solid rgba(255,53,53,.3); }
.rf-status.deny .ico { color: #ff6b6b; }

/* --- refund cards (wallet + project page) --- */
.rf2-title { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #d0d4e0; margin: 2px 0 10px; }
.rf2-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 14px; border-radius: 16px; margin-bottom: 10px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.09);
}
.rf2-top { display: flex; align-items: center; gap: 12px; }
.rf2-main { flex: 1; min-width: 0; }
.rf2-main b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rf2-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.rf2-amt { font-size: 16px; font-weight: 800; white-space: nowrap; }
.rf2-reason {
  display: flex; gap: 8px; align-items: flex-start;
  font-size: 13px; color: #c5cad8; line-height: 1.45;
  background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px; padding: 8px 10px;
}
.rf2-reason .ico { width: 15px; height: 15px; flex-shrink: 0; margin-top: 2px; color: #8b93a7; }
.rf2-actions { display: flex; gap: 8px; align-items: center; }
.rf2-actions .rf-ok { flex: 1; justify-content: center; }
.rf2-actions .rf-deny { flex: 1; justify-content: center; }
.rf2-status { font-size: 12px; font-weight: 800; padding: 6px 12px; border-radius: 999px; }
.rf2-status.pending { color: #f7d774; background: rgba(241,196,15,.1); border: 1px solid rgba(241,196,15,.3); }
.rf2-status.approved { color: #7dffa8; background: rgba(46,204,113,.1); border: 1px solid rgba(46,204,113,.3); }
.rf2-status.denied { color: #ff8a8a; background: rgba(255,53,53,.1); border: 1px solid rgba(255,53,53,.3); }
.rf2-actions .btn-ghost, .rf2-actions .btn-secondary { margin-left: auto; }
#ownerRefunds .rf2-actions { flex-direction: column; align-items: stretch; }
#ownerRefunds .rf2-actions .btn-ghost, #ownerRefunds .rf2-actions .btn-secondary,
#ownerRefunds .rf2-actions .rf-ok, #ownerRefunds .rf2-actions .rf-deny { width: 100%; margin-left: 0; }
#ownerRefunds .rf2-top { align-items: flex-start; }

/* --- terms checkbox --- */
.terms-row {
  display: flex; gap: 10px; align-items: flex-start;
  margin: 12px 0; padding: 10px 12px; border-radius: 12px;
  background: rgba(255,255,255,.03); border: 1px solid var(--border);
  cursor: pointer; font-size: 13px; line-height: 1.5; color: #c5cad8;
}
.terms-check { position: absolute; opacity: 0; pointer-events: none; }
.terms-box {
  width: 20px; height: 20px; border-radius: 7px; flex-shrink: 0; margin-top: 1px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.2);
  color: transparent; transition: all .15s;
}
.terms-box svg { width: 14px; height: 14px; }
.terms-row:has(.terms-check:checked) .terms-box {
  background: rgba(255,53,53,.2); border-color: var(--accent); color: #ff6b6b;
  box-shadow: 0 0 10px rgba(255,53,53,.3);
}
.terms-row:has(.terms-check:focus-visible) .terms-box { outline: 2px solid var(--accent); outline-offset: 2px; }
.terms-txt a { color: #ff6b6b; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.terms-txt a:hover { color: #ff8a8a; }
.auth-ghint { margin-top: 10px; }
.auth-ghint a { color: #ff6b6b; font-weight: 700; }

/* --- password checklist --- */
.pw-check {
  list-style: none; margin: 0 0 4px; padding: 10px 12px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px;
  background: rgba(255,255,255,.02); border: 1px solid var(--border); border-radius: 12px;
}
.pw-check li { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--text-muted); }
.pw-check li i {
  width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0;
  border: 1.5px solid #4a5168; position: relative; transition: all .15s;
}
.pw-check li.ok { color: #7dffa8; }
.pw-check li.ok i { border-color: #2ecc71; background: rgba(46,204,113,.2); }
.pw-check li.ok i::after {
  content: ''; position: absolute; left: 4px; top: 1.5px;
  width: 3px; height: 6px; border: solid #7dffa8; border-width: 0 2px 2px 0; transform: rotate(42deg);
}

/* --- light theme for new blocks --- */
html[data-theme="light"] .rf-sum { background: rgba(255,53,53,.06); }
html[data-theme="light"] .rf-sum-rows > div { background: rgba(255,255,255,.7); }
html[data-theme="light"] .rf-reason { background: #fff; color: #1b1418; }
html[data-theme="light"] .terms-row { background: #fff; color: #4a4450; }
html[data-theme="light"] .pw-check { background: #fff; }
html[data-theme="light"] .rf2-card { background: #fff; }
html[data-theme="light"] .rf2-reason { background: #f4f2f6; color: #4a4450; }

/* hidden must win over component display */
.terms-row[hidden], .pw-check[hidden] { display: none !important; }

/* ===== v44: compact footer, cropper, mod queue, account, notifs ===== */

/* --- footer redesign: slim single-row --- */
.site-footer {
  margin-top: 56px !important;
  padding: 0 20px 18px !important;
  background: transparent !important;
  border-top: 0 !important;
  flex: 0 0 auto;
}
.site-footer .ft-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 14px 16px 12px;
  border-radius: 16px;
  background: rgba(12,14,22,.72);
  border: 1px solid rgba(255,255,255,.07);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.ft-brand-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 8px;
}
.ft-logo { display: inline-flex; align-items: center; gap: 8px; }
.ft-mark {
  width: 28px; height: 28px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,53,53,.14); border: 1px solid rgba(255,53,53,.35);
  color: #ff4d4d;
}
.ft-logo .brand-title { font-size: 14px !important; font-weight: 800; color: #fff; }
.ft-logo .brand-title span { color: #ff3535; }
.ft-tagline { color: #7a8296; font-size: 12px; font-weight: 600; }
.ft-nav {
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px 2px;
}
.ft-sep {
  width: 1px; height: 14px; background: rgba(255,255,255,.12);
  margin: 0 6px; flex-shrink: 0;
}
.ft-bar { margin-top: 8px !important; padding-top: 8px !important; }
.ft-grid { display: none !important; } /* legacy */

#view-pricing {
  max-width: 1080px;
  padding-bottom: 48px !important;
  margin-bottom: 8px;
}
#view-pricing .pricing-grid { margin-bottom: 8px; }
#view-home, #view-docs, #view-explore, #view-settings {
  padding-bottom: 24px;
}

/* --- cropper discord-style --- */
.crop-card { max-width: 680px !important; width: min(680px, calc(100vw - 24px)); }
.crop-stage {
  position: relative; height: 400px !important; border-radius: 16px; overflow: hidden;
  background: radial-gradient(ellipse at center, #141824 0%, #07090f 100%) !important;
  border: 1px solid rgba(255,255,255,.1) !important;
  touch-action: none; cursor: grab;
  box-shadow: inset 0 0 40px rgba(0,0,0,.35);
}
.crop-stage:active { cursor: grabbing; }
#cropCanvas { display: block; width: 100%; height: 100%; }
.crop-zoom-row {
  display: flex; align-items: center; gap: 10px; margin-top: 12px;
  color: #8b93a7;
}
.crop-zoom-row .ico { width: 16px; height: 16px; flex-shrink: 0; }
#cropZoom { width: 100%; margin: 0; accent-color: #ff3535; }

/* --- mod queue --- */
.mod-queue { display: flex; flex-direction: column; gap: 12px; }
.mod-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px; padding: 14px 16px;
}
.mod-card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.mod-card-meta b { display: block; font-size: 15px; color: #fff; }
.mod-desc { color: #9aa3b8; font-size: 13px; line-height: 1.45; margin: 0 0 10px; }
.mod-shots { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.mod-shot {
  width: 88px; height: 56px; border-radius: 10px;
  background-size: cover; background-position: center;
  border: 1px solid rgba(255,255,255,.1);
}
.mod-script-prev {
  background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px; padding: 10px 12px; margin-bottom: 12px;
  max-height: 72px; overflow: hidden;
}
.mod-script-prev code {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 11.5px; color: #c5cad8; white-space: pre-wrap; word-break: break-word;
}
.mod-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.mod-actions .btn-primary, .mod-actions .btn-secondary, .mod-actions .btn-ghost {
  min-height: 36px; font-size: 12.5px;
}
.btn-ghost.danger { color: #ff6b6b; }
.btn-ghost.danger:hover { background: rgba(255,53,53,.12); }

/* --- account modal --- */
.account-card { max-width: 480px; }
.acc-tabs {
  display: flex; gap: 4px; padding: 4px; margin-bottom: 14px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07);
  border-radius: 12px;
}
.acc-tab {
  flex: 1; border: 0; background: transparent; color: #9aa3b8;
  font-weight: 800; font-size: 13px; padding: 9px 10px; border-radius: 9px;
  cursor: pointer; font-family: var(--font);
}
.acc-tab.on { background: rgba(255,53,53,.16); color: #fff; }
.acc-pane { display: none; }
.acc-pane.on { display: block; }
.acc-block {
  margin: 14px 0; padding: 14px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
}
.acc-block h4 { margin: 0 0 10px; font-size: 13px; font-weight: 800; color: #fff; letter-spacing: .02em; }

/* --- richer notifications --- */
.notif-drop { width: min(380px, calc(100vw - 16px)) !important; }
.notif-head { display: flex !important; justify-content: space-between; align-items: flex-start; gap: 8px; }
.notif-head-l { display: flex; flex-direction: column; gap: 2px; }
.notif-head-sub { font-size: 11px; font-weight: 600; color: #6d758c; }
.notif-item {
  display: grid !important; grid-template-columns: 40px 1fr; gap: 10px;
  align-items: start; text-align: left;
  padding: 12px !important; border-radius: 12px !important;
}
.notif-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.notif-main b { font-size: 13px; color: #fff; line-height: 1.3; }
.notif-body { color: #9aa3b8 !important; font-size: 12.5px !important; line-height: 1.4 !important; }
.notif-meta {
  display: flex; align-items: center; gap: 8px; margin-top: 4px;
  color: #6d758c; font-size: 11px;
}
.notif-meta .comment-time { display: inline-flex; align-items: center; gap: 4px; }
.notif-meta .ico { width: 11px; height: 11px; }
.notif-kind {
  text-transform: uppercase; letter-spacing: .08em; font-weight: 800; font-size: 9px;
  padding: 2px 6px; border-radius: 999px;
  background: rgba(255,255,255,.06); color: #8b93a7;
}
.notif-ico.mod { background: rgba(46,204,113,.14); color: #2ecc71; }
.notif-ico.review { background: rgba(255,193,7,.12); color: #ffc107; }
.notif-ico.refund { background: rgba(255,53,53,.12); color: #ff6b6b; }

/* lib rebind */
.lib-actions { display: flex; flex-wrap: wrap; gap: 6px; }

html[data-theme="light"] .site-footer .ft-inner {
  background: rgba(255,255,255,.7);
  border-color: rgba(0,0,0,.08);
}
html[data-theme="light"] .ft-logo .brand-title { color: #1a1d27 !important; }
html[data-theme="light"] .ft-tagline { color: #6d758c; }
html[data-theme="light"] .mod-card,
html[data-theme="light"] .acc-block {
  background: rgba(0,0,0,.03); border-color: rgba(0,0,0,.08);
}
html[data-theme="light"] .crop-stage {
  background: radial-gradient(ellipse at center, #e8eaf0 0%, #c8cddb 100%) !important;
}

@media (max-width: 640px) {
  .ft-brand-row { gap: 8px; }
  .ft-sep { display: none; }
  .mod-actions { flex-direction: column; }
  .mod-actions .btn-primary, .mod-actions .btn-secondary, .mod-actions .btn-ghost { width: 100%; justify-content: center; }
  .crop-stage { height: 320px !important; }
}

/* ============ v44 · Account settings shell (wide, sidebar tabs) ============ */
.acc-shell { max-width: 920px; padding: 0; overflow: hidden; position: relative; }
.acc-close { position: absolute; top: 14px; right: 14px; z-index: 5; }
.acc-shell-body { display: grid; grid-template-columns: 232px 1fr; min-height: 480px; }
.acc-side {
  background: linear-gradient(180deg, rgba(255,53,53,.08), rgba(255,53,53,.02) 40%, transparent);
  border-right: 1px solid rgba(255,255,255,.07);
  padding: 26px 16px 18px; display: flex; flex-direction: column; gap: 18px;
}
.acc-side-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 4px 6px 14px; border-bottom: 1px solid rgba(255,255,255,.06); }
.acc-side-av {
  width: 64px; height: 64px; border-radius: 50%; background: rgba(255,53,53,.14) center/cover no-repeat;
  border: 2px solid rgba(255,53,53,.5); display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 22px; margin-bottom: 6px;
  box-shadow: 0 0 24px rgba(255,53,53,.25);
}
.acc-side-name { font-weight: 800; font-size: 15px; color: #fff; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-side-sub {
  font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: #ffb1b1; background: rgba(255,53,53,.12); border: 1px solid rgba(255,53,53,.3);
  padding: 3px 10px; border-radius: 99px;
}
.acc-nav { display: flex; flex-direction: column; gap: 6px; }
.acc-nav .acc-tab {
  display: flex; align-items: center; gap: 10px; width: 100%;
  background: transparent; border: 1px solid transparent; border-radius: 12px;
  color: var(--text-muted); font-size: 13.5px; font-weight: 700; cursor: pointer;
  padding: 11px 12px; transition: background .22s ease, color .22s ease, border-color .22s ease, transform .22s ease;
}
.acc-nav .acc-tab .ico { width: 17px; height: 17px; flex-shrink: 0; }
.acc-nav .acc-tab:hover { background: rgba(255,255,255,.05); color: #fff; }
.acc-nav .acc-tab.on {
  background: linear-gradient(135deg, rgba(255,53,53,.2), rgba(255,53,53,.07));
  border-color: rgba(255,53,53,.38); color: #fff;
  box-shadow: 0 0 18px rgba(255,53,53,.14); transform: translateX(2px);
}
.acc-side-foot {
  margin-top: auto; display: flex; gap: 8px; align-items: flex-start;
  font-size: 11.5px; line-height: 1.45; color: var(--text-muted);
  padding: 10px 10px 0; border-top: 1px solid rgba(255,255,255,.06);
}
.acc-side-foot .ico { width: 14px; height: 14px; flex-shrink: 0; margin-top: 1px; color: #3dff9a; }
.acc-main { padding: 26px 26px 22px; overflow-y: auto; max-height: min(78vh, 720px); }
.acc-pane { display: none; }
.acc-pane.on { display: flex; flex-direction: column; gap: 14px; animation: accPaneIn .32s cubic-bezier(.22,1,.36,1) both; }
@keyframes accPaneIn { from { opacity: 0; transform: translateY(10px) scale(.99); } to { opacity: 1; transform: none; } }
.acc-card {
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px; padding: 18px;
  transition: border-color .2s ease;
}
.acc-card:hover { border-color: rgba(255,53,53,.22); }
.acc-card h4 {
  margin: 0 0 12px; font-size: 13px; font-weight: 800; color: #fff;
  display: flex; align-items: center; gap: 8px; letter-spacing: .02em;
}
.acc-card h4 .ico { width: 15px; height: 15px; color: var(--accent); }
.acc-fields { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.acc-fields .form-group { margin-bottom: 0; }
.acc-row-btns { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-top: 14px; }
.acc-row-btns .btn-secondary { white-space: nowrap; }
.acc-code-wrap { display: flex; gap: 10px; align-items: center; flex: 1; min-width: 220px; }
.acc-code-wrap .form-input { max-width: 130px; text-align: center; letter-spacing: .22em; font-weight: 800; }
.acc-code-wrap .btn-primary { flex: 1; justify-content: center; white-space: nowrap; }
.acc-hint { margin: 12px 0 0; font-size: 12px; color: var(--text-muted); }
.acc-hint.warn { color: #f7d774; }
.acc-go { width: 100%; justify-content: center; margin-top: 14px; }
.acc-go:disabled { opacity: .45; cursor: not-allowed; filter: saturate(.4); }
.acc-priv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.acc-toggle {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px; padding: 14px; transition: border-color .2s ease, background .2s ease;
}
.acc-toggle:hover { border-color: rgba(255,255,255,.14); }
.acc-toggle input { display: none; }
.acc-toggle-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.acc-toggle-txt b { color: #fff; font-size: 13px; }
.acc-toggle-txt span { color: var(--text-muted); font-size: 12px; line-height: 1.4; }
.pw-check li[data-pw="match"] i.ok { background: rgba(46,204,113,.2); border-color: #2ecc71; }

/* ============ v44 · Edit profile shell (wide 2-col) ============ */
.prof-edit-shell { max-width: 720px; }
.prof-edit-grid { display: grid; grid-template-columns: 240px 1fr; gap: 20px; }
.prof-edit-left { display: flex; flex-direction: column; gap: 12px; }
.prof-edit-av-block { display: flex; flex-direction: column; gap: 12px; align-items: center; padding: 16px 12px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); border-radius: 16px; }
.prof-edit-av-block .ph-avatar { margin: 0; }
.prof-edit-right { display: flex; flex-direction: column; gap: 10px; }
.prof-edit-sec-k { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.prof-edit-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.prof-edit-fields .form-group { margin-bottom: 0; }
.prof-edit-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.07); }

/* ============ v44 · Profile band ============ */
.profile-band {
  display: flex; align-items: stretch; gap: 0; flex-wrap: wrap;
  background: linear-gradient(120deg, rgba(255,53,53,.09), rgba(255,255,255,.03) 45%);
  border: 1px solid rgba(255,255,255,.08); border-radius: 20px;
  padding: 16px 8px; margin: -34px 0 16px; position: relative; z-index: 3;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 18px 44px rgba(0,0,0,.35);
}
.pb-plan {
  display: flex; align-items: center; gap: 12px; padding: 6px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,53,53,.16), rgba(255,53,53,.05));
  border: 1px solid rgba(255,53,53,.35);
}
.pb-plan-ico {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, #ff3535, #b42828); color: #fff;
  box-shadow: 0 6px 18px rgba(255,53,53,.35);
}
.pb-plan-ico .ico { width: 20px; height: 20px; }
.pb-plan-v { font-size: 19px; font-weight: 900; color: #fff; letter-spacing: .01em; }
.pb-k { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.pb-v { font-size: 19px; font-weight: 800; color: #fff; margin-top: 2px; line-height: 1.1; }
.pb-plan .pb-k { color: #ffb1b1; }
.pb-stat { display: flex; align-items: center; gap: 12px; padding: 6px 20px; }
.pb-stat-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07); }
.pb-stat-ico .ico { width: 17px; height: 17px; }
.pi-heart { color: #ff6b81; background: rgba(255,107,129,.1); }
.pi-layers { color: #7bb8ff; background: rgba(123,184,255,.1); }
.pi-star { color: #f7d774; background: rgba(241,196,15,.1); }
.pi-live { color: #3dff9a; }
.pb-sep { width: 1px; background: rgba(255,255,255,.08); margin: 4px 0; }
.pb-rating { display: flex; align-items: center; gap: 8px; }
.pb-stars .ico { width: 13px; height: 13px; color: #f7d774; }
.pi-active { color: #3dff9a; }

/* ============ v44 · Buy sheet ============ */
.buy-sheet { max-width: 480px; }
.buy-sheet-hero { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 16px; background: linear-gradient(135deg, rgba(255,53,53,.13), rgba(255,255,255,.03)); border: 1px solid rgba(255,53,53,.3); margin-bottom: 14px; }
.buy-sheet-ico {
  width: 52px; height: 52px; border-radius: 15px; flex-shrink: 0; display: grid; place-items: center;
  background: linear-gradient(135deg, #ff3535, #b42828); color: #fff;
  box-shadow: 0 8px 22px rgba(255,53,53,.4);
}
.buy-sheet-ico .ico { width: 24px; height: 24px; }
.buy-sheet-q { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #ffb1b1; }
.buy-sheet-name { font-size: 17px; font-weight: 900; color: #fff; line-height: 1.25; margin-top: 2px; }
.buy-sheet-sub { font-size: 12.5px; color: var(--text-muted); margin-top: 3px; }
.buy-sheet-rows { display: flex; flex-direction: column; border: 1px solid rgba(255,255,255,.07); border-radius: 14px; overflow: hidden; margin-bottom: 14px; }
.buy-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: rgba(255,255,255,.025); }
.buy-row + .buy-row { border-top: 1px solid rgba(255,255,255,.06); }
.buy-row-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(255,255,255,.05); color: var(--text-muted); flex-shrink: 0; }
.buy-row-ico .ico { width: 15px; height: 15px; }
.buy-row-k { font-size: 13px; color: var(--text-muted); font-weight: 600; flex: 1; }
.buy-row-v { font-size: 14px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.buy-row-v.minus { color: #ff6b6b; }
.buy-row.total { background: rgba(46,204,113,.07); }
.buy-row.total .buy-row-ico { background: rgba(46,204,113,.15); color: #3dff9a; }
.buy-row.total .buy-row-k { color: #fff; font-weight: 800; }
.buy-row.total .buy-row-v { color: #3dff9a; font-size: 16px; }
.buy-terms { margin: 0 0 14px; font-size: 12px; }
.buy-terms .terms-box { width: 20px; height: 20px; border-radius: 6px; }
.buy-confirm-actions { gap: 10px; }
.buy-confirm-actions .btn-ghost { flex: 1; justify-content: center; }
.buy-confirm-actions .btn-primary { flex: 1.4; justify-content: center; }
.buy-confirm-actions .btn-primary:disabled { opacity: .45; cursor: not-allowed; filter: saturate(.4); }
.pay-terms-note { margin: 12px 0 0; font-size: 11.5px; color: var(--text-muted); text-align: center; line-height: 1.5; }
.pay-terms-note a { color: #ff8d8d; }

/* ============ v44 · Toasts drop from the top center ============ */
.toast-host {
  position: fixed; top: 18px; left: 50%; transform: translateX(-50%);
  z-index: 1400; display: flex; flex-direction: column; align-items: center; gap: 8px;
  pointer-events: none; width: min(440px, calc(100vw - 28px));
}
.hg-toast {
  opacity: 0; transform: translateY(-18px) scale(.97);
  transition: opacity .3s cubic-bezier(.22,1,.36,1), transform .3s cubic-bezier(.22,1,.36,1);
  width: 100%;
}
.hg-toast.show { opacity: 1; transform: translateY(0) scale(1); }

/* ============ v44 · Big step numbers on Home ============ */
.hw-top { align-items: flex-start; margin-bottom: 16px; }
.hw-n {
  font-size: 44px !important; font-weight: 900 !important; line-height: .9 !important; letter-spacing: -.02em !important;
  background: linear-gradient(135deg, #ff5c5c 10%, #b42828 90%) !important;
  -webkit-background-clip: text !important; background-clip: text !important;
  -webkit-text-fill-color: transparent !important; color: transparent !important;
  font-family: var(--font) !important;
  text-shadow: none !important;
}
html[data-theme="light"] .hw-n {
  background: linear-gradient(135deg, #ff3535, #b42828) !important;
  -webkit-background-clip: text !important; background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* ============ v44 · HWID claim reveal ============ */
#pubClaimBox { display: none; }
#pubClaimBox.on { display: block; animation: claimIn .5s cubic-bezier(.22,1,.36,1) both; transform-origin: top; }
@keyframes claimIn {
  from { opacity: 0; transform: translateY(-14px) scaleY(.96); max-height: 0; margin-top: -18px; }
  60% { max-height: 1200px; }
  to { opacity: 1; transform: none; max-height: 2000px; margin-top: 18px; }
}

/* ============ v44 · Mail view ============ */
.mail-shell { max-width: 1080px; }
.mail-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.mail-head-actions { display: flex; gap: 8px; }
.mail-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.mail-search { flex: 1; min-width: 220px; }
.mail-filters-btn { white-space: nowrap; gap: 8px; }
.mail-filters-chev { transition: transform .25s ease; width: 14px; height: 14px; }
.mail-filters-btn.open .mail-filters-chev { transform: rotate(180deg); }
.mail-filters-count {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px;
  background: rgba(255,53,53,.2); border: 1px solid rgba(255,53,53,.45);
  color: #ffb1b1; font-size: 11px; font-weight: 800; display: grid; place-items: center;
}
.mail-filters { overflow: hidden; }
.mail-filters-in {
  display: grid; grid-template-columns: 1.5fr 1fr auto; gap: 18px; align-items: start;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px; padding: 16px 18px; margin-bottom: 12px;
  animation: accPaneIn .3s cubic-bezier(.22,1,.36,1) both;
}
.mf-k { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px; }
.mf-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.mf-cat {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09);
  border-radius: 99px; padding: 7px 13px; font-size: 12.5px; font-weight: 700; color: var(--text-muted);
  transition: all .18s ease; user-select: none;
}
.mf-cat:hover { border-color: rgba(255,255,255,.2); color: #fff; }
.mf-cat input { display: none; }
.mf-cat.on { background: rgba(255,53,53,.16); border-color: rgba(255,53,53,.45); color: #fff; }
.mf-dates { display: flex; gap: 10px; }
.mf-date { display: flex; flex-direction: column; gap: 5px; flex: 1; }
.mf-date label { font-size: 11.5px; color: var(--text-muted); font-weight: 700; }
.mf-date .form-input { padding: 8px 10px; font-size: 13px; }
.mf-actions { align-self: flex-end; }
.mail-layout { display: grid; grid-template-columns: minmax(300px, 380px) 1fr; gap: 14px; align-items: start; }
.mail-list {
  display: flex; flex-direction: column; gap: 8px; max-height: 70vh; overflow-y: auto;
  padding-right: 2px;
}
.mail-item {
  display: flex; gap: 12px; align-items: flex-start; text-align: left; cursor: pointer;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px; padding: 13px 14px; transition: border-color .18s ease, background .18s ease, transform .18s ease;
  animation: accPaneIn .3s ease both;
}
.mail-item:hover { border-color: rgba(255,53,53,.3); transform: translateX(2px); }
.mail-item.on { border-color: rgba(255,53,53,.5); background: rgba(255,53,53,.07); }
.mail-item.read { opacity: .62; }
.mail-item.read:hover { opacity: .9; }
.mail-av {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center;
  font-weight: 800; font-size: 15px; color: #fff; position: relative;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
}
.mail-av .ico { width: 18px; height: 18px; }
.mail-av.av-security { color: #3dff9a; background: rgba(46,204,113,.12); }
.mail-av.av-purchase { color: #7bb8ff; background: rgba(123,184,255,.12); }
.mail-av.av-sale { color: #3dff9a; background: rgba(46,204,113,.12); }
.mail-av.av-wallet { color: #f7d774; background: rgba(241,196,15,.12); }
.mail-av.av-review { color: #f7d774; background: rgba(241,196,15,.12); }
.mail-av.av-moderation { color: #c9a7ff; background: rgba(167,107,255,.12); }
.mail-av.av-system { color: #ff8d8d; background: rgba(255,53,53,.12); }
.mail-item-dot {
  position: absolute; right: -3px; top: -3px; width: 11px; height: 11px; border-radius: 50%;
  background: #ff3535; box-shadow: 0 0 10px rgba(255,53,53,.8); border: 2px solid #10121c;
}
.mail-item-txt { flex: 1; min-width: 0; }
.mail-item-top { display: flex; align-items: baseline; gap: 8px; }
.mail-item-title { font-size: 13.5px; font-weight: 800; color: #fff; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-item.read .mail-item-title { font-weight: 600; }
.mail-item-time { font-size: 11px; color: var(--text-muted); white-space: nowrap; flex-shrink: 0; }
.mail-item-prev { font-size: 12px; color: var(--text-muted); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-item-from { font-size: 11px; color: #9aa3b8; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-read {
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07);
  border-radius: 18px; min-height: 320px; padding: 24px;
}
.mail-read-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; height: 300px; color: var(--text-muted); }
.mail-read-empty .ico { width: 42px; height: 42px; opacity: .5; }
.mail-read-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 6px; }
.mail-read-title { font-size: 19px; font-weight: 900; color: #fff; line-height: 1.3; }
.mail-read-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 10px 0 18px; }
.mail-cat-chip {
  font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 99px; background: rgba(255,255,255,.06); color: var(--text-muted);
}
.mail-read-time { font-size: 12px; color: var(--text-muted); }
.mail-read-body { font-size: 14px; color: #d7dbe8; line-height: 1.65; white-space: pre-wrap; word-break: break-word; }
.mail-read-actions { display: flex; gap: 8px; margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.07); }
.mail-empty-list { padding: 40px 20px; text-align: center; color: var(--text-muted); font-size: 13px; }
.mail-gate { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 70px 20px; }
.nav-mail-wrap { display: inline-flex; align-items: center; gap: 7px; }
.nav-mail-badge {
  min-width: 17px; height: 17px; padding: 0 5px; border-radius: 99px;
  background: #ff3535; color: #fff; font-size: 10px; font-weight: 800;
  display: grid; place-items: center; line-height: 1;
}

/* Mail light theme */
html[data-theme="light"] .acc-side { background: linear-gradient(180deg, rgba(255,53,53,.06), transparent); border-right-color: rgba(0,0,0,.08); }
html[data-theme="light"] .acc-card, html[data-theme="light"] .acc-toggle, html[data-theme="light"] .mail-item,
html[data-theme="light"] .mail-read, html[data-theme="light"] .mail-filters-in { background: rgba(0,0,0,.025); border-color: rgba(0,0,0,.08); }
html[data-theme="light"] .acc-side-name, html[data-theme="light"] .acc-toggle-txt b, html[data-theme="light"] .pb-v,
html[data-theme="light"] .mail-item-title, html[data-theme="light"] .mail-read-title, html[data-theme="light"] .mail-item:not(.read) .mail-item-title { color: #1b1418; }
html[data-theme="light"] .acc-nav .acc-tab.on { background: rgba(255,53,53,.1); }
html[data-theme="light"] .profile-band { background: linear-gradient(120deg, rgba(255,53,53,.07), rgba(0,0,0,.02)); border-color: rgba(0,0,0,.08); }
html[data-theme="light"] .pb-sep { background: rgba(0,0,0,.1); }
html[data-theme="light"] .buy-sheet-hero { background: rgba(255,53,53,.06); }
html[data-theme="light"] .mf-cat { background: rgba(0,0,0,.03); border-color: rgba(0,0,0,.1); }
html[data-theme="light"] .mf-cat.on { background: rgba(255,53,53,.12); color: #1b1418; }

/* Responsive */
@media (max-width: 900px) {
  .acc-shell-body { grid-template-columns: 1fr; }
  .acc-side { border-right: none; border-bottom: 1px solid rgba(255,255,255,.07); flex-direction: row; align-items: center; flex-wrap: wrap; }
  .acc-side-head { border-bottom: none; border-right: 1px solid rgba(255,255,255,.06); flex-direction: row; padding: 12px 14px; }
  .acc-side-av { width: 44px; height: 44px; font-size: 16px; margin: 0; }
  .acc-side-name, .acc-side-sub { text-align: left; }
  .acc-nav { flex-direction: row; flex: 1; }
  .acc-nav .acc-tab { flex: 1; justify-content: center; }
  .acc-nav .acc-tab.on { transform: none; }
  .acc-side-foot { display: none; }
  .acc-main { padding: 18px; max-height: none; }
  .prof-edit-grid { grid-template-columns: 1fr; }
  .mail-layout { grid-template-columns: 1fr; }
  .mail-list { max-height: 44vh; }
  .mail-filters-in { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .acc-fields { grid-template-columns: 1fr; }
  .acc-priv-grid { grid-template-columns: 1fr; }
  .acc-row-btns { flex-direction: column; align-items: stretch; }
  .acc-code-wrap { min-width: 0; }
  .profile-band { grid-template-columns: 1fr 1fr; display: grid; gap: 10px; }
  .pb-plan { grid-column: 1 / -1; }
  .pb-sep { display: none; }
  .pb-stat { padding: 8px 12px; }
  .prof-edit-fields { grid-template-columns: 1fr; }
  .mail-toolbar { flex-direction: column; align-items: stretch; }
}
.pw-check li.bad { color: #ff8d8d; }
.pw-check li.bad i { border-color: rgba(255,53,53,.6); background: rgba(255,53,53,.14); }
/* Terms links inside checkboxes / notes */
.terms-txt a, .pay-terms-note a { color: #ff8d8d; text-decoration: underline; text-underline-offset: 2px; }
.terms-txt a:hover, .pay-terms-note a:hover { color: #ffb1b1; }
html[data-theme="light"] .terms-txt a, html[data-theme="light"] .pay-terms-note a { color: #d23c3c; }

/* ==========================================================================
   v45 · Mail that behaves like a mail app
   ========================================================================== */

/* The list item is a <button>; its inner spans were inline boxes, so
   text-overflow never kicked in and long letters forced horizontal scroll. */
.mail-item-top, .mail-item-prev, .mail-item-from { display: block; min-width: 0; max-width: 100%; }
.mail-item-top { display: flex; align-items: baseline; gap: 8px; }
.mail-item { width: 100%; min-width: 0; max-width: 100%; overflow: hidden; font-family: var(--font); }
.mail-item-prev {
  display: -webkit-box; -webkit-box-orient: vertical;
  -webkit-line-clamp: 2; line-clamp: 2;
  white-space: normal; overflow: hidden; word-break: break-word;
  margin-top: 4px; line-height: 1.45;
}
.mail-item-from {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mail-item-badge {
  flex-shrink: 0; font-size: 9.5px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; padding: 2px 7px; border-radius: 99px;
  background: rgba(255,53,53,.16); border: 1px solid rgba(255,53,53,.4); color: #ffb1b1;
}
.mail-item.read .mail-item-badge {
  background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.1); color: var(--text-muted);
}

/* App-frame mail: the page itself never scrolls, only the list and the letter. */
#siteMain.mail-mode { overflow: hidden; }
#siteMain.mail-mode > .site-footer { display: none; }
#view-mail.view.active {
  display: flex; flex-direction: column;
  height: 100%; min-height: 0; padding-bottom: 14px;
}
#view-mail .mail-shell {
  flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column;
  max-width: 1240px; width: 100%; margin: 0 auto;
}
#view-mail .mail-head, #view-mail .mail-toolbar, #view-mail .mail-filters { flex: 0 0 auto; }
.mail-layout {
  flex: 1 1 auto; min-height: 0;
  display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 14px; align-items: stretch;
}
.mail-list {
  max-height: none; height: 100%; min-height: 0;
  overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
  padding-right: 4px;
}
.mail-read {
  height: 100%; min-height: 0; padding: 0;
  display: flex; flex-direction: column; overflow: hidden;
}
.mail-read-empty { flex: 1 1 auto; height: auto; min-height: 260px; }
.mail-read-body { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.mail-read-fixed { flex: 0 0 auto; padding: 22px 24px 0; }
.mail-read-scroll {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  padding: 0 24px 22px;
}
.mail-read-text {
  font-size: 14px; color: #d7dbe8; line-height: 1.7;
  white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere;
}
.mail-read-actions { margin-top: 20px; }

/* Letter swap animates instead of snapping in */
.mail-read-body.anim { animation: mailIn .34s cubic-bezier(.22,1,.36,1) both; }
@keyframes mailIn {
  from { opacity: 0; transform: translateY(12px) scale(.99); }
  to   { opacity: 1; transform: none; }
}
.mail-item { animation: mailRowIn .3s cubic-bezier(.22,1,.36,1) both; }
@keyframes mailRowIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }

/* Mobile: stack, but keep the "only the letter scrolls" feel */
@media (max-width: 900px) {
  #view-mail.view.active { height: auto; }
  #siteMain.mail-mode { overflow: auto; }
  .mail-layout { grid-template-columns: minmax(0, 1fr); }
  .mail-list { height: auto; max-height: 46vh; }
  .mail-read { height: auto; min-height: 320px; }
  .mail-read-scroll { overflow: visible; }
}

/* ==========================================================================
   v45 · Switches — work in any wrapper, not just .hg-switch
   ========================================================================== */
input[type="checkbox"] + .hg-switch-track { transition: background .28s cubic-bezier(.22,1,.36,1), border-color .28s ease, box-shadow .28s ease; }
input[type="checkbox"]:checked + .hg-switch-track {
  background: linear-gradient(135deg, #ff4d4d, #b42828);
  border-color: rgba(255,90,90,.85);
  box-shadow: 0 0 18px rgba(255,53,53,.4), inset 0 0 8px rgba(0,0,0,.18);
}
input[type="checkbox"]:checked + .hg-switch-track .hg-switch-knob { transform: translateX(20px); }
.hg-switch-knob { transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease; }
input[type="checkbox"]:checked + .hg-switch-track .hg-switch-knob { box-shadow: 0 2px 10px rgba(0,0,0,.4); }
input[type="checkbox"]:active + .hg-switch-track .hg-switch-knob { width: 22px; }
input[type="checkbox"]:focus-visible + .hg-switch-track { outline: 2px solid rgba(255,53,53,.7); outline-offset: 2px; }
/* keep the checkbox focusable but invisible (was display:none → not keyboard reachable) */
.acc-toggle input {
  display: block; position: absolute; opacity: 0;
  width: 1px; height: 1px; pointer-events: none; margin: 0;
}
.acc-toggle { position: relative; }
.acc-toggle.on { border-color: rgba(255,53,53,.3); background: rgba(255,53,53,.05); }
html[data-theme="light"] input[type="checkbox"] + .hg-switch-track { background: rgba(0,0,0,.1); border-color: rgba(0,0,0,.14); }
html[data-theme="light"] input[type="checkbox"]:checked + .hg-switch-track { background: linear-gradient(135deg, #ff4d4d, #c22); }

/* ==========================================================================
   v45 · Account settings — nothing overlaps the close button
   ========================================================================== */
.acc-shell { max-width: 960px; }
.acc-shell-body { grid-template-columns: 244px minmax(0, 1fr); }
/* Header strip owns the close button, so it can never sit on top of a card. */
.acc-topbar {
  grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 18px 22px; border-bottom: 1px solid rgba(255,255,255,.07);
  background: linear-gradient(180deg, rgba(255,53,53,.07), transparent);
}
.acc-topbar-t {
  display: flex; align-items: center; gap: 12px;
  font-size: 19px; font-weight: 800; color: #fff; letter-spacing: -.015em;
}
.acc-topbar-t .ico { width: 21px; height: 21px; color: var(--accent); }
.acc-topbar .close-modal-btn { position: static; }
.acc-shell > .acc-close { display: none; }
.acc-side { padding: 20px 16px 18px; }
.acc-main { padding: 20px 22px 22px; }
@media (max-width: 900px) {
  .acc-topbar { grid-column: auto; }
  .acc-shell-body { grid-template-columns: minmax(0, 1fr); }
}

/* Identity card in the sidebar — the profile photo, read-only.
   Changing it belongs on the profile page, not here. */
.acc-side-head { gap: 8px; padding: 6px 6px 16px; }
.acc-av-wrap { position: relative; width: 76px; height: 76px; }
.acc-side-av {
  width: 76px; height: 76px; font-size: 26px; margin-bottom: 0;
  background-color: rgba(255,53,53,.14); background-size: cover; background-position: center;
}
.acc-side-av.has-photo { color: transparent; }

/* Password-change steps */
.acc-step { display: none; }
.acc-step.on { display: block; animation: accPaneIn .3s cubic-bezier(.22,1,.36,1) both; }
.acc-code-row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-top: 12px; }
.acc-code-row .form-group { flex: 0 0 150px; margin: 0; }
.acc-code-row .form-input { text-align: center; letter-spacing: .3em; font-weight: 800; font-size: 16px; }
.acc-code-row .btn-primary { flex: 1; justify-content: center; white-space: nowrap; }
.acc-code-note {
  display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 12px;
  border-radius: 12px; background: rgba(46,204,113,.08); border: 1px solid rgba(46,204,113,.28);
  color: #a9f5c6; font-size: 12.5px; font-weight: 700; line-height: 1.45;
}
.acc-code-note .ico { width: 15px; height: 15px; flex-shrink: 0; }
.acc-code-note b { color: #fff; }
.acc-resend { background: none; border: 0; color: var(--accent); cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 800; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.acc-resend:disabled { color: var(--text-muted); cursor: not-allowed; text-decoration: none; }

/* The checklist used to crowd the fields above it */
#accPwCheck { margin-top: 14px; }
#accPwCheck li { min-width: 0; }
#accPwCheck li span { overflow-wrap: anywhere; }
@media (max-width: 700px) { #accPwCheck { grid-template-columns: 1fr; } }

/* ==========================================================================
   v45 · Live field validation — hints that show up while you type
   ========================================================================== */
.form-group { position: relative; }
.field-msg {
  display: flex; align-items: flex-start; gap: 6px;
  overflow: hidden; max-height: 0; opacity: 0;
  transform: translateY(-4px);
  transition: max-height .28s cubic-bezier(.22,1,.36,1), opacity .22s ease, transform .28s cubic-bezier(.22,1,.36,1), margin .28s ease;
  font-family: var(--font); font-size: 12px; font-weight: 700; line-height: 1.4;
  color: var(--text-muted); margin-top: 0;
}
.field-msg .ico { width: 13px; height: 13px; flex-shrink: 0; margin-top: 2px; }
.field-msg.show { max-height: 90px; opacity: 1; transform: none; margin-top: 7px; }
.field-msg.bad { color: #ff8d8d; }
.field-msg.ok { color: #7dffa8; }
.field-msg.warn { color: #f7d774; }

.form-group.bad .form-input,
.form-group.bad .input-basic,
.form-group.bad .password-wrapper .form-input {
  border-color: rgba(255,53,53,.75) !important;
  box-shadow: 0 0 0 3px rgba(255,53,53,.13);
  animation: fieldShake .34s cubic-bezier(.36,.07,.19,.97) both;
}
.form-group.ok .form-input,
.form-group.ok .input-basic,
.form-group.ok .password-wrapper .form-input {
  border-color: rgba(46,204,113,.6) !important;
  box-shadow: 0 0 0 3px rgba(46,204,113,.1);
}
.form-group.bad > label, .form-group.ok > label { transition: color .2s ease; }
.form-group.bad > label { color: #ff8d8d; }
.form-group.ok > label { color: #7dffa8; }
@keyframes fieldShake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-3px); }
  40%, 60% { transform: translateX(3px); }
}
@media (prefers-reduced-motion: reduce) {
  .form-group.bad .form-input { animation: none; }
}

/* Error text everywhere gets the house font and real weight */
.auth-error, .admin-form-error, .hwid-check-msg, .cap-body, .wal-hint {
  font-family: var(--font);
}
.auth-error {
  font-weight: 800; font-size: 12.5px; letter-spacing: .005em;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  max-height: 0; opacity: 0; overflow: hidden; margin-bottom: 0;
  transition: max-height .3s cubic-bezier(.22,1,.36,1), opacity .24s ease, margin .3s ease;
}
.auth-error[style*="block"], .auth-error.show {
  max-height: 200px; opacity: 1; margin-bottom: 10px;
}
.auth-error .ico { width: 14px; height: 14px; flex-shrink: 0; }
.admin-form-error { font-weight: 700; }

/* ==========================================================================
   v45 · Profile band — flat, quiet, no overlap with the hero
   ========================================================================== */
.profile-band {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px; align-items: stretch; flex-wrap: nowrap;
  margin: 16px 0 20px; padding: 0; position: static; z-index: auto;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.08); border-radius: 18px;
  overflow: hidden; backdrop-filter: none; -webkit-backdrop-filter: none;
  box-shadow: none;
}
.profile-band > * { grid-column: auto !important; }
.pb-sep { display: none; }
.pb-plan, .pb-stat {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  gap: 5px; padding: 15px 18px; margin: 0;
  background: rgba(12,14,22,.86); border: 0; border-radius: 0;
  min-width: 0; transition: background .2s ease;
}
.pb-plan:hover, .pb-stat:hover { background: rgba(20,23,34,.92); }
.pb-plan { background: rgba(255,53,53,.07); }
.pb-plan:hover { background: rgba(255,53,53,.11); }
.pb-plan-ico, .pb-stat-ico {
  width: 26px; height: 26px; border-radius: 8px; box-shadow: none;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
}
.pb-plan-ico { background: rgba(255,53,53,.16); border-color: rgba(255,53,53,.4); color: #ff8d8d; }
.pb-plan-ico .ico, .pb-stat-ico .ico { width: 14px; height: 14px; }
.pb-k { font-size: 10px; letter-spacing: .12em; }
.pb-v, .pb-plan-v { font-size: 16px; font-weight: 800; margin-top: 0; letter-spacing: -.01em; }
.pi-heart { color: #ff6b81; background: rgba(255,107,129,.1); border-color: rgba(255,107,129,.24); }
.pi-layers { color: #7bb8ff; background: rgba(123,184,255,.1); border-color: rgba(123,184,255,.24); }
.pi-star { color: #f7d774; background: rgba(241,196,15,.1); border-color: rgba(241,196,15,.24); }
.pi-live { color: #3dff9a; background: rgba(61,255,154,.1); border-color: rgba(61,255,154,.24); }
.pi-cal { color: #b39bff; background: rgba(150,120,255,.12); border-color: rgba(150,120,255,.26); }
.pb-rating { gap: 6px; }
.pb-stars { display: inline-flex; gap: 2px; align-items: center; }
.pb-stars .ico { width: 12px; height: 12px; }
.pb-rating.none #profRatingVal { color: var(--text-muted); font-weight: 700; }
/* The band used to sit on a black wash in light mode — the tiles were white
   and the gaps between them showed through as dark stripes. */
html[data-theme="light"] .profile-band { background: rgba(20,12,12,.07); border-color: rgba(20,12,12,.09); }
html[data-theme="light"] .pb-plan, html[data-theme="light"] .pb-stat { background: #fff; }
html[data-theme="light"] .pb-plan { background: rgba(255,53,53,.05); }
html[data-theme="light"] .pb-plan:hover, html[data-theme="light"] .pb-stat:hover { background: #fff; }
html[data-theme="light"] .pb-plan:hover { background: rgba(255,53,53,.09); }
html[data-theme="light"] .pb-stat-ico, html[data-theme="light"] .pb-plan-ico {
  background: rgba(20,12,12,.04); border-color: rgba(20,12,12,.08);
}
html[data-theme="light"] .pi-heart { background: rgba(255,107,129,.12); border-color: rgba(255,107,129,.3); }
html[data-theme="light"] .pi-layers { background: rgba(80,140,255,.12); border-color: rgba(80,140,255,.3); color: #2f6fd0; }
html[data-theme="light"] .pi-star { background: rgba(241,196,15,.16); border-color: rgba(241,196,15,.4); color: #a5820a; }
html[data-theme="light"] .pi-live { background: rgba(20,160,90,.1); border-color: rgba(20,160,90,.28); color: #128a4a; }
html[data-theme="light"] .pi-cal { background: rgba(120,90,255,.12); border-color: rgba(120,90,255,.3); color: #6a4fd8; }
@media (max-width: 760px) {
  .profile-band { grid-template-columns: 1fr 1fr; }
  .pb-plan { grid-column: 1 / -1 !important; }
}

/* ==========================================================================
   v45 · Screenshot lightbox
   ========================================================================== */
.pub-cover, .pub-thumbs .thumb, .pcard-cover { cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 1600; display: none;
  align-items: center; justify-content: center; padding: 48px 20px 20px;
  background: rgba(4,5,9,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.lightbox.active { display: flex; animation: lbIn .26s ease both; }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox-img {
  max-width: min(1180px, 100%); max-height: 100%;
  border-radius: 16px; border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 30px 90px rgba(0,0,0,.7);
  object-fit: contain; background: #0b0d14;
  animation: lbZoom .34s cubic-bezier(.22,1,.36,1) both;
}
@keyframes lbZoom { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.lightbox-x {
  position: absolute; top: 16px; right: 18px; width: 42px; height: 42px;
  border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #fff;
  transition: background .2s ease, transform .2s cubic-bezier(.34,1.56,.64,1);
}
.lightbox-x:hover { background: rgba(255,53,53,.85); transform: rotate(90deg); }
.lightbox-x .ico { width: 18px; height: 18px; }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); color: #fff;
  transition: background .2s ease;
}
.lightbox-nav:hover { background: rgba(255,53,53,.8); }
.lightbox-nav.prev { left: 16px; }
.lightbox-nav.next { right: 16px; }
.lightbox-nav .ico { width: 18px; height: 18px; }
.lightbox-count {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  font-size: 12px; font-weight: 800; letter-spacing: .1em; color: #c5cbe0;
  background: rgba(0,0,0,.5); padding: 5px 12px; border-radius: 99px;
  border: 1px solid rgba(255,255,255,.1);
}
@media (max-width: 640px) {
  .lightbox { padding: 56px 8px 44px; }
  .lightbox-nav { width: 38px; height: 38px; }
  .lightbox-nav.prev { left: 8px; } .lightbox-nav.next { right: 8px; }
}

/* ==========================================================================
   v45 · Notifications → Mail
   ========================================================================== */
.notif-foot {
  display: flex; gap: 8px; padding: 10px 12px;
  border-top: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.02);
}
.notif-foot .btn-ghost, .notif-foot .btn-secondary {
  flex: 1; justify-content: center; align-items: center; display: inline-flex; gap: 7px;
  font-weight: 800; font-size: 12.5px; padding: 8px 10px; border-radius: 10px;
}
.notif-foot .btn-secondary { background: rgba(255,53,53,.12); border: 1px solid rgba(255,53,53,.3); color: #fff; }
.notif-foot .btn-secondary:hover { background: rgba(255,53,53,.2); }
.notif-foot .ico { width: 14px; height: 14px; }
.notif-letter {
  display: inline-flex; align-items: center; gap: 5px; cursor: pointer;
  font-size: 11px; font-weight: 800; letter-spacing: .04em;
  padding: 3px 8px; border-radius: 99px;
  background: rgba(255,53,53,.12); border: 1px solid rgba(255,53,53,.32); color: #ffb1b1;
  transition: background .18s ease, color .18s ease;
}
.notif-letter:hover { background: rgba(255,53,53,.26); color: #fff; }
.notif-letter .ico { width: 12px; height: 12px; }
.mail-unread-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 800; color: #ffb1b1;
  background: rgba(255,53,53,.12); border: 1px solid rgba(255,53,53,.3);
  padding: 4px 11px; border-radius: 99px;
}
.mail-unread-chip.zero { color: var(--text-muted); background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.09); }

/* ==========================================================================
   v45 · Big step numbers on Home (the inline chrome block used to win)
   ========================================================================== */
.hw-n {
  font-size: 46px !important; font-weight: 900 !important; line-height: .86 !important;
  letter-spacing: -.03em !important; text-transform: none !important;
  font-family: var(--font) !important;
  background: linear-gradient(150deg, #ff6b6b 0%, #ff3535 42%, #a51f1f 100%) !important;
  -webkit-background-clip: text !important; background-clip: text !important;
  -webkit-text-fill-color: transparent !important; color: transparent !important;
  min-width: 1.1em; display: inline-block;
}
.hw-top { align-items: flex-start !important; gap: 12px; margin-bottom: 18px !important; }
.hw-ico { margin-left: auto; }
html[data-theme="light"] .hw-n {
  background: linear-gradient(150deg, #ff3535, #a51f1f) !important;
  -webkit-background-clip: text !important; background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* ==========================================================================
   v45 · Key icon reads as a key, not a gender symbol
   ========================================================================== */
#i-key circle, #i-key path { vector-effect: non-scaling-stroke; }

/* v45 · live validation: the field that is wrong says so itself */
input.shake, textarea.shake, .acc-code input.shake {
  animation: fieldShake .45s cubic-bezier(.36,.07,.19,.97) both;
}
@keyframes fieldShake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-3px); }
  40%, 60% { transform: translateX(3px); }
}
.form-error { animation: errIn .3s cubic-bezier(.22,1,.36,1) both; }
@keyframes errIn {
  from { opacity: 0; transform: translateY(-3px); }
  to   { opacity: 1; transform: none; }
}

/* ==========================================================================
   v46 · Light theme parity
   Everything the dark theme paints with white text or a dark wash needs an
   explicit light-mode counterpart, otherwise it either vanishes on white or
   shows through as a dark patch.
   ========================================================================== */
html[data-theme="light"] .acc-topbar {
  border-bottom-color: rgba(20,12,12,.08);
  background: linear-gradient(180deg, rgba(255,53,53,.06), transparent);
}
html[data-theme="light"] .acc-topbar-t { color: #1b1418; }
html[data-theme="light"] .acc-side-head { border-bottom-color: rgba(20,12,12,.08); }
html[data-theme="light"] .acc-side-foot {
  border-top-color: rgba(20,12,12,.08); color: #6a6370;
}
html[data-theme="light"] .acc-side-foot .ico { color: #128a4a; }
html[data-theme="light"] .acc-nav .acc-tab { color: #5c5660; }
html[data-theme="light"] .acc-nav .acc-tab:hover { background: rgba(0,0,0,.045); color: #1b1418; }
html[data-theme="light"] .acc-nav .acc-tab.on {
  background: linear-gradient(135deg, rgba(255,53,53,.16), rgba(255,53,53,.06));
  border-color: rgba(255,53,53,.32); color: #c01010; box-shadow: none;
}
html[data-theme="light"] .acc-card h4 { color: #1b1418; }
html[data-theme="light"] .acc-card:hover { border-color: rgba(255,53,53,.26); }
html[data-theme="light"] .acc-hint,
html[data-theme="light"] .acc-code-note { color: #6a6370; }

html[data-theme="light"] .pw-check { border-color: rgba(20,12,12,.1); }
html[data-theme="light"] .pw-check li { color: #6a6370; }
html[data-theme="light"] .pw-check li i { border-color: rgba(20,12,12,.22); }
html[data-theme="light"] .pw-check li.ok { color: #128a4a; }
html[data-theme="light"] .pw-check li.ok i { border-color: #2ecc71; background: rgba(46,204,113,.16); }
html[data-theme="light"] .pw-check li.ok i::after { border-color: #128a4a; }

html[data-theme="light"] .rev-card { background: #fff; border-color: rgba(20,12,12,.08); }
html[data-theme="light"] .rev-av, html[data-theme="light"] .pub-av {
  background-color: #f0ebe6; border-color: rgba(20,12,12,.1); color: #6a6370;
}
html[data-theme="light"] .rev-del { color: #8a8490; }

html[data-theme="light"] .notice-box { border-color: rgba(255,53,53,.2); }
html[data-theme="light"] .dash-gate-icon { background: rgba(255,53,53,.1); color: #c01010; }
html[data-theme="light"] .stat-mini .lbl,
html[data-theme="light"] .acc-side-sub { color: #6a6370; }

/* Inline "do this first" notice inside a pane (e.g. Publish without a loader) */
.inline-notice {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 14px 0 0; padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255,53,53,.08);
  border: 1px solid rgba(255,53,53,.3);
}
.inline-notice[hidden] { display: none !important; }
.inline-notice > .ico { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }
.inline-notice b { flex: 1; min-width: 0; font-size: 13px; font-weight: 800; color: #fff; }
.inline-notice .btn-secondary { flex-shrink: 0; }
html[data-theme="light"] .inline-notice {
  background: rgba(255,53,53,.06); border-color: rgba(255,53,53,.26);
}
html[data-theme="light"] .inline-notice b { color: #1b1418; }

/* ==========================================================================
   v47 · Obsidian dashboard — deep premium palette for the Control Panel
   Dark-theme only; light theme keeps its own explicit parity rules below.
   The shell now reads like the purchase sheet: near-black navy, faint grid,
   red/violet aurora and slow floating orbs visible behind the glass.
   ========================================================================== */

/* ---- deeper wash behind everything (dark) ---- */
html:not([data-theme="light"]) body { background-color: #05060b; }

/* ---- background: brighter grid + drifting neon spheres ---- */
html:not([data-theme="light"]) .bg-grid {
  opacity: .8;
  background-size: 52px 52px;
}
.bg-grid-2 {
  opacity: .55;
  background-size: 208px 208px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, #000 30%, transparent 80%);
}
html[data-theme="light"] .bg-grid-2 { opacity: 0; }

html:not([data-theme="light"]) .blob-a {
  background: radial-gradient(circle, rgba(255,53,53,.3) 0%, transparent 68%);
}
html:not([data-theme="light"]) .blob-b {
  background: radial-gradient(circle, rgba(90,66,255,.24) 0%, transparent 68%);
}
html:not([data-theme="light"]) .blob-c {
  background: radial-gradient(circle, rgba(255,45,160,.16) 0%, transparent 70%);
}

.orb { position: absolute; border-radius: 50%; pointer-events: none; will-change: transform; }
.orb::after {
  content: ''; position: absolute; inset: -18%;
  border-radius: 50%;
  background: inherit;
  filter: blur(26px);
  opacity: .5;
  z-index: -1;
}
.orb-red {
  top: 16%; right: 9%;
  width: 150px; height: 150px;
  background: radial-gradient(circle at 31% 28%, #ffecec 0%, #ff6b6b 24%, #ff2d2d 50%, rgba(130,10,22,.95) 78%, rgba(80,5,14,.6) 100%);
  opacity: .55;
  animation: orbDrift1 34s ease-in-out infinite;
}
.orb-violet {
  bottom: 6%; left: 5%;
  width: 210px; height: 210px;
  background: radial-gradient(circle at 33% 30%, #ece9ff 0%, #8b7bff 22%, #6d3bff 48%, rgba(60,25,140,.95) 78%, rgba(35,12,90,.6) 100%);
  opacity: .45;
  animation: orbDrift2 44s ease-in-out infinite;
}
.orb-gold {
  top: 44%; left: 29%;
  width: 92px; height: 92px;
  background: radial-gradient(circle at 32% 30%, #fff7e0 0%, #ffd36b 28%, #ff9f2e 55%, rgba(180,90,10,.9) 82%, rgba(120,55,5,.55) 100%);
  opacity: .32;
  animation: orbDrift3 26s ease-in-out infinite;
}
.orb-mini {
  bottom: 26%; right: 20%;
  width: 44px; height: 44px;
  background: radial-gradient(circle at 32% 28%, #ffeef8 0%, #ff6bd0 30%, #ff2d9b 55%, rgba(150,10,100,.95) 80%, rgba(90,5,60,.55) 100%);
  opacity: .5;
  animation: orbPulse 14s ease-in-out infinite;
}
@keyframes orbDrift1 {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(-12%, 9%, 0) scale(1.12); }
}
@keyframes orbDrift2 {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(9%, -11%, 0) scale(1.1); }
}
@keyframes orbDrift3 {
  0%, 100% { transform: translate3d(0,0,0) scale(1); opacity: .32; }
  50% { transform: translate3d(18%, 14%, 0) scale(1.25); opacity: .5; }
}
@keyframes orbPulse {
  0%, 100% { transform: translate3d(0,0,0) scale(1); opacity: .5; }
  50% { transform: translate3d(-20%, -26%, 0) scale(.72); opacity: .28; }
}
@media (prefers-reduced-motion: reduce) {
  .orb { animation: none !important; }
}

/* ---- dashboard shell: obsidian glass with the grid showing through ---- */
html:not([data-theme="light"]) #view-dashboard .dash-wide,
html:not([data-theme="light"]) #view-wallet .dash-wide {
  background:
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px) 0 0 / 52px 52px,
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px) 0 0 / 52px 52px,
    radial-gradient(1000px 560px at 8% -6%, rgba(255,53,53,.14), transparent 60%),
    radial-gradient(900px 640px at 105% 108%, rgba(124,58,237,.14), transparent 60%),
    linear-gradient(180deg, rgba(9,10,17,.72) 0%, rgba(4,5,9,.84) 100%);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 30px 90px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.08);
  /* Ease the background blobs into their blur instead of snapping it on. */
  animation: dashGlassBlur .55s cubic-bezier(.22,1,.36,1) both;
}
@keyframes dashGlassBlur {
  from {
    backdrop-filter: blur(0px) saturate(100%);
    -webkit-backdrop-filter: blur(0px) saturate(100%);
  }
  to {
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
  }
}
@media (prefers-reduced-motion: reduce) {
  html:not([data-theme="light"]) #view-dashboard .dash-wide,
  html:not([data-theme="light"]) #view-wallet .dash-wide {
    animation: none;
  }
}

/* ---- panels: same depth as the buy sheet ---- */
html:not([data-theme="light"]) #view-dashboard .card-panel,
html:not([data-theme="light"]) #view-wallet .card-panel {
  background: linear-gradient(180deg, rgba(24,27,42,.6) 0%, rgba(11,12,20,.72) 100%);
  border: 1px solid rgba(255,255,255,.085);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 18px 44px -22px rgba(0,0,0,.85);
}
html:not([data-theme="light"]) #view-dashboard .card-panel:last-child,
html:not([data-theme="light"]) #view-wallet .card-panel:last-child { margin-bottom: 0; }

/* ---- premium stat tiles (overview + analytics + wallet) ---- */
html:not([data-theme="light"]) #view-dashboard .stat-mini,
html:not([data-theme="light"]) #view-wallet .stat-mini {
  background: linear-gradient(165deg, rgba(26,29,45,.72) 0%, rgba(12,13,22,.8) 100%);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 14px 34px -20px rgba(0,0,0,.9);
}

/* ---- Overview tiles ---- */
.ov-stat { position: relative; align-items: flex-start; padding: 18px 16px; gap: 14px; }
.ov-stat-body { flex: 1; min-width: 0; }
.ov-stat .lbl { font-size: 11px; letter-spacing: .7px; }
.ov-stat .val { font-size: 24px; margin-top: 2px; line-height: 1.1; }
.ov-stat-ico,
.shop-pack-ico {
  display: flex; align-items: center; justify-content: center;
  border-radius: 13px; flex-shrink: 0;
}
.ov-stat-ico { width: 44px; height: 44px; }
.ov-stat-ico .ico { width: 20px; height: 20px; }
.ov-plan-card { align-items: center; }
.ov-plan-card .val { font-size: 21px; }
.ov-plan-go {
  align-self: stretch; margin-left: 2px;
  display: inline-flex; align-items: center; gap: 5px;
  background: none; border: none; border-radius: 10px;
  padding: 6px 8px; cursor: pointer;
  color: var(--text-muted); font-family: var(--font);
  font-size: 11.5px; font-weight: 800; letter-spacing: .02em;
  transition: color .16s, background .16s;
}
.ov-plan-go .ico { width: 13px; height: 13px; transform: rotate(180deg); transition: transform .16s; }
.ov-plan-go:hover { color: #ffd36b; background: rgba(255,211,107,.08); }
.ov-plan-go:hover .ico { transform: rotate(180deg) translateX(-2px); }

/* colored icon tiles (shared by stat tiles and shop packs) */
#pane-overview .c-red {
  background: linear-gradient(135deg, rgba(255,53,53,.3) 0%, rgba(255,53,53,.07) 100%);
  border: 1px solid rgba(255,53,53,.3); color: #ff6b6b;
  box-shadow: 0 8px 22px -10px rgba(255,53,53,.8);
}
#pane-overview .c-violet {
  background: linear-gradient(135deg, rgba(124,58,237,.3) 0%, rgba(124,58,237,.07) 100%);
  border: 1px solid rgba(124,58,237,.32); color: #b7a4ff;
  box-shadow: 0 8px 22px -10px rgba(124,58,237,.8);
}
#pane-overview .c-green {
  background: linear-gradient(135deg, rgba(46,204,113,.26) 0%, rgba(46,204,113,.06) 100%);
  border: 1px solid rgba(46,204,113,.3); color: #5fe89b;
  box-shadow: 0 8px 22px -10px rgba(46,204,113,.8);
}
#pane-overview .c-gold {
  background: linear-gradient(135deg, rgba(255,196,0,.26) 0%, rgba(255,196,0,.06) 100%);
  border: 1px solid rgba(255,196,0,.32); color: #ffd36b;
  box-shadow: 0 8px 22px -10px rgba(255,196,0,.7);
}

/* usage meters under stat values */
.ov-meter {
  margin-top: 10px; height: 4px;
  background: rgba(255,255,255,.07);
  border-radius: 99px; overflow: hidden;
}
.ov-meter i {
  display: block; height: 100%; width: 0;
  border-radius: 99px;
  transition: width .6s cubic-bezier(.22,1,.36,1);
}
.ov-stat-ico.c-red ~ .ov-stat-body .ov-meter i {
  background: linear-gradient(90deg, #ff3535, #ff6b6b);
  box-shadow: 0 0 10px rgba(255,53,53,.7);
}
.ov-stat-ico.c-violet ~ .ov-stat-body .ov-meter i {
  background: linear-gradient(90deg, #6d3bff, #b7a4ff);
  box-shadow: 0 0 10px rgba(124,58,237,.7);
}
.ov-stat-ico.c-green ~ .ov-stat-body .ov-meter i {
  background: linear-gradient(90deg, #2ecc71, #7dffa8);
  box-shadow: 0 0 10px rgba(46,204,113,.7);
}

/* ---- extra slots shop (overview) ---- */
.ov-shop-head { flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.ov-bal-wrap { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ov-bal {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px; border-radius: 10px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09);
  color: var(--text-muted); font-size: 12px; font-weight: 700;
}
.ov-bal .ico { width: 14px; height: 14px; color: #2ecc71; filter: drop-shadow(0 0 5px rgba(46,204,113,.6)); }
.ov-bal b { color: #fff; font-weight: 800; font-variant-numeric: tabular-nums; }
.ov-topup-btn { display: inline-flex; align-items: center; gap: 6px; }
.ov-shop-sub { color: var(--text-muted); font-size: 13px; margin: 0 0 2px; }

.shop-packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.shop-pack {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,.05) 0%, rgba(255,255,255,.01) 100%);
  border: 1px solid rgba(255,255,255,.09);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.shop-pack::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
  opacity: 0; transition: opacity .18s;
}
.shop-pack:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.17); }
.shop-pack:hover::before { opacity: 1; }
.shop-pack.featured {
  border-color: rgba(255,53,53,.3);
  box-shadow: inset 0 0 0 1px rgba(255,53,53,.14), 0 16px 40px -22px rgba(255,53,53,.5);
}
.shop-pack.featured::before { opacity: 1; }
.shop-pack-top { display: flex; align-items: flex-start; gap: 12px; }
.shop-pack-ico { width: 44px; height: 44px; }
.shop-pack-ico .ico { width: 20px; height: 20px; }
.shop-pack-t { min-width: 0; }
.shop-pack-name { display: block; font-size: 15px; font-weight: 800; color: #fff; letter-spacing: -.01em; }
.shop-pack-sub { display: block; margin-top: 2px; font-size: 12px; color: var(--text-muted); }
.shop-pack-buy {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255,255,255,.1);
}
.shop-pack-price { font-size: 20px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.shop-pack-buy .btn-secondary,
.shop-pack-buy .btn-primary { padding: 8px 14px; font-size: 12.5px; }
.ov-shop-foot {
  display: flex; justify-content: flex-end; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 18px; color: var(--text-muted); font-size: 12.5px;
}
.ov-plans-go { display: inline-flex; align-items: center; gap: 6px; }
.ov-plans-go .ico { width: 13px; height: 13px; transform: rotate(180deg); }

@media (max-width: 1200px) {
  .shop-packs { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
}
@media (max-width: 768px) {
  .ov-bal-wrap { width: 100%; justify-content: space-between; }
  .ov-plan-go { align-self: center; }
}

/* ==========================================================================
   v47 · Light-theme counterparts for the new Overview components
   ========================================================================== */
html[data-theme="light"] .ov-stat { background: #fff; }
html[data-theme="light"] .ov-plan-go { color: #6a6370; }
html[data-theme="light"] .ov-plan-go:hover { color: #b45309; background: rgba(255,196,0,.1); }
html[data-theme="light"] #pane-overview .c-red {
  background: rgba(255,53,53,.12); border-color: rgba(255,53,53,.3); color: #c01010; box-shadow: none;
}
html[data-theme="light"] #pane-overview .c-violet {
  background: rgba(124,58,237,.12); border-color: rgba(124,58,237,.3); color: #5b21b6; box-shadow: none;
}
html[data-theme="light"] #pane-overview .c-green {
  background: rgba(46,204,113,.14); border-color: rgba(46,204,113,.35); color: #128a4a; box-shadow: none;
}
html[data-theme="light"] #pane-overview .c-gold {
  background: rgba(255,196,0,.14); border-color: rgba(255,196,0,.4); color: #b45309; box-shadow: none;
}
html[data-theme="light"] .ov-meter { background: rgba(20,12,12,.08); }
html[data-theme="light"] .ov-bal { background: rgba(0,0,0,.045); border-color: rgba(20,12,12,.12); color: #6a6370; }
html[data-theme="light"] .ov-bal b { color: #1b1418; }
html[data-theme="light"] .shop-pack {
  background: #fff; border-color: rgba(20,12,12,.12);
}
html[data-theme="light"] .shop-pack.featured {
  border-color: rgba(255,53,53,.35);
  box-shadow: 0 14px 34px -22px rgba(255,53,53,.4);
}
html[data-theme="light"] .shop-pack-name { color: #1b1418; }
html[data-theme="light"] .shop-pack-buy { border-top-color: rgba(20,12,12,.1); }
html[data-theme="light"] .shop-pack-price { color: #1b1418; }
html[data-theme="light"] .ov-shop-foot { color: #6a6370; }
html[data-theme="light"] .shop-pack-sub,
html[data-theme="light"] .ov-shop-sub { color: #6a6370; }

/* ==========================================================================
   v47 · Header wallet chip — minimal square, no red ring
   ========================================================================== */
.wallet-chip {
  display: inline-flex; align-items: center; gap: 9px;
  height: 40px; padding: 0 14px 0 7px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  color: #e8eaf2; font-family: var(--font); font-size: 13px; font-weight: 800;
  letter-spacing: -0.01em; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  transition: border-color .16s, background .16s, box-shadow .16s, color .16s, transform .12s;
}
.wallet-chip-ico {
  width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0;
  display: grid; place-items: center;
  background: rgba(255,255,255,.07);
  border: none;
  color: #b6bccf;
  transition: color .16s, background .16s, box-shadow .16s;
}
.wallet-chip-ico .ico { width: 14px; height: 14px; opacity: 1; }
.wallet-chip-amt { font-variant-numeric: tabular-nums; }
.wallet-chip:hover {
  border-color: rgba(255,255,255,.22);
  background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.03));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 0 0 3px rgba(255,255,255,.035);
  color: #fff;
}
/* v48: icon keeps its color on hover (recolor removed by request) */
.wallet-chip:active { transform: translateY(1px); }
html[data-theme="light"] .wallet-chip { border-color: rgba(20,12,12,.12); box-shadow: none; }
html[data-theme="light"] .wallet-chip-ico { background: rgba(20,12,12,.05); color: #6a6370; }
@media (max-width: 900px) {
  .wallet-chip { height: 38px; padding: 0 10px 0 6px; }
  .wallet-chip-ico { width: 25px; height: 25px; }
}

/* ==========================================================================
   v48 · Bug report modal (buy-sheet look) + smooth language switch + header fit
   ========================================================================== */
.bug-hero-ico { background: rgba(255,53,53,.14) !important; color: #ff6b6b !important; }
.bug-reasons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 14px; }
.bug-reason {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09);
  border-radius: 14px; padding: 12px 12px 11px; cursor: pointer; font-family: var(--font);
  color: inherit; transition: border-color .14s, background .14s, transform .14s, box-shadow .14s;
}
.bug-reason:hover { border-color: rgba(255,53,53,.4); transform: translateY(-1px); }
.bug-reason.on {
  background: rgba(255,53,53,.10); border-color: rgba(255,53,53,.55);
  box-shadow: 0 0 0 3px rgba(255,53,53,.12);
}
.bug-reason-ico {
  width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255,255,255,.06); color: #c5cad8;
  transition: background .14s, color .14s;
}
.bug-reason.on .bug-reason-ico { background: rgba(255,53,53,.18); color: #ff6b6b; }
.bug-reason-t { font-weight: 800; font-size: 13.5px; }
.bug-reason-s { color: var(--text-muted); font-size: 11.5px; line-height: 1.3; font-weight: 500; }
.bug-reason:last-child { grid-column: 1 / -1; }
@media (max-width: 480px) {
  .bug-reasons { grid-template-columns: 1fr; }
  .bug-reason:last-child { grid-column: auto; }
}
html[data-theme="light"] .bug-reason { background: #fff; border-color: rgba(20,12,12,.08); }
html[data-theme="light"] .bug-reason.on { background: rgba(255,53,53,.07); border-color: rgba(255,53,53,.45); box-shadow: 0 0 0 3px rgba(255,53,53,.08); }
html[data-theme="light"] .bug-reason-ico { background: rgba(20,12,12,.05); color: #6a6370; }
html[data-theme="light"] .bug-reason.on .bug-reason-ico { background: rgba(255,53,53,.14); color: #c01010; }
html[data-theme="light"] .bug-reason-s { color: #6a6370; }

/* Smooth language switching: dim → swap → brighten (toggled from app.js) */
#hgHeader, .site-main, .site-footer { transition: opacity .16s ease, transform .16s ease; }
body.lang-fade #hgHeader, body.lang-fade .site-main, body.lang-fade .site-footer { opacity: 0; transform: translateY(4px); }

/* Header must fit in RU ("Панель", longer words) — no more settings button */
@media (max-width: 1280px) {
  #hgHeader .nav-link { padding: 8px 11px !important; font-size: 13.5px !important; }
}
@media (max-width: 1150px) {
  #hgHeader .nav-link .ico { display: none; }
  #hgHeader .nav-mail-wrap .ico { display: none; }
}
