:root {
  --bg-primary: #080d0a;
  --bg-secondary: #0f1612;
  --bg-tertiary: #16201a;
  --bg-card: rgba(18, 26, 21, 0.82);
  --bg-card-hover: rgba(26, 38, 30, 0.95);
  --border-color: rgba(245, 158, 11, 0.24);
  --border-focus: #fbbf24;
  --text-primary: #fffbeb;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --accent-gold: #f59e0b;
  --accent-gold-light: #fbbf24;
  --accent-gold-rich: #d97706;
  --accent-gold-glow: rgba(245, 158, 11, 0.35);
  --accent-emerald: #10b981;
  --accent-emerald-light: #34d399;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --accent-cyan: #38bdf8;
  --accent-orange: #ea580c;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.7);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #060a08;
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: 
    linear-gradient(90deg, rgba(6, 10, 8, 0.25) 0%, rgba(6, 10, 8, 0.75) 30%, rgba(6, 10, 8, 0.84) 50%, rgba(6, 10, 8, 0.75) 70%, rgba(6, 10, 8, 0.25) 100%),
    linear-gradient(180deg, rgba(6, 10, 8, 0.4) 0%, rgba(6, 10, 8, 0.75) 100%),
    url('../bg-trex-trike.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

a {
  color: var(--accent-gold-light);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: #fef08a;
  text-shadow: 0 0 8px rgba(251, 191, 36, 0.5);
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 15, 12, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.nav-wrap, .nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 8px 0;
  gap: 12px;
  flex-wrap: wrap;
}

.brand, .brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 900;
  font-size: 1.3rem;
  color: #fff;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.brand-tag {
  background: linear-gradient(135deg, #d97706, #f59e0b 60%, #fbbf24 100%);
  color: #0f172a;
  font-size: 0.725rem;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 4px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.nav-link {
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.4);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.15);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 50%, #fbbf24 100%);
  color: #0f172a;
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.38);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #fef08a 100%);
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.55);
  transform: translateY(-2px);
  color: #000;
}

.btn-secondary {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.28);
  color: #fffbeb;
}
.btn-secondary:hover {
  background: rgba(245, 158, 11, 0.16);
  border-color: #fbbf24;
  color: #fbbf24;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
}

.btn-danger {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: #fda4af;
}
.btn-danger:hover {
  background: #f43f5e;
  color: #fff;
}

.btn-hud {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #fff;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
}
.btn-hud:hover {
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  color: #fff;
}

.btn-steam {
  background: #171a21;
  border: 1px solid #3c4454;
  color: #c5c3c0;
}
.btn-steam:hover {
  background: #2a475e;
  color: #fff;
  border-color: #66c0f4;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.825rem;
}

/* Announcement Ticker */
.ticker-bar {
  background: rgba(245, 158, 11, 0.08);
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
  padding: 8px 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.ticker-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.ticker-badge {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

/* Hero Section */
.hero {
  padding: 50px 0 35px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}
.hero-title {
  font-size: 2.7rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 40%, var(--accent-emerald-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}
.server-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.875rem;
  margin-bottom: 20px;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Cards & Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 30px 0;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}
.card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(52, 211, 153, 0.4);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

/* Rules Accordion */
.rule-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  overflow: hidden;
  transition: var(--transition);
}
.rule-card.highlight {
  border-color: var(--accent-orange);
  background: rgba(234, 88, 12, 0.08);
}
.rule-card.warning-card {
  border-color: var(--accent-amber);
}
.rule-header {
  padding: 18px 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  background: rgba(255, 255, 255, 0.02);
}
.rule-header:hover {
  background: rgba(255, 255, 255, 0.04);
}
.rule-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.rule-body {
  padding: 20px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.7;
}
.rule-body ul {
  padding-left: 20px;
  margin: 12px 0;
}
.rule-body li {
  margin-bottom: 8px;
}

.rule-badge {
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
}
.badge-allow { background: rgba(245, 158, 11, 0.18); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.4); }
.badge-gold { background: linear-gradient(135deg, rgba(217, 119, 6, 0.25), rgba(245, 158, 11, 0.35)); color: #fbbf24; border: 1px solid #fbbf24; }
.badge-green { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.badge-prohibit { background: rgba(244, 63, 94, 0.2); color: #fb7185; }
.badge-warn { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.badge-orange { background: rgba(234, 88, 12, 0.2); color: #fb923c; }

/* Pack Limit Table */
.pack-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  margin: 20px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.pack-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.pack-table th {
  background: rgba(245, 158, 11, 0.14);
  padding: 14px 18px;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--accent-gold-light);
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-color);
}
.pack-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.95rem;
}
.pack-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}
.pack-limit-num {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--accent-amber);
}

/* Map Layout */
.map-page-wrap {
  display: grid;
  grid-template-columns: 1fr 340px;
  height: calc(100vh - 68px);
  position: relative;
}
#map-viewport {
  width: 100%;
  height: 100%;
  background: #060d09;
}
.map-sidebar {
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 20px;
  gap: 20px;
}

