:root {
  --bg-main: #08070b;
  --bg-card: rgba(18, 14, 24, 0.75);
  --bg-card-hover: rgba(28, 20, 38, 0.85);
  --bg-surface: #0f0a15;
  --border-color: rgba(255, 42, 133, 0.28);
  --border-focus: #ff2a85;
  --text-main: #fcf4f8;
  --text-muted: #ad9fad;
  --text-highlight: #ff70a6;
  --accent: #ff2a85;
  --accent-glow: rgba(255, 42, 133, 0.25);
  --accent-gold: #fbbf24;
  --accent-red: #f87171;
  --font-sans: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(255, 42, 133, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(217, 27, 110, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, #08070b 0%, #050407 100%);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  text-decoration: underline;
  color: #ff66ab;
}

/* Header & Navbar */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 19, 14, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.5px;
  color: #fff;
  text-decoration: none;
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 0 16px rgba(255, 42, 133, 0.4);
  border: 1.5px solid rgba(255, 42, 133, 0.4);
  display: block;
}

.brand-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #ff2a85, #9d174d);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 0 15px var(--accent-glow);
}

.brand-badge {
  font-size: 0.7rem;
  background: rgba(255, 42, 133, 0.15);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 42, 133, 0.3);
  font-weight: 600;
  margin-left: 6px;
}

/* Thanh menu hàng dưới cân bằng */
.subnav-container {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(14, 10, 18, 0.95);
  backdrop-filter: blur(12px);
  padding: 8px 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
}

.subnav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 10px;
  list-style: none;
  padding: 2px 0;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.025);
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.nav-btn:hover {
  color: #fff;
  background: rgba(255, 42, 133, 0.08);
  border-color: rgba(255, 42, 133, 0.3);
  text-decoration: none;
  transform: translateY(-1px);
}

