/* ==========================================================================
   Dragon Blue - Ethereal Scale Design System
   Modern Light Theme Gaming Portal & Admin Control Room
   ========================================================================== */

:root {
  color-scheme: light;

  /* Typography */
  --font-display: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: 'Be Vietnam Pro', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  /* Primary & Brand Colors */
  --primary: #006875;
  --primary-hover: #00535e;
  --cyan: #00c2db;
  --cyan-glow: rgba(0, 194, 219, 0.4);
  --cyan-soft: #e6f9fc;
  --royal-blue: #1d4ed8;
  --royal-blue-hover: #1e40af;
  --royal-soft: #eff6ff;
  --orange: #f97316;
  --orange-hover: #ea580c;
  --orange-soft: #fff7ed;
  
  /* Surfaces & Backgrounds */
  --bg: #0b1329;
  --bg-gradient: radial-gradient(ellipse at 15% 10%, #dff2fe 0%, transparent 60%), #f8fafc;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-subtle: #f1f5f9;
  --surface-glass: rgba(255, 255, 255, 0.88);
  --panel: rgba(255, 255, 255, 0.94);
  
  /* Borders & Dividers */
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --line-accent: rgba(0, 194, 219, 0.35);
  
  /* Text & Content */
  --text: #0f172a;
  --text-heading: #0f172a;
  --muted: #64748b;
  --muted-light: #94a3b8;
  
  /* Semantics */
  --success: #059669;
  --success-bg: #ecfdf5;
  --success-line: #a7f3d0;
  --warning: #d97706;
  --warning-bg: #fffbeb;
  --warning-line: #fde68a;
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --danger-line: #fecaca;
  
  /* Radii & Shadows */
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 28px -4px rgba(15, 23, 42, 0.09), 0 6px 14px -2px rgba(15, 23, 42, 0.05);
  --shadow-glow: 0 0 20px rgba(0, 194, 219, 0.3);
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition: 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background-color: #0b1329;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  position: relative;
}

/* ==========================================================================
   Dragon Ball Multi-layer Atmospheric Background Engine
   ========================================================================== */
.bg-wallpaper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  filter: blur(10px) saturate(115%);
  transform: scale(1.05); /* Prevents blur fringe edges */
  transition: opacity 0.4s ease-in-out, background-image 0.5s ease-in-out;
  pointer-events: none;
  background-image: url('/assets/images/bg-kame.jpg'); /* Default */
}

/* Map specific backgrounds */
body[data-bg-map="kame"] .bg-wallpaper {
  background-image: url('/assets/images/bg-kame.jpg');
}

body[data-bg-map="kami"] .bg-wallpaper {
  background-image: url('/assets/images/bg-kami.jpg');
}

body[data-bg-map="namek"] .bg-wallpaper {
  background-image: url('/assets/images/bg-namek.jpg');
}

/* Atmospheric Dim & Tint Veil */
.bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background: radial-gradient(circle at 50% 20%, rgba(15, 23, 42, 0.42) 0%, rgba(10, 18, 36, 0.68) 100%);
  pointer-events: none;
}

/* Map Switcher Control */
.map-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
  margin-left: auto;
}

.map-label {
  font-size: 11px;
  font-weight: 700;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-right: 2px;
}

.map-btn {
  background: transparent;
  border: none;
  color: #e2e8f0;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.map-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
}

.map-btn.active, .map-btn[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--royal-blue), var(--cyan));
  color: #ffffff;
  box-shadow: 0 0 10px rgba(0, 194, 219, 0.4);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}

a:hover {
  color: var(--royal-blue);
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button, a, input, textarea, select {
  touch-action: manipulation;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

h1, h2, h3, h4, h5, h6, .brand, .footerbrand {
  margin: 0 0 12px;
  color: var(--text-heading);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(28px, 3.8vw, 44px); font-weight: 800; }
h2 { font-size: clamp(22px, 2.8vw, 30px); }
h3 { font-size: 20px; font-weight: 600; }
p { margin: 0 0 16px; color: var(--muted); }
p:last-child { margin-bottom: 0; }
small, .fine { font-size: 12px; color: var(--muted); }

.container {
  max-width: 1280px;
  padding: 0 24px;
  margin: 0 auto;
}

/* Page Headings & Eyebrows on atmospheric backgrounds */
.pageheading {
  margin-top: 14px;
  margin-bottom: 30px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #facc15 !important; /* Super Saiyan Gold */
  background: rgba(10, 20, 48, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(250, 204, 21, 0.45);
  box-shadow: 0 0 16px rgba(250, 204, 21, 0.25);
  margin-bottom: 12px;
}

.eyebrow .spark {
  color: #38bdf8;
  text-shadow: 0 0 8px #38bdf8;
}

.pageheading h1 {
  color: #ffffff !important;
  font-size: clamp(28px, 3.8vw, 44px);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.85), 0 0 4px rgba(0, 0, 0, 0.95);
}

.pageheading p {
  color: #f1f5f9 !important;
  font-size: 16px;
  max-width: 720px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.75);
}

/* Inside white panels, keep headings crisp */
.panel h1, .panel h2, .panel h3, .panel h4, .panel h5, .panel h6 {
  color: var(--text-heading);
  text-shadow: none;
}

.panel p {
  color: var(--muted);
  text-shadow: none;
}

.skip {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--cyan);
  color: #04293a;
  padding: 10px 18px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  z-index: 1000;
  box-shadow: var(--shadow-lg);
  transition: top var(--transition-fast);
}
.skip:focus { top: 12px; }

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.navwrap {
  max-width: 1320px;
  padding: 14px 24px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text-heading);
  flex-shrink: 0;
}

.brand:hover {
  color: var(--royal-blue);
}

.brand b {
  color: var(--royal-blue);
}

.brand small {
  display: block;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--cyan);
  margin-top: 1px;
}

.brandmark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.12), rgba(0, 194, 219, 0.22));
  border: 1px solid rgba(0, 194, 219, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(0, 194, 219, 0.2);
  flex-shrink: 0;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.brand:hover .brandmark {
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 0 22px rgba(0, 194, 219, 0.4);
  border-color: var(--cyan);
}

.brandmark .brand-svg {
  width: 26px;
  height: 26px;
  display: block;
}

.navwrap nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: 12px;
  margin-right: auto;
  font-size: 14px;
  font-weight: 600;
}

.navwrap nav a {
  position: relative;
  padding: 6px 4px;
  color: #475569;
  white-space: nowrap;
}

.navwrap nav a:hover {
  color: var(--royal-blue);
}

.navwrap nav a[aria-current="page"],
.navwrap nav a[aria-current] {
  color: var(--royal-blue);
  font-weight: 700;
}

.navwrap nav a[aria-current="page"]::after,
.navwrap nav a[aria-current]::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: var(--radius-full);
  background: var(--royal-blue);
  box-shadow: 0 2px 6px rgba(29, 78, 216, 0.3);
}

.zalo-link {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  padding: 4px 10px !important;
  border-radius: var(--radius-full);
  background: #e0f2fe;
  color: #0369a1 !important;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid #bae6fd;
}

.zalo-link:hover {
  background: #bae6fd;
  color: #0284c7 !important;
}

.zalo-link::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0ea5e9;
  display: inline-block;
  box-shadow: 0 0 6px #0ea5e9;
}

.navaccount {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex-shrink: 0;
}

.navaccount form {
  margin: 0;
}

.loginlink {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.loginlink:hover {
  color: var(--royal-blue);
  background: var(--surface-subtle);
}

.userlink {
  font-size: 13px;
  font-weight: 700;
  color: var(--royal-blue);
  background: var(--royal-soft);
  border: 1px solid #bfdbfe;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobileaccount {
  display: none;
}

.menutoggle {
  display: none;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
}

/* Floating Zalo Button */
.zalo-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99;
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.zalo-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(14, 165, 233, 0.5);
  color: #ffffff;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 650;
  background: linear-gradient(135deg, var(--royal-blue), #2563eb);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  white-space: nowrap;
}

.button:hover {
  background: linear-gradient(135deg, #1e40af, #1d4ed8);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.button:active {
  transform: translateY(0);
}

.button.secondary,
.secondary {
  background: #ffffff;
  border: 1px solid var(--line-strong);
  color: #1e293b !important;
  box-shadow: var(--shadow-sm);
}

.button.secondary:hover,
.secondary:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: var(--royal-blue) !important;
  box-shadow: var(--shadow);
}

.button.orange {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.25);
}

.button.orange:hover {
  background: #c2410c;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.35);
}

.button.danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
}

.button.danger:hover {
  background: #b91c1c;
}

.button.small,
.small {
  min-height: 34px;
  padding: 6px 14px;
  font-size: 12px;
  border-radius: 6px;
}

.button.full,
.full {
  width: 100%;
}

.button:disabled,
.button[disabled] {
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: #94a3b8 !important;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.button[aria-busy="true"] {
  opacity: 0.7;
  cursor: wait;
}

/* Actions & Gaming Buttons (Anti-cramming System) */
.actions, .account-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.actions form, .account-actions form {
  display: inline-flex;
  margin: 0;
  padding: 0;
}

.btn-game {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 18px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
  border: 1px solid transparent;
  line-height: 1.2;
  white-space: nowrap;
}

.btn-game .btn-icon {
  font-size: 15px;
  line-height: 1;
  display: inline-block;
}

.btn-game:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, #1d4ed8, #0284c7);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(0, 194, 219, 0.5);
  background: linear-gradient(135deg, #2563eb, #00c2db);
  color: #ffffff !important;
}

