:root {
  --bg-primary: #090d14;
  --bg-sidebar: #0e1420;
  --bg-card: rgba(18, 25, 38, 0.75);
  --bg-card-hover: rgba(26, 36, 54, 0.85);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 242, 254, 0.3);

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --accent-cyan: #00f2fe;
  --accent-blue: #4facfe;
  --accent-purple: #9d4edd;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;

  --gradient-cyan: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  --gradient-purple: linear-gradient(135deg, #7928ca 0%, #ff0080 100%);
  --gradient-emerald: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --gradient-rose: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);

  --font-main: 'Inter', system-ui, sans-serif;
  --font-heading: 'Outfit', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-main);
  overflow-x: hidden;
  height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

/* Layout */
.app-layout {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

/* SIDEBAR */
.sidebar {
  width: 270px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1rem;
  justify-content: space-between;
  backdrop-filter: blur(16px);
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 2rem;
  padding: 0 0.5rem;
}

.brand-icon {
  width: 44px;
  height: 44px;
  background: var(--gradient-cyan);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #000;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
}

.brand-info h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.badge-v {
  font-size: 0.75rem;
  color: var(--accent-cyan);
  font-weight: 600;
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.nav-item i {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.nav-item:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
  border-color: var(--border-glass);
}

.nav-item.active {
  background: rgba(0, 242, 254, 0.1);
  color: var(--accent-cyan);
  border-color: rgba(0, 242, 254, 0.25);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.1);
}

.badge-count {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.15rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  color: var(--text-main);
}

.status-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.pulse-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  position: relative;
}

.pulse-indicator.online {
  background: var(--accent-emerald);
  box-shadow: 0 0 12px var(--accent-emerald);
}
.pulse-indicator.offline {
  background: var(--accent-rose);
  box-shadow: 0 0 12px var(--accent-rose);
}
.pulse-indicator.starting {
  background: var(--accent-amber);
  box-shadow: 0 0 12px var(--accent-amber);
  animation: pulseAnim 1.5s infinite;
}
.pulse-indicator.sleeping {
  background: #818cf8;
  box-shadow: 0 0 14px rgba(129, 140, 248, 0.9);
  animation: sleepPulseAnim 2.5s infinite ease-in-out;
}

@keyframes pulseAnim {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

@keyframes sleepPulseAnim {
  0% { transform: scale(0.92); opacity: 0.6; box-shadow: 0 0 8px rgba(129, 140, 248, 0.4); }
  50% { transform: scale(1.18); opacity: 1; box-shadow: 0 0 20px rgba(129, 140, 248, 0.95); }
  100% { transform: scale(0.92); opacity: 0.6; box-shadow: 0 0 8px rgba(129, 140, 248, 0.4); }
}

.status-title {
  font-weight: 700;
  font-size: 0.85rem;
}
.status-sub {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* MAIN CONTENT */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: radial-gradient(circle at 80% 20%, rgba(0, 242, 254, 0.05) 0%, transparent 40%),
              radial-gradient(circle at 20% 80%, rgba(121, 40, 202, 0.05) 0%, transparent 40%);
}

.topbar {
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-glass);
  background: rgba(9, 13, 20, 0.6);
  backdrop-filter: blur(12px);
  sticky: top;
  top: 0;
  z-index: 5;
}