.nav-btn.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 42, 133, 0.35) 0%, rgba(217, 27, 110, 0.2) 100%);
  border-color: var(--accent);
  font-weight: 700;
  box-shadow: 0 0 16px rgba(255, 42, 133, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-shadow: 0 0 8px rgba(255, 42, 133, 0.5);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-steam {
  background: linear-gradient(135deg, #171a21, #1b2838);
  border: 1px solid #2a475e;
  color: #c7d5e0;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-steam:hover {
  border-color: #66c0f4;
  color: #fff;
  box-shadow: 0 0 12px rgba(102, 192, 244, 0.3);
  text-decoration: none;
}

.btn-discord {
  background: #5865f2;
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-discord:hover {
  background: #4752c4;
  box-shadow: 0 0 12px rgba(88, 101, 242, 0.4);
  text-decoration: none;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 8px;
  border-radius: var(--radius-sm);
  font-size: 1.2rem;
  cursor: pointer;
}

/* Announcement Ticker (Dino4VN style) */
.ticker-bar {
  background: rgba(18, 14, 24, 0.95);
  border-bottom: 1px solid var(--border-color);
  font-size: 0.85rem;
  padding: 8px 0;
  overflow: hidden;
}

.ticker-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ticker-content {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
}

.ticker-tag {
  background: rgba(255, 42, 133, 0.2);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Main Container */
.main-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 30px 20px 60px;
  width: 100%;
  flex: 1;
}

/* View Pages Switching */
.view-section {
  display: none;
  animation: fadeIn 0.3s ease-out;
}

.view-section.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero Section (Home) */
.hero-card {
  background: linear-gradient(135deg, rgba(18, 14, 24, 0.9), rgba(20, 9, 18, 0.95)), url('../assets/images/banner.jpg');
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  margin-bottom: 30px;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at top right, rgba(255, 42, 133, 0.12), transparent 60%);
  pointer-events: none;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
  background: linear-gradient(180deg, #ffffff, #a3e6be);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 720px;
  margin-bottom: 28px;
}

/* Live Server Status Widget */
.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.status-box {
  background: rgba(7, 19, 14, 0.6);
  border: 1px solid rgba(255, 42, 133, 0.3);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.status-box .label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-box .value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn-primary {
  background: linear-gradient(135deg, #ff2a85 0%, #d91b6e 60%, #9d174d 100%);
  color: #ffffff;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  border: 1px solid rgba(255, 182, 217, 0.35);
  border-bottom: 3px solid #831843;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 18px rgba(255, 42, 133, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  transition: var(--transition);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 42, 133, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  border-bottom: 3px solid #701037;
  color: #ffffff;
  text-decoration: none;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: #fff;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: #fff;
  text-decoration: none;
}

/* Event Banner (Vay Trum Boss Event) */
.event-banner {
  background: linear-gradient(135deg, rgba(30, 20, 10, 0.85), rgba(18, 14, 8, 0.95));
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius);
  padding: 24px 30px;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.event-info {
  display: flex;
  align-items: center;
  gap: 20px;
}

.event-badge {
  font-size: 2.2rem;
  background: rgba(245, 158, 11, 0.15);
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.event-title {
  color: var(--accent-gold);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.event-desc {
  color: #d1d5db;
  font-size: 0.92rem;
}

/* 2 Columns Section: Podium BXH & Live Killfeed */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 30px;
}

.card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.8), 0 0 18px rgba(255, 42, 133, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.card:hover {
  border-color: rgba(255, 42, 133, 0.55);
  box-shadow: 0 16px 40px -5px rgba(0, 0, 0, 0.88), 0 0 25px rgba(255, 42, 133, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Podium Top 3 (Dino4VN style) */
.podium-container {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 14px;
  margin: 20px 0 24px;
  height: 170px;
}

.podium-slot {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.podium-player {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.podium-score {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.podium-bar {
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
}

.podium-1 {
  height: 110px;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.4), rgba(245, 158, 11, 0.1));
  border: 1px solid rgba(245, 158, 11, 0.6);
  color: var(--accent-gold);
}

.podium-2 {
  height: 85px;
  background: linear-gradient(180deg, rgba(209, 213, 219, 0.3), rgba(209, 213, 219, 0.1));
  border: 1px solid rgba(209, 213, 219, 0.5);
  color: #e5e7eb;
}

.podium-3 {
  height: 65px;
  background: linear-gradient(180deg, rgba(180, 83, 9, 0.3), rgba(180, 83, 9, 0.1));
  border: 1px solid rgba(180, 83, 9, 0.5);
  color: #fb923c;
}

/* Killfeed List */
.killfeed-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 380px;
  overflow-y: auto;
}

.killfeed-item {
  background: rgba(7, 19, 14, 0.5);
  border: 1px solid rgba(255, 42, 133, 0.2);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  transition: var(--transition);
}

.killfeed-item:hover {
  background: rgba(7, 19, 14, 0.8);
  border-color: rgba(255, 42, 133, 0.4);
}

.kill-killer {
  color: #f87171;
  font-weight: 600;
}

.kill-victim {
  color: #60a5fa;
  font-weight: 600;
}

.kill-dino {
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 4px;
  color: var(--text-muted);
}

.kill-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Dino Garage Cards */
.garage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.dino-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  box-shadow: 0 10px 25px -4px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.dino-card:hover {
  transform: translateY(-5px) scale(1.01);
  border-color: var(--accent);
  box-shadow: 0 18px 35px -5px rgba(0, 0, 0, 0.85), 0 0 25px rgba(255, 42, 133, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.dino-card-banner {
  height: 160px;
  background: radial-gradient(circle at center, rgba(50, 16, 35, 0.85) 0%, rgba(20, 7, 15, 0.95) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 12px;
}

.dino-img-render {
  max-width: 90%;
  max-height: 135px;
  object-fit: contain;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.7));
}

.dino-card:hover .dino-img-render {
  transform: scale(1.08) translateY(-4px);
}

.growth-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 42, 133, 0.2);
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.dino-card-body {
  padding: 18px;
}

.dino-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.dino-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.dino-stat-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.stat-bar-container {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.stat-bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.stat-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
}

.dino-actions {
  display: flex;
  gap: 8px;
}

.dino-actions button {
  flex: 1;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-spawn {
  background: var(--accent);
  color: #08070b;
}

.btn-spawn:hover {
  background: #ff66ab;
}

.btn-store {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid var(--border-color) !important;
}

.btn-store:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Leaderboard Full Table */
.table-container {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.bxh-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.bxh-table th {
  background: rgba(18, 14, 24, 0.9);
  padding: 14px 18px;
  font-size: 0.82rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.bxh-table td {
  padding: 14px 18px;
  border-top: 1px solid var(--border-color);
  font-size: 0.92rem;
}

.bxh-table tr:hover td {
  background: rgba(28, 20, 38, 0.4);
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.85rem;
}

.rank-1 { background: #fbbf24; color: #000; }
.rank-2 { background: #e5e7eb; color: #000; }
.rank-3 { background: #fb923c; color: #000; }
.rank-other { background: rgba(255, 255, 255, 0.1); color: #fff; }

/* Rules and Guides Typography */
.content-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
}

.content-box h2 {
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.content-box h3 {
  font-size: 1.2rem;
  color: var(--text-highlight);
  margin: 20px 0 10px;
}

.content-box p {
  color: #d1d5db;
  margin-bottom: 14px;
}

.rule-item {
  border-left: 3px solid var(--accent);
  padding: 12px 18px;
  background: rgba(7, 19, 14, 0.5);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 14px;
}

.rule-item strong {
  color: #fff;
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
}

/* Donate / Support Section */
.donate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.qr-box {
  background: #fff;
  padding: 20px;
  border-radius: var(--radius);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #111827;
}

.qr-img {
  max-width: 240px;
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

/* Footer (Dino4VN style) */
.app-footer {
  background: #050407;
  border-top: 1px solid var(--border-color);
  padding: 40px 20px;
  margin-top: auto;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  color: #6b7280;
  font-size: 0.85rem;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #ff2a85;
  color: #08070b;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .donate-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .subnav-container {
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
  }
  .nav-links {
    display: none;
  }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: #08070b;
    border-bottom: 1px solid var(--border-color);
    padding: 16px;
    gap: 8px;
  }
  .nav-btn {
    justify-content: flex-start;
    padding: 10px 16px;
    width: 100%;
  }
  .menu-toggle {
    display: block;
  }
  .hero-title {
    font-size: 2rem;
  }
  .hero-card {
    padding: 24px;
  }
  .event-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Modal Liên kết Steam với server */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: #0d2117;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  max-width: 480px;
  width: 100%;
  padding: 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  position: relative;
  transform: translateY(12px);
  transition: transform 0.25s ease;
}

.modal-overlay.active .modal-box {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: #fff;
}

.input-steam {
  width: 100%;
  background: rgba(7, 19, 14, 0.8);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  margin: 14px 0 16px;
  outline: none;
  font-family: inherit;
}

.input-steam:focus {
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(255, 42, 133, 0.2);
}

/* Dino Mutations Box */
.dino-mutations-box {
  background: rgba(7, 19, 14, 0.75);
  border: 1px solid rgba(255, 42, 133, 0.35);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 14px;
}

.mutations-header {
  font-size: 0.76rem;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mutations-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mutation-tag {
  background: rgba(255, 42, 133, 0.08);
  border: 1px solid rgba(255, 42, 133, 0.22);
  color: #e5e7eb;
  padding: 5px 9px;
  border-radius: 4px;
  font-size: 0.76rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  transition: var(--transition);
}

.mutation-tag:hover {
  background: rgba(255, 42, 133, 0.18);
  border-color: var(--accent);
  color: #fff;
}

/* Garage Section Group Headers & Diet Badges */
.garage-group-header {
  grid-column: 1 / -1;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  margin-bottom: 4px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.diet-badge {
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.diet-carnivore {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.diet-herbivore {
  background: rgba(255, 42, 133, 0.18);
  color: #6ee7b7;
  border: 1px solid rgba(255, 42, 133, 0.4);
}

/* Các Style Cho Thả Xác IslePilot */
.carcass-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.carcass-card {
  background: rgba(18, 24, 21, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.carcass-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 42, 133, 0.4);
  box-shadow: 0 8px 24px rgba(255, 42, 133, 0.12);
}

.carcass-banner {
  height: 155px;
  background: radial-gradient(circle at center, rgba(255, 42, 133, 0.12) 0%, rgba(14, 8, 13, 0.95) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.carcass-img-render {
  max-width: 85%;
  max-height: 135px;
  object-fit: contain;
  transition: transform 0.25s ease;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.8));
}

.carcass-card:hover .carcass-img-render {
  transform: scale(1.06);
}

.carcass-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.carcass-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.carcass-card-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
}

.carcass-card-price {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ff2a85;
}

.carcass-card-desc {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.5;
  flex: 1;
  margin: 0;
}

.carcass-btn-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 18px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  background: #ff2a85;
  color: #000;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  width: fit-content;
  margin-top: 6px;
}

.carcass-btn-buy:hover {
  background: #00d96a;
}

.carcass-btn-buy:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.15);
  color: #888;
}

/* ==============================================================
   🤝 GIAO DIỆN MỜI BẠN BÈ (ISLEPILOT REFERRAL - CHUẨN ẢNH USER)
   ============================================================== */
.referral-container {
  max-width: 980px;
  margin: 0 auto;
}

.referral-header {
  margin-bottom: 24px;
}

.referral-title {
  font-size: 1.65rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px 0;
  letter-spacing: -0.01em;
}

.referral-subtitle {
  font-size: 0.88rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.5;
}

/* Card lớn chính */
.referral-main-card {
  background: #070d0a;
  border: 1px solid rgba(255, 42, 133, 0.4);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.referral-top-section {
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.referral-code-col {
  flex: 1;
  min-width: 280px;
}

.referral-field-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin-bottom: 12px;
}

/* Các ô ký tự mã giới thiệu */
.referral-code-boxes {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.referral-char-box {
  width: 44px;
  height: 48px;
  border: 1.5px solid #16a34a;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: monospace, sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Các nút sao chép */
.referral-action-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.referral-btn {
  background: transparent;
  border: 1px solid rgba(255, 42, 133, 0.55);
  color: #ffffff;
  padding: 7px 18px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.referral-btn:hover {
  border-color: #ff2a85;
  background: rgba(255, 42, 133, 0.1);
  color: #ffffff;
}

.referral-btn.copied {
  border-color: #ff2a85;
  color: #ff2a85;
  background: rgba(255, 42, 133, 0.15);
}

/* Cột thống kê 3 ô bên phải */
.referral-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 135px);
  gap: 10px;
}

.referral-stat-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 42, 133, 0.4);
  border-radius: 8px;
  padding: 10px 14px;
  min-height: 62px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.referral-stat-label {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-bottom: 4px;
}

.referral-stat-val {
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
}

/* Phần dưới của Card lớn: Phần thưởng */
.referral-bottom-section {
  border-top: none;
  padding: 0;
  background: transparent;
}

.referral-rewards-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.referral-reward-box {
  flex: 1;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 42, 133, 0.4);
  border-radius: 10px;
  padding: 16px 20px;
}

.referral-reward-header {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  margin-bottom: 10px;
}

.referral-reward-amount-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.referral-reward-badge {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 42, 133, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ff2a85;
}

.referral-reward-num {
  font-size: 1.55rem;
  font-weight: 800;
  color: #ffffff;
}

.referral-reward-unit {
  font-size: 0.88rem;
  font-weight: 600;
  color: #94a3b8;
}

.referral-plus-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 42, 133, 0.45);
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff2a85;
  font-size: 1.15rem;
  font-weight: 600;
  flex-shrink: 0;
}

.referral-footer-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #94a3b8;
  margin-top: 0;
}

/* Card danh sách lời mời bên dưới */
.referral-invites-card {
  background: #070d0a;
  border: 1px solid rgba(255, 42, 133, 0.4);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.referral-invites-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.referral-invites-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.referral-invites-total {
  font-size: 0.95rem;
  font-weight: 600;
  color: #94a3b8;
}

.referral-invites-empty {
  font-size: 0.85rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .referral-rewards-row {
    flex-direction: column;
  }
  .referral-plus-circle {
    margin: 4px 0;
  }
  .referral-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
  }
}

.skineditor-swatches {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.color-swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.color-swatch:hover {
  transform: scale(1.2);
  border-color: #fff;
}

/* --- ISLEPILOT STYLE SKIN EDITOR --- */
.skineditor-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 960px) {
  .skineditor-layout {
    grid-template-columns: 1fr;
  }
}

.skineditor-stage {
  position: relative;
  border-radius: 14px;
  background: radial-gradient(120% 85% at 50% 15%, #343c54 0%, #1b202d 55%, #11141d 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55);
  min-height: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  user-select: none;
}

.skineditor-hint-pill {
  pointer-events: none;
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.55);
  padding: 5px 16px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  z-index: 10;
  white-space: nowrap;
}

.skineditor-canvas-wrapper {
  position: relative;
  width: 100%;
  height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  touch-action: none;
}

.skineditor-canvas-wrapper:active {
  cursor: grabbing;
}

.skineditor-dino-render {
  max-width: 90%;
  max-height: 380px;
  object-fit: contain;
  transition: filter 0.3s ease;
  pointer-events: none;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.6));
}

.skineditor-pedestal {
  position: absolute;
  bottom: 30px;
  width: 360px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(56, 189, 248, 0.28) 0%, rgba(56, 189, 248, 0.08) 50%, transparent 75%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transform: rotateX(75deg);
  pointer-events: none;
  z-index: 0;
  box-shadow: 0 0 35px rgba(56, 189, 248, 0.15);
}

.skineditor-tool-btn.active {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(255, 42, 133, 0.4);
}

.skineditor-viewport-controls {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 5;
}

.skineditor-tool-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--border-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 15px;
}

.skineditor-tool-btn:hover {
  background: rgba(255, 42, 133, 0.2);
  border-color: var(--accent);
  color: var(--accent);
}

.skineditor-stage-footer {
  width: 100%;
  padding: 14px 18px;
  background: rgba(17, 20, 29, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
  backdrop-filter: blur(8px);
}

.skineditor-growth-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 6px;
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 500;
}

.skineditor-growth-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.18);
  outline: none;
  cursor: pointer;
}

.skineditor-growth-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 0 6px rgba(255, 42, 133, 0.6);
}

.skineditor-code-box {
  display: flex;
  gap: 8px;
  align-items: center;
}

.skineditor-segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(15, 23, 42, 0.75);
  padding: 3px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  gap: 3px;
}

.skineditor-seg-btn {
  padding: 6px 10px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.skineditor-seg-btn.active {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.skineditor-card {
  background: rgba(27, 32, 45, 0.72) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
  padding: 18px !important;
  margin-bottom: 16px !important;
  backdrop-filter: blur(10px);
}

.skineditor-zone-card {
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 8px;
  transition: border-color 0.15s;
}

.skineditor-zone-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.skineditor-zone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.skineditor-color-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.skineditor-color-picker-wrap {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.skineditor-color-picker-wrap input[type="color"] {
  position: absolute;
  top: -10px;
  left: -10px;
  width: 50px;
  height: 50px;
  opacity: 0;
  cursor: pointer;
}

.skineditor-hex-input {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 6px;
  padding: 5px 8px;
  font-family: monospace;
  font-size: 0.82rem;
  width: 82px;
  text-transform: uppercase;
}

.skineditor-mini-swatches {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
}

.skineditor-mini-swatch {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: transform 0.1s, border-color 0.1s;
}

.skineditor-mini-swatch:hover {
  transform: scale(1.25);
  border-color: #fff;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.skineditor-icon-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.15s;
}

.skineditor-icon-btn:hover {
  color: #fff;
}

.skineditor-icon-btn.locked {
  color: #f59e0b;
}

.skineditor-draft-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 8px;
  transition: background 0.2s;
}

.skineditor-draft-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.18);
}

.color-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* --- TELEPORT (ISLEPILOT MATCHING STYLE) --- */
.teleport-header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.teleport-main-title {
  font-size: 1.85rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px 0;
  letter-spacing: -0.02em;
}

.teleport-sub-title {
  font-size: 0.92rem;
  color: #94a3b8;
  margin: 0;
}

.teleport-balance-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(12, 18, 26, 0.9);
  border: 1px solid rgba(255, 42, 133, 0.4);
  border-radius: 12px;
  padding: 8px 20px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.teleport-balance-icon {
  font-size: 1.35rem;
  color: #eab308;
}

.teleport-balance-meta {
  display: flex;
  flex-direction: column;
}

.teleport-balance-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.teleport-balance-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.teleport-locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.teleport-loc-card {
  background: rgba(8, 14, 20, 0.75);
  border: 1.5px solid #ff2a85;
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 160px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.teleport-loc-card:hover {
  border-color: #ff2a85;
  box-shadow: 0 8px 28px rgba(255, 42, 133, 0.18);
  transform: translateY(-2px);
}

.teleport-loc-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.teleport-loc-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1.5px solid #ff2a85;
  background: rgba(255, 42, 133, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff2a85;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.teleport-loc-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teleport-loc-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(49, 46, 129, 0.35);
  border: 1px solid rgba(99, 102, 241, 0.45);
  color: #a5b4fc;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 9999px;
  width: fit-content;
  margin: 14px 0 16px 0;
}

.teleport-btn-action {
  border: 1.5px solid #ff2a85;
  background: rgba(255, 42, 133, 0.06);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 8px 22px;
  border-radius: 8px;
  cursor: pointer;
  align-self: flex-start;
  transition: all 0.2s ease;
}

.teleport-btn-action:hover {
  background: #ff2a85;
  color: #000000;
  box-shadow: 0 0 16px rgba(255, 42, 133, 0.4);
}

.teleport-friend-container {
  background: rgba(8, 14, 20, 0.75);
  border: 1.5px solid #ff2a85;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.teleport-friend-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.teleport-friend-header-icon {
  font-size: 1.3rem;
  color: #ff2a85;
}

.teleport-friend-header-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.teleport-friend-sub {
  color: #94a3b8;
  font-size: 0.88rem;
  margin: 0 0 20px 0;
}

.teleport-friend-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 768px) {
  .teleport-friend-grid {
    grid-template-columns: 1fr;
  }
}

.teleport-friend-subcard {
  background: rgba(10, 16, 24, 0.85);
  border: 1px solid rgba(255, 42, 133, 0.35);
  border-radius: 12px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.teleport-subcard-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px 0;
}

.teleport-subcard-text {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0 0 18px 0;
}

.teleport-btn-ticket {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.teleport-btn-ticket:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
}

.teleport-code-input {
  width: 100%;
  font-family: monospace;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.6);
  border: 1.5px solid rgba(255, 42, 133, 0.35);
  border-radius: 8px;
  padding: 10px 14px;
  color: #ffffff;
  margin-bottom: 12px;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.teleport-code-input:focus {
  border-color: #ff2a85;
  box-shadow: 0 0 10px rgba(255, 42, 133, 0.25);
}

.teleport-btn-submit {
  width: 100%;
  padding: 10px;
  border: 1.5px solid rgba(255, 42, 133, 0.35);
  background: rgba(255, 42, 133, 0.06);
  color: #94a3b8;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.teleport-btn-submit.active,
.teleport-btn-submit:hover {
  background: #ff2a85;
  color: #000000;
  border-color: #ff2a85;
  box-shadow: 0 0 16px rgba(255, 42, 133, 0.4);
}

/* ==========================================================================
   ADMIN PANEL 3D PINK & BLACK STYLES
   ========================================================================== */

.admin-wrapper {
  max-width: 1240px;
  margin: 0 auto;
}

.admin-header-card {
  padding: 24px 28px;
  margin-bottom: 24px;
}

.admin-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.admin-title-box {
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-shield-icon {
  font-size: 2.2rem;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 42, 133, 0.25), rgba(217, 27, 110, 0.15));
  border: 1.5px solid var(--accent);
  border-radius: 12px;
  box-shadow: 0 0 20px var(--accent-glow);
}

.admin-main-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 40%, #ff70a6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.admin-subtitle {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 2px;
}

.admin-actions-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-refresh-admin, .btn-logout-admin {
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-refresh-admin {
  background: rgba(255, 42, 133, 0.12);
  border: 1px solid rgba(255, 42, 133, 0.4);
  color: #fff;
}

.btn-refresh-admin:hover {
  background: rgba(255, 42, 133, 0.25);
  box-shadow: 0 0 14px rgba(255, 42, 133, 0.3);
  transform: translateY(-1px);
}

.btn-logout-admin {
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #f87171;
}

.btn-logout-admin:hover {
  background: rgba(248, 113, 113, 0.25);
  transform: translateY(-1px);
}

/* Stats Counter Grid */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin: 20px 0 24px;
}

.admin-stat-card {
  background: rgba(10, 8, 15, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.admin-stat-icon {
  font-size: 1.8rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-stat-info {
  display: flex;
  flex-direction: column;
}

.admin-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-stat-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-top: 2px;
}

/* Admin Sub Navigation Tabs */
.admin-nav-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 18px;
}

.admin-tab-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.admin-tab-btn:hover {
  color: #fff;
  border-color: rgba(255, 42, 133, 0.4);
  background: rgba(255, 42, 133, 0.08);
}

.admin-tab-btn.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 42, 133, 0.3), rgba(217, 27, 110, 0.15));
  border-color: var(--accent);
  box-shadow: 0 0 16px rgba(255, 42, 133, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Filter Bar */
.admin-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.admin-search-wrap {
  flex: 1;
  min-width: 260px;
  position: relative;
  display: flex;
  align-items: center;
}

.admin-search-wrap .search-icon {
  position: absolute;
  left: 14px;
  font-size: 1rem;
  color: var(--text-muted);
  pointer-events: none;
}

.admin-search-input {
  width: 100%;
  padding: 11px 16px 11px 40px;
  background: rgba(10, 8, 14, 0.9);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.92rem;
  font-family: inherit;
  transition: var(--transition);
}

.admin-search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(255, 42, 133, 0.3);
}

.admin-filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-pill {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.admin-pill:hover {
  color: #fff;
  border-color: rgba(255, 42, 133, 0.4);
}

.admin-pill.active {
  background: rgba(255, 42, 133, 0.2);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 12px rgba(255, 42, 133, 0.25);
}

/* Player Cards Grid */
.admin-players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 18px;
}

.admin-player-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
}

.admin-player-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 42, 133, 0.5);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 42, 133, 0.15);
}

