:root {
  --bg: #05071a;
  --bg-2: #11105c;
  --panel: rgba(9, 14, 45, 0.88);
  --line: rgba(50, 226, 255, 0.22);
  --text: #edf3ff;
  --muted: #9eb0cf;
  --gold: #ffd33d;
  --gold-strong: #ff4d00;
  --cyan: #00e8ff;
  --violet: #8d35ff;
  --pink: #ff2bd6;
  --lime: #65ff5b;
  --success: #61e39a;
  --danger: #ff7288;
  --warning: #ffd166;
  --shadow: 0 20px 44px rgba(0, 0, 0, 0.55), 0 0 28px rgba(0, 232, 255, 0.12);
  --radius: 8px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Trebuchet MS", "Lucida Sans Unicode", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(0, 232, 255, 0.08), transparent 20%, rgba(255, 43, 214, 0.08)),
    linear-gradient(140deg, #030414 0%, #09064f 45%, #130326 100%);
  min-height: 100vh;
}
body.admin-bootstrap-app {
  background:
    radial-gradient(circle at top right, rgba(13, 110, 253, 0.16), transparent 28%),
    linear-gradient(180deg, #0d1117 0%, #111827 55%, #0f172a 100%);
}
.admin-bootstrap-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(13, 17, 23, 0.88);
  backdrop-filter: blur(18px);
}
.admin-shell-bootstrap {
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 1.25rem;
  width: 100%;
  margin: 0;
  padding-top: 1.25rem;
  padding-bottom: 2rem;
}
.admin-shell-bootstrap.admin-shell-auth {
  display: block;
  width: 100%;
  max-width: none;
  padding-top: 2.5rem;
  padding-bottom: 3rem;
}
.admin-bootstrap-sidebar {
  position: sticky;
  top: 92px;
  align-self: start;
  padding: 1.2rem;
  background: rgba(17, 24, 39, 0.92);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.admin-sidebar-header h2 {
  margin: 0.35rem 0 0;
  font-size: 1.4rem;
  font-family: Inter, "Segoe UI", sans-serif;
}
.admin-bootstrap-nav {
  display: grid;
  gap: 0.35rem;
  margin-top: 1.25rem;
}
.admin-bootstrap-nav a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 0.95rem;
  border-radius: 0.9rem;
  color: #c6d0e1;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.admin-bootstrap-nav a i {
  font-size: 1rem;
  color: #7dd3fc;
}
.admin-bootstrap-nav a:hover,
.admin-bootstrap-nav a.active {
  background: linear-gradient(135deg, rgba(13,110,253,0.2), rgba(56,189,248,0.12));
  color: #fff;
  transform: translateX(2px);
}
.admin-bootstrap-main {
  min-width: 0;
}
.admin-bootstrap-main.admin-auth-main {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}
.admin-auth-wrap {
  min-height: calc(100vh - 180px);
  display: grid;
  place-items: center;
  padding: 1rem 0 2rem;
}
.admin-auth-card {
  width: min(100%, 720px);
  background: rgba(11, 18, 48, 0.94);
  border: 1px solid rgba(99, 211, 255, 0.2);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 28px 70px rgba(0,0,0,0.34);
}
.admin-auth-copy {
  margin-bottom: 1.25rem;
}
.admin-auth-copy h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2.25rem, 4vw, 3.2rem);
}
.admin-auth-form {
  display: grid;
  gap: 1rem;
}
.admin-auth-form .button {
  width: 100%;
  justify-content: center;
  margin-top: 0.25rem;
}
.admin-bootstrap-alert {
  background: rgba(13, 110, 253, 0.18) !important;
  color: #dbeafe;
}
.admin-kpi-card {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1rem;
  background: rgba(17, 24, 39, 0.88);
  box-shadow: 0 16px 40px rgba(0,0,0,0.24);
}
.admin-kpi-card .card-body {
  padding: 1.15rem 1.2rem;
}
.admin-kpi-label {
  color: #9ca3af;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.admin-kpi-value {
  color: #f8fafc;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  margin: 0.5rem 0 0.35rem;
}
.admin-kpi-meta {
  color: #94a3b8;
  font-size: 0.92rem;
}
.admin-dashboard-card {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1rem;
  background: rgba(17, 24, 39, 0.9);
  box-shadow: 0 18px 48px rgba(0,0,0,0.28);
}
.admin-dashboard-card .card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: transparent;
}
.admin-dashboard-card .card-body {
  padding: 1.2rem;
}
.admin-overview-hero {
  min-height: 220px;
  background:
    radial-gradient(circle at top right, rgba(13,110,253,0.22), transparent 35%),
    linear-gradient(135deg, rgba(15,23,42,0.96), rgba(30,41,59,0.96));
}
.admin-overview-chart {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.45rem;
  align-items: end;
  min-height: 220px;
}
.admin-overview-chart span {
  display: block;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, rgba(45,212,191,0.95), rgba(37,99,235,0.95));
}
.admin-mini-chart {
  height: 88px;
  border-radius: 0.9rem;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01)),
    repeating-linear-gradient(
      to right,
      rgba(148,163,184,0.12) 0,
      rgba(148,163,184,0.12) 1px,
      transparent 1px,
      transparent 24px
    );
  position: relative;
  overflow: hidden;
}
.admin-mini-chart::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 62%;
  background: linear-gradient(180deg, rgba(45,212,191,0.18), rgba(45,212,191,0.62));
  clip-path: polygon(0 72%, 10% 76%, 20% 60%, 30% 68%, 40% 54%, 50% 61%, 60% 44%, 70% 59%, 80% 42%, 90% 48%, 100% 34%, 100% 100%, 0 100%);
}
.admin-progress-ring {
  width: 180px;
  height: 180px;
  margin: 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle closest-side, rgba(17,24,39,1) 72%, transparent 73%),
    conic-gradient(#0d6efd 0 78%, rgba(148,163,184,0.18) 78% 100%);
}
.admin-progress-ring strong {
  font-size: 2rem;
  color: #fff;
}
.admin-map-placeholder {
  min-height: 300px;
  border-radius: 1rem;
  background:
    radial-gradient(circle at 18% 30%, rgba(45,212,191,0.15), transparent 18%),
    radial-gradient(circle at 55% 40%, rgba(59,130,246,0.14), transparent 22%),
    radial-gradient(circle at 78% 58%, rgba(125,211,252,0.16), transparent 20%),
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 1px dashed rgba(148,163,184,0.25);
}
.admin-map-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.55rem;
  align-items: end;
  min-height: 260px;
}
.admin-map-grid span {
  display: block;
  min-height: 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(96,165,250,0.85), rgba(29,78,216,0.75));
}
.admin-location-list {
  display: grid;
  gap: 0.75rem;
}
.admin-location-row {
  display: grid;
  gap: 0.35rem;
}
.admin-location-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}
.admin-location-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2dd4bf, #3b82f6);
}
.site-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 35%, rgba(0, 232, 255, 0.18), rgba(5, 7, 26, 0.96) 48%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
.site-loader.is-active {
  opacity: 1;
  visibility: visible;
}
.site-loader-mark {
  display: grid;
  place-items: center;
  padding: 1.1rem;
  perspective: 1200px;
}
.site-loader-orbit {
  position: relative;
  width: 132px;
  height: 132px;
  transform-style: preserve-3d;
  animation: siteLogoFlip 1.45s ease-in-out infinite;
}
.site-loader-logo {
  position: absolute;
  inset: 0;
  width: 132px;
  height: 132px;
  object-fit: contain;
  backface-visibility: hidden;
  transform-origin: 50% 50%;
}
.site-loader-logo-front {
  transform: rotateY(0deg);
}
.site-loader-logo-back {
  transform: rotateY(180deg) scaleX(-1);
}
@keyframes siteLogoFlip {
  0% { transform: rotateY(0deg) scale(0.92); }
  50% { transform: rotateY(180deg) scale(1); }
  100% { transform: rotateY(360deg) scale(0.92); }
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; }
.site-shell { position: relative; overflow-x: hidden; overflow-y: visible; margin-top: 0; padding-top: 0; }
.site-shell::before,
.site-shell::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(24px);
  pointer-events: none;
  opacity: 0.55;
}
.site-shell::before {
  width: 460px;
  height: 460px;
  background: linear-gradient(135deg, rgba(255, 122, 0, 0.24), rgba(255, 122, 0, 0));
  top: -160px;
  left: -120px;
}
.site-shell::after {
  width: 420px;
  height: 420px;
  background: linear-gradient(135deg, rgba(89, 219, 255, 0.2), rgba(141, 71, 255, 0));
  top: 180px;
  right: -120px;
}
.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    margin-top: 0 !important;
    backdrop-filter: blur(22px);
    background: linear-gradient(180deg, rgba(10, 12, 36, 0.96), rgba(9, 14, 43, 0.92));
    border-bottom: 1px solid rgba(0, 232, 255, 0.18);
    box-shadow: 0 10px 28px rgba(0,0,0,0.42), inset 0 -1px 0 rgba(255,255,255,0.03);
  }
