/* ===== Word Tycoon User Portal ===== */

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

:root {
  --bg: #0f0f14;
  --surface: #1a1a24;
  --surface2: #22222e;
  --border: #2a2a3a;
  --text: #e0e0e0;
  --text-dim: #888;
  --accent: #a78bfa;
  --accent-hover: #7c3aed;
  --discord: #5865F2;
  --discord-hover: #4752C4;
  --success: #4fc34f;
  --warning: #ffab00;
  --danger: #f87171;
  --radius: 10px;
  --radius-lg: 16px;
}

/* ===== Light Mode (Pastel / Cream) ===== */
[data-theme="light"] {
  --bg: #faf7f2;
  --surface: #ffffff;
  --surface2: #f0ebe3;
  --border: #e0d8cc;
  --text: #2d2a26;
  --text-dim: #8a8279;
  --accent: #7c5cbf;
  --accent-hover: #6b4aad;
  --success: #3a9e3a;
  --warning: #d49200;
  --danger: #d94444;
}
/* Hero gradient overrides */
[data-theme="light"] .ov-hero-bg {
  background: linear-gradient(135deg, #e8e0f4, #dfd6ee, #e8e0f4);
}
[data-theme="light"] .ov-hero-bg::after { display: none; }
[data-theme="light"] .biz-hero-bg {
  background: linear-gradient(135deg, #d4edda, #dceef0, #e0dff0, #d4edda);
}
[data-theme="light"] .biz-hero-bg::after { display: none; }
[data-theme="light"] .store-hero-bg {
  background: linear-gradient(135deg, #e8e0f4, #dfd6ee, #e8e0f4);
}
[data-theme="light"] .store-hero-bg::after { display: none; }
/* Library hero */
[data-theme="light"] .lib-hero {
  background: linear-gradient(135deg, #ede5f7, #dfd6f0) !important;
  border-color: #b9a0e0 !important;
}
/* Coin text — lime green too bright on cream */
[data-theme="light"] .ov-stat-coins .ov-stat-value { color: #1a8a1a; }
[data-theme="light"] .ov-coins-val { color: #1a8a1a; }
/* Login card */
[data-theme="light"] .login-card { background: var(--surface); }
/* Tabs */
[data-theme="light"] .tabs { border-bottom-color: var(--border); }
/* How to Play tab */
[data-theme="light"] .htp-hero-title { color: #2d2a26; }
[data-theme="light"] .htp-hero-sub { color: #8a8279; }
[data-theme="light"] .htp-nav-btn { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.1); }
[data-theme="light"] .htp-nav-btn:hover { background: rgba(0,0,0,0.08); }
[data-theme="light"] .htp-game { background: var(--surface); border-color: var(--border); }
[data-theme="light"] .htp-game-header { border-bottom-color: var(--border); }
[data-theme="light"] .htp-step h4 { color: #2d2a26; }
[data-theme="light"] .htp-step p { color: #4a4640; }
[data-theme="light"] #tab-howtoplay .gh-example { background: #f5f0e8; border-color: #e0d8cc; }
[data-theme="light"] #tab-howtoplay .gh-legend-item { color: #4a4640; }
[data-theme="light"] #tab-howtoplay .gh-tip { color: #4a4640; background: rgba(124,92,191,0.08); border-color: rgba(124,92,191,0.2); }
[data-theme="light"] #tab-howtoplay .gh-example-label { color: #8a8279; }
[data-theme="light"] #tab-howtoplay .gh-arrow { color: #6b6560; }
[data-theme="light"] #tab-howtoplay .gh-rank-item { color: #4a4640; background: rgba(0,0,0,0.03); }
[data-theme="light"] #tab-howtoplay .gh-tile.empty { border-color: #ccc; color: #bbb; }
[data-theme="light"] #tab-howtoplay .gh-tile.absent { background: #787878; border-color: #787878; }
[data-theme="light"] #tab-howtoplay .gh-hex { background: #e0d8cc; color: #2d2a26; }
[data-theme="light"] #tab-howtoplay .gh-grid-cell { background: #e0d8cc; color: #2d2a26; }
[data-theme="light"] #tab-howtoplay .gh-symbol { background: #f5f0e8; border-color: #ccc; }
[data-theme="light"] #tab-howtoplay .gh-px.off { background: #f5f0e8; }
[data-theme="light"] #tab-howtoplay .gh-px.hidden-px { background: #e0d8cc; }
[data-theme="light"] #tab-howtoplay .gh-boundary.after { background: rgba(255,107,107,0.08); }
[data-theme="light"] #tab-howtoplay .gh-boundary.before { background: rgba(78,205,196,0.08); }
[data-theme="light"] #tab-howtoplay .gh-boundary.secret { background: rgba(124,92,191,0.08); }
/* Theme toggle button */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 10px;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--text);
  transition: background 0.2s, border-color 0.2s;
}
.theme-toggle:hover { background: var(--surface2); }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ─── Login Screen ─── */

.screen { min-height: 100vh; }

#login-screen {
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  width: 420px;
  max-width: 90vw;
  text-align: center;
}

.login-logo {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
  color: white;
  margin-bottom: 20px;
}

.login-logo-img-old {
  width: 200px;
  height: 200px;
  object-fit: contain;
  margin-bottom: 8px;
  filter: drop-shadow(0 4px 16px rgba(167, 139, 250, 0.3));
}

.login-logo-img {
  max-width: 340px;
  width: 100%;
  height: auto;
  object-fit: contain;
  margin-bottom: 12px;
}

.login-card h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.login-card p {
  color: var(--text-dim);
  margin-bottom: 32px;
  font-size: 14px;
  line-height: 1.5;
}

.discord-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--discord);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}

.discord-btn:hover { background: var(--discord-hover); }

.github-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: #333333;
  color: #ffffff;
  border: none;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s;
}

.github-btn:hover {
  background: #24292e;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: var(--text-dim);
  font-size: 13px;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.login-error {
  color: var(--danger);
  font-size: 14px;
  margin-top: 16px;
}

/* ─── Portal Header ─── */

.portal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: white;
}

.header-logo-img-old {
  height: 64px;
  width: 64px;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}

.header-logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 600px) and (orientation: portrait) {
  .header-logo-img {
    display: none;
  }
}

.header-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-avatar-wrap {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
}

.user-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid var(--border);
}

.user-name-group {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.2;
}

.user-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.user-title {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-dim);
  display: none;
}

.logout-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-dim);
  padding: 6px 8px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
}

.logout-btn:hover {
  border-color: var(--danger);
  color: var(--danger);
}

/* ─── Tabs ─── */

.tabs {
  display: flex;
  gap: 4px;
  padding: 12px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tab {
  padding: 8px 16px;
  background: none;
  border: none;
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.tab:hover {
  color: var(--text);
  background: var(--surface2);
}

.tab.active {
  color: var(--accent);
  background: rgba(167, 139, 250, 0.12);
}

/* ─── Content ─── */

.content {
  padding: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.section-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dim);
  margin: 28px 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 13px;
}

.loading-placeholder {
  text-align: center;
  color: var(--text-dim);
  padding: 40px;
  font-size: 14px;
}

/* ─── Banner ─── */

.banner {
  margin: 16px 24px 0;
  padding: 16px 20px;
  border-radius: var(--radius);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.banner-warning {
  background: rgba(255, 171, 0, 0.1);
  border: 1px solid rgba(255, 171, 0, 0.3);
  color: var(--warning);
}

.banner p {
  margin-top: 4px;
  font-size: 14px;
  color: var(--text-dim);
}

.banner code {
  background: var(--surface2);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--accent);
}

/* ─── Stats Grid (used by Searchle/Word500 tabs) ─── */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.stat-card.accent {
  border-color: rgba(167, 139, 250, 0.3);
  background: rgba(167, 139, 250, 0.06);
}

.stat-label {
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.stat-card.accent .stat-value {
  color: var(--accent);
}

/* ═══════════════════════════════════════════════════════════════
   OVERVIEW TAB — Hero, Stats, Games, Businesses, Platforms
   ═══════════════════════════════════════════════════════════════ */

/* ─── Hero Banner ─── */

@keyframes ov-gradient-flow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes ov-float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

@keyframes ov-sparkle {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50% { opacity: 1; transform: scale(1); }
}

/* ─── Overview Top Row (profile card + challenges) ─── */

.ov-top-row {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
}

.ov-challenges {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ov-hero {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  width: 240px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.ov-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a1a2e, #1f1f35, #1a1a2e);
  background-size: 200% 200%;
}

.ov-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.025) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.015) 0%, transparent 70%);
}

.ov-hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.ov-hero-particles::before,
.ov-hero-particles::after {
  content: '✦';
  position: absolute;
  font-size: 10px;
  color: rgba(167, 139, 250, 0.4);
  animation: ov-sparkle 3s ease-in-out infinite;
}

.ov-hero-particles::before {
  top: 20%; left: 15%;
  animation-delay: 0s;
}

.ov-hero-particles::after {
  top: 40%; right: 20%;
  animation-delay: 1.5s;
  font-size: 8px;
  color: rgba(236, 72, 153, 0.35);
}

.ov-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 28px 20px;
  width: 100%;
}

.ov-hero-avatar-wrap {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid rgba(167, 139, 250, 0.5);
  box-shadow: 0 0 20px rgba(167, 139, 250, 0.25);
  animation: ov-float 4s ease-in-out infinite;
}

.ov-hero-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.ov-hero-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.ov-hero-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  display: none;
}

.ov-hero-name {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.ov-hero-coins {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.ov-coin-icon, .ov-words-icon {
  font-size: 18px;
}

.ov-coin-val {
  font-size: 18px;
  font-weight: 700;
  color: #39ff14;
}

.ov-coin-divider {
  color: rgba(255,255,255,0.2);
  font-size: 16px;
}

.ov-words-val {
  font-size: 16px;
  font-weight: 600;
  color: #a78bfa;
}

.ov-hero-income {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}
.ov-income-icon { font-size: 14px; }
.ov-income-val { font-size: 14px; font-weight: 700; color: #f59e0b; }
.ov-income-label { font-size: 12px; color: rgba(255,255,255,0.5); font-weight: 600; }

/* ─── Overview Body (2-column) ─── */

.ov-body {
  display: block;
}

.ov-section-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

/* ─── Overview Stat Cards ─── */

.ov-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 28px;
}

.ov-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.ov-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.ov-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--strip-color, var(--accent));
}

.ov-stat-coins { --strip-color: #39ff14; }
.ov-stat-taps { --strip-color: #fbbf24; }
.ov-stat-power { --strip-color: #f87171; }
.ov-stat-crit { --strip-color: #4a9eff; }
.ov-stat-multi { --strip-color: #a78bfa; }

.ov-stat-icon {
  font-size: 20px;
  margin-bottom: 6px;
}

.ov-stat-label {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.ov-stat-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.ov-stat-coins .ov-stat-value { color: #39ff14; }

/* ─── Business Empire Row ─── */

.ov-biz-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.ov-biz-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  transition: transform 0.15s, box-shadow 0.15s;
}

.ov-biz-chip:hover {
  transform: translateY(-1px);
}

.ov-biz-owned {
  border-color: rgba(167, 139, 250, 0.25);
  background: rgba(167, 139, 250, 0.05);
}

.ov-biz-owned:hover {
  box-shadow: 0 2px 12px rgba(167, 139, 250, 0.15);
}

.ov-biz-locked {
  opacity: 0.4;
}

.ov-biz-emoji {
  font-size: 20px;
}

.ov-biz-info {
  display: flex;
  flex-direction: column;
}

.ov-biz-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.ov-biz-level {
  font-size: 11px;
  color: var(--text-dim);
}

.ov-biz-owned .ov-biz-level {
  color: var(--accent);
}

/* ─── Overview Platforms ─── */

.ov-platforms-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ov-platform-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--plat-color, var(--accent));
  border-radius: var(--radius);
  padding: 10px 16px;
  transition: transform 0.15s, box-shadow 0.15s;
}

.ov-platform-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.ov-plat-icon {
  font-size: 20px;
}

.ov-plat-info {
  display: flex;
  flex-direction: column;
}

.ov-plat-name {
  font-weight: 600;
  font-size: 13px;
}

.ov-plat-user {
  color: var(--text-dim);
  font-size: 12px;
}

.profile-prefs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 12px;
}

.pref-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pref-row label {
  font-size: 13px;
  color: var(--text-dim);
  white-space: nowrap;
}

.pref-row select {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
}

.pref-row select:hover {
  border-color: var(--accent);
}

.name-custom-input {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 12px;
  font-size: 13px;
  width: 160px;
  margin-top: 4px;
}

.name-custom-input:focus {
  border-color: var(--accent);
  outline: none;
}

/* ─── Daily Challenge Tracker ─── */

.daily-tracker {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
}

.daily-tracker-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.daily-tracker-icon {
  font-size: 20px;
}

.daily-tracker-title {
  font-weight: 700;
  font-size: 16px;
  flex: 1;
}

.daily-tracker-countdown {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  margin-left: auto;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.daily-tracker-progress {
  font-weight: 800;
  font-size: 14px;
  color: var(--text-dim);
  background: var(--surface2);
  padding: 4px 12px;
  border-radius: 20px;
  flex-shrink: 0;
}

.daily-tracker-progress.all-done {
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  color: #1a1a2e;
}

.daily-tracker-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.daily-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
  transition: all 0.2s;
  flex-shrink: 0;
}

.daily-chip:hover {
  border-color: var(--game-color);
  background: color-mix(in srgb, var(--game-color) 10%, var(--surface2));
}

.daily-chip.done {
  border-color: #ffd700;
  background: rgba(255, 215, 0, 0.08);
  pointer-events: none;
}

.daily-chip-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  object-fit: cover;
}

.daily-chip-name {
  font-size: 13px;
  font-weight: 600;
}

.daily-chip-check {
  color: #ffd700;
  font-weight: 800;
  font-size: 14px;
}

.daily-chip-play {
  font-size: 11px;
  font-weight: 700;
  color: var(--game-color);
  text-transform: uppercase;
}

.daily-tracker-subtitle {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 10px;
  margin-top: -4px;
}

.daily-chip-reward {
  font-size: 11px;
  font-weight: 700;
  color: #ffd700;
}

/* ─── Weekly Tracker ─── */

.weekly-tracker {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  border-left: 3px solid #7b68ee;
}

.weekly-tracker-subtitle {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 10px;
  margin-top: -4px;
}

.weekly-tracker-progress {
  font-weight: 800;
  font-size: 14px;
  color: var(--text-dim);
  background: var(--surface2);
  padding: 4px 12px;
  border-radius: 20px;
}

.weekly-tracker-progress.all-done {
  background: linear-gradient(135deg, #7b68ee, #a855f7);
  color: #fff;
}

.weekly-chip:not(.done) {
  border-color: rgba(123, 104, 238, 0.3);
}

.weekly-chip:not(.done):hover {
  border-color: var(--game-color);
}

.weekly-chip.done {
  border-color: #a855f7;
  background: rgba(168, 85, 247, 0.08);
}

.weekly-chip-reward {
  font-size: 11px;
  font-weight: 700;
  color: #a855f7;
}

/* Weekly badge on game cards */
.gc-weekly {
  background: rgba(123, 104, 238, 0.12) !important;
  color: #a855f7 !important;
}

.gc-weekly.done {
  background: rgba(168, 85, 247, 0.15) !important;
  color: #a855f7 !important;
}

/* ─── GOAT Header Link ─── */

.header-goat-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  background: rgba(255, 171, 0, 0.1);
  border: 1px solid rgba(255, 171, 0, 0.3);
  border-radius: 20px;
  color: #ffab00;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  white-space: nowrap;
}

.header-goat-link:hover {
  background: rgba(255, 171, 0, 0.2);
  border-color: #ffab00;
  transform: scale(1.05);
}

/* ─── Games Grid ─── */

.games-section {
  margin-bottom: 24px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.game-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 16px 16px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  position: relative;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px color-mix(in srgb, var(--game-color) 20%, transparent);
  border-color: color-mix(in srgb, var(--game-color) 40%, var(--border));
}

.gc-top {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  margin-bottom: 12px;
}

.gc-icon {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.gc-players {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-dim);
}

.gc-player-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  animation: livePulse 2s infinite;
}

.gc-player-count {
  font-weight: 700;
}

.gc-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.gc-daily {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 10px;
  margin-bottom: 8px;
}

.gc-daily.available {
  background: rgba(255, 215, 0, 0.15);
  color: #ffd700;
  border: 1px solid rgba(255, 215, 0, 0.3);
  animation: dailyGlow 2s ease-in-out infinite alternate;
}

.gc-daily.done {
  background: rgba(79, 195, 79, 0.15);
  color: #4fc34f;
  border: 1px solid rgba(79, 195, 79, 0.3);
}

.gc-daily-check {
  margin-left: 2px;
}

@keyframes dailyGlow {
  from { box-shadow: 0 0 4px rgba(255, 215, 0, 0.2); }
  to { box-shadow: 0 0 12px rgba(255, 215, 0, 0.4); }
}

.gc-stats {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.gc-stats-dim {
  font-style: italic;
  opacity: 0.5;
}

.gc-modes {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.gc-mode-btn {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
  flex: 1;
  text-align: center;
}

.gc-mode-solo {
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border);
}

.gc-mode-solo:hover {
  background: color-mix(in srgb, var(--game-color) 15%, var(--surface2));
  border-color: var(--game-color);
  color: var(--game-color);
}

.gc-mode-online {
  background: color-mix(in srgb, var(--game-color) 20%, var(--surface));
  color: var(--game-color);
  border: 1px solid color-mix(in srgb, var(--game-color) 40%, transparent);
}

.gc-mode-online:hover {
  background: color-mix(in srgb, var(--game-color) 30%, var(--surface));
}

/* Live daily badge in live cards */
.live-daily-badge {
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  color: #1a1a2e;
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-left: 6px;
}

.live-players {
  font-size: 12px;
  color: var(--text-dim);
  margin-left: 6px;
}

/* ─── Games Sidebar (legacy) ─── */

.ov-sidebar {
  min-width: 0;
}

.ov-games-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ov-game-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s, box-shadow 0.2s;
}

a.ov-game-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px color-mix(in srgb, var(--game-color) 25%, transparent);
}