.player-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.player-avatar-box {
  position: relative;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.player-online-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid #08070b;
}

.player-online-dot.online {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.player-online-dot.offline {
  background: #6b7280;
}

.player-main-meta {
  flex: 1;
  min-width: 0;
}

.player-name-txt {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-sid-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.sid-txt {
  font-family: monospace;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.btn-copy-mini {
  background: transparent;
  border: none;
  font-size: 0.8rem;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.btn-copy-mini:hover {
  opacity: 1;
}

.player-badge-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.diet-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}

.diet-badge.herb {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.diet-badge.carn {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-badge-mini {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
}

.status-badge-mini.online {
  color: #10b981;
}

.status-badge-mini.offline {
  color: #6b7280;
}

/* Dino block inside card */
.player-dino-block {
  background: rgba(10, 8, 14, 0.6);
  border: 1px solid rgba(255, 42, 133, 0.12);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.dino-head-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.dino-spec-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
}

.dino-gender-tag {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 700;
}

.admin-progress-wrap {
  margin-bottom: 10px;
}

.admin-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 4px;
}

.growth-val-txt {
  font-weight: 800;
  color: var(--accent);
}

.admin-progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.admin-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff2a85, #ff66ab);
  box-shadow: 0 0 10px rgba(255, 42, 133, 0.5);
  border-radius: 999px;
}

.player-vitals-mini {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Player card actions */
.player-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.btn-action-intervene {
  flex: 1;
  background: linear-gradient(135deg, rgba(255, 42, 133, 0.25), rgba(217, 27, 110, 0.15));
  border: 1px solid var(--accent);
  color: #fff;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(255, 42, 133, 0.2);
  transition: var(--transition);
}

.btn-action-intervene:hover {
  background: linear-gradient(135deg, #ff2a85, #d91b6e);
  box-shadow: 0 4px 15px rgba(255, 42, 133, 0.4);
  transform: translateY(-1px);
}

.btn-action-quick-heal {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-action-quick-heal:hover {
  background: rgba(16, 185, 129, 0.3);
  transform: translateY(-1px);
}

.btn-action-quick-kick {
  background: rgba(248, 113, 113, 0.15);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #f87171;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-action-quick-kick:hover {
  background: rgba(248, 113, 113, 0.3);
  transform: translateY(-1px);
}

/* ==========================================
   ADMIN INTERVENTION MODAL
   ========================================== */

.admin-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.admin-modal-card {
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(255, 42, 133, 0.25);
  border-color: var(--accent);
}

.admin-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.admin-modal-close {
  background: transparent;
  border: none;
  font-size: 1.8rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.admin-modal-close:hover {
  color: #fff;
}

.modal-dino-info-banner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  background: rgba(10, 8, 14, 0.8);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 20px;
}

.modal-info-col {
  display: flex;
  flex-direction: column;
}

.modal-info-col .m-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.modal-info-col .m-val {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  margin-top: 2px;
}

.modal-info-col .m-val.highlight {
  color: var(--accent);
}

.modal-actions-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-action-box {
  background: rgba(10, 8, 14, 0.7);
  border: 1px solid rgba(255, 42, 133, 0.2);
  border-radius: var(--radius-sm);
  padding: 16px;
  transition: border-color 0.2s;
}

.modal-action-box:hover {
  border-color: rgba(255, 42, 133, 0.45);
}

.action-box-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.action-box-icon {
  font-size: 1.3rem;
  line-height: 1;
  padding-top: 2px;
}

.action-box-head h4 {
  font-size: 0.98rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 2px;
}

.action-box-head p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.admin-select {
  width: 100%;
  padding: 9px 12px;
  background: rgba(10, 8, 14, 0.9);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
}

.admin-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(255, 42, 133, 0.3);
}

.admin-textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(10, 8, 14, 0.9);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.92rem;
  font-family: inherit;
  resize: vertical;
}

.admin-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 14px rgba(255, 42, 133, 0.3);
}

/* Admin Tables */
.admin-table-responsive {
  width: 100%;
  overflow-x: auto;
}

.admin-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.admin-data-table th, .admin-data-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 42, 133, 0.15);
}

.admin-data-table th {
  background: rgba(255, 42, 133, 0.08);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.admin-data-table tr:hover td {
  background: rgba(255, 42, 133, 0.04);
}

/* Admin Login Card */
.admin-login-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 55vh;
  padding: 20px;
}

.admin-login-card {
  max-width: 440px;
  width: 100%;
  text-align: center;
  padding: 36px 30px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9), 0 0 30px rgba(255, 42, 133, 0.2);
}