.site-shell > .topbar:first-child {
  margin-top: 0 !important;
}
.topbar.topbar-static {
  position: relative;
}
.topbar.topbar-scrollable {
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.topbar.topbar-scrollable.is-scrolled {
  background: linear-gradient(180deg, rgba(8, 10, 28, 0.98), rgba(8, 12, 34, 0.96));
  box-shadow: 0 14px 34px rgba(0,0,0,0.5), inset 0 -1px 0 rgba(255,255,255,0.04);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.35rem 0.4rem;
  border-radius: 12px;
}
.brand img { width: 78px; }
.brand-copy strong {
  display: block;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.brand-copy span { display: block; color: rgba(190, 206, 234, 0.82); font-size: 0.84rem; max-width: 340px; line-height: 1.25; }
.nav-links { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.nav-links a,
.nav-dropdown button,
.nav-links button,
.button,
button,
input,
textarea,
select { font: inherit; }
.nav-links a,
.nav-dropdown button {
  padding: 0.8rem 1rem;
  border-radius: 999px;
  color: var(--muted);
  transition: 0.2s ease;
  border: 0;
  background: transparent;
}
.nav-links a:hover,
.nav-links a.active,
.nav-dropdown:hover button,
.nav-dropdown:focus-within button { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav-dropdown { position: relative; }
.nav-dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 12px;
}
.nav-dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% - 2px);
  z-index: 25;
  display: grid;
  min-width: 220px;
  padding: 0.45rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 13, 24, 0.96);
  box-shadow: var(--shadow);
  gap: 0.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.nav-dropdown-menu a {
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.85rem;
}
.server-time-pill {
  display: inline-grid;
  gap: 0.08rem;
  min-width: 150px;
  padding: 0.55rem 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(0,232,255,0.18);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  text-align: center;
}
.server-time-pill span,
.server-time-pill small {
  color: var(--muted);
  line-height: 1.1;
}
.server-time-pill span {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.server-time-pill strong {
  font-size: 1rem;
  line-height: 1;
}
.server-time-pill small {
  font-size: 0.7rem;
}
.site-top-slot { padding-top: 0.25rem; }
.site-frame { padding-top: 0.35rem; padding-bottom: 2rem; }
.page-content { min-width: 0; }
.left-rail {
  position: sticky;
  top: 92px;
  align-self: start;
}
.left-rail-card {
  background: rgba(9, 17, 31, 0.86);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem;
  backdrop-filter: blur(18px);
}
.left-rail-header h2 {
  margin: 0.85rem 0 0.5rem;
  font-family: Georgia, "Palatino Linotype", serif;
}
.left-rail-nav {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}
.left-rail-group {
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  overflow: hidden;
}
.left-rail-group summary {
  list-style: none;
  cursor: pointer;
  padding: 0.95rem 1rem;
  color: var(--text);
  font-weight: 600;
}
.left-rail-group summary::-webkit-details-marker { display: none; }
.left-rail-links {
  display: grid;
  gap: 0.45rem;
  padding: 0 0.8rem 0.8rem;
}
.left-rail-link {
  display: block;
  padding: 0.8rem 0.95rem;
  border-radius: 14px;
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease;
}
.left-rail-link:hover,
.left-rail-link.active {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}
.button,
button { cursor: pointer; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-strong), var(--pink));
  color: #170d00;
  box-shadow: 0 0 18px rgba(255, 211, 61, 0.42), 0 0 28px rgba(255, 43, 214, 0.18);
}
.button-secondary {
  background: rgba(0, 232, 255, 0.08);
  border-color: rgba(0, 232, 255, 0.24);
  color: var(--text);
}
.button-ghost {
  border-color: rgba(255, 255, 255, 0.12);
  background: transparent;
  color: var(--text);
}
.button-danger {
  background: rgba(255, 114, 136, 0.16);
  border-color: rgba(255, 114, 136, 0.28);
  color: #ffdbe1;
}
.hero { padding: 5rem 0 3rem; }
.hero-grid,
.two-column,
.admin-shell { display: grid; gap: 1.25rem; }
.hero-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--warning);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}
.hero h1,
.section-header h2,
.page-hero h1,
.content-card h3,
.admin-main h1,
.admin-main h2 {
  font-family: Georgia, "Palatino Linotype", serif;
}
.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 0.95;
  margin: 1rem 0;
}
.hero.compact-hero { padding-top: 3rem; }
.hero p,
.page-hero p,
.muted { color: var(--muted); }
.hero-actions,
.tag-row,
.footer-links,
.list-table .actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.panel,
.card,
.table-wrap,
.notice,
.admin-sidebar,
.admin-main,
.content-card,
.stat,
.feature-card,
.dashboard-card,
.hero-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  border-radius: var(--radius);
}
.hero-panel,
.content-card,
.dashboard-card,
.admin-main,
.admin-sidebar { padding: 1.4rem; }
.admin-section-stack {
  display: grid;
  gap: 1.25rem;
}
.admin-page-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.admin-page-header .eyebrow {
  margin-bottom: 0.35rem;
}
.admin-page-header h1 {
  margin: 0;
}
.admin-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.admin-section-stack > .section {
  padding: 0;
}
.admin-section-stack > .dashboard-summary-grid,
.admin-section-stack > .admin-cards,
.admin-section-stack > .two-column,
.admin-section-stack > .table-wrap,
.admin-section-stack > .admin-split-grid {
  margin: 0;
}
.hero-panel {
  position: relative;
  overflow: hidden;
}
.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 190, 68, 0.12), transparent 45%);
  pointer-events: none;
}
.hero-logo { max-width: 420px; margin: 0 auto 1rem; }
.dashboard-hero {
  padding-bottom: 1rem;
}
.page-with-community,
.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(78px, 270px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
.page-with-community.community-collapsed,
.dashboard-layout.community-collapsed {
  grid-template-columns: 78px minmax(0, 1fr);
}
.community-sidebar-shell {
  position: sticky;
  top: 96px;
  min-width: 0;
  order: -1;
  grid-column: 1;
  align-self: start;
  padding-left: 2.8rem;
}
.page-with-community > :not(.community-sidebar-shell),
.dashboard-layout > :not(.community-sidebar-shell) {
  grid-column: 2;
  min-width: 0;
  padding-right: 0;
}
.community-sidebar-toggle {
  position: absolute;
  left: 0;
  top: 1rem;
  width: 2.8rem;
  min-width: 2.8rem;
  max-width: 2.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 164px;
  margin-bottom: 0;
  border-radius: 16px 0 0 16px;
  border: 1px solid rgba(0,232,255,0.3);
  background: rgba(10, 18, 56, 0.92);
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow);
}
.community-sidebar-toggle span {
  font-weight: 700;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.community-sidebar-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1rem;
  border-radius: var(--radius);
  background: rgba(8, 13, 42, 0.92);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.community-collapsed .community-sidebar-card {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-22px);
  max-height: 0;
  overflow: hidden;
  padding: 0;
  border-width: 0;
}
.community-sidebar-card h2 {
  margin: 0 0 1rem;
  font-size: 1.8rem;
}
.community-collapsed .community-sidebar-shell {
  padding-left: 2.8rem;
}
.community-rain-card {
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0,232,255,0.2);
  background: rgba(255,255,255,0.03);
}
.community-rain-card strong {
  display: block;
  margin: 0.4rem 0;
  font-size: 2rem;
}
.community-stream {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow: auto;
  padding-right: 0.15rem;
  margin-bottom: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,232,255,0.28) transparent;
}
@media (min-width: 1100px) {
  .page-with-community,
  .dashboard-layout {
    display: block;
  }
  .community-sidebar-shell {
    position: fixed;
    top: 108px;
    left: 0;
    width: min(320px, calc(100vw - 1.5rem));
    padding-left: 0;
    z-index: 18;
    transition: transform 0.22s ease;
  }
  .community-sidebar-shell.is-collapsed {
    transform: translateX(calc(-100% + 2.8rem));
  }
  .community-sidebar-toggle {
    left: auto;
    right: -2.8rem;
    top: 1rem;
    border-radius: 0 16px 16px 0;
  }
.community-sidebar-card {
    min-height: calc(100vh - 132px);
    border-radius: 0 18px 18px 0;
  }
  .page-with-community > :not(.community-sidebar-shell),
  .dashboard-layout > :not(.community-sidebar-shell) {
    grid-column: auto;
    padding-left: 344px;
    transition: padding-left 0.22s ease;
  }
  .page-with-community.community-collapsed > :not(.community-sidebar-shell),
  .dashboard-layout.community-collapsed > :not(.community-sidebar-shell) {
    padding-left: 94px;
  }
}
.community-stream::-webkit-scrollbar {
  width: 6px;
}
.community-stream::-webkit-scrollbar-track {
  background: transparent;
}
.community-stream::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(0,232,255,0.32), rgba(141,53,255,0.18));
}
.community-stream-item {
  padding: 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(135deg, rgba(18,28,74,0.92), rgba(25,18,73,0.82));
}
.community-stream-item strong,
.community-stream-item span,
.community-stream-item em {
  display: block;
}
.community-stream-item em {
  color: var(--muted);
  font-style: normal;
}
.community-media-row {
  display: block;
  margin: 0.45rem 0 0.55rem;
}
.community-media-image,
.community-button-image {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
.community-media-image {
  width: 100%;
  max-height: 120px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  padding: 0.35rem;
}
.community-button-image {
  width: 28px;
  height: 28px;
  margin: 0 auto 0.15rem;
}
.community-chat-composer {
  margin-bottom: 1rem;
  padding: 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0,232,255,0.18);
  background: linear-gradient(135deg, rgba(12,18,52,0.96), rgba(26,18,67,0.88));
}
.community-reaction-launchers {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.community-reaction-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(0,232,255,0.2);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  cursor: pointer;
}
.community-reaction-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 24px;
  font-size: 0.72rem;
  border-radius: 999px;
  background: rgba(0,232,255,0.12);
  color: var(--cyan);
}
.community-reaction-tray {
  margin-top: 0.65rem;
  padding: 0.7rem;
  border-radius: 14px;
  border: 1px solid rgba(0,232,255,0.16);
  background: rgba(255,255,255,0.04);
}
.community-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}
.community-chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
  margin-bottom: 0.7rem;
}
.community-chat-form input {
  min-width: 0;
}
.community-emoji-row,
.community-sticker-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.community-sticker-row {
  margin-top: 0.6rem;
}
.community-emoji-row form,
.community-sticker-row form {
  margin: 0;
}
.community-emoji-button,
.community-sticker-button {
  border: 1px solid rgba(0,232,255,0.22);
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  color: var(--text);
  cursor: pointer;
}
.community-emoji-button {
  min-width: 52px;
  min-height: 48px;
  display: inline-grid;
  place-items: center;
  gap: 0.15rem;
  padding: 0.3rem 0.4rem;
  font-size: 1.05rem;
}
.community-sticker-button {
  display: inline-grid;
  place-items: center;
  gap: 0.2rem;
  min-width: 58px;
  padding: 0.4rem 0.5rem;
}
.community-sticker-button span {
  font-size: 1.1rem;
}
.community-reaction-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  font-size: 1.25rem;
  line-height: 1;
}
.community-emoji-button small,
.community-sticker-button small {
  color: var(--muted);
  font-size: 0.66rem;
}
.community-chat-item {
  border-color: rgba(0,232,255,0.22);
}
.community-chat-item-emoji {
  background: linear-gradient(135deg, rgba(20,37,91,0.95), rgba(30,17,86,0.85));
}
.community-chat-item-sticker {
  background: linear-gradient(135deg, rgba(61,31,92,0.95), rgba(17,35,91,0.88));
  box-shadow: inset 0 0 0 1px rgba(255,211,61,0.16);
}
.community-chat-item-sticker strong::after {
  content: " donated";
  color: #ffd33d;
  margin-left: 0.25rem;
}
.community-activity-item {
  background: rgba(255,255,255,0.035);
}
.community-stream-ad {
  padding: 0;
  overflow: hidden;
}
.community-stream-ad .ad-slot,
.community-stream-ad .house-ad {
  border: 0;
  border-radius: var(--radius-sm);
  min-height: 0;
  margin: 0;
}
.community-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.dashboard-main-shell {
  min-width: 0;
}
.dashboard-tabs-shell {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(8, 13, 42, 0.92);
  box-shadow: var(--shadow);
}
.dashboard-tab {
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  color: var(--text);
}
.dashboard-tab.active {
  background: linear-gradient(180deg, rgba(0,232,255,0.18), rgba(65,112,255,0.12));
  border-color: rgba(0,232,255,0.5);
  box-shadow: 0 0 20px rgba(0,232,255,0.16);
}
.dashboard-focus-panel {
  display: none;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(0,232,255,0.26);
  background: linear-gradient(180deg, rgba(84,42,155,0.45), rgba(23,13,68,0.7));
  box-shadow: var(--shadow);
}
.dashboard-focus-panel.active {
  display: block;
}
.dashboard-focus-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.25rem 0 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(0,232,255,0.22);
}
.dashboard-focus-title {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.dashboard-focus-title h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
}
.dashboard-focus-dot {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: radial-gradient(circle at 30% 30%, #ffd95d, #ff5c1b 65%, #8d35ff);
  box-shadow: 0 0 18px rgba(255,115,0,0.35);
}
.dashboard-member-card {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}
.dashboard-avatar-card {
  display: grid;
  align-content: start;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0,232,255,0.28);
  background: linear-gradient(180deg, rgba(32,102,170,0.52), rgba(45,58,148,0.7));
}
.dashboard-avatar-art {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  margin: 1rem auto;
  border-radius: 22px;
  background: linear-gradient(135deg, #ffd85b, #ff74a5, #f117a2);
  color: #18100c;
  font-weight: 900;
  font-size: 1.6rem;
  box-shadow: 0 0 26px rgba(255,211,61,0.18);
}
.dashboard-avatar-card span {
  display: block;
  padding: 0.95rem 1rem;
  text-align: center;
  background: rgba(9,14,45,0.75);
}
.dashboard-member-meta {
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0,232,255,0.16);
  background: rgba(13,11,55,0.78);
}
.dashboard-member-meta h3 {
  margin: 0.8rem 0;
  font-size: clamp(2rem, 4vw, 3rem);
}
.dashboard-stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}
.dashboard-stat-strip div,
.dashboard-summary-grid .dashboard-card {
  padding: 0.8rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0,232,255,0.22);
  background: linear-gradient(180deg, rgba(10,48,96,0.6), rgba(8,18,54,0.65));
}
.dashboard-stat-strip span {
  display: block;
  color: var(--muted);
}
.dashboard-stat-strip strong {
  display: block;
  color: var(--gold);
  font-size: 1.2rem;
}
.dashboard-mission-grid,
.dashboard-action-grid,
.dashboard-summary-grid {
  display: grid;
  gap: 0.75rem;
}
.dashboard-mission-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 0.75rem;
}
.dashboard-mission-card,
.dashboard-action-grid a {
  display: block;
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0,232,255,0.22);
  background: rgba(8,10,43,0.86);
}
.dashboard-mission-card.active {
  box-shadow: 0 0 20px rgba(0,232,255,0.14);
}
.dashboard-mission-card span,
.dashboard-action-grid a span {
  display: block;
  color: var(--muted);
}
.dashboard-mission-card strong,
.dashboard-action-grid a strong {
  display: block;
  margin: 0.4rem 0;
}
.dashboard-mission-card em {
  color: var(--muted);
  font-style: normal;
}
.dashboard-action-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.dashboard-action-grid a {
  background: linear-gradient(180deg, rgba(0,106,172,0.55), rgba(10,22,67,0.84));
  text-align: center;
}
.dashboard-summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.lottery-hero-card {
  position: relative;
  overflow: hidden;
}
.lottery-art {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.lottery-ball {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff4b0, #ff9f1a 62%, #8d35ff);
  box-shadow: 0 0 18px rgba(255,183,43,0.3);
}
.lottery-buy-form {
  display: flex;
  gap: 0.8rem;
  align-items: end;
  flex-wrap: wrap;
}
.stats-grid,
.feature-grid,
.card-grid,
.admin-cards,
.form-grid { display: grid; gap: 1rem; }
.stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2rem;
}
.stat,
.feature-card,
.dashboard-card {
  padding: 1.2rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
}
.stat strong,
.dashboard-card strong {
  display: block;
  font-size: 1.8rem;
}
.section { padding: 1rem 0 3rem; }
.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.feature-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.category-grid,
.numbers-grid {
  display: grid;
  gap: 1rem;
}
.category-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.category-card {
  padding: 1.25rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow);
}
.category-card h3,
.numbers-grid strong {
  margin: 0 0 0.55rem;
  font-family: Georgia, "Palatino Linotype", serif;
}
.numbers-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.number-card {
  padding: 1.2rem;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}