.topbar-left h1 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
}
.subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.metric-chip {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.metric-chip i {
  font-size: 1.2rem;
}
.metric-val {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.1;
}
.metric-lbl {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

.power-buttons {
  display: flex;
  gap: 0.4rem;
  margin-left: 0.5rem;
}

/* BUTTONS */
.btn {
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  border: none;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.btn-cyan { background: var(--gradient-cyan); color: #000; }
.btn-emerald { background: var(--gradient-emerald); color: #fff; }
.btn-amber { background: var(--accent-amber); color: #000; }
.btn-rose { background: var(--gradient-rose); color: #fff; }
.btn-purple { background: linear-gradient(135deg, #9d4edd 0%, #7928ca 100%); color: #fff; }
.btn-purple:hover { box-shadow: 0 4px 15px rgba(157, 78, 221, 0.4); }
.btn-outline { background: transparent; border: 1px solid var(--border-glass); color: var(--text-main); }
.btn-outline:hover { background: var(--bg-card-hover); border-color: var(--accent-cyan); }

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
.btn-sm { padding: 0.4rem 0.8rem; font-size: 0.8rem; }
.btn-xs { padding: 0.2rem 0.55rem; font-size: 0.72rem; border-radius: var(--radius-sm); }
.btn-full { width: 100%; justify-content: center; }

/* PANELS & PANES */
.content-body {
  padding: 2rem;
  flex: 1;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.3s ease;
}
.tab-pane.active {
  display: block;
}

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

.glass-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(16px);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.panel-header h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* GRIDS */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }

.color-cyan { color: var(--accent-cyan); }
.color-purple { color: var(--accent-purple); }
.color-emerald { color: var(--accent-emerald); }
.color-amber { color: var(--accent-amber); }
.color-rose { color: var(--accent-rose); }

/* DASHBOARD QUICK ACTIONS */
.quick-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.action-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1rem;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.action-btn i { font-size: 1.5rem; }
.action-btn span { font-size: 0.85rem; font-weight: 500; }
.action-btn:hover {
  background: rgba(0, 242, 254, 0.08);
  border-color: var(--accent-cyan);
  transform: translateY(-3px);
}

.service-status-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.service-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-glass);
  font-size: 0.9rem;
}
.badge {
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
}

.dashboard-terminal {
  background: #05080f;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1rem;
  height: 200px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #a7f3d0;
  line-height: 1.5;
}

/* CONSOLE TAB */
.console-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 180px);
}

.console-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.dot-online {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent-emerald);
  border-radius: 50%;
  margin-right: 0.4rem;
}

.terminal-screen {
  flex: 1;
  background: #04060a;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.6;
  color: #e2e8f0;
  margin-bottom: 1rem;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.log-line {
  margin-bottom: 0.25rem;
  white-space: pre-wrap;
  word-break: break-word;
}
.log-line.error { color: #f87171; }
.log-line.warn { color: #fbbf24; }
.log-line.info { color: #60a5fa; }
.log-line.command { color: var(--accent-cyan); font-weight: 600; }

.console-input-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #0e1420;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 0.5rem 1rem;
}

.input-prompt {
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  font-weight: 700;
  font-size: 1.1rem;
}

.console-input-bar input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.95rem;
}

/* PLAYERS GRID */
.players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.player-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  text-align: center;
  transition: all 0.25s ease;
}
.player-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-cyan);
}

.player-avatar {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  image-rendering: pixelated;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.player-name {
  font-weight: 700;
  font-size: 1.05rem;
}

.player-actions {
  display: flex;
  gap: 0.4rem;
  width: 100%;
}

/* MAP TAB */
.map-container {
  height: calc(100vh - 180px);
  display: flex;
  flex-direction: column;
}

.map-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.map-frame-wrapper {
  flex: 1;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-glass);
}

.map-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.bluemap-fallback {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(9, 13, 20, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

/* FILE MANAGER */
.files-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.breadcrumbs {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent-cyan);
}
.crumb { cursor: pointer; }
.crumb:hover { text-decoration: underline; }

.file-table-wrapper {
  overflow-x: auto;
}

.file-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.file-table th {
  text-align: left;
  padding: 0.75rem 1rem;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border-glass);
}
.file-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-glass);
}
.file-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* FORM CONTROLS */
.form-control {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-glass);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: var(--font-main);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease;
}
.form-control:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: calc(100vh - 280px);
  overflow-y: auto;
  padding-right: 0.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* MODAL */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.modal-overlay.hidden { display: none; }

.modal-card {
  background: var(--bg-sidebar);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 600px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}
.modal-lg { max-width: 900px; }

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-body { padding: 1.5rem; }
.modal-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border-glass);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.modal-close {
  background: none; border: none; color: var(--text-muted); font-size: 1.5rem; cursor: pointer;
}

.code-editor-input {
  width: 100%;
  background: #04060a;
  color: #e2e8f0;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  padding: 1rem;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  outline: none;
  resize: vertical;
}

.hidden { display: none !important; }

