/* ==========================================================================
   NLS SIGNATURE LIVING SYSTEMS™ BRAND CUSTOM STYLES
   Theme: Premium Dark Mode with Metallic Teal Accents
   ========================================================================== */

/* --- 1. Variables & Global Resets --- */
:root {
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Brand Palette from Logo */
  --color-brand-cyan: #008bc5;        /* Brand Logo Teal Blue */
  --color-accent-blue: #00b4db;       /* Glowing Cyan Accent */
  --color-obsidian-dark: #070c11;     /* Primary Dark Background */
  --color-slate-panel: rgba(14, 23, 33, 0.65); /* Glassmorphism Panel Fill */
  --color-chrome-silver: #e2eaf0;     /* Silver Gray text */
  --color-white: #ffffff;
  --color-muted: #64748b;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-glow: rgba(0, 139, 197, 0.3);

  /* Alert States */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
  --color-info: #3b82f6;

  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-family);
  background-color: var(--color-obsidian-dark);
  color: var(--color-chrome-silver);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* --- 2. Background Blur Orbs --- */
.blur-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -1;
  opacity: 0.18;
  pointer-events: none;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background-color: var(--color-brand-cyan);
  top: -100px;
  right: -50px;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background-color: #0d2847;
  bottom: 10%;
  left: -100px;
}

.orb-3 {
  width: 350px;
  height: 350px;
  background-color: var(--color-accent-blue);
  top: 40%;
  right: 15%;
}

/* --- 3. Typography Helpers --- */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-white);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-white) 30%, var(--color-accent-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- 4. Layout & Containers --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.panel-divider {
  border: 0;
  height: 1px;
  background: var(--color-border);
  margin: 16px 0;
}

/* --- 5. Glassmorphism Panels --- */
.glass-panel {
  background: var(--color-slate-panel);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.4);
  transition: var(--transition-smooth);
}

.glass-panel:hover {
  border-color: rgba(0, 139, 197, 0.2);
  box-shadow: 0 12px 45px 0 rgba(0, 139, 197, 0.05);
}

/* --- 6. Navbar --- */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(7, 12, 17, 0.75);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  z-index: 100;
  padding: 16px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.brand-logo {
  height: 38px;
  object-fit: contain;
}

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

.brand-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: 0.1em;
}

.brand-sub {
  font-size: 10px;
  color: var(--color-brand-cyan);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  color: var(--color-chrome-silver);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: var(--color-accent-blue);
}

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

/* --- 7. Buttons --- */
.btn {
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

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

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

.btn-primary {
  background: linear-gradient(135deg, var(--color-brand-cyan) 0%, #005a87 100%);
  color: var(--color-white);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-accent-blue) 0%, var(--color-brand-cyan) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 180, 219, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-white);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--color-chrome-silver);
}

.btn-block {
  display: flex;
  width: 100%;
}

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

.btn-danger:hover {
  background: var(--color-danger);
  color: var(--color-white);
}

.btn-glow {
  box-shadow: 0 0 15px rgba(0, 139, 197, 0.4);
}

/* --- 8. Hero Section --- */
.hero-section {
  padding: 80px 0;
  text-align: center;
}

.hero-container {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.badge {
  background: rgba(0, 139, 197, 0.15);
  border: 1px solid rgba(0, 139, 197, 0.3);
  color: var(--color-accent-blue);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  display: inline-block;
}

.hero-title {
  font-size: 52px;
  line-height: 1.1;
  font-weight: 800;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--color-chrome-silver);
  opacity: 0.85;
  font-weight: 300;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}

/* --- 9. Console Structures --- */
.main-console {
  margin-bottom: 80px;
}

.teaser-card {
  background: linear-gradient(135deg, rgba(14, 23, 33, 0.85) 0%, rgba(7, 12, 17, 0.95) 100%);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.teaser-content h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.teaser-content p {
  color: var(--color-muted);
  font-size: 14px;
  max-width: 550px;
}

.teaser-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.console-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
}

