/* Bet panel styles (added) */
/* Removed custom BET panel styles to revert to original UI */
/* Removed custom bet panel styles; revert to original */
/* Mobile enhancements for the slot UI */
@media (max-width: 480px) {
  /* General text scaling */
  body { font-size: 16px; }

  /* Make the slot window taller to fit larger symbols */
  .machine .frame .window {
    min-height: 62vh;
    height: 62vh; /* give more vertical space on phones */
  }

  /* Ensure reels row uses full width */
  .machine .reel-row { gap: 6px; }
  .machine .reel { flex: 1 1 0; }

  /* Buttons: larger tap targets */
  .btn,
  button {
    font-size: 16px;
    padding: 12px 16px;
    min-height: 44px; /* recommended minimum touch target */
    border-radius: 10px;
  }

  /* Bet input and controls */
  #bet-input {
    font-size: 18px;
    padding: 10px 12px;
    min-height: 40px;
  }
  .controls { gap: 10px; }

  /* Overlay pills more readable */
  #overlay-fs,
  #overlay-bal,
  .overlay-pill,
  .overlay-balance {
    font-size: 14px;
    padding: 8px 10px;
    border-radius: 10px;
  }

  /* Bonus HUD scaling */
  .bonus-hud {
    font-size: 14px;
    gap: 8px;
  }
  .bonus-hud .hud-item .label { font-size: 12px; }
  .bonus-hud .hud-item .value { font-size: 16px; font-weight: 800; }

  /* Fish value tags a bit bigger */
  .fish-tag {
    font-size: 12px;
    padding: 3px 6px;
    border-radius: 8px;
  }

  /* Highlight boxes slightly thicker to be visible */
  .highlight .cell {
    box-shadow: 0 0 0 2px rgba(0,198,255,0.8), 0 0 10px rgba(0,198,255,0.35);
  }

  /* Bottom ladder spacing for fingers */
  .bottom-ladder {
    gap: 6px;
    padding: 8px 6px;
  }
  .bottom-ladder .hook {
    width: 32px;
    height: 32px;
    position: relative;
  }
  .bottom-ladder .hook img { width: 24px; height: 24px; }
  .bottom-ladder .hook .milestone { left: 24px; top: -4px; }

  /* Message text under bet larger */
  #message { font-size: 14px; }
}
/* Global: prevent text selection where typing is not expected */
body :not(input):not(textarea):not([contenteditable="true"]) {
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
/* Preserve selection for genuine text-entry elements */
input, textarea, [contenteditable="true"] {
  -webkit-user-select: text;
  -ms-user-select: text;
  user-select: text;
}
/* Reduce tap/click highlight on interactive elements */
a, button { -webkit-tap-highlight-color: transparent; }
/* Security/Zorp server headers: full-width clickable tabs aligned with ZORP block */
#security-zorp .zorp-section-header.full {
  display: grid;
  grid-template-columns: 24px 1fr 140px; /* arrow, title, centered state */
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  margin: 8px auto; /* center like other list items */
  max-width: 760px; /* align with list/card content width */
  border-radius: 10px;
  cursor: pointer;
  background: linear-gradient(180deg, #141a1f, #0e1217);
  color: #b5ecff;
  box-shadow: inset 0 0 0 1px rgba(0,198,255,0.25), 0 4px 12px rgba(0,0,0,0.35);
  box-sizing: border-box;
}
#security-zorp .zorp-section-header.full.open {
  box-shadow: inset 0 0 0 2px rgba(0,198,255,0.55), 0 8px 22px rgba(0,198,255,0.15);
}
#security-zorp .zorp-section-header.full .zorp-arrow {
  color: #8ddcff;
  font-weight: 900;
}
#security-zorp .zorp-section-header.full .zorp-section-title {
  font-weight: 700;
  letter-spacing: 0.4px;
}
#security-zorp .zorp-section-header.full .zorp-state {
  justify-self: center;
  font-weight: 800;
  color: #00c6ff;
}
/* Security Zorp styles */
.btn-reset {
  padding: 4px 10px;
  font-size: 12px;
  line-height: 1.2;
  border-radius: 10px;
  border: 1px solid #15e672;
  background: linear-gradient(180deg, #15e672 0%, #10c95f 100%);
  color: #08250f;
  box-shadow: 0 0 8px rgba(21, 230, 114, 0.45), inset 0 0 6px rgba(255,255,255,0.35);
  text-shadow: 0 0 4px rgba(255,255,255,0.3);
  margin-left: 8px;
  cursor: pointer;
  transition: transform .08s ease, box-shadow .15s ease, filter .15s ease;
}
.security-grid .stat-list button,
#tab-security button {
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  color: #001018;
  border: 1px solid rgba(0,198,255,0.45);
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,114,255,0.35), inset 0 0 10px rgba(255,255,255,0.12);
}
#tab-security button:hover { filter: brightness(1.06); }
#tab-security .btn-delete { background: linear-gradient(135deg, #ff6b6b, #e24646); color:#2b0b0b; border-color: rgba(255,107,107,0.7); }
.btn-reset:hover { filter: brightness(1.05); box-shadow: 0 0 10px rgba(21,230,114,0.65), inset 0 0 6px rgba(255,255,255,0.45); }
.btn-reset:active { transform: translateY(1px); }

.coords {
  font-weight: 600;
  letter-spacing: 0.2px;
  color: #00c6ff;
  text-shadow: 0 0 6px rgba(0,198,255,0.6);
}
/* Cooldown timer styles */
.cooldown-row {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 4px;
}
.cooldown-time {
  font-size: 12px;
  line-height: 14px;
  color: #00c6ff; /* bright blue */
  background: rgba(0, 198, 255, 0.12);
  border: 1px solid rgba(0, 198, 255, 0.6);
  border-radius: 10px;
  padding: 2px 6px;
  display: inline-block;
  text-align: center;
}

/* Green ready state for permanent pill without changing others */
.cooldown-time.ready {
  color: #2ecc71;
  background: rgba(46, 204, 113, 0.20);
  border-color: rgba(46, 204, 113, 0.65);
  text-shadow: 0 0 8px rgba(46, 204, 113, 0.25);
}

/* Red locked state for consistent pill styling */
.cooldown-time.locked {
  color: #ffb3a8;
  background: rgba(231, 76, 60, 0.12);
  border-color: rgba(231, 76, 60, 0.55);
}

/* Stats list pills: use global default for cooldown; no special override here */
/* Per-server kit timers: slightly narrower but consistent */
#lists-container .kit-server-clock { min-width: 110px; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
  /* Keep hugging on mobile too */
  #lists-container .cooldown-time { margin-left: 0; }
  /* Removed empty rule to fix warning */
}
/* Base layout */
body {
  font-family: 'Chirp', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: #000000;
  color: #e7e9ea;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* XP Hub theme layer (index.php only) */
body.theme-xp{
  --xp-bg0:#000000;
  --xp-bg1:#000000;
  --xp-bg2:#000000;
  --xp-accent:#1d9bf0;
  --xp-line:#2f3336;
  --xp-text:#e7e9ea;
  --xp-dim:#71767b;
  color: var(--xp-text);
  background: #000000;
}
body.theme-xp .tab-bar .tab-btn{
  background: #000000;
  border-color: #2f3336;
  box-shadow: none;
  color: #e7e9ea;
}
body.theme-xp .tab-bar .tab-btn.active{
  background: #1d9bf0;
  border-color: #1d9bf0;
  color: #ffffff;
  box-shadow: none;
}
body.theme-xp .card{
  background: #000000;
  border: 1px solid #2f3336;
  box-shadow: none;
}
body.theme-xp .card:hover{
  transform: none;
  background: rgba(231, 233, 234, 0.04);
  box-shadow: none;
}
body.theme-xp .tabs-shell,
body.theme-xp #tools-card{
  border: 1px solid #2f3336;
  box-shadow: none;
}
body.theme-xp .card h3{
  color: #e7e9ea;
  text-shadow: none;
}

@media (max-width: 600px){
  body.theme-xp{
    background-size: 190px 190px, 240px 240px, 300px 300px, 360px 360px, 150px 150px, 420px 420px, auto, auto, auto;
  }
}
@media (prefers-reduced-motion: reduce){
  body.theme-xp{ background-attachment: scroll; }
}