/* ── BADGE COLOR VARIANTS ─────────────────────────────── */
.badge { padding: 0.25rem 0.65rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; }
.badge-green  { background: rgba(16,185,129,0.15); color: var(--accent-emerald); border: 1px solid rgba(16,185,129,0.3); }
.badge-amber  { background: rgba(245,158,11,0.15);  color: var(--accent-amber);  border: 1px solid rgba(245,158,11,0.3); }
.badge-red    { background: rgba(244,63,94,0.15);   color: var(--accent-rose);   border: 1px solid rgba(244,63,94,0.3); }

/* ── STARTING (AMBER) PULSE ───────────────────────────── */
.pulse-indicator.starting {
  background: var(--accent-amber);
  box-shadow: 0 0 0 0 rgba(245,158,11, 0.7);
  animation: pulse-amber 1.4s ease-in-out infinite;
}
@keyframes pulse-amber {
  0%   { box-shadow: 0 0 0 0   rgba(245,158,11, 0.7); }
  70%  { box-shadow: 0 0 0 10px rgba(245,158,11, 0); }
  100% { box-shadow: 0 0 0 0   rgba(245,158,11, 0); }
}

/* ── BOOT PROGRESS BANNER ─────────────────────────────── */
.boot-banner {
  background: linear-gradient(90deg, rgba(245,158,11,0.08) 0%, rgba(14,20,32,0.0) 100%);
  border-bottom: 1px solid rgba(245,158,11,0.25);
  padding: 0.65rem 2rem;
  transition: opacity 0.4s;
  animation: slideDown 0.3s ease;
}
.boot-banner.hidden { opacity: 0; pointer-events: none; }
@keyframes slideDown {
  from { opacity:0; transform: translateY(-8px); }
  to   { opacity:1; transform: translateY(0); }
}

.boot-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 100%;
}

.boot-left  { display: flex; align-items: center; gap: 0.85rem; min-width: 0; }
.boot-right { display: flex; align-items: center; gap: 0.85rem; flex-shrink: 0; }

.boot-spinner {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2px solid rgba(245,158,11,0.25);
  border-top-color: var(--accent-amber);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

.boot-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-amber);
}
.boot-lastline {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 500px;
}

.boot-progress-wrap {
  width: 160px;
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  overflow: hidden;
}
.boot-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  border-radius: 999px;
  transition: width 0.6s ease;
  box-shadow: 0 0 8px rgba(245,158,11,0.5);
}
.boot-pct {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-amber);
  min-width: 36px;
  text-align: right;
}

/* ── TOAST NOTIFICATIONS ──────────────────────────────── */
.toast {
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  backdrop-filter: blur(16px);
  border: 1px solid;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  animation: toastIn 0.3s ease;
  transition: opacity 0.4s;
  max-width: 360px;
}
@keyframes toastIn {
  from { opacity:0; transform: translateY(16px); }
  to   { opacity:1; transform: translateY(0); }
}
.toast-success {
  background: rgba(16,185,129,0.15);
  border-color: rgba(16,185,129,0.4);
  color: #6ee7b7;
}
.toast-error {
  background: rgba(244,63,94,0.15);
  border-color: rgba(244,63,94,0.4);
  color: #fda4af;
}
.toast-info {
  background: rgba(0,242,254,0.1);
  border-color: rgba(0,242,254,0.3);
  color: var(--accent-cyan);
}

/* BlueMap loading state */
.bluemap-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  z-index: 2;
}

/* ── USER STATISTICS & PODIUM ───────────────────────────── */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.metric-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
}

.metric-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.bg-cyan-glow { background: rgba(0, 242, 254, 0.12); border: 1px solid rgba(0, 242, 254, 0.3); }
.bg-emerald-glow { background: rgba(16, 185, 129, 0.12); border: 1px solid rgba(16, 185, 129, 0.3); }
.bg-amber-glow { background: rgba(245, 158, 11, 0.12); border: 1px solid rgba(245, 158, 11, 0.3); }
.bg-rose-glow { background: rgba(244, 63, 148, 0.12); border: 1px solid rgba(244, 63, 148, 0.3); }

.metric-title {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.metric-value {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 0.2rem;
}

/* PODIUM */
.podium-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  align-items: flex-end;
  margin-top: 1rem;
}

.podium-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem 1.25rem;
  text-align: center;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.podium-card:hover {
  transform: translateY(-4px);
}