.ov-game-strip {
  height: 3px;
  background: var(--game-color);
}

.ov-game-body {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}

.ov-game-emoji {
  font-size: 28px;
  flex-shrink: 0;
}

.ov-game-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 6px;
}

.ov-game-info {
  flex: 1;
  min-width: 0;
}

.ov-game-name {
  font-weight: 700;
  font-size: 15px;
}

.ov-game-stats {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 2px;
}

.ov-game-stats-dim {
  font-style: italic;
  opacity: 0.6;
}

.ov-game-play {
  font-size: 13px;
  font-weight: 700;
  color: var(--game-color);
  white-space: nowrap;
  flex-shrink: 0;
}

.ov-game-coming {
  opacity: 0.5;
  cursor: default;
}

.ov-game-soon {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  background: var(--surface2);
  padding: 3px 10px;
  border-radius: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ─── Overview Responsive ─── */

@media (max-width: 860px) {
  .ov-sidebar {
    order: -1;
  }
  .ov-games-list {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .ov-game-card {
    flex: 1 1 calc(50% - 5px);
    min-width: 200px;
  }
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .ov-top-row {
    flex-direction: column;
  }
  .ov-hero {
    width: 100%;
  }
  .ov-hero-content {
    padding: 20px;
    gap: 12px;
    flex-direction: row;
    text-align: left;
    align-items: center;
  }
  .ov-hero-avatar-wrap {
    width: 80px;
    height: 80px;
  }
  .ov-hero-info {
    align-items: flex-start;
  }
  .ov-hero-name {
    font-size: 22px;
  }
  .ov-hero-coins {
    justify-content: center;
  }
  .ov-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ov-game-card {
    flex: 1 1 100%;
  }
  .ov-biz-chip {
    padding: 6px 10px;
  }
  .ov-biz-name {
    font-size: 11px;
  }
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .gc-icon {
    width: 60px;
    height: 60px;
  }
  .daily-tracker-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    -webkit-overflow-scrolling: touch;
  }
  .daily-chip {
    padding: 6px 8px;
    flex-shrink: 0;
  }
  .daily-chip-name {
    font-size: 11px;
  }
}

/* ─── Businesses ─── */

/* Hero Banner */
.biz-hero {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.biz-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0d2818, #1a3a2a, #0f2d3d, #1a2040, #0d2818);
  background-size: 300% 300%;
  animation: ov-gradient-flow 12s ease infinite;
}
.biz-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 50%, rgba(79, 195, 79, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 75% 50%, rgba(255, 171, 0, 0.1) 0%, transparent 50%);
}
.biz-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 32px 20px;
}
.biz-hero-title {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, #4fc34f 0%, #ffab00 50%, #4fc34f 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: ov-gradient-flow 4s ease infinite;
  margin-bottom: 6px;
}
.biz-hero-sub {
  color: var(--text-dim);
  font-size: 14px;
}

/* Earnings Breakdown Panel */
.biz-earnings-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
  backdrop-filter: blur(10px);
}
.biz-earnings-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.biz-earnings-icon {
  font-size: 24px;
}
.biz-earnings-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.biz-earnings-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.biz-earnings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--text-dim);
}
.biz-val {
  font-weight: 600;
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
}
.biz-earnings-total {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-weight: 700;
  color: var(--text);
  font-size: 15px;
}
.biz-val-total {
  font-weight: 800;
  color: var(--success);
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  text-shadow: 0 0 12px rgba(79, 195, 79, 0.4);
}
.biz-buff-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(167, 139, 250, 0.15);
  color: var(--accent);
  margin-left: 4px;
  font-family: 'JetBrains Mono', monospace;
}

/* Active Buffs Panel */
.biz-buffs-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 20px;
}
.biz-buffs-title {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 12px 0;
  color: var(--text);
}
.biz-buffs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.biz-buff-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid color-mix(in srgb, var(--buff-color) 30%, transparent);
  font-size: 13px;
}
.biz-buff-icon {
  font-size: 14px;
}
.biz-buff-name {
  color: var(--text-dim);
  font-weight: 500;
}
.biz-buff-val {
  font-weight: 700;
  color: var(--buff-color);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
}
.biz-no-buffs {
  font-size: 13px;
  color: var(--text-dim);
  padding: 4px 0;
}

/* Business Cards Grid */
.biz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 12px;
}
.biz-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  gap: 14px;
  align-items: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.biz-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.biz-owned {
  border-left: 3px solid var(--success);
}
.biz-owned:hover {
  border-color: var(--success);
}
.biz-locked {
  opacity: 0.65;
  border-left: 3px solid var(--border);
}
.biz-locked:hover {
  opacity: 0.85;
}
.biz-card-left {
  flex-shrink: 0;
}
.biz-card-emoji {
  font-size: 40px;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}
.biz-card-center {
  flex: 1;
  min-width: 0;
}
.biz-card-name {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
  color: var(--text);
}
.biz-card-level {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.biz-level-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(79, 195, 79, 0.15);
  color: var(--success);
  font-family: 'JetBrains Mono', monospace;
}
.biz-level-auto {
  background: rgba(167, 139, 250, 0.15);
  color: var(--accent);
}
.biz-prestige-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  font-family: 'JetBrains Mono', monospace;
  margin-left: 4px;
  vertical-align: middle;
}
.biz-auto-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(167, 139, 250, 0.1);
  color: var(--accent);
}
.biz-locked-tag {
  font-size: 12px;
  color: var(--text-dim);
  font-style: italic;
}
.biz-card-income {
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.biz-income-val {
  font-size: 16px;
  font-weight: 700;
  color: var(--success);
  font-family: 'JetBrains Mono', monospace;
  text-shadow: 0 0 8px rgba(79, 195, 79, 0.3);
}
.biz-income-label {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 500;
}
.biz-card-mult {
  font-size: 11px;
  color: #a78bfa;
  font-weight: 600;
  margin-top: 2px;
  letter-spacing: 0.2px;
}
.biz-income-preview {
  font-size: 12px;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
}
.biz-card-right {
  flex-shrink: 0;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.biz-card-cost {
  font-size: 12px;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
}
.biz-card-gain {
  font-size: 11px;
  color: var(--success);
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
}
.biz-card-auto-info {
  font-size: 11px;
  color: var(--accent);
  font-style: italic;
  max-width: 100px;
  text-align: right;
}
.biz-buy-btn {
  padding: 6px 16px;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent), #8b6ce0);
  color: white;
  transition: transform 0.1s ease, box-shadow 0.1s ease, opacity 0.15s ease;
  min-width: 80px;
}
.biz-buy-btn:hover:not(:disabled) {
  transform: scale(1.04);
  box-shadow: 0 2px 12px rgba(167, 139, 250, 0.4);
}
.biz-buy-btn:active:not(:disabled) {
  transform: scale(0.97);
}
.biz-buy-new {
  background: linear-gradient(135deg, var(--success), #3a9a3a);
}
.biz-buy-new:hover:not(:disabled) {
  box-shadow: 0 2px 12px rgba(79, 195, 79, 0.4);
}
.biz-btn-disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.biz-btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: biz-spin 0.6s linear infinite;
}
@keyframes biz-spin {
  to { transform: rotate(360deg); }
}

/* ─── Cosmetic Preview Panel ─── */

.cosmetic-preview-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  overflow: visible;
  position: relative;
}

.preview-badge-bg {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #1a1a2e, #1f1f35, #1a1a2e);
  background-size: 200% 200%;
  z-index: 0;
  pointer-events: none;
}

.preview-profile {
  display: flex;
  align-items: center;
  gap: 18px;
  overflow: visible;
  position: relative;
  z-index: 1;
}

.preview-avatar-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  overflow: visible;
}

.preview-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 3px solid var(--border);
}

.preview-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: visible;
}

.preview-title-container {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-height: 16px;
}

.preview-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.preview-word {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dim);
}

.preview-platform-selector {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.plat-btn {
  padding: 6px 14px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.plat-btn:hover {
  color: var(--text);
  border-color: var(--text-dim);
}

.plat-btn.active {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(167, 139, 250, 0.12);
}

/* ─── Cosmetic Card Toggle ─── */

.cosmetic-toggle {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.cosmetic-toggle.equipped {
  background: var(--accent);
  color: white;
}

.cosmetic-toggle.unequipped {
  background: var(--surface2);
  color: var(--text-dim);
  border: 1px solid var(--border);
}

.cosmetic-toggle.unequipped:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.cosmetic-toggle:disabled {
  opacity: 0.5;
  cursor: wait;
}

/* ─── Cosmetics ─── */

.visibility-settings {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-bottom: 10px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.visibility-settings h4 {
  width: 100%;
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.vis-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}
.vis-toggle input[type="checkbox"] {
  accent-color: var(--accent);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.cosmetics-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}

.cosmetics-filters select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 8px 12px;
  font-size: 14px;
  outline: none;
  cursor: pointer;
}

.cosmetics-filters select:focus {
  border-color: var(--accent);
}

.cosmetics-count {
  color: var(--text-dim);
  font-size: 13px;
}

.cosmetics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

.cosmetic-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  position: relative;
}

.cosmetic-card.equipped {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.cosmetic-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.cosmetic-category {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cosmetic-rarity {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 6px;
}

.cosmetic-reward-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 4px;
  background: rgba(255, 215, 0, 0.15);
  color: #ffd700;
}

/* ── New item indicator ── */
.cosmetic-card.is-new {
  border-color: var(--danger);
  box-shadow: 0 0 0 1px var(--danger), 0 0 8px rgba(248, 113, 113, 0.25);
}
.cosmetic-new-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 4px;
  background: rgba(248, 113, 113, 0.15);
  color: var(--danger);
}

.cosmetic-buff {
  font-size: 11px;
  color: var(--success);
  margin-top: 4px;
}

.equipped-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--accent);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.cosmetic-preview {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 14px;
  background: rgba(255,255,255,0.03);
  overflow: visible;
}

/* ─── History ─── */

.history-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}

.history-filters select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 8px 12px;
  font-size: 14px;
  outline: none;
  cursor: pointer;
}

