/* =========================================================
   DEPO SAVAŞLARI - MONOCHROMATIC NOIR & FLOATING HEADER
   Pure Black & White, Platinum Silver, Zero Yellow
   ========================================================= */

:root {
  /* Pitch-Black & Monochromatic Gray Tokens */
  --bg-deep: #000000;
  --bg-core: #050505;
  --bg-surface: #0a0a0a;
  --bg-card: rgba(14, 14, 14, 0.88);
  --bg-card-hover: rgba(22, 22, 22, 0.95);
  --bg-glass: rgba(10, 10, 10, 0.85);

  /* Monochromatic Accents (No Yellow!) */
  --accent-white: #ffffff;
  --accent-silver: #e2e8f0;
  --accent-platinum: #cbd5e1;
  --accent-zinc: #71717a;
  --accent-glow: rgba(255, 255, 255, 0.25);

  --accent-green: #22c55e;
  --accent-rose: #f43f5e;
  --accent-cyan: #38bdf8;

  /* Glassmorphism & Metallic Borders */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-bright: rgba(255, 255, 255, 0.18);
  --border-focus: rgba(255, 255, 255, 0.45);

  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #52525b;

  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.8);
  --shadow-md: 0 12px 36px rgba(0, 0, 0, 0.9);
  --shadow-glow: 0 0 24px rgba(255, 255, 255, 0.18);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --header-height: 64px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: #050608;
  color: var(--text-primary);
  font-family: var(--font-display);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
  /* Deep Atmospheric Noir Ambient Gradients */
  background-image: 
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(255, 255, 255, 0.065) 0%, transparent 70%),
    radial-gradient(circle 500px at 10% 25%, rgba(255, 255, 255, 0.02) 0%, transparent 60%),
    radial-gradient(circle 600px at 90% 75%, rgba(255, 255, 255, 0.025) 0%, transparent 65%),
    radial-gradient(ellipse 60% 35% at 50% 100%, rgba(30, 41, 59, 0.18) 0%, transparent 70%),
    linear-gradient(180deg, #040406 0%, #08090d 35%, #0b0d12 70%, #030406 100%);
  background-attachment: fixed;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}

.app-header,
.app-viewport,
.app-footer,
.modal-overlay,
.toast-container {
  position: relative;
  z-index: 1;
}

::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: #000000;
}
::-webkit-scrollbar-thumb {
  background: #27272a;
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: #52525b;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.025em;
}

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.svg-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* =========================================================
   FLOATING COMPACT CENTERED HEADER BAR
   ========================================================= */

.app-header {
  position: sticky;
  top: 14px;
  z-index: 100;
  max-width: 1340px;
  width: calc(100% - 24px);
  margin: 14px auto 0;
  height: var(--header-height);
  background: rgba(10, 10, 10, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-full);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85), 0 0 20px rgba(255, 255, 255, 0.04);
}

.header-inner {
  height: 100%;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.brand-zone {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.15));
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #ffffff;
  white-space: nowrap;
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--accent-platinum);
  letter-spacing: 0.15em;
  font-weight: 700;
  white-space: nowrap;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(20, 20, 20, 0.75);
  padding: 4px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-btn span {
  white-space: nowrap;
}

.nav-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.nav-btn.active {
  color: #000000;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
}

.nav-btn.highlight:not(.active) {
  color: #ffffff;
  border: 1px solid var(--border-bright);
}

.badge {
  background: #ffffff;
  color: #000000;
  font-size: 10px;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: var(--radius-full);
}

