/* ========== THEME VARIABLES ========== */
:root {
  /* Dark Mode - Default (Netflix-inspired with your colors) */
  --bg-primary: #0a0f14;
  --bg-secondary: #0f1620;
  --bg-card: #131b26;
  --bg-hover: #1a2533;

  --border-color: #1e2d3d;
  --border-light: #2a3d52;

  --text-primary: #e8f0f7;
  --text-secondary: #9fb3c8;
  --text-muted: #6b8199;

  /* Brand Colors - Cool palette */
  --brand-blue: #2ca6d9;
  --brand-teal: #1ea1a1;
  --brand-green: #1db954;
  --brand-purple: #8b5cf6;

  --accent-gradient: linear-gradient(135deg, var(--brand-blue), var(--brand-teal));
  --accent-glow: rgba(46, 166, 217, 0.15);

  --success: #1db954;
  --warning: #f59e0b;
  --error: #ef4444;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* Light Mode */
body.light-mode {
  --bg-primary: #f6fbff;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-hover: #f0f7ff;

  --border-color: #d9e2ec;
  --border-light: #e6eef5;

  --text-primary: #0b1a2b;
  --text-secondary: #4b5b6a;
  --text-muted: #7a8a9a;

  --accent-glow: rgba(46, 166, 217, 0.08);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* ========== BASE STYLES ========== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ========== THEME TOGGLE ========== */
.theme-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  opacity: 0.6;
}

.theme-toggle:hover {
  transform: scale(1.1) rotate(15deg);
  box-shadow: var(--shadow-lg);
  opacity: 1;
}

body.light-mode .theme-toggle .theme-icon::before {
  content: '🌙';
}

body:not(.light-mode) .theme-toggle .theme-icon::before {
  content: '☀️';
}

/* ========== SCREENS ========== */
.screen {
  display: none !important;
  min-height: 100vh;
}

.screen.active {
  display: block !important;
}

/* ========== WELCOME SCREEN ========== */
#welcome-screen.active {
  display: flex !important;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(1200px 600px at 50% 20%, var(--accent-glow), transparent),
    radial-gradient(1000px 500px at 80% 80%, rgba(139, 92, 246, 0.1), transparent),
    var(--bg-primary);
}

.welcome-content {
  max-width: 600px;
  text-align: center;
  padding: 40px;
}

.game-logo {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.under-construction-banner {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #ffb300 0%, #ff6f00 100%);
  color: #000;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(255, 179, 0, 0.3);
  animation: pulse 2s ease-in-out infinite;
}

.construction-icon {
  font-size: 18px;
  animation: bounce 1s ease-in-out infinite;
}

.construction-text {
  font-weight: 700;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(255, 179, 0, 0.3);
  }
  50% {
    box-shadow: 0 4px 20px rgba(255, 179, 0, 0.6);
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

.tagline {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.welcome-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 32px;
}

.welcome-description {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
  max-width: 500px;
  margin: 0 auto;
}

/* ========== GAME SCREEN ========== */
.game-header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.company-name {
  font-size: 24px;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.day-counter {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 600;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.stat-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

/* ========== DAILY SUMMARY ========== */
.daily-summary {
  background: var(--bg-card);
  border: 1px solid var(--brand-teal);
  border-radius: 12px;
  margin: 24px;
  padding: 24px;
  box-shadow: 0 0 20px var(--accent-glow);
  animation: slideDown 0.4s ease;
}

.daily-summary.hidden {
  display: none;
}

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

.summary-content h3 {
  font-size: 20px;
  margin-bottom: 16px;
  color: var(--brand-teal);
}

.summary-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.summary-stat {
  display: flex;
  flex-direction: column;
}

.summary-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.summary-value {
  font-size: 24px;
  font-weight: 700;
}

.summary-value.positive {
  color: var(--success);
}

.summary-value.negative {
  color: var(--error);
}

/* ========== MAIN CONTENT ========== */
.game-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
}

/* ========== TABS ========== */
.tab-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--border-color);
}

.tab-btn {
  padding: 12px 24px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  border-radius: 8px 8px 0 0;
}

.tab-btn:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.tab-btn.active {
  color: var(--brand-blue);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-content.active {
  display: block;
}

/* Content Filter Tabs */
.content-filter-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 10px;
  flex-wrap: wrap;
}

.content-filter-tab {
  padding: 8px 16px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  border-radius: 6px;
}

.content-filter-tab:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.content-filter-tab.active {
  color: var(--brand-blue);
  background: rgba(59, 130, 246, 0.1);
}

.content-filter-tab.active::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brand-blue);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ========== CARDS ========== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--border-light);
  box-shadow: var(--shadow-md);
}