.admin-login-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;
  background: linear-gradient(135deg, rgba(255, 42, 133, 0.3), rgba(217, 27, 110, 0.15));
  border: 2px solid var(--accent);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  box-shadow: 0 0 25px rgba(255, 42, 133, 0.35);
}

.admin-form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

/* ==========================================================================
   ADMIN MODE TOGGLE & GUEST PREVIEW INDICATOR
   ========================================================================== */

.admin-mode-toggle-pill {
  display: none;
  align-items: center;
  background: rgba(12, 10, 16, 0.95);
  border: 1px solid rgba(255, 42, 133, 0.4);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
  box-shadow: 0 0 14px rgba(255, 42, 133, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.btn-mode-opt {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-mode-opt:hover {
  color: #fff;
  background: rgba(255, 42, 133, 0.1);
}

.btn-mode-opt.active {
  background: linear-gradient(135deg, #ff2a85 0%, #d91b6e 100%);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(255, 42, 133, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* Floating Guest Mode Indicator for Admin */
.floating-guest-indicator {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(18, 14, 24, 0.95);
  border: 1.5px solid var(--accent);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9), 0 0 25px rgba(255, 42, 133, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s;
}

.floating-guest-indicator:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.95), 0 0 35px rgba(255, 42, 133, 0.6);
}

.pulsing-guest-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fbbf24;
  box-shadow: 0 0 10px #fbbf24;
  animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.35); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

/* ==========================================================================
   ADMIN VITALS & NEW MODULES 3D STYLES
   ========================================================================== */

.admin-vitals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.admin-grid-two-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 20px;
}

.is-online-card {
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(18, 14, 24, 0.88);
  box-shadow: 0 10px 25px -4px rgba(0, 0, 0, 0.8), 0 0 15px rgba(16, 185, 129, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.is-offline-card {
  opacity: 0.75;
  filter: grayscale(0.2);
}

.is-offline-card:hover {
  opacity: 1;
  filter: none;
}

/* ==========================================================================
   ISLEPILOT PLAYER MODERATION MODAL (EXACT MATCH TO SCREENSHOT)
   ========================================================================== */

.clickable-player-name {
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.clickable-player-name:hover {
  color: #ff2a85 !important;
  text-shadow: 0 0 10px rgba(255, 42, 133, 0.6);
  text-decoration: underline;
}

.mod-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: modFadeIn 0.2s ease-out;
}

@keyframes modFadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.mod-modal-container {
  background: #0d0f12;
  border: 1px solid #232833;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), 0 0 30px rgba(255, 42, 133, 0.15);
  border-radius: 12px;
  width: 100%;
  max-width: 1200px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #e5e7eb;
  position: relative;
}

.mod-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #11141a;
  border-bottom: 1px solid #1f242d;
  flex-shrink: 0;
}

.mod-breadcrumbs {
  font-size: 0.88rem;
  color: #9ca3af;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
}
.mod-breadcrumbs span {
  color: #9ca3af;
}
.mod-breadcrumbs .mod-player-name-crumb {
  color: #fff;
  font-weight: 700;
}

.mod-close-btn {
  background: transparent;
  border: none;
  color: #9ca3af;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: var(--transition);
}
.mod-close-btn:hover {
  color: #ff2a85;
  background: rgba(255, 42, 133, 0.1);
}

.mod-modal-body {
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Top Progress Bars */
.mod-top-bars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 12px 16px;
  background: #12151c;
  border: 1px solid #1f242e;
  border-radius: 8px;
}
.mod-bar-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mod-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
  color: #d1d5db;
}
.mod-bar-val {
  font-weight: 800;
  font-family: monospace;
}
.mod-bar-track {
  height: 8px;
  background: #1e232d;
  border-radius: 999px;
  overflow: hidden;
}
.mod-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.3s ease;
}
.mod-bar-fill.health {
  background: #06b6d4;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}
.mod-bar-fill.hunger {
  background: #eab308;
  box-shadow: 0 0 10px rgba(234, 179, 8, 0.5);
}
.mod-bar-fill.thirst {
  background: #e2e8f0;
  box-shadow: 0 0 10px rgba(226, 232, 240, 0.5);
}

/* Two-column layout */
.mod-main-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
}