.btn-outline {
  background: #ffffff;
  color: var(--royal-blue) !important;
  border: 1.5px solid rgba(29, 78, 216, 0.35);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  background: var(--royal-soft);
  border-color: var(--royal-blue);
  color: var(--royal-blue-hover) !important;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.18);
}

.btn-danger-outline {
  background: #ffffff;
  color: #dc2626 !important;
  border: 1.5px solid rgba(220, 38, 38, 0.3);
  box-shadow: var(--shadow-sm);
}

.btn-danger-outline:hover {
  background: #fef2f2;
  border-color: #dc2626;
  color: #b91c1c !important;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

/* ==========================================================================
   Cards, Panels & Containers
   ========================================================================== */
.panel {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
  position: relative;
  transition: box-shadow var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.panel:hover {
  border-color: rgba(0, 194, 219, 0.35);
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.12), 0 0 16px rgba(0, 194, 219, 0.15);
}

.glass-panel {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 8px 30px rgba(0, 71, 171, 0.08);
}

.twocol {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

/* Player Space & Account Styling (Ethereal Scale) */
.account-grid {
  align-items: stretch;
  margin-top: 10px;
}

.profile-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.09);
}

.profile-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--royal-blue), var(--cyan));
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.avatar-frame {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  background: linear-gradient(135deg, #1d4ed8, #00c2db);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 0 20px rgba(0, 194, 219, 0.35);
  border: 2px solid #ffffff;
  flex-shrink: 0;
}

.avatar-letter {
  font-size: 26px;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.profile-title {
  flex: 1;
  min-width: 0;
}

.profile-title h2 {
  font-size: 22px;
  margin: 6px 0 0;
  color: var(--text-heading);
  letter-spacing: -0.5px;
}

.badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.account-details {
  background: var(--surface-subtle);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  padding: 14px 18px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
}

.detail-label {
  color: var(--muted);
  font-weight: 500;
}

.detail-val {
  color: var(--text);
  font-weight: 600;
}

.text-success {
  color: var(--success) !important;
}

.security-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.09);
}

.security-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--royal-blue));
}

.section {
  margin-top: 36px;
  margin-bottom: 36px;
}

.sectionhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.sectionhead h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
  color: #ffffff !important;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85), 0 0 4px rgba(0, 0, 0, 0.95);
}

.panel .sectionhead h2,
.admin-shell .sectionhead h2,
.dashboard-hero h2 {
  color: var(--text-heading) !important;
  text-shadow: none !important;
}

.panel .eyebrow,
.admin-shell .eyebrow {
  background: rgba(29, 78, 216, 0.08) !important;
  border-color: rgba(29, 78, 216, 0.25) !important;
  color: var(--royal-blue) !important;
  box-shadow: none !important;
}

.sectionhead .textlink {
  font-size: 13.5px;
  font-weight: 700;
  color: #38bdf8 !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(10, 20, 48, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.2);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.sectionhead .textlink:hover {
  background: rgba(56, 189, 248, 0.25);
  color: #ffffff !important;
  border-color: #38bdf8;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
  transform: translateY(-1px);
}

.textlink {
  font-size: 13.5px;
  font-weight: 700;
  color: #38bdf8;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color var(--transition-fast);
}

.textlink:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

