/* ═══════════════════════════════════════════
   TANSAARCADESTCK - Digital Nomad Cost of Living Europe
   Design System & Global Styles
   ═══════════════════════════════════════════ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700;800&display=swap');

/* CSS Custom Properties */
:root {
  --bg-primary: #0d1117;
  --bg-secondary: #161b22;
  --bg-tertiary: #21262d;
  --neon-mint: #00ffcc;
  --neon-mint-dim: rgba(0, 255, 204, 0.15);
  --neon-mint-glow: rgba(0, 255, 204, 0.4);
  --soft-purple: #8b5cf6;
  --soft-purple-dim: rgba(139, 92, 246, 0.15);
  --soft-purple-glow: rgba(139, 92, 246, 0.4);
  --card-bg: rgba(255, 255, 255, 0.05);
  --card-bg-hover: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-border-hover: rgba(255, 255, 255, 0.2);
  --text-primary: #e6edf3;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --danger: #ef4444;
  --warning: #f59e0b;
  --success: #10b981;
  --info: #3b82f6;
  --sidebar-width: 260px;
  --sidebar-collapsed: 70px;
  --header-height: 0px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;
  --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);
  --shadow-neon: 0 0 20px rgba(0, 255, 204, 0.2);
  --shadow-purple: 0 0 20px rgba(139, 92, 246, 0.2);
}

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.3;
}

a {
  color: var(--neon-mint);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--soft-purple);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

input, select, textarea, button {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
}

::selection {
  background: var(--neon-mint);
  color: var(--bg-primary);
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--glass-border-hover);
}

/* ═══════════════════════════════════════════
   LAYOUT: Sidebar + Main Content
   ═══════════════════════════════════════════ */

.app-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: linear-gradient(180deg, rgba(13, 17, 23, 0.98) 0%, rgba(22, 27, 34, 0.98) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--glass-border);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), width var(--transition-normal);
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.sidebar-logo {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--neon-mint), var(--soft-purple));
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--bg-primary);
  flex-shrink: 0;
  box-shadow: var(--shadow-neon);
}

.sidebar-brand {
  display: flex;
  flex-direction: column;
}

.sidebar-brand-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.sidebar-brand-tagline {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
}

.sidebar-nav-section {
  margin-bottom: 24px;
}

.sidebar-nav-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  padding: 0 12px;
  margin-bottom: 8px;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--border-radius-sm);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  margin-bottom: 2px;
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
}

.sidebar-nav-item:hover {
  background: var(--card-bg);
  color: var(--text-primary);
}

.sidebar-nav-item.active {
  background: var(--neon-mint-dim);
  color: var(--neon-mint);
}

.sidebar-nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 24px;
  background: var(--neon-mint);
  border-radius: 0 3px 3px 0;
  box-shadow: 0 0 8px var(--neon-mint-glow);
}

.sidebar-nav-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.8;
}

.sidebar-nav-item.active .sidebar-nav-icon {
  opacity: 1;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--glass-border);
  flex-shrink: 0;
}

.sidebar-footer-text {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
}

/* Mobile sidebar toggle */
.sidebar-toggle {
  display: none;
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 1100;
  width: 44px;
  height: 44px;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.sidebar-toggle:hover {
  background: var(--card-bg-hover);
  border-color: var(--neon-mint);
}

.sidebar-toggle svg {
  width: 22px;
  height: 22px;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999;
  backdrop-filter: blur(4px);
}

/* Main Content */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  transition: margin-left var(--transition-normal);
}

.content-wrapper {
  padding: 32px;
  max-width: 1400px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════
   COMPONENTS: Glass Cards
   ═══════════════════════════════════════════ */

.glass-card {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-md);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition-normal);
  overflow: hidden;
}

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

.glass-card-neon:hover {
  border-color: var(--neon-mint);
  box-shadow: var(--shadow-neon);
}

.glass-card-purple:hover {
  border-color: var(--soft-purple);
  box-shadow: var(--shadow-purple);
}

.card-padding {
  padding: 24px;
}

.card-padding-sm {
  padding: 16px;
}

.card-padding-lg {
  padding: 32px;
}

/* ═══════════════════════════════════════════
   COMPONENTS: Page Headers
   ═══════════════════════════════════════════ */

.page-header {
  margin-bottom: 32px;
}

.page-header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.page-title {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--neon-mint) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-top: 4px;
  max-width: 600px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

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

.breadcrumb a:hover {
  color: var(--neon-mint);
}

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