@media (max-width: 900px) {
  .mod-top-bars {
    grid-template-columns: 1fr;
  }
  .mod-main-grid {
    grid-template-columns: 1fr;
  }
}

.mod-left-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.mod-right-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mod-section-hint {
  font-size: 0.82rem;
  color: #9ca3af;
  margin-bottom: 10px;
  line-height: 1.4;
}

/* Inputs Row for Stats */
.mod-inputs-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}
.mod-field-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mod-field-box label {
  font-size: 0.78rem;
  color: #9ca3af;
  font-weight: 600;
}
.mod-field-box input, .mod-side-card input, .mod-swap-wrap input, .mod-swap-wrap select {
  background: #14171d;
  border: 1px solid #2b303b;
  border-radius: 6px;
  padding: 8px 12px;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}
.mod-field-box input:focus, .mod-side-card input:focus, .mod-swap-wrap input:focus, .mod-swap-wrap select:focus {
  border-color: #f97316;
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.2);
}

/* Mod Buttons */
.mod-btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.btn-mod-orange {
  background: #ea580c;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.btn-mod-orange:hover {
  background: #f97316;
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.4);
}

.btn-mod-dark {
  background: #1a1e26;
  color: #e5e7eb;
  border: 1px solid #2e3543;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.btn-mod-dark:hover {
  background: #252b37;
  color: #fff;
  border-color: #4b5563;
}