.console-sidebar {
  display: flex;
  flex-direction: column;
  height: fit-content;
}

.user-profile-summary {
  display: flex;
  align-items: center;
  gap: 16px;
}

.avatar-glow {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--color-brand-cyan);
  color: var(--color-white);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(0, 139, 197, 0.3);
}

.user-meta h4 {
  font-size: 15px;
  margin-bottom: 2px;
}

.user-role-badge {
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--color-accent-blue);
  background: rgba(0, 180, 219, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

.member-id-text {
  font-size: 11px;
  color: var(--color-muted);
  display: block;
  margin-top: 2px;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.menu-item {
  background: transparent;
  border: none;
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-chrome-silver);
  padding: 12px 16px;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition-smooth);
}

.menu-item:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-white);
}

.menu-item.active {
  background: rgba(0, 139, 197, 0.1);
  color: var(--color-accent-blue);
  border-left: 3px solid var(--color-brand-cyan);
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.sidebar-footer {
  margin-top: 32px;
}

/* --- 10. Dashboard & Score Rings --- */
.console-tab-panel {
  display: none;
}

.console-tab-panel.active {
  display: block;
  animation: fadeIn 0.4s ease-out;
}

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

.panel-title {
  font-size: 26px;
  margin-bottom: 4px;
}

.panel-subtitle {
  color: var(--color-muted);
  font-size: 14px;
  margin-bottom: 24px;
}

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

.score-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px;
}

.score-card h3 {
  font-size: 15px;
  margin-bottom: 16px;
}

.score-desc {
  font-size: 11px;
  color: var(--color-muted);
  margin-top: 16px;
}

.progress-ring-container {
  position: relative;
  width: 120px;
  height: 120px;
}

.ring-svg {
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.03);
  stroke-width: 8;
}

.ring-progress {
  fill: none;
  stroke: var(--color-brand-cyan);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 314; /* 2 * PI * r (r=50) */
  stroke-dashoffset: 314;
  transition: stroke-dashoffset 1s ease-in-out;
}

#ring-churn {
  stroke: var(--color-danger);
}

#ring-wellness {
  stroke: var(--color-success);
}

.ring-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-white);
}

.recs-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.recs-list li {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.recs-list li::before {
  content: '✦';
  color: var(--color-accent-blue);
  font-size: 16px;
}

/* --- 11. Interactive Quiz Wizard --- */
.arvia-intro-block {
  text-align: center;
  max-width: 600px;
  margin: 40px auto;
}

.quiz-container {
  max-width: 650px;
  margin: 0 auto;
}

.quiz-header {
  margin-bottom: 24px;
}

.quiz-step-indicator {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-brand-cyan);
  text-transform: uppercase;
}

.quiz-progress-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  background: var(--color-brand-cyan);
  transition: var(--transition-smooth);
}

.quiz-body h3 {
  font-size: 20px;
  margin-bottom: 24px;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quiz-option input {
  display: none;
}

.option-card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.quiz-option input:checked + .option-card {
  background: rgba(0, 139, 197, 0.05);
  border-color: var(--color-brand-cyan);
  box-shadow: 0 0 15px rgba(0, 139, 197, 0.1);
}

.option-title {
  color: var(--color-white);
  font-weight: 600;
  font-size: 14px;
}

.option-desc {
  font-size: 12px;
  color: var(--color-muted);
  margin-top: 4px;
}

.quiz-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
}

/* Results block */
.arvia-results-card {
  max-width: 600px;
  margin: 0 auto;
}

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

.total-score-badge {
  background: rgba(0, 139, 197, 0.1);
  border: 1px solid var(--color-brand-cyan);
  border-radius: 50%;
  width: 90px;
  height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.total-score-badge .num {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-white);
}

.total-score-badge .lbl {
  font-size: 9px;
  color: var(--color-muted);
  text-transform: uppercase;
}