.header-left { justify-self: start; }
.header-center { justify-self: center; }
.header-grid nav { justify-self: end; }
.brand-glow {
  font-family: 'Chirp', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #e7e9ea;
  text-shadow: none;
}
/* Restrict logo size only within header to avoid impacting guide images */
/* Prevent text-caret/selection feeling on tab buttons and cards */
.tab-bar .tab-btn,
.storage-tabs .storage-btn,
.kit-tab,
.server-tab,
.kit-pill,
.card h3,
.security-card h3 {
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}
.tab-bar .tab-btn:focus,
.storage-tabs .storage-btn:focus,
.kit-tab:focus,
.server-tab:focus,
.kit-pill:focus {
  outline: none;
}
/* Ensure the center slot keeps the logo centered and not stretched */
.header-center {
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Restrict logo size only within header to avoid impacting guide images */
header .brand-logo {
  height: 72px;
  max-height: 72px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* After claiming daily reward, soften the PNG and remove glow */
header .brand-logo.claimed {
  filter: none;
  opacity: 0.6;
}

header h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 28px;
  color: #00c6ff;
  text-shadow: 0 0 12px #00c6ff;
}

nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

nav a {
  color: #fff;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 8px;
  text-decoration: none;
  background: rgba(255,255,255,0.05);
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
nav a:hover {
  background: rgba(0,198,255,0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,198,255,0.4);
  color: #00eaff;
}

nav a.active {
  background: rgba(0,198,255,0.3);
  color: #00eaff;
  box-shadow: 0 0 10px rgba(0,198,255,0.5);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-info img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  box-shadow: 0 0 8px #00c6ff;
}

/* Login/Logout button */
.btn {
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  color: #fff;
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
/* Global tab buttons (Home/Stats/Storage/Shop/Security) */
.tab-bar .tab-btn {
  background: radial-gradient(120% 120% at 50% -20%, rgba(0,198,255,0.22) 0%, rgba(0,198,255,0.06) 50%, rgba(0,198,255,0.02) 80%), linear-gradient(180deg, #12161a, #0b0e12);
  color: #b5ecff;
  border: 1px solid rgba(0,198,255,0.25);
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 800;
  letter-spacing: .4px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,198,255,0.22), inset 0 0 10px rgba(0,198,255,0.08);
}
.tab-bar .tab-btn.active {
  background: radial-gradient(120% 120% at 50% -20%, rgba(0,198,255,0.38) 0%, rgba(0,198,255,0.14) 45%, rgba(0,198,255,0.05) 80%), linear-gradient(180deg, #141a1f, #0d1116);
  color: #e6f7ff;
  border-color: rgba(0,198,255,0.65);
  box-shadow: 0 10px 26px rgba(0,198,255,0.32), inset 0 0 12px rgba(0,198,255,0.18);
}
/* Removed broad neutralizer to keep vibrant button styles */
.btn-booster {
  position: relative;
  background: linear-gradient(135deg, #ff5aa5, #ff2e8f);
  color: #fff;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 0 18px rgba(255, 46, 143, 0.7), inset 0 0 10px rgba(255,255,255,0.15);
}
.btn-booster::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 12px;
  background: radial-gradient(120% 120% at 50% 50%, rgba(255, 46, 143, 0.6) 0%, rgba(255, 46, 143, 0) 70%);
  filter: blur(8px);
  z-index: -1;
}
.btn-booster:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 22px rgba(255, 46, 143, 0.85), inset 0 0 12px rgba(255,255,255,0.2);
}
.btn-booster:disabled {
  opacity: 0.8;
  cursor: not-allowed;
}

.btn:hover {
  background: linear-gradient(135deg, #00eaff, #0099ff);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,198,255,0.6);
}

/* Hero */
.hero {
  text-align: center;
  padding: 40px 20px;
}

.hero h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 32px;
  color: #00c6ff;
  text-shadow: 0 0 16px #00c6ff, 0 0 28px rgba(0,198,255,0.8), 0 0 42px rgba(0,198,255,0.6);
}

.hero .btn {
  margin-top: 20px;
  font-size: 16px;
  padding: 14px 26px;
}

/* Sections container (boxed layout) */
.sections {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

/* Cards */
.card {
  background: linear-gradient(135deg, rgba(0,198,255,0.12), rgba(0,153,255,0.1));
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35), 0 0 18px rgba(0,198,255,0.25) inset;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(0,198,255,0.45), 0 6px 20px rgba(0,0,0,0.45);
}

.card h3 {
  font-family: 'Orbitron', sans-serif;
  margin-bottom: 12px;
  color: #00c6ff;
  text-shadow: 0 0 8px #00c6ff;
}

/* Stats grid */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Profile: Player Stats should be 2-column (not 3) */
#profile-stats #stats-container .stat-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 760px;
  margin: 0 auto;
  gap: 12px;
}

/* Profile: Player Stats tiles (distinct from the card background) */
#profile-stats #stats-container .profile-stat-item {
  background: linear-gradient(180deg, #0b1c30, #081b2b);
  border: 1px solid rgba(0, 198, 255, 0.22);
  box-shadow: 0 10px 24px rgba(0,0,0,0.35), inset 0 0 14px rgba(0,198,255,0.08);
  padding: 14px 14px;
}
#profile-stats #stats-container .profile-stat-item:hover {
  box-shadow: 0 12px 28px rgba(0,0,0,0.38), 0 0 14px rgba(0,198,255,0.18), inset 0 0 14px rgba(0,198,255,0.10);
}
#profile-stats #stats-container .profile-stat-item .value {
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}
#profile-stats #stats-container .profile-stat-item .stat-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
#profile-stats #stats-container .profile-stat-item .stat-label {
  font-weight: 800;
  color: #d6efff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 520px) {
  #profile-stats #stats-container .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Profile-only mobile tightening (avoid affecting other tabs) */
@media (max-width: 480px) {
  #tab-profile.tab-content { padding: 14px; }
  #tab-profile .card { padding: 16px; margin-bottom: 14px; }

  #tab-profile .wallet-grid { gap: 10px; }
  #tab-profile .wallet-item { padding: 12px; }

  #profile-stats #stats-container .stat-grid { gap: 10px; }
  #profile-stats #stats-container .profile-stat-item { padding: 12px 12px; }
}

@media (max-width: 380px) {
  #profile-stats #stats-container .stat-grid {
    grid-template-columns: 1fr;
  }
}

/* Profile: center Lists content inside its card */
#profile-stats #lists-container {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 760px;
}

/* === Profile visual cleanup (scoped) === */
#tab-profile .card {
  background: linear-gradient(180deg, rgba(7, 20, 28, 0.92), rgba(8, 26, 36, 0.92));
  border: 1px solid rgba(0, 198, 255, 0.32);
  border-radius: 14px;
  box-shadow: 0 12px 26px rgba(0,0,0,0.45);
}

/* Avoid hover-lift/glow inside Profile (feels messy on mobile) */
#tab-profile .card:hover {
  transform: none;
  box-shadow: 0 12px 26px rgba(0,0,0,0.45);
}

#tab-profile .card h3 {
  font-family: 'Orbitron', sans-serif;
  color: #00c6ff;
  text-shadow: 0 0 10px rgba(0,198,255,0.65), 0 0 22px rgba(0,198,255,0.25);
  letter-spacing: 0.5px;
  font-weight: 800;
  font-size: 22px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 198, 255, 0.22);
  position: relative;
}

/* Profile section title accent (subtle neon underline) */
#tab-profile .card h3::after {
  content: '';
  display: block;
  height: 2px;
  width: min(260px, 60%);
  margin-top: 8px;
  background: linear-gradient(90deg, rgba(0,198,255,0.85), rgba(0,198,255,0.0));
  box-shadow: 0 0 12px rgba(0,198,255,0.45);
  border-radius: 999px;
}

/* Inner rows (Wallet/Stats/Lists): consistent, flatter */
#tab-profile .wallet-item,
#tab-profile .stat-item {
  background: rgba(8, 27, 43, 0.62);
  border: 1px solid rgba(0, 198, 255, 0.24);
  box-shadow: none;
}

#tab-profile .wallet-item:hover,
#tab-profile .stat-item:hover {
  box-shadow: none;
}

/* Reduce neon text glow in Profile */
#tab-profile .value {
  text-shadow: none;
  color: #7fdcff;
}

/* Stats tiles: reduce heavy inset glow */
#profile-stats #stats-container .profile-stat-item {
  box-shadow: 0 10px 22px rgba(0,0,0,0.40);
}
#profile-stats #stats-container .profile-stat-item:hover {
  box-shadow: 0 10px 22px rgba(0,0,0,0.40);
}

/* Lists: remove underline + extra glow for titles/labels */
#lists-container .kit-title,
#lists-container .kit-server-label {
  text-shadow: none;
}

#lists-container .kit-title {
  text-decoration: none;
}

.stat-item {
  background: linear-gradient(135deg, rgba(0,198,255,0.12), rgba(0,153,255,0.1));
  border-radius: 8px;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: box-shadow 0.3s;
}

.stat-item:hover {
  box-shadow: 0 0 14px rgba(0,198,255,0.45);
}

.stat-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.value {
  font-weight: 600;
  color: #00c6ff;
  text-shadow: 0 0 6px #00c6ff;
}

/* Wallet grid */
.wallet-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 16px;
}

.wallet-item {
  background: linear-gradient(135deg, rgba(0,198,255,0.12), rgba(0,153,255,0.1));
  border-radius: 8px;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: box-shadow 0.3s;
}

.wallet-item:hover {
  box-shadow: 0 0 14px rgba(0,198,255,0.45);
}