.number-card strong {
  display: block;
  font-size: 2rem;
}
.comparison-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 1rem;
  align-items: start;
}
.filter-panel,
.insight-panel {
  padding: 1.25rem;
}
.filter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(180px, 1fr));
  gap: 0.85rem;
  align-items: end;
}
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.8rem;
}
.checkbox-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}
.checkbox-chip input {
  width: auto;
  margin: 0;
}
.filter-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem 0 1.2rem;
  flex-wrap: wrap;
}
.results-badge {
  font-size: 0.95rem;
  color: var(--muted);
}
.comparison-card {
  position: relative;
  overflow: hidden;
}
.comparison-card::after {
  content: "";
  position: absolute;
  inset: auto -10% -35% auto;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(255, 190, 68, 0.12), transparent 70%);
  pointer-events: none;
}
.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0.85rem 0 0;
}
.trust-list {
  display: grid;
  gap: 0.8rem;
}
.trust-item {
  padding: 0.95rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
}
.empty-state {
  display: none;
  padding: 1.4rem;
  text-align: center;
}
.empty-state strong {
  display: block;
  margin-bottom: 0.4rem;
}
.pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.84rem;
}
.rating { color: var(--warning); }
.content-card footer,
.operator-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}
.page-hero { padding: 3rem 0 1rem; }
.two-column { grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr); }
.table-wrap {
  overflow-x: auto;
  overflow-y: visible;
  max-width: 100%;
}
table { width: 100%; border-collapse: collapse; }
.list-table { min-width: 780px; }
.wide-table { min-width: 1040px; }
th,
td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
th { color: var(--muted); font-weight: 600; }
.notice { padding: 1rem 1.2rem; }
.game-player {
  display: grid;
  gap: 0.85rem;
}
.game-player-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.game-embed-shell {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(4, 9, 18, 0.92);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}
.game-embed-frame {
  width: 100%;
  min-height: 480px;
  border: 0;
  background: #02050b;
}
.game-embed-compact {
  min-height: 320px;
}
.game-embed-compact .game-embed-frame {
  min-height: 320px;
}
.ad-slot {
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem;
}
.ad-slot-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--warning);
  margin-bottom: 0.7rem;
}
.ad-slot-placeholder-copy {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
}
.ad-slot-live {
  border-style: solid;
  background: rgba(255, 255, 255, 0.04);
}
.ad-slot-placeholder {
  min-height: 140px;
  align-content: center;
}
.ad-slot-header,
.ad-slot-footer {
  margin: 1rem auto 0;
}
.ad-slot-inline {
  margin: 1rem 0 2rem;
}
.ad-slot-sidebar {
  margin-top: 1rem;
}
.house-ad {
  display: grid;
  place-items: center;
  gap: 0.35rem;
  min-height: 250px;
  text-align: center;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255,190,68,0.18), rgba(89,219,255,0.11)), rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
}
.house-ad span,
.house-ad em {
  color: var(--muted);
  font-style: normal;
}
.house-ad strong {
  font-size: 1.4rem;
  font-family: Georgia, "Palatino Linotype", serif;
}
.house-ad-728-90 {
  min-height: 90px;
  grid-auto-flow: column;
  justify-content: center;
  padding: 1rem;
}
.ad-slot-popup {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  width: min(360px, calc(100vw - 2rem));
  display: none;
  box-shadow: var(--shadow);
}
.ad-slot-popup.open { display: block; }
.ad-slot-popup::before {
  content: "Sponsored";
  display: block;
  margin-bottom: 0.55rem;
  color: var(--warning);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.ad-slot-popunder { display: none; }
.code-editor {
  min-height: 220px;
  font-family: Consolas, "Courier New", monospace;
}
.footer {
  border-top: 1px solid var(--line);
  margin-top: 3rem;
  padding: 2rem 0 3rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
}
.footer-logo { width: 110px; }
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 14, 0.84);
  padding: 1rem;
}
.age-gate.active { display: flex; }
.age-card { width: min(520px, 100%); padding: 1.5rem; text-align: center; }
.admin-shell {
  grid-template-columns: 240px minmax(0, 1fr);
  padding: 2rem 0 3rem;
  width: min(1560px, calc(100% - 1rem));
}
.admin-main { min-width: 0; }
.admin-main,
.admin-main .panel,
.admin-main .table-wrap,
.admin-main .content-card {
  overflow-wrap: anywhere;
}
.admin-main .table-wrap {
  max-height: 78vh;
  overflow: auto;
}
.admin-main .list-table th,
.admin-main .list-table td {
  min-width: 130px;
}
.admin-main .list-table td:first-child {
  min-width: 220px;
}
.admin-main .two-column {
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.22fr);
}
.admin-sidebar {
  position: sticky;
  top: 96px;
  height: fit-content;
}
.admin-menu { display: grid; gap: 0.5rem; margin-top: 1rem; }
.admin-menu a {
  padding: 0.85rem 1rem;
  border-radius: 14px;
  color: var(--muted);
  border: 1px solid transparent;
}
.admin-menu a.active,
.admin-menu a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}
.list-table .actions {
  min-width: 190px;
  flex-wrap: nowrap;
}
.inline-admin-form {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem;
}
.inline-admin-form select,
.inline-admin-form input {
  min-width: 130px;
  padding: 0.65rem 0.75rem;
}
.ptc-card form { margin-top: 1rem; }
.ptc-progress {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(0,232,255,0.25);
  margin: 1rem 0 0.6rem;
}
.ptc-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--gold), var(--pink));
  transition: width 0.25s ease;
}
.ptc-captcha {
  margin: 1rem 0;
  padding: 0.85rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
}
.ptc-captcha-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}
.ptc-captcha-grid button {
  min-height: 90px;
  border-radius: var(--radius);
  border: 1px solid rgba(0,232,255,0.22);
  background: rgba(5,7,30,0.85);
}
.ptc-captcha-grid img {
  width: 90px;
  margin: 0 auto;
}
.ptc-captcha-grid .captcha-correct img {
  transform: rotate(180deg);
}
.ptc-viewer-body {
  margin: 0;
  background: #030414;
  overflow: hidden;
}
.ptc-viewer-bar {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1rem;
  background: linear-gradient(90deg, rgba(0,232,255,0.22), rgba(255,43,214,0.18)), #05071a;
  border-bottom: 1px solid rgba(0,232,255,0.32);
  color: var(--text);
}
.ptc-viewer-bar-main {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}
.ptc-viewer-bar span {
  min-width: 82px;
  text-align: center;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: rgba(255,211,61,0.18);
  color: var(--gold);
}
.ptc-viewer-frame {
  width: 100vw;
  height: calc(100vh - 56px);
  border: 0;
  background: #fff;
}
.ad-slot-user-order {
  padding: 0;
  overflow: hidden;
}
.user-order-ad {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.85rem 1rem;
  text-decoration: none;
  color: inherit;
}
.user-order-ad-image {
  width: 82px;
  height: 50px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
}
.user-order-ad-body {
  min-width: 0;
  display: grid;
  gap: 0.2rem;
}
.user-order-ad-body strong {
  font-size: 0.98rem;
}
.user-order-ad-body em {
  color: var(--muted);
  font-style: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-order-ad-cta {
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  background: rgba(255,211,61,0.16);
  color: var(--gold);
  font-weight: 700;
}
.ad-slot-surfbar-inline {
  margin: 0.85rem 0;
}
.ad-slot-surfbar-inline .user-order-ad,
.ad-slot-surfbar-inline .house-ad {
  padding: 0.75rem 0.9rem;
}
.ad-slot-surfbar-bar {
  min-width: 320px;
  max-width: 520px;
  margin: 0;
  background: transparent;
  border: 0;
}
.ad-slot-surfbar-bar .user-order-ad {
  padding: 0.35rem 0.55rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
}
.ad-slot-surfbar-bar .user-order-ad-body strong {
  font-size: 0.9rem;
}
.ad-slot-surfbar-bar .user-order-ad-body em {
  font-size: 0.78rem;
}
.button-small {
  padding: 0.55rem 0.8rem;
  font-size: 0.86rem;
}
.referral-bar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(0,232,255,0.24);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.04);
}
.referral-bar input {
  font-family: Consolas, "Courier New", monospace;
}
.mobile-menu-toggle { display: none; }