/* ═══════════════════════════════════════════
   COMPONENTS: Buttons
   ═══════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--neon-mint), #00cc99);
  color: var(--bg-primary);
  box-shadow: 0 0 16px rgba(0, 255, 204, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 0 24px rgba(0, 255, 204, 0.5);
  transform: translateY(-1px);
  color: var(--bg-primary);
}

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

.btn-secondary:hover {
  background: var(--card-bg-hover);
  border-color: var(--glass-border-hover);
  color: var(--text-primary);
}

.btn-purple {
  background: linear-gradient(135deg, var(--soft-purple), #7c3aed);
  color: #fff;
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.3);
}

.btn-purple:hover {
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.5);
  transform: translateY(-1px);
  color: #fff;
}

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

.btn-outline:hover {
  background: var(--neon-mint-dim);
  color: var(--neon-mint);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.25);
  color: var(--danger);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--border-radius-sm);
}

/* ═══════════════════════════════════════════
   COMPONENTS: Form Elements
   ═══════════════════════════════════════════ */

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-input,
.form-select {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  outline: none;
}

.form-input:focus,
.form-select:focus {
  border-color: var(--neon-mint);
  box-shadow: 0 0 0 3px var(--neon-mint-dim);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239ca3af' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.form-range {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: var(--bg-tertiary);
  outline: none;
}

.form-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--neon-mint);
  cursor: pointer;
  box-shadow: 0 0 8px var(--neon-mint-glow);
}

/* ═══════════════════════════════════════════
   COMPONENTS: Stat Cards
   ═══════════════════════════════════════════ */

.stat-card {
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--neon-mint), var(--soft-purple));
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.stat-icon-mint {
  background: var(--neon-mint-dim);
  color: var(--neon-mint);
}

.stat-icon-purple {
  background: var(--soft-purple-dim);
  color: var(--soft-purple);
}

.stat-icon-warning {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
}

.stat-icon-info {
  background: rgba(59, 130, 246, 0.15);
  color: var(--info);
}

.stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.stat-change {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  margin-top: 8px;
}

.stat-change-up {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

.stat-change-down {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
}

/* ═══════════════════════════════════════════
   COMPONENTS: Charts (CSS-only bar/pie)
   ═══════════════════════════════════════════ */

.chart-bar-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chart-bar-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chart-bar-label {
  width: 90px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  flex-shrink: 0;
  text-align: right;
}

.chart-bar-track {
  flex: 1;
  height: 28px;
  background: var(--bg-secondary);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.chart-bar-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 1s ease;
  position: relative;
  display: flex;
  align-items: center;
  padding-left: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--bg-primary);
}

