@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Rajdhani:wght@400;600;700&display=swap');

:root {
  --bg:        #080810;
  --bg2:       #0e0e1a;
  --bg3:       #13131f;
  --bg4:       #1a1a2a;
  --red:       #ff0033;
  --red-dim:   #cc0029;
  --red-glow:  rgba(255,0,51,.35);
  --text:      #e8e8f0;
  --text-dim:  #888899;
  --border:    rgba(255,0,51,.25);
  --radius:    6px;
  --nav-h:     54px;
  --chat-w:    300px;
  --font-mono: 'Share Tech Mono', monospace;
  --font-main: 'Rajdhani', sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  font-size: 16px;
  min-height: 100vh;
}

/* ── Auth pages (centered card) ── */
body:not(.app) {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
body:not(.app)::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(255,0,51,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,0,51,.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none; z-index: 0;
}
body:not(.app)::after {
  content: '';
  position: fixed; inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,.08) 2px, rgba(0,0,0,.08) 4px);
  pointer-events: none; z-index: 999;
}

/* ── App layout ── */
body.app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* ══════════════════════════════════════
   NAVBAR
══════════════════════════════════════ */
.navbar {
  height: var(--nav-h);
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 24px;
  flex-shrink: 0;
  z-index: 100;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: .12em;
  white-space: nowrap;
}
.nav-logo span { color: var(--red); text-shadow: 0 0 10px var(--red-glow); }

.nav-games {
  display: flex;
  gap: 6px;
  flex: 1;
  justify-content: center;
}

.game-tab {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  padding: 6px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: all .2s;
}
.game-tab:hover { color: var(--text); border-color: var(--border); }
.game-tab.active {
  color: var(--red);
  border-color: var(--red);
  background: rgba(255,0,51,.08);
  box-shadow: 0 0 10px var(--red-glow);
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: all .2s;
  white-space: nowrap;
}
.nav-user:hover { border-color: var(--border); background: var(--bg3); }
.nav-user svg { color: var(--text-dim); }

.nav-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}
.nav-username {
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--text);
}

/* ══════════════════════════════════════
   MAIN AREA
══════════════════════════════════════ */
.main {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* ── Game area ── */
.game-area {
  flex: 1;
  overflow: hidden;
  position: relative;
  background: var(--bg);
}

#side-video-wrap {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%) translateX(-120%);
  height: calc(100% - 40px);
  aspect-ratio: 380 / 620;
  max-width: 45%;
  background: #07071a;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  z-index: 10;
  transition: transform .35s ease;
  box-shadow: 0 0 30px rgba(0,0,0,.6);
}
#side-video-wrap.active {
  transform: translateY(-50%) translateX(0%);
}
#side-video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.game-frame {
  width: 100%; height: 100%;
}
.game-frame iframe {
  width: 100%; height: 100%;
  border: none;
  display: block;
}
.game-frame.hidden { display: none; }

.coming-soon {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--text-dim);
  letter-spacing: .2em;
}