.history-pagination {
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-btn {
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.page-btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.page-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

#history-page-info {
  font-size: 13px;
  color: var(--text-dim);
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.history-entry {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.history-type {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  min-width: 70px;
  text-align: center;
  white-space: nowrap;
}

.history-type.command { background: rgba(167, 139, 250, 0.15); color: var(--accent); }
.history-type.buy { background: rgba(79, 195, 79, 0.15); color: var(--success); }
.history-type.upgrade { background: rgba(74, 158, 255, 0.15); color: #4a9eff; }
.history-type.cosmetic { background: rgba(180, 74, 255, 0.15); color: #b44aff; }
.history-type.gift { background: rgba(255, 171, 0, 0.15); color: var(--warning); }
.history-type.reward { background: rgba(0, 255, 204, 0.15); color: #00ffcc; }
.history-type.set { background: rgba(180, 74, 255, 0.15); color: #b44aff; }

.history-detail {
  flex: 1;
  min-width: 0;
}

.history-command {
  font-weight: 600;
  color: var(--text);
}

.history-response {
  color: var(--text-dim);
  font-size: 12px;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-delta {
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}

.history-delta.positive { color: var(--success); }
.history-delta.negative { color: var(--danger); }
.history-delta.neutral { color: var(--text-dim); }

.history-time {
  font-size: 11px;
  color: var(--text-dim);
  white-space: nowrap;
}

/* ─── Searchle ─── */

.searchle-stats {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.searchle-entry {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.searchle-word {
  font-weight: 700;
  color: var(--accent);
  font-size: 15px;
}

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

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

.searchle-word-num {
  font-weight: 800;
  color: var(--text-dim);
  font-size: 12px;
  margin-right: 6px;
  opacity: 0.7;
}

/* ─── Word 500 ─── */

.word500-stats {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.word500-entry {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.word500-word {
  font-weight: 700;
  color: var(--accent);
  font-size: 15px;
}

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

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

.sp-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(180, 74, 255, 0.3), transparent);
  margin: 24px 0 16px;
}

/* ─── Play Button ─── */

.play-btn {
  display: block;
  margin: 24px auto 0;
  padding: 14px 32px;
  background: linear-gradient(135deg, #7c3aed, #4a9eff);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  text-align: center;
  border-radius: 12px;
  max-width: 240px;
  transition: transform 0.15s, box-shadow 0.15s;
}

.play-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

/* ─── Searchle Connect ─── */

.searchle-connect-wrap {
  margin-top: 16px;
  text-align: center;
  padding: 32px;
}

.searchle-connect-btn {
  display: inline-block;
  padding: 14px 32px;
  background: linear-gradient(135deg, #7c3aed, #4a9eff);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  border-radius: 12px;
  transition: transform 0.15s, box-shadow 0.15s;
}

.searchle-connect-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

/* ─── Live Chat ─── */

.chat-feed {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
  height: calc(100vh - 260px);
  min-height: 300px;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chat-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 14px;
}

.chat-msg {
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.4;
  animation: fadeIn 0.2s ease;
  display: flex;
  align-items: center;
}

.chat-msg:hover {
  background: var(--surface2);
}

.chat-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 6px;
  flex-shrink: 0;
}

.chat-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--surface2);
  margin-right: 6px;
  flex-shrink: 0;
}

.chat-avatar-fallback.plat-tiktok { background: #ee1d52; }
.chat-avatar-fallback.plat-youtube { background: #ff0000; }
.chat-avatar-fallback.plat-twitch { background: #9146ff; }
.chat-avatar-fallback.plat-discord { background: #5865F2; }
.chat-avatar-fallback.plat-mobile { background: #a78bfa; }

.chat-username {
  font-weight: 600;
  margin-right: 6px;
}

.chat-text {
  color: var(--text);
}

/* Platform colors */
.plat-tiktok { color: #ee1d52; }
.plat-youtube { color: #ff0000; }
.plat-twitch { color: #9146ff; }
.plat-discord { color: #5865F2; }
.plat-mobile { color: #a78bfa; }

/* Chat input bar */
.chat-input-bar {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
}

#chat-input {
  flex: 1;
  padding: 10px 14px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text);
  font-size: 14px;
  outline: none;
}

#chat-input:focus {
  border-color: var(--accent);
}

#chat-input::placeholder {
  color: var(--text-dim);
}

#chat-send {
  padding: 10px 20px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

#chat-send:hover {
  background: var(--accent-hover);
}

#chat-send:disabled {
  opacity: 0.5;
  cursor: default;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Toast ─── */

.portal-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  z-index: 1000;
  animation: toastIn 0.2s ease, toastOut 0.3s ease 1.7s forwards;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes toastOut {
  from { opacity: 1; }
  to { opacity: 0; transform: translateX(-50%) translateY(-10px); }
}

/* ─── Avatar Fallback ─── */

.avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
  color: white;
  position: absolute;
  top: 0;
  left: 0;
}

/* ─── Cosmetic Sets ─── */

.sets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.set-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}

.set-card.complete {
  border-color: rgba(79, 195, 79, 0.4);
}

.set-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.set-name {
  font-weight: 600;
  font-size: 14px;
}

.set-progress {
  font-size: 13px;
  color: var(--text-dim);
}

.set-bar {
  height: 4px;
  background: var(--surface2);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 6px;
}

.set-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s;
}

.set-card.complete .set-bar-fill {
  background: var(--success);
}

.set-bonus {
  font-size: 11px;
  color: var(--success);
}

/* ─── Responsive ─── */

@media (max-width: 640px) {
  .portal-header {
    padding: 4px 16px;
  }
  .header-title { display: none; }
  .tabs { padding: 10px 16px; }
  .content { padding: 16px; }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .biz-grid {
    grid-template-columns: 1fr;
  }
  .biz-hero-title { font-size: 22px; }
  .biz-card { flex-wrap: wrap; }
  .biz-card-right { width: 100%; flex-direction: row; justify-content: space-between; align-items: center; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
  .cosmetics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cosmetic-preview-panel {
    flex-direction: column;
    align-items: flex-start;
  }
  .preview-platform-selector {
    align-self: stretch;
    justify-content: center;
  }
  .sets-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .history-entry {
    flex-wrap: wrap;
    gap: 6px;
  }
  .history-response { white-space: normal; }
  .user-name-group { display: none; }
  .banner { margin: 12px 16px 0; }
}

@media (max-width: 380px) {
  .cosmetics-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .sets-grid {
    grid-template-columns: 1fr;
  }
  .ov-stats-grid {
    grid-template-columns: 1fr;
  }
  .games-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── Cosmetic Animation Keyframes ─── */

@keyframes cosmetic-prismatic { 0% { filter: hue-rotate(0deg); } 100% { filter: hue-rotate(360deg); } }
@keyframes cosmetic-void-pulse { 0%, 100% { opacity: 0.9; } 50% { opacity: 1; } }
@keyframes cosmetic-border-rotate { 0% { filter: hue-rotate(0deg); } 100% { filter: hue-rotate(360deg); } }
@keyframes cosmetic-inferno-pulse { 0%, 100% { box-shadow: 0 0 10px rgba(255,69,0,0.6), 0 0 20px rgba(255,69,0,0.3); } 50% { box-shadow: 0 0 15px rgba(255,69,0,0.8), 0 0 30px rgba(255,69,0,0.5); } }
@keyframes cosmetic-supernova { 0%, 100% { box-shadow: 0 0 15px rgba(255,200,0,0.7), 0 0 30px rgba(255,100,0,0.4); } 50% { box-shadow: 0 0 20px rgba(255,200,0,0.9), 0 0 40px rgba(255,100,0,0.6); } }
@keyframes cosmetic-cosmic { 0% { box-shadow: 0 0 15px rgba(100,0,255,0.7), 0 0 30px rgba(200,0,255,0.4); } 33% { box-shadow: 0 0 15px rgba(255,0,200,0.7), 0 0 30px rgba(255,0,100,0.4); } 66% { box-shadow: 0 0 15px rgba(0,200,255,0.7), 0 0 30px rgba(0,100,255,0.4); } 100% { box-shadow: 0 0 15px rgba(100,0,255,0.7), 0 0 30px rgba(200,0,255,0.4); } }
@keyframes cosmetic-legendary-glow { 0%, 100% { text-shadow: 0 0 8px rgba(255,215,0,0.8), 0 0 16px rgba(255,180,0,0.5); } 50% { text-shadow: 0 0 12px rgba(255,215,0,1), 0 0 24px rgba(255,180,0,0.7); } }
@keyframes cosmetic-chromatic { 0% { -webkit-text-stroke-color: #ff0000; } 16% { -webkit-text-stroke-color: #ff8800; } 33% { -webkit-text-stroke-color: #ffff00; } 50% { -webkit-text-stroke-color: #00ff00; } 66% { -webkit-text-stroke-color: #0088ff; } 83% { -webkit-text-stroke-color: #8800ff; } 100% { -webkit-text-stroke-color: #ff0000; } }
@keyframes cosmetic-god-pulse { 0%, 100% { opacity: 0.9; text-shadow: 0 0 10px rgba(255,68,68,0.7); } 50% { opacity: 1; text-shadow: 0 0 15px rgba(255,68,68,0.9), 0 0 30px rgba(255,68,68,0.4); } }
@keyframes cosmetic-glitch { 0% { transform: translate(0); } 20% { transform: translate(-2px, 1px); } 40% { transform: translate(2px, -1px); } 60% { transform: translate(-1px, -1px); } 80% { transform: translate(1px, 2px); } 100% { transform: translate(0); } }
@keyframes cosmetic-glitch-text { 0%, 100% { text-shadow: 2px 0 #ff0040, -2px 0 #00ffff; } 25% { text-shadow: -2px 0 #ff0040, 2px 0 #00ffff; } 50% { text-shadow: 2px 1px #ff0040, -2px -1px #00ffff; } 75% { text-shadow: -1px -1px #ff0040, 1px 1px #00ffff; } }
@keyframes cosmetic-plasma-border { 0%, 100% { box-shadow: 0 0 10px rgba(124,58,237,0.6), 0 0 20px rgba(124,58,237,0.3); } 50% { box-shadow: 0 0 15px rgba(168,85,247,0.8), 0 0 30px rgba(124,58,237,0.5); } }
@keyframes cosmetic-void-ring { 0%, 100% { box-shadow: 0 0 12px rgba(45,27,105,0.8), 0 0 24px rgba(100,0,255,0.4); } 50% { box-shadow: 0 0 18px rgba(100,0,255,0.9), 0 0 36px rgba(180,74,255,0.5); } }
@keyframes cosmetic-celestial { 0% { filter: hue-rotate(0deg); box-shadow: 0 0 15px rgba(255,215,0,0.6), 0 0 30px rgba(255,150,0,0.3); } 50% { box-shadow: 0 0 20px rgba(255,215,0,0.8), 0 0 40px rgba(255,150,0,0.5); } 100% { filter: hue-rotate(360deg); box-shadow: 0 0 15px rgba(255,215,0,0.6), 0 0 30px rgba(255,150,0,0.3); } }
@keyframes cosmetic-electric-aura { 0%, 100% { box-shadow: 0 0 12px rgba(34,211,238,0.6), 0 0 24px rgba(34,211,238,0.3); } 33% { box-shadow: 0 0 16px rgba(34,211,238,0.8), 0 0 32px rgba(34,211,238,0.4); } 66% { box-shadow: 0 0 10px rgba(34,211,238,0.5), 0 0 20px rgba(34,211,238,0.25); } }
@keyframes cosmetic-void-aura { 0%, 100% { box-shadow: 0 0 15px rgba(45,27,105,0.8), 0 0 30px rgba(100,0,255,0.5); } 50% { box-shadow: 0 0 20px rgba(100,0,255,0.9), 0 0 40px rgba(180,74,255,0.6), 0 0 60px rgba(180,74,255,0.3); } }
@keyframes cosmetic-divine-glow { 0%, 100% { text-shadow: 0 0 10px rgba(255,255,255,0.9), 0 0 20px rgba(255,215,0,0.6); } 50% { text-shadow: 0 0 15px rgba(255,255,255,1), 0 0 30px rgba(255,215,0,0.8), 0 0 45px rgba(255,180,0,0.4); } }
@keyframes cosmetic-neon-flicker { 0%, 100% { opacity: 1; } 92% { opacity: 1; } 93% { opacity: 0.6; } 94% { opacity: 1; } 96% { opacity: 0.7; } 97% { opacity: 1; } }
@keyframes cosmetic-supreme-pulse { 0%, 100% { text-shadow: 0 0 10px rgba(255,255,255,0.8), 0 0 20px rgba(255,215,0,0.4); opacity: 0.9; } 50% { text-shadow: 0 0 15px rgba(255,255,255,1), 0 0 30px rgba(255,215,0,0.6), 0 0 45px rgba(255,100,0,0.3); opacity: 1; } }
@keyframes cosmetic-wg-fire { 0%, 100% { text-shadow: 0 0 8px rgba(255,100,0,0.7), 0 0 16px rgba(255,50,0,0.4); } 50% { text-shadow: 0 0 12px rgba(255,100,0,0.9), 0 0 24px rgba(255,50,0,0.6); } }
@keyframes cosmetic-wg-frost { 0%, 100% { text-shadow: 0 0 8px rgba(103,232,249,0.6), 0 0 16px rgba(103,232,249,0.3); } 50% { text-shadow: 0 0 12px rgba(103,232,249,0.8), 0 0 24px rgba(103,232,249,0.5); } }
@keyframes cosmetic-wg-bloodmoon { 0%, 100% { text-shadow: 0 0 8px rgba(220,38,38,0.7), 0 0 16px rgba(180,0,0,0.4); } 50% { text-shadow: 0 0 12px rgba(220,38,38,0.9), 0 0 24px rgba(180,0,0,0.6), 0 0 32px rgba(120,0,0,0.3); } }
@keyframes cosmetic-wg-galaxy { 0%, 100% { text-shadow: 0 0 10px rgba(180,74,255,0.7), 0 0 20px rgba(100,0,200,0.4); } 50% { text-shadow: 0 0 14px rgba(180,74,255,0.9), 0 0 28px rgba(100,0,200,0.6), 0 0 36px rgba(50,0,150,0.3); } }
@keyframes cosmetic-wg-golden { 0%, 100% { text-shadow: 0 0 8px rgba(255,215,0,0.8), 0 0 16px rgba(255,180,0,0.5); } 50% { text-shadow: 0 0 12px rgba(255,215,0,1), 0 0 24px rgba(255,180,0,0.7); } }
@keyframes cosmetic-wg-aurora { 0% { text-shadow: 0 0 8px rgba(0,255,135,0.7), 0 0 16px rgba(0,188,212,0.5); } 33% { text-shadow: 0 0 8px rgba(0,188,212,0.7), 0 0 16px rgba(124,77,255,0.5); } 66% { text-shadow: 0 0 8px rgba(124,77,255,0.7), 0 0 16px rgba(224,64,251,0.5); } 100% { text-shadow: 0 0 8px rgba(0,255,135,0.7), 0 0 16px rgba(0,188,212,0.5); } }
@keyframes cosmetic-wg-divine { 0%, 100% { text-shadow: 0 0 10px rgba(255,255,255,0.9), 0 0 20px rgba(255,215,0,0.6); } 50% { text-shadow: 0 0 15px rgba(255,255,255,1), 0 0 30px rgba(255,215,0,0.8), 0 0 45px rgba(255,180,0,0.4); } }
@keyframes cosmetic-wg-void { 0%, 100% { text-shadow: 0 0 10px rgba(180,74,255,0.8), 0 0 20px rgba(100,0,255,0.5); } 50% { text-shadow: 0 0 15px rgba(180,74,255,1), 0 0 30px rgba(100,0,255,0.7), 0 0 40px rgba(50,0,200,0.4); } }

/* Generated cosmetic animations (loot box rewards) */
@keyframes gen-pulse { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.25); } }
@keyframes gen-shift { 0% { filter: hue-rotate(0deg); } 100% { filter: hue-rotate(360deg); } }
@keyframes gen-prismatic { 0% { filter: hue-rotate(0deg) brightness(1); } 33% { filter: hue-rotate(120deg) brightness(1.3); } 66% { filter: hue-rotate(240deg) brightness(1.1); } 100% { filter: hue-rotate(360deg) brightness(1); } }

/* ═══════════════════════════════════════════════════════════════════
   STORE PAGE
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Store Hero ─── */

.store-hero {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
  padding: 40px 32px;
  isolation: isolate;
}

.store-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(124,58,237,0.25) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(74,158,255,0.2) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 0%, rgba(255,171,0,0.12) 0%, transparent 50%),
    linear-gradient(135deg, var(--surface) 0%, var(--surface2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.store-hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.015) 0px, rgba(255,255,255,0.015) 1px, transparent 1px, transparent 60px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.015) 0px, rgba(255,255,255,0.015) 1px, transparent 1px, transparent 60px);
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.store-hero-content {
  text-align: center;
}

.store-hero-title {
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent) 0%, #4a9eff 50%, #ffab00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.store-hero-sub {
  color: var(--text-dim);
  font-size: 15px;
  margin-bottom: 16px;
}

.store-coins-display {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,171,0,0.1);
  border: 1px solid rgba(255,171,0,0.25);
  border-radius: 20px;
  padding: 8px 20px;
}

.store-coins-icon {
  font-size: 18px;
}

.store-coins-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--warning);
}

/* ─── Store Preview Panel ─── */

.store-preview-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  overflow: visible;
  position: relative;
}

.store-preview-avatar-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  overflow: visible;
}

.store-preview-reset-btn {
  padding: 8px 16px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-dim);
  position: relative;
  z-index: 1;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.store-preview-reset-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ─── Store Filters ─── */

.store-filters {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 20px;
}

.store-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}

.store-filter-row + .store-filter-row {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.store-filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.store-filter-group label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-dim);
}

.store-filter-group select {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 8px 12px;
  font-size: 13px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
  min-width: 150px;
}

.store-filter-group select:focus {
  border-color: var(--accent);
}

.store-sort-row {
  justify-content: space-between;
  align-items: center;
}

.store-result-count {
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 500;
}

/* ─── Store Grid ─── */

.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

/* ─── Store Card ─── */

.store-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.store-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3), 0 0 0 1px var(--rarity-color, var(--border));
  border-color: var(--rarity-color, var(--border));
}

.store-card.previewing {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent), 0 8px 24px rgba(167,139,250,0.2);
  transform: translateY(-3px);
}

.store-card.owned {
  opacity: 0.65;
}

.store-card.owned:hover {
  opacity: 1;
}

.store-card-rarity-strip {
  height: 3px;
  width: 100%;
}

.store-owned-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--accent);
  color: white;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

.store-aux-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0,255,204,0.15);
  color: #00ffcc;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
  border: 1px solid rgba(0,255,204,0.3);
}