.btn-mod-slay {
  background: #be123c;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.btn-mod-slay:hover {
  background: #e11d48;
  box-shadow: 0 0 12px rgba(225, 29, 72, 0.4);
}

.btn-mod-smite {
  background: #881337;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.btn-mod-smite:hover {
  background: #9f1239;
  box-shadow: 0 0 12px rgba(159, 18, 57, 0.4);
}

.btn-mod-red {
  background: #dc2626;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-mod-red:hover {
  background: #ef4444;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
}

.mod-swap-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Prime Progress Card */
.mod-prime-card {
  background: #12151c;
  border: 1px solid #1f242e;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mod-prime-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mod-prime-title {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
}
.mod-prime-badge {
  background: rgba(217, 119, 6, 0.2);
  color: #fbbf24;
  border: 1px solid #d97706;
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 0.8rem;
  font-weight: 800;
}
.mod-prime-summary {
  font-size: 0.85rem;
  color: #9ca3af;
  font-weight: 600;
}
.mod-quest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 8px;
  margin-top: 6px;
}
.mod-quest-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  padding: 4px 0;
}
.mod-quest-item.is-done {
  color: #10b981;
}
.mod-quest-item.not-done {
  color: #6b7280;
}
.mod-quest-icon {
  font-weight: 900;
  font-size: 0.95rem;
}