.wallet-item img.emoji {
  width: 24px;
  height: 24px;
  margin-right: 6px;
}
.wallet-item span { display: inline-flex; align-items: center; gap: 6px; }

/* Guides (default lightweight style) */
.guide {
  margin-bottom: 20px;
}

.guide h4 {
  font-family: 'Orbitron', sans-serif;
  margin-bottom: 8px;
  color: #00c6ff;
  text-shadow: 0 0 8px #00c6ff;
}

.guide .sub {
  font-size: 14px;
  color: #ccc;
  margin-bottom: 8px;
}

.guide img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(0,0,0,0.4);
}

/* Steps (generic) */
.steps .step {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.badge {
  background: #00c6ff;
  color: #111;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  box-shadow: 0 0 6px #00c6ff;
}

.note {
  background: rgba(255,255,255,0.1);
  padding: 6px 10px;
  border-radius: 6px;
  margin-top: 6px;
  font-size: 14px;
}

.note.danger { background: rgba(255,0,0,0.3); }
.note.ok { background: rgba(0,255,0,0.3); }

/* Inline keyboard style */
.inline-kbd {
  background: #222;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  color: #00c6ff;
  box-shadow: 0 0 6px #00c6ff;
}

/* Tab bar buttons (Home, Stats, Shop, Info) */
.tab-bar {
  display: flex;
  gap: 12px;
}
/* Tab content visibility */
.tab-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  display: none;
}
.tab-content.active {
  display: block;
}

.tab-bar .tab-btn {
  flex: auto;
  min-width: 120px;
  text-align: center;
  padding: 10px 14px;
  font-size: 15px;
  background: linear-gradient(180deg, #12161a, #0b0e12);
  border: 1px solid rgba(0,198,255,0.25);
  border-radius: 10px;
  color: #9fe8ff;
  font-weight: 800;
  letter-spacing: .4px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,198,255,0.15);
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

 

/* Shop tabs and admin add bar */
.shop-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.shop-tab {
  padding: 8px 12px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background: rgba(255,255,255,0.08);
  color: #fff;
}
.shop-tab.active { background: rgba(0,198,255,0.3); box-shadow: 0 0 8px rgba(0,198,255,0.5); }

/* TAXI tab theme */
.shop-tab.taxi { background: #FFD700; color: #000; }
.shop-tab.taxi:hover { filter: brightness(0.98); }
.shop-tab.taxi.active { background: #FFD700; color: #000; box-shadow: 0 0 8px rgba(255,215,0,0.6); }

.shop-addbar {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.admin-controls { display: flex; gap: 6px; }

.shop-item {
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.shop-image { width: 100%; max-height: 180px; object-fit: contain; }
.badge-kit { background: #00c6ff; color: #111; padding: 2px 6px; border-radius: 6px; margin-left: 6px; }

/* Buttons inside tab content (optional) */
.action-btn {
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.action-btn:hover {
  background: linear-gradient(135deg, #00eaff, #0099ff);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,198,255,0.4);
}

/* Info tab theming variables and defaults for guides under Home */
#tab-info {
  --glow: #00c6ff;
  --panel: rgba(255,255,255,0.06);
  --panel-strong: rgba(255,255,255,0.09);
  --text-dim: #cbd5e1;
}
:root {
  --glow: #00c6ff;
  --panel: rgba(255,255,255,0.06);
  --panel-strong: rgba(255,255,255,0.09);
  --text-dim: #cbd5e1;
}

/* Daily brand logo glow only when claim-ready */
.brand-logo.claim-ready {
  filter: drop-shadow(0 0 10px rgba(0,198,255,0.9)) drop-shadow(0 0 20px rgba(0,198,255,0.6));
  transition: filter 0.2s ease-in-out;
}
/* Dim glow while on cooldown */
.brand-logo.cooldown {
  filter: drop-shadow(0 0 4px rgba(0,198,255,0.35));
  opacity: 0.9;
  transition: filter 0.2s ease-in-out, opacity 0.2s ease-in-out;
}

/* Info tab scoped styles (prevent overrides elsewhere) */
#tab-info .info-header {
  text-align: center;
  margin: 12px 0 24px;
}
#tab-info .info-header h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 28px;
  color: var(--glow);
  text-shadow: 0 0 12px var(--glow);
  margin: 0;
}
#tab-info .info-header .tagline {
  color: var(--text-dim);
  margin-top: 6px;
  font-size: 14px;
}

/* Guide panel (works both under Info and Home) */
#tab-info .guide,
.tab-content .guide {
  background: var(--panel);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  backdrop-filter: blur(6px);
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
#tab-info .guide:hover,
.tab-content .guide:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(0,198,255,0.35);
  border-color: rgba(0,198,255,0.35);
}

/* Guide header */
#tab-info .guide-header,
.tab-content .guide-header {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px 10px;
  border-bottom: 1px dashed rgba(255,255,255,0.12);
  margin-bottom: 12px;
}
#tab-info .guide-icon,
.tab-content .guide-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--panel-strong);
  border-radius: 12px;
  box-shadow: inset 0 0 12px rgba(0,198,255,0.35), 0 0 12px rgba(0,198,255,0.25);
  font-size: 22px;
}
#tab-info .guide-header h3,
.tab-content .guide-header h3 {
  font-family: 'Orbitron', sans-serif;
  margin: 0;
  color: var(--glow);
  font-size: 22px;
  text-shadow: 0 0 8px var(--glow);
}
#tab-info .guide-header .sub,
.tab-content .guide-header .sub {
  color: var(--text-dim);
  font-size: 14px;
  margin-top: 4px;
}
#tab-info .badge.beta,
.tab-content .badge.beta {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 8px;
  font-size: 12px;
  border-radius: 999px;
  background: rgba(255,196,0,0.18);
  color: #ffd54f;
  border: 1px solid rgba(255,196,0,0.35);
}

/* Guide body layout */
#tab-info .guide-body,
.tab-content .guide-body {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
}
#tab-info .guide-raid .guide-body,
.tab-content .guide-raid .guide-body {
  grid-template-columns: 1fr; /* raid guide is mainly visual */
}

/* Steps list (scoped) */
#tab-info .steps {
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 12px;
}
#tab-info .step {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px;
  border-radius: 10px;
  transition: background 0.2s ease;
}
#tab-info .step:hover {
  background: rgba(255,255,255,0.06);
}
#tab-info .badge.step-num {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0,198,255,0.35);
}

/* Notes, inline kbd, callouts (scoped) */
#tab-info .note {
  background: rgba(255,255,255,0.08);
  padding: 8px 10px;
  border-radius: 8px;
  margin-top: 6px;
  font-size: 14px;
}
#tab-info .note.danger {
  background: rgba(255,0,0,0.22);
  border: 1px solid rgba(255,0,0,0.35);
}
#tab-info .inline-kbd {
  background: #1a1f24;
  padding: 2px 8px;
  border-radius: 6px;
  font-family: monospace;
  color: var(--glow);
  box-shadow: inset 0 0 6px rgba(0,198,255,0.25);
}

#tab-info .callouts {
  display: grid;
  gap: 12px;
}
#tab-info .callout {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 12px;
}
#tab-info .callout.ok {
  border-color: rgba(0,255,170,0.35);
  box-shadow: 0 0 10px rgba(0,255,170,0.25);
}
#tab-info .callout.info {
  border-color: rgba(0,198,255,0.35);
  box-shadow: 0 0 10px rgba(0,198,255,0.25);
}

/* Figure styling (scoped) */
#tab-info .guide-figure {
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 12px;
}
#tab-info .guide-figure img {
  width: 100%;
  border-radius: 8px;
  display: block;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}
#tab-info .guide-figure figcaption {
  color: var(--text-dim);
  font-size: 13px;
  margin-top: 8px;
  text-align: center;
}

/* Links inside notes/callouts (scoped) */
#tab-info .guide a {
  color: #7fdcff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
#tab-info .guide a:hover {
  color: #b5ecff;
}
.storage-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