.podium-gold {
  border-color: rgba(245, 158, 11, 0.5);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.1) 0%, rgba(18, 25, 38, 0.8) 100%);
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.15);
}

.podium-silver {
  border-color: rgba(148, 163, 184, 0.4);
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.08) 0%, rgba(18, 25, 38, 0.8) 100%);
}

.podium-bronze {
  border-color: rgba(217, 119, 6, 0.4);
  background: linear-gradient(180deg, rgba(217, 119, 6, 0.08) 0%, rgba(18, 25, 38, 0.8) 100%);
}

.podium-rank-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--bg-sidebar);
  border: 1px solid var(--border-glass);
  white-space: nowrap;
}

.podium-avatar {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  margin: 0.5rem auto 0.75rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.podium-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.podium-val {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-top: 0.25rem;
}

.podium-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* CUSTOM TABLE */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.custom-table th {
  padding: 0.85rem 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-glass);
}

.custom-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 0.88rem;
  vertical-align: middle;
}

.custom-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.player-avatar-head {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border-glass);
}

.flex-align-gap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cursor-pointer {
  cursor: pointer;
}
.cursor-pointer:hover {
  color: var(--accent-cyan);
}

/* PLAYER DETAIL MODAL */
.player-profile-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
}

.player-skin-preview img {
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
}

.stats-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.85rem;
}

.stat-mini-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
}

.stat-lbl {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.stat-val {
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 0.25rem;
}

.top-mined-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mined-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.mined-name {
  font-weight: 500;
  text-transform: capitalize;
}

.mined-count {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-amber);
}

.search-box {
  position: relative;
  width: 220px;
}

.search-box input {
  padding-left: 2rem;
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  font-size: 0.8rem;
}

/* ── REAL-TIME WORLD ENVIRONMENT & SOLAR ARC ──────────────── */
.world-env-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 1.5rem;
  align-items: stretch;
}

@media (max-width: 900px) {
  .world-env-grid {
    grid-template-columns: 1fr;
  }
}

.solar-arc-card {
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-glass);
  transition: background 1s ease, border-color 1s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.day-sky {
  background: radial-gradient(circle at 50% 100%, rgba(245, 158, 11, 0.15) 0%, rgba(14, 165, 233, 0.08) 50%, rgba(14, 20, 32, 0.8) 100%);
  border-color: rgba(245, 158, 11, 0.3);
}

.night-sky {
  background: radial-gradient(circle at 50% 100%, rgba(56, 189, 248, 0.12) 0%, rgba(30, 27, 75, 0.4) 60%, rgba(9, 13, 20, 0.9) 100%);
  border-color: rgba(56, 189, 248, 0.3);
}

.sky-arc-container {
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
  position: relative;
}

.sky-arc-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

#celestial-body {
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.horizon-line {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 20%, rgba(255,255,255,0.3) 80%, transparent 100%);
  margin-top: -5px;
}

.arc-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-weight: 500;
}

.world-details-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.digital-time-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
}

.time-text {
  font-family: var(--font-mono);
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--accent-cyan);
  text-shadow: 0 0 16px rgba(0, 242, 254, 0.4);
}

.time-sub {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  margin-top: 0.25rem;
}

.world-meta-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.meta-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.meta-lbl {
  color: var(--text-muted);
}

.meta-val {
  font-weight: 600;
}

/* ── RADAR MAP & TACTICAL GRID ───────────────────────────── */
.radar-grid {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 1rem;
  height: 520px;
}

@media (max-width: 850px) {
  .radar-grid {
    grid-template-columns: 1fr;
    height: auto;
  }
}

.radar-map-canvas {
  width: 100%;
  height: 100%;
  min-height: 480px;
  background: #090d14;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
}

.radar-sidebar {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.radar-player-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: background 0.2s;
}

.radar-player-item:hover {
  background: rgba(0, 242, 254, 0.1);
  border-color: rgba(0, 242, 254, 0.3);
}