/* Right Sidebar Cards */
.mod-side-card {
  background: #12151c;
  border: 1px solid #1f242e;
  border-radius: 8px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mod-side-card label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #d1d5db;
}
.mod-input-group {
  display: flex;
  gap: 8px;
  align-items: center;
}
.mod-input-group input {
  flex: 1;
}
.mod-side-hint {
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.3;
}

.mod-balance-val {
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.5px;
}
.mod-balance-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.mod-balance-actions input {
  flex: 1;
}

.mod-activity-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #9ca3af;
}
.mod-activity-row b {
  color: #fff;
  font-family: monospace;
}

/* ==========================================================================
   ADMIN LEADERBOARD TABLE STYLES
   ========================================================================== */
.admin-bxh-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-bxh-table th {
  background: #11141a;
  color: #9ca3af;
  font-size: 0.82rem;
  text-transform: uppercase;
  padding: 14px 16px;
  border-bottom: 1px solid #1f242e;
  font-weight: 700;
}

.admin-bxh-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 42, 133, 0.12);
  font-size: 0.9rem;
  vertical-align: middle;
}

.admin-bxh-row.is-online-row td {
  background: rgba(16, 185, 129, 0.04);
}

.admin-bxh-row.is-online-row:hover td {
  background: rgba(16, 185, 129, 0.12);
}