.dashboard-tabs-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}
.dashboard-sidebar,
.dashboard-main-tabs {
  min-width: 0;
}
.dashboard-sidebar {
  position: sticky;
  top: 108px;
  display: grid;
  gap: 1rem;
  padding: 1.1rem;
}
.dashboard-main-tabs {
  display: grid;
  gap: 1rem;
}
.dashboard-tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.85rem;
  border-radius: var(--radius);
  border: 1px solid rgba(0,232,255,0.22);
  background: rgba(6, 12, 38, 0.82);
  box-shadow: var(--shadow);
}
.dashboard-tab {
  appearance: none;
  -webkit-appearance: none;
  min-width: 0;
  padding: 0.95rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  transition: 0.2s ease;
}
.dashboard-tab:hover,
.dashboard-tab.active {
  color: var(--text);
  border-color: rgba(0,232,255,0.36);
  background: linear-gradient(135deg, rgba(0,232,255,0.16), rgba(141,53,255,0.18));
  box-shadow: 0 0 18px rgba(0,232,255,0.12);
}
.dashboard-tab-panels {
  min-width: 0;
}
.dashboard-tab-panel {
  display: none;
}
.dashboard-tab-panel.active {
  display: block;
}
.community-feed {
  max-height: 420px;
  overflow: auto;
}
.activity-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.neon-dashboard {
  padding: 2rem 0 3rem;
}
.neon-dashboard-grid {
  width: min(1440px, calc(100% - 2rem));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem;
}
.neon-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 232, 255, 0.28);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(24, 24, 99, 0.88), rgba(6, 8, 38, 0.95)),
    var(--panel);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 28px rgba(0, 232, 255, 0.14),
    0 18px 44px rgba(0, 0, 0, 0.5);
  padding: 1rem;
}
.neon-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 232, 255, 0.16), transparent 28%, rgba(255, 43, 214, 0.14)),
    linear-gradient(180deg, rgba(255,255,255,0.06), transparent 18%);
  opacity: 0.72;
}
.neon-panel > * {
  position: relative;
  z-index: 1;
}
.neon-panel-header {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 232, 255, 0.22);
  margin: -0.25rem -0.25rem 1rem;
  padding: 0.25rem 0.25rem 0.85rem;
}
.neon-panel-header h1,
.neon-panel-header h2 {
  flex: 1;
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  text-shadow: 0 0 18px rgba(0, 232, 255, 0.35);
}
.panel-title-mark {
  width: 58px;
  height: 38px;
  border-radius: 6px;
  background:
    radial-gradient(circle, var(--gold), var(--gold-strong) 45%, transparent 48%),
    linear-gradient(135deg, rgba(0,232,255,0.22), rgba(255,43,214,0.2));
  box-shadow: 0 0 18px rgba(255, 211, 61, 0.45);
}
.trophy-mark {
  background:
    linear-gradient(90deg, transparent 12%, var(--gold) 13% 24%, transparent 25%),
    radial-gradient(circle, var(--gold), var(--gold-strong) 45%, transparent 48%);
}
.spin-mark {
  background:
    conic-gradient(from 90deg, var(--lime), var(--cyan), var(--violet), var(--gold), var(--lime));
}
.wallet-mark {
  background:
    linear-gradient(135deg, var(--cyan), var(--violet)),
    radial-gradient(circle, var(--gold), transparent 55%);
}
.player-card {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
}
.avatar-frame {
  display: grid;
  place-items: center;
  gap: 0.5rem;
  min-height: 160px;
  border: 1px solid rgba(0,232,255,0.28);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 35%, rgba(255,211,61,0.24), transparent 34%),
    linear-gradient(180deg, rgba(0,232,255,0.16), rgba(141,53,255,0.12));
}
.avatar-core {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #100515;
  font-weight: 900;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, var(--gold), var(--pink));
  box-shadow: 0 0 22px rgba(255, 211, 61, 0.5);
}
.avatar-frame span {
  width: 100%;
  text-align: center;
  padding: 0.45rem;
  border-radius: 6px;
  background: rgba(5, 7, 26, 0.72);
  color: var(--muted);
}
.player-meta {
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(0,232,255,0.22);
  background: rgba(2, 6, 30, 0.55);
}
.player-meta h2 {
  margin: 0.8rem 0 0.5rem;
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
}
.wallet-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 1rem;
}
.wallet-strip div,
.deposit-buttons a,
.reward-icons a,
.daily-rewards a,
.quick-play-grid a {
  border: 1px solid rgba(0,232,255,0.26);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(0,232,255,0.13), rgba(9, 15, 54, 0.8));
  box-shadow: inset 0 0 14px rgba(0,232,255,0.08);
}
.wallet-strip div {
  padding: 0.7rem;
}
.wallet-strip span,
.mission-card span,
.mission-card em,
.daily-rewards span,
.review-ticker span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
}
.wallet-strip strong {
  color: var(--gold);
  font-size: 1.35rem;
}
.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}
.mission-card {
  min-height: 86px;
  padding: 0.75rem;
  border-radius: var(--radius);
  border: 1px solid rgba(0,232,255,0.24);
  background: rgba(5, 7, 30, 0.72);
}
.mission-card.active {
  border-color: rgba(0, 232, 255, 0.75);
  box-shadow: 0 0 16px rgba(0,232,255,0.18);
}
.mission-card strong {
  display: block;
  margin: 0.35rem 0;
  color: var(--text);
}
.quick-play-grid,
.reward-icons,
.daily-rewards,
.deposit-buttons {
  display: grid;
  gap: 0.7rem;
}
.quick-play-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 0.9rem;
}
.quick-play-grid a,
.reward-icons a,
.daily-rewards a,
.deposit-buttons a {
  padding: 0.85rem;
  text-align: center;
}
.quick-play-grid strong,
.daily-rewards strong {
  display: block;
  color: var(--gold);
  font-size: 1.15rem;
}
.top-player-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}
.trophy-card {
  min-height: 220px;
  display: grid;
  align-content: space-between;
  gap: 0.6rem;
  padding: 0.9rem;
  text-align: center;
  border-radius: var(--radius);
  border: 1px solid rgba(255,211,61,0.34);
  background:
    radial-gradient(circle at 50% 42%, rgba(255,211,61,0.35), transparent 29%),
    linear-gradient(180deg, rgba(80, 20, 90, 0.74), rgba(8, 13, 45, 0.9));
  box-shadow: 0 0 18px rgba(255,211,61,0.18);
}
.trophy-card span,
.trophy-card em {
  color: var(--muted);
  font-style: normal;
}
.trophy-shape {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border-radius: 50% 50% 42% 42%;
  color: #190900;
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold), var(--gold-strong));
  box-shadow: 0 0 24px rgba(255,211,61,0.52);
}
.challenge-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 0.9rem;
  border-radius: var(--radius);
  border: 1px solid rgba(101,255,91,0.32);
  background: linear-gradient(90deg, rgba(101,255,91,0.14), rgba(0,232,255,0.09));
}
.challenge-strip strong {
  display: block;
  margin-top: 0.45rem;
}
.reward-icons {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 0.9rem;
}
.spin-layout,
.deposit-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 1rem;
  align-items: center;
}
.claim-box {
  min-height: 150px;
  display: grid;
  align-content: center;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid rgba(0,232,255,0.28);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(0,232,255,0.14), transparent),
    rgba(5, 8, 32, 0.72);
}
.claim-box strong {
  font-size: 1.35rem;
}
.daily-rewards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1rem;
}
.spin-wheel {
  --spin-label-distance: 168px;
  display: block;
  position: relative;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255,255,255,0.1) 0 58%, transparent 59%),
    radial-gradient(circle, #ffd33d 0 10%, transparent 11%),
    linear-gradient(180deg, rgba(4, 8, 38, 0.95), rgba(10, 12, 44, 0.98));
  border: 8px solid rgba(4, 8, 38, 0.95);
  box-shadow: 0 0 30px rgba(255,211,61,0.35), inset 0 0 18px rgba(0,0,0,0.45);
  overflow: hidden;
}
.spin-wheel-segments {
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
  transform: rotate(0deg);
  transition-property: transform;
  transition-timing-function: cubic-bezier(.12,.86,.18,1);
  will-change: transform;
}
.spin-wheel-segments::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    conic-gradient(
      from -22.5deg,
      #e82a2a 0 45deg,
      #ffd33d 45deg 90deg,
      #20d85b 90deg 135deg,
      #00e8ff 135deg 180deg,
      #8d35ff 180deg 225deg,
      #ff2bd6 225deg 270deg,
      #ff4d00 270deg 315deg,
      #ff8c2f 315deg 360deg
    );
  box-shadow: inset 0 0 18px rgba(0,0,0,0.24);
}
.spin-wheel-segment-label {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 108px;
  padding: 0.1rem 0.3rem;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.05;
  color: #fff;
  text-shadow: 0 0 10px rgba(2, 6, 20, 0.85);
  transform-origin: center center;
  z-index: 1;
}
.spin-wheel-segment-label-0 { transform: translate(-50%, -50%) rotate(0deg) translateY(calc(var(--spin-label-distance) * -1)) rotate(0deg); }
.spin-wheel-segment-label-1 { transform: translate(-50%, -50%) rotate(45deg) translateY(calc(var(--spin-label-distance) * -1)) rotate(-45deg); }
.spin-wheel-segment-label-2 { transform: translate(-50%, -50%) rotate(90deg) translateY(calc(var(--spin-label-distance) * -1)) rotate(-90deg); }
.spin-wheel-segment-label-3 { transform: translate(-50%, -50%) rotate(135deg) translateY(calc(var(--spin-label-distance) * -1)) rotate(-135deg); }
.spin-wheel-segment-label-4 { transform: translate(-50%, -50%) rotate(180deg) translateY(calc(var(--spin-label-distance) * -1)) rotate(-180deg); }
.spin-wheel-segment-label-5 { transform: translate(-50%, -50%) rotate(225deg) translateY(calc(var(--spin-label-distance) * -1)) rotate(-225deg); }
.spin-wheel-segment-label-6 { transform: translate(-50%, -50%) rotate(270deg) translateY(calc(var(--spin-label-distance) * -1)) rotate(-270deg); }
.spin-wheel-segment-label-7 { transform: translate(-50%, -50%) rotate(315deg) translateY(calc(var(--spin-label-distance) * -1)) rotate(-315deg); }
.wheel-pointer {
  position: absolute;
  left: 50%;
  top: -14px;
  width: 38px;
  height: 58px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #fff, var(--gold-strong));
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  filter: drop-shadow(0 0 12px rgba(255,211,61,0.7));
}
.wheel-center {
  position: absolute;
  inset: 36%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #160600;
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold), var(--gold-strong));
  box-shadow: 0 0 20px rgba(255,211,61,0.55);
}
.deposit-layout {
  grid-template-columns: 0.85fr 1.15fr;
}
.deposit-buttons {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.deposit-buttons a {
  color: var(--text);
  font-weight: 800;
}
.withdrawal-board {
  display: grid;
  gap: 0.7rem;
}
.withdrawal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 6px;
  border: 1px solid rgba(0,232,255,0.24);
  background: rgba(3, 7, 30, 0.7);
}
.withdrawal-row strong {
  color: var(--gold);
  white-space: nowrap;
}
.review-ticker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 1rem;
}
.review-ticker a {
  padding: 0.8rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
}
.review-ticker strong {
  display: block;
  color: var(--gold);
}
.addon-filter-tabs {
  align-items: center;
  padding: 0.15rem 0;
}
.addon-admin-table td,
.addon-admin-table th {
  vertical-align: top;
}
.addon-inline-form {
  display: grid;
  gap: 0.55rem;
  min-width: 220px;
}
.addon-inline-form input[type="text"] {
  min-width: 0;
}
.settings-shell {
  display: grid;
  gap: 1rem;
}
.admin-section-stack {
  display: grid;
  gap: 1rem;
}
.admin-split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
.admin-split-span {
  grid-column: 1 / -1;
}
.admin-callout {
  padding: 1rem 1.1rem;
  border-radius: 16px;
  border: 1px solid rgba(0, 232, 255, 0.16);
  background: rgba(255, 255, 255, 0.035);
}
.admin-callout strong {
  display: block;
  margin-bottom: 0.35rem;
}
.admin-form-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.admin-table-card {
  padding: 1.35rem;
}
.admin-table-card .table-wrap {
  margin-top: 0.9rem;
}
.settings-section {
  padding: 1.35rem;
}
.settings-table-wrap {
  overflow-x: auto;
}
.settings-table {
  min-width: 720px;
}
.settings-table th,
.settings-table td {
  vertical-align: top;
}
.settings-table th {
  width: 220px;
  color: var(--text);
}
.settings-table td {
  min-width: 280px;
}
.settings-table input,
.settings-table textarea,
.settings-table select {
  margin: 0;
}
.settings-toggle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}
.settings-toggle-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}
.settings-toggle-copy {
  display: grid;
  gap: 0.25rem;
}
.settings-toggle-copy strong {
  color: var(--text);
}
.settings-toggle-copy small {
  color: var(--muted);
  line-height: 1.45;
}
.settings-toggle-input {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  min-width: 52px;
  height: 52px;
  border-radius: 16px;
  border: 1px solid rgba(0, 232, 255, 0.16);
  background: rgba(5, 14, 42, 0.58);
}
.settings-actions {
  display: flex;
  justify-content: flex-start;
}
.admin-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 1rem;
}
form { display: grid; gap: 1rem; }
label { display: grid; gap: 0.45rem; }
input,
textarea,
select {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  min-width: 0;
}
select {
  padding-right: 2.8rem;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(89, 238, 255, 0.92) 50%),
    linear-gradient(135deg, rgba(89, 238, 255, 0.92) 50%, transparent 50%),
    linear-gradient(180deg, rgba(10, 18, 56, 0), rgba(10, 18, 56, 0));
  background-position:
    calc(100% - 20px) calc(50% - 3px),
    calc(100% - 14px) calc(50% - 3px),
    100% 0;
  background-size: 6px 6px, 6px 6px, 2.8rem 100%;
  background-repeat: no-repeat;
}
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(0, 232, 255, 0.54);
  box-shadow: 0 0 0 3px rgba(0, 232, 255, 0.12);
}
input[type="checkbox"],
input[type="radio"] {
  width: auto;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  appearance: auto;
  -webkit-appearance: checkbox;
  -moz-appearance: auto;
  accent-color: var(--cyan);
}
input[type="checkbox"]:focus,
input[type="radio"]:focus {
  box-shadow: none;
}
select option { background: #070a2b; color: var(--text); }
textarea { min-height: 140px; resize: vertical; }
.form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.span-2 { grid-column: 1 / -1; }
.flash {
  padding: 0.9rem 1rem;
  border-radius: 16px;
  margin-bottom: 1rem;
  background: rgba(97, 227, 154, 0.16);
  border: 1px solid rgba(97, 227, 154, 0.26);
}
.content-card code {
  display: block;
  margin-top: 0.6rem;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  color: var(--muted);
  overflow-wrap: anywhere;
}
.status-live { background: rgba(97, 227, 154, 0.16); color: #ccffe0; }
.status-pending { background: rgba(255, 209, 102, 0.18); color: #fff2c7; }
.status-offline { background: rgba(255, 114, 136, 0.16); color: #ffdce3; }
.addon-shortcut-pill {
  text-decoration: none;
  transition: transform 0.18s ease, opacity 0.18s ease, border-color 0.18s ease;
}
.addon-shortcut-pill small {
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  opacity: 0.86;
}
.addon-shortcut-pill:hover {
  transform: translateY(-1px);
}
.addon-shortcut-pill.shortcut-disabled {
  opacity: 0.62;
  border-style: dashed;
}
.addon-health-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0.9rem 0;
}
.addon-health-item {
  padding: 0.8rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(0, 232, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
}
.addon-health-item span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.22rem;
}
.addon-health-item strong {
  display: block;
  font-size: 0.98rem;
  line-height: 1.15;
  color: var(--text);
}
.addon-health-item .health-live {
  color: #ccffe0;
}
.addon-health-item .health-offline {
  color: #ffdce3;
}
@media (max-width: 1180px) {
  .neon-dashboard-grid,
  .player-card,
  .spin-layout,
  .deposit-layout,
  .top-player-row,
  .review-ticker { grid-template-columns: 1fr; }
  .mission-grid,
  .daily-rewards,
  .reward-icons,
  .quick-play-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spin-wheel {
    width: min(280px, 100%);
    margin: 0 auto;
  }
  .hero-grid,
  .comparison-hero,
  .feature-grid,
  .card-grid,
  .category-grid,
  .numbers-grid,
  .two-column,
  .stats-grid,
    .admin-shell,
    .admin-cards { grid-template-columns: 1fr; }
  .filter-grid { grid-template-columns: 1fr; }
  .topbar {
    min-height: 0;
  }
  .topbar .nav-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.85rem;
    width: min(1240px, calc(100% - 1.5rem));
  }
  .topbar .brand {
    min-width: 0;
  }
  .topbar .brand-copy strong {
    font-size: 1.25rem;
  }
  .mobile-menu-toggle {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 44px;
    min-width: 96px;
  }
  .nav-links { display: none; }
  .nav-links.open {
    display: grid;
    width: 100%;
    grid-column: 1 / -1;
    padding: 0.75rem 0 0;
    gap: 0.5rem;
    align-items: stretch;
  }
  .topbar .nav-links > a,
  .topbar .nav-dropdown,
  .topbar .nav-links > .server-time-pill,
  .topbar .nav-links > .button-primary {
    width: 100%;
  }
  .topbar .nav-links > a,
  .topbar .nav-dropdown > button,
  .topbar .nav-links > .button-primary {
    justify-content: space-between;
    width: 100%;
  }
  .nav-dropdown-menu {
    position: static;
    display: none;
    margin-top: 0.4rem;
    min-width: 0;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
  }
  .nav-dropdown.is-open .nav-dropdown-menu {
    display: grid;
  }
  .nav-dropdown::after {
    display: none;
  }
  .nav-dropdown > button::after {
    content: "▾";
    margin-left: auto;
    font-size: 0.9rem;
    opacity: 0.72;
  }
  .nav-dropdown.is-open > button::after {
    content: "▴";
  }
  .server-time-pill {
    min-width: 0;
    width: 100%;
  }
  .left-rail {
    position: static;
    order: -1;
  }
  .admin-sidebar { position: static; }
  .admin-main .two-column { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .neon-dashboard-grid { width: min(100% - 1rem, 1440px); }
  .mission-grid,
  .daily-rewards,
  .reward-icons,
  .quick-play-grid,
  .wallet-strip,
  .deposit-buttons { grid-template-columns: 1fr; }
  .neon-panel-header {
    display: grid;
    align-items: start;
  }
  .form-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .section-header,
  .content-card footer,
  .operator-footer { display: grid; }
  .brand img { width: 74px; }
  .game-embed-shell,
  .game-embed-frame { min-height: 360px; }
  .game-embed-compact,
  .game-embed-compact .game-embed-frame { min-height: 280px; }
}

/* Live template hardening: keeps the installed site from falling back to browser button/layout defaults. */
.topbar {
  min-height: 96px;
}
.topbar .nav-row {
  width: min(1240px, calc(100% - 2rem));
}
.topbar .brand {
  min-width: 320px;
}
.topbar .brand img {
  object-fit: contain;
}
.topbar .brand-copy span {
  display: none;
}
.topbar .nav-links {
  flex: 1;
  justify-content: flex-end;
  align-items: center;
  gap: 0.65rem;
}
.topbar .nav-links > a,
.topbar .nav-dropdown > button {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.72rem 1rem !important;
  border: 1px solid transparent !important;
    border-radius: 8px !important;
    background: transparent !important;
    color: var(--muted) !important;
    box-shadow: none !important;
    line-height: 1 !important;
  }
.topbar .nav-links > a:hover,
.topbar .nav-links > a.active,
.topbar .nav-dropdown:hover > button,
.topbar .nav-dropdown:focus-within > button {
    background: rgba(255, 255, 255, 0.08) !important;
    color: var(--text) !important;
    border-color: rgba(0,232,255,0.18) !important;
  }
.topbar .nav-links > .button-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-strong)) !important;
    color: #170d00 !important;
    border-color: transparent !important;
  }