.radar-marker-pin {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.radar-head {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 2px solid var(--accent-emerald);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
}

.radar-name-tag {
  background: rgba(14, 20, 32, 0.9);
  color: var(--text-main);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid var(--border-glass);
  margin-top: 2px;
}

/* ==========================================================================
   1. USER SESSION WIDGET (SIDEBAR FOOTER)
   ========================================================================== */
.user-session-card {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
  transition: all 0.2s ease;
}

.user-session-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

.user-session-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.user-avatar-badge {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.user-session-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.1;
}

.user-session-sub {
  font-size: 0.68rem;
  color: var(--accent-emerald);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.btn-logout {
  background: transparent;
  border: 1px solid rgba(244, 63, 94, 0.25);
  color: var(--accent-rose);
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-logout:hover {
  background: rgba(244, 63, 94, 0.15);
  border-color: var(--accent-rose);
  transform: translateY(-1px);
}

/* ==========================================================================
   2. LOGIN OVERLAY & MODAL
   ========================================================================== */
.login-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 35%, #0d1629 0%, #06090f 100%);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.login-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: none !important;
}

.login-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: rgba(14, 20, 32, 0.95);
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2.25rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 242, 254, 0.15);
  overflow: hidden;
}

.login-glow {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.login-cube {
  width: 46px;
  height: 46px;
  background: var(--gradient-cyan);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #000;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
}

.login-brand h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
  line-height: 1.1;
}

.login-header {
  margin-bottom: 1.75rem;
}

.login-header h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.login-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.login-field {
  margin-bottom: 1.25rem;
}

.login-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.password-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrap .input-icon {
  position: absolute;
  left: 1rem;
  color: var(--text-dim);
  font-size: 0.95rem;
}

.password-input-wrap input {
  width: 100%;
  padding: 0.85rem 3rem 0.85rem 2.75rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.password-input-wrap input:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.25);
  background: rgba(0, 0, 0, 0.5);
}

.btn-toggle-eye {
  position: absolute;
  right: 0.75rem;
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 0.4rem;
  font-size: 1rem;
  transition: color 0.2s;
}

.btn-toggle-eye:hover {
  color: var(--accent-cyan);
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.remember-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
}

.remember-label input[type="checkbox"] {
  accent-color: var(--accent-cyan);
  cursor: pointer;
}

.btn-login {
  padding: 0.9rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
}

.btn-login:hover {
  box-shadow: 0 0 30px rgba(0, 242, 254, 0.5);
  transform: translateY(-1px);
}

.login-error-alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #fda4af;
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  animation: shake 0.3s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

/* ==========================================================================
   3. TPS & LIVE PERFORMANCE MONITORING
   ========================================================================== */
#chip-tps {
  border-color: rgba(16, 185, 129, 0.25);
  background: rgba(16, 185, 129, 0.06);
}

#chip-tps.warning {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.08);
}

#chip-tps.warning i {
  color: var(--accent-amber);
}

#chip-tps.critical {
  border-color: rgba(244, 63, 94, 0.4);
  background: rgba(244, 63, 94, 0.1);
}

#chip-tps.critical i {
  color: var(--accent-rose);
}

.perf-chart-wrapper {
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-glass);
}

/* ==========================================================================
   4. GESTOR DE MODS
   ========================================================================== */
.mods-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.85rem 1.15rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
}