/* Team / Pack Roster */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.team-member-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: var(--transition);
}
.team-member-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(52, 211, 153, 0.4);
}
.member-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--accent-emerald-light);
  object-fit: cover;
}
.member-info {
  flex: 1;
}
.member-name {
  font-weight: 700;
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 2px;
}
.member-dino {
  font-size: 0.85rem;
  color: var(--accent-emerald-light);
}
.member-coords {
  font-size: 0.775rem;
  color: var(--text-muted);
}

/* Garage UI */
.active-dino-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 30px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
}
.dino-avatar-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
}
.stat-bars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.stat-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-label-wrap {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.stat-bar-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}
.stat-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s ease;
}
.fill-health { background: #ef4444; }
.fill-hunger { background: #f59e0b; }
.fill-thirst { background: #06b6d4; }
.fill-stamina { background: #10b981; }
.fill-growth { background: #8b5cf6; }

.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.garage-slot-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: var(--transition);
}
.garage-slot-card:hover {
  border-color: rgba(52, 211, 153, 0.4);
}
.garage-slot-card.empty {
  border-style: dashed;
  background: rgba(255, 255, 255, 0.01);
  opacity: 0.6;
}
.garage-slot-card.empty:hover {
  opacity: 1;
}

/* Forms & Inputs */
.form-group {
  margin-bottom: 18px;
}
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-secondary);
}
.form-input {
  width: 100%;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.95rem;
  transition: var(--transition);
}
.form-input:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* Footer */
.site-footer {
  margin-top: auto;
  background: #060e0a;
  border-top: 1px solid var(--border-color);
  padding: 40px 0 20px;
  color: var(--text-muted);
  font-size: 0.875rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}
.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 16px;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .map-page-wrap { grid-template-columns: 1fr; height: auto; }
  #map-viewport { height: 550px; }
  .active-dino-panel { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}

/* Notification Toast */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  color: #fff;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  animation: slideIn 0.3s ease;
}
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Landmark Pin & Tooltip */
.location-landmark-pin {
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.location-landmark-pin:hover {
  transform: scale(1.3);
}
.map-landmark-tooltip {
  background: rgba(15, 23, 42, 0.95) !important;
  border: 1px solid #38bdf8 !important;
  color: #fff !important;
  font-family: inherit !important;
  font-size: 11.5px !important;
  border-radius: 4px !important;
  padding: 4px 8px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
}
.map-landmark-tooltip::before {
  border-top-color: #38bdf8 !important;
}

/* Dino Population Status Pill (No Player Names) */
.dino-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.25);
  border-radius: 50px;
  padding: 8px 16px;
  font-size: 0.85rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}
.dino-status-pill:hover {
  border-color: rgba(52, 211, 153, 0.5);
  background: rgba(16, 185, 129, 0.14);
  transform: translateY(-1px);
}

/* Big Official Steam Login Button */
.btn-steam-big {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #171a21 0%, #1b2838 50%, #2a475e 100%);
  border: 1.5px solid #66c0f4;
  color: #ffffff !important;
  padding: 14px 28px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 18px rgba(102, 192, 244, 0.25);
  transition: all 0.25s ease;
  text-decoration: none;
  cursor: pointer;
  width: fit-content;
}
.btn-steam-big:hover {
  background: linear-gradient(135deg, #1b2838 0%, #2a475e 50%, #1999e3 100%);
  border-color: #ffffff;
  box-shadow: 0 6px 24px rgba(102, 192, 244, 0.45);
  transform: translateY(-2px);
  color: #ffffff !important;
}

/* =========================================================
   UI ENHANCEMENTS: ITEM 1 - CATEGORIZED NAVIGATION & HUD
   ========================================================= */

/* Nav Dropdown Container */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  user-select: none;
}

.nav-dropdown-toggle::after {
  content: "▾";
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-toggle::after,
.nav-dropdown.active .nav-dropdown-toggle::after {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 215px;
  background: rgba(13, 20, 16, 0.96);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  padding: 8px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.7), 0 0 20px rgba(245, 158, 11, 0.12);
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 1050;
  animation: navMenuFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  display: flex;
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  color: #cbd5e1;
  font-size: 0.86rem;
  font-weight: 600;
  transition: all 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.nav-dropdown-item:hover, .nav-dropdown-item.active {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border-left: 3px solid #f59e0b;
  padding-left: 14px;
}

/* =========================================================
   PLAYER HUD BAR (PERSISTENT HEADER WIDGET)
   ========================================================= */

.player-hud-bar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.hud-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #f8fafc;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}

.hud-pill:hover {
  border-color: #fbbf24;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.25);
}

.hud-pill-lua {
  border-color: rgba(245, 158, 11, 0.4);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(15, 23, 42, 0.85));
}
.hud-pill-lua .lua-val {
  color: #fbbf24;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.hud-pill-garage {
  border-color: rgba(56, 189, 248, 0.4);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(15, 23, 42, 0.85));
}
.hud-pill-garage .garage-val {
  color: #38bdf8;
  font-weight: 800;
}