.page-hero .panel,
.page-hero .content-card,
.section .content-card,
.section .panel {
  background: rgba(8, 13, 42, 0.92);
}
.site-frame {
  width: calc(100% - 2rem);
  max-width: none;
}
.neon-dashboard {
  width: 100%;
}
.neon-dashboard .neon-dashboard-grid {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: stretch;
}
.neon-dashboard .neon-panel {
  display: block !important;
  min-width: 0;
}
.neon-dashboard .player-card,
.neon-dashboard .spin-layout,
.neon-dashboard .deposit-layout {
  display: grid !important;
}
.neon-dashboard .top-player-row,
.neon-dashboard .mission-grid,
.neon-dashboard .quick-play-grid,
.neon-dashboard .reward-icons,
.neon-dashboard .daily-rewards,
.neon-dashboard .review-ticker,
.neon-dashboard .deposit-buttons,
.neon-dashboard .wallet-strip {
  display: grid !important;
}
.ad-slot .house-ad {
  min-height: 80px;
}
.ad-slot-header .house-ad,
.ad-slot-inline .house-ad,
.ad-slot-footer .house-ad {
  min-height: 76px;
  grid-auto-flow: column;
  justify-content: center;
  align-items: center;
  padding: 0.85rem 1rem;
}
.admin-main .table-wrap {
  width: 100%;
  overflow: auto !important;
}
.admin-main table {
  table-layout: auto;
}
.admin-main .list-table .actions {
  min-width: 260px;
}
@media (max-width: 1180px) {
  .topbar .nav-links {
    justify-content: start;
  }
  .neon-dashboard .neon-dashboard-grid {
    grid-template-columns: 1fr !important;
  }
}
.profile-room {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(0,232,255,0.26);
  background: linear-gradient(135deg, rgba(0,232,255,0.10), rgba(141,53,255,0.10));
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.profile-room-streamlined {
  grid-template-columns: 1fr;
}
.profile-room.room-animating {
  box-shadow: 0 0 30px rgba(0,232,255,0.22), 0 0 40px rgba(255,211,61,0.08);
  transform: translateY(-2px);
}
.profile-avatar,
.room-panel {
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(4,7,30,0.62);
}
.avatar-chip {
  width: 120px;
  height: 120px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 26px;
  font-size: 2rem;
  font-weight: 900;
  color: #160600;
  background: linear-gradient(135deg, var(--gold), var(--pink));
  box-shadow: 0 0 20px rgba(255,211,61,0.45);
}
.frame-gold-frame .avatar-chip,
.frame-gold .avatar-chip {
  border: 4px solid var(--gold);
}
.avatar-loadout {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.9rem;
  color: var(--muted);
}
.profile-room-stage {
  position: relative;
  min-height: 420px;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(7,12,38,0.78), rgba(5,7,28,0.90));
}
.profile-room-stage-clean {
  padding: 5rem 1rem 1rem;
}
.profile-room-stage-simple {
  min-height: 540px;
  padding: 1.4rem;
}
.profile-room-builder {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 320px;
  gap: 1rem;
  align-items: start;
}
.profile-room-canvas {
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.16));
}
.profile-room-canvas-simple {
  min-height: 430px;
  padding: 1.35rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0.10));
}
.room-avatar-stand-inline {
  position: static;
  width: auto;
  height: auto;
  margin-bottom: 1rem;
  justify-content: start;
}
.room-shelves-grid-clean {
  position: static;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}