.mod-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mod-status-badge.enabled {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.mod-status-badge.disabled {
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.mod-filename-code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.mod-action-buttons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.btn-toggle-mod {
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-toggle-mod.active {
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.btn-toggle-mod.active:hover {
  background: rgba(245, 158, 11, 0.25);
  border-color: var(--accent-amber);
}

.btn-toggle-mod.inactive {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.btn-toggle-mod.inactive:hover {
  background: rgba(16, 185, 129, 0.25);
  border-color: var(--accent-emerald);
}

/* HISTORICAL PERFORMANCE & SPARK SUITE STYLING */
.badge-purple {
  background: rgba(157, 78, 221, 0.15);
  color: #c084fc;
  border: 1px solid rgba(157, 78, 221, 0.35);
}

.perf-range-selector .btn {
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.15s ease;
}

.perf-range-selector .btn.active {
  background: var(--gradient-cyan) !important;
  color: #000 !important;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 242, 254, 0.3);
}

.perf-mini-card {
  transition: all 0.2s ease;
}

.perf-mini-card:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* =========================================================================
   AUTOPAUSE & HIBERNATION STYLES
   ========================================================================= */
:root {
  --accent-indigo: #818cf8;
  --accent-indigo-glow: rgba(99, 102, 241, 0.25);
}

.color-indigo {
  color: var(--accent-indigo) !important;
}

.btn-indigo {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #fff;
  border: 1px solid rgba(165, 180, 252, 0.3);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
  font-weight: 600;
}
.btn-indigo:hover {
  background: linear-gradient(135deg, #818cf8 0%, #6366f1 100%);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.55);
  transform: translateY(-2px);
}

.badge-indigo {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.35);
}

/* Dashboard Autopause Banner */
.autopause-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 1.75rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.4) 0%, rgba(15, 23, 42, 0.6) 100%);
  border: 1px solid rgba(99, 102, 241, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  transition: all 0.3s ease;
}

.autopause-banner.is-sleeping {
  background: linear-gradient(135deg, rgba(49, 46, 129, 0.5) 0%, rgba(15, 23, 42, 0.75) 100%);
  border-color: rgba(129, 140, 248, 0.5);
  box-shadow: 0 0 35px rgba(99, 102, 241, 0.22), inset 0 0 20px rgba(99, 102, 241, 0.08);
}

.autopause-banner.is-counting {
  border-color: rgba(245, 158, 11, 0.35);
  background: linear-gradient(135deg, rgba(120, 53, 15, 0.18) 0%, rgba(15, 23, 42, 0.65) 100%);
}

.autopause-banner.is-active-players {
  border-color: rgba(16, 185, 129, 0.3);
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.18) 0%, rgba(15, 23, 42, 0.65) 100%);
}

.autopause-banner-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex: 1;
}

.autopause-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.autopause-banner.is-sleeping .autopause-icon-box {
  background: linear-gradient(135deg, #4f46e5 0%, #312e81 100%);
  border-color: #818cf8;
  color: #fff;
  box-shadow: 0 0 20px rgba(129, 140, 248, 0.5);
  animation: sleepingIconFloat 3s infinite ease-in-out;
}

@keyframes sleepingIconFloat {
  0% { transform: translateY(0); }
  50% { transform: translateY(-4px) scale(1.05); }
  100% { transform: translateY(0); }
}

.autopause-banner-text {
  flex: 1;
}

.autopause-pill-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.35rem;
}

.autopause-sub-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.autopause-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 0.35rem 0;
}

.autopause-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 0.75rem 0;
  line-height: 1.4;
  max-width: 680px;
}

/* Progress Bar & Countdown Display */
.autopause-progress-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  max-width: 580px;
}

.autopause-bar-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.4rem;
}

.autopause-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #a855f7);
  border-radius: 999px;
  transition: width 0.8s ease;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.autopause-banner.is-counting .autopause-bar-fill {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.autopause-bar-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.autopause-timer-countdown {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

.autopause-banner-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .autopause-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .autopause-banner-actions {
    width: 100%;
    flex-direction: row;
    justify-content: flex-end;
  }
}

/* =========================================================
   AUTH — Minecraft Login & User Management
   ========================================================= */

.mc-skin-preview {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  animation: fadeInUp 0.3s ease;
}

/* Badge roles */
.badge-role {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.06);
  border: 1px solid currentColor;
}
.badge-role.color-amber { color: var(--accent-amber, #f59e0b); border-color: rgba(245,158,11,0.4); background: rgba(245,158,11,0.1); }
.badge-role.color-cyan  { color: var(--accent-cyan,  #06b6d4); border-color: rgba(6,182,212,0.4);  background: rgba(6,182,212,0.1); }
.badge-role.color-emerald { color: var(--accent-emerald, #10b981); border-color: rgba(16,185,129,0.4); background: rgba(16,185,129,0.1); }

/* Users table */
.users-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.users-table th {
  text-align: left;
  padding: 0.6rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-glass);
}
.users-table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text-primary);
  vertical-align: middle;
}
.users-table tbody tr:hover td {
  background: rgba(255,255,255,0.03);
}

/* Role dropdown */
.select-role-dropdown {
  background: var(--bg-card, rgba(255,255,255,0.06));
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm, 6px);
  color: var(--text-primary);
  font-size: 0.8rem;
  padding: 0.3rem 0.5rem;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}
.select-role-dropdown:hover { border-color: var(--accent-cyan, #06b6d4); }

/* Hidden utility */
.hidden { display: none !important; }
