:root {
  /* Midnight Blue / Cyan Neon Theme */
  --bg-app: #060913;
  --bg-gradient: radial-gradient(circle at 50% 0%, #17213d 0%, #060913 60%);
  --bg-panel: rgba(15, 23, 42, 0.6);
  --bg-nav: rgba(10, 15, 28, 0.85);
  
  --text-main: #f8fafc;
  --text-dim: #94a3b8;
  --text-dark: #64748b;
  
  --border-glow: rgba(56, 189, 248, 0.15);
  --border-solid: rgba(255, 255, 255, 0.06);
  --glass-blur: blur(20px);

  /* Accents */
  --c-primary: #38bdf8; /* Neon Blue */
  --c-secondary: #818cf8; /* Indigo */
  --c-emerald: #10b981; 
  --c-gold: #fbbf24;
  --c-red: #f43f5e;
  --c-orange: #f97316;
  --c-teal: #14b8a6;
  --c-purple: #c084fc;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Outfit', sans-serif;
}

body {
  background-color: var(--bg-app);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* TOP NAVBAR */
.top-navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-nav);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-solid);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  height: 72px;
}

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

.logo-circle {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--c-primary), var(--c-secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

.logo-circle i {
  color: #fff;
  width: 20px;
  height: 20px;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand span:first-child {
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 14px;
  color: var(--text-main);
}

.brand span:last-child {
  font-weight: 300;
  letter-spacing: 4px;
  font-size: 10px;
  color: var(--c-primary);
}

.nav-menu {
  display: flex;
  gap: 8px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.nav-link i {
  width: 16px;
  height: 16px;
}

.nav-link:hover, .nav-link.active {
  color: var(--c-primary);
  background: rgba(56, 189, 248, 0.08);
}

/* OVERLAP PROFILE */
.nav-profile {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-profile span {
  font-weight: 500;
  font-size: 14px;
  color: var(--text-main);
}

.avatar-ring {
  padding: 3px;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--c-emerald), var(--c-primary));
}

.avatar-ring img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: block;
  border: 2px solid var(--bg-nav);
}

/* MAIN LAYOUT */
.main-wrapper {
  flex: 1;
  padding: 40px;
}

.dashboard-container {
  max-width: 1400px;
  margin: 0 auto;
}

/* HEADER */
.character-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-solid);
}

.char-title h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.badge.neon-blue {
  background: rgba(56, 189, 248, 0.1);
  color: var(--c-primary);
  border: 1px solid var(--border-glow);
}

.quick-stats-row {
  display: flex;
  gap: 32px;
}

.q-stat {
  display: flex;
  align-items: center;
  gap: 12px;
}

.q-stat i {
  width: 24px;
  height: 24px;
  color: var(--text-dark);
}

.q-stat div {
  display: flex;
  flex-direction: column;
}

.q-stat .lbl {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.q-stat .val {
  font-size: 18px;
  font-weight: 600;
}

/* COLORS */
.text-green { color: var(--c-emerald); }
.text-gold { color: var(--c-gold); }
.text-blue { color: var(--c-primary); }
.text-red { color: var(--c-red); }
.text-orange { color: var(--c-orange); }
.text-cyan { color: var(--c-cyan); }
.text-gray { color: var(--text-dim); }

.badge-purple { background: rgba(192, 132, 252, 0.15); color: var(--c-purple); padding: 4px 10px; border-radius: 6px; font-weight: 600; display: inline-block; font-size: 13px;}
.badge-teal { background: rgba(20, 184, 166, 0.15); color: var(--c-teal); padding: 4px 10px; border-radius: 6px; font-weight: 600; display: inline-block; font-size: 13px;}

/* 3-COLUMN Grid - Left 1fr, Center 1.5fr, Right 1fr */
.rpg-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 30px;
  align-items: start;
}

/* PANELS */
.panel-box {
  background: var(--bg-panel);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-solid);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.mt-4 {
  margin-top: 30px;
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-solid);
}

.panel-head i {
  color: var(--c-primary);
  width: 20px;
  height: 20px;
}

.panel-head h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.panel-body {
  padding: 20px;
}

/* DATA LISTS (Left col) */
.list-data {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.data-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.data-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.data-label {
  color: var(--text-dim);
  font-size: 14px;
}

.data-value {
  font-weight: 600;
  font-size: 15px;
}

/* SHOWCASE (Center Col) */
.showcase-box {
  position: relative;
  height: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.6) 100%);
  border: 1px solid var(--border-solid);
}

.spotlight {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.2) 0%, rgba(0,0,0,0) 70%);
  z-index: 0;
}

.char-model {
  height: 90%;
  object-fit: contain;
  z-index: 10;
  filter: drop-shadow(0 20px 20px rgba(0,0,0,0.8));
}

.skin-tag {
  position: absolute;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-nav);
  padding: 8px 16px;
  border-radius: 30px;
  border: 1px solid var(--border-glow);
  z-index: 20;
}

.skin-tag i {
  color: var(--c-primary);
  width: 16px;
  height: 16px;
}

.skin-tag span {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1px;
}

/* FINANCE CARDS (Right Col) */
.finance-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.f-card {
  background: rgba(16, 185, 129, 0.05); /* very light green tint */
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 16px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.f-card.bg-alt {
  background: rgba(56, 189, 248, 0.05);
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.f-label {
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.f-value {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* VITAL BARS (Right Col) */
.vital-bars {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bar-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bar-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
}

.bar-info span:first-child {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-sm {
  width: 14px;
  height: 14px;
}

.track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

.fill {
  height: 100%;
  border-radius: 10px;
  transition: width 1s ease-out;
}

.fill-red { background: linear-gradient(90deg, #be123c, #f43f5e); box-shadow: 0 0 10px rgba(244, 63, 94, 0.5); }
.fill-gray { background: linear-gradient(90deg, #475569, #94a3b8); }
.fill-orange { background: linear-gradient(90deg, #c2410c, #f97316); box-shadow: 0 0 10px rgba(249, 115, 22, 0.5); }
.fill-cyan { background: linear-gradient(90deg, #0284c7, #38bdf8); box-shadow: 0 0 10px rgba(56, 189, 248, 0.5); }

/* FOOTER */
.app-footer {
  text-align: center;
  padding: 40px 0 0 0;
  color: var(--text-dark);
  font-size: 13px;
}

.app-footer strong {
  color: var(--text-dim);
}

/* Responsive Scaling */
@media (max-width: 1200px) {
  .rpg-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .col-center {
    grid-column: 1 / -1;
    order: -1;
  }
  .showcase-box {
    height: 350px;
  }
}