.admin-bxh-row.is-offline-row td {
  opacity: 0.85;
}

.admin-bxh-row.is-offline-row:hover td {
  opacity: 1;
  background: rgba(255, 42, 133, 0.08);
}

.admin-group-header-row td {
  font-weight: 800;
  letter-spacing: 0.5px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}




/* ============================================================
   ISLEPILOT PLAYER MODERATION - ADVANCED SUBTABS & ENHANCEMENTS
   ============================================================ */
.mod-nav-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: #11141a;
  border-bottom: 1px solid #1f242d;
  overflow-x: auto;
  overflow-y: hidden !important;
  flex-shrink: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 42, 133, 0.4) transparent;
  position: relative;
  z-index: 10;
}

.mod-nav-pills::-webkit-scrollbar {
  height: 4px;
}

.mod-nav-pills::-webkit-scrollbar-thumb {
  background: rgba(255, 42, 133, 0.4);
  border-radius: 4px;
}

.mod-pill-btn {
  background: rgba(255, 255, 255, 0.05);
  color: #9ca3af;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1.2;
  user-select: none;
}

.mod-pill-btn:hover {
  background: rgba(255, 42, 133, 0.12);
  color: #fff;
  border-color: rgba(255, 42, 133, 0.4);
}

.mod-pill-btn.active {
  background: linear-gradient(135deg, #ff2a85, #d91b6e) !important;
  color: #fff !important;
  border-color: #ff2a85 !important;
  box-shadow: 0 0 14px rgba(255, 42, 133, 0.45);
}

.mod-tab-pane {
  display: none;
}

.mod-tab-pane.active {
  display: block;
}

.mod-sec-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: #ff70a6;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Mutation Cards */
.mod-mutation-card {
  background: rgba(13, 15, 18, 0.8);
  border: 1px solid #232833;
  border-radius: 10px;
  padding: 14px;
}

.mod-mut-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 6px;
}

.mod-mut-slots {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mod-mut-badge {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.mod-mut-badge.active {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.mod-mut-badge.parent {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.3);
  color: #c084fc;
}

.mod-mut-badge.elder {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}

.mod-mut-badge.empty {
  color: #6b7280;
  opacity: 0.6;
}

/* Garage & Skins in Modal */
.mod-garage-list, .mod-warnings-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mod-garage-item, .mod-warning-item {
  background: #14171d;
  border: 1px solid #232833;
  border-radius: 8px;
  padding: 14px 16px;
}

.mod-skins-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.mod-skin-item {
  background: #14171d;
  border: 1px solid #232833;
  border-radius: 8px;
  padding: 14px;
}


/* Trang admin chỉ giữ lại các ô bôi đỏ (Trang chủ, Bảng xếp hạng, Bản đồ Gateway, Quản Trị) - ẩn tất cả các mục khác */
.admin-mode-active .nav-item-player,
body.admin-mode-active .nav-item-player,
body[data-current-tab="admin"] .nav-item-player {
  display: none !important;
}

/* Đảm bảo 4 nút còn lại dàn đều đẹp mắt trên một hàng duy nhất */
.admin-mode-active .nav-links,
body.admin-mode-active .nav-links,
body[data-current-tab="admin"] .nav-links {
  gap: 12px 18px;
}