/* Notification Bell */
.hud-bell-btn {
  position: relative;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #e2e8f0;
  font-size: 1.1rem;
  transition: all 0.2s ease;
}

.hud-bell-btn:hover {
  border-color: #f59e0b;
  color: #fbbf24;
  transform: scale(1.05);
}

.hud-bell-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: #ef4444;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.8);
  animation: pulseBadge 1.5s infinite;
}

@keyframes pulseBadge {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* User Profile Pill */
.hud-profile-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 3px 12px 3px 4px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.hud-profile-pill:hover {
  border-color: #fbbf24;
}

.hud-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #38bdf8;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
}
.hud-avatar.role-admin { border-color: #ef4444; box-shadow: 0 0 8px rgba(239, 68, 68, 0.6); }
.hud-avatar.role-vip { border-color: #fbbf24; box-shadow: 0 0 8px rgba(251, 191, 36, 0.6); }

.hud-username {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Dropdown Popover for Profile & Notification */
.hud-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 12px;
  width: 320px;
  padding: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.8), 0 0 25px rgba(245, 158, 11, 0.15);
  display: none;
  flex-direction: column;
  gap: 10px;
  z-index: 1100;
  animation: navMenuFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hud-popover.open {
  display: flex;
}

/* Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(10, 15, 12, 0.96);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(245, 158, 11, 0.3);
    z-index: 9999;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.6);
  }

  .mobile-bottom-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
    flex: 1;
    height: 100%;
    transition: all 0.15s ease;
  }

  .mobile-bottom-item .mob-icon {
    font-size: 1.25rem;
  }

  .mobile-bottom-item:hover, .mobile-bottom-item.active {
    color: #fbbf24;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.4);
  }

  body {
    padding-bottom: 70px;
  }
}

/* Mobile Slide-Out Drawer */
.mobile-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  z-index: 10000;
}
.mobile-drawer-overlay.open {
  display: block;
}

.mobile-drawer-content {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100%;
  background: #0b130e;
  border-left: 1px solid rgba(245, 158, 11, 0.3);
  box-shadow: -10px 0 40px rgba(0,0,0,0.8);
  z-index: 10001;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mobile-drawer-content.open {
  right: 0;
}

/* =========================================================
   UI ENHANCEMENTS: ITEM 3 - GLASSMORPHISM & 3D TCG CARDS
   ========================================================= */

/* Glassmorphism utility classes */
.glass-panel {
  background: rgba(15, 23, 42, 0.75) !important;
  backdrop-filter: blur(14px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5) !important;
}

.glass-panel:hover {
  border-color: rgba(245, 158, 11, 0.3) !important;
}

/* 3D TCG Dinosaur Card Styles */
.dino-card-tcg, .slot-card {
  position: relative;
  background: rgba(15, 23, 42, 0.92) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: var(--radius-md) !important;
  padding: 18px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease !important;
  overflow: hidden;
}

.dino-card-tcg:hover, .slot-card:hover {
  transform: translateY(-4px) !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.7), 0 0 20px rgba(56, 189, 248, 0.25) !important;
}

/* Glowing Accent Border for Prime & Elder Cards (No green covering) */
.dino-card-tcg.holo-prime,
.dino-card-tcg.holo-elder,
.slot-card.holo-prime {
  border: 1.5px solid rgba(16, 185, 129, 0.7) !important;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.95), rgba(16, 185, 129, 0.08)) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 16px rgba(16, 185, 129, 0.3) !important;
}

.dino-card-tcg.holo-prime:hover,
.dino-card-tcg.holo-elder:hover,
.slot-card.holo-prime:hover {
  border-color: #34d399 !important;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.8), 0 0 24px rgba(52, 211, 153, 0.5) !important;
}

/* Enhanced 4 Vital Stat Meters */
.vital-meter {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(0, 0, 0, 0.3);
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 6px;
}

.vital-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 700;
  color: #cbd5e1;
}

.vital-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}

.vital-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
}

.bar-hp { background: linear-gradient(90deg, #10b981, #34d399); box-shadow: 0 0 8px rgba(16, 185, 129, 0.5); }
.bar-hunger { background: linear-gradient(90deg, #f59e0b, #fbbf24); box-shadow: 0 0 8px rgba(245, 158, 11, 0.5); }
.bar-thirst { background: linear-gradient(90deg, #0284c7, #38bdf8); box-shadow: 0 0 8px rgba(56, 189, 248, 0.5); }
.bar-growth { background: linear-gradient(90deg, #7c3aed, #a855f7); box-shadow: 0 0 8px rgba(168, 85, 247, 0.5); }

/* Glowing Mutation Gem Tags */
.mutation-gem {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(99, 102, 241, 0.2));
  border: 1px solid #a855f7;
  color: #e9d5ff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.3);
}