.room-shelves-grid-clean .room-slot {
  min-height: 170px;
}
.room-panel-inline {
  position: static;
  width: auto;
}
.room-available-items {
  margin-top: 1rem;
  display: grid;
  gap: 0.75rem;
}
.room-available-items-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.room-available-card {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.8rem;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}
.compact-summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.room-toolbar {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.profile-bg-aurora {
  background: linear-gradient(135deg, rgba(0,232,255,0.20), rgba(141,53,255,0.22), rgba(255,43,214,0.16));
}
.profile-bg-aurora .room-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 18%, rgba(255,211,61,0.30), transparent 18%),
    radial-gradient(circle at 80% 20%, rgba(0,232,255,0.28), transparent 18%),
    linear-gradient(180deg, rgba(255,255,255,0.08), transparent 28%);
  opacity: 0.9;
}
.profile-floor-cyber-grid,
.profile-floor-carbon {
  position: relative;
}
.room-light {
  position: absolute;
  top: 2rem;
  width: 130px;
  height: 130px;
  border-radius: 999px;
  filter: blur(16px);
  opacity: 0.7;
  z-index: 0;
}
.room-light-left {
  left: 1.5rem;
  background: rgba(255, 211, 61, 0.35);
}
.room-light-right {
  right: 1.5rem;
  background: rgba(0, 232, 255, 0.35);
}
.room-platform {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0;
  height: 140px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0.45));
  z-index: 0;
}
.profile-floor-cyber-grid .room-platform {
  background-image:
    linear-gradient(rgba(0,232,255,0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,232,255,0.22) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0.48));
  background-size: 24px 24px, 24px 24px, auto;
  background-color: rgba(0, 20, 40, 0.50);
}
.profile-floor-carbon .room-platform {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0.45)),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.03), rgba(255,255,255,0.03) 10px, rgba(0,0,0,0.02) 10px, rgba(0,0,0,0.02) 20px);
}
.room-poster,
.room-avatar-stand,
.room-item,
.room-panel {
  position: absolute;
  z-index: 1;
}
.room-poster {
  top: 1rem;
  right: 1rem;
  width: 180px;
  padding: 0.9rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(4,7,30,0.74);
}
.room-poster strong,
.room-item strong {
  display: block;
  margin-top: 0.4rem;
}
.room-poster em,
.room-item span {
  color: var(--muted);
  font-style: normal;
  font-size: 0.84rem;
}
.room-avatar-stand {
  left: 2rem;
  bottom: 1.8rem;
  width: 170px;
  height: 220px;
  display: grid;
  place-items: end center;
}
.room-avatar-body {
  width: 120px;
  height: 160px;
  display: grid;
  place-items: center;
  border-radius: 36px 36px 20px 20px;
  color: #160600;
  font-size: 2.2rem;
  font-weight: 900;
  background: linear-gradient(180deg, var(--gold), var(--pink));
  box-shadow: 0 0 26px rgba(255, 211, 61, 0.45);
}
.avatar-plasma-rider,
.room-avatar-body.avatar-plasma-rider {
  background: linear-gradient(180deg, var(--cyan), var(--violet), var(--pink));
  color: #fff;
}
.room-item {
  width: 145px;
  min-height: 92px;
  padding: 0.8rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(6, 12, 38, 0.82);
  box-shadow: 0 0 14px rgba(0,232,255,0.10);
}
.room-item::before {
  content: "";
  display: block;
  width: 44px;
  height: 44px;
  margin-bottom: 0.5rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,211,61,0.5), rgba(255,43,214,0.32));
}
.room-item-trophy-shelf::before {
  background: linear-gradient(135deg, rgba(255,211,61,0.72), rgba(255,122,0,0.48));
}
.room-item-xp-reactor::before {
  background: linear-gradient(135deg, rgba(0,232,255,0.72), rgba(141,53,255,0.48));
}
.room-item-slot-1 { left: 220px; bottom: 2rem; }
.room-item-slot-2 { left: 390px; bottom: 2rem; }
.room-item-slot-3 { right: 210px; bottom: 2rem; }
.room-item-slot-4 { right: 40px; bottom: 2rem; }
.room-panel {
  right: 1rem;
  bottom: 1rem;
  max-width: 320px;
}
.profile-room-stage.is-fullscreen {
  width: 100vw;
  height: 100vh;
  padding: 2rem;
  border: 0;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(7,12,38,0.98), rgba(5,7,28,1));
}
.profile-room-stage.is-fullscreen .room-platform {
  left: 2rem;
  right: 2rem;
  height: 190px;
}
.profile-room-stage.is-fullscreen .room-avatar-stand {
  left: 4rem;
  bottom: 3rem;
  width: 240px;
  height: 320px;
}
.profile-room-stage.is-fullscreen .room-avatar-body {
  width: 170px;
  height: 230px;
  font-size: 3rem;
}
.profile-room-stage.is-fullscreen .room-item {
  width: 180px;
  min-height: 120px;
}
.profile-room-stage.is-fullscreen .room-item-slot-1 { left: 310px; bottom: 3rem; }
.profile-room-stage.is-fullscreen .room-item-slot-2 { left: 520px; bottom: 3rem; }
.profile-room-stage.is-fullscreen .room-item-slot-3 { right: 260px; bottom: 3rem; }
.profile-room-stage.is-fullscreen .room-item-slot-4 { right: 40px; bottom: 3rem; }
.profile-room-stage.is-fullscreen .room-panel {
  right: 2rem;
  bottom: 2rem;
  max-width: 360px;
}
.profile-room-stage.is-fullscreen .room-poster {
  right: 2rem;
  top: 2rem;
}
.profile-room-stage.is-fullscreen .room-toolbar {
  left: 2rem;
  top: 2rem;
}
.profile-room-stage.is-fullscreen .room-light-left {
  left: 3rem;
}
.profile-room-stage.is-fullscreen .room-light-right {
  right: 3rem;
}
.room-window-band {
  position: absolute;
  top: 5.4rem;
  right: 11rem;
  display: grid;
  grid-template-columns: repeat(3, 120px);
  gap: 0.6rem;
  z-index: 1;
}
.room-window-pane {
  height: 110px;
  border-radius: 18px 18px 10px 10px;
  border: 1px solid rgba(255,255,255,0.14);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0)),
    linear-gradient(180deg, rgba(68,220,255,0.54), rgba(255,184,56,0.30) 58%, rgba(0,70,126,0.56));
  box-shadow: inset 0 0 0 6px rgba(255,255,255,0.04), 0 0 20px rgba(0,232,255,0.14);
}
.room-decor {
  position: absolute;
  z-index: 1;
  border-radius: 18px;
  background: rgba(5,8,31,0.86);
  border: 1px solid rgba(255,255,255,0.08);
}
.room-decor-plant {
  left: 210px;
  top: 7.8rem;
  width: 72px;
  height: 120px;
  background:
    radial-gradient(circle at 40% 22%, rgba(67,255,140,0.86), rgba(67,255,140,0.12) 38%, transparent 40%),
    radial-gradient(circle at 65% 36%, rgba(67,255,140,0.78), rgba(67,255,140,0.12) 38%, transparent 40%),
    linear-gradient(180deg, rgba(16,22,56,0.2), rgba(16,22,56,0)),
    rgba(4,7,30,0.24);
}
.room-decor-desk {
  left: 340px;
  top: 11.2rem;
  width: 220px;
  height: 74px;
  border-radius: 18px 18px 12px 12px;
  background:
    linear-gradient(180deg, rgba(112,82,33,0.9), rgba(55,33,14,0.96)),
    rgba(6, 12, 38, 0.82);
}
.room-decor-lamp {
  right: 120px;
  bottom: 3rem;
  width: 54px;
  height: 118px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 14%, rgba(255,232,130,0.9), rgba(255,190,56,0.58) 36%, transparent 46%),
    linear-gradient(180deg, rgba(25,39,92,0.9), rgba(12,20,58,0.96));
  box-shadow: 0 0 26px rgba(255,211,61,0.18);
}
.room-shelves-grid {
  position: absolute;
  left: 220px;
  right: 2rem;
  bottom: 2rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  z-index: 2;
}
.room-slot {
  min-height: 118px;
  border-radius: 18px;
  border: 1px dashed rgba(0,232,255,0.22);
  background: linear-gradient(180deg, rgba(24,18,64,0.72), rgba(8,10,36,0.82));
  box-shadow: inset 0 8px 0 rgba(120,70,18,0.42), inset 0 16px 0 rgba(76,45,14,0.28);
  padding: 0.7rem;
  display: grid;
  align-items: end;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.room-slot.is-over {
  border-color: rgba(255,211,61,0.7);
  box-shadow: 0 0 18px rgba(255,211,61,0.18), inset 0 8px 0 rgba(120,70,18,0.42);
  transform: translateY(-2px);
}
.room-slot-empty {
  min-height: 148px;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  text-align: center;
  color: rgba(201,217,255,0.62);
  font-size: 0.82rem;
  padding: 1rem 0.5rem;
}
.room-slot-card {
  display: grid;
  gap: 0.35rem;
  justify-items: center;
  text-align: center;
  padding: 0.65rem 0.5rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(7, 14, 42, 0.92);
  box-shadow: 0 0 14px rgba(0,232,255,0.08);
  cursor: grab;
}
.room-slot-card.is-dragging {
  opacity: 0.48;
  transform: scale(0.96);
}
.room-slot-art {
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(255,211,61,0.2));
}
.room-slot-card strong {
  font-size: 0.84rem;
  line-height: 1.15;
}
.room-slot-card span {
  color: var(--muted);
  font-size: 0.76rem;
}
.profile-room-stage.is-fullscreen .room-window-band {
  top: 6rem;
  right: 13rem;
  grid-template-columns: repeat(3, 170px);
}
.profile-room-stage.is-fullscreen .room-window-pane {
  height: 150px;
}
.profile-room-stage.is-fullscreen .room-decor-plant {
  left: 280px;
  top: 9rem;
  width: 92px;
  height: 148px;
}
.profile-room-stage.is-fullscreen .room-decor-desk {
  left: 470px;
  top: 13.5rem;
  width: 300px;
  height: 88px;
}
.profile-room-stage.is-fullscreen .room-decor-lamp {
  right: 150px;
  bottom: 4rem;
  width: 70px;
  height: 150px;
}
.profile-room-stage.is-fullscreen .room-shelves-grid {
  left: 320px;
  right: 2.5rem;
  bottom: 3rem;
  gap: 1.25rem;
}
.profile-room-stage.is-fullscreen .room-slot {
  min-height: 154px;
}
.profile-room-stage.is-fullscreen .room-slot-art {
  width: 78px;
  height: 78px;
}
.profile-room-stage.is-fullscreen .room-slot-card strong {
  font-size: 0.94rem;
}
.homepage-hero .hero-grid {
  align-items: start;
}
.homepage-numbers {
  margin-top: 1.4rem;
}
.homepage-summary {
  min-height: 100%;
}
.ticker-marquee {
  position: relative;
  overflow: hidden;
  padding: 0.55rem 0;
  border-radius: var(--radius);
  border: 1px solid rgba(0,232,255,0.2);
  background: linear-gradient(90deg, rgba(0,232,255,0.08), rgba(141,53,255,0.10));
}
.ticker-marquee::before,
.ticker-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 70px;
  z-index: 1;
  pointer-events: none;
}
.ticker-marquee::before {
  left: 0;
  background: linear-gradient(90deg, rgba(5,7,26,0.95), rgba(5,7,26,0));
}
.ticker-marquee::after {
  right: 0;
  background: linear-gradient(270deg, rgba(5,7,26,0.95), rgba(5,7,26,0));
}
.ticker-marquee-track {
  display: flex;
  gap: 0.85rem;
  width: max-content;
  animation: tickerScroll 34s linear infinite;
}
.ticker-marquee:hover .ticker-marquee-track {
  animation-play-state: paused;
}
.ticker-chip {
  flex: 0 0 auto;
  min-width: 240px;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
}
.ticker-chip strong,
.ticker-chip span,
.ticker-chip em {
  display: block;
}
.ticker-chip strong {
  color: var(--gold);
}
.ticker-chip span,
.ticker-chip em {
  color: var(--muted);
  font-style: normal;
}
.member-dashboard-shell {
  padding-top: 0;
}
.shop-item-art-shell,
.case-art-shell {
  display: grid;
  place-items: center;
  min-height: 180px;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.08);
  background: radial-gradient(circle at top, rgba(0,232,255,0.16), transparent 45%), rgba(255,255,255,0.03);
}
.shop-item-art {
  width: min(160px, 100%);
  height: 160px;
  object-fit: contain;
}
.case-art {
  width: min(220px, 100%);
  height: 180px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(0,232,255,0.25));
}
.case-art-small {
  width: 96px;
  height: 96px;
}
.case-card.case-opening {
  transform: scale(0.98);
  opacity: 0.88;
}
.prize-preview-row {
  min-height: 40px;
}
.case-reveal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(2, 6, 20, 0.84);
}
.case-reveal.open {
  display: flex;
}
.case-reveal-card {
  width: min(980px, 100%);
  padding: 1.5rem;
  position: relative;
}
.case-reveal-close,
.ptc-captcha-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 4;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(7, 12, 36, 0.9);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0,0,0,0.28);
  touch-action: manipulation;
}
.case-reveal-close:hover,
.ptc-captcha-close:hover {
  border-color: rgba(0,232,255,0.28);
  background: rgba(10, 18, 56, 0.98);
}
.case-reel-shell {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  padding: 0 1rem;
}
.case-reel-shell::after {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 50%;
  width: 4px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,211,61,0.96), rgba(255,163,31,0.75));
  box-shadow: 0 0 20px rgba(255,211,61,0.55);
  z-index: 2;
}
.case-reel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 200px;
  gap: 1rem;
  align-items: stretch;
  padding: 1rem 0;
  transition: transform 10s cubic-bezier(.06,.72,.16,1);
  will-change: transform;
}
.case-reel-item {
  min-height: 170px;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  text-align: center;
}
.case-reel-item.rarity-common {
  border-color: rgba(191, 199, 210, 0.28);
  background: linear-gradient(180deg, rgba(112, 122, 142, 0.16), rgba(255,255,255,0.03));
}
.case-reel-item.rarity-uncommon {
  border-color: rgba(101, 255, 91, 0.34);
  background: linear-gradient(180deg, rgba(31, 110, 52, 0.22), rgba(255,255,255,0.03));
}
.case-reel-item.rarity-rare {
  border-color: rgba(77, 162, 255, 0.36);
  background: linear-gradient(180deg, rgba(26, 74, 145, 0.24), rgba(255,255,255,0.03));
}
.case-reel-item.rarity-epic {
  border-color: rgba(186, 87, 255, 0.36);
  background: linear-gradient(180deg, rgba(85, 32, 132, 0.24), rgba(255,255,255,0.03));
}
.case-reel-item.rarity-legendary {
  border-color: rgba(255, 211, 61, 0.44);
  background: linear-gradient(180deg, rgba(136, 93, 8, 0.28), rgba(255,255,255,0.03));
}
.case-reel-item strong,
.case-final-prize strong {
  display: block;
  margin-top: 0.6rem;
}
.case-reel-item em,
.case-final-prize p {
  color: var(--muted);
  font-style: normal;
}
.case-reel-item.winning {
  transform: scale(1.01);
}
.case-reel-item.is-settled {
  box-shadow: 0 0 0 2px rgba(255,255,255,0.08), 0 0 22px rgba(255,255,255,0.08);
}
.case-reel-item.rarity-common.is-settled {
  border-color: rgba(190, 198, 210, 0.92);
  box-shadow: 0 0 0 2px rgba(190, 198, 210, 0.28), 0 0 24px rgba(190, 198, 210, 0.18);
}
.case-reel-item.rarity-uncommon.is-settled {
  border-color: rgba(101,255,91,0.92);
  box-shadow: 0 0 0 2px rgba(101,255,91,0.34), 0 0 24px rgba(101,255,91,0.18);
}
.case-reel-item.rarity-rare.is-settled {
  border-color: rgba(77,162,255,0.94);
  box-shadow: 0 0 0 2px rgba(77,162,255,0.34), 0 0 24px rgba(77,162,255,0.22);
}
.case-reel-item.rarity-epic.is-settled {
  border-color: rgba(186,87,255,0.96);
  box-shadow: 0 0 0 2px rgba(186,87,255,0.36), 0 0 26px rgba(186,87,255,0.24);
}
.case-reel-item.rarity-legendary.is-settled {
  border-color: rgba(255,211,61,0.96);
  box-shadow: 0 0 0 2px rgba(255,211,61,0.55), 0 0 28px rgba(255,211,61,0.34);
}
.case-final-prize {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0 1.25rem;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(0,232,255,0.22);
  background: rgba(255,255,255,0.04);
}
.admin-asset-thumb {
  width: 54px;
  height: 54px;
  margin-right: 0.75rem;
  object-fit: contain;
  vertical-align: middle;
}
.inventory-card {
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.profile-avatar-actions,
.room-controls,
.room-tabs,
.room-controls-actions,
.arcade-actions,
.achievement-popout-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.profile-avatar-actions {
  margin-top: 1rem;
}
.room-controls {
  position: absolute;
  left: 1rem;
  right: 1rem;
  top: 1rem;
  z-index: 4;
  justify-content: space-between;
}
.room-controls-static {
  position: static;
  margin-bottom: 1rem;
}
.profile-room-summary-grid .dashboard-card,
.profile-room-summary-grid .dashboard-summary-card {
  min-height: 132px;
  display: grid;
  align-content: start;
  gap: 0.4rem;
  padding: 1rem 1.05rem;
  border-radius: var(--radius);
  border: 1px solid rgba(0,232,255,0.22);
  background: linear-gradient(180deg, rgba(10,48,96,0.55), rgba(8,18,54,0.7));
  box-shadow: var(--shadow);
}
.profile-room-summary-grid .dashboard-card span,
.profile-room-summary-grid .dashboard-summary-card span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
}
.profile-summary-head {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.profile-summary-head span {
  display: inline-flex;
}
.profile-summary-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 0.95rem;
  font-weight: 700;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.profile-room-summary-grid .dashboard-card strong,
.profile-room-summary-grid .dashboard-summary-card strong {
  display: block;
  font-size: 1.65rem;
  line-height: 1.05;
}
.profile-room-summary-grid .dashboard-card small,
.profile-room-summary-grid .dashboard-summary-card small {
  display: block;
  color: rgba(237,243,255,0.72);
  font-size: 0.8rem;
}
.profile-room-streamlined .profile-room-stage-simple {
  min-height: 720px;
  padding: 1.35rem;
}
.profile-page-shell {
  width: min(1380px, calc(100% - 2rem));
}
.profile-page-shell .dashboard-tabs-shell {
  display: flex;
  justify-content: center;
  padding: 1rem 1.2rem;
}
.profile-page-shell .dashboard-tabs {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: stretch;
  gap: 0.85rem;
  width: min(860px, 100%);
  margin: 0 auto;
}
.profile-page-shell .dashboard-tab {
  flex: 1 1 0;
  min-width: 0;
  max-width: 240px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.profile-room-canvas-simple {
  min-height: 620px;
  padding: 1.5rem;
  border-radius: 26px;
  border: 1px solid rgba(0, 232, 255, 0.18);
  background:
    radial-gradient(circle at top, rgba(0, 232, 255, 0.08), transparent 25%),
    linear-gradient(180deg, rgba(8, 14, 44, 0.96), rgba(19, 11, 55, 0.96));
}
.room-controls-static {
  position: static;
  margin-bottom: 1rem;
}
.room-selector-tabs {
  width: 100%;
  justify-content: center;
  align-items: stretch;
  gap: 0.85rem;
}
.room-selector-tabs-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 1rem;
}
.room-selector-button {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-align: center;
}
.room-selector-button-disabled {
  opacity: 0.78;
  cursor: default;
}
.room-selector-mini-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 800;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.room-selector-button.is-active .room-selector-mini-icon {
  border-color: rgba(0,232,255,0.28);
  background: rgba(0,232,255,0.12);
  color: var(--cyan);
}
.room-selector-locked {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  min-width: min(100%, 360px);
}
.room-selector-locked form {
  width: 100%;
}
.room-selector-button-alt {
  border-color: rgba(255,211,61,0.24);
}
.profile-room-streamlined .profile-room-stage-simple {
  min-height: 760px;
}
.room-rack-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 88px));
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(0,232,255,0.16);
}
.room-shelves-grid-clean {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 0.55rem;
  align-content: start;
  min-height: 100%;
}
.room-shelves-grid-clean .room-slot {
  min-height: 92px;
}
.room-floor-grid {
  margin-top: 0.85rem;
}
.arcade-complete-modal .ad-slot-card {
  width: min(100%, 420px);
}
.arcade-level-meter {
  margin: 0.9rem 0 1.15rem;
}
.payment-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  min-height: 32px;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
}
.payment-brand-paypal {
  color: #8fd1ff;
  background: rgba(49, 130, 206, 0.14);
  border-color: rgba(96, 165, 250, 0.28);
}
.payment-brand-bitcoin {
  color: #ffd08a;
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(251, 191, 36, 0.28);
}
.payment-brand-ethereum {
  color: #d8ceff;
  background: rgba(139, 92, 246, 0.16);
  border-color: rgba(167, 139, 250, 0.28);
}
.payment-brand-usdt {
  color: #95ffd8;
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(52, 211, 153, 0.28);
}
.payment-brand-default {
  color: var(--cyan);
}
.profile-meta-grid,
.profile-card-stack {
  align-items: start;
}
.profile-room-card {
  padding: 1.25rem;
}
.profile-room-card > h3 {
  margin-top: 0;
  margin-bottom: 0.45rem;
}
.profile-room-card .muted {
  margin-top: 0;
}
.profile-panel {
  display: none;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1.2rem;
}
.profile-panel.active {
  display: grid;
}
.profile-panel-head {
  margin-bottom: 0;
}
.profile-room-layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.9fr);
  gap: 1rem;
  align-items: start;
}
.profile-side-stack {
  display: grid;
  gap: 1rem;
}
.profile-room-card-wide {
  min-height: 100%;
}
.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.profile-table-card {
  min-height: 100%;
}
.profile-table-card-wide {
  grid-column: 1 / -1;
}
.profile-table-wrap {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}
.profile-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
}
.profile-table th,
.profile-table td {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.profile-table th {
  width: 42%;
  color: var(--muted);
  font-weight: 600;
}
.profile-table tr:last-child th,
.profile-table tr:last-child td {
  border-bottom: 0;
}
.profile-action-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.profile-action-grid a {
  min-height: 92px;
}
.profile-action-grid strong,
.dashboard-action-grid strong {
  display: block;
  margin-bottom: 0.2rem;
}
.profile-room-summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}
.room-slot-empty {
  display: grid;
  place-items: center;
  min-height: 76px;
  border-radius: 18px;
  border: 1px dashed rgba(0, 232, 255, 0.24);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.room-slot.is-over .room-slot-empty,
.room-slot.is-over {
  border-color: rgba(255, 211, 61, 0.55);
  background: rgba(255, 211, 61, 0.08);
}
.room-slot {
  min-height: 82px;
}
.room-slot-rack {
  min-height: 78px;
  box-shadow: inset 0 12px 0 rgba(164,131,34,0.28), inset 0 24px 0 rgba(96,66,18,0.24);
}
.room-slot-card {
  display: grid;
  gap: 0.18rem;
  align-items: start;
  min-height: 100%;
  padding: 0.35rem;
}
.room-slot-card form {
  width: 100%;
}
.room-slot-card .button {
  width: 100%;
}
.room-slot-locked {
  gap: 0.45rem;
  align-content: center;
  padding: 0.75rem 0.55rem;
  text-align: center;
}
.room-slot-locked strong {
  font-size: 0.78rem;
}
.room-slot-locked em {
  color: rgba(237,243,255,0.68);
  font-size: 0.66rem;
  font-style: normal;
}
.room-slot-art {
  width: 24px;
  height: 24px;
}
.room-slot-card strong {
  font-size: 0.58rem;
  line-height: 1.2;
}
.room-slot-card span {
  font-size: 0.54rem;
}
.room-slot-card .button.button-small {
  min-height: 30px;
  padding: 0.3rem 0.35rem;
  font-size: 0.6rem;
}
.arcade-embed {
  overflow: hidden;
  border-radius: 18px;
}
.arcade-embed,
.arcade-embed .game-embed-frame {
  min-height: 560px;
}
.game-embed-frame {
  touch-action: manipulation;
}
.room-available-items-grid {
  display: grid;
  gap: 0.85rem;
}
.room-available-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.9rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  cursor: grab;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.room-available-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 232, 255, 0.28);
  box-shadow: 0 18px 34px rgba(7, 12, 36, 0.22);
}
.room-available-card.is-dragging {
  opacity: 0.5;
  transform: scale(0.98);
}
.admin-chart-grid {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: 1rem;
}
.chart-card {
  padding: 1rem;
  border-radius: 22px;
  border: 1px solid rgba(0,232,255,0.14);
  background: rgba(255,255,255,0.03);
}
.chart-donut {
  width: 190px;
  height: 190px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(11,16,40,0.96) 0 45%, transparent 46%),
    conic-gradient(
      rgba(0,232,255,0.95) 0deg var(--approved),
      rgba(255,211,61,0.95) var(--approved) var(--pending),
      rgba(255,92,138,0.95) var(--pending) 360deg
    );
  display: grid;
  place-items: center;
  box-shadow: 0 0 24px rgba(0,232,255,0.14);
}
.chart-donut-center {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  background: rgba(10,15,36,0.94);
}
.chart-legend {
  display: grid;
  gap: 0.55rem;
}
.chart-legend span,
.chart-bar-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.chart-swatch {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
  margin-right: 0.45rem;
}
.chart-swatch-approved { background: rgba(0,232,255,0.95); }
.chart-swatch-pending { background: rgba(255,211,61,0.95); }
.chart-swatch-reversed { background: rgba(255,92,138,0.95); }
.chart-bar-list {
  display: grid;
  gap: 0.8rem;
}
.chart-bar-track {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
}
.chart-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(0,232,255,0.9), rgba(141,53,255,0.9));
}
.chart-bar-fill.status-approved { background: linear-gradient(90deg, rgba(255,211,61,0.95), rgba(255,146,43,0.95)); }
.chart-bar-fill.status-paid { background: linear-gradient(90deg, rgba(0,232,255,0.9), rgba(84,126,255,0.9)); }
.chart-bar-fill.status-returned { background: linear-gradient(90deg, rgba(255,92,138,0.9), rgba(141,53,255,0.9)); }
.chart-bar-fill.status-pending { background: linear-gradient(90deg, rgba(255,211,61,0.9), rgba(255,92,138,0.9)); }
.room-tabs .button.is-active {
  color: var(--text);
  background: linear-gradient(135deg, rgba(0,232,255,0.24), rgba(141,53,255,0.22));
  border-color: rgba(0,232,255,0.34);
}
.inventory-card.equipped {
  border-color: rgba(101,255,91,0.34);
  box-shadow: 0 0 18px rgba(101,255,91,0.12);
}
.inventory-card:hover {
  transform: translateY(-3px);
}
.booster-live-meter {
  margin: 0.9rem 0 1rem;
  padding: 0.85rem;
  border-radius: 16px;
  border: 1px solid rgba(0, 232, 255, 0.18);
  background: linear-gradient(135deg, rgba(12, 23, 64, 0.92), rgba(31, 16, 69, 0.84));
}
.booster-live-meter-bar {
  position: relative;
  overflow: hidden;
  height: 14px;
  margin-bottom: 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}