/* Compact overrides for Zorp guide */
#tab-info .guide-zorp {
  padding: 8px !important;
  margin-bottom: 10px !important;
}
#tab-info .guide-zorp .guide-header {
  grid-template-columns: 40px 1fr !important;
  gap: 8px !important;
  padding: 4px 6px !important;
  margin-bottom: 6px !important;
}
#tab-info .guide-zorp .guide-icon { width: 40px; height: 40px; font-size: 18px; }
#tab-info .guide-zorp .guide-header h3 { font-size: 18px !important; }
#tab-info .guide-zorp .guide-header .sub { font-size: 12px !important; margin-top: 2px !important; }
#tab-info .guide-zorp .badge.beta { padding: 2px 6px !important; font-size: 11px !important; }
#tab-info .guide-zorp .guide-body { grid-template-columns: 1fr !important; gap: 8px !important; }
#tab-info .guide-zorp .guide-body.compact { padding: 0 !important; }
#tab-info .guide-zorp .zorp-grid { display:grid; grid-template-columns: 1.2fr 0.8fr; gap:12px; }
#tab-info .guide-zorp .zorp-left, #tab-info .guide-zorp .zorp-right { display:flex; flex-direction:column; gap:10px; }
#tab-info .guide-zorp .zorp-block { background: rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.1); border-radius:12px; padding:10px; box-shadow: 0 6px 16px rgba(0,0,0,0.25); }
#tab-info .guide-zorp .zorp-block-header { font-family:'Orbitron', sans-serif; color: var(--glow); text-shadow: 0 0 10px var(--glow); font-size:16px; margin-bottom:6px; }
#tab-info .guide-zorp .zorp-list { margin:0; padding-left:18px; }
#tab-info .guide-zorp .zorp-list li { margin:4px 0; }
#tab-info .guide-zorp .zorp-callout { background: linear-gradient(135deg, rgba(0,198,255,0.18), rgba(0,153,255,0.18)); border:1px solid rgba(0,198,255,0.45); border-radius:12px; padding:12px; box-shadow: 0 0 18px rgba(0,198,255,0.35); }
#tab-info .guide-zorp .zorp-callout.glow { box-shadow: 0 0 22px rgba(0,198,255,0.55), inset 0 0 12px rgba(0,198,255,0.25); }
#tab-info .guide-zorp .callout-title { font-weight:700; color:#b5ecff; margin-bottom:6px; text-shadow: 0 0 8px rgba(181,236,255,0.6); }
#tab-info .guide-zorp .zorp-badge-row { display:flex; flex-wrap:wrap; gap:8px; }
#tab-info .guide-zorp .zorp-badge { background: rgba(0,198,255,0.18); border:1px solid rgba(0,198,255,0.35); color:#b5ecff; padding:6px 10px; border-radius:999px; font-size:12px; box-shadow: 0 0 12px rgba(0,198,255,0.35); }
#tab-info .guide-zorp .link-glow { color:#7fdcff; text-decoration:none; font-weight:700; }
#tab-info .guide-zorp .link-glow:hover { color:#b5ecff; text-shadow: 0 0 8px rgba(181,236,255,0.7); }
#tab-info .guide-zorp .guide-header { border-bottom: 1px dashed rgba(255,255,255,0.1) !important; }
#tab-info .guide-zorp h3 { font-size: 18px !important; margin: 0 !important; }
#tab-info .guide-zorp p { margin: 3px 0 !important; line-height: 1.35 !important; }
#tab-info .guide-zorp h4 { margin: 4px 0 3px !important; font-size: 14px !important; }
#tab-info .guide-zorp p { margin: 2px 0 !important; line-height: 1.35 !important; }
#tab-info .guide-zorp .guide-steps { margin: 0 !important; padding-left: 16px !important; }
#tab-info .guide-zorp .guide-steps li { margin: 2px 0 !important; }
#tab-info .guide-zorp .guide-list { margin: 2px 0 !important; padding-left: 16px !important; }
#tab-info .guide-zorp .guide-list li { margin: 2px 0 !important; }
#tab-info .guide-zorp .inline-kbd { padding: 1px 6px !important; font-size: 12px !important; }
#tab-info .guide-zorp .callouts { gap: 6px !important; }
#tab-info .guide-zorp .callout { padding: 6px !important; }
#tab-info .guide-zorp .guide-figure { padding: 6px !important; }
#tab-info .guide-zorp .guide-figure figcaption { font-size: 12px !important; margin-top: 3px !important; }
#tab-info .guide-zorp .guide-figure figcaption { font-size: 12px !important; margin-top: 3px !important; }

/* === Insane Neon Guide Overrides (applies under Home as well) === */
.tab-content .guide {
  background: linear-gradient(135deg, rgba(0,198,255,0.10), rgba(0,153,255,0.10));
  border: 1px solid rgba(0,198,255,0.35);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 22px;
  box-shadow: 0 0 24px rgba(0,198,255,0.35), inset 0 0 18px rgba(0,198,255,0.18);
  backdrop-filter: blur(8px);
}
.tab-content .guide:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 28px rgba(0,198,255,0.55), inset 0 0 22px rgba(0,198,255,0.25);
  border-color: rgba(0,198,255,0.55);
}
.tab-content .guide-header {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px dashed rgba(0,198,255,0.25);
  margin-bottom: 12px;
}
.tab-content .guide-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: rgba(0,198,255,0.15);
  border-radius: 14px;
  box-shadow: inset 0 0 18px rgba(0,198,255,0.45), 0 0 18px rgba(0,198,255,0.35);
  font-size: 24px;
}
.tab-content .guide-header h3 {
  font-family: 'Orbitron', sans-serif;
  margin: 0;
  color: var(--glow);
  font-size: 22px;
  text-shadow: 0 0 12px var(--glow), 0 0 24px rgba(0,198,255,0.45);
}
.tab-content .guide-header .sub {
  color: var(--text-dim);
  font-size: 14px;
  margin-top: 4px;
  text-shadow: 0 0 6px rgba(0,198,255,0.25);
}
.tab-content .guide-body {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 16px;
}

/* Zorp compact grid under Home */
.tab-content .guide-zorp .zorp-grid { display:grid; grid-template-columns: 1.25fr 0.75fr; gap:12px; }
.tab-content .guide-zorp .zorp-left, .tab-content .guide-zorp .zorp-right { display:flex; flex-direction:column; gap:10px; }
.tab-content .guide-zorp .zorp-block { background: rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.12); border-radius:12px; padding:10px; box-shadow: 0 6px 16px rgba(0,0,0,0.25); }
.tab-content .guide-zorp .zorp-block-header { font-family:'Orbitron', sans-serif; color: var(--glow); text-shadow: 0 0 12px var(--glow); font-size:16px; margin-bottom:6px; }
.tab-content .guide-zorp .zorp-list { margin:0; padding-left:18px; }
.tab-content .guide-zorp .zorp-list li { margin:4px 0; }
.tab-content .guide-zorp .zorp-callout { background: linear-gradient(135deg, rgba(0,198,255,0.22), rgba(0,153,255,0.22)); border:1px solid rgba(0,198,255,0.55); border-radius:14px; padding:14px; box-shadow: 0 0 22px rgba(0,198,255,0.45); }
.tab-content .guide-zorp .zorp-callout.glow { box-shadow: 0 0 26px rgba(0,198,255,0.65), inset 0 0 14px rgba(0,198,255,0.28); }
.tab-content .guide-zorp .callout-title { font-weight:700; color:#b5ecff; margin-bottom:6px; text-shadow: 0 0 10px rgba(181,236,255,0.7); }
.tab-content .guide-zorp .zorp-badge-row { display:flex; flex-wrap:wrap; gap:8px; }
.tab-content .guide-zorp .zorp-badge { background: rgba(0,198,255,0.22); border:1px solid rgba(0,198,255,0.45); color:#b5ecff; padding:6px 10px; border-radius:999px; font-size:12px; box-shadow: 0 0 12px rgba(0,198,255,0.35); }

/* Removed conflicting admin reset overrides from main.css; admin styles live in assets/css/admin.css */

/* Kit cooldown clock styling (Stats list) */
.kit-clock {
  color: #00c6ff;
  font-weight: 600;
  letter-spacing: 0.2px;
  margin-left: 8px;
}
.kit-clock.ready {
  color: #2ecc71;
}

/* Lists: responsive kit rows (Profile > Lists) */
#lists-container .kit-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  row-gap: 8px;
}

/* Profile > Lists: restore a bit of neon depth (override the flatter profile row styles) */
#tab-profile #lists-container .stat-item {
  border-color: rgba(0, 198, 255, 0.22);
  box-shadow: 0 10px 22px rgba(0,0,0,0.40), inset 0 0 14px rgba(0,198,255,0.08);
}
#tab-profile #lists-container .stat-item:hover {
  box-shadow: 0 12px 26px rgba(0,0,0,0.42), 0 0 18px rgba(0,198,255,0.22), inset 0 0 16px rgba(0,198,255,0.12);
}

#lists-container .kit-media{
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0,198,255,0.22);
  background: rgba(0,0,0,0.18);
  box-shadow: 0 0 0 1px rgba(0,198,255,0.10), 0 0 14px rgba(0,198,255,0.10);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

#lists-container .kit-media:hover{
  box-shadow: 0 0 0 1px rgba(0,198,255,0.18), 0 0 18px rgba(0,198,255,0.18);
}

#lists-container .kit-media:active{ transform: scale(0.98); }

#lists-container .kit-img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

#lists-container .kit-body{
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

#lists-container .kit-title {
  color: #9fe8ff;
  text-shadow: 0 0 8px rgba(0,198,255,0.6);
  font-weight: 800;
  letter-spacing: .3px;
  font-family: Orbitron, sans-serif;
  min-width: 0;
  white-space: normal;
  overflow: visible;
}