.twocol {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 28px;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.badge.cyan,
.badge-cyan {
  background: #ecfeff;
  color: #0891b2;
  border-color: #a5f3fc;
}

.badge.blue,
.badge-blue {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.badge.amber,
.badge-amber {
  background: #fffbeb;
  color: #b45309;
  border-color: #fde68a;
}

.badge.rose,
.badge-rose {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

.badge.success,
.badge-success {
  background: #ecfdf5;
  color: #059669;
  border-color: #a7f3d0;
}

.badge.muted,
.muted {
  background: #f1f5f9;
  color: #64748b;
  border-color: #cbd5e1;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  margin-top: 24px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
  border: 1px solid #d0e3f7;
  box-shadow: 0 10px 30px rgba(29, 78, 216, 0.06);
}

.heroart {
  width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #e2e8f0;
}

.herocontent {
  padding: 36px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

.herocontent h1 {
  margin-bottom: 12px;
  color: #0f172a;
}

.herocontent h1 em {
  font-style: normal;
  color: var(--royal-blue);
  background: linear-gradient(135deg, #1d4ed8, #0ea5e9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.herocontent p {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 540px;
}

.heronote {
  border-left: 2px solid #e0e7ff;
  padding: 10px 0 10px 32px;
  min-width: 240px;
}

.outlinedstar {
  font-size: 28px;
  color: var(--cyan);
  display: block;
  line-height: 1;
  margin-bottom: 12px;
}

.heronote strong {
  font-size: 18px;
  line-height: 1.35;
  color: #0f172a;
  display: block;
}

.heronote p {
  font-size: 13px;
  margin: 6px 0 14px;
}

.heronote a {
  font-weight: 750;
  font-size: 13px;
  color: var(--royal-blue);
}

.heronote a:hover {
  color: #1e40af;
  text-decoration: underline;
}

/* Feature Strip */
.featurestrip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 24px 0;
  margin-top: 18px;
  border-bottom: 1px solid var(--line);
}

.featurestrip a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.featurestrip a:hover {
  transform: translateY(-2px);
  border-color: #bfdbfe;
  box-shadow: var(--shadow);
}

.featurestrip a > span {
  font-size: 16px;
  font-weight: 800;
  color: var(--royal-blue);
  background: var(--royal-soft);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.featurestrip strong {
  font-size: 14px;
  color: var(--text-heading);
  display: block;
}

.featurestrip small {
  font-size: 12px;
  color: var(--muted);
  display: block;
}

.featurestrip b {
  margin-left: auto;
  color: var(--cyan);
  font-size: 16px;
}

/* ==========================================================================
   News, Forum & Cards
   ========================================================================== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.postrow {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.postrow:hover {
  transform: translateY(-2px);
  border-color: #93c5fd;
  box-shadow: 0 8px 24px rgba(29, 78, 216, 0.08);
}

.posticon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--royal-soft);
  color: var(--royal-blue);
  font-size: 20px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-weight: 700;
}

.postrow h3 {
  font-size: 17px;
  margin: 0 0 4px;
  color: #1e3a8a;
}

.postrow small {
  color: var(--muted);
  font-size: 12.5px;
}

.postrow .arrow {
  margin-left: auto;
  color: var(--cyan);
  font-size: 18px;
  font-weight: 700;
}

.newsblank {
  min-height: 220px;
  border-radius: var(--radius);
  padding: 32px;
  background: linear-gradient(135deg, #f0f7ff, #ffffff);
  border: 1px dashed #bfdbfe;
  display: flex;
  align-items: center;
  gap: 24px;
}

.bigglyph {
  font-size: 54px;
  color: var(--royal-blue);
  line-height: 1;
}

/* Beginner Guide (Startguide) */
.startguide ol {
  padding: 0;
  list-style: none;
  margin: 20px 0;
}

.startguide li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.startguide li > span {
  font-size: 12px;
  font-weight: 800;
  color: var(--royal-blue);
  background: var(--royal-soft);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid #dbeafe;
}

.startguide strong {
  font-size: 14px;
  display: block;
  color: var(--text-heading);
}

.startguide p {
  font-size: 12.5px;
  margin: 2px 0 0;
}

/* Community Callout */
.community {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 32px 0 54px;
  padding: 36px 42px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
  border: 1px solid #bfdbfe;
  box-shadow: 0 8px 24px rgba(29, 78, 216, 0.06);
  position: relative;
  overflow: hidden;
}

.community h2 {
  font-size: 30px;
  margin-bottom: 8px;
}

.communityart {
  font-size: 110px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -10px;
  color: rgba(29, 78, 216, 0.05);
  position: relative;
  user-select: none;
}

.communityart span {
  font-size: 70px;
  color: rgba(0, 194, 219, 0.3);
  position: absolute;
  right: 0;
  top: -10px;
}

/* ==========================================================================
   Forms, Inputs & Tabs (Dragon Ball Obsidian Glass Style)
   ========================================================================== */
.formpanel {
  max-width: 500px;
  margin: 18px auto 48px;
  background: linear-gradient(135deg, rgba(10, 22, 52, 0.92) 0%, rgba(14, 28, 66, 0.88) 100%) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.5), 0 0 28px rgba(0, 194, 219, 0.15) !important;
  padding: 32px 30px;
}

.formpanel.wide {
  max-width: 860px;
}

.formpanel .tabs {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 24px;
  gap: 8px;
}

.formpanel .tabs a {
  flex: 1;
  text-align: center;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 14.5px;
  color: #94a3b8;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.formpanel .tabs a:hover {
  color: #f1f5f9;
}

.formpanel .tabs a[aria-current="page"],
.formpanel .tabs a[aria-current] {
  color: #38bdf8;
  border-bottom-color: #38bdf8;
  font-weight: 800;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
}

.formpanel label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 18px;
  letter-spacing: 0.2px;
}

.formpanel input, 
.formpanel textarea, 
.formpanel select {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 11px 16px;
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  border: 1.5px solid rgba(56, 189, 248, 0.3);
  border-radius: 8px;
  min-height: 46px;
  font-family: var(--font-body);
  font-size: 14.5px;
  transition: all var(--transition-fast);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.formpanel input:focus, 
.formpanel textarea:focus, 
.formpanel select:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.35), inset 0 2px 4px rgba(0, 0, 0, 0.3);
  background: rgba(15, 23, 42, 0.92);
  outline: none;
}

.formpanel input::placeholder {
  color: #64748b;
}

.formpanel .button.full {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 800;
  border: 1px solid rgba(254, 240, 138, 0.4);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
  letter-spacing: 0.5px;
}

.formpanel .button.full:hover {
  background: linear-gradient(135deg, #fbbf24, #ea580c);
  box-shadow: 0 6px 22px rgba(245, 158, 11, 0.6);
  transform: translateY(-1px);
}

.formpanel .fine {
  color: #94a3b8;
  font-size: 12.5px;
  line-height: 1.5;
}

.formpanel details summary {
  color: #38bdf8 !important;
  font-weight: 700;
  cursor: pointer;
}

.formpanel details p {
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.5;
}

label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 18px;
}

input, textarea, select {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 14px;
  background: #ffffff;
  color: var(--text);
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  min-height: 44px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

input:focus, textarea:focus, select:focus {
  border-color: var(--royal-blue);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
  outline: none;
}

textarea {
  resize: vertical;
}

input[type="checkbox"],
input[type="radio"] {
  display: inline-block;
  width: auto;
  min-height: auto;
  margin: 0 8px 0 0;
  vertical-align: middle;
  cursor: pointer;
}

label:has(input[type="checkbox"]),
label:has(input[type="radio"]) {
  font-weight: 500;
  cursor: pointer;
}

.notice {
  margin: 20px 0;
  padding: 14px 18px;
  background: #eff6ff;
  color: #1e3a8a;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  font-size: 13.5px;
  line-height: 1.5;
}

.notice-success {
  background: var(--success-bg);
  color: #065f46;
  border-color: var(--success-line);
}

.notice-danger {
  background: var(--danger-bg);
  color: #991b1b;
  border-color: var(--danger-line);
}

.empty {
  text-align: center;
  padding: 48px 24px;
}

.empty .bigglyph {
  margin-bottom: 12px;
  display: inline-block;
}

.empty h2, .empty h1 {
  margin-bottom: 8px;
}

/* ==========================================================================
   Admin Control Room Layout & Components
   ========================================================================== */
.admin-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin: 24px 0 60px;
}

.admin-sidebar {
  position: sticky;
  top: 80px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.admin-nav-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.admin-nav-heading {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #94a3b8;
  padding: 6px 12px 2px;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.admin-nav-link:hover {
  background: var(--surface-subtle);
  color: var(--text-heading);
}

.admin-nav-link[aria-current="page"],
.admin-nav-link[aria-current] {
  background: var(--royal-soft);
  color: var(--royal-blue);
  font-weight: 700;
}

.admin-nav-link.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.admin-main {
  min-width: 0;
}

.admin-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 16px;
}

.admin-breadcrumbs a {
  color: var(--muted);
}

.admin-breadcrumbs a:hover {
  color: var(--royal-blue);
}

.admin-breadcrumbs .sep {
  color: #cbd5e1;
}

/* Dashboard Hero & Stats */
.dashboard-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
  border: 1px solid #bfdbfe;
  padding: 24px 28px;
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.dashboard-hero h2 {
  font-size: 24px;
  margin-bottom: 4px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.dashboard-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  min-height: 160px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.dashboard-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: #93c5fd;
}

.dashboard-icon {
  font-size: 26px;
  color: var(--royal-blue);
  margin-bottom: 2px;
}

.dashboard-card strong {
  font-size: 16px;
  color: #1e3a8a;
}

.dashboard-card b {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
  line-height: 1.4;
}

.dashboard-status {
  margin-top: auto;
  font-size: 11px;
  font-weight: 700;
  color: var(--royal-blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dashboard-columns {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 22px;
  margin-bottom: 24px;
}

.queue-row {
  display: grid;
  grid-template-columns: 50px 1fr 24px;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 8px;
  margin-bottom: 8px;
  background: #f8fafc;
  border: 1px solid var(--line);
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.queue-row:hover {
  background: var(--royal-soft);
  border-color: #bfdbfe;
  transform: translateX(2px);
}

.queue-row strong {
  font-size: 22px;
  font-weight: 800;
  color: var(--royal-blue);
}

.queue-row span {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-heading);
}

.queue-row b {
  color: var(--cyan);
  font-size: 16px;
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 16px 0;
}

.dashboard-metrics div {
  padding: 14px 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.dashboard-metrics dt {
  font-size: 11.5px;
  color: #64748b;
  font-weight: 600;
}

.dashboard-metrics dd {
  margin: 4px 0 0;
  color: #1e3a8a;
  font-size: 20px;
  font-weight: 800;
}

.activity-row {
  display: grid;
  grid-template-columns: 140px 1fr 150px;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  align-items: center;
}

.activity-row:last-child {
  border-bottom: none;
}

.activity-row span:first-child {
  font-weight: 700;
  color: var(--royal-blue);
}

.activity-row small {
  color: var(--muted);
  text-align: right;
}

.adminrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--line);
  margin-bottom: 8px;
  transition: border-color var(--transition-fast);
}

.adminrow:hover {
  border-color: #93c5fd;
}

.adminrow > a {
  font-weight: 600;
  color: var(--text-heading);
}

.adminrow > a:hover {
  color: var(--royal-blue);
}

/* ==========================================================================
   Universal Table & Button Spacing System (Anti-cramming UI/UX)
   ========================================================================== */

/* Universal table wrapper with smooth horizontal scroll */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.table-responsive.dark {
  background: rgba(13, 31, 60, 0.95);
  border-color: rgba(56, 189, 248, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Master Table Design */
.db-table {
  width: 100%;
  min-width: 680px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13.5px;
  color: #334155;
  text-align: left;
}

.db-table th {
  background: #f8fafc;
  color: #1e293b;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 16px 20px;
  border-bottom: 2px solid #e2e8f0;
  white-space: nowrap;
}

.db-table td {
  padding: 16px 20px;
  vertical-align: middle;
  border-bottom: 1px solid #f1f5f9;
  background: #ffffff;
  transition: background var(--transition-fast);
}

.db-table tbody tr:last-child td {
  border-bottom: none;
}

.db-table tbody tr:hover td {
  background: #f0f7ff;
}

/* Dark Theme Table for Game Panels */
.db-table.dark-table th {
  background: rgba(10, 22, 48, 0.95);
  color: #38bdf8;
  border-bottom: 2px solid rgba(56, 189, 248, 0.3);
}

.db-table.dark-table td {
  background: transparent;
  color: #e2e8f0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.db-table.dark-table tbody tr:hover td {
  background: rgba(56, 189, 248, 0.08);
}

/* Cell Actions (Always properly spaced buttons) */
.cell-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px !important;
  flex-wrap: wrap;
}

.cell-actions .button,
.cell-actions .btn-sm {
  margin: 0 !important;
  min-height: 34px;
  padding: 6px 14px;
  font-size: 12.5px;
  border-radius: 6px;
  gap: 6px;
}

/* Enhanced Button Spacing & Form Button Groups */
.btn-group,
.form-actions {
  display: flex;
  align-items: center;
  gap: 14px !important;
  flex-wrap: wrap;
  margin-top: 18px;
}

/* Filter Tabs */
.filter-tabs {
  display: flex;
  gap: 12px !important;
  margin-bottom: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-tab {
  padding: 8px 18px !important;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  background: #ffffff;
  border: 1px solid var(--line);
  color: #475569;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.filter-tab:hover {
  background: #f8fafc;
  color: var(--text-heading);
  border-color: #cbd5e1;
  text-decoration: none;
}

.filter-tab.active,
.filter-tab[aria-current="true"] {
  background: var(--royal-blue);
  color: #ffffff !important;
  border-color: var(--royal-blue);
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.25);
}


/* ==========================================================================
   Server Control (Scoped for test compatibility)
   ========================================================================== */
.server-control {
  margin-bottom: 48px;
  min-width: 0;
  color: var(--text);
}

.server-control .server-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.server-control .panel {
  min-width: 0;
  background: #ffffff;
  border-color: #cbd5e1;
}

.server-control h2 {
  font-size: 22px;
}

.server-control h3 {
  margin-top: 24px;
  font-size: 18px;
}

.server-control .server-feedback {
  padding: 10px 14px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  color: #1e40af;
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.server-control .server-stale .server-feedback {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

.server-control .server-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0;
}

.server-control .server-metrics div {
  min-width: 0;
}

.server-control .server-wide {
  grid-column: 1 / -1;
}

.server-control dt {
  font-size: 11.5px;
  color: #64748b;
  font-weight: 600;
}

.server-control dd {
  margin: 4px 0 0;
  font-size: 17px;
  font-weight: 800;
  color: #1e3a8a;
  overflow-wrap: anywhere;
}

.server-control .server-wide dd {
  font-size: 13.5px;
  font-weight: 600;
}

.server-control .server-snapshot {
  margin-top: 24px;
}

.server-control .server-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  margin-top: 12px;
}

.server-control table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 12.5px;
  color: #334155;
}

.server-control caption {
  text-align: left;
  padding: 10px 14px;
  background: #f8fafc;
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
  border-bottom: 1px solid #e2e8f0;
}

.server-control th, .server-control td {
  padding: 11px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #e2e8f0;
  overflow-wrap: anywhere;
}

.server-control th {
  background: #f1f5f9;
  color: #1e293b;
  font-weight: 700;
}

.server-control th:nth-child(2) {
  width: 20%;
}

.server-control td {
  background: #ffffff;
}

.server-control tbody tr:last-child td {
  border-bottom: 0;
}

.server-control .server-events {
  padding-left: 20px;
  color: #475569;
  font-size: 13px;
  margin: 12px 0 0;
}

.server-control .server-events li {
  padding: 5px 0;
  overflow-wrap: anywhere;
}

/* ==========================================================================
   Footer
   ========================================================================== */
/* ==========================================================================
   Footer (Dragon Ball Dark Glass Atmosphere)
   ========================================================================== */
.footer {
  border-top: 1px solid rgba(56, 189, 248, 0.25);
  background: rgba(10, 18, 38, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding-top: 48px;
  margin-top: 64px;
  color: #e2e8f0;
}

.footergrid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}

.footerbrand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0.5px;
  color: #ffffff;
  text-decoration: none;
  display: inline-block;
  text-shadow: 0 0 16px rgba(0, 194, 219, 0.35);
}

.footerbrand span {
  color: #38bdf8;
  text-shadow: 0 0 14px rgba(56, 189, 248, 0.6);
}

.footergrid p {
  font-size: 13.5px;
  margin: 10px 0;
  max-width: 320px;
  color: #cbd5e1;
}

.footergrid small {
  color: #94a3b8;
  font-size: 12px;
}

.footergrid strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.footergrid > div:not(:first-child) a {
  display: block;
  color: #cbd5e1;
  font-size: 13.5px;
  margin: 10px 0;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.footergrid > div:not(:first-child) a:hover {
  color: #38bdf8;
  transform: translateX(4px);
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

.footerbottom {
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12.5px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

/* ==========================================================================
   Responsive Viewports
   ========================================================================== */
@media (min-width: 1500px) {
  .container { max-width: 1340px; }
  .navwrap { max-width: 1440px; }
}

@media (max-width: 1100px) {
  .navwrap {
    padding: 12px 18px;
    gap: 14px;
  }
  .navwrap nav {
    gap: 12px;
    font-size: 13px;
  }
  .dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .navwrap {
    flex-wrap: wrap;
    padding: 12px 16px;
    gap: 12px;
  }
  .brand {
    order: 1;
  }
  .menutoggle {
    display: block;
    order: 2;
    margin-left: auto;
  }
  .navaccount {
    order: 3;
    margin-left: 0;
    gap: 8px;
  }
  .navwrap nav {
    order: 4;
    width: 100%;
    margin: 8px 0 0;
    padding-top: 8px;
    border-top: 1px solid var(--line);
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px;
  }
  .navwrap nav a[aria-current="page"]::after,
  .navwrap nav a[aria-current]::after {
    bottom: -8px;
  }
  .admin-shell {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    position: static;
    top: 0;
  }
  .dashboard-columns {
    grid-template-columns: 1fr;
  }
  .twocol {
    grid-template-columns: 1fr;
  }
  .cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  .herocontent {
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
  }
  .heronote {
    border-left: none;
    border-top: 2px solid #e0e7ff;
    padding: 20px 0 0;
  }
  .featurestrip {
    grid-template-columns: 1fr;
  }
  .footergrid {
    grid-template-columns: 1fr 1fr;
  }
  .footergrid > div:first-child {
    grid-column: 1 / -1;
  }
  .server-control .server-panels {
    grid-template-columns: 1fr;
  }
}

/* Mobile adjustments (520px and below, down to 320px) */
@media (max-width: 520px) {
  .container {
    padding: 0 12px;
  }
  
  /* Header compact mode: auth buttons must stay cleanly visible */
  .navwrap {
    padding: 10px 12px;
    gap: 8px;
    flex-wrap: wrap;
  }

  .brand {
    font-size: 13px;
    gap: 6px;
  }
  .brand small {
    display: none;
  }
  .brandmark {
    width: 28px;
    height: 28px;
    border-radius: 7px;
  }
  .brandmark .brand-svg {
    width: 20px;
    height: 20px;
  }

  .menutoggle {
    display: block;
    margin-left: auto;
  }

  .navaccount {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    margin-left: 0;
  }

  .loginlink {
    font-size: 11px;
    padding: 6px 8px;
  }

  .userlink {
    font-size: 11px;
    padding: 5px 10px;
    max-width: 100px;
  }

  .button.small, .small {
    min-height: 30px;
    padding: 5px 10px;
    font-size: 11px;
  }

  /* Mobile navigation drawer */
  .navwrap nav {
    display: none;
    order: 10;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 10px 0 0;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }

  .navwrap nav.open {
    display: flex;
  }

  .navwrap nav a {
    padding: 10px 8px;
    border-bottom: 1px solid #f1f5f9;
  }
  .navwrap nav a[aria-current="page"]::after,
  .navwrap nav a[aria-current]::after {
    display: none;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-metrics {
    grid-template-columns: 1fr;
  }

  .activity-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .activity-row small {
    text-align: left;
  }

  .adminrow {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .footerbottom {
    flex-direction: column;
    gap: 8px;
  }

  .zalo-float {
    bottom: 16px;
    right: 16px;
    padding: 8px 14px;
    font-size: 12px;
  }
}

/* ==========================================================================
   Dragon Ball Gaming Theme Elements & Universe Status
   ========================================================================== */
.universe-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(135deg, rgba(10, 22, 52, 0.94) 0%, rgba(15, 30, 68, 0.88) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(250, 204, 21, 0.45);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45), 0 0 28px rgba(250, 204, 21, 0.15);
  border-radius: var(--radius-lg);
  padding: 24px 30px;
  margin: 24px 0 32px;
  position: relative;
  overflow: hidden;
  flex-wrap: wrap;
}

.universe-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #f59e0b, #00c2db, #f59e0b);
  background-size: 200% 100%;
  animation: aura-shift 4s linear infinite;
}

@keyframes aura-shift {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

.universe-info {
  display: flex;
  align-items: center;
  gap: 18px;
}

.universe-titles h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.universe-titles p {
  margin: 4px 0 0;
  color: #cbd5e1;
  font-size: 13.5px;
}

.universe-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid #10b981;
  color: #34d399;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-dot 1.8s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f1f5f9;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-full);
}

.stat-pill.gold {
  border-color: rgba(250, 204, 21, 0.45);
  color: #fde047;
  background: rgba(245, 158, 11, 0.15);
}

.stat-pill.cyan {
  border-color: rgba(56, 189, 248, 0.45);
  color: #38bdf8;
  background: rgba(14, 165, 233, 0.15);
}

/* 7 Dragon Balls Constellation */
.dragonball-constellation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 14px auto 20px;
  padding: 8px 18px;
  background: rgba(10, 20, 48, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(250, 204, 21, 0.35);
  border-radius: var(--radius-full);
  box-shadow: 0 0 20px rgba(250, 204, 21, 0.15);
  width: fit-content;
}

.constellation-ball {
  transition: transform 0.2s ease, filter 0.2s ease;
  cursor: pointer;
  display: inline-flex;
}

.constellation-ball:hover {
  transform: scale(1.25) translateY(-3px);
  filter: drop-shadow(0 0 12px rgba(245, 158, 11, 0.95));
}

/* Dragon Ball 4-Character Feature Cards Grid */
.char-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 28px 0 36px;
}

.char-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, rgba(10, 22, 52, 0.9) 0%, rgba(15, 30, 68, 0.85) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  position: relative;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  overflow: hidden;
}

.char-card:hover {
  transform: translateY(-4px);
  border-color: #38bdf8;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 24px rgba(56, 189, 248, 0.35);
}

.char-card.gold-card {
  border-color: rgba(250, 204, 21, 0.35);
}

.char-card.gold-card:hover {
  border-color: #facc15;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 24px rgba(250, 204, 21, 0.35);
}

.char-avatar-box {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  margin-bottom: 16px;
  background: radial-gradient(circle at 35% 30%, #1e3a8a 0%, #0f172a 100%);
  border: 2px solid rgba(56, 189, 248, 0.6);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.char-card.gold-card .char-avatar-box {
  border-color: rgba(250, 204, 21, 0.7);
  box-shadow: 0 0 18px rgba(250, 204, 21, 0.4);
}

.char-card h3 {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px;
}

.char-card p {
  font-size: 13px;
  color: #cbd5e1;
  margin: 0 0 18px;
  line-height: 1.5;
  flex-grow: 1;
}

.char-actions {
  margin-top: auto;
}

.char-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 9px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.char-btn:hover {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  box-shadow: 0 6px 18px rgba(14, 165, 233, 0.5);
  transform: translateY(-1px);
}

.char-btn.gold {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
  border-color: rgba(254, 240, 138, 0.3);
}

.char-btn.gold:hover {
  background: linear-gradient(135deg, #fbbf24, #ea580c);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.5);
}

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

@media (max-width: 580px) {
  .char-grid {
    grid-template-columns: 1fr;
  }
  .universe-card {
    padding: 20px 18px;
  }
  .universe-info {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* ==========================================================================
   Dragon Blue - Encyclopedia Guide System Styles
   ========================================================================== */

.guide-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 0 60px;
}

/* Guide Hero */
.guide-hero {
  background: linear-gradient(135deg, rgba(13, 31, 60, 0.92) 0%, rgba(10, 20, 42, 0.96) 100%);
  border: 1px solid rgba(0, 194, 219, 0.25);
  border-radius: var(--radius-lg);
  padding: 40px 32px 32px;
  margin-bottom: 24px;
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 194, 219, 0.15);
  position: relative;
  overflow: hidden;
  color: #fff;
  text-align: center;
}

.guide-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 194, 219, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.guide-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  margin: 6px 0 12px;
  background: linear-gradient(135deg, #ffffff 30%, #a5f3fc 70%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

.guide-subtitle {
  font-size: clamp(15px, 1.8vw, 17px);
  color: #94a3b8;
  max-width: 750px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

/* Guide Search */
.guide-search-wrapper {
  max-width: 620px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.guide-search-box {
  display: flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(0, 194, 219, 0.35);
  border-radius: var(--radius-full);
  padding: 6px 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), inset 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all var(--transition);
}

.guide-search-box:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 194, 219, 0.3), 0 8px 28px rgba(0, 0, 0, 0.4);
  background: rgba(15, 23, 42, 0.95);
}

.guide-search-box .search-icon {
  font-size: 18px;
  margin-right: 12px;
  color: var(--cyan);
}

.guide-search-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 15px;
  font-family: var(--font-body);
  padding: 8px 0;
}

.guide-search-box input::placeholder {
  color: #64748b;
}

.guide-search-box button {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: var(--transition-fast);
}

.guide-search-box button:hover {
  background: var(--danger);
}

/* Sticky Quick Navigation */
.guide-nav {
  position: sticky;
  top: 72px;
  z-index: 40;
  background: rgba(11, 19, 41, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 10px 14px;
  margin-bottom: 30px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.guide-nav-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
  scrollbar-color: var(--cyan) transparent;
}

.guide-nav-scroll::-webkit-scrollbar {
  height: 4px;
}

.guide-nav-scroll::-webkit-scrollbar-thumb {
  background: var(--cyan);
  border-radius: 4px;
}

.guide-nav-item {
  white-space: nowrap;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 600;
  color: #94a3b8;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition);
}

.guide-nav-item .nav-icon {
  font-size: 14px;
}

.guide-nav-item:hover {
  color: #fff;
  background: rgba(0, 194, 219, 0.15);
  border-color: rgba(0, 194, 219, 0.4);
  transform: translateY(-1px);
}

.guide-nav-item.active {
  color: #0b1329;
  background: linear-gradient(135deg, #00c2db, #38bdf8);
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(0, 194, 219, 0.4);
}

/* Guide Sections & Cards */
.guide-sections {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.guide-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  position: relative;
  transition: box-shadow var(--transition);
}

.guide-card:hover {
  box-shadow: var(--shadow-lg), 0 0 20px rgba(0, 194, 219, 0.1);
  border-color: var(--line-accent);
}

.guide-card-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.guide-card-tag {
  font-size: 12px;
  font-weight: 800;
  color: var(--cyan);
  background: rgba(0, 194, 219, 0.12);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.guide-card-header h2 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 800;
  color: var(--text-heading);
  margin: 0 0 8px;
}

.guide-card-desc {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

/* Grid 3 Columns */
.grid-3-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Planet Boxes */
.planet-box {
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  position: relative;
  transition: all var(--transition);
}

.planet-box:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.planet-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 12px;
  letter-spacing: 0.06em;
}

.planet-earth .planet-badge { background: #dbeafe; color: #1e40af; }
.planet-namek .planet-badge { background: #d1fae5; color: #065f46; }
.planet-saiyan .planet-badge { background: #fee2e2; color: #991b1b; }

.planet-box h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text-heading);
}

.planet-box p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 14px;
}

.guide-list {
  padding-left: 18px;
  margin: 0;
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.6;
}

.guide-list li {
  margin-bottom: 6px;
}

/* Split Content (Text left, Image right) */
.guide-content-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: center;
}

.guide-feature-point {
  background: var(--surface-subtle);
  border-left: 4px solid var(--cyan);
  padding: 14px 16px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 14px;
}

.guide-feature-point h4 {
  margin: 0 0 6px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text-heading);
}

.guide-feature-point p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* Media Box & Image Styling */
.guide-media-box {
  background: #0b1329;
  border: 1px solid rgba(0, 194, 219, 0.25);
  border-radius: var(--radius);
  padding: 12px;
  text-align: center;
  box-shadow: var(--shadow);
}

.guide-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  display: block;
  cursor: zoom-in;
  transition: transform var(--transition);
}

.guide-img:hover {
  transform: scale(1.02);
}

.img-caption {
  display: block;
  font-size: 12.5px;
  color: #94a3b8;
  margin-top: 8px;
  font-style: italic;
}

/* Galleries & Albums (Light Blue High Contrast Theme) */
.gallery-container {
  background: #ffffff;
  border: 1.5px solid #bae6fd;
  border-radius: 18px;
  padding: 24px;
  margin-top: 20px;
  color: #0f172a;
  box-shadow: 0 8px 30px rgba(2, 132, 199, 0.08);
}

.gallery-header {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
  border-bottom: 1.5px solid #e2e8f0;
  padding-bottom: 16px;
}

.gallery-title {
  font-size: 16px;
  font-weight: 800;
  color: #0369a1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.g-tab {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  color: #334155;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.g-tab:hover {
  background: #e0f2fe;
  border-color: #38bdf8;
  color: #0284c7;
}

.g-tab.active {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border-color: #0284c7;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}

.gallery-viewport {
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f9ff;
  border: 1.5px solid #bae6fd;
  border-radius: 14px;
  padding: 20px;
}

.gallery-slide {
  display: none;
  width: 100%;
  animation: fadeIn 0.25s ease;
}

.gallery-slide.active {
  display: block;
}

.gallery-img {
  max-height: 480px;
  object-fit: contain;
  margin: 0 auto;
  border-radius: 12px;
  border: 2px solid #bae6fd;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Skill Cards */
.skill-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 18px;
  transition: all var(--transition);
}

.skill-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(2, 132, 199, 0.1);
  border-color: #0284c7;
}

.skill-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 10px;
}

.skill-badge.earth { background: #dbeafe; color: #1e40af; }
.skill-badge.namek { background: #d1fae5; color: #065f46; }
.skill-badge.saiyan { background: #fee2e2; color: #991b1b; }

.skill-img-wrap {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 10px;
  margin-bottom: 12px;
}

.skill-card h4 {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 6px;
  color: #0f172a;
}

.skill-card p {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.5;
  margin: 0;
}

/* Quest & Items Box */
.quest-box, .disciple-box {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 18px;
  transition: all var(--transition);
}

.quest-box:hover, .disciple-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(2, 132, 199, 0.1);
  border-color: #0284c7;
}

.quest-box img, .disciple-box img {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 8px;
  margin-bottom: 12px;
}

.quest-box h4, .disciple-box h4 {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 6px;
  color: #0f172a;
}

.quest-box p, .disciple-box p {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.55;
  margin: 0;
}

.disciple-tag {
  font-size: 11px;
  font-weight: 800;
  color: #f97316;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-bottom: 10px;
}

/* Arena Details */
.arena-content-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}

@media (max-width: 768px) {
  .arena-content-wrap {
    grid-template-columns: 1fr;
  }
}

.arena-desc h4 {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 10px;
  color: #0369a1;
}

.arena-desc p {
  font-size: 14px;
  color: #334155;
  line-height: 1.6;
  margin-bottom: 14px;
}

/* Guide Tables (High Contrast Light Blue Table) */
.guide-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13.5px;
  margin-top: 12px;
  background: #ffffff;
  border: 1.5px solid #bae6fd;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.guide-table th, .guide-table td {
  padding: 12px 16px;
  text-align: left;
}

.guide-table th {
  background: #e0f2fe;
  color: #0369a1;
  font-weight: 800;
  font-size: 13.5px;
  border-bottom: 2px solid #bae6fd;
}

.guide-table td {
  color: #0f172a;
  background: #ffffff;
  font-weight: 500;
  border-bottom: 1px solid #f1f5f9;
}

.guide-table tr:last-child td {
  border-bottom: none;
}

.guide-table tr:nth-child(even) td {
  background: #f8fafc;
}

.guide-table td strong {
  color: #0284c7;
  font-weight: 800;
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 12, 28, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox-content {
  position: relative;
  max-width: 92vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 194, 219, 0.3);
  border: 2px solid rgba(0, 194, 219, 0.4);
}

.lightbox-caption {
  color: #e2e8f0;
  font-size: 15px;
  font-weight: 600;
  margin-top: 14px;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #fff;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.lightbox-close:hover {
  color: var(--danger);
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

/* Responsive Rules */
@media (max-width: 900px) {
  .grid-3-col {
    grid-template-columns: 1fr;
  }
  .guide-content-split {
    grid-template-columns: 1fr;
  }
  .arena-content-wrap {
    grid-template-columns: 1fr;
  }
  .guide-hero {
    padding: 28px 18px;
  }
  .skill-gif-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Quick Platform Download & Action Shortcuts */
.quick-access-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.quick-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  color: #fff;
  text-decoration: none;
  transition: all var(--transition);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.quick-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  border-color: rgba(0, 194, 219, 0.5);
  background: rgba(20, 35, 65, 0.95);
  color: #fff;
}

.quick-btn .q-icon {
  font-size: 24px;
}

.quick-btn strong {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
}

.quick-btn small {
  color: #94a3b8;
  font-size: 12px;
}

.quick-btn.gold { border-color: rgba(245, 158, 11, 0.35); }
.quick-btn.gold:hover { border-color: #f59e0b; box-shadow: 0 6px 20px rgba(245, 158, 11, 0.25); }
.quick-btn.cyan { border-color: rgba(0, 194, 219, 0.35); }
.quick-btn.cyan:hover { border-color: var(--cyan); box-shadow: 0 6px 20px rgba(0, 194, 219, 0.25); }
.quick-btn.blue { border-color: rgba(59, 130, 246, 0.35); }
.quick-btn.blue:hover { border-color: #60a5fa; box-shadow: 0 6px 20px rgba(59, 130, 246, 0.25); }
.quick-btn.zalo { border-color: rgba(37, 99, 235, 0.4); background: rgba(30, 58, 138, 0.4); }
.quick-btn.zalo:hover { border-color: #3b82f6; background: rgba(30, 58, 138, 0.7); }

/* GIF Skills Grid */
.skill-gif-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gif-skill-card {
  background: #0f172a;
  border: 1px solid rgba(0, 194, 219, 0.25);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  color: #fff;
  transition: all var(--transition);
}

.gif-skill-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 194, 219, 0.2);
  border-color: var(--cyan);
}

.gif-skill-card.gold {
  border-color: rgba(245, 158, 11, 0.3);
}

.gif-skill-card.gold:hover {
  border-color: #f59e0b;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.25);
}

.gif-frame {
  background: #060b18;
  border-radius: var(--radius-sm);
  padding: 10px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.gif-frame img {
  max-width: 100%;
  max-height: 110px;
  object-fit: contain;
}

.gif-skill-card h4 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.gif-skill-card small {
  color: #94a3b8;
  font-size: 12.5px;
}

/* ==========================================================================
   Age Warning Bar (12+)
   ========================================================================== */
.age-warning-bar {
  background: rgba(8, 14, 28, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  padding: 6px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  z-index: 50;
  letter-spacing: 0.2px;
}

.age-badge {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  font-weight: 800;
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 4px;
  display: inline-block;
  letter-spacing: 0;
  box-shadow: 0 1px 4px rgba(245, 158, 11, 0.3);
}

/* ==========================================================================
   Quick Guide Grid & Cards (Homepage)
   ========================================================================== */
.quick-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.quick-guide-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  text-decoration: none;
  color: #fff;
  position: relative;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.quick-guide-card:hover {
  transform: translateY(-3px);
  background: rgba(15, 23, 42, 0.9);
  text-decoration: none;
  color: #fff;
}

.quick-guide-card.cyan:hover {
  border-color: var(--cyan);
  box-shadow: 0 8px 24px rgba(0, 194, 219, 0.22);
}

.quick-guide-card.gold:hover {
  border-color: #f59e0b;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.22);
}

.quick-guide-card.danger:hover {
  border-color: #ef4444;
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.22);
}

.qg-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.quick-guide-card:hover .qg-icon {
  transform: scale(1.12) rotate(4deg);
}

.quick-guide-card.cyan .qg-icon {
  background: rgba(0, 194, 219, 0.15);
  border: 1px solid rgba(0, 194, 219, 0.3);
}

.quick-guide-card.gold .qg-icon {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.quick-guide-card.danger .qg-icon {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.qg-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.qg-info strong {
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}

.qg-info small {
  font-size: 12px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qg-arrow {
  color: #64748b;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.quick-guide-card:hover .qg-arrow {
  color: var(--cyan);
  transform: translate(3px, -3px);
}

.quick-guide-card.gold:hover .qg-arrow {
  color: #f59e0b;
}

.quick-guide-card.danger:hover .qg-arrow {
  color: #ef4444;
}

/* ==========================================================================
   Account & Player Space (Phase 2)
   ========================================================================== */
/* ==========================================================================
   Account & Player Space (Light Blue High-Contrast Theme)
   ========================================================================== */
.account-hero-card {
  background: #ffffff;
  border: 1.5px solid #bae6fd;
  border-radius: 18px;
  padding: 26px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(2, 132, 199, 0.08);
}

.account-hero-left {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.player-avatar-box {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: #f0f9ff;
  border: 3px solid #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(2, 132, 199, 0.25);
  flex-shrink: 0;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.player-avatar-box:hover {
  transform: scale(1.06);
}

.player-avatar-box.race-0 {
  border-color: #0284c7;
  box-shadow: 0 0 20px rgba(2, 132, 199, 0.3);
  background: #f0f9ff;
}

.player-avatar-box.race-1 {
  border-color: #10b981;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
  background: #ecfdf5;
}

.player-avatar-box.race-2 {
  border-color: #f59e0b;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
  background: #fffbeb;
}

.player-avatar-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.player-hero-info {
  display: flex;
  flex-direction: column;
}

.account-hero-card h2 {
  color: #0f172a !important;
}

.player-hero-title {
  color: #0f172a !important;
  font-size: 24px;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 6px 0 4px;
}

.player-char-tag {
  font-size: 13.5px;
  font-weight: 700;
  color: #0284c7;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  padding: 3px 12px;
}

.player-meta-info {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13.5px;
  color: #475569;
  margin-top: 6px;
}

.player-meta-info span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.player-meta-info strong {
  color: #0f172a;
}

.account-hero-right {
  display: flex;
  align-items: center;
  gap: 14px !important;
  flex-wrap: wrap;
}

/* Wallet Grid (Light Mode) */
.wallet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.wallet-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 125px;
  position: relative;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.wallet-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(2, 132, 199, 0.12);
}

.wallet-card.primary {
  border-color: #bae6fd;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.wallet-card.gold {
  border-color: #fde68a;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.wallet-card.ruby {
  border-color: #fecdd3;
  background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
}

.wallet-card.donate {
  border-color: #e9d5ff;
  background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
}

.wc-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.wc-icon {
  font-size: 22px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wallet-card.primary .wc-icon {
  background: #bae6fd;
  color: #0284c7;
}

.wallet-card.gold .wc-icon {
  background: #fde68a;
  color: #d97706;
}

.wallet-card.ruby .wc-icon {
  background: #fecdd3;
  color: #e11d48;
}

.wallet-card.donate .wc-icon {
  background: #e9d5ff;
  color: #9333ea;
}

.wc-label {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wallet-card.primary .wc-label { color: #0369a1; }
.wallet-card.gold .wc-label { color: #b45309; }
.wallet-card.ruby .wc-label { color: #be123c; }
.wallet-card.donate .wc-label { color: #7e22ce; }

.wc-val {
  font-size: 24px;
  font-weight: 900;
  display: block;
  margin-bottom: 4px;
}

.wallet-card.primary .wc-val { color: #0c4a6e; }
.wallet-card.gold .wc-val { color: #78350f; }
.wallet-card.ruby .wc-val { color: #881337; }
.wallet-card.donate .wc-val { color: #581c87; }

.wc-val small {
  font-size: 13px;
  font-weight: 700;
}

.wc-link {
  font-size: 13px;
  font-weight: 700;
  color: #0284c7;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.wc-link:hover {
  color: #0369a1;
  text-decoration: underline;
}

.wc-sub {
  font-size: 12.5px;
  color: #64748b;
  font-weight: 600;
}

/* Zalo Notice Card (Light Blue Theme) */
.zalo-notice-card {
  background: #eff6ff;
  border: 1.5px solid #93c5fd;
  border-radius: 16px;
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.08);
}

.zalo-notice-content {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  max-width: 780px;
}

.zalo-notice-content h3 {
  color: #1e40af !important;
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 6px;
}

.zalo-notice-content p {
  color: #1e3a8a !important;
  font-size: 14px;
  line-height: 1.6;
}

.zalo-notice-icon {
  font-size: 34px;
  flex-shrink: 0;
  line-height: 1;
}

.btn-zalo {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 14.5px;
  padding: 14px 26px;
  border-radius: 12px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.35);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-zalo:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.5);
  filter: brightness(1.05);
}

/* Player Tools Grid */
.player-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.tool-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 26px;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
}

.tool-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1.5px solid #f1f5f9;
}

.tool-card-head h3 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
}

.tool-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #f0f7ff;
  border: 1px solid #bae6fd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

/* Stats Data Table (CheckData) - Spacing & High Contrast */
.stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.stats-table tr {
  border-bottom: 1px solid #f1f5f9;
}

.stats-table tr:last-child {
  border-bottom: none;
}

.stats-table td {
  padding: 12px 10px;
}

.stats-table td:first-child {
  color: #475569;
  font-weight: 600;
  width: 45%;
}

.stats-table td:last-child {
  font-weight: 800;
  color: #0f172a;
  text-align: right;
}

/* Copy Field Box */
.copy-box {
  display: flex;
  gap: 10px;
  align-items: center;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 6px 8px 6px 14px;
  margin: 10px 0 12px;
}

.copy-input {
  border: none;
  background: transparent;
  width: 100%;
  font-size: 13.5px;
  color: #1e293b;
  font-family: monospace;
  outline: none;
  font-weight: 600;
}

.copy-btn {
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 800;
  border-radius: 8px;
  border: none;
  background: #0284c7;
  color: #ffffff;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  background: #0369a1;
}

.copy-btn.copied {
  background: #10b981;
}

/* Giftcode List */
.giftcode-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.giftcode-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.giftcode-code {
  font-family: monospace;
  font-weight: 800;
  font-size: 15px;
  color: #0284c7;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   Forum Space (Phase 3)
   ========================================================================== */
.forum-nav-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.forum-tab {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.forum-tab:hover {
  background: rgba(0, 194, 219, 0.15);
  border-color: var(--cyan);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.forum-tab.active {
  background: linear-gradient(135deg, #0284c7, #00c2db);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(0, 194, 219, 0.35);
}

.forum-marquee-bar {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.15), rgba(15, 23, 42, 0.85), rgba(0, 194, 219, 0.15));
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-sm);
  padding: 8px 18px;
  margin-bottom: 22px;
  color: #fef08a;
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.forum-marquee-icon {
  font-size: 18px;
  flex-shrink: 0;
  animation: pulse 2s infinite;
}

/* Pinned Topics Box */
.forum-pinned-box {
  background: linear-gradient(135deg, rgba(28, 20, 10, 0.9), rgba(15, 23, 42, 0.96));
  border: 1.5px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 24px;
  box-shadow: 0 8px 28px rgba(245, 158, 11, 0.1);
}

.pinned-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
}

.pinned-head h3 {
  margin: 0;
  font-size: 13.5px;
  font-weight: 800;
  color: #f59e0b;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.pinned-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pinned-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-decoration: none;
  transition: all 0.2s ease;
}

.pinned-row:hover {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
  text-decoration: none;
  transform: translateX(4px);
}

.pinned-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 1.5px solid #f59e0b;
}

.pinned-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pinned-content {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pinned-title {
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pinned-row:hover .pinned-title {
  color: #f59e0b;
}

.pinned-author {
  font-size: 12px;
  color: #94a3b8;
}

.pinned-author strong {
  color: #f59e0b;
}

/* Topic List */
.forum-topic-list {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  margin-bottom: 24px;
}

.topic-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  transition: all 0.2s ease;
}

.topic-item:last-child {
  border-bottom: none;
}

.topic-item:hover {
  background: rgba(0, 194, 219, 0.05);
  text-decoration: none;
}

.topic-avatar-wrap {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(30, 41, 59, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.topic-avatar-wrap.admin {
  border-color: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.35);
}

.topic-avatar-wrap.race-0 {
  border-color: #38bdf8;
}

.topic-avatar-wrap.race-1 {
  border-color: #10b981;
}

.topic-avatar-wrap.race-2 {
  border-color: #f59e0b;
}

.topic-avatar-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.topic-body {
  flex: 1;
  min-width: 0;
}

.topic-meta-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.topic-title {
  font-size: 15.5px;
  font-weight: 700;
  color: #fff;
  transition: color 0.2s ease;
  line-height: 1.4;
}

.topic-item:hover .topic-title {
  color: var(--cyan);
}

.topic-meta-bottom {
  font-size: 12.5px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.topic-author-tag {
  color: #cbd5e1;
  font-weight: 600;
}

.topic-author-tag.admin {
  color: #ef4444;
}

.topic-time {
  color: #64748b;
}

.topic-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.topic-comments-badge {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 700;
  color: #38bdf8;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.topic-item:hover .topic-comments-badge {
  background: rgba(0, 194, 219, 0.15);
  border-color: rgba(0, 194, 219, 0.35);
  color: #fff;
}

.topic-arrow {
  color: #64748b;
  font-size: 16px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.topic-item:hover .topic-arrow {
  color: var(--cyan);
  transform: translate(3px, -2px);
}

/* ==========================================================================
   Dragon Blue Download Center
   ========================================================================== */
.download-hero-alert {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.download-hero-alert::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15), transparent 70%);
  pointer-events: none;
}

.download-alert-icon {
  font-size: 40px;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.download-alert-body {
  flex: 1;
  min-width: 0;
}

.download-alert-body h3 {
  font-family: var(--font-display);
  font-size: 19px;
  color: #fbbf24;
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.download-alert-body p {
  margin: 0 0 14px;
  font-size: 14.5px;
  color: #cbd5e1;
  line-height: 1.6;
}

.download-platforms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 36px;
}

@media (max-width: 900px) {
  .download-platforms-grid {
    grid-template-columns: 1fr;
  }
  .download-hero-alert {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }
}

.download-card-custom {
  background: linear-gradient(180deg, rgba(13, 31, 60, 0.95), rgba(7, 18, 38, 0.98));
  border: 1px solid rgba(0, 194, 219, 0.25);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}

.download-card-custom:hover {
  transform: translateY(-5px);
  border-color: var(--cyan);
  box-shadow: 0 16px 36px rgba(0, 194, 219, 0.25);
}

.download-card-custom.gold-edge {
  border-color: rgba(245, 158, 11, 0.3);
}

.download-card-custom.gold-edge:hover {
  border-color: #f59e0b;
  box-shadow: 0 16px 36px rgba(245, 158, 11, 0.25);
}

.platform-icon-wrap {
  width: 70px;
  height: 70px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  margin-bottom: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.platform-title {
  font-family: var(--font-display);
  font-size: 22px;
  color: #fff;
  margin: 0 0 6px;
}

.platform-subtitle {
  font-size: 13.5px;
  color: #94a3b8;
  margin: 0 0 16px;
  min-height: 38px;
}

.platform-specs-list {
  width: 100%;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 20px;
  text-align: left;
  font-size: 12.5px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.platform-specs-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #cbd5e1;
}

.platform-specs-row strong {
  color: #fff;
}

.prep-steps-container {
  background: rgba(13, 31, 60, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 30px;
}

.prep-steps-container h3 {
  color: #ffffff !important;
  font-family: var(--font-display);
}


.prep-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 18px;
}

@media (max-width: 800px) {
  .prep-steps-grid {
    grid-template-columns: 1fr;
  }
}

.prep-step-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
}

.prep-step-card:hover {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(0, 194, 219, 0.35);
  transform: translateY(-2px);
}

.prep-step-num {
  font-size: 13px;
  font-weight: 800;
  color: var(--cyan);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.prep-step-card h4 {
  font-size: 16px;
  color: #fff;
  margin: 0 0 8px;
}

.prep-step-card p {
  font-size: 13.5px;
  color: #94a3b8;
  margin: 0 0 16px;
  line-height: 1.55;
  flex: 1;
}

/* ==========================================================================
   UNIVERSAL TABLE & BUTTON SPACING SYSTEM (UI/UX UPGRADE)
   ========================================================================== */

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 24px;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.table-responsive::-webkit-scrollbar {
  height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.db-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  color: #1e293b;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
}

.db-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 16px 20px;
  text-align: left;
  border-bottom: 2px solid #e2e8f0;
  white-space: nowrap;
}

.db-table td {
  padding: 14px 20px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.db-table tbody tr:last-child td {
  border-bottom: none;
}

.db-table tbody tr:hover {
  background-color: #f8fafc;
}

/* Dark Table Variant (Used in Gaming & Game Panel Views) */
.db-table.dark-table {
  background: #0f172a;
  color: #f8fafc;
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.db-table.dark-table th {
  background: #1e293b;
  color: #94a3b8;
  border-bottom: 2px solid rgba(56, 189, 248, 0.3);
}

.db-table.dark-table td {
  border-bottom: 1px solid rgba(51, 65, 85, 0.6);
  color: #e2e8f0;
}

.db-table.dark-table tbody tr:hover {
  background-color: rgba(30, 41, 59, 0.8);
}

/* Universal Action Separators */
.cell-actions {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: wrap;
}

.btn-group,
.form-actions {
  display: inline-flex !important;
  align-items: center !important;
  gap: 14px !important;
  flex-wrap: wrap;
}

.filter-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.filter-tab {
  padding: 10px 20px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.filter-tab:hover,
.filter-tab.active {
  background: #0084ff;
  border-color: #0084ff;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 132, 255, 0.25);
}

/* ==========================================================================
   GAME SERVER CONTROL PANEL (/admin/panel) STYLES
   ========================================================================== */

.game-panel-page {
  background-color: #eef2f6;
  padding: 24px 0 60px;
  min-height: 100vh;
  font-family: inherit;
}

.game-panel-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (max-width: 1024px) {
  .game-panel-layout {
    flex-direction: column;
  }
}

/* Left Sidebar */
.panel-left-sidebar {
  width: 270px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (max-width: 1024px) {
  .panel-left-sidebar {
    width: 100%;
  }
}

.panel-profile-card {
  background: #ffffff;
  border: 1px solid #dbe3ed;
  border-radius: 16px;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.player-avatar-wrapper {
  position: relative;
  width: 90px;
  height: 90px;
  margin-bottom: 12px;
}

.player-avatar-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #00a8ff;
  box-shadow: 0 0 16px rgba(0, 168, 255, 0.35);
  background: #f8fafc;
}

.player-avatar-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  background: #0084ff;
  color: #fff;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  border: 2px solid #fff;
}

.player-name-label {
  font-size: 16px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 8px;
}

.badge-mtv {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.panel-box-card {
  background: #ffffff;
  border: 1px solid #dbe3ed;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.panel-box-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0284c7;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #e2e8f0;
}

.menu-a-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-menu-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  color: #ffffff;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn-menu-action:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.btn-menu-action.green {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}

.btn-menu-action.blue {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.btn-menu-action.purple {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
}

.btn-menu-action.dark {
  background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
}

/* Right / Main Content */
.panel-main-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Top 4 Metric Cards */
.metrics-quad-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

@media (max-width: 1024px) {
  .metrics-quad-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .metrics-quad-grid {
    grid-template-columns: 1fr;
  }
}

.metric-card-box {
  background: #ffffff;
  border: 1px solid #dbe3ed;
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.metric-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0284c7;
  margin-bottom: 12px;
}

.metric-header.gold { color: #d97706; }
.metric-header.green { color: #16a34a; }
.metric-header.purple { color: #7c3aed; }

.metric-value {
  font-size: 22px;
  font-weight: 900;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.metric-value.live {
  color: #16a34a;
}

.metric-info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #0284c7;
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  cursor: help;
}

/* Banner Điểm Danh Hàng Ngày */
.attendance-banner-box {
  background: #ffffff;
  border: 1px solid #dbe3ed;
  border-radius: 16px;
  padding: 18px 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.attendance-banner-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, #f59e0b, #d97706);
}

.attendance-info-group {
  display: flex;
  align-items: center;
  gap: 20px;
}

.attendance-gift-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: #fef3c7;
  border: 1px solid #fde68a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}

.attendance-text h4 {
  font-size: 16px;
  font-weight: 800;
  color: #b45309;
  margin: 0 0 6px;
}

.attendance-text p {
  font-size: 13.5px;
  color: #475569;
  margin: 0;
  line-height: 1.5;
}

.btn-attendance-claim {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  padding: 14px 28px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
  white-space: nowrap;
}

.btn-attendance-claim:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.45);
}

/* Quản trị hệ thống Card */
.system-admin-box {
  background: #ffffff;
  border: 1px solid #dbe3ed;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  position: relative;
}

.system-section-heading {
  font-size: 16px;
  font-weight: 800;
  color: #0284c7;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}

.system-subgroup {
  margin-bottom: 24px;
}

.system-subgroup-title {
  font-size: 15px;
  font-weight: 800;
  color: #b45309;
  margin-bottom: 4px;
}

.system-subgroup-desc {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 16px;
}

/* Action Tiles Grid */
.action-tiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 14px;
}

.action-tile-btn {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 8px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: #1e293b;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.action-tile-btn:hover {
  transform: translateY(-4px);
  border-color: #0084ff;
  box-shadow: 0 8px 20px rgba(0, 132, 255, 0.15);
}

.action-tile-icon {
  font-size: 28px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}

.action-tile-label {
  font-size: 12.5px;
  font-weight: 700;
  color: #334155;
  white-space: nowrap;
}

/* Red Power Button */
.floating-power-btn {
  position: absolute;
  bottom: 20px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  border: none;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
  transition: all 0.2s ease;
}

.floating-power-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.6);
}

/* ==========================================================================
   GIFTCODE PANEL (IMAGE 2)
   ========================================================================== */

.giftcode-panel-box {
  background: #ffffff;
  border: 1px solid #dbe3ed;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.giftcode-green-ribbon {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(22, 163, 74, 0.25);
}

.giftcode-pill {
  background: #ffffff;
  color: #15803d;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.giftcode-pill:hover,
.giftcode-pill.active {
  background: #fef08a;
  color: #854d0e;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.giftcode-detail-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px;
}

.giftcode-meta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px dashed #cbd5e1;
}

.giftcode-code-badge {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 6px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  color: #0369a1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.giftcode-count-badge {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 6px 16px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: #b45309;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.giftcode-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 16px;
}

.giftcode-item-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.giftcode-item-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 10px;
}

.giftcode-item-name {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
}

.giftcode-item-qty {
  font-size: 12.5px;
  font-weight: 800;
  color: #0284c7;
  margin-bottom: 4px;
}

.giftcode-item-lock {
  font-size: 11px;
  color: #64748b;
}

/* ==========================================================================
   QUẢN LÝ NHÂN VẬT TABLE & SLOTS (IMAGE 5)
   ========================================================================== */

.players-manager-box {
  background: #ffffff;
  border: 1px solid #dbe3ed;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.players-header-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 24px;
}

.players-count-badge {
  background: #ede9fe;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
  padding: 8px 24px;
  border-radius: 9999px;
  font-size: 15px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.players-header-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  justify-content: center;
}

.planet-filter-strip {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.planet-tab-card {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-decoration: none;
  color: #1e293b;
  font-weight: 800;
  font-size: 16px;
  transition: all 0.2s ease;
}

.planet-tab-card:hover,
.planet-tab-card.active {
  border-color: #0084ff;
  background: #f0f9ff;
  box-shadow: 0 4px 14px rgba(0, 132, 255, 0.15);
}

.planet-icon-sm {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #cbd5e1;
}

/* Item Inventory Slots 2x10 Grid */
.slots-container {
  display: grid;
  grid-template-columns: repeat(10, 28px);
  grid-template-rows: repeat(2, 28px);
  gap: 3px;
  background: #f1f5f9;
  padding: 5px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  width: fit-content;
}

.slot-box {
  width: 28px;
  height: 28px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.slot-box:hover {
  border-color: #0084ff;
  transform: scale(1.15);
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.slot-box.empty {
  background: rgba(255, 255, 255, 0.5);
  border-style: dashed;
}

.slot-item-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.slot-qty-tag {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 3px;
  border-radius: 4px;
  line-height: 1;
  pointer-events: none;
}

/* Power Input Display Boxes */
.power-stat-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.power-stat-label {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  width: 65px;
  white-space: nowrap;
}

.power-stat-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 800;
  color: #1e293b;
  min-width: 130px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.power-stat-box small {
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
}

/* Tài sản display list */
.asset-stat-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 4px;
}

/* ==========================================================================
   MODAL POPUPS (SET EXP & GỌI BOSS)
   ========================================================================== */

.modal-overlay-bg {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.modal-overlay-bg.is-open {
  display: flex !important;
}

.modal-box-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  max-width: 100%;
  animation: modalPopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPopIn {
  0% { opacity: 0; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1); }
}

.modal-title-blue {
  font-size: 22px;
  font-weight: 800;
  color: #0369a1;
  text-align: center;
  margin: 0 0 16px;
}

/* Boss Grid (Image 4) */
.boss-cards-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  max-height: 60vh;
  overflow-y: auto;
  padding: 8px 4px 14px;
  margin-bottom: 24px;
}

@media (max-width: 1024px) {
  .boss-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .boss-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.boss-card-item {
  background: #ffffff;
  border: 1.5px solid #dbe3ed;
  border-radius: 14px;
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
}

.boss-card-item input[type="checkbox"] {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  position: absolute !important;
  pointer-events: none !important;
}

.boss-card-item:hover,
.boss-card-item.selected {
  border-color: #0084ff;
  box-shadow: 0 8px 20px rgba(0, 132, 255, 0.2);
  transform: translateY(-2px);
}

.boss-card-item.selected {
  background: #f0f9ff;
}

.boss-status-indicator {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #fff;
}

.boss-status-indicator.ready {
  background: #16a34a;
}

.boss-status-indicator.waiting {
  background: #ef4444;
}

.boss-avatar-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #0084ff;
  box-shadow: 0 0 10px rgba(0, 132, 255, 0.25);
  margin-bottom: 10px;
}

.boss-name-text {
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

.boss-zone-text {
  font-size: 11px;
  color: #64748b;
  line-height: 1.3;
}



/* ============================================================
   FORUM POST RICH CONTENT & GUIDE STYLES
   ============================================================ */
.forum-post-content {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: #1e293b;
  line-height: 1.8;
  word-break: break-word;
}
.forum-post-content .guide-h1 {
  font-size: 24px;
  font-weight: 900;
  color: #0f172a;
  border-bottom: 2.5px solid #2563eb;
  padding-bottom: 12px;
  margin: 32px 0 20px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.forum-post-content .guide-h2 {
  font-size: 19px;
  font-weight: 800;
  color: #1e3a8a;
  background: linear-gradient(90deg, #eff6ff 0%, rgba(239, 246, 255, 0) 100%);
  border-left: 4.5px solid #2563eb;
  padding: 10px 16px;
  border-radius: 0 8px 8px 0;
  margin: 28px 0 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.forum-post-content .guide-h2-badge {
  color: #2563eb;
  font-size: 16px;
}
.forum-post-content .guide-h3 {
  font-size: 16.5px;
  font-weight: 800;
  color: #0369a1;
  margin: 22px 0 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.forum-post-content .guide-h3-icon {
  color: #0ea5e9;
  font-size: 14px;
}
.forum-post-content .guide-p {
  margin: 0 0 14px 0;
  font-size: 15px;
  color: #334155;
  line-height: 1.75;
}
.forum-post-content .guide-hr {
  border: none;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, #cbd5e1, transparent);
  margin: 28px 0;
}
.forum-post-content .guide-ul,
.forum-post-content .guide-ol {
  margin: 8px 0 18px 24px;
  padding: 0;
  color: #334155;
}
.forum-post-content .guide-ul li,
.forum-post-content .guide-ol li {
  margin-bottom: 8px;
  line-height: 1.7;
}
.forum-post-content .guide-callout {
  padding: 14px 18px;
  border-radius: 10px;
  margin: 18px 0;
  border-left: 4.5px solid;
  font-size: 14.5px;
}
.forum-post-content .guide-callout .callout-title {
  font-weight: 800;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14.5px;
}
.forum-post-content .guide-callout.callout-note {
  background: #f8fafc;
  border-color: #64748b;
  color: #334155;
}
.forum-post-content .guide-callout.callout-note .callout-title {
  color: #475569;
}
.forum-post-content .guide-callout.callout-tip {
  background: #f0fdf4;
  border-color: #16a34a;
  color: #166534;
}
.forum-post-content .guide-callout.callout-tip .callout-title {
  color: #15803d;
}
.forum-post-content .guide-callout.callout-important {
  background: #eff6ff;
  border-color: #2563eb;
  color: #1e40af;
}
.forum-post-content .guide-callout.callout-important .callout-title {
  color: #1d4ed8;
}
.forum-post-content .guide-callout.callout-warning {
  background: #fffbeb;
  border-color: #f59e0b;
  color: #92400e;
}
.forum-post-content .guide-callout.callout-warning .callout-title {
  color: #b45309;
}
.forum-post-content .guide-table-wrap {
  overflow-x: auto;
  margin: 18px 0;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}
.forum-post-content .guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}
.forum-post-content .guide-table th {
  background: #f1f5f9;
  color: #1e293b;
  font-weight: 800;
  padding: 11px 14px;
  border-bottom: 1.5px solid #cbd5e1;
}
.forum-post-content .guide-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
}
.forum-post-content .guide-table tr:last-child td {
  border-bottom: none;
}
.forum-post-content .guide-table tr:hover td {
  background: #f8fafc;
}
.forum-post-content .guide-code-block {
  background: #0f172a;
  color: #38bdf8;
  padding: 14px 18px;
  border-radius: 8px;
  font-family: Consolas, Monaco, 'Courier New', monospace;
  font-size: 13.5px;
  overflow-x: auto;
  margin: 16px 0;
}
.forum-post-content .guide-inline-code {
  background: #e2e8f0;
  color: #0f172a;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  font-family: Consolas, Monaco, 'Courier New', monospace;
  font-weight: 600;
}