/* User Zone */
.user-zone {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.auth-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-buttons .btn {
  padding: 7px 16px;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.sound-toggle-btn {
  background: rgba(20, 20, 20, 0.8);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sound-toggle-btn:hover {
  color: #ffffff;
  border-color: var(--border-bright);
}

.wallet-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-bright);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  color: #ffffff;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.beta-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.user-profile-widget {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  position: relative;
}

/* User Dropdown Menu */
.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: 220px;
  background: #0d0d10;
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-md);
  padding: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.95), 0 0 20px rgba(255, 255, 255, 0.05);
  z-index: 250;
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: fadeInDown 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
.dropdown-user-header {
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dropdown-username {
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dropdown-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  text-transform: uppercase;
}
.dropdown-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 4px 0;
}
.dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}
.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}
.dropdown-item-badge {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  background: #ffffff;
  color: #000000;
  padding: 1px 6px;
  border-radius: var(--radius-full);
}

.avatar-box {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: #000000;
  border: 2px solid #ffffff;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
}

.avatar-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border: 2px solid #000000;
  border-radius: 50%;
}

.btn-logout {
  background: transparent;
  color: var(--text-muted);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.btn-logout:hover {
  color: #ffffff;
}

/* Common Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: #ffffff;
  color: #000000;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.2);
}
.btn-primary:hover {
  background: #e4e4e7;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 255, 255, 0.3);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border: 1px solid var(--border-bright);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-danger {
  background: rgba(244, 63, 94, 0.12);
  color: var(--accent-rose);
  border: 1px solid rgba(244, 63, 94, 0.3);
}
.btn-danger:hover {
  background: rgba(244, 63, 94, 0.25);
}

.btn-success {
  background: #ffffff;
  color: #000000;
  font-weight: 700;
}

.btn-discord {
  background: #5865f2;
  color: #fff;
  width: 100%;
  font-weight: 700;
}
.btn-discord:hover {
  background: #4752c4;
}

/* App Viewport Container */
.app-viewport {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 18px 80px;
  min-height: calc(100vh - var(--header-height));
  animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.view-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.view-title-wrap h1 {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.view-subtitle {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 4px;
}

/* Cards & Grid */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.surface-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all 0.25s ease;
}
.surface-card:hover {
  border-color: var(--border-bright);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: backdropFade 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-card {
  background: #0b0b0e;
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.95), 0 0 40px rgba(255, 255, 255, 0.04);
  position: relative;
  padding: 28px;
  animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: transform, opacity;
}

.modal-card.modal-lg {
  max-width: 680px;
}

@keyframes backdropFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalPop {
  0% { opacity: 0; transform: scale(0.93) translateY(14px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* Capacity Selector Grid */
.capacity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
  gap: 8px;
  margin-top: 6px;
}

.capacity-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.capacity-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-bright);
  transform: translateY(-2px);
}

.capacity-chip.active {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
}

.capacity-chip .chip-num {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.capacity-chip .chip-sub {
  font-size: 10px;
  opacity: 0.75;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Storage Search & Card Picker */
.storage-search-box {
  position: relative;
  margin-bottom: 10px;
}

.storage-picker-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
  max-height: 250px;
  overflow-y: auto;
  padding: 2px 2px 8px;
}

.storage-pick-card {
  background: rgba(18, 18, 22, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.storage-pick-card:hover {
  border-color: var(--border-bright);
  background: rgba(28, 28, 34, 0.95);
  transform: translateY(-2px);
}

.storage-pick-card.active {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 1px #ffffff, 0 4px 18px rgba(255, 255, 255, 0.2);
}

.storage-pick-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.storage-pick-unit {
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  color: var(--accent-platinum);
}

.storage-pick-loc {
  font-size: 11.5px;
  color: var(--text-secondary);
}

.storage-pick-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.storage-pick-price {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
}

.storage-pick-badge {
  font-size: 10.5px;
  color: var(--text-muted);
}

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

.modal-close {
  background: transparent;
  color: var(--text-muted);
  font-size: 20px;
  padding: 4px;
}
.modal-close:hover {
  color: var(--text-primary);
}

/* Forms */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: #000000;
  border: 1px solid var(--border-bright);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 380px;
}

.toast {
  background: #111113;
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-md);
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 13.5px;
}

.toast.toast-success { border-left: 4px solid var(--accent-green); }
.toast.toast-error { border-left: 4px solid var(--accent-rose); }
.toast.toast-info { border-left: 4px solid #ffffff; }

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Mobile Responsive */
@media (max-width: 860px) {
  .app-header {
    height: auto;
    padding: 10px 0;
    border-radius: var(--radius-lg);
    width: calc(100% - 20px);
    top: 10px;
  }
  .header-inner {
    flex-wrap: wrap;
  }
  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-around;
    overflow-x: auto;
  }
  .nav-btn {
    padding: 6px 10px;
    font-size: 12px;
  }
  .view-title-wrap h1 {
    font-size: 24px;
  }
}

/* Modal open body lock */
body.modal-open {
  overflow: hidden !important;
  touch-action: none;
}

/* Active tab button highlight */
.btn-outline.active {
  background: #ffffff !important;
  color: #000000 !important;
  border-color: #ffffff !important;
  font-weight: 800 !important;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.4) !important;
}

/* =========================================================
   UNIVERSAL NOIR FOOTER (Matches index.html)
   ========================================================= */

.app-footer {
  background: #050505;
  border-top: 1px solid var(--border-subtle);
  padding: 24px 0 20px;
  margin-top: 36px;
  color: var(--text-secondary);
}

.footer-inner, .app-footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand, .app-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-title {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #ffffff;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-links, .app-footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-link-btn, .app-footer-link {
  color: var(--text-secondary);
  cursor: pointer;
  background: none;
  border: none;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  transition: all 0.15s ease;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-link-btn:hover, .app-footer-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.footer-discord, .app-footer-discord {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background: #18181b;
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-full);
  color: #ffffff !important;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.footer-discord:hover, .app-footer-discord:hover {
  background: #ffffff;
  color: #000000 !important;
  border-color: #ffffff;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.35);
}

/* Quick Match & Code Join Modules */
.lobby-actions-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .lobby-actions-hero {
    grid-template-columns: 1fr;
  }
}

.quick-action-card {
  background: radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.05) 0%, rgba(10, 10, 12, 0.95) 100%);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.quick-action-title {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.quick-action-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.room-code-form {
  display: flex;
  gap: 8px;
}

.room-code-input {
  flex: 1;
  background: #000000;
  border: 1px solid var(--border-bright);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  outline: none;
}

.room-code-input:focus {
  border-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

/* Responsive Crew Dashboard Grid */
@media (max-width: 992px) {
  .crew-dashboard-grid {
    grid-template-columns: 1fr !important;
  }
}

/* =========================================================
   STANDALONE ADMIN PORTAL (DEDICATED SIDEBAR LAYOUT)
   ========================================================= */
body.admin-mode .app-header,
body.admin-mode .app-footer {
  display: none !important;
}

body.admin-mode .app-viewport {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.admin-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
  background: #09090b;
}

.admin-sidebar {
  width: 270px;
  min-width: 270px;
  background: #0d0d12;
  border-right: 1px solid #1f1f26;
  height: 100vh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 16px;
  box-sizing: border-box;
  z-index: 50;
}

.admin-brand {
  padding: 0 8px 20px 8px;
  border-bottom: 1px solid #1f1f26;
  margin-bottom: 20px;
}

.admin-brand-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  width: 100%;
  text-align: left;
}

.admin-nav-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}

.admin-nav-item.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.admin-sidebar-footer {
  padding-top: 18px;
  border-top: 1px solid #1f1f26;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-main {
  flex: 1;
  min-width: 0;
  padding: 32px 40px;
  background: #09090b;
  min-height: 100vh;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .admin-layout {
    flex-direction: column;
  }
  .admin-sidebar {
    width: 100%;
    height: auto;
    position: relative;
    border-right: none;
    border-bottom: 1px solid #1f1f26;
  }
  .admin-main {
    padding: 20px 16px;
  }
}