#lists-container .kit-meta{
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: #00c6ff;
  text-shadow: 0 0 12px rgba(0,198,255,0.35);
}

#lists-container .kit-servers {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 1 auto;
  min-width: 0;
  gap: 18px;
  flex-wrap: wrap;
  min-height: 32px;
}

#lists-container .kit-row.kit-expanded{ align-items: stretch; }
#lists-container .kit-row.kit-expanded .kit-media{
  width: 132px;
  height: 132px;
  border-radius: 16px;
}
#lists-container .kit-row.kit-expanded .kit-img{
  object-fit: contain;
  background: rgba(0,0,0,0.22);
}

#lists-container .kit-server {
  display: flex;
  align-items: center;
  gap: 8px;
}

#lists-container .kit-server-label {
  color: #9fe8ff;
  text-shadow: 0 0 8px rgba(0,198,255,0.6);
  font-weight: 800;
  letter-spacing: .3px;
  font-family: Orbitron, sans-serif;
  white-space: nowrap;
}

#lists-container .kit-server .cooldown-time {
  min-width: 120px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  box-sizing: border-box;
}

@media (max-width: 820px) {
  #lists-container .kit-row { grid-template-columns: 46px minmax(0, 1fr); }
  #lists-container .kit-servers { grid-column: 1 / -1; }
  #lists-container .kit-servers {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    justify-content: stretch;
  }
  #lists-container .kit-server { justify-content: space-between; }
  #lists-container .kit-server-label { font-size: 12px; }
  #lists-container .kit-server .cooldown-time { min-width: 96px; }
  #lists-container .kit-row.kit-expanded .kit-media { width: 152px; height: 152px; }
}

@media (max-width: 420px) {
  #lists-container .kit-servers { grid-template-columns: 1fr; }
}

@media (max-width: 360px) {
  #lists-container .kit-server { flex-direction: column; align-items: center; }
}

