﻿:root {
  /* Ultra-Premium Luxury Palette - "Quiet Luxury & Architectural Wellness" */
  /* Deep Architectural Obsidian & Graphite Canvas */
  --bg-app: #0c0e12;
  --bg-surface-primary: #12161c;
  --bg-surface-secondary: #181e26;
  --bg-surface-tertiary: #202732;
  --bg-surface-elevated: #28313e;
  
  /* Luxury Brushed Champagne & Burnished Gold Accents */
  --gold-primary: #c5a880;
  --gold-light: #dfcaa8;
  --gold-dark: #9e7f57;
  --gold-subtle: rgba(197, 168, 128, 0.12);
  --gold-border: rgba(197, 168, 128, 0.28);
  --gold-glow: rgba(197, 168, 128, 0.08);

  /* Deep Mediterranean Aquatic Slate (Calm Mineral Tone, strictly no neon cyan) */
  --aqua-primary: #325a70;
  --aqua-light: #5d8ea7;
  --aqua-dark: #1b3240;
  --aqua-subtle: rgba(50, 90, 112, 0.18);
  --aqua-border: rgba(93, 142, 167, 0.24);

  /* Text & Typography */
  --text-primary: #f5f5f7;
  --text-secondary: #a1a6b0;
  --text-tertiary: #6b7280;
  --text-muted: #4b5260;
  --text-gold: #dfcaa8;

  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-medium: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.2);

  /* Status Colors (Subdued, Mature, Luxury) */
  --status-success-bg: rgba(46, 125, 85, 0.15);
  --status-success-text: #66bb8b;
  --status-success-border: rgba(102, 187, 139, 0.3);

  --status-warning-bg: rgba(184, 115, 51, 0.15);
  --status-warning-text: #e2a061;
  --status-warning-border: rgba(226, 160, 97, 0.3);

  --status-error-bg: rgba(153, 50, 50, 0.15);
  --status-error-text: #e57373;
  --status-error-border: rgba(229, 115, 115, 0.3);

  /* Shadows & Elevation */
  --shadow-card: 0 4px 24px -2px rgba(0, 0, 0, 0.5), 0 2px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-elevated: 0 12px 40px -4px rgba(0, 0, 0, 0.7), 0 4px 12px -2px rgba(0, 0, 0, 0.4);
  --shadow-gold: 0 4px 20px -2px rgba(197, 168, 128, 0.18);

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Fonts */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-app);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Typography Utilities */
.font-serif { font-family: var(--font-serif); }
.font-mono { font-family: var(--font-mono); }

.tracking-wide-luxury {
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.text-gold {
  color: var(--gold-light);
}

.text-gold-gradient {
  background: linear-gradient(135deg, #dfcaa8 0%, #c5a880 50%, #9e7f57 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glassmorphism & Luxury Cards */
.card-luxury {
  background: var(--bg-surface-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card-luxury:hover {
  border-color: var(--border-medium);
}

.card-gold-border {
  border: 1px solid var(--gold-border);
  background: linear-gradient(180deg, rgba(28, 34, 43, 0.9) 0%, rgba(18, 22, 28, 0.95) 100%);
}

.card-interactive:hover {
  transform: translateY(-2px);
  border-color: var(--gold-border);
  box-shadow: var(--shadow-gold);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-surface-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-surface-tertiary);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-dark);
}

/* Luxury Badges */
.badge-luxury {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  background: var(--bg-surface-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.badge-gold {
  background: var(--gold-subtle);
  color: var(--gold-light);
  border: 1px solid var(--gold-border);
}

.badge-aqua {
  background: var(--aqua-subtle);
  color: var(--aqua-light);
  border: 1px solid var(--aqua-border);
}

.badge-success {
  background: var(--status-success-bg);
  color: var(--status-success-text);
  border: 1px solid var(--status-success-border);
}

.badge-warning {
  background: var(--status-warning-bg);
  color: var(--status-warning-text);
  border: 1px solid var(--status-warning-border);
}

.badge-error {
  background: var(--status-error-bg);
  color: var(--status-error-text);
  border: 1px solid var(--status-error-border);
}

/* Buttons */
.btn-gold {
  background: linear-gradient(135deg, #dfcaa8 0%, #c5a880 100%);
  color: #0c0e12;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.05em;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(197, 168, 128, 0.25);
  transition: all 0.2s ease;
}

.btn-gold:hover {
  background: linear-gradient(135deg, #ebd8ba 0%, #d4b88f 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(197, 168, 128, 0.35);
}

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

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  font-weight: 500;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

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

.btn-subtle {
  background: var(--bg-surface-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  font-size: 13px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-subtle:hover {
  color: var(--text-primary);
  background: var(--bg-surface-tertiary);
  border-color: var(--border-medium);
}

/* Inputs */
.input-luxury {
  width: 100%;
  background: var(--bg-surface-secondary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  padding: 10px 14px;
  font-size: 13px;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-luxury:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.15);
}

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

/* Switcher / Nav Pills */
.nav-pills {
  display: flex;
  background: var(--bg-surface-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 4px;
  gap: 2px;
}

.nav-pill-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-pill-btn.active {
  background: var(--gold-primary);
  color: #0c0e12;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(197, 168, 128, 0.25);
}

/* Pulsing Live Dot */
.live-pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--status-success-text);
  box-shadow: 0 0 0 rgba(102, 187, 139, 0.4);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(102, 187, 139, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(102, 187, 139, 0); }
  100% { box-shadow: 0 0 0 0 rgba(102, 187, 139, 0); }
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: var(--bg-surface-primary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-elevated);
  max-width: 560px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(16px);
  transition: transform 0.25s ease;
}

.modal-overlay.open .modal-box {
  transform: translateY(0);
}
