:root {
  --navy: #0a0e1a;
  --navy-light: #111827;
  --navy-mid: #1a2332;
  --panel: #141c2b;
  --panel-border: #1e2a3d;
  --gold: #c8a04e;
  --gold-dim: #8b7034;
  --gold-bright: #e8c94a;
  --brass: #b8963e;
  --text: #d1d5db;
  --text-dim: #6b7280;
  --text-bright: #f3f4f6;
  --green: #22c55e;
  --yellow: #eab308;
  --red: #ef4444;
  --blue: #3b82f6;
  --cyan: #06b6d4;
}

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

body {
  background: var(--navy);
  color: var(--text);
  font-family: 'IBM Plex Sans', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(200, 160, 78, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(59, 130, 246, 0.02) 0%, transparent 50%),
    linear-gradient(180deg, #080c16 0%, #0a0e1a 30%, #0d1220 100%);
  pointer-events: none;
  z-index: 0;
}

#root {
  position: relative;
  z-index: 1;
}

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--navy);
}
::-webkit-scrollbar-thumb {
  background: var(--panel-border);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-dim);
}

.serif-heading {
  font-family: 'Crimson Pro', serif;
}

.mono-text {
  font-family: 'IBM Plex Mono', monospace;
}

.panel {
  background: linear-gradient(135deg, rgba(20, 28, 43, 0.95) 0%, rgba(16, 22, 35, 0.98) 100%);
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  position: relative;
}

.panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
  opacity: 0.3;
}

.panel-embossed {
  box-shadow: 
    inset 0 1px 0 rgba(200, 160, 78, 0.05),
    0 2px 8px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(0, 0, 0, 0.2);
}

.gold-border-top {
  border-top: 2px solid var(--gold-dim);
}

.stat-bar {
  height: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.05);
  overflow: hidden;
  position: relative;
}

.stat-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.8s ease-out;
  position: relative;
}

.stat-bar-fill::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.15) 50%, transparent 100%);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

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

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200, 160, 78, 0.4); }
  50% { box-shadow: 0 0 20px 4px rgba(200, 160, 78, 0.15); }
}

.animate-fade-in {
  animation: fadeIn 0.4s ease-out forwards;
}

.animate-slide-in {
  animation: slideIn 0.3s ease-out forwards;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--brass) 100%);
  color: var(--navy);
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(200, 160, 78, 0.3);
}

.btn-gold:active {
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--panel-border);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-outline:hover {
  border-color: var(--gold-dim);
  color: var(--gold);
}

.btn-outline.active {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(200, 160, 78, 0.08);
}

.tooltip-container {
  position: relative;
}

.tooltip-container:hover .tooltip-text {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.tooltip-text {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #1a2332;
  border: 1px solid var(--gold-dim);
  color: var(--text);
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
  z-index: 100;
  pointer-events: none;
}

.news-ticker-item {
  border-left: 3px solid var(--gold-dim);
  animation: slideIn 0.3s ease-out forwards;
}

.slider-custom {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.08);
  outline: none;
}

.slider-custom::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  box-shadow: 0 0 6px rgba(200, 160, 78, 0.4);
}

.slider-custom::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  border: none;
}

select.styled-select {
  background: var(--navy-mid);
  border: 1px solid var(--panel-border);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 4px;
  outline: none;
  cursor: pointer;
  font-family: 'IBM Plex Sans', sans-serif;
}

select.styled-select:focus {
  border-color: var(--gold-dim);
}

input.styled-input {
  background: var(--navy-mid);
  border: 1px solid var(--panel-border);
  color: var(--text-bright);
  padding: 10px 14px;
  border-radius: 4px;
  outline: none;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 14px;
}

input.styled-input:focus {
  border-color: var(--gold-dim);
  box-shadow: 0 0 0 2px rgba(200, 160, 78, 0.1);
}

textarea.styled-input {
  background: var(--navy-mid);
  border: 1px solid var(--panel-border);
  color: var(--text-bright);
  padding: 10px 14px;
  border-radius: 4px;
  outline: none;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 14px;
}

textarea.styled-input:focus {
  border-color: var(--gold-dim);
  box-shadow: 0 0 0 2px rgba(200, 160, 78, 0.1);
}

.watermark {
  position: fixed;
  bottom: 20px;
  right: 20px;
  font-size: 120px;
  font-family: 'Crimson Pro', serif;
  font-weight: 900;
  color: rgba(200, 160, 78, 0.02);
  pointer-events: none;
  z-index: 0;
  user-select: none;
}

.advance-btn {
  animation: pulse-gold 3s infinite;
}

.tab-indicator {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  transition: all 0.3s;
}

@keyframes countUp {
  from { opacity: 0.5; }
  to { opacity: 1; }
}

.count-animate {
  animation: countUp 0.3s ease-out;
}

@media (max-width: 768px) {
  .watermark { display: none; }
}