/* Kit name typography (Profile > Lists) */
#lists-container .kit-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 850;
  font-size: 18px;
  letter-spacing: 0; /* zero tracking: border hugs exactly */
  line-height: 1.15;
  text-decoration-line: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  text-decoration-color: #00c6ff;
  text-shadow: 0 0 12px rgba(0,198,255,0.55), 0 0 22px rgba(0,198,255,0.22);
  transition: filter .15s ease, box-shadow .2s ease, transform .12s ease;
}
/* Hover underline + slight glow bump for kit name */
#lists-container .kit-title:hover {
  filter: brightness(1.08);
  text-decoration-color: #7fdcff;
}
/* Optional compact ring variant when space is tight */
@media (max-width: 600px) {
  #lists-container .kit-title {
    padding: 0; /* keep zero padding even on mobile */
    letter-spacing: 0.4px;
    box-shadow: inset 0 0 6px rgba(255,255,255,0.08), 0 0 10px rgba(0,198,255,0.25);
  }
}
/* Zorp label typography in lists */
#lists-container .zorp-row > span:first-child,
#security-zorp .zorp-row > span:first-child {
  font-family: 'Orbitron', sans-serif;
  font-weight: 850;
  letter-spacing: 0; /* zero tracking */
  color: #dff6ff;
  text-shadow: none;
  /* Non-pill accent style (match kit name) */
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0 2px !important; /* slight breathing room for glyphs */
  margin-right: 6px; /* spacing after label, not inside */
  box-shadow: none;
  display: inline; /* plain inline text */
  vertical-align: middle;
  box-sizing: border-box;
  flex: 0 0 auto; /* prevent flex growth */
  white-space: nowrap !important;
  line-height: 1.15; /* slight breathing room for tall glyphs */
  text-decoration-line: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  text-decoration-color: #00c6ff;
  overflow: visible;
  transition: filter .15s ease, box-shadow .2s ease, transform .12s ease;
}
/* Hover underline + glow bump for zorp label */
#lists-container .zorp-row > span:first-child:hover,
#security-zorp .zorp-row > span:first-child:hover {
  filter: brightness(1.08);
  text-decoration-color: #7fdcff;
}
@media (max-width: 600px) {
  #lists-container .kit-row > span:first-child { font-size: 14px; }
  #lists-container .zorp-row > span:first-child { font-size: 14px; }
}
.btn-delete {
  padding: 4px 10px;
  font-size: 12px;
  line-height: 1.2;
  border-radius: 10px;
  border: 1px solid #ff6b6b;
  background: linear-gradient(180deg, #ff6b6b 0%, #e24646 100%);
  color: #2b0b0b;
  box-shadow: 0 0 8px rgba(255, 107, 107, 0.45), inset 0 0 6px rgba(255,255,255,0.35);
  margin-left: 8px;
  cursor: pointer;
  transition: transform .08s ease, box-shadow .15s ease, filter .15s ease;
}
.btn-delete:hover { filter: brightness(1.05); box-shadow: 0 0 10px rgba(255,107,107,0.65), inset 0 0 6px rgba(255,255,255,0.45); }

.btn-delete:active { transform: translateY(1px); }

/* Home: About Us */
.about-us{ margin: 40px 8px 24px 8px; text-align:center; }
.about-title{
  margin: 0 0 14px 0;
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  letter-spacing: 0.8px;
  color: #00c6ff;
  text-shadow: 0 0 8px #00c6ff;
}
.about-title::after{
  content:"";
  display:block;
  height: 2px;
  width: min(420px, 78%);
  margin: 10px auto 0;
  background: linear-gradient(90deg, rgba(0,198,255,0), rgba(0,198,255,1), rgba(0,198,255,0));
  box-shadow: 0 0 10px rgba(0,198,255,0.30);
}
.about-text{
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: #cfe7ff;
  max-width: 900px;
  margin: 0 auto 12px auto;
}
.about-text:last-of-type{ margin-bottom: 0; }
.about-separator{
  height: 2px;
  width: min(420px, 78%);
  margin: 18px auto 14px;
  background: linear-gradient(90deg, rgba(0,198,255,0), rgba(0,198,255,1), rgba(0,198,255,0));
  box-shadow: 0 0 10px rgba(0,198,255,0.30);
}
.about-socials{
  display:flex;
  justify-content:center;
  gap: 10px;
  flex-wrap: wrap;
}
.about-social{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(0,198,255,0.18);
  background: rgba(0,0,0,0.14);
  color: #d6f4ff;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(0,0,0,0.28), 0 0 16px rgba(0,198,255,0.10);
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease, background .12s ease;
}
.about-social:hover{
  transform: translateY(-1px);
  border-color: rgba(0,198,255,0.32);
  background: rgba(0,198,255,0.06);
  box-shadow: 0 16px 34px rgba(0,0,0,0.32), 0 0 22px rgba(0,198,255,0.14);
}
.about-social svg{ width: 18px; height: 18px; fill: currentColor; opacity: .95; }
.about-social-label{
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 1px;
}

/* Rewards: Battle Pass layout */
.bp-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(0,198,255,0.18);
  background:linear-gradient(180deg,#0b1c30,#081b2b);
  box-shadow:0 10px 24px rgba(0,0,0,.35);
  margin-bottom:12px;
}
.bp-title{
  font-family:'Orbitron',sans-serif;
  font-weight:900;
  color:#bfe9ff;
  letter-spacing:.6px;
  text-transform:uppercase;
}
.bp-meta{
  display:flex;
  gap:12px;
  align-items:center;
  color:#9ec7ff;
  font-weight:700;
  font-size:12px;
}
.bp-scroll{
  position:relative;
}
.bp-track{
  display:flex;
  gap:12px;
  overflow-x:auto;
  padding:6px 8px 14px;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  border-radius:14px;
  border:1px solid rgba(0,198,255,0.16);
  background:linear-gradient(180deg,rgba(6,20,34,.9),rgba(7,18,30,.9));
}
.bp-track.bp-track-centered{
  justify-content:center;
}
.bp-track::-webkit-scrollbar{ height:8px; }
.bp-track::-webkit-scrollbar-thumb{ border-radius:999px; }
.bp-tier{
  scroll-snap-align:start;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  min-width:150px;
}
.bp-tier-label{
  font-family:'Orbitron',sans-serif;
  font-weight:900;
  font-size:12px;
  letter-spacing:.5px;
  color:#8ddcff;
  text-shadow:0 0 8px rgba(0,198,255,.35);
}
.bp-reward-card{
  width:150px;
  min-height:170px;
  padding:10px;
  border-radius:14px;
  border:1px solid rgba(0,198,255,0.18);
  background:linear-gradient(180deg,#0b1622,#0b1c30);
  box-shadow:0 12px 28px rgba(0,0,0,.35);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
}
.bp-reward-card.ted{
  border-color:rgba(255,215,0,0.35);
  box-shadow:0 10px 26px rgba(0,0,0,.35), 0 0 22px rgba(255,215,0,.12);
}
.bp-card-top{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}
.bp-badge{
  font-size:10px;
  font-weight:800;
  letter-spacing:.5px;
  color:#0b1118;
  background:linear-gradient(135deg,#00c6ff,#0078ff);
  padding:2px 6px;
  border-radius:999px;
  text-transform:uppercase;
}
.bp-reward-card.ted .bp-badge{
  background:linear-gradient(135deg,#f6c344,#ff9f1a);
  color:#2b1600;
}
.bp-status{
  font-size:10px;
  font-weight:800;
  letter-spacing:.4px;
  text-transform:uppercase;
  color:#9ec7ff;
}
.bp-status.ready{ color:#4ef0a0; }
.bp-status.claimed{ color:#9ad1ff; }
.bp-status.locked{ color:#778ca3; }
.bp-icon{
  width:74px;
  height:74px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:radial-gradient(circle at 30% 20%, rgba(0,198,255,.35), rgba(0,0,0,0));
  border:1px solid rgba(0,198,255,0.2);
}
.bp-icon img{
  width:64px;
  height:64px;
  object-fit:contain;
  filter:drop-shadow(0 8px 18px rgba(0,0,0,.45));
}
.bp-name{
  font-weight:800;
  font-size:12px;
  color:#d6efff;
  text-align:center;
}
.bp-claim{
  margin-top:auto;
  appearance:none;
  border:1px solid rgba(0,198,255,0.6);
  background:linear-gradient(135deg,#00c6ff,#0078ff);
  color:#061019;
  font-weight:900;
  font-size:12px;
  padding:6px 10px;
  border-radius:10px;
  cursor:pointer;
  box-shadow:0 8px 20px rgba(0,0,0,.35);
}
.bp-tier.is-locked .bp-reward-card{ opacity:.55; }
.bp-tier.is-claimed .bp-reward-card{ box-shadow:0 0 0 2px rgba(0,198,255,0.4), 0 10px 22px rgba(0,0,0,.35); }

.bp-nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:34px;
  height:34px;
  border-radius:10px;
  border:1px solid rgba(0,198,255,0.3);
  background:rgba(8,22,34,.85);
  color:#bfe9ff;
  font-size:20px;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 8px 18px rgba(0,0,0,.4);
  z-index:2;
}
.bp-nav-left{ left:6px; }
.bp-nav-right{ right:6px; }
.bp-scroll.bp-compact .bp-nav{ display:none; }

.bp-empty{
  padding:18px;
  border-radius:14px;
  border:1px dashed rgba(0,198,255,0.28);
  background:rgba(8,22,34,.65);
  text-align:center;
}
.bp-empty-title{
  font-weight:900;
  color:#bfe9ff;
  letter-spacing:.6px;
  margin-bottom:6px;
}
.bp-empty-desc{ color:#9ec7ff; font-size:13px; }

/* Reward image zoom modal */
.bp-image-modal{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,.7);
  z-index:10050;
  backdrop-filter: blur(4px);
}
.bp-image-modal-inner{
  position:relative;
  max-width:min(92vw, 820px);
  max-height:90vh;
  border-radius:16px;
  border:1px solid rgba(0,198,255,0.25);
  background:linear-gradient(180deg,#0b1c30,#081b2b);
  box-shadow:0 24px 60px rgba(0,0,0,.45);
  padding:14px;
}

/* Login announcement (one-time dismiss per user) */
.login-announce-modal{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
  background:rgba(0,0,0,0.78);
  backdrop-filter:blur(6px);
  z-index:10060;
}
.login-announce-panel{
  position:relative;
  width:min(720px, 96vw);
  max-height:88vh;
  overflow:auto;
  border-radius:18px;
  border:1px solid rgba(0,198,255,0.40);
  background:linear-gradient(180deg,#0b1c30,#081b2b);
  box-shadow:0 28px 70px rgba(0,0,0,0.62), 0 0 0 1px rgba(0,198,255,0.12), inset 0 0 40px rgba(0,198,255,0.14);
  padding:18px 18px 16px;
}
.login-announce-close{
  position:absolute;
  top:10px;
  right:10px;
  width:44px;
  height:44px;
  border-radius:14px;
  border:1px solid rgba(0,198,255,0.45);
  background:rgba(0,198,255,0.14);
  color:#cfe7ff;
  font-size:26px;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 10px 22px rgba(0,0,0,0.35), 0 0 26px rgba(0,198,255,0.12);
}
.login-announce-title{
  font-family:Orbitron, sans-serif;
  font-weight:900;
  letter-spacing:0.6px;
  color:#bfe9ff;
  text-shadow:0 0 22px rgba(0,198,255,0.35);
  font-size:21px;
  margin:4px 52px 10px 4px;
}
.login-announce-body{
  color:#cfe7ff;
  opacity:0.95;
  line-height:1.55;
  font-size:15px;
  margin:0 0 12px;
}
.login-announce-code{
  margin-top:12px;
  padding:10px 12px;
  border-radius:14px;
  border:1px dashed rgba(0,198,255,0.22);
  background:rgba(8,27,43,0.55);
  font-weight:800;
  letter-spacing:0.3px;
}
.login-announce-code .code{
  font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  color:#9fe8ff;
}
.login-announce-actions{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  margin-top:14px;
}
.login-announce-btn{
  appearance:none;
  border-radius:14px;
  border:1px solid rgba(0,198,255,0.45);
  background:rgba(0,198,255,0.14);
  color:#bfe9ff;
  font-weight:900;
  letter-spacing:0.4px;
  padding:12px 14px;
  cursor:pointer;
  min-width:120px;
}
.login-announce-btn:active{ transform:translateY(1px); }

@media (hover:none), (pointer:coarse){
  .login-announce-modal{ padding:14px; }
  .login-announce-panel{ width:calc(100vw - 28px); max-height:calc(100vh - 28px); border-radius:16px; }
  .login-announce-title{ font-size:19px; }
  .login-announce-body{ font-size:15px; }
  .login-announce-btn{ width:100%; min-width:0; padding:14px 14px; }
  .login-announce-actions{ justify-content:stretch; }
}
.bp-image-full{
  display:block;
  max-width:calc(92vw - 28px);
  max-height:calc(90vh - 28px);
  width:auto;
  height:auto;
  border-radius:12px;
  object-fit:contain;
}
.bp-image-close{
  position:absolute;
  top:8px;
  right:8px;
  width:36px;
  height:36px;
  border-radius:10px;
  border:1px solid rgba(0,198,255,0.35);
  background:rgba(8,22,34,.9);
  color:#bfe9ff;
  font-size:22px;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 10px 22px rgba(0,0,0,.4);
}

/* Rewards tabs (mobile-friendly) */
.chlg-panel{
  width:min(96vw, 980px);
  max-height:90vh;
  overflow:auto;
  border:1px solid rgba(0,198,255,0.18);
  border-radius:16px;
  background:linear-gradient(180deg,#0b1c30,#081b2b);
  box-shadow:0 22px 55px rgba(0,0,0,.45);
}
.chlg-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  border-bottom:1px solid rgba(0,198,255,0.1);
}
.chlg-title{
  font-family:'Orbitron',sans-serif;
  font-weight:900;
  letter-spacing:.6px;
  color:#bfe9ff;
}
.chlg-tabs{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  padding:12px 14px 0;
}
.chlg-tab{
  appearance:none;
  border:1px solid rgba(0,198,255,0.25);
  color:#bfe9ff;
  background:linear-gradient(180deg,#0b1c30,#081b2b);
  padding:10px 14px;
  border-radius:12px;
  font-weight:800;
  letter-spacing:.3px;
  cursor:pointer;
  box-shadow:0 8px 20px rgba(0,0,0,.35);
  transition:transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.chlg-tab:hover{ transform:translateY(-1px); border-color:#1e4563; }
.chlg-tab.active{
  border-color:#00c6ff;
  box-shadow:0 0 0 2px rgba(0,198,255,.25) inset, 0 10px 24px rgba(0,0,0,.4);
}

@media (max-width: 768px){
  .chlg-tabs{ display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:8px; }
  .chlg-tab{ width:100%; font-size:12px; padding:10px 8px; border-radius:10px; }
}

/* Battle pass card polish + tap cues */
.bp-reward-card.bp-claimable{ cursor:pointer; }
.bp-reward-card.bp-claimable:hover{ transform:translateY(-1px); box-shadow:0 16px 32px rgba(0,0,0,.4); }
.bp-claim{
  width:100%;
  text-align:center;
  font-weight:900;
  text-transform:uppercase;
  font-size:12px;
  padding:6px 8px;
  border-radius:10px;
  border:1px solid rgba(0,198,255,0.55);
  background:linear-gradient(135deg,#00c6ff,#0078ff);
  color:#061019;
  box-shadow:0 8px 18px rgba(0,0,0,.35);
  cursor:pointer;
}

@media (max-width: 768px){
  .bp-tier{ min-width:128px; }
  .bp-reward-card{ width:128px; min-height:156px; }
  .bp-icon{ width:64px; height:64px; }
  .bp-icon img{ width:56px; height:56px; }
  .bp-nav{ display:none; }
  .bp-meta{ flex-direction:column; align-items:flex-end; gap:4px; }
}

/* Rewards modal: vertical list + sticky back button */
#rewards-modal .chlg-grid{
  padding: 12px 14px;
  max-height: calc(90vh - 120px);
  overflow: auto;
}

#rewards-modal .rw-topbar{
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  justify-content: flex-end;
  padding: 10px 0;
  background: linear-gradient(180deg,#0b1c30,#081b2b);
  border-bottom: 1px solid rgba(0,198,255,0.10);
}

#rewards-modal .rw-back-btn{
  appearance: none;
  border: 1px solid rgba(0,198,255,0.25);
  color: #bfe9ff;
  background: linear-gradient(180deg,#0b1c30,#081b2b);
  padding: 8px 12px;
  border-radius: 12px;
  font-weight: 900;
  letter-spacing: .3px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,.35);
}

#rewards-modal .rw-back-btn:hover{ transform: translateY(-1px); border-color: #1e4563; }

#rewards-modal .bp-vlist{
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 0 18px;
}

#rewards-modal .bp-vrow{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(0,198,255,0.18);
  background: rgba(0,0,0,0.16);
  box-shadow: 0 10px 22px rgba(0,0,0,.35);
}

#rewards-modal .bp-vlevel{
  min-width: 86px;
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  letter-spacing: .4px;
  color: #9fe8ff;
}

#rewards-modal .bp-vmain{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

#rewards-modal .bp-vtext{ min-width: 0; }

#rewards-modal .bp-vname{
  font-weight: 900;
  color: #d6efff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#rewards-modal .bp-vright{
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 520px){
  #rewards-modal .bp-vrow{ align-items: flex-start; }
  #rewards-modal .bp-vlevel{ min-width: 72px; }
  #rewards-modal .bp-vright{ flex-direction: column; align-items: flex-end; }
}

/* Unified site edge treatment */
:root {
  --site-edge-blue: rgba(0, 198, 255, 0.32);
  --site-edge-blue-soft: rgba(0, 198, 255, 0.24);
}

.card,
.tabs-shell,
#tab-profile .card,
#tab-profile .wallet-item,
#tab-profile .stat-item,
#profile-stats #stats-container .profile-stat-item,
.wallet-item,
.stat-item,
.tab-bar .tab-btn,
.storage-tabs .storage-btn,
.kit-tab,
.server-tab,
.si-count,
.si-side,
.si-tile,
#server-info-card,
#tools-card {
  border-color: var(--site-edge-blue-soft);
}

.tab-bar .tab-btn.active,
.storage-tabs .storage-btn.active,
.kit-tab.active,
.server-tab.active,
.card h3 {
  border-color: var(--site-edge-blue);
}

.mobile-menu-trigger,
.mobile-app-menu,
.mobile-bottom-nav,
.mobile-primary-rail {
  display: none;
}

.mobile-home-hero,
.mobile-dashboard-rail,
.mobile-profile-overview,
.mobile-shop-hero {
  display: none;
}

@media (max-width: 820px) {
  body.theme-xp {
    padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px));
    background:
      radial-gradient(circle at top, rgba(0, 198, 255, 0.14), rgba(0, 198, 255, 0) 26%),
      linear-gradient(180deg, #04101d 0%, #061725 44%, #05101a 100%);
  }

  body.mobile-menu-open {
    overflow: hidden;
  }

  .header-grid {
    position: sticky;
    top: 0;
    z-index: 1200;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    padding: 10px 12px;
    margin: 0;
    border-bottom: 1px solid rgba(0, 198, 255, 0.16);
    background: linear-gradient(180deg, rgba(2, 11, 22, 0.96), rgba(4, 16, 30, 0.92));
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.36);
  }

  .header-left,
  .header-center,
  .header-grid nav {
    min-width: 0;
  }

  .header-profile.user-info {
    gap: 8px;
  }

  .header-profile .user-name {
    max-width: 92px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    color: #dff5ff;
  }

  .brand-center-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
  }

  .brand-hero {
    font-size: 22px;
    letter-spacing: 0.06em;
  }

  .header-actions {
    display: none !important;
  }

  .mobile-menu-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    height: 42px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid rgba(0, 198, 255, 0.28);
    background: linear-gradient(180deg, rgba(9, 33, 58, 0.94), rgba(4, 16, 30, 0.92));
    color: #dff6ff;
    font-weight: 800;
    letter-spacing: 0.04em;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.32), inset 0 0 0 1px rgba(156, 239, 255, 0.06);
  }

  .slot-banner-wrap {
    position: sticky;
    top: 63px;
    z-index: 1150;
    padding: 10px 12px 0;
    background: linear-gradient(180deg, rgba(3, 13, 24, 0.94), rgba(3, 13, 24, 0));
  }

  .slot-banner {
    border-radius: 999px;
    min-height: 38px;
    padding: 0 14px;
    justify-content: center;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.34);
  }

  .slot-copy strong {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
  }

  .sections {
    padding: 12px;
    max-width: none;
  }

  .mobile-primary-rail {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding: 0 12px 12px;
  }

  .mobile-primary-rail [data-tab].active .mobile-primary-icon {
    color: #effcff;
    border-color: rgba(124, 243, 255, 0.28);
    background: linear-gradient(180deg, rgba(0, 198, 255, 0.2), rgba(4, 18, 34, 0.7));
  }

  .mobile-primary-card {
    min-width: 0;
    min-height: 88px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 14px 12px;
    border-radius: 22px;
    border: 1px solid rgba(0, 198, 255, 0.18);
    background:
      radial-gradient(circle at top right, rgba(124, 243, 255, 0.12), rgba(124, 243, 255, 0) 36%),
      linear-gradient(180deg, rgba(7, 26, 45, 0.96), rgba(4, 15, 28, 0.98));
    color: #dff6ff;
    text-align: left;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
  }

  .mobile-primary-card.active {
    border-color: rgba(124, 243, 255, 0.34);
    background:
      radial-gradient(circle at top right, rgba(124, 243, 255, 0.18), rgba(124, 243, 255, 0) 42%),
      linear-gradient(180deg, rgba(10, 43, 72, 0.96), rgba(4, 18, 34, 0.98));
    box-shadow: 0 16px 30px rgba(0, 198, 255, 0.12);
  }

  .mobile-primary-card.active .mobile-primary-copy strong,
  .mobile-primary-card.active .mobile-primary-copy small {
    color: #f4fdff;
  }

  .mobile-primary-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    border: 1px solid rgba(0, 198, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
    color: #a8ecff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  }

  .mobile-primary-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    display: block;
  }

  .mobile-primary-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
  }

  .mobile-primary-copy strong {
    font-size: 15px;
    line-height: 1.1;
    font-weight: 800;
    color: #f1fbff;
  }

  .mobile-primary-copy small {
    display: block;
    font-size: 11px;
    line-height: 1.3;
    color: #99cfe4;
  }

  .tabs-shell {
    display: none;
  }

  .tab-content {
    max-width: none;
    padding: 12px 12px 28px;
  }

  .mobile-home-hero,
  .mobile-dashboard-rail,
  .mobile-profile-overview,
  .mobile-shop-hero {
    display: grid;
  }

  .mobile-home-hero,
  .mobile-profile-overview,
  .mobile-shop-hero {
    gap: 14px;
    margin-bottom: 14px;
    padding: 18px;
    border-radius: 24px;
    border: 1px solid rgba(0, 198, 255, 0.18);
    background:
      radial-gradient(circle at top right, rgba(124, 243, 255, 0.18), rgba(124, 243, 255, 0) 36%),
      linear-gradient(160deg, rgba(8, 30, 49, 0.98), rgba(4, 15, 28, 0.98));
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.34), inset 0 0 0 1px rgba(156, 239, 255, 0.04);
  }

  .mobile-home-kicker,
  .mobile-profile-kicker,
  .mobile-shop-kicker,
  .mobile-rail-label,
  .mobile-hero-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #8fdefe;
  }

  .mobile-home-hero h2,
  .mobile-profile-name {
    margin: 4px 0 0;
    font-family: 'Orbitron', sans-serif;
    font-size: 26px;
    line-height: 1.05;
    color: #f1fbff;
  }

  .mobile-home-hero p,
  .mobile-profile-sub,
  .mobile-shop-copy p {
    margin: 0;
    color: #c7e7f5;
    line-height: 1.5;
    font-size: 14px;
  }

  .mobile-home-hero-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .mobile-hero-pill {
    display: grid;
    gap: 6px;
    padding: 12px 14px;
    border-radius: 18px;
    border: 1px solid rgba(0, 198, 255, 0.16);
    background: rgba(6, 21, 36, 0.74);
  }

  .mobile-hero-pill strong {
    font-size: 14px;
    color: #effbff;
  }

  .mobile-home-actions,
  .mobile-profile-shortcuts,
  .mobile-shop-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .mobile-home-action,
  .mobile-profile-shortcut,
  .mobile-shop-link,
  .mobile-rail-card {
    min-width: 0;
    border-radius: 18px;
    border: 1px solid rgba(0, 198, 255, 0.18);
    color: #e9faff;
    background: linear-gradient(180deg, rgba(10, 35, 57, 0.94), rgba(4, 16, 28, 0.96));
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
  }

  .mobile-home-action,
  .mobile-profile-shortcut,
  .mobile-shop-link {
    min-height: 52px;
    padding: 12px 14px;
    font-weight: 800;
    letter-spacing: 0.03em;
  }

  .mobile-home-action.is-primary {
    background: linear-gradient(180deg, rgba(0, 198, 255, 0.28), rgba(10, 55, 78, 0.96));
    border-color: rgba(124, 243, 255, 0.3);
    color: #ffffff;
  }

  .mobile-dashboard-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
  }

  .mobile-rail-card {
    display: grid;
    gap: 8px;
    padding: 14px;
    text-align: left;
    min-height: 118px;
  }

  .mobile-rail-card strong {
    font-size: 16px;
    line-height: 1.25;
    font-weight: 800;
    color: #effcff;
  }

  .mobile-profile-overview {
    margin-bottom: 16px;
  }

  .mobile-profile-identity {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
  }

  .mobile-profile-avatar {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    object-fit: cover;
    border: 1px solid rgba(0, 198, 255, 0.28);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.24);
  }

  .mobile-shop-hero {
    margin-bottom: 16px;
  }

  #tab-home #tools-card {
    border-radius: 24px;
    gap: 12px;
    align-items: flex-start;
    background:
      radial-gradient(circle at top left, rgba(0, 198, 255, 0.12), rgba(0, 198, 255, 0) 34%),
      linear-gradient(180deg, rgba(6, 24, 42, 0.98), rgba(4, 15, 28, 0.98));
  }

  .card {
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 14px;
  }

  #tab-home #tools-card {
    gap: 12px;
    align-items: flex-start;
  }

  #tab-home #tools-card img {
    width: 82px !important;
    height: 82px !important;
  }

  .profile-tabs {
    position: sticky;
    top: 110px;
    z-index: 1000;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 0 -2px 14px;
    padding: 6px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(5, 18, 34, 0.96), rgba(3, 13, 24, 0.94));
    border: 1px solid rgba(0, 198, 255, 0.16);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.26);
    backdrop-filter: blur(14px);
  }

  .profile-btn {
    min-height: 46px;
    padding: 10px 8px;
    border-radius: 14px;
    border: 1px solid rgba(0, 198, 255, 0.22);
    background: linear-gradient(180deg, rgba(9, 31, 52, 0.84), rgba(4, 17, 30, 0.92));
    color: #bfeeff;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .profile-btn.active {
    border-color: rgba(0, 198, 255, 0.56);
    color: #eefaff;
    box-shadow: 0 0 0 1px rgba(0, 198, 255, 0.18) inset, 0 10px 20px rgba(0, 198, 255, 0.12);
  }

  #tab-profile .card h3,
  #tab-home .card h3,
  #tab-shop .card h3,
  #tab-casino .card h3 {
    font-size: 20px;
  }

  #tab-shop .shop-category-filters {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 12px;
  }

  #tab-shop .shop-filter-field {
    min-width: 0;
  }

  #tab-shop #shop-items .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  #tab-shop .card {
    border-radius: 24px;
    background:
      radial-gradient(circle at top right, rgba(0, 198, 255, 0.14), rgba(0, 198, 255, 0) 34%),
      linear-gradient(180deg, rgba(6, 24, 42, 0.98), rgba(4, 15, 28, 0.98));
  }

  #tab-shop #shop-items {
    margin-top: 8px;
  }

  #tab-shop .shop-item {
    padding: 10px !important;
    border-radius: 16px !important;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.34) !important;
    background: linear-gradient(180deg, rgba(7, 27, 45, 0.98), rgba(4, 17, 31, 0.98)) !important;
    border: 1px solid rgba(0, 198, 255, 0.16) !important;
  }

  #tab-shop .shop-item-header {
    gap: 6px !important;
    margin-bottom: 8px !important;
  }

  #tab-shop .admin-controls {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
  }

  #tab-shop .admin-controls button {
    min-height: 30px !important;
    padding: 6px 8px !important;
    font-size: 11px !important;
  }

  #tab-shop .shop-image-wrap {
    height: 132px !important;
    margin-bottom: 8px !important;
  }

  #tab-shop .shop-image-wrap > img,
  #tab-shop .shop-image-wrap > img.shop-item-img,
  #tab-shop .shop-image-wrap > img.shop-image {
    max-height: 112px !important;
  }

  #tab-shop .shop-item h4,
  #tab-shop .shop-item .shop-item-name {
    font-size: 14px !important;
    line-height: 1.2 !important;
    min-height: 34px;
  }

  #tab-shop .shop-item .qty,
  #tab-shop .shop-item .price {
    font-size: 12px !important;
  }

  #tab-shop .shop-item button {
    min-height: 38px !important;
    padding: 9px 10px !important;
    font-size: 13px !important;
  }

  .mobile-app-menu {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1400;
    background: rgba(1, 8, 16, 0.58);
    backdrop-filter: blur(10px);
  }

  .mobile-app-menu-panel {
    width: min(360px, calc(100vw - 24px));
    margin: 12px 12px 0 auto;
    border-radius: 24px;
    border: 1px solid rgba(0, 198, 255, 0.24);
    background: linear-gradient(180deg, rgba(5, 20, 38, 0.98), rgba(3, 12, 24, 0.98));
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.42), inset 0 0 0 1px rgba(156, 239, 255, 0.06);
    padding: 16px;
  }

  .mobile-app-menu-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
  }

  .mobile-app-menu-kicker {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #8edcff;
    font-weight: 800;
  }

  .mobile-app-menu-title {
    margin-top: 4px;
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    color: #ecfbff;
  }

  .mobile-app-menu-close {
    min-width: 68px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(0, 198, 255, 0.24);
    background: rgba(0, 198, 255, 0.08);
    color: #d8f6ff;
    font-weight: 800;
  }

  .mobile-app-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .mobile-app-menu-link,
  .mobile-app-action {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 12px;
    border-radius: 16px;
    border: 1px solid rgba(0, 198, 255, 0.18);
    background: linear-gradient(180deg, rgba(10, 33, 55, 0.9), rgba(4, 17, 30, 0.96));
    color: #e4f8ff;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 0.03em;
  }

  .mobile-app-menu-actions {
    display: grid;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 198, 255, 0.12);
  }

  .mobile-app-action-muted {
    color: #b8d6e7;
  }

  .mobile-bottom-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 1250;
    padding: 8px;
    border-radius: 22px;
    border: 1px solid rgba(0, 198, 255, 0.18);
    background: linear-gradient(180deg, rgba(4, 15, 29, 0.94), rgba(3, 12, 24, 0.98));
    box-shadow: 0 20px 36px rgba(0, 0, 0, 0.44), inset 0 0 0 1px rgba(156, 239, 255, 0.06);
    backdrop-filter: blur(18px);
  }

  .mobile-bottom-btn {
    min-width: 0;
    min-height: 60px;
    padding: 10px 6px;
    border-radius: 16px;
    border: 1px solid transparent;
    background: transparent;
    color: #93cbe1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    text-align: center;
  }

  .mobile-bottom-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: currentColor;
  }

  .mobile-bottom-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    display: block;
  }

  .mobile-bottom-btn.active {
    background: linear-gradient(180deg, rgba(14, 47, 78, 0.94), rgba(5, 20, 38, 0.96));
    border-color: rgba(0, 198, 255, 0.36);
    color: #effcff;
    box-shadow: 0 10px 18px rgba(0, 198, 255, 0.12);
  }

  .mobile-bottom-btn.active .mobile-bottom-icon {
    color: #effcff;
    transform: translateY(-1px);
  }

  .mobile-bottom-title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
}

@media (max-width: 520px) {
  .brand-hero {
    font-size: 18px;
  }

  .header-profile .user-name {
    max-width: 72px;
  }

  .mobile-home-hero h2,
  .mobile-profile-name {
    font-size: 22px;
  }

  .mobile-home-hero-meta,
  .mobile-home-actions,
  .mobile-profile-shortcuts,
  .mobile-shop-links,
  .mobile-dashboard-rail,
  .mobile-primary-rail {
    grid-template-columns: 1fr;
  }

  .mobile-primary-card {
    min-height: 76px;
  }

  .mobile-rail-card {
    min-height: 92px;
  }

  #tab-shop #shop-items .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  #tab-shop .shop-image-wrap {
    height: 116px !important;
  }

  #tab-shop .shop-item h4,
  #tab-shop .shop-item .shop-item-name {
    font-size: 13px !important;
  }

  .mobile-bottom-nav {
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }
}