.chart-bar-fill-mint {
  background: linear-gradient(90deg, var(--neon-mint), #00cc99);
}

.chart-bar-fill-purple {
  background: linear-gradient(90deg, var(--soft-purple), #7c3aed);
}

.chart-bar-fill-warning {
  background: linear-gradient(90deg, var(--warning), #d97706);
}

.chart-bar-fill-info {
  background: linear-gradient(90deg, var(--info), #2563eb);
}

.chart-bar-fill-success {
  background: linear-gradient(90deg, var(--success), #059669);
}

.chart-bar-value {
  width: 80px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  flex-shrink: 0;
  text-align: left;
}

/* Pie Chart CSS */
.pie-chart {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  position: relative;
  margin: 0 auto;
}

.pie-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.pie-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.pie-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   COMPONENTS: City Cards
   ═══════════════════════════════════════════ */

.city-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.city-card-clickable {
  cursor: pointer;
}

/* Breakdown button inside city card body */
.city-card-breakdown-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  margin-top: 12px;
  background: rgba(0, 255, 204, 0.08);
  border: 1px solid rgba(0, 255, 204, 0.2);
  border-radius: var(--border-radius-sm);
  color: var(--neon-mint);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.city-card-breakdown-btn:hover {
  background: rgba(0, 255, 204, 0.15);
  border-color: var(--neon-mint);
  box-shadow: 0 0 12px rgba(0, 255, 204, 0.2);
  transform: translateY(-1px);
  color: var(--neon-mint);
}

.city-card-breakdown-btn:active {
  transform: translateY(0);
}

.city-card-breakdown-btn svg {
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.city-card-breakdown-btn:hover svg {
  transform: translateX(3px);
}

.city-card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
  transition: transform var(--transition-slow);
}

.city-card:hover .city-card-image {
  transform: scale(1.05);
}

.city-card-image-wrapper {
  overflow: hidden;
  border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
  position: relative;
}

.city-card-image-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(transparent, var(--bg-primary));
  pointer-events: none;
}

.city-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

.badge-cheapest {
  background: rgba(16, 185, 129, 0.9);
  color: #fff;
}

.badge-popular {
  background: rgba(139, 92, 246, 0.9);
  color: #fff;
}

.badge-trending {
  background: rgba(245, 158, 11, 0.9);
  color: #fff;
}

.city-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.city-card-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.city-card-country {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.city-card-cost {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--neon-mint);
}

.city-card-cost-label {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.city-card-stats {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--glass-border);
}

.city-card-stat {
  flex: 1;
}

.city-card-stat-value {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-primary);
}

.city-card-stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.city-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.city-favorite-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--border-radius-sm);
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.city-favorite-btn:hover,
.city-favorite-btn.favorited {
  background: rgba(239, 68, 68, 0.15);
  border-color: var(--danger);
  color: var(--danger);
}

/* Nomad Score */
.nomad-score {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nomad-score-bar {
  display: flex;
  gap: 3px;
}

.nomad-score-segment {
  width: 6px;
  height: 18px;
  border-radius: 2px;
  background: var(--bg-tertiary);
  transition: background var(--transition-fast);
}

.nomad-score-segment.active {
  background: var(--neon-mint);
  box-shadow: 0 0 4px var(--neon-mint-glow);
}

.nomad-score-segment.active.mid {
  background: var(--warning);
  box-shadow: 0 0 4px rgba(245, 158, 11, 0.4);
}

.nomad-score-segment.active.low {
  background: var(--danger);
  box-shadow: 0 0 4px rgba(239, 68, 68, 0.4);
}

.nomad-score-value {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--neon-mint);
}

/* ═══════════════════════════════════════════
   COMPONENTS: City Breakdown Panel
   ═══════════════════════════════════════════ */

.city-breakdown-panel {
  margin-bottom: 32px;
}

.city-breakdown-header {
  position: relative;
}

.city-breakdown-hero {
  position: relative;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
}

.city-breakdown-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.35);
}

.city-breakdown-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 255, 204, 0.08) 0%, rgba(139, 92, 246, 0.08) 50%, rgba(13, 17, 23, 0.85) 100%);
}

.city-breakdown-hero-content {
  position: relative;
  z-index: 2;
  padding: 32px;
  width: 100%;
}

.city-breakdown-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.city-breakdown-cost {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--neon-mint);
  text-shadow: 0 0 20px var(--neon-mint-glow);
}

.city-breakdown-cost-label {
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(255,255,255,0.6);
}

.city-highlights-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ═══════════════════════════════════════════
   COMPONENTS: Comparison Table
   ═══════════════════════════════════════════ */

.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.comparison-table th,
.comparison-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--glass-border);
}

.comparison-table th {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  background: var(--bg-secondary);
}

.comparison-table th:first-child {
  border-radius: var(--border-radius-sm) 0 0 0;
}

.comparison-table th:last-child {
  border-radius: 0 var(--border-radius-sm) 0 0;
}

.comparison-table td {
  font-size: 0.9rem;
  color: var(--text-primary);
}

.comparison-table tr:hover td {
  background: var(--card-bg);
}

.comparison-table .highlight-cell {
  color: var(--neon-mint);
  font-weight: 600;
}

.comparison-table .cheapest-cell {
  color: var(--success);
  font-weight: 700;
}

/* ═══════════════════════════════════════════
   COMPONENTS: Tags & Badges
   ═══════════════════════════════════════════ */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.tag-mint {
  background: var(--neon-mint-dim);
  color: var(--neon-mint);
}

.tag-purple {
  background: var(--soft-purple-dim);
  color: var(--soft-purple);
}

.tag-warning {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
}

.tag-success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

/* ═══════════════════════════════════════════
   COMPONENTS: Tabs
   ═══════════════════════════════════════════ */

.tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-secondary);
  border-radius: var(--border-radius-sm);
  padding: 4px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 8px 16px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

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

.tab-btn.active {
  background: var(--neon-mint-dim);
  color: var(--neon-mint);
}

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

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

/* ═══════════════════════════════════════════
   COMPONENTS: Grid Layouts
   ═══════════════════════════════════════════ */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

/* ═══════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════ */

.hero-section {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.3);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 255, 204, 0.1) 0%, rgba(139, 92, 246, 0.1) 50%, rgba(13, 17, 23, 0.9) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 40px;
  width: 100%;
}