.card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-header h3 {
  font-size: 18px;
  font-weight: 700;
}

.card-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  display: block;
  margin-top: 4px;
}

.card-actions {
  display: flex;
  gap: 8px;
}

.card-body {
  padding: 24px;
}

/* ========== DASHBOARD GRID ========== */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

/* ========== KPI CARD ========== */
.kpi-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.kpi-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg-hover);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

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

.kpi-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--brand-blue);
}

/* ========== TREND LIST ========== */
.trend-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trend-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-hover);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.trend-bar-container {
  flex: 1;
  height: 8px;
  background: var(--border-color);
  border-radius: 4px;
  overflow: hidden;
}

.trend-bar {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.trend-name {
  font-size: 14px;
  font-weight: 600;
  min-width: 100px;
}

.trend-value {
  font-size: 12px;
  color: var(--text-muted);
  min-width: 60px;
  text-align: right;
}

/* ========== CONTENT DEV LIST ========== */
.content-dev-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dev-item {
  padding: 12px;
  background: var(--bg-hover);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.dev-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.dev-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

.empty-state {
  text-align: center;
  color: var(--text-muted);
  padding: 32px;
  font-size: 14px;
}

/* ========== QUICK ACTIONS ========== */
.quick-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ========== BUTTONS ========== */
.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 4px 12px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-hover);
  border-color: var(--border-light);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  background: var(--bg-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: none;
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.btn-small {
  padding: 6px 12px;
  font-size: 12px;
}

.btn-large {
  padding: 14px 28px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
  animation: pulse-glow 2s ease-in-out infinite;
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
  }
  50% {
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.6);
  }
}

/* ========== ACTION SELECTOR ========== */
.action-selector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.action-btn {
  padding: 24px;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.action-btn:hover {
  border-color: var(--brand-blue);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.action-btn.active {
  border-color: var(--brand-blue);
  background: var(--bg-hover);
}

.action-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.action-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.action-desc {
  font-size: 12px;
  color: var(--text-muted);
}

/* ========== ACTION PANELS ========== */
.action-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}

.action-panel.active {
  display: block;
}

/* ========== LICENSE GRID ========== */
.license-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.license-card {
  padding: 20px;
  background: var(--bg-hover);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.license-card:hover {
  border-color: var(--brand-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.license-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.license-genre {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.license-stats {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 12px;
}

.license-quality {
  color: var(--success);
  font-weight: 600;
}

.license-cost {
  color: var(--brand-blue);
  font-weight: 600;
}

.license-duration {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* ========== FORMS ========== */
.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-input,
.form-select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-hover);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s ease;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-select-small {
  padding: 6px 12px;
  background: var(--bg-hover);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 12px;
  cursor: pointer;
}

/* ========== BUDGET OPTIONS ========== */
.budget-options,
.campaign-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.budget-option,
.campaign-option {
  cursor: pointer;
}

.budget-option input,
.campaign-option input {
  display: none;
}

.budget-card,
.campaign-card {
  padding: 16px;
  background: var(--bg-hover);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
}

.budget-option:hover .budget-card,
.campaign-option:hover .campaign-card {
  border-color: var(--brand-blue);
  transform: translateY(-2px);
}

.budget-option input:checked + .budget-card,
.campaign-option input:checked + .campaign-card {
  border-color: var(--brand-blue);
  background: var(--accent-glow);
}

.budget-name,
.campaign-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.budget-cost,
.campaign-cost {
  font-size: 18px;
  font-weight: 700;
  color: var(--brand-blue);
  margin-bottom: 4px;
}

.budget-time,
.campaign-lift {
  font-size: 12px;
  color: var(--text-muted);
}

/* ========== GENRE PRIORITIES ========== */
.genre-priorities {
  margin-top: 24px;
  padding: 20px;
  background: var(--bg-hover);
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.genre-priorities h4 {
  font-size: 16px;
  margin-bottom: 8px;
}

.priorities-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.priority-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
}

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

.priority-name {
  font-size: 14px;
}

.priority-stars {
  font-size: 12px;
}

/* ========== BUDGET ALLOCATION ========== */
.budget-allocation {
  margin-top: 24px;
  padding: 20px;
  background: var(--bg-hover);
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.budget-allocation h4 {
  font-size: 16px;
  margin-bottom: 8px;
}

.allocation-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.allocation-phase {
  margin-bottom: 20px;
}

.allocation-phase h5 {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-teal);
  margin-bottom: 12px;
}

.allocation-inputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.allocation-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.allocation-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.allocation-item label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
}

.allocation-percent {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-blue);
  min-width: 40px;
  text-align: right;
}

.allocation-value {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  margin-top: -4px;
}

/* Range Slider Styling */
.allocation-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  background: var(--border-color);
  border-radius: 4px;
  outline: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.allocation-slider:hover {
  background: var(--border-light);
}

.allocation-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: var(--accent-gradient);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px var(--accent-glow);
  transition: all 0.2s ease;
}

.allocation-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 12px var(--accent-glow);
}

.allocation-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: var(--accent-gradient);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px var(--accent-glow);
  transition: all 0.2s ease;
}