.booster-live-meter-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #00e8ff, #8d35ff 55%, #ffb24a);
  box-shadow: 0 0 16px rgba(0, 232, 255, 0.28);
}
.booster-live-meter-meta {
  justify-content: space-between;
}
.admin-users-layout {
  align-items: start;
}
.admin-users-workspace {
  display: grid;
  gap: 1rem;
}
.admin-users-panel,
.admin-users-list-panel,
.admin-country-card {
  background: rgba(10, 18, 56, 0.92);
  border: 1px solid rgba(0, 232, 255, 0.16);
  border-radius: 22px;
  box-shadow: 0 22px 48px rgba(4, 7, 24, 0.34);
}
.admin-users-country-bars {
  display: grid;
  gap: 0.85rem;
}
.admin-users-country-row {
  display: grid;
  gap: 0.4rem;
}
.admin-users-country-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}
.admin-users-country-meta span {
  color: rgba(190, 203, 235, 0.78);
  font-size: 0.88rem;
}
.admin-users-country-track {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}
.admin-users-country-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22d3ee 0%, #8d35ff 55%, #ff8a2a 100%);
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.2);
}
.ptc-viewer-window-shell {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 170px);
  padding: 2rem;
  background:
    radial-gradient(circle at top, rgba(0, 232, 255, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(7, 12, 36, 0.96), rgba(12, 18, 52, 0.96));
}
.ptc-windowed-card {
  width: min(100%, 680px);
  padding: 2rem;
  border-radius: 26px;
  border: 1px solid rgba(0, 232, 255, 0.2);
  background: rgba(10, 18, 56, 0.92);
  box-shadow: 0 24px 60px rgba(4, 7, 24, 0.42);
}
.ptc-windowed-card h2 {
  margin: 0.85rem 0 0.6rem;
}
.offerwall-provider-card .stats-grid {
  margin-top: 1rem;
}
.offerwall-activity-bar .ticker-chip {
  min-width: 260px;
}
.dashboard-tabs .dashboard-tab {
  margin: 0;
}
.inventory-card form.is-submitting .button {
  opacity: 0.72;
  transform: none;
}
.achievements-grid {
  align-items: start;
}
.achievement-card {
  background:
    radial-gradient(circle at top right, rgba(255,191,70,0.14), transparent 30%),
    radial-gradient(circle at bottom left, rgba(0,232,255,0.12), transparent 34%),
    rgba(255,255,255,0.03);
}
.achievement-progress-wrap {
  margin: 1rem 0;
}
.achievement-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.55rem;
}
.achievement-progress-head strong {
  color: var(--gold);
}
.achievement-progress-head span {
  color: var(--muted);
  font-size: 0.92rem;
}
.xp-progress-card {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(0,232,255,0.22);
  background: rgba(255,255,255,0.03);
}
.xp-membership-details {
  margin-top: 0.75rem;
}
.xp-membership-details summary {
  cursor: pointer;
  color: var(--cyan);
  font-weight: 700;
}
.ad-slot-rain-modal,
.ad-slot-daily-login {
  margin: 1rem 0 0;
}
.achievement-progress-bar {
  overflow: hidden;
  height: 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.05);
}
.achievement-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #00e8ff, #8d35ff 55%, #ffbf46);
  box-shadow: 0 0 16px rgba(0,232,255,0.26);
}
.achievement-next-reward {
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(5,9,34,0.55);
}
.achievement-next-reward strong {
  display: block;
  margin: 0.5rem 0 0.35rem;
}
.achievement-popout {
  margin-top: 0.85rem;
}
.achievement-popout summary {
  list-style: none;
  display: inline-flex;
}
.achievement-popout summary::-webkit-details-marker {
  display: none;
}
.achievement-popout[open] .button {
  border-color: rgba(255,191,70,0.35);
}
.achievement-popout-body {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(167,214,255,0.28);
  background: linear-gradient(180deg, rgba(246,250,255,0.97), rgba(224,237,255,0.94));
  color: #273252;
  box-shadow: 0 20px 55px rgba(2,8,26,0.35);
}
.achievement-popout-header {
  justify-content: space-between;
  margin-bottom: 1rem;
}
.achievement-stage-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  margin-bottom: 0.8rem;
  border-radius: 18px;
  border: 1px solid rgba(118,137,190,0.25);
  background: rgba(255,255,255,0.72);
}
.achievement-stage-row:last-child {
  margin-bottom: 0;
}
.achievement-stage-row.is-claimed strong {
  color: #74ff87;
}
.achievement-stage-row.is-claimable {
  box-shadow: 0 0 0 1px rgba(255,191,70,0.16);
  background: linear-gradient(90deg, rgba(255,222,137,0.35), rgba(255,255,255,0.82));
}
.achievement-stage-copy {
  min-width: 0;
  flex: 1;
}
.achievement-stage-track {
  position: relative;
  height: 12px;
  margin-top: 0.55rem;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(114,124,158,0.35);
}
.achievement-stage-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffd34d, #ff9f1c);
}
.achievement-stage-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.arcade-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.arcade-card {
  overflow: hidden;
}
.arcade-thumb {
  min-height: 140px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(0,232,255,0.22);
  background: linear-gradient(135deg, rgba(0,232,255,0.10), rgba(141,53,255,0.18), rgba(255,95,209,0.16));
}
.arcade-thumb span {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 800;
  color: #f5f8ff;
  text-shadow: 0 0 24px rgba(0,232,255,0.18);
}
.arcade-thumb-astro-drift,
.arcade-thumb-pulse-runner,
.arcade-thumb-pixel-hopper,
.arcade-thumb-meteor-stack,
.arcade-thumb-turbo-dodge,
.arcade-thumb-prism-breaker,
.arcade-thumb-sky-drop {
  background: linear-gradient(135deg, rgba(0,232,255,0.12), rgba(255,95,209,0.18), rgba(255,211,61,0.12));
}
.arcade-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.arcade-embed,
.arcade-embed .game-embed-frame {
  min-height: 560px;
}
.arcade-timer {
  text-align: right;
}
.arcade-timer strong {
  display: block;
  font-size: 1.65rem;
}
.arcade-actions {
  justify-content: space-between;
  margin-top: 1rem;
}
.spin-wheel-live {
  width: min(560px, 100%);
  max-width: 560px;
  margin-left: auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.spin-page-grid {
  align-items: center;
}
.spin-page-card {
  display: grid;
  gap: 0.85rem;
}
.spin-trigger-button {
  min-width: 180px;
  padding: 0.8rem 1.1rem;
  font-size: 0.95rem;
}
.spin-reveal-card {
  max-width: 720px;
}
.spin-wheel-reveal-shell {
  display: grid;
  place-items: center;
  padding: 0.75rem 0 1.25rem;
}
.spin-wheel-reveal {
  width: min(540px, 78vw);
  max-width: 540px;
  margin: 0 auto;
}
.spin-result-icon {
  width: 92px;
  height: 92px;
  flex: 0 0 92px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,0.85), transparent 24%),
    conic-gradient(var(--gold), var(--gold-strong), var(--pink), var(--cyan), var(--gold));
  box-shadow: 0 0 22px rgba(255,211,61,0.35);
  position: relative;
}
.spin-result-icon::before {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  background: rgba(4,7,30,0.84);
}
.spin-result-icon::after {
  content: "WIN";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 0.08em;
}
.spin-result-card {
  max-width: 560px;
  text-align: center;
}
.spin-result-card .case-final-prize {
  justify-content: center;
  text-align: left;
}
.case-final-prize[hidden] {
  display: none !important;
}
.case-final-prize.is-visible {
  animation: fadePrizeIn 0.35s ease forwards;
}
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 0.425rem)); }
}
@keyframes caseScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-420px); }
}
@keyframes fadePrizeIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 960px) {
  .spin-wheel {
    --spin-label-distance: 118px;
  }
  .spin-wheel-segment-label {
    width: 82px;
    font-size: 0.56rem;
  }
  .page-with-community,
  .dashboard-layout,
  .dashboard-member-card,
  .dashboard-mission-grid,
  .dashboard-action-grid,
  .dashboard-summary-grid,
  .dashboard-stat-strip {
    grid-template-columns: 1fr;
  }
  .community-sidebar-shell {
    position: static;
    order: 0;
    grid-column: auto;
    padding-left: 0;
  }
  .page-with-community > :not(.community-sidebar-shell),
  .dashboard-layout > :not(.community-sidebar-shell) {
    grid-column: auto;
  }
  .community-sidebar-toggle {
    position: static;
    width: 100%;
    max-width: none;
    min-height: 44px;
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
  }
  .community-sidebar-toggle span {
    writing-mode: initial;
    transform: none;
  }
  .dashboard-tabs-shell,
  .activity-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-sidebar {
    position: static;
  }
  .profile-room {
    grid-template-columns: 1fr;
  }
  .profile-room-layout-grid,
  .profile-stats-grid,
  .profile-room-summary-grid,
  .profile-action-grid {
    grid-template-columns: 1fr;
  }
  .profile-page-shell .dashboard-tabs {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }
  .profile-page-shell .dashboard-tab {
    max-width: none;
  }
  .room-selector-locked {
    grid-template-columns: 1fr;
    min-width: 0;
  }
  .profile-room-builder {
    grid-template-columns: 1fr;
  }
  .ad-slot-surfbar-bar {
    min-width: 0;
    max-width: none;
    width: 100%;
  }
  .ptc-viewer-bar {
    height: auto;
    align-items: stretch;
    flex-direction: column;
    padding: 0.75rem;
  }
  .ptc-viewer-bar-main {
    width: 100%;
    justify-content: space-between;
  }
  .room-controls {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    margin-bottom: 1rem;
  }
  .room-poster,
  .room-avatar-stand,
  .room-panel {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
  }
  .profile-room-stage {
    padding: 1rem;
    gap: 1rem;
    align-items: start;
  }
  .room-avatar-stand {
    height: auto;
    place-items: center;
  }
  .room-platform,
  .room-light {
    display: none;
  }
  .room-window-band,
  .room-decor {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
  }
  .room-window-band,
  .room-shelves-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .room-shelves-grid-clean {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .room-shelves-grid {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 1rem;
  }
  .arcade-grid {
    grid-template-columns: 1fr;
  }
  .case-final-prize {
    display: grid;
  }
  .achievement-progress-head,
  .achievement-stage-row {
    display: grid;
  }
  .achievement-stage-meta {
    justify-content: flex-start;
  }
}
@media (max-width: 680px) {
  .spin-wheel {
    --spin-label-distance: 104px;
  }
  .spin-wheel-segment-label {
    width: 72px;
    font-size: 0.5rem;
  }
  .dashboard-tabs-shell {
    padding: 0.75rem;
  }
  .dashboard-tab {
    width: 100%;
    justify-content: center;
  }
  .profile-page-shell .dashboard-tabs {
    display: grid;
    gap: 0.75rem;
  }
  .dashboard-tab-bar {
    display: grid;
    grid-template-columns: 1fr;
  }
}
.ptc-viewer-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    padding: 0.7rem 1rem;
    background: rgba(8, 13, 38, 0.92);
    border-bottom: 1px solid rgba(70, 130, 255, 0.18);
}