.hero-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  max-width: 700px;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--neon-mint), var(--soft-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 550px;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════
   SECTION HELPERS
   ═══════════════════════════════════════════ */

.section {
  margin-bottom: 32px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.section-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ═══════════════════════════════════════════
   COMPONENTS: Tooltips
   ═══════════════════════════════════════════ */

.tooltip-wrapper {
  position: relative;
  display: inline-block;
}

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

.tooltip-text {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  white-space: nowrap;
  z-index: 100;
  transition: all var(--transition-fast);
  border: 1px solid var(--glass-border);
  margin-bottom: 6px;
}

/* ═══════════════════════════════════════════
   COMPONENTS: Empty States
   ═══════════════════════════════════════════ */

.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state-title {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.empty-state-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 400px;
  margin: 0 auto 20px;
}

/* ═══════════════════════════════════════════
   COMPONENTS: Toggle / Switch
   ═══════════════════════════════════════════ */

.toggle-switch {
  position: relative;
  width: 48px;
  height: 26px;
  cursor: pointer;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--bg-tertiary);
  border-radius: 26px;
  transition: background var(--transition-fast);
  border: 1px solid var(--glass-border);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--text-secondary);
  transition: all var(--transition-fast);
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--neon-mint-dim);
  border-color: var(--neon-mint);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(22px);
  background: var(--neon-mint);
  box-shadow: 0 0 8px var(--neon-mint-glow);
}

/* ═══════════════════════════════════════════
   COMPONENTS: Accordion / FAQ
   ═══════════════════════════════════════════ */

.accordion-item {
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
  background: var(--card-bg);
}

.accordion-header {
  width: 100%;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background var(--transition-fast);
}

.accordion-header:hover {
  background: var(--card-bg-hover);
}

.accordion-icon {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-normal);
  flex-shrink: 0;
  color: var(--neon-mint);
}

.accordion-item.open .accordion-icon {
  transform: rotate(180deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal), padding var(--transition-normal);
}

.accordion-item.open .accordion-body {
  max-height: 500px;
  padding: 0 20px 16px;
}

.accordion-body p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════
   COMPONENTS: Notification / Alert
   ═══════════════════════════════════════════ */

.alert {
  padding: 14px 20px;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.alert-info {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--info);
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--success);
}

.alert-warning {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--warning);
}

/* ═══════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════ */

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

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

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

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

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

@keyframes glow {
  0%, 100% { box-shadow: 0 0 8px var(--neon-mint-glow); }
  50% { box-shadow: 0 0 20px var(--neon-mint-glow); }
}

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

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

.animate-fade-in-up {
  animation: fadeInUp 0.5s ease forwards;
}

.animate-fade-in-left {
  animation: fadeInLeft 0.5s ease forwards;
}

.stagger-1 { animation-delay: 0.1s; opacity: 0; }
.stagger-2 { animation-delay: 0.2s; opacity: 0; }
.stagger-3 { animation-delay: 0.3s; opacity: 0; }
.stagger-4 { animation-delay: 0.4s; opacity: 0; }
.stagger-5 { animation-delay: 0.5s; opacity: 0; }

/* ═══════════════════════════════════════════
   FOOTER (inside main content)
   ═══════════════════════════════════════════ */

.main-footer {
  padding: 32px;
  border-top: 1px solid var(--glass-border);
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 8px;
}

.footer-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--neon-mint);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--glass-border);
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom-links {
  display: flex;
  gap: 16px;
}