.allocation-slider::-moz-range-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 12px var(--accent-glow);
}

/* Filled track effect */
.allocation-slider::-webkit-slider-runnable-track {
  background: linear-gradient(
    to right,
    var(--brand-teal) 0%,
    var(--brand-teal) var(--slider-percent, 0%),
    var(--border-color) var(--slider-percent, 0%),
    var(--border-color) 100%
  );
  height: 8px;
  border-radius: 4px;
}

.allocation-slider::-moz-range-track {
  background: var(--border-color);
  height: 8px;
  border-radius: 4px;
}

.allocation-summary {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.priority-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.remaining-budget {
  font-size: 16px;
  font-weight: 700;
  color: var(--brand-blue);
}

/* ========== CONTENT GRID ========== */
.content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

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

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

.content-card {
  padding: 16px;
  background: var(--bg-hover);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.content-card:hover {
  border-color: var(--brand-blue);
  transform: translateY(-2px);
}

.content-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

.content-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.content-badge {
  display: inline-block;
  padding: 4px 8px;
  background: var(--brand-blue);
  color: white;
  font-size: 10px;
  font-weight: 600;
  border-radius: 4px;
  text-transform: uppercase;
}

.content-badge.licensed {
  background: var(--brand-purple);
}

.content-badge.in-dev {
  background: var(--warning);
}

/* ========== ANALYTICS ========== */
.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 24px;
}

.chart-placeholder {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

canvas {
  max-width: 100%;
}

.performance-list,
.financial-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.performance-item,
.financial-item {
  display: flex;
  justify-content: space-between;
  padding: 12px;
  background: var(--bg-hover);
  border-radius: 6px;
  font-size: 14px;
}

/* ========== NOTIFICATIONS ========== */
.notification-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.3s ease;
  min-width: 300px;
}

.notification-toast.hidden {
  display: none;
}

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

.toast-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toast-icon {
  font-size: 20px;
}

.toast-message {
  font-size: 14px;
  color: var(--text-primary);
}

/* ========== MODAL ========== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  animation: fadeIn 0.2s ease;
}

.modal-overlay.hidden {
  display: none;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  box-shadow: var(--shadow-lg);
  animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 18px;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.modal-body {
  padding: 24px;
}

.modal-body input[type="checkbox"] {
  accent-color: var(--brand-blue);
  border: 2px solid var(--border-color);
  border-radius: 4px;
}

.modal-body label {
  user-select: none;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .game-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .header-right {
    width: 100%;
    flex-wrap: wrap;
  }

  .stat-pill {
    flex: 1;
    min-width: 100px;
  }

  .tab-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

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

  .action-selector {
    grid-template-columns: 1fr;
  }

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

  .welcome-actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .allocation-inputs {
    grid-template-columns: 1fr;
  }

  .budget-options,
  .campaign-options {
    grid-template-columns: 1fr;
  }
}

/* ========== UTILITY CLASSES ========== */
.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--text-muted);
}