/* ══════════════════════════════════════
   CHAT SIDEBAR
══════════════════════════════════════ */
.chat-sidebar {
  width: var(--chat-w);
  flex-shrink: 0;
  background: var(--bg2);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-header {
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .18em;
  color: var(--red);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.chat-msg {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.msg-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.msg-body { flex: 1; min-width: 0; }
.msg-meta {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 2px;
}
.msg-name {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--red);
}
.msg-time {
  font-size: .65rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}
.msg-text {
  font-size: .88rem;
  color: var(--text);
  line-height: 1.4;
  word-break: break-word;
}
.chat-msg.mine .msg-name { color: #ff6680; }

.chat-input-area {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.chat-input-area input {
  flex: 1;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: .82rem;
  padding: 8px 12px;
  outline: none;
  transition: border-color .2s;
}
.chat-input-area input:focus { border-color: var(--red); }
.chat-send {
  background: var(--red);
  border: none;
  border-radius: var(--radius);
  color: #fff;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all .2s;
}
.chat-send:hover { background: #ff1a47; box-shadow: 0 0 12px var(--red-glow); }

/* ══════════════════════════════════════
   PROFILE PAGE
══════════════════════════════════════ */
.profile-scroll {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.profile-scroll::-webkit-scrollbar { width: 4px; }
.profile-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.profile-wrap {
  display: flex;
  gap: 28px;
  max-width: 860px;
  margin: 40px auto;
  padding: 0 24px;
  align-items: flex-start;
}

.profile-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  width: 220px;
  flex-shrink: 0;
}
.profile-avatar-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 14px;
}
.profile-avatar {
  width: 90px; height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--red);
  box-shadow: 0 0 16px var(--red-glow);
  display: block;
}
.avatar-edit-btn {
  position: absolute;
  bottom: 2px; right: 2px;
  width: 26px; height: 26px;
  background: var(--red);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: all .2s;
}
.avatar-edit-btn:hover { background: #ff1a47; box-shadow: 0 0 8px var(--red-glow); }
.profile-name {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 4px;
}
.profile-status {
  font-size: .72rem;
  font-family: var(--font-mono);
  letter-spacing: .12em;
  color: #00ff8c;
  text-transform: uppercase;
}

.color-label {
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .18em;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.color-trigger-row {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}
.color-trigger {
  width: 28px; height: 28px;
  border-radius: 6px;
  border: 2px solid rgba(255,255,255,.15);
  cursor: pointer;
  flex-shrink: 0;
  transition: transform .15s, box-shadow .15s;
}
.color-trigger:hover {
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(255,255,255,.2);
}
.color-trigger-hint {
  font-family: var(--font-mono);
  font-size: .6rem;
  color: var(--text-dim);
  letter-spacing: .1em;
}

/* ── Color Picker Popup ── */
.cpicker-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cpicker-inner {
  background: #12121e;
  border: 1px solid rgba(255,0,51,.35);
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 12px 50px rgba(0,0,0,.8), 0 0 24px rgba(255,0,51,.12);
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 248px;
}
.cpicker-sv-wrap {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  cursor: crosshair;
}
.cpicker-sv-wrap canvas { display: block; width: 100%; height: 150px; }
.cp-sv-cursor {
  position: absolute;
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 4px rgba(0,0,0,.6);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.cpicker-hue-wrap {
  position: relative;
  border-radius: 4px;
  overflow: visible;
  cursor: pointer;
}
.cpicker-hue-wrap canvas { display: block; width: 100%; height: 14px; border-radius: 4px; }
.cp-hue-cursor {
  position: absolute;
  top: 50%;
  width: 6px; height: 20px;
  background: #fff;
  border-radius: 3px;
  box-shadow: 0 0 4px rgba(0,0,0,.5);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.cpicker-footer {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cp-color-box {
  width: 32px; height: 32px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.15);
  flex-shrink: 0;
}
.cp-hex {
  flex: 1;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: .85rem;
  padding: 7px 10px;
  outline: none;
  letter-spacing: .08em;
}
.cp-hex:focus { border-color: var(--red); }
.cp-close {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-dim);
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: .9rem;
  flex-shrink: 0;
  transition: all .15s;
}
.cp-close:hover { border-color: var(--red); color: var(--red); }

.profile-stats {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  justify-content: center;
}
.stat-item {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  text-align: center;
  flex: 1;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .18em;
  color: var(--text-dim);
  margin-bottom: 5px;
}
.stat-value {
  font-family: var(--font-mono);
  font-size: .85rem;
  color: var(--red);
  text-shadow: 0 0 8px var(--red-glow);
  letter-spacing: .1em;
}

.item-stats {
  width: 100%;
  margin-top: 16px;
}
.item-stats-title {
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .18em;
  color: var(--text-dim);
  text-align: center;
  margin-bottom: 10px;
}
.item-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.item-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 7px 10px;
}
.item-icon { font-size: 1rem; line-height: 1; }
.item-name {
  font-family: var(--font-mono);
  font-size: .65rem;
  color: var(--text-dim);
  flex: 1;
}
.item-count {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--red);
  letter-spacing: .05em;
}

.profile-settings {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.settings-section {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 16px;
}
.settings-title {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .2em;
  color: var(--red);
  margin-bottom: 16px;
}
.settings-hint {
  font-size: .78rem;
  color: var(--text-dim);
  margin-top: 8px;
}
.form-row {
  display: flex;
  gap: 10px;
}
.form-row input { flex: 1; }
.btn-sm { padding: 10px 18px; width: auto; }

/* ══════════════════════════════════════
   SHARED CARD / FORM STYLES
══════════════════════════════════════ */
.card {
  position: relative; z-index: 1;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px 40px 36px;
  width: 100%; max-width: 420px;
  box-shadow: 0 0 40px var(--red-glow), 0 0 80px rgba(255,0,51,.08);
}
.logo { text-align: center; margin-bottom: 32px; }
.logo h1 {
  font-family: var(--font-mono);
  font-size: 2rem; letter-spacing: .15em;
  color: var(--red);
  text-shadow: 0 0 18px var(--red), 0 0 40px rgba(255,0,51,.4);
}
.logo span {
  display: block; font-size: .75rem;
  letter-spacing: .3em; color: var(--text-dim);
  margin-top: 4px; text-transform: uppercase;
}

.form-group { margin-bottom: 18px; }
label {
  display: block; font-size: .75rem;
  letter-spacing: .2em; color: var(--text-dim);
  text-transform: uppercase; margin-bottom: 7px;
}
input[type=text], input[type=password] {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: .95rem;
  padding: 11px 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
input[type=text]:focus, input[type=password]:focus {
  border-color: var(--red);
  box-shadow: 0 0 12px var(--red-glow);
}

.btn {
  width: 100%; padding: 13px;
  border: none; border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: .95rem; letter-spacing: .12em;
  cursor: pointer; transition: all .2s; margin-top: 6px;
}
.btn-primary {
  background: var(--red); color: #fff;
  box-shadow: 0 0 18px var(--red-glow);
}
.btn-primary:hover {
  background: #ff1a47;
  box-shadow: 0 0 28px rgba(255,0,51,.6);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent; color: var(--text-dim);
  border: 1px solid var(--border); margin-top: 12px;
}
.btn-ghost:hover { color: var(--text); border-color: var(--red); }

.alert {
  padding: 10px 14px; border-radius: var(--radius);
  font-size: .85rem; margin-bottom: 18px; letter-spacing: .05em;
}
.alert-error  { background: rgba(255,0,51,.1);   border: 1px solid rgba(255,0,51,.4); color: #ff6680; }
.alert-success{ background: rgba(0,255,140,.07); border: 1px solid rgba(0,255,140,.3); color: #00ff8c; }

.link-row {
  text-align: center; margin-top: 20px;
  font-size: .85rem; color: var(--text-dim);
}
.link-row a { color: var(--red); text-decoration: none; letter-spacing: .05em; }
.link-row a:hover { text-shadow: 0 0 8px var(--red); }

/* ══════════════════════════════════════
   ADMIN PANEL
══════════════════════════════════════ */
.panel { position: relative; z-index: 1; width: 95%; max-width: 900px; }
.panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.panel-header h2 { font-family: var(--font-mono); color: var(--red); text-shadow: 0 0 12px var(--red-glow); letter-spacing: .1em; }
table { width: 100%; border-collapse: collapse; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
thead { background: var(--bg3); }
th { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .2em; color: var(--text-dim); text-transform: uppercase; padding: 12px 16px; text-align: left; }
td { padding: 12px 16px; font-size: .9rem; border-top: 1px solid rgba(255,0,51,.1); color: var(--text); }
tr:hover td { background: rgba(255,0,51,.04); }

.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: .75rem; font-family: var(--font-mono); letter-spacing: .08em; }
.badge-pending  { background: rgba(255,180,0,.12); color: #ffb400; border: 1px solid rgba(255,180,0,.3); }
.badge-approved { background: rgba(0,255,140,.08); color: #00ff8c; border: 1px solid rgba(0,255,140,.3); }
.badge-rejected { background: rgba(255,0,51,.1);   color: #ff4466; border: 1px solid rgba(255,0,51,.3); }

.action-btn { padding: 4px 12px; border-radius: 4px; font-size: .75rem; font-family: var(--font-mono); cursor: pointer; text-decoration: none; display: inline-block; margin-right: 4px; transition: all .15s; border: 1px solid transparent; }
.action-approve { background: rgba(0,255,140,.1); color: #00ff8c; border-color: rgba(0,255,140,.3); }
.action-approve:hover { background: rgba(0,255,140,.25); }
.action-reject  { background: rgba(255,180,0,.1); color: #ffb400; border-color: rgba(255,180,0,.3); }
.action-reject:hover  { background: rgba(255,180,0,.25); }
.action-delete  { background: rgba(255,0,51,.1);  color: #ff4466; border-color: rgba(255,0,51,.3); }
.action-delete:hover  { background: rgba(255,0,51,.25); }

body:not(.app) .panel { margin: 40px auto; }
body.admin { overflow-y: auto; align-items: flex-start; padding: 0 20px; }

/* ══════════════════════════════════════
   ADMIN CHAT EXTRAS
══════════════════════════════════════ */
.admin-badge {
  font-size: .6rem;
  color: #ffb400;
  letter-spacing: .14em;
  margin-left: 6px;
  border: 1px solid rgba(255,180,0,.4);
  padding: 2px 6px;
  border-radius: 3px;
}
.msg-delete-btn {
  background: transparent;
  border: none;
  color: rgba(255,0,51,.35);
  font-size: .7rem;
  cursor: pointer;
  padding: 0 2px;
  margin-left: auto;
  transition: color .15s;
  line-height: 1;
}
.msg-delete-btn:hover { color: var(--red); }
.admin-chat-msg .msg-meta { gap: 6px; }

/* ══════════════════════════════════════
   NAV DROPDOWN
══════════════════════════════════════ */
.nav-user { position: relative; }
.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 190px;
  z-index: 200;
  box-shadow: 0 8px 28px rgba(0,0,0,.6), 0 0 12px var(--red-glow);
  overflow: hidden;
}
.nav-dropdown.open { display: block; }
.nav-dropdown a {
  display: block;
  padding: 11px 16px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .1em;
  transition: background .15s, color .15s;
  border-bottom: 1px solid rgba(255,0,51,.08);
}
.nav-dropdown a:last-child { border-bottom: none; }
.nav-dropdown a:hover { background: var(--bg4); color: var(--red); }

/* ══════════════════════════════════════
   CONTENT PANELS (Ideen, Musik, Donation)
══════════════════════════════════════ */
.content-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 560px;
  margin: 0 auto;
  padding: 48px 32px;
  height: 100%;
  justify-content: center;
}
.content-panel-title {
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .22em;
  color: var(--red);
  text-shadow: 0 0 10px var(--red-glow);
  margin-bottom: 10px;
}
.content-panel-sub {
  font-size: .88rem;
  color: var(--text-dim);
  margin-bottom: 24px;
  line-height: 1.6;
}

/* Ideen textarea */
.idea-textarea {
  width: 100%;
  min-height: 160px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: .88rem;
  padding: 12px 14px;
  outline: none;
  resize: vertical;
  transition: border-color .2s;
  line-height: 1.5;
}
.idea-textarea:focus { border-color: var(--red); box-shadow: 0 0 10px var(--red-glow); }
.idea-counter {
  font-family: var(--font-mono);
  font-size: .65rem;
  color: var(--text-dim);
  margin-top: 6px;
  align-self: flex-end;
}

/* Musik tab */
.music-tracks {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  margin-bottom: 28px;
}
.music-track {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .1em;
  color: var(--text-dim);
  transition: all .2s;
}
.music-track:hover { border-color: var(--red); color: var(--text); }
.music-track.active { border-color: var(--red); color: var(--red); background: rgba(255,0,51,.07); box-shadow: 0 0 8px var(--red-glow); }
.music-track-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
  flex-shrink: 0;
  transition: background .2s;
}
.music-track.active .music-track-dot { background: var(--red); box-shadow: 0 0 6px var(--red); }
.music-vol-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
}
.music-vol-label {
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .18em;
  color: var(--text-dim);
  white-space: nowrap;
}
.vol-slider {
  flex: 1;
  -webkit-appearance: none;
  height: 4px;
  border-radius: 2px;
  background: var(--bg4);
  outline: none;
  cursor: pointer;
}
.vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px var(--red-glow);
  cursor: pointer;
}
.vol-slider::-moz-range-thumb {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px var(--red-glow);
  border: none;
  cursor: pointer;
}
.music-vol-display {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--red);
  min-width: 36px;
  text-align: right;
}

/* ══════════════════════════════════════
   ADMIN PANEL NEW STYLES
══════════════════════════════════════ */
.admin-tab-panel { }
.admin-tab-panel.hidden { display: none; }

.admin-section-title {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .22em;
  color: var(--red);
  text-shadow: 0 0 10px var(--red-glow);
  margin-bottom: 20px;
}

.admin-stats-row {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.admin-stat-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 22px;
  text-align: center;
  min-width: 100px;
}
.admin-stat-label {
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .18em;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.admin-stat-value {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--text);
}

/* Game config form */
.config-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.config-section {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.config-section-title {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .2em;
  color: var(--red);
  margin-bottom: 14px;
}
.config-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.config-row:last-child { margin-bottom: 0; }
.config-label {
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .08em;
  color: var(--text-dim);
  flex: 1;
}
.config-input {
  width: 72px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: .85rem;
  padding: 7px 10px;
  outline: none;
  text-align: right;
  transition: border-color .2s;
}
.config-input:focus { border-color: var(--red); }
.config-unit {
  font-family: var(--font-mono);
  font-size: .65rem;
  color: var(--text-dim);
  width: 32px;
}

/* Ideas list in admin */
.ideas-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.idea-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
}
.idea-meta {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 8px;
}
.idea-user {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--red);
  letter-spacing: .08em;
}
.idea-date {
  font-family: var(--font-mono);
  font-size: .65rem;
  color: var(--text-dim);
}
.idea-text {
  font-size: .9rem;
  color: var(--text);
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ══════════════════════════════════════
   MOBILE RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 768px) {
  /* Navbar */
  .navbar {
    flex-wrap: wrap;
    height: auto;
    padding: 10px 12px;
    gap: 10px;
  }
  .nav-logo { font-size: .9rem; }
  .nav-games {
    order: 3;
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .nav-games::-webkit-scrollbar { display: none; }
  .game-tab { white-space: nowrap; flex-shrink: 0; }
  .nav-user { margin-left: auto; }

  /* Main layout — stack vertically */
  .main { flex-direction: column; overflow: auto; }

  /* Game area */
  .game-area { height: 60vh; min-height: 300px; flex: none; }

  /* Chat sidebar — full width below game */
  .chat-sidebar {
    width: 100%;
    border-left: none;
    border-top: 1px solid var(--border);
    height: 40vh;
    min-height: 200px;
    flex-shrink: 0;
  }

  /* Profile page */
  .profile-wrap {
    flex-direction: column;
    margin: 20px auto;
    padding: 0 16px;
  }
  .profile-card { width: 100%; }

  /* Admin panel */
  .game-area[style*="padding"] { padding: 16px !important; }
  .admin-stats-row { flex-wrap: wrap; }
  .admin-stat-card { flex: 1; min-width: 80px; }
  .config-grid { grid-template-columns: 1fr; }

  /* Auth card */
  .card { padding: 28px 20px; }
}

@media (max-width: 480px) {
  .nav-logo .admin-badge { display: none; }
  .profile-stats { gap: 6px; }
  .stat-item { padding: 8px 10px; }
  .stat-value { font-size: .75rem; }
}