/* ─── Store Card Preview Area ─── */

.store-card-preview {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at center, rgba(255,255,255,0.03) 0%, transparent 70%),
    var(--bg);
  overflow: visible;
  position: relative;
}

.store-preview-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface2);
}

.store-text-preview {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 2px;
}

.store-title-preview {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.store-we-preview {
  gap: 4px;
}

.store-we-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 0 2px;
}

/* ─── Store Card Body ─── */

.store-card-body {
  padding: 12px 14px 14px;
}

.store-card-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.store-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.store-card-category {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.store-set-badge {
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(167,139,250,0.12);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.store-card-rarity {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.store-card-buff {
  font-size: 11px;
  color: var(--success);
  font-weight: 500;
  margin-bottom: 2px;
}

.store-card-price {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.store-card-price-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--warning);
}

.store-card-gift {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  font-style: italic;
}

/* Store Buy Buttons */
.store-buy-btn {
  padding: 5px 14px;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, var(--success), #3a9a3a);
  color: white;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.store-buy-btn:hover:not(:disabled) {
  transform: scale(1.05);
  box-shadow: 0 2px 10px rgba(79, 195, 79, 0.4);
}
.store-buy-btn:active:not(:disabled) {
  transform: scale(0.96);
}
.store-buy-disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.store-buy-gift {
  background: linear-gradient(135deg, var(--accent), #8b6ce0);
}
.store-buy-gift:hover:not(:disabled) {
  box-shadow: 0 2px 10px rgba(167, 139, 250, 0.4);
}

/* Gift coin display in hero */
.store-coins-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.store-gift-coins-display {
  background: rgba(167, 139, 250, 0.1);
  border-color: rgba(167, 139, 250, 0.25);
}
.store-gift-coins-display .store-coins-value {
  color: var(--accent);
}

/* Set cost row with buy button */
.store-set-cost-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
}
.store-set-complete-label {
  color: var(--success);
  font-weight: 700;
  font-size: 13px;
  margin-top: 6px;
}

/* ─── Store Sets Grid ─── */

.store-sets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.store-set-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.store-set-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.store-set-card.complete {
  border-color: var(--set-color, var(--success));
  box-shadow: 0 0 0 1px var(--set-color, var(--success)), inset 0 0 30px rgba(79,195,79,0.03);
}

.store-set-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.store-set-name {
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
}

.store-set-rarity {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 6px;
}

.store-set-progress {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
}

.store-set-bar {
  height: 4px;
  background: var(--surface2);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 10px;
}

.store-set-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.4s ease;
}

.store-set-dots {
  display: flex;
  gap: 5px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.store-set-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--border);
  transition: transform 0.15s;
}

.store-set-dot.owned {
  border-color: transparent;
  transform: scale(1.1);
}

.store-set-bonus {
  font-size: 12px;
  color: var(--success);
  font-weight: 600;
}

.store-set-cost {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 4px;
}

/* ─── Store Responsive ─── */

@media (max-width: 640px) {
  .store-hero {
    padding: 28px 20px;
  }
  .store-hero-title {
    font-size: 24px;
  }
  .store-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .store-filter-group select {
    min-width: 0;
    font-size: 12px;
    padding: 6px 8px;
  }
  .store-filter-group label {
    font-size: 9px;
  }
  .store-preview-panel {
    flex-direction: column;
    align-items: flex-start;
  }
  .store-preview-reset-btn {
    align-self: stretch;
    text-align: center;
  }
  .store-sets-grid {
    grid-template-columns: 1fr;
  }
  .store-card-name {
    font-size: 12px;
  }
  .store-card-preview {
    height: 44px;
  }
}

@media (max-width: 380px) {
  .store-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Live Games Dashboard ===== */
.live-games {
  margin-bottom: 20px;
}

.live-games-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.live-games-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.live-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4fc34f;
  animation: livePulse 2s infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(79, 195, 79, 0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(79, 195, 79, 0); }
}

.live-games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.live-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.live-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.live-card-strip {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.live-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.live-card-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}

.live-card-emoji {
  font-size: 1.1rem;
}

.live-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.live-status-dot.active {
  background: #4fc34f;
  animation: livePulse 2s infinite;
}

.live-status-dot.won {
  background: #ffd93d;
}

.live-status-dot.offline {
  background: #555;
}

.live-card-stats {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.live-stat-line {
  font-size: 0.75rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
}

.live-stat-val {
  color: var(--text);
  font-weight: 600;
}

.live-jackpot {
  color: #ffd93d;
  font-weight: 700;
}

.live-card-play {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.live-card-play:hover {
  text-decoration: underline;
}

.live-card.offline {
  opacity: 0.5;
}

.live-winner-name {
  font-size: 0.72rem;
  color: #ffd93d;
  font-weight: 600;
}

@media (max-width: 600px) {
  .live-games-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── Account Linking ─── */

.link-account-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: none;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  text-decoration: none;
  color: #fff;
  margin-top: 8px;
}
.link-account-btn:hover { transform: translateY(-1px); }
.link-account-btn:active { transform: translateY(0); }

.link-account-btn.link-github {
  background: #333333;
}
.link-account-btn.link-github:hover {
  background: #24292e;
}

.link-account-btn.link-discord {
  background: var(--discord);
}
.link-account-btn.link-discord:hover {
  background: var(--discord-hover);
}

.link-account-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.unlink-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 50%;
  background: rgba(248, 113, 113, 0.15);
  color: var(--danger);
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s;
}
.ov-platform-card { position: relative; }
.ov-platform-card:hover .unlink-btn { opacity: 1; }
.unlink-btn:hover { background: rgba(248, 113, 113, 0.3); }

#not-linked-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ─── Toast Notifications ─── */

.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 12px 20px;
  border-radius: var(--radius);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  animation: toastIn 0.3s ease-out;
  max-width: 360px;
}
.toast.toast-success { background: #059669; }
.toast.toast-error { background: #dc2626; }
.toast.toast-info { background: var(--discord); }

.toast.toast-out {
  animation: toastOut 0.3s ease-in forwards;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(40px); }
}

/* ==================== PIZZA SHOP STYLES ==================== */

.pizza-container { max-width: 900px; margin: 0 auto; }

/* Hero */
.pizza-hero {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 32px 28px;
  margin-bottom: 20px;
}
.pizza-hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #c0392b, #e74c3c, #f39c12, #e67e22);
  background-size: 300% 300%;
  animation: ov-gradient-flow 8s ease infinite;
  opacity: 0.9;
}
.pizza-hero-content { position: relative; z-index: 1; }
.pizza-hero-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pizza-hero-sub { color: rgba(255,255,255,0.85); font-size: 0.95rem; margin: 0; }
.pizza-hero-stats {
  display: flex;
  gap: 20px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.pizza-hero-stat {
  background: rgba(0,0,0,0.25);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.85rem;
  color: #fff;
}
.pizza-hero-stat strong { font-size: 1.1rem; display: block; }

/* Level Bar */
.pizza-level-bar {
  background: rgba(0,0,0,0.3);
  border-radius: 6px;
  height: 18px;
  margin-top: 12px;
  overflow: hidden;
  position: relative;
}
.pizza-level-fill {
  height: 100%;
  background: linear-gradient(90deg, #f1c40f, #f39c12);
  border-radius: 6px;
  transition: width 0.5s ease;
}
.pizza-level-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Income Panel */
.pizza-income-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}
.pizza-income-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
}
.pizza-income-val {
  color: var(--success);
  font-weight: 700;
  font-size: 1.15rem;
}
.pizza-collect-btn {
  background: linear-gradient(135deg, #f39c12, #e67e22);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 10px 24px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.pizza-collect-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(243,156,18,0.4);
}
.pizza-collect-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Sub-tabs */
.pizza-sub-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.pizza-sub-tab {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}
.pizza-sub-tab:hover { border-color: var(--accent); color: var(--text); }
.pizza-sub-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Shop Visualization */
.pizza-shop-viz {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
  min-height: 160px;
  position: relative;
  overflow: hidden;
}
.pizza-shop-scene {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  height: 120px;
  position: relative;
}
.pizza-kitchen {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 140px;
}
.pizza-oven {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #7f1d1d, #b91c1c);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  position: relative;
  box-shadow: 0 0 12px rgba(185,28,28,0.4);
}
.pizza-oven-glow {
  position: absolute;
  inset: -4px;
  border-radius: 12px;
  background: radial-gradient(circle, rgba(239,68,68,0.3) 0%, transparent 70%);
  animation: ovenPulse var(--oven-speed, 5s) ease-in-out infinite;
}
@keyframes ovenPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}
.pizza-counter {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  justify-content: center;
}
.pizza-staff-icon {
  width: 32px;
  height: 40px;
  background: var(--surface2);
  border-radius: 50% 50% 4px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  border: 1px solid var(--border);
}
.pizza-seating {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}
.pizza-customer {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  animation: customerBounce 2s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes customerBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.pizza-queue {
  position: absolute;
  top: 8px;
  right: 12px;
  display: flex;
  gap: 4px;
  align-items: center;
}
.pizza-queue-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
  opacity: 0.5;
  animation: queuePulse 1.5s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes queuePulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}
.pizza-viz-labels {
  display: flex;
  justify-content: space-around;
  margin-top: 10px;
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Upgrade Grid */
.pizza-upgrade-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}
.pizza-upgrade-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.pizza-upgrade-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.pizza-upgrade-card.maxed {
  border-color: var(--success);
  opacity: 0.7;
}
.pizza-upgrade-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.pizza-upgrade-emoji { font-size: 1.4rem; }
.pizza-upgrade-name { font-weight: 600; font-size: 0.95rem; color: var(--text); }
.pizza-upgrade-level {
  margin-left: auto;
  background: var(--surface2);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
}
.pizza-upgrade-progress {
  width: 100%;
  height: 6px;
  background: var(--surface2);
  border-radius: 3px;
  margin-bottom: 8px;
  overflow: hidden;
}
.pizza-upgrade-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--success));
  border-radius: 3px;
  transition: width 0.3s ease;
}
.pizza-upgrade-desc { font-size: 0.8rem; color: var(--text-dim); margin-bottom: 6px; }
.pizza-upgrade-effect { font-size: 0.78rem; color: var(--success); margin-bottom: 10px; }
.pizza-upgrade-effect-preview {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.pizza-effect-current {
  color: var(--text);
  font-weight: 600;
  background: var(--surface2);
  padding: 2px 8px;
  border-radius: 4px;
}
.pizza-effect-arrow { color: var(--text-dim); font-size: 0.9rem; }
.pizza-effect-next {
  color: var(--success);
  font-weight: 600;
  background: rgba(76, 175, 80, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
}
.pizza-upgrade-btns {
  display: flex;
  gap: 6px;
}
.pizza-upgrade-btn {
  flex: 1;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  transition: opacity 0.15s;
}
.pizza-upgrade-btn:hover { opacity: 0.85; }
.pizza-upgrade-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.pizza-upgrade-btn.pizza-buy-one { flex: 2; }
.pizza-upgrade-btn.pizza-buy-max {
  flex: 1;
  background: linear-gradient(135deg, #ff9800, #f57c00);
}
.pizza-upgrade-btn.maxed-btn {
  background: var(--surface2);
  color: var(--success);
  cursor: default;
}

/* Prestige Panel */
.pizza-prestige-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.pizza-prestige-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.pizza-prestige-tier {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
}
.pizza-prestige-mult {
  background: rgba(167,139,250,0.15);
  color: var(--accent);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 0.85rem;
  font-weight: 600;
}
.pizza-prestige-tiers-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}
.pizza-prestige-tier-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  transition: border-color 0.2s;
}
.pizza-prestige-tier-card.current {
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(167,139,250,0.2);
}
.pizza-prestige-tier-card.locked { opacity: 0.4; }
.pizza-prestige-tier-name { font-weight: 600; font-size: 0.9rem; margin-bottom: 4px; }
.pizza-prestige-tier-mult { font-size: 0.8rem; color: var(--success); }
.pizza-prestige-tier-unlock { font-size: 0.7rem; color: var(--text-dim); margin-top: 4px; }
.pizza-prestige-btn {
  background: linear-gradient(135deg, #f39c12, #e74c3c);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 12px 32px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.pizza-prestige-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(231,76,60,0.4);
}
.pizza-prestige-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Customize Panel */
.pizza-customize-panel {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.pizza-customize-group {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.pizza-customize-group-title {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 10px;
  color: var(--text);
}
.pizza-customize-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pizza-customize-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
  font-size: 0.85rem;
  color: var(--text);
  border: 1px solid transparent;
}
.pizza-customize-option:hover { background: var(--surface2); }
.pizza-customize-option.selected {
  background: rgba(167,139,250,0.12);
  border-color: var(--accent);
  color: var(--accent);
}
.pizza-customize-option.locked {
  opacity: 0.35;
  cursor: not-allowed;
}
.pizza-customize-lock { font-size: 0.7rem; color: var(--text-dim); margin-left: auto; }

/* Shop Name Input */
.pizza-name-input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.pizza-name-input {
  flex: 1;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 12px;
  color: var(--text);
  font-size: 0.9rem;
}
.pizza-name-input:focus { border-color: var(--accent); outline: none; }
.pizza-name-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-weight: 600;
  cursor: pointer;
}
.pizza-name-btn:hover { background: var(--accent-hover); }

/* Stats Panel */
.pizza-stats-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.pizza-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.pizza-stat-item {
  text-align: center;
  padding: 12px;
  background: var(--surface2);
  border-radius: 8px;
}
.pizza-stat-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
}
.pizza-stat-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* Theme variations */
.pizza-container[data-theme="classic"] .pizza-hero-bg {
  background: linear-gradient(135deg, #c0392b, #e74c3c, #f39c12, #e67e22);
}
.pizza-container[data-theme="modern"] .pizza-hero-bg {
  background: linear-gradient(135deg, #ecf0f1, #bdc3c7, #95a5a6, #7f8c8d);
}
.pizza-container[data-theme="rustic"] .pizza-hero-bg {
  background: linear-gradient(135deg, #8B4513, #A0522D, #CD853F, #D2691E);
}
.pizza-container[data-theme="neon"] .pizza-hero-bg {
  background: linear-gradient(135deg, #e74c3c, #9b59b6, #3498db, #1abc9c);
}
.pizza-container[data-theme="garden"] .pizza-hero-bg {
  background: linear-gradient(135deg, #27ae60, #2ecc71, #f1c40f, #e67e22);
}

/* Prestige glow effects */
.pizza-container[data-prestige="1"] .pizza-shop-viz { border-color: #3498db; }
.pizza-container[data-prestige="2"] .pizza-shop-viz { border-color: #9b59b6; }
.pizza-container[data-prestige="3"] .pizza-shop-viz {
  border-color: #e67e22;
  box-shadow: 0 0 20px rgba(230,126,34,0.15);
}
.pizza-container[data-prestige="4"] .pizza-shop-viz,
.pizza-container[data-prestige="5"] .pizza-shop-viz {
  border-color: #f1c40f;
  box-shadow: 0 0 24px rgba(241,196,15,0.2);
}

/* ===== Shop Sign Styles ===== */
.pizza-sign {
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 6px 16px;
  margin-bottom: 12px;
  border-radius: 6px;
  letter-spacing: 1px;
}
.pizza-sign-basic {
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border);
}
.pizza-sign-neon {
  background: #1a1a2e;
  color: #ff6b9d;
  text-shadow: 0 0 8px #ff6b9d, 0 0 16px #ff6b9d, 0 0 32px #ff4081;
  border: 1px solid #ff6b9d;
  animation: neonFlicker 3s ease-in-out infinite;
}
@keyframes neonFlicker {
  0%, 100% { opacity: 1; }
  92% { opacity: 1; }
  93% { opacity: 0.7; }
  94% { opacity: 1; }
  96% { opacity: 0.8; }
  97% { opacity: 1; }
}
.pizza-sign-vintage {
  background: linear-gradient(135deg, #8B4513, #A0522D);
  color: #ffecd2;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  border: 2px solid #CD853F;
  font-family: Georgia, serif;
  font-style: italic;
}
.pizza-sign-marquee {
  background: #1a1a1a;
  color: #f1c40f;
  border: 3px solid #f1c40f;
  text-shadow: 0 0 6px rgba(241,196,15,0.6);
  position: relative;
  box-shadow: inset 0 0 10px rgba(241,196,15,0.1);
  animation: marqueeGlow 2s ease-in-out infinite alternate;
}
@keyframes marqueeGlow {
  from { box-shadow: inset 0 0 10px rgba(241,196,15,0.1), 0 0 4px rgba(241,196,15,0.2); }
  to { box-shadow: inset 0 0 15px rgba(241,196,15,0.2), 0 0 8px rgba(241,196,15,0.4); }
}

/* ===== Counter Styles ===== */
.pizza-shop-viz[data-counter="basic"] .pizza-counter {
  background: var(--surface2);
  border-radius: 8px;
  padding: 6px;
}
.pizza-shop-viz[data-counter="marble"] .pizza-counter {
  background: linear-gradient(135deg, #e8e8e8, #f5f5f5, #d0d0d0, #e8e8e8);
  border-radius: 8px;
  padding: 6px;
  border: 1px solid #ccc;
}
.pizza-shop-viz[data-counter="granite"] .pizza-counter {
  background: linear-gradient(135deg, #4a4a4a, #5c5c5c, #3a3a3a, #4a4a4a);
  border-radius: 8px;
  padding: 6px;
  border: 1px solid #666;
}
.pizza-shop-viz[data-counter="vintage"] .pizza-counter {
  background: linear-gradient(135deg, #8B4513, #A0522D, #CD853F);
  border-radius: 8px;
  padding: 6px;
  border: 1px solid #D2691E;
}

/* ===== Furniture Styles ===== */
.pizza-shop-viz[data-furniture="plastic"] .pizza-customer {
  background: var(--accent);
}
.pizza-shop-viz[data-furniture="wood"] .pizza-customer {
  background: linear-gradient(135deg, #8B6914, #A0822D);
  border: 1px solid #CD9B3F;
}
.pizza-shop-viz[data-furniture="upholstered"] .pizza-customer {
  background: linear-gradient(135deg, #9b59b6, #8e44ad);
  border: 1px solid #af7ac5;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.pizza-shop-viz[data-furniture="premium"] .pizza-customer {
  background: linear-gradient(135deg, #f1c40f, #e67e22);
  border: 1px solid #f39c12;
  box-shadow: 0 2px 6px rgba(241,196,15,0.3);
}

/* ===== Uniform Styles ===== */
.pizza-shop-viz[data-uniform="plain"] .pizza-staff-icon {
  background: var(--surface2);
  border-color: var(--border);
}
.pizza-shop-viz[data-uniform="striped"] .pizza-staff-icon {
  background: repeating-linear-gradient(
    0deg,
    var(--surface2),
    var(--surface2) 4px,
    rgba(231,76,60,0.2) 4px,
    rgba(231,76,60,0.2) 8px
  );
  border-color: #e74c3c;
}
.pizza-shop-viz[data-uniform="chef"] .pizza-staff-icon {
  background: linear-gradient(to bottom, #ecf0f1, #fff);
  border-color: #bdc3c7;
  box-shadow: 0 -3px 0 0 #ecf0f1;
}
.pizza-shop-viz[data-uniform="custom"] .pizza-staff-icon {
  background: linear-gradient(135deg, #3498db, #2980b9);
  border-color: #2980b9;
  color: #fff;
}

/* ===== Music Indicator ===== */
.pizza-music-indicator {
  position: absolute;
  top: 8px;
  left: 12px;
  font-size: 0.7rem;
  color: var(--text-dim);
  background: var(--surface2);
  padding: 2px 10px;
  border-radius: 12px;
  animation: musicBob 2s ease-in-out infinite;
  z-index: 2;
}
@keyframes musicBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

/* ===== Theme variations for entire viz ===== */
.pizza-container[data-theme="modern"] .pizza-shop-viz {
  background: linear-gradient(135deg, #2c3e50, #34495e);
}
.pizza-container[data-theme="rustic"] .pizza-shop-viz {
  background: linear-gradient(180deg, rgba(139,69,19,0.15), rgba(160,82,45,0.08));
}
.pizza-container[data-theme="neon"] .pizza-shop-viz {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border-color: #e74c3c;
}
.pizza-container[data-theme="neon"] .pizza-queue-dot {
  background: #e74c3c;
}
.pizza-container[data-theme="garden"] .pizza-shop-viz {
  background: linear-gradient(180deg, rgba(39,174,96,0.1), rgba(46,204,113,0.05));
}
.pizza-container[data-theme="garden"] .pizza-queue-dot {
  background: #27ae60;
}

.pizza-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  margin-bottom: 16px;
  transition: color 0.2s, border-color 0.2s;
}
.pizza-back-btn:hover {
  color: var(--text);
  border-color: var(--accent);
}

/* No shop state */
.pizza-no-shop {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-dim);
}
.pizza-no-shop-emoji { font-size: 4rem; margin-bottom: 16px; }
.pizza-no-shop-title { font-size: 1.3rem; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.pizza-no-shop-desc { font-size: 0.9rem; max-width: 400px; margin: 0 auto; }

/* ─── Game Card — Live State ─── */

.gc-is-live {
  border-color: color-mix(in srgb, var(--game-color) 50%, var(--border));
  box-shadow: 0 0 16px color-mix(in srgb, var(--game-color) 15%, transparent);
}

.gc-live-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(79, 195, 79, 0.15);
  color: #4fc34f;
  margin-bottom: 4px;
  animation: livePulse 2s infinite;
}

.gc-player-live {
  box-shadow: 0 0 6px rgba(79, 195, 79, 0.5);
}

.gc-live-info {
  margin: 6px 0 4px;
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.5;
}

.gc-live-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.gc-live-val {
  font-weight: 700;
  color: var(--text);
}

.gc-live-coins {
  color: #39ff14;
  font-weight: 600;
}

.gc-live-detail {
  font-size: 11px;
  color: var(--text-dim);
  opacity: 0.8;
}

/* ─── Word Games Tab — Bubbles & Panels ─── */

.wg-bubbles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.wg-bubble {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--game-color, var(--accent));
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s, background 0.2s;
  user-select: none;
}

.wg-bubble:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px color-mix(in srgb, var(--game-color) 25%, transparent);
  border-color: var(--game-color);
}

.wg-bubble.active {
  background: color-mix(in srgb, var(--game-color) 10%, var(--surface));
  border-color: var(--game-color);
  box-shadow: 0 4px 20px color-mix(in srgb, var(--game-color) 30%, transparent);
}

.wg-bubble-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.wg-bubble-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wg-panel {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
  animation: wgSlideDown 0.25s ease-out;
}

.wg-panel.open {
  display: block;
}

@keyframes wgSlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive: 2 columns on mobile */
@media (max-width: 600px) {
  .wg-bubbles {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .wg-bubble {
    padding: 10px 10px;
    gap: 8px;
  }

  .wg-bubble-img {
    width: 28px;
    height: 28px;
  }

  .wg-bubble-name {
    font-size: 12px;
  }

  .wg-panel {
    padding: 14px;
  }
}

/* ============================================
   HOW TO PLAY - Reference Page
   ============================================ */
.htp-hero {
  text-align: center;
  padding: 32px 16px 20px;
}
.htp-hero-title {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 6px;
}
.htp-hero-sub {
  color: #888;
  font-size: 14px;
  margin: 0;
}

/* Game quick-nav */
.htp-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  padding: 0 16px 24px;
  max-width: 700px;
  margin: 0 auto;
}
.htp-nav-btn {
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255,255,255,0.06);
  color: var(--htp-c, #a78bfa);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.htp-nav-btn:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--htp-c, #a78bfa);
}

/* Game card */
.htp-game {
  max-width: 700px;
  margin: 0 auto 24px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  overflow: hidden;
  border-top: 3px solid var(--htp-c, #a78bfa);
}
.htp-game-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.htp-game-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: var(--htp-c, #a78bfa);
}
.htp-play-btn {
  padding: 6px 16px;
  border-radius: 8px;
  background: var(--htp-c, #a78bfa);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s;
}
.htp-play-btn:hover { opacity: 0.85; }

/* Steps inside game card */
.htp-steps {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.htp-step h4 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: #ddd;
}
.htp-step p {
  margin: 0 0 10px;
  font-size: 13px;
  color: #999;
  line-height: 1.5;
}

/* Reuse game-help visual classes (they come from game-help.css injected by proxy) */
#tab-howtoplay .gh-example {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 14px;
}
#tab-howtoplay .gh-legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 13px;
  color: #bbb;
}
#tab-howtoplay .gh-legend-swatch {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .htp-hero-title { font-size: 22px; }
  .htp-game { margin-left: 8px; margin-right: 8px; border-radius: 12px; }
  .htp-steps { padding: 12px 14px 16px; }
  .htp-game-header { padding: 12px 14px 10px; }
  .htp-nav { gap: 6px; padding: 0 8px 16px; }
  .htp-nav-btn { font-size: 12px; padding: 5px 10px; }
}

/* ── Newspaper Route ─────────────────────────── */

.news-back-btn { background: none; border: 1px solid var(--border); color: var(--text-dim); padding: 8px 16px; border-radius: var(--radius); cursor: pointer; margin-bottom: 16px; font-size: 0.9rem; }
.news-back-btn:hover { color: #fff; border-color: #64748b; }
.news-container { max-width: 900px; margin: 0 auto; }

/* No route state */
.news-no-route { text-align: center; padding: 60px 20px; }
.news-no-route-emoji { font-size: 4rem; margin-bottom: 16px; }
.news-no-route-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; }
.news-no-route-desc { color: var(--text-dim); max-width: 400px; margin: 0 auto; }

/* Hero — dark blue/slate ink theme */
.news-hero { position: relative; border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; }
.news-hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #1e293b 0%, #334155 40%, #1e293b 70%, #0f172a 100%);
  background-size: 300% 300%;
  animation: newsHeroBg 12s ease infinite;
  opacity: 0.95;
}
@keyframes newsHeroBg { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.news-hero-content { position: relative; z-index: 1; padding: 24px 20px 16px; text-align: center; }
.news-hero-title { font-size: 1.5rem; font-weight: 700; margin: 0 0 4px; color: #f8fafc; }
.news-hero-sub { color: #94a3b8; font-size: 0.9rem; margin: 0 0 16px; }
.news-hero-stats { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin-bottom: 12px; }
.news-hero-stat { text-align: center; }
.news-hero-stat strong { display: block; font-size: 1.1rem; color: #f59e0b; }

/* Level bar — amber/slate gradient */
.news-level-bar { position: relative; height: 22px; background: rgba(0,0,0,0.4); border-radius: 11px; overflow: hidden; margin-top: 8px; }
.news-level-fill {
  height: 100%; border-radius: 11px;
  background: linear-gradient(90deg, #f59e0b, #d97706, #b45309);
  transition: width 0.5s ease;
}
.news-level-text { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 600; text-shadow: 0 1px 2px rgba(0,0,0,0.8); }

/* Income panel */
.news-income-panel {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--surface2); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 16px; flex-wrap: wrap;
}
.news-income-info { font-size: 0.95rem; }
.news-income-val { color: #f59e0b; font-weight: 700; }
.news-income-note { color: #22c55e; font-size: 0.75rem; margin-left: 6px; font-weight: 600; }
.news-collect-btn {
  padding: 10px 24px; border: none; border-radius: var(--radius); font-weight: 700; cursor: pointer;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0f172a; font-size: 0.95rem; transition: transform 0.15s, box-shadow 0.15s;
}
.news-collect-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(245,158,11,0.4); }
.news-collect-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.news-collect-capped {
  background: linear-gradient(135deg, #ef4444, #dc2626) !important;
  color: #fff !important;
  animation: newsCappedPulse 1.5s ease-in-out infinite;
}
@keyframes newsCappedPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(239,68,68,0.4); }
  50% { box-shadow: 0 0 20px rgba(239,68,68,0.7); }
}
.news-income-panel { flex-wrap: wrap; }
.news-cap-bar {
  width: 100%; height: 18px; background: var(--surface3); border-radius: 9px;
  position: relative; overflow: hidden; margin-top: 8px;
}
.news-cap-fill {
  height: 100%; border-radius: 9px; transition: width 1s linear;
  background: linear-gradient(90deg, #f59e0b, #d97706);
}
.news-cap-fill.capped {
  background: linear-gradient(90deg, #ef4444, #dc2626);
}
.news-cap-text {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

/* Sub-tabs */
.news-sub-tabs { display: flex; gap: 4px; margin-bottom: 16px; flex-wrap: wrap; }
.news-sub-tab {
  flex: 1; padding: 10px 8px; background: var(--surface2); border: none; border-radius: var(--radius);
  color: var(--text-dim); cursor: pointer; font-size: 0.85rem; font-weight: 600; transition: all 0.15s;
}
.news-sub-tab:hover { background: var(--surface3); color: #fff; }
.news-sub-tab.active { background: #334155; color: #f8fafc; }

/* Route Visualization — newspaper delivery scene */
.news-route-viz {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid #334155; border-radius: var(--radius); padding: 16px; margin-bottom: 16px;
  position: relative; overflow: hidden; min-height: 160px;
}
.news-route-scene { display: flex; justify-content: space-around; align-items: flex-end; gap: 8px; min-height: 100px; flex-wrap: wrap; }

/* Masthead styles */
.news-masthead {
  text-align: center; font-weight: 800; font-size: 1.2rem; padding: 8px 16px; margin-bottom: 12px;
  border-bottom: 2px solid #475569; letter-spacing: 2px; text-transform: uppercase; color: #f8fafc;
}
.news-masthead-simple { font-family: inherit; }
.news-masthead-banner {
  background: linear-gradient(180deg, #334155, #1e293b);
  border: 1px solid #475569; border-radius: 4px;
  padding: 10px 20px;
}
.news-masthead-vintage {
  font-family: 'Georgia', 'Times New Roman', serif; font-style: italic;
  color: #d4a574; border-color: #92400e; border-bottom-width: 3px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.news-masthead-neon {
  color: #38bdf8; border-color: #0ea5e9;
  text-shadow: 0 0 10px #38bdf8, 0 0 20px #0284c7, 0 0 40px #0369a1;
  animation: newsMastheadGlow 2s ease-in-out infinite alternate;
}
@keyframes newsMastheadGlow { from { text-shadow: 0 0 10px #38bdf8, 0 0 20px #0284c7; } to { text-shadow: 0 0 15px #38bdf8, 0 0 30px #0284c7, 0 0 50px #0369a1; } }

/* Music indicator */
.news-music-indicator {
  position: absolute; top: 10px; left: 10px; font-size: 0.7rem; color: #94a3b8;
  background: rgba(0,0,0,0.5); padding: 3px 8px; border-radius: 8px;
  animation: newsMusicBob 2s ease-in-out infinite;
}
@keyframes newsMusicBob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

/* Printing press */
.news-press-area { display: flex; gap: 8px; flex-direction: column; align-items: center; }
.news-press {
  width: 48px; height: 48px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #475569, #334155);
  border: 1px solid #64748b; font-size: 1.5rem; position: relative; box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.news-press-glow {
  position: absolute; inset: -3px; border-radius: 11px;
  background: radial-gradient(circle, rgba(245,158,11,0.3), transparent 70%);
  animation: newsPressGlow var(--press-speed, 3s) ease-in-out infinite;
}
@keyframes newsPressGlow { 0%,100% { opacity: 0.3; transform: scale(1); } 50% { opacity: 0.8; transform: scale(1.1); } }

/* Carriers on bikes */
.news-carrier-area { display: flex; gap: 6px; flex-direction: column; align-items: center; }
.news-carrier {
  font-size: 1.4rem; animation: newsCarrierRide 1.5s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes newsCarrierRide { 0%,100% { transform: translateX(0) rotate(0deg); } 25% { transform: translateX(5px) rotate(2deg); } 75% { transform: translateX(-5px) rotate(-2deg); } }

/* Subscriber houses */
.news-subscriber-area { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; max-width: 200px; }
.news-house {
  font-size: 1.1rem; animation: newsHouseWave 3s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes newsHouseWave { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }

/* Newsstand racks */
.news-rack-area { display: flex; gap: 6px; flex-direction: column; align-items: center; }
.news-rack { font-size: 1.2rem; opacity: 0.9; }

/* Viz labels */
.news-viz-labels { display: flex; justify-content: space-around; margin-top: 10px; font-size: 0.7rem; color: #64748b; text-align: center; }

/* Rack customization */
.news-route-viz[data-rack="metal"] .news-rack { filter: brightness(1.3) saturate(0.5); }
.news-route-viz[data-rack="glass"] .news-rack { filter: brightness(1.5); text-shadow: 0 0 8px rgba(148,163,184,0.5); }
.news-route-viz[data-rack="premium"] .news-rack { filter: brightness(1.3); text-shadow: 0 0 8px rgba(245,158,11,0.5); }

/* Outfit customization */
.news-route-viz[data-outfit="vest"] .news-carrier { filter: hue-rotate(30deg); }
.news-route-viz[data-outfit="raincoat"] .news-carrier { filter: hue-rotate(180deg) brightness(1.2); }
.news-route-viz[data-outfit="branded"] .news-carrier { filter: sepia(0.5) saturate(2); }

/* Headline font customization */
.news-route-viz[data-font="bold"] .news-masthead { font-weight: 900; letter-spacing: 4px; }
.news-route-viz[data-font="gothic"] .news-masthead { font-family: 'Georgia', serif; letter-spacing: 6px; }
.news-route-viz[data-font="tabloid"] .news-masthead { font-style: italic; color: #ef4444; letter-spacing: 1px; }

/* Upgrade grid */
.news-upgrade-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.news-upgrade-card {
  background: var(--surface2); border-radius: var(--radius); padding: 14px;
  border: 1px solid var(--border); transition: transform 0.15s, box-shadow 0.15s;
}
.news-upgrade-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
.news-upgrade-card.maxed { border-color: #22c55e; opacity: 0.7; }

.news-upgrade-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.news-upgrade-emoji { font-size: 1.3rem; }
.news-upgrade-name { font-weight: 700; flex: 1; }
.news-upgrade-level { font-size: 0.8rem; color: #f59e0b; font-weight: 600; }

.news-upgrade-progress { height: 6px; background: rgba(255,255,255,0.08); border-radius: 3px; margin-bottom: 6px; overflow: hidden; }
.news-upgrade-progress-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, #334155, #64748b, #22c55e); transition: width 0.3s; }

.news-upgrade-desc { font-size: 0.8rem; color: var(--text-dim); margin-bottom: 6px; }

.news-upgrade-effect-preview { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; margin-bottom: 8px; padding: 4px 8px; background: rgba(0,0,0,0.2); border-radius: 4px; }
.news-effect-current { color: #94a3b8; }
.news-effect-arrow { color: #f59e0b; font-weight: 700; }
.news-effect-next { color: #22c55e; font-weight: 600; }

.news-upgrade-btns { display: flex; gap: 6px; }
.news-upgrade-btn { flex: 1; padding: 8px; border: none; border-radius: var(--radius); font-weight: 600; cursor: pointer; font-size: 0.8rem; transition: all 0.15s; }
.news-upgrade-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.news-upgrade-btn.maxed-btn { background: #22c55e22; color: #22c55e; }
.news-buy-one { flex: 2; background: linear-gradient(135deg, #334155, #475569); color: #f8fafc; }
.news-buy-one:hover:not(:disabled) { background: linear-gradient(135deg, #475569, #64748b); }
.news-buy-max { flex: 1; background: linear-gradient(135deg, #f59e0b, #d97706); color: #0f172a; }
.news-buy-max:hover:not(:disabled) { background: linear-gradient(135deg, #fbbf24, #f59e0b); }

/* Prestige panel */
.news-prestige-panel { background: var(--surface2); border-radius: var(--radius); padding: 16px; }
.news-prestige-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.news-prestige-tier { font-size: 1.2rem; font-weight: 700; }
.news-prestige-mult { color: #f59e0b; font-weight: 600; }

.news-prestige-tiers-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.news-prestige-tier-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; text-align: center; }
.news-prestige-tier-card.current { border-color: #64748b; box-shadow: 0 0 12px rgba(100,116,139,0.3); }
.news-prestige-tier-card.locked { opacity: 0.4; }
.news-prestige-tier-name { font-weight: 700; font-size: 0.9rem; }
.news-prestige-tier-mult { color: #f59e0b; font-size: 0.8rem; margin: 4px 0; }
.news-prestige-tier-cap { color: #60a5fa; font-size: 0.72rem; font-weight: 600; }
.news-prestige-tier-unlock { color: var(--text-dim); font-size: 0.7rem; }

.news-prestige-btn {
  padding: 12px 32px; border: none; border-radius: var(--radius); font-weight: 700; font-size: 1rem; cursor: pointer;
  background: linear-gradient(135deg, #f59e0b, #b45309);
  color: #fff; transition: all 0.15s;
}
.news-prestige-btn:hover:not(:disabled) { box-shadow: 0 0 20px rgba(245,158,11,0.4); }
.news-prestige-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Customize panel */
.news-customize-panel { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.news-customize-group { background: var(--surface2); border-radius: var(--radius); padding: 12px; }
.news-customize-group-title { font-weight: 700; font-size: 0.9rem; margin-bottom: 8px; color: #f59e0b; }
.news-customize-options { display: flex; flex-direction: column; gap: 4px; }
.news-customize-option {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 6px;
  cursor: pointer; font-size: 0.85rem; transition: background 0.15s;
}
.news-customize-option:hover { background: rgba(255,255,255,0.05); }
.news-customize-option.selected { background: rgba(100,116,139,0.2); border: 1px solid #64748b; }
.news-customize-option.locked { opacity: 0.4; cursor: not-allowed; }
.news-customize-lock { font-size: 0.7rem; color: var(--text-dim); margin-left: auto; }

/* Name input */
.news-name-input-row { display: flex; gap: 8px; margin-bottom: 12px; }
.news-name-input { flex: 1; padding: 10px 12px; background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius); color: #fff; font-size: 0.9rem; }
.news-name-btn { padding: 10px 20px; background: #f59e0b; color: #0f172a; border: none; border-radius: var(--radius); font-weight: 700; cursor: pointer; }
.news-name-btn:hover { background: #fbbf24; }

/* Stats panel */
.news-stats-panel { }
.news-stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.news-stat-item { background: var(--surface2); border-radius: var(--radius); padding: 16px; text-align: center; }
.news-stat-value { display: block; font-size: 1.2rem; font-weight: 700; color: #f59e0b; margin-bottom: 4px; }
.news-stat-label { font-size: 0.7rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; }

/* Theme variations */
.news-container[data-theme="classic"] .news-hero-bg { background: linear-gradient(135deg, #1e293b 0%, #334155 40%, #1e293b 70%, #0f172a 100%); }
.news-container[data-theme="modern"] .news-hero-bg { background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 40%, #cbd5e1 100%); }
.news-container[data-theme="modern"] .news-hero-title { color: #0f172a; }
.news-container[data-theme="modern"] .news-hero-sub { color: #475569; }
.news-container[data-theme="modern"] .news-hero-stat strong { color: #d97706; }
.news-container[data-theme="retro"] .news-hero-bg { background: linear-gradient(135deg, #451a03 0%, #78350f 40%, #92400e 70%, #451a03 100%); }
.news-container[data-theme="tabloid"] .news-hero-bg { background: linear-gradient(135deg, #18181b 0%, #ef4444 30%, #18181b 70%, #dc2626 100%); }
.news-container[data-theme="tabloid"] .news-hero-stat strong { color: #fbbf24; }
.news-container[data-theme="underground"] .news-hero-bg { background: linear-gradient(135deg, #022c22 0%, #064e3b 40%, #065f46 70%, #022c22 100%); }
.news-container[data-theme="underground"] .news-hero-stat strong { color: #34d399; }
.news-container[data-theme="underground"] .news-level-fill { background: linear-gradient(90deg, #10b981, #059669, #047857); }
.news-container[data-theme="underground"] .news-collect-btn { background: linear-gradient(135deg, #10b981, #059669); }

/* Prestige glow effects */
.news-container[data-prestige="1"] .news-hero { border: 1px solid #3498db; }
.news-container[data-prestige="2"] .news-hero { border: 1px solid #64748b; box-shadow: 0 0 12px rgba(100,116,139,0.3); }
.news-container[data-prestige="3"] .news-hero { border: 1px solid #d97706; box-shadow: 0 0 16px rgba(217,119,6,0.3); }
.news-container[data-prestige="4"] .news-hero,
.news-container[data-prestige="5"] .news-hero { border: 1px solid #f59e0b; box-shadow: 0 0 20px rgba(245,158,11,0.4); }

/* ── Library Management ─────────────────────────── */
.lib-back-btn { background: none; border: 1px solid var(--border); color: var(--text-dim); padding: 8px 16px; border-radius: var(--radius); cursor: pointer; margin-bottom: 16px; font-size: 0.9rem; }
.lib-back-btn:hover { color: #fff; border-color: #8b5cf6; }
.lib-container { max-width: 800px; margin: 0 auto; }
.lib-error { text-align: center; color: #ef4444; padding: 40px; }

/* Hero */
.lib-hero { display: flex; align-items: center; gap: 20px; padding: 24px; background: linear-gradient(135deg, #1a1025, #2d1f4a); border: 1px solid #8b5cf6; border-radius: var(--radius-lg); margin-bottom: 20px; }
.lib-hero-icon { font-size: 3rem; }
.lib-hero-info { flex: 1; }
.lib-hero-info h2 { margin: 0 0 6px; font-size: 1.4rem; }
.lib-hero-stats { display: flex; gap: 16px; margin-bottom: 8px; }
.lib-stat { color: var(--text-dim); font-size: 0.9rem; }
.lib-stat strong { color: #fff; }
.lib-progress-bar { height: 8px; background: var(--surface); border-radius: 4px; overflow: hidden; }
.lib-progress-fill { height: 100%; background: linear-gradient(90deg, #8b5cf6, #a78bfa); border-radius: 4px; transition: width 0.5s; }
.lib-progress-label { font-size: 0.75rem; color: var(--text-dim); margin-top: 4px; }

/* Sub-tabs */
.lib-tabs { display: flex; gap: 4px; margin-bottom: 16px; }
.lib-tab { background: var(--surface); border: 1px solid var(--border); color: var(--text-dim); padding: 8px 20px; border-radius: var(--radius); cursor: pointer; font-size: 0.85rem; }
.lib-tab.active { background: #8b5cf6; color: #fff; border-color: #8b5cf6; }

/* Filters */
.lib-filters { display: flex; gap: 8px; margin-bottom: 16px; }
.lib-search { flex: 1; padding: 8px 12px; background: var(--surface); border: 1px solid var(--border); color: #fff; border-radius: var(--radius); font-size: 0.85rem; }
.lib-search:focus { border-color: #8b5cf6; outline: none; }
.lib-game-filter { padding: 8px 12px; background: var(--surface); border: 1px solid var(--border); color: #fff; border-radius: var(--radius); font-size: 0.85rem; }

/* Word grid */
.lib-word-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.lib-word-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; }
.lib-word-text { font-weight: 700; font-size: 0.95rem; letter-spacing: 0.5px; margin-bottom: 4px; }
.lib-word-meta { display: flex; justify-content: space-between; font-size: 0.7rem; color: var(--text-dim); }
.lib-word-game { color: #8b5cf6; }
.lib-empty { text-align: center; color: var(--text-dim); padding: 40px; font-size: 0.9rem; }

/* Pagination */
.lib-pagination { display: flex; justify-content: center; gap: 12px; margin-top: 16px; }
.lib-page-btn { background: var(--surface); border: 1px solid var(--border); color: var(--text-dim); padding: 8px 20px; border-radius: var(--radius); cursor: pointer; }
.lib-page-btn:hover { border-color: #8b5cf6; color: #fff; }

/* Stats */
.lib-stats-section { margin-bottom: 24px; }
.lib-stats-title { font-size: 1rem; margin: 0 0 12px; color: var(--text-dim); }
.lib-stat-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.lib-stat-label { width: 110px; font-size: 0.8rem; color: var(--text-dim); text-align: right; }
.lib-stat-bar-bg { flex: 1; height: 20px; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.lib-stat-bar-fill { height: 100%; background: linear-gradient(90deg, #8b5cf6, #a78bfa); border-radius: var(--radius); transition: width 0.5s; }
.lib-stat-count { width: 50px; text-align: right; font-size: 0.85rem; font-weight: 600; }
.lib-recent-list { display: flex; flex-direction: column; gap: 6px; }
.lib-recent-item { font-size: 0.85rem; display: flex; gap: 8px; align-items: center; }

@media (max-width: 600px) {
  .lib-hero { flex-direction: column; text-align: center; gap: 12px; padding: 16px; }
  .lib-hero-stats { justify-content: center; }
  .lib-filters { flex-direction: column; }
  .lib-word-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .lib-stat-label { width: 80px; font-size: 0.7rem; }
}

/* ── Car Wash Management ─────────────────────────── */

.cw-back-btn {
  background: none; border: 1px solid var(--border); color: var(--text-dim);
  border-radius: var(--radius); padding: 8px 16px; cursor: pointer; font-size: 0.9rem;
  margin-bottom: 16px; display: block;
}
.cw-back-btn:hover { color: var(--text); border-color: var(--text); }

/* No shop */
.cw-no-shop { text-align: center; padding: 60px 20px; }
.cw-no-shop-emoji { font-size: 4rem; margin-bottom: 16px; }
.cw-no-shop-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 8px; }
.cw-no-shop-desc { color: var(--text-dim); max-width: 400px; margin: 0 auto; line-height: 1.5; }

/* Hero */
.cw-hero {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 16px;
}
.cw-hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #064e3b 0%, #065f46 30%, #047857 60%, #10b981 100%);
  background-size: 200% 200%; animation: cwHeroBg 8s ease infinite;
  opacity: 0.95;
}
@keyframes cwHeroBg { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.cw-hero-content { position: relative; z-index: 1; padding: 24px 20px 16px; text-align: center; }
.cw-hero-title { font-size: 1.5rem; font-weight: 700; margin: 0 0 4px; color: #f0fdf4; }
.cw-hero-sub { color: #a7f3d0; font-size: 0.9rem; margin: 0 0 16px; }
.cw-hero-stats { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin-bottom: 12px; }
.cw-hero-stat { text-align: center; }
.cw-hero-stat strong { display: block; font-size: 1.1rem; color: #6ee7b7; }

/* Level bar */
.cw-level-bar {
  position: relative; height: 20px; background: rgba(0,0,0,0.3); border-radius: 10px;
  overflow: hidden; margin-top: 8px;
}
.cw-level-fill {
  height: 100%; background: linear-gradient(90deg, #10b981, #059669, #34d399);
  border-radius: 10px; transition: width 0.3s;
}
.cw-level-text {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 600; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Income / laundering panel */
.cw-income-panel {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--surface2); border-radius: var(--radius); padding: 12px 16px;
  margin-bottom: 10px; flex-wrap: wrap;
}
.cw-income-left { display: flex; flex-direction: column; gap: 4px; }
.cw-income-row { font-size: 0.9rem; }
.cw-income-val { color: var(--success); font-weight: 700; }
.cw-launder-val { color: #10b981; font-weight: 700; }
.cw-launder-rate { color: #6ee7b7; font-size: 0.85rem; font-weight: 600; }
.cw-collect-btn {
  padding: 10px 20px; border: none; border-radius: var(--radius); font-weight: 700; cursor: pointer;
  background: linear-gradient(135deg, #10b981, #059669); color: #fff; font-size: 0.9rem;
  white-space: nowrap; transition: transform 0.1s, opacity 0.1s;
}
.cw-collect-btn:hover { transform: scale(1.03); }
.cw-collect-btn:active { transform: scale(0.97); }

/* Cap bar */
.cw-cap-bar-wrap { margin-bottom: 14px; }
.cw-cap-label { font-size: 0.8rem; color: var(--text-dim); margin-bottom: 4px; }
.cw-cap-bar { height: 10px; background: var(--surface3); border-radius: 5px; overflow: hidden; }
.cw-cap-fill { height: 100%; background: linear-gradient(90deg, #10b981, #059669); border-radius: 5px; transition: width 0.3s; }

/* Car wash visualization */
.cw-wash-viz {
  background: var(--surface2); border-radius: var(--radius-lg); padding: 16px;
  margin-bottom: 16px; border: 1px solid var(--border); position: relative; overflow: hidden;
}
.cw-sign {
  text-align: center; font-size: 1.1rem; font-weight: 800; letter-spacing: 3px;
  padding: 8px; margin-bottom: 10px; border-radius: 6px;
  background: linear-gradient(135deg, #064e3b, #065f46); color: #6ee7b7;
  text-transform: uppercase;
}
.cw-sign.cw-sign-neon {
  background: #111; color: #10b981;
  box-shadow: 0 0 12px #10b981, 0 0 24px rgba(16,185,129,0.4);
  animation: cwNeonPulse 2s ease-in-out infinite alternate;
}
@keyframes cwNeonPulse { from { box-shadow: 0 0 8px #10b981; } to { box-shadow: 0 0 20px #10b981, 0 0 40px rgba(16,185,129,0.3); } }
.cw-sign.cw-sign-led {
  background: linear-gradient(135deg, #000, #0a0a0a); color: #00ff9d;
  border: 2px solid #00ff9d; font-family: monospace;
}
.cw-sign.cw-sign-holo {
  background: linear-gradient(135deg, #0ea5e9, #8b5cf6, #10b981);
  color: #fff; animation: cwHoloPulse 3s ease infinite;
}
@keyframes cwHoloPulse { 0%,100% { filter: hue-rotate(0deg); } 50% { filter: hue-rotate(30deg); } }

.cw-music-indicator {
  text-align: center; font-size: 0.8rem; color: var(--text-dim); margin-bottom: 8px;
}
.cw-scene { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; padding: 8px 0; }
.cw-bays-area { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; min-width: 180px; }
.cw-bay {
  background: var(--surface3); border-radius: 8px; padding: 8px; text-align: center;
  min-width: 60px; position: relative; overflow: hidden;
}
.cw-car { font-size: 1.4rem; animation: cwCarShake var(--wash-speed, 3s) ease-in-out infinite; }
@keyframes cwCarShake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  75% { transform: translateX(2px); }
}
.cw-bubbles {
  display: flex; justify-content: center; gap: 2px; margin-top: 2px;
  animation: cwBubbleFloat var(--wash-speed, 3s) ease-in-out infinite;
}
.cw-bubbles span { font-size: 0.6rem; opacity: 0.7; }
@keyframes cwBubbleFloat {
  0%,100% { transform: translateY(0); opacity: 0.7; }
  50% { transform: translateY(-4px); opacity: 1; }
}
.cw-staff-area { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.cw-staff { font-size: 1.4rem; }
.cw-office-indicator {
  position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,0.5);
  color: #a7f3d0; font-size: 0.75rem; padding: 3px 8px; border-radius: 12px;
}
.cw-shell-indicator {
  position: absolute; bottom: 8px; right: 8px; background: rgba(16,185,129,0.2);
  color: #10b981; font-size: 0.75rem; padding: 3px 8px; border-radius: 12px;
  border: 1px solid rgba(16,185,129,0.4);
}
.cw-viz-labels {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  margin-top: 10px; font-size: 0.75rem; color: var(--text-dim);
}

/* Stock Mogul panel */
.cw-stockmogul-panel {
  background: linear-gradient(135deg, rgba(16,185,129,0.08), rgba(5,150,105,0.05));
  border: 1px solid rgba(16,185,129,0.25); border-radius: var(--radius-lg);
  padding: 16px; margin-bottom: 16px;
}
.cw-stockmogul-header {
  font-size: 1.1rem; font-weight: 700; color: #10b981; margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}
.cw-sm-owned {
  background: #10b981; color: #fff; font-size: 0.65rem; font-weight: 800;
  padding: 2px 6px; border-radius: 10px; letter-spacing: 1px;
}
.cw-sm-desc { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 12px; }
.cw-sm-hint { color: var(--text-dim); font-size: 0.8rem; margin-top: 6px; }
.cw-sm-btn {
  background: linear-gradient(135deg, #10b981, #059669); color: #fff;
  border: none; border-radius: var(--radius); padding: 10px 20px; font-weight: 700;
  cursor: pointer; font-size: 0.9rem; transition: transform 0.1s;
}
.cw-sm-btn:hover:not(:disabled) { transform: scale(1.02); }
.cw-sm-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Sub-tabs */
.cw-sub-tabs {
  display: flex; gap: 4px; margin-bottom: 16px; background: var(--surface2);
  border-radius: var(--radius); padding: 4px; overflow-x: auto;
}
.cw-sub-tab {
  flex: 1; min-width: fit-content; padding: 8px 12px; background: none; border: none;
  color: var(--text-dim); cursor: pointer; border-radius: 6px; font-size: 0.85rem;
  font-weight: 600; transition: all 0.15s; white-space: nowrap;
}
.cw-sub-tab:hover { color: var(--text); background: var(--surface3); }
.cw-sub-tab.active { background: #10b981; color: #fff; }

/* Upgrade grid */
.cw-upgrade-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px;
}
.cw-upgrade-card {
  background: var(--surface2); border-radius: var(--radius); padding: 14px;
  border: 1px solid var(--border); transition: border-color 0.2s;
}
.cw-upgrade-card:hover { border-color: #10b981; }
.cw-upgrade-card.maxed { opacity: 0.7; border-color: #10b981; }
.cw-upgrade-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.cw-upgrade-emoji { font-size: 1.3rem; }
.cw-upgrade-name { flex: 1; font-weight: 700; font-size: 0.95rem; }
.cw-upgrade-level { font-size: 0.75rem; color: var(--text-dim); white-space: nowrap; }
.cw-upgrade-progress {
  height: 4px; background: var(--surface3); border-radius: 2px; overflow: hidden; margin-bottom: 8px;
}
.cw-upgrade-progress-fill { height: 100%; background: #10b981; border-radius: 2px; transition: width 0.3s; }
.cw-upgrade-desc { font-size: 0.8rem; color: var(--text-dim); margin-bottom: 8px; }
.cw-upgrade-effect-preview {
  display: flex; align-items: center; gap: 6px; margin-bottom: 8px;
  font-size: 0.8rem; flex-wrap: wrap;
}
.cw-effect-current { color: var(--text-dim); }
.cw-effect-arrow { color: #10b981; }
.cw-effect-next { color: #6ee7b7; font-weight: 600; }
.cw-upgrade-btns { display: flex; gap: 6px; }
.cw-upgrade-btn {
  flex: 1; padding: 7px 10px; border: none; border-radius: var(--radius);
  cursor: pointer; font-size: 0.8rem; font-weight: 700; transition: all 0.15s;
}
.cw-buy-one { background: #10b981; color: #fff; }
.cw-buy-one:hover:not(:disabled) { background: #059669; }
.cw-buy-max { background: var(--surface3); color: var(--text); border: 1px solid #10b981; }
.cw-buy-max:hover:not(:disabled) { background: rgba(16,185,129,0.15); }
.cw-upgrade-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.cw-upgrade-btn.maxed-btn { background: #10b981; color: #fff; opacity: 0.7; }

/* Prestige panel */
.cw-prestige-panel { padding: 4px; }
.cw-prestige-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; background: var(--surface2); border-radius: var(--radius); margin-bottom: 12px;
}
.cw-prestige-tier { font-size: 1.1rem; font-weight: 700; color: #10b981; }
.cw-prestige-mult { color: var(--text-dim); font-size: 0.9rem; }
.cw-prestige-tiers-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; margin-bottom: 16px; }
.cw-prestige-tier-card {
  background: var(--surface2); border-radius: var(--radius); padding: 12px;
  border: 1px solid var(--border); text-align: center;
}
.cw-prestige-tier-card.current { border-color: #10b981; background: rgba(16,185,129,0.1); }
.cw-prestige-tier-card.locked { opacity: 0.5; }
.cw-prestige-tier-name { font-weight: 700; font-size: 0.9rem; margin-bottom: 4px; }
.cw-prestige-tier-mult { color: #10b981; font-size: 0.85rem; font-weight: 600; }
.cw-prestige-tier-unlock { color: var(--text-dim); font-size: 0.75rem; margin-top: 4px; }
.cw-prestige-btn {
  background: linear-gradient(135deg, #10b981, #059669); color: #fff;
  border: none; border-radius: var(--radius); padding: 12px 32px;
  font-weight: 700; font-size: 1rem; cursor: pointer; transition: transform 0.1s;
}
.cw-prestige-btn:hover:not(:disabled) { transform: scale(1.03); }
.cw-prestige-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Customize panel */
.cw-name-input-row {
  display: flex; gap: 8px; margin-bottom: 16px;
}
.cw-name-input {
  flex: 1; padding: 8px 12px; background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text); font-size: 0.9rem;
}
.cw-name-btn {
  padding: 8px 16px; background: #10b981; color: #fff; border: none;
  border-radius: var(--radius); cursor: pointer; font-weight: 700;
}
.cw-customize-panel { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.cw-customize-group { background: var(--surface2); border-radius: var(--radius); padding: 12px; }
.cw-customize-group-title { font-weight: 700; font-size: 0.9rem; margin-bottom: 8px; color: #10b981; }
.cw-customize-options { display: flex; flex-direction: column; gap: 4px; }
.cw-customize-option {
  display: flex; align-items: center; padding: 8px 10px; border-radius: 6px;
  cursor: pointer; font-size: 0.85rem; border: 1px solid transparent; transition: all 0.15s;
}
.cw-customize-option:hover:not(.locked) { background: var(--surface3); border-color: #10b981; }
.cw-customize-option.selected { background: rgba(16,185,129,0.15); border-color: #10b981; }
.cw-customize-option.locked { opacity: 0.5; cursor: not-allowed; }
.cw-customize-lock { margin-left: auto; font-size: 0.75rem; color: var(--text-dim); }

/* Stats panel */
.cw-stats-panel { padding: 4px; }
.cw-stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.cw-stat-item {
  background: var(--surface2); border-radius: var(--radius); padding: 14px;
  display: flex; flex-direction: column; gap: 4px; text-align: center;
}
.cw-stat-value { font-size: 1.2rem; font-weight: 700; color: #10b981; }
.cw-stat-label { font-size: 0.75rem; color: var(--text-dim); }

/* Theme variations */
.cw-container[data-theme="tin"] .cw-hero-bg { background: linear-gradient(135deg, #064e3b 0%, #065f46 30%, #047857 60%, #10b981 100%); }
.cw-container[data-theme="brick"] .cw-hero-bg { background: linear-gradient(135deg, #78350f 0%, #92400e 30%, #b45309 60%, #d97706 100%); }
.cw-container[data-theme="glass"] .cw-hero-bg { background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 30%, #0369a1 60%, #075985 100%); }
.cw-container[data-theme="vip"] .cw-hero-bg { background: linear-gradient(135deg, #1e1b4b 0%, #312e81 30%, #4338ca 60%, #6366f1 100%); }

/* Prestige glow effects */
.cw-container[data-prestige="1"] .cw-hero { border: 1px solid #10b981; }
.cw-container[data-prestige="2"] .cw-hero { border: 1px solid #059669; box-shadow: 0 0 12px rgba(5,150,105,0.3); }
.cw-container[data-prestige="3"] .cw-hero { border: 1px solid #d97706; box-shadow: 0 0 16px rgba(217,119,6,0.3); }
.cw-container[data-prestige="4"] .cw-hero,
.cw-container[data-prestige="5"] .cw-hero { border: 1px solid #a855f7; box-shadow: 0 0 20px rgba(168,85,247,0.4); }

/* ── Stock Mogul Management ─────────────────────────── */

.sm-back-btn {
  background: none; border: 1px solid var(--border); color: var(--text-dim);
  border-radius: var(--radius); padding: 8px 16px; cursor: pointer; font-size: 0.9rem;
  margin-bottom: 16px; display: block;
}
.sm-back-btn:hover { color: var(--text); border-color: var(--text); }

.sm-no-portfolio { text-align: center; padding: 60px 20px; }
.sm-no-portfolio-emoji { font-size: 4rem; margin-bottom: 16px; }
.sm-no-portfolio-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 8px; }
.sm-no-portfolio-desc { color: var(--text-dim); max-width: 400px; margin: 0 auto; line-height: 1.5; }

/* Hero — dark navy/gold */
.sm-hero { position: relative; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 16px; }
.sm-hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 30%, #0f172a 60%, #1a1040 100%);
  background-size: 200% 200%; animation: smHeroBg 8s ease infinite;
}
@keyframes smHeroBg { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.sm-hero-content { position: relative; z-index: 1; padding: 24px 20px 16px; text-align: center; }
.sm-hero-title { font-size: 1.5rem; font-weight: 700; margin: 0 0 4px; color: #fbbf24; }
.sm-hero-sub { color: #94a3b8; font-size: 0.9rem; margin: 0 0 16px; }
.sm-hero-stats { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin-bottom: 12px; }
.sm-hero-stat { text-align: center; }
.sm-hero-stat strong { display: block; font-size: 1.1rem; color: #fbbf24; }

.sm-level-bar { position: relative; height: 20px; background: rgba(0,0,0,0.4); border-radius: 10px; overflow: hidden; margin-top: 8px; }
.sm-level-fill { height: 100%; background: linear-gradient(90deg, #d97706, #f59e0b, #fbbf24); border-radius: 10px; transition: width 0.3s; }
.sm-level-text { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 600; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.6); }

/* Income panel */
.sm-income-panel { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--surface2); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 10px; flex-wrap: wrap; }
.sm-income-left { display: flex; flex-direction: column; gap: 4px; }
.sm-income-row { font-size: 0.9rem; }
.sm-income-val { color: #fbbf24; font-weight: 700; }
.sm-clean-val { color: #10b981; font-weight: 700; }
.sm-clean-note { color: var(--text-dim); font-size: 0.8rem; }
.sm-collect-btn {
  padding: 10px 20px; border: none; border-radius: var(--radius); font-weight: 700; cursor: pointer;
  background: linear-gradient(135deg, #d97706, #f59e0b); color: #1a1a2e; font-size: 0.9rem;
  white-space: nowrap; transition: transform 0.1s, opacity 0.1s;
}
.sm-collect-btn:hover { transform: scale(1.03); }
.sm-collect-btn:active { transform: scale(0.97); }

/* Cap bar */
.sm-cap-bar-wrap { margin-bottom: 14px; }
.sm-cap-label { font-size: 0.8rem; color: var(--text-dim); margin-bottom: 4px; }
.sm-cap-bar { height: 10px; background: var(--surface3); border-radius: 5px; overflow: hidden; }
.sm-cap-fill { height: 100%; background: linear-gradient(90deg, #d97706, #f59e0b); border-radius: 5px; transition: width 0.3s; }

/* Visualization */
.sm-portfolio-viz { background: var(--surface2); border-radius: var(--radius-lg); padding: 16px; margin-bottom: 16px; border: 1px solid var(--border); position: relative; overflow: hidden; }
.sm-name-plate { text-align: center; font-size: 1rem; font-weight: 800; letter-spacing: 2px; padding: 8px; margin-bottom: 10px; border-radius: 6px; background: linear-gradient(135deg, #0f172a, #1e293b); color: #fbbf24; text-transform: uppercase; border: 1px solid rgba(251,191,36,0.3); }
.sm-music-indicator { text-align: center; font-size: 0.8rem; color: var(--text-dim); margin-bottom: 8px; }
.sm-scene { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; padding: 8px 0; }
.sm-trader-area { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.sm-trader { font-size: 2rem; }
.sm-insider-badge { background: rgba(251,191,36,0.15); color: #fbbf24; font-size: 0.7rem; font-weight: 700; padding: 2px 8px; border-radius: 10px; border: 1px solid rgba(251,191,36,0.3); }
.sm-screens-area { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.sm-chart-tile { background: var(--surface3); border-radius: 8px; padding: 8px; font-size: 1.4rem; min-width: 44px; text-align: center; border: 1px solid transparent; }
.sm-chart-up { border-color: rgba(34,197,94,0.3); }
.sm-chart-mixed { border-color: rgba(251,191,36,0.3); }
.sm-access-indicator { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,0.5); color: #fbbf24; font-size: 0.75rem; padding: 3px 8px; border-radius: 12px; }
.sm-leverage-badge { position: absolute; bottom: 8px; right: 8px; background: rgba(251,191,36,0.15); color: #fbbf24; font-size: 0.75rem; padding: 3px 8px; border-radius: 12px; border: 1px solid rgba(251,191,36,0.3); }
.sm-viz-labels { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 10px; font-size: 0.75rem; color: var(--text-dim); }

/* Sub-tabs */
.sm-sub-tabs { display: flex; gap: 4px; margin-bottom: 16px; background: var(--surface2); border-radius: var(--radius); padding: 4px; overflow-x: auto; }
.sm-sub-tab { flex: 1; min-width: fit-content; padding: 8px 12px; background: none; border: none; color: var(--text-dim); cursor: pointer; border-radius: 6px; font-size: 0.85rem; font-weight: 600; transition: all 0.15s; white-space: nowrap; }
.sm-sub-tab:hover { color: var(--text); background: var(--surface3); }
.sm-sub-tab.active { background: #d97706; color: #fff; }

/* Upgrade grid */
.sm-upgrade-note { background: rgba(251,191,36,0.08); border: 1px solid rgba(251,191,36,0.2); border-radius: var(--radius); padding: 10px 14px; font-size: 0.85rem; color: #fbbf24; margin-bottom: 12px; }
.sm-upgrade-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.sm-upgrade-card { background: var(--surface2); border-radius: var(--radius); padding: 14px; border: 1px solid var(--border); transition: border-color 0.2s; }
.sm-upgrade-card:hover { border-color: #d97706; }
.sm-upgrade-card.maxed { opacity: 0.7; border-color: #d97706; }
.sm-upgrade-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.sm-upgrade-emoji { font-size: 1.3rem; }
.sm-upgrade-name { flex: 1; font-weight: 700; font-size: 0.95rem; }
.sm-upgrade-level { font-size: 0.75rem; color: var(--text-dim); white-space: nowrap; }
.sm-upgrade-progress { height: 4px; background: var(--surface3); border-radius: 2px; overflow: hidden; margin-bottom: 8px; }
.sm-upgrade-progress-fill { height: 100%; background: #d97706; border-radius: 2px; transition: width 0.3s; }
.sm-upgrade-desc { font-size: 0.8rem; color: var(--text-dim); margin-bottom: 8px; }
.sm-upgrade-effect-preview { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 0.8rem; flex-wrap: wrap; }
.sm-effect-current { color: var(--text-dim); }
.sm-effect-arrow { color: #d97706; }
.sm-effect-next { color: #fbbf24; font-weight: 600; }
.sm-upgrade-btns { display: flex; gap: 6px; }
.sm-upgrade-btn { flex: 1; padding: 7px 10px; border: none; border-radius: var(--radius); cursor: pointer; font-size: 0.8rem; font-weight: 700; transition: all 0.15s; }
.sm-buy-one { background: #d97706; color: #fff; }
.sm-buy-one:hover:not(:disabled) { background: #b45309; }
.sm-buy-max { background: var(--surface3); color: var(--text); border: 1px solid #d97706; }
.sm-buy-max:hover:not(:disabled) { background: rgba(217,119,6,0.15); }
.sm-upgrade-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.sm-upgrade-btn.maxed-btn { background: #d97706; color: #fff; opacity: 0.7; }

/* Prestige panel */
.sm-prestige-panel { padding: 4px; }
.sm-prestige-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--surface2); border-radius: var(--radius); margin-bottom: 12px; }
.sm-prestige-tier { font-size: 1.1rem; font-weight: 700; color: #fbbf24; }
.sm-prestige-mult { color: var(--text-dim); font-size: 0.9rem; }
.sm-prestige-tiers-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; margin-bottom: 16px; }
.sm-prestige-tier-card { background: var(--surface2); border-radius: var(--radius); padding: 12px; border: 1px solid var(--border); text-align: center; }
.sm-prestige-tier-card.current { border-color: #d97706; background: rgba(217,119,6,0.1); }
.sm-prestige-tier-card.locked { opacity: 0.5; }
.sm-prestige-tier-name { font-weight: 700; font-size: 0.9rem; margin-bottom: 4px; }
.sm-prestige-tier-mult { color: #fbbf24; font-size: 0.85rem; font-weight: 600; }
.sm-prestige-tier-unlock { color: var(--text-dim); font-size: 0.75rem; margin-top: 4px; }
.sm-prestige-btn { background: linear-gradient(135deg, #d97706, #f59e0b); color: #1a1a2e; border: none; border-radius: var(--radius); padding: 12px 32px; font-weight: 700; font-size: 1rem; cursor: pointer; transition: transform 0.1s; }
.sm-prestige-btn:hover:not(:disabled) { transform: scale(1.03); }
.sm-prestige-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Customize */
.sm-name-input-row { display: flex; gap: 8px; margin-bottom: 16px; }
.sm-name-input { flex: 1; padding: 8px 12px; background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-size: 0.9rem; }
.sm-name-btn { padding: 8px 16px; background: #d97706; color: #fff; border: none; border-radius: var(--radius); cursor: pointer; font-weight: 700; }
.sm-customize-panel { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.sm-customize-group { background: var(--surface2); border-radius: var(--radius); padding: 12px; }
.sm-customize-group-title { font-weight: 700; font-size: 0.9rem; margin-bottom: 8px; color: #fbbf24; }
.sm-customize-options { display: flex; flex-direction: column; gap: 4px; }
.sm-customize-option { display: flex; align-items: center; padding: 8px 10px; border-radius: 6px; cursor: pointer; font-size: 0.85rem; border: 1px solid transparent; transition: all 0.15s; }
.sm-customize-option:hover:not(.locked) { background: var(--surface3); border-color: #d97706; }
.sm-customize-option.selected { background: rgba(217,119,6,0.15); border-color: #d97706; }
.sm-customize-option.locked { opacity: 0.5; cursor: not-allowed; }
.sm-customize-lock { margin-left: auto; font-size: 0.75rem; color: var(--text-dim); }

/* Stats panel */
.sm-stats-panel { padding: 4px; }
.sm-stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.sm-stat-item { background: var(--surface2); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 4px; text-align: center; }
.sm-stat-value { font-size: 1.2rem; font-weight: 700; color: #fbbf24; }
.sm-stat-label { font-size: 0.75rem; color: var(--text-dim); }

/* Office theme variations */
.sm-container[data-office="home"] .sm-hero-bg { background: linear-gradient(135deg, #0f172a 0%, #1e293b 30%, #0f172a 60%, #1a1040 100%); }
.sm-container[data-office="floor"] .sm-hero-bg { background: linear-gradient(135deg, #0c1445 0%, #1a237e 30%, #283593 60%, #1565c0 100%); }
.sm-container[data-office="tower"] .sm-hero-bg { background: linear-gradient(135deg, #0a0a0a 0%, #1c1c1c 30%, #2a2a2a 60%, #0a0a0a 100%); }
.sm-container[data-office="penthouse"] .sm-hero-bg { background: linear-gradient(135deg, #1a0533 0%, #2d1b69 30%, #1a0533 60%, #4a1488 100%); }

/* Prestige glow effects */
.sm-container[data-prestige="1"] .sm-hero { border: 1px solid #d97706; }
.sm-container[data-prestige="2"] .sm-hero { border: 1px solid #f59e0b; box-shadow: 0 0 12px rgba(245,158,11,0.3); }
.sm-container[data-prestige="3"] .sm-hero { border: 1px solid #fbbf24; box-shadow: 0 0 16px rgba(251,191,36,0.4); }
.sm-container[data-prestige="4"] .sm-hero,
.sm-container[data-prestige="5"] .sm-hero { border: 1px solid #fcd34d; box-shadow: 0 0 24px rgba(252,211,77,0.5), 0 0 48px rgba(252,211,77,0.2); }