.mb-1 {
  margin-bottom: 8px;
}

.mb-2 {
  margin-bottom: 16px;
}

.mb-3 {
  margin-bottom: 24px;
}

.mt-1 {
  margin-top: 8px;
}

.mt-2 {
  margin-top: 16px;
}

.mt-3 {
  margin-top: 24px;
}

/* ========== PROGRESSION SYSTEM ========== */
.progression-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 24px;
  padding: 24px;
}

/* Unlockables */
.unlockables-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.unlock-item {
  padding: 16px;
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.unlock-item.unlocked {
  border-color: var(--success);
  background: linear-gradient(135deg, var(--card-bg) 0%, rgba(52, 211, 153, 0.1) 100%);
}

.unlock-item.available {
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.unlock-item.locked {
  opacity: 0.7;
}

.unlock-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.unlock-title {
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
}

.unlock-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.unlock-badge.unlocked {
  background: var(--success);
  color: white;
}

.unlock-badge.available {
  background: var(--primary);
  color: white;
  animation: pulse 2s infinite;
}

.unlock-badge.locked {
  background: var(--error);
  color: white;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.unlock-description {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 8px;
}

.unlock-requirement {
  font-size: 13px;
  color: var(--text);
  margin-bottom: 8px;
}

.unlock-cost {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
}

/* Genre Unlocks */
.genre-unlocks-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.genre-unlock-item {
  padding: 12px;
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.genre-unlock-item.unlocked {
  border-color: var(--success);
}

.genre-unlock-item.locked {
  opacity: 0.7;
}

.genre-unlock-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.genre-unlock-name {
  font-weight: 600;
  font-size: 14px;
}

.genre-badge {
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.genre-badge.unlocked {
  background: var(--success);
  color: white;
}

.genre-badge.locked {
  background: var(--border-color);
  color: var(--text-muted);
}

.genre-unlock-cost {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 8px;
}

.genre-unlock-hint {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
}

/* Achievements */
.achievements-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 600px;
  overflow-y: auto;
}

.achievement-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.achievement-item.unlocked {
  border-color: var(--success);
  background: linear-gradient(135deg, var(--card-bg) 0%, rgba(52, 211, 153, 0.1) 100%);
}

.achievement-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.achievement-details {
  flex: 1;
}

.achievement-name {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
}

.achievement-description {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.achievement-progress {
  margin-top: 8px;
}

.achievement-progress-bar {
  height: 8px;
  background: var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 4px;
}

.achievement-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.5s ease;
}

.achievement-progress-text {
  font-size: 12px;
  color: var(--text-muted);
}

.achievement-unlocked-text {
  font-size: 13px;
  color: var(--success);
  font-weight: 600;
}

/* Career Stats */
.career-stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
}

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

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

.stat-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

/* Action Lock Badge */
.action-lock-badge {
  font-size: 12px;
  margin-left: 4px;
}

/* Locked Message Panel */
.locked-message {
  text-align: center;
  padding: 48px 24px;
  background: linear-gradient(135deg, var(--card-bg) 0%, rgba(239, 68, 68, 0.1) 100%);
  border: 2px dashed var(--border-color);
  border-radius: 12px;
}

.locked-icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.8;
}

.locked-message h3 {
  color: var(--text);
  margin-bottom: 16px;
  font-size: 24px;
}

.locked-message p {
  color: var(--text-muted);
  margin-bottom: 8px;
  font-size: 16px;
}

.locked-message strong {
  color: var(--primary);
  font-weight: 700;
}

.locked-hint {
  margin-top: 16px;
  font-style: italic;
  color: var(--accent);
}

/* Upgrades Panel */
.upgrades-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 24px;
  padding: 24px;
}

@media (max-width: 900px) {
  .upgrades-grid {
    grid-template-columns: 1fr;
  }
}