.category-bars {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.bar-item {
  display: grid;
  grid-template-columns: 140px 1fr 40px;
  align-items: center;
  gap: 16px;
}

.bar-item .lbl {
  font-size: 12px;
  font-weight: 500;
}

.bar-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--color-brand-cyan);
  border-radius: 3px;
  transition: width 1s ease-in-out;
}

.bar-item .val {
  font-size: 12px;
  font-weight: 700;
  text-align: right;
  color: var(--color-white);
}

/* --- 12. Membership Plans Grid --- */
.plans-section {
  margin-top: 32px;
}

.section-title {
  text-align: center;
  font-size: 22px;
  margin-bottom: 24px;
}

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

.plan-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--color-border);
  height: 100%;
}

.plan-card.featured {
  border-color: var(--color-brand-cyan);
  box-shadow: 0 0 20px rgba(0, 139, 197, 0.15);
  position: relative;
}

.featured-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-brand-cyan);
  color: var(--color-white);
  font-size: 9px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.plan-header h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.plan-price {
  font-size: 32px;
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 16px;
}

.plan-price span {
  font-size: 12px;
  color: var(--color-muted);
  font-weight: 400;
}

.plan-features {
  list-style: none;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
  margin-bottom: 24px;
}

.plan-features li::before {
  content: '✓';
  color: var(--color-success);
  margin-right: 8px;
  font-weight: 700;
}

/* Membership details dashboard card */
.membership-status-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.tier-status-badge {
  background: var(--color-brand-cyan);
  color: var(--color-white);
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.05em;
}

.membership-details-list {
  display: flex;
  gap: 32px;
}

.membership-details-list div {
  font-size: 13px;
}

.membership-details-list strong {
  color: var(--color-white);
}

/* --- 13. Concierge OS split view --- */
.concierge-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 20px;
}

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

.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-chrome-silver);
  display: block;
  margin-bottom: 6px;
}

.form-control {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-white);
  font-family: var(--font-family);
  font-size: 14px;
  padding: 10px 14px;
  width: 100%;
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-brand-cyan);
  box-shadow: 0 0 10px rgba(0, 139, 197, 0.15);
}

.form-row {
  display: flex;
  gap: 12px;
}

.form-row .col {
  flex: 1;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--color-chrome-silver);
  margin-top: 8px;
}

.form-checkbox input {
  accent-color: var(--color-brand-cyan);
}

/* Ticket List & Message Box */
.ticket-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 250px;
  overflow-y: auto;
}

.ticket-item-card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-smooth);
}

.ticket-item-card:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(0, 139, 197, 0.2);
}

.ticket-item-card.active {
  background: rgba(0, 139, 197, 0.03);
  border-color: var(--color-brand-cyan);
}

.ticket-info .num {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-white);
}

.ticket-info .title {
  font-size: 12px;
  color: var(--color-muted);
  display: block;
}

.status-badge {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
}

.status-submitted { background: rgba(59, 130, 246, 0.1); color: var(--color-info); }
.status-assigned { background: rgba(245, 158, 11, 0.1); color: var(--color-warning); }
.status-in_progress { background: rgba(16, 185, 129, 0.1); color: var(--color-success); }
.status-completed { background: rgba(16, 185, 129, 0.2); color: var(--color-success); }
.status-closed { background: rgba(255, 255, 255, 0.05); color: var(--color-muted); }
.status-escalated { background: rgba(239, 68, 68, 0.1); color: var(--color-danger); }

.ticket-chat-box {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

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

.chat-header h4 {
  font-size: 14px;
}

.chat-messages {
  flex-grow: 1;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 12px;
  max-height: 200px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.chat-msg {
  max-width: 80%;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.4;
}

.chat-msg.member {
  align-self: flex-end;
  background: var(--color-brand-cyan);
  color: var(--color-white);
  border-bottom-right-radius: 0;
}

.chat-msg.agent {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-white);
  border: 1px solid var(--color-border);
  border-bottom-left-radius: 0;
}

.chat-msg .time {
  font-size: 9px;
  opacity: 0.6;
  display: block;
  text-align: right;
  margin-top: 4px;
}

.chat-input-area {
  display: flex;
  gap: 8px;
}

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

/* --- 14. Marketplace Partners --- */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.partner-card {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.01);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.partner-card h4 {
  font-size: 16px;
  margin-bottom: 2px;
}

.partner-card .cat {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--color-accent-blue);
  font-weight: 700;
}