.ptc-viewer-toolbar .muted {
    margin: 0;
}

.ad-slot-surfbar-bar .user-order-ad,
.ad-slot-surfbar-bar .house-ad {
    min-height: 64px;
}

.advertise-hero .container {
    display: grid;
    gap: 1.35rem;
}

.advertise-hero-copy {
    max-width: 760px;
}

.advertise-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(360px, 1fr);
    gap: 1.4rem;
    align-items: start;
}

.advertise-products,
.advertise-order-card {
    background: rgba(8, 13, 38, 0.58);
    border: 1px solid rgba(0, 232, 255, 0.18);
    border-radius: 18px;
    padding: 1.2rem;
}

.advertise-products-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.advertise-products-head h3,
.advertise-order-card h3 {
    margin: 0.5rem 0 0;
}

.advertise-package-group {
    display: none;
}

.advertise-package-group.active {
    display: block;
}

.advertise-group-copy {
    display: grid;
    gap: 0.3rem;
    margin-bottom: 1rem;
}

.advertise-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 1rem;
}

.advertise-package-card {
    appearance: none;
    border: 1px solid rgba(100, 115, 255, 0.22);
    background:
        linear-gradient(180deg, rgba(11, 19, 54, 0.95), rgba(16, 10, 48, 0.95)),
        radial-gradient(circle at top left, rgba(0, 232, 255, 0.12), transparent 40%);
    border-radius: 16px;
    color: #f6f8ff;
    display: grid;
    gap: 0.75rem;
    padding: 1.15rem;
    text-align: left;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    min-height: 100%;
}

.advertise-package-mockup {
    position: relative;
    overflow: hidden;
    min-height: 138px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    background: linear-gradient(180deg, rgba(5, 14, 42, 0.98), rgba(18, 10, 49, 0.95));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.advertise-mockup-glow {
    position: absolute;
    inset: auto auto 0 -10px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,184,61,0.26), rgba(255,184,61,0));
    pointer-events: none;
}

.advertise-package-intent-traffic .advertise-mockup-glow {
    background: radial-gradient(circle, rgba(0,232,255,0.28), rgba(0,232,255,0));
}

.advertise-package-intent-community .advertise-mockup-glow {
    background: radial-gradient(circle, rgba(255,95,209,0.28), rgba(255,95,209,0));
}

.advertise-package-intent-conversion .advertise-mockup-glow {
    background: radial-gradient(circle, rgba(255,140,70,0.3), rgba(255,140,70,0));
}

.advertise-package-intent-exposure .advertise-mockup-glow {
    background: radial-gradient(circle, rgba(255,211,61,0.28), rgba(255,211,61,0));
}

.advertise-package-intent-reach .advertise-mockup-glow {
    background: radial-gradient(circle, rgba(141,53,255,0.3), rgba(141,53,255,0));
}

.advertise-package-copy {
    display: grid;
    gap: 0.18rem;
}

.advertise-package-badge {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    padding: 0.28rem 0.62rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 211, 61, 0.2);
    background: rgba(255, 211, 61, 0.1);
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.advertise-package-badge-traffic {
    border-color: rgba(0, 232, 255, 0.26);
    background: rgba(0, 232, 255, 0.12);
    color: var(--cyan);
}

.advertise-package-badge-community {
    border-color: rgba(255, 95, 209, 0.24);
    background: rgba(255, 95, 209, 0.12);
    color: #ff8fe5;
}

.advertise-package-badge-conversion {
    border-color: rgba(255, 140, 70, 0.26);
    background: rgba(255, 140, 70, 0.12);
    color: #ffb067;
}

.advertise-package-badge-exposure {
    border-color: rgba(255, 211, 61, 0.24);
    background: rgba(255, 211, 61, 0.1);
    color: var(--gold);
}

.advertise-package-badge-reach {
    border-color: rgba(141, 53, 255, 0.24);
    background: rgba(141, 53, 255, 0.14);
    color: #c49dff;
}

.advertise-package-kind {
    color: var(--cyan);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.advertise-mockup-surfbar-shell,
.advertise-mockup-chat-shell,
.advertise-mockup-popup-shell,
.advertise-mockup-banner-shell {
    position: absolute;
    inset: 0;
}

.advertise-mockup-surfbar-shell {
    padding: 1rem;
    display: grid;
    align-content: center;
    gap: 0.85rem;
}

.advertise-mockup-progress {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(255,255,255,0.1), rgba(255,255,255,0.04));
    overflow: hidden;
    position: relative;
}

.advertise-mockup-progress::after {
    content: "";
    position: absolute;
    inset: 0 40% 0 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #00e8ff, #64c7ff, #ffd33d);
    box-shadow: 0 0 18px rgba(0,232,255,0.25);
}

.advertise-mockup-banner-strip {
    padding: 0.85rem 0.9rem;
    border-radius: 12px;
    border: 1px solid rgba(0,232,255,0.18);
    background: linear-gradient(135deg, rgba(0,232,255,0.12), rgba(141,53,255,0.18), rgba(255,95,209,0.12));
    text-align: left;
}

.advertise-mockup-banner-strip strong,
.advertise-mockup-banner-strip span {
    display: block;
}

.advertise-mockup-banner-strip span {
    color: rgba(237,243,255,0.72);
    font-size: 0.78rem;
}

.advertise-mockup-chat-shell {
    padding: 0.9rem;
    display: grid;
    gap: 0.75rem;
}

.advertise-mockup-chat-message,
.advertise-mockup-chat-ad {
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
}

.advertise-mockup-chat-message {
    display: grid;
    gap: 0.2rem;
    padding: 0.8rem 0.85rem 0.8rem 2.5rem;
    background: linear-gradient(135deg, rgba(18,28,74,0.92), rgba(25,18,73,0.82));
    position: relative;
}

.advertise-mockup-chat-message span {
    position: absolute;
    left: 0.8rem;
    top: 0.9rem;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd33d, #ff6a00, #ff2bd6);
}

.advertise-mockup-chat-message em {
    color: rgba(237,243,255,0.68);
    font-style: normal;
    font-size: 0.78rem;
}

.advertise-mockup-chat-ad {
    padding: 0.75rem 0.85rem;
    background: linear-gradient(135deg, rgba(0,106,172,0.32), rgba(10,22,67,0.84));
    color: var(--gold);
    font-weight: 700;
    text-align: center;
}

.advertise-mockup-popup-shell {
    padding: 1rem;
    display: grid;
    place-items: center;
}

.advertise-mockup-popup-body {
    width: min(100%, 240px);
    padding: 1rem;
    border-radius: 16px;
    border: 1px solid rgba(0,232,255,0.2);
    background: linear-gradient(180deg, rgba(18,23,70,0.98), rgba(28,18,64,0.95));
    box-shadow: 0 18px 40px rgba(0,0,0,0.28);
    text-align: center;
}

.advertise-mockup-popup-header {
    position: absolute;
    top: 1.1rem;
    right: 1.2rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.7);
}

.advertise-mockup-popup-body strong,
.advertise-mockup-popup-body span {
    display: block;
}

.advertise-mockup-popup-body span {
    margin-top: 0.35rem;
    color: rgba(237,243,255,0.72);
    font-size: 0.8rem;
}

.advertise-mockup-banner-shell {
    padding: 1rem;
    display: grid;
    align-content: center;
    gap: 0.7rem;
}

.advertise-mockup-banner-large,
.advertise-mockup-banner-small {
    border-radius: 12px;
    border: 1px solid rgba(0,232,255,0.18);
    background: linear-gradient(135deg, rgba(0,232,255,0.14), rgba(141,53,255,0.14), rgba(255,211,61,0.12));
}

.advertise-mockup-banner-large {
    min-height: 48px;
}

.advertise-mockup-banner-small {
    min-height: 22px;
    width: 68%;
}

.advertise-package-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 232, 255, 0.34);
}

.advertise-package-card.is-selected {
    border-color: rgba(0, 232, 255, 0.72);
    box-shadow: 0 0 0 1px rgba(0, 232, 255, 0.28), 0 18px 40px rgba(3, 10, 30, 0.42);
}

.advertise-package-card strong {
    font-size: 1.02rem;
}

.advertise-package-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--gold);
}

.advertise-order-card {
    display: grid;
    gap: 0.9rem;
    position: sticky;
    top: 108px;
}

.advertise-order-card label {
    display: grid;
    gap: 0.4rem;
}

.advertise-package-summary {
    display: grid;
    gap: 0.35rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.advertise-submit-meta {
    display: grid;
    gap: 0.2rem;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 232, 255, 0.18);
    background: rgba(5, 14, 42, 0.55);
}

.advertise-panel {
    overflow: visible;
}

.advertise-panel .flash {
    margin-bottom: 1rem;
}

.flash-error {
    border: 1px solid rgba(255, 114, 136, 0.3);
    background: rgba(255, 114, 136, 0.12);
    color: #ffe0e6;
}

.admin-main .content-card > h2:first-child,
.admin-main .content-card > h3:first-child {
    margin-top: 0;
}

@media (max-width: 1024px) {
    .room-rack-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .room-shelves-grid-clean {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .arcade-embed,
    .arcade-embed .game-embed-frame {
        min-height: 440px;
    }
}

@media (max-width: 760px) {
    .admin-split-grid {
        grid-template-columns: 1fr;
    }

    .settings-toggle-grid {
        grid-template-columns: 1fr;
    }

    .settings-table {
        min-width: 0;
    }

    .settings-table th,
    .settings-table td {
        display: block;
        width: 100%;
    }

    .settings-table tr {
        display: grid;
        gap: 0.55rem;
        padding: 0.85rem 0;
    }

    .room-selector-tabs-panel,
    .room-rack-grid {
        grid-template-columns: 1fr;
    }

    .arcade-embed,
    .arcade-embed .game-embed-frame {
        min-height: 360px;
    }

    .ptc-viewer-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .advertise-layout {
        grid-template-columns: 1fr;
    }

    .advertise-order-card {
        position: static;
    }

    .advertise-products-head {
        display: grid;
    }

    .advertise-card-grid {
        grid-template-columns: 1fr;
    }
}