.footer-bottom-links a {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer-bottom-links a:hover {
  color: var(--neon-mint);
}

/* ═══════════════════════════════════════════
   UTILITY CLASSES
   ═══════════════════════════════════════════ */

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-mint { color: var(--neon-mint); }
.text-purple { color: var(--soft-purple); }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.font-mono { font-family: 'Space Grotesk', monospace; }
.font-bold { font-weight: 700; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.hidden { display: none; }
.w-full { width: 100%; }

/* ═══════════════════════════════════════════
   RESPONSIVE DESIGN
   ═══════════════════════════════════════════ */

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

@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-toggle {
    display: flex;
  }

  .sidebar-overlay.active {
    display: block;
  }

  .main-content {
    margin-left: 0;
  }

  .content-wrapper {
    padding: 24px 16px;
    padding-top: 72px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-content {
    padding: 24px;
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

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

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .stat-value {
    font-size: 1.4rem;
  }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .tab-btn {
    flex-shrink: 0;
  }

  .comparison-table {
    font-size: 0.8rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 10px 8px;
  }

  .page-header-top {
    flex-direction: column;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-footer {
    padding: 24px 16px;
  }

  .city-breakdown-title {
    font-size: 1.3rem;
  }

  .city-breakdown-cost {
    font-size: 1.5rem;
  }

  .city-breakdown-hero-content {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .content-wrapper {
    padding: 16px 12px;
    padding-top: 68px;
  }

  .hero-content {
    padding: 16px;
  }

  .hero-title {
    font-size: 1.3rem;
  }

  .card-padding {
    padding: 16px;
  }

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

  .hero-actions .btn {
    width: 100%;
  }

  .city-breakdown-hero {
    min-height: 180px;
  }

  .city-breakdown-title {
    font-size: 1.1rem;
  }

  .city-breakdown-cost {
    font-size: 1.3rem;
  }
}

/* Print Styles */
@media print {
  .sidebar,
  .sidebar-toggle,
  .sidebar-overlay {
    display: none !important;
  }

  .main-content {
    margin-left: 0 !important;
  }

  body {
    background: #fff;
    color: #000;
  }
}

/* ═══════════════════════════════════════════
   CALCULATOR SPECIFIC STYLES
   ═══════════════════════════════════════════ */

.calc-result {
  text-align: center;
  padding: 32px;
}

.calc-result-amount {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--neon-mint);
  text-shadow: 0 0 20px var(--neon-mint-glow);
}

.calc-result-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.calc-breakdown {
  margin-top: 24px;
}

.calc-breakdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--glass-border);
}

.calc-breakdown-item:last-child {
  border-bottom: none;
  font-weight: 700;
  color: var(--neon-mint);
}

.calc-breakdown-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.calc-breakdown-value {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
}

/* ═══════════════════════════════════════════
   INSIGHTS ARTICLE STYLES
   ═══════════════════════════════════════════ */

.article-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.article-card-image {
  width: 200px;
  height: 140px;
  object-fit: cover;
  border-radius: var(--border-radius-sm);
  flex-shrink: 0;
}

.article-card-body {
  flex: 1;
}

.article-card-tag {
  display: inline-block;
  margin-bottom: 8px;
}

.article-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.article-card-excerpt {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.article-card-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.article-content {
  line-height: 1.8;
  color: var(--text-secondary);
}

.article-content h2 {
  color: var(--text-primary);
  font-size: 1.4rem;
  margin: 32px 0 16px;
}

.article-content h3 {
  color: var(--text-primary);
  font-size: 1.1rem;
  margin: 24px 0 12px;
}

.article-content p {
  margin-bottom: 16px;
}

.article-content ul, .article-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.article-content li {
  margin-bottom: 8px;
}

.article-content strong {
  color: var(--text-primary);
}

/* ═══════════════════════════════════════════
   SETTINGS STYLES
   ═══════════════════════════════════════════ */

.settings-section {
  margin-bottom: 32px;
}

.settings-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--glass-border);
}

.settings-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

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

.settings-item-info {
  flex: 1;
}

.settings-item-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.settings-item-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ═══════════════════════════════════════════
   LEGAL PAGE STYLES
   ═══════════════════════════════════════════ */

.legal-content {
  max-width: 800px;
}

.legal-content h2 {
  font-size: 1.3rem;
  color: var(--text-primary);
  margin: 32px 0 12px;
}

.legal-content h3 {
  font-size: 1.05rem;
  color: var(--text-primary);
  margin: 24px 0 8px;
}

.legal-content p {
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.7;
  font-size: 0.9rem;
}

.legal-content ul {
  padding-left: 24px;
  margin-bottom: 12px;
}

.legal-content li {
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.legal-content a {
  color: var(--neon-mint);
}

.legal-updated {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Bottom Mobile Nav (for very small screens) */
@media (max-width: 480px) {
  .bottom-mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(13, 17, 23, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    z-index: 1000;
    padding: 6px 0;
    justify-content: space-around;
  }

  .bottom-mobile-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 8px;
    color: var(--text-muted);
    font-size: 0.6rem;
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition-fast);
  }

  .bottom-mobile-nav a.active {
    color: var(--neon-mint);
  }

  .bottom-mobile-nav svg {
    width: 20px;
    height: 20px;
  }

  .main-footer {
    padding-bottom: 80px;
  }
}

@media (min-width: 481px) {
  .bottom-mobile-nav {
    display: none;
  }
}

/* Comparison select area */
.compare-selector {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.compare-selector .form-group {
  flex: 1;
  min-width: 200px;
  margin-bottom: 0;
}

.vs-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--soft-purple-dim);
  border: 2px solid var(--soft-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--soft-purple);
  flex-shrink: 0;
  align-self: flex-end;
}