.partner-card .desc {
  font-size: 12px;
  color: var(--color-muted);
  line-height: 1.4;
}

.partner-card .commission {
  font-size: 12px;
  color: var(--color-white);
}

.partner-card .commission strong {
  color: var(--color-success);
}

/* --- 15. Admin Portal Preview --- */
.admin-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.stat-box .lbl {
  font-size: 11px;
  color: var(--color-muted);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 4px;
}

.stat-box .val {
  font-size: 26px;
  font-weight: 800;
  color: var(--color-white);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

.admin-table th, .admin-table td {
  padding: 10px 12px;
  text-align: left;
  font-size: 12px;
  border-bottom: 1px solid var(--color-border);
}

.admin-table th {
  color: var(--color-white);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.01);
}

.admin-table td {
  color: var(--color-chrome-silver);
}

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

/* --- 16. Modals (Authenticating / Checkout) --- */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(7, 12, 17, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

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

.modal-content {
  width: 90%;
  max-width: 500px;
  transform: translateY(-20px);
  transition: var(--transition-smooth);
}

.modal.active .modal-content {
  transform: translateY(0);
}

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

.close-btn {
  background: transparent;
  border: none;
  color: var(--color-muted);
  font-size: 24px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.close-btn:hover {
  color: var(--color-white);
}

.price-summary-box {
  background: rgba(0, 139, 197, 0.1);
  border: 1px solid var(--color-border-glow);
  padding: 16px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  margin-bottom: 20px;
}

.checkout-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-white);
}

.auth-toggle {
  font-size: 12px;
  color: var(--color-muted);
  text-align: center;
  margin-top: 16px;
}

.auth-toggle a {
  color: var(--color-brand-cyan);
  text-decoration: none;
  font-weight: 600;
}

.auth-toggle a:hover {
  text-decoration: underline;
}

/* --- 17. Alert Banners --- */
.alert-box {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.alert-box::before {
  font-size: 16px;
}

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

.alert-info::before { content: 'ℹ'; }

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

.alert-warning::before { content: '⚠'; }

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--color-danger);
}

.alert-error::before { content: '🛈'; }

/* --- 18. Footer --- */
.footer {
  border-top: 1px solid var(--color-border);
  background: #04070a;
  padding: 40px 0;
  margin-top: 80px;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  height: 28px;
  object-fit: contain;
}

.footer-brand .lbl {
  font-size: 11px;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: 0.1em;
}

.footer-legal {
  text-align: right;
  font-size: 11px;
  color: var(--color-muted);
}

.tagline {
  margin-top: 4px;
  color: var(--color-brand-cyan);
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* --- 19. Responsiveness --- */
@media (max-width: 900px) {
  .console-grid {
    grid-template-columns: 1fr;
  }
  .teaser-card {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }
  .teaser-actions {
    width: 100%;
    justify-content: center;
  }
  .nav-links {
    display: none; /* Hide on mobile for simplicity */
  }
  .concierge-split-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 38px;
  }
  .footer-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  .footer-legal {
    text-align: center;
  }
}

/* --- 20. i18n Language Selector Styling --- */
.lang-selector {
  margin-right: 12px;
  align-self: center;
}

.lang-selector select {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--color-border);
  color: var(--color-white);
  font-family: var(--font-family);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  outline: none;
  transition: var(--transition-smooth);
}

.lang-selector select:hover, .lang-selector select:focus {
  border-color: var(--color-brand-cyan);
  background: rgba(0, 0, 0, 0.5);
}

/* --- 21. Alert Boxes (Success & Error states) --- */
.alert-box {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
  display: none;
  align-items: center;
  gap: 10px;
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #ff8080;
}

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

/* --- 22. Light Theme Overrides --- */
.light-theme {
  --color-obsidian-dark: #f1f5f9;       /* Light slate gray background */
  --color-slate-panel: rgba(255, 255, 255, 0.7); /* Clean light glass panel */
  --color-chrome-silver: #334155;       /* Dark slate gray text */
  --color-white: #0f172a;               /* Dark navy/slate titles */
  --color-muted: #64748b;               /* Muted text */
  --color-border: rgba(15, 23, 42, 0.08); /* Dark subtle border */
  --color-border-glow: rgba(0, 139, 197, 0.15);
}

.light-theme body {
  background-color: var(--color-obsidian-dark);
  color: var(--color-chrome-silver);
}

.light-theme h1, 
.light-theme h2, 
.light-theme h3, 
.light-theme h4, 
.light-theme h5, 
.light-theme h6 {
  color: var(--color-white);
}

.light-theme .text-gradient {
  background: linear-gradient(135deg, var(--color-white) 30%, var(--color-brand-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.light-theme .navbar {
  background: rgba(241, 250, 254, 0.8);
  border-bottom: 1px solid var(--color-border);
}

.light-theme .form-control {
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.15);
}

.light-theme .form-control:focus {
  border-color: var(--color-brand-cyan);
  background: #ffffff;
}

.light-theme .blur-orb {
  opacity: 0.08; /* Make background blurs softer in light mode */
}

.light-theme .btn-secondary {
  background: rgba(15, 23, 42, 0.05);
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.1);
}

.light-theme .btn-secondary:hover {
  background: rgba(15, 23, 42, 0.1);
}

.light-theme .btn-outline {
  color: #334155;
  border: 1px solid rgba(15, 23, 42, 0.15);
}

.light-theme .btn-outline:hover {
  background: rgba(15, 23, 42, 0.03);
}

.light-theme .teaser-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(241, 245, 249, 0.95) 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.light-theme .option-card {
  background: rgba(255, 255, 255, 0.8);
}

.light-theme .menu-item {
  color: #475569;
}

.light-theme .menu-item:hover {
  background: rgba(0, 0, 0, 0.03);
  color: #0f172a;
}

.light-theme .menu-item.active {
  background: rgba(0, 139, 197, 0.08);
  color: var(--color-brand-cyan);
}

.light-theme .ticket-item-card {
  background: rgba(255, 255, 255, 0.8);
}

.light-theme .ticket-item-card:hover {
  background: #ffffff;
}

.light-theme .chat-messages {
  background: rgba(255, 255, 255, 0.5);
}

.light-theme .chat-msg.agent {
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
}

.light-theme .progress-ring-container cx,
.light-theme .progress-ring-container cy,
.light-theme .progress-ring-container r {
  /* SVG classes */
}

.light-theme .progress-ring-container .ring-bg {
  stroke: rgba(15, 23, 42, 0.08);
}

.light-theme .admin-table th {
  background: rgba(15, 23, 42, 0.03);
  color: #0f172a;
}

.light-theme .admin-table td {
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

.light-theme .admin-table tr:hover {
  background: rgba(0, 0, 0, 0.01);
}

.light-theme .footer {
  background: #e2e8f0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.light-theme .footer-brand .lbl {
  color: #0f172a;
}

.light-theme .footer-legal {
  color: #475569;
}

.light-theme .lang-selector select {
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.15);
}

.light-theme .lang-selector select:hover {
  background: #ffffff;
}

/* Validation Feedback Styles */
.form-control.is-invalid {
  border-color: var(--color-danger) !important;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.15) !important;
}

.form-control.is-valid {
  border-color: var(--color-success) !important;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.15) !important;
}

.invalid-feedback {
  display: block;
  color: #ff8080;
  font-size: 11px;
  margin-top: 4px;
  font-weight: 500;
}

.light-theme .invalid-feedback {
  color: var(--color-danger);
}
