@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root, [data-theme="dark"] {
  /* Color Tokens - Dark Mode */
  --bg-base: #05070d;
  --bg-surface-1: rgba(13, 19, 32, 0.7);
  --bg-surface-2: rgba(22, 32, 54, 0.6);
  --bg-surface-hover: rgba(30, 44, 72, 0.75);
  --bg-card: rgba(16, 24, 40, 0.65);
  --glass-bg: rgba(14, 22, 38, 0.7);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 242, 254, 0.35);
  --border-focus: #00f2fe;
  
  --accent-cyan: #00f2fe;
  --accent-blue: #3b82f6;
  --accent-purple: #9333ea;
  --accent-violet: #8a2be2;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --accent-gold: #fbbf24;
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --gradient-cyan: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  --gradient-aurora: linear-gradient(135deg, #00f2fe 0%, #9333ea 50%, #f43f5e 100%);
  --gradient-gold: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  --gradient-alexa: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
  --gradient-google: linear-gradient(135deg, #4285F4 0%, #34A853 35%, #FBBC05 70%, #EA4335 100%);
  --gradient-eco: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  
  /* Strictly No Monospace - Modern Luxury Sans */
  --font-display: 'Outfit', 'Noto Sans Devanagari', sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Noto Sans Devanagari', sans-serif;
  --font-data: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 35px rgba(0, 242, 254, 0.25);
  --shadow-ambient: 0 20px 50px rgba(0, 0, 0, 0.6);
  
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  
  color-scheme: dark;
}

[data-theme="light"] {
  /* Color Tokens - Luxurious Royal Light Mode */
  --bg-base: #f8fafc;
  --bg-surface-1: rgba(255, 255, 255, 0.88);
  --bg-surface-2: rgba(241, 245, 249, 0.95);
  --bg-surface-hover: rgba(226, 232, 240, 0.9);
  --bg-card: rgba(255, 255, 255, 0.95);
  --glass-bg: rgba(255, 255, 255, 0.85);
  
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-glow: rgba(217, 119, 6, 0.4);
  --border-focus: #0284c7;
  
  --accent-cyan: #0284c7;
  --accent-blue: #2563eb;
  --accent-purple: #7c3aed;
  --accent-violet: #6d28d9;
  --accent-emerald: #059669;
  --accent-amber: #d97706;
  --accent-rose: #e11d48;
  --accent-gold: #b45309;
  
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  
  --gradient-cyan: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  --gradient-aurora: linear-gradient(135deg, #0284c7 0%, #7c3aed 50%, #e11d48 100%);
  --gradient-gold: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
  --gradient-alexa: linear-gradient(135deg, #0284c7 0%, #1d4ed8 100%);
  --gradient-google: linear-gradient(135deg, #4285F4 0%, #34A853 35%, #FBBC05 70%, #EA4335 100%);
  --gradient-eco: linear-gradient(135deg, #059669 0%, #0284c7 100%);
  
  /* Strictly No Monospace */
  --font-display: 'Outfit', 'Noto Sans Devanagari', sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Noto Sans Devanagari', sans-serif;
  --font-data: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-glow: 0 0 35px rgba(245, 158, 11, 0.2);
  --shadow-ambient: 0 20px 50px rgba(0, 0, 0, 0.08);
  
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  font-family: var(--font-body);
  background-color: var(--bg-base);
  color: var(--text-primary);
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
  background: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 242, 254, 0.12), transparent),
    radial-gradient(circle at 90% 30%, rgba(147, 51, 234, 0.08), transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(16, 185, 129, 0.06), transparent 45%),
    var(--bg-base);
}

/* Ambient Background Grid Pattern */
.bg-mesh-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
  opacity: 0.8;
}

/* Typography Utilities */
h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.text-gradient {
  background: var(--gradient-cyan);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-aurora {
  background: var(--gradient-aurora);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glassmorphism Classes */
.glass-panel {
  background: var(--bg-surface-1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-subtle);
  transition: border-color var(--transition-smooth), transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.glass-panel:hover {
  border-color: rgba(0, 242, 254, 0.3);
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: all var(--transition-smooth);
}

.glass-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

/* Containers */
.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 1.5rem;
  position: relative;
  z-index: 1;
}

/* Top Navigation Bar */
.navbar {
  position: sticky;
  top: 1rem;
  z-index: 100;
  margin-inline: auto;
  max-width: 1280px;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  margin-top: 1rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-subtle);
  /* Required for mobile dropdown positioning */
  position: sticky;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 0 18px rgba(255, 170, 0, 0.35);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.brand-logo-img:hover {
  transform: scale(1.08);
  box-shadow: 0 0 28px rgba(255, 170, 0, 0.65);
}

.brand-logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #00f2fe 0%, #7928ca 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  color: #05070d;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.5);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand-name span {
  color: var(--accent-cyan);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-cyan);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-live {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-emerald);
}

.badge-live-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulse-ring 1.8s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.badge-location {
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.25);
  color: var(--accent-cyan);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition-smooth);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-cyan);
  color: #05070d;
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 242, 254, 0.55);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

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

.btn-veena {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(251, 191, 36, 0.35) 100%);
  border: 1px solid rgba(251, 191, 36, 0.6);
  color: #fbbf24;
  font-weight: 700;
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.25);
}

.btn-veena:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.45) 0%, rgba(251, 191, 36, 0.55) 100%);
  box-shadow: 0 0 25px rgba(251, 191, 36, 0.5);
  color: #fff;
}

.btn-alexa {
  background: linear-gradient(135deg, rgba(0, 198, 255, 0.2) 0%, rgba(0, 114, 255, 0.2) 100%);
  border: 1px solid rgba(0, 198, 255, 0.4);
  color: #38bdf8;
}

.btn-alexa:hover {
  background: linear-gradient(135deg, rgba(0, 198, 255, 0.35) 0%, rgba(0, 114, 255, 0.35) 100%);
  box-shadow: 0 0 20px rgba(0, 198, 255, 0.4);
}

.btn-google {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.btn-google::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-google);
}

.btn-google:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 20px rgba(66, 133, 244, 0.3);
}

/* Hero Section */
.hero-section {
  padding: 3rem 0 5rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 580px;
}

.hero-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 0.5rem;
}

.owner-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.4rem 1rem 0.4rem 0.4rem;
  border-radius: var(--radius-full);
}

.owner-pill-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 2px solid #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.owner-pill-text {
  font-size: 0.85rem;
}

.owner-pill-text strong {
  color: #fff;
  display: block;
}

.owner-pill-text span {
  color: var(--accent-cyan);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Hero Visual Showcase */
.hero-visual-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  aspect-ratio: 16 / 10;
  background: #090e1a;
}

.hero-visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.hero-visual-card:hover .hero-visual-img {
  transform: scale(1.03);
}

.hero-overlay-hud {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 7, 13, 0.1) 0%, rgba(5, 7, 13, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  pointer-events: none;
}

.hud-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hud-chip {
  pointer-events: auto;
  background: rgba(10, 16, 28, 0.75);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hud-bottom-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  pointer-events: auto;
}

.hud-stat-box {
  background: rgba(10, 16, 28, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-md);
}

.hud-stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hud-stat-value {
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Telemetry Ticker */
.telemetry-strip {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.telemetry-card {
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(13, 20, 36, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.telemetry-card:hover {
  background: rgba(20, 30, 52, 0.6);
  border-color: rgba(0, 242, 254, 0.3);
}

.telemetry-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.icon-cyan { background: rgba(0, 242, 254, 0.1); color: var(--accent-cyan); border: 1px solid rgba(0, 242, 254, 0.25); }
.icon-purple { background: rgba(147, 51, 234, 0.1); color: #c084fc; border: 1px solid rgba(147, 51, 234, 0.25); }
.icon-green { background: rgba(16, 185, 129, 0.1); color: var(--accent-emerald); border: 1px solid rgba(16, 185, 129, 0.25); }
.icon-amber { background: rgba(245, 158, 11, 0.1); color: var(--accent-amber); border: 1px solid rgba(245, 158, 11, 0.25); }

.telemetry-info {
  display: flex;
  flex-direction: column;
}

.telemetry-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.telemetry-number {
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-primary);
}

/* Sections */
.section {
  padding: 5rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin-inline: auto;
  margin-bottom: 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

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

/* Interactive Room Simulator Hub */
.room-hub-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
}

.room-selector-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.room-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: rgba(14, 20, 34, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
}

.room-btn:hover {
  background: rgba(22, 32, 54, 0.8);
  border-color: rgba(255, 255, 255, 0.2);
}

.room-btn.active {
  background: rgba(0, 242, 254, 0.12);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.2);
  color: #fff;
}

.room-btn-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.room-status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--text-muted);
}

.room-btn.active .room-status-indicator {
  background-color: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}

/* Room Active View */
.room-stage {
  position: relative;
  background: var(--bg-surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.room-stage-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.room-stage-title-wrap h3 {
  font-size: 1.75rem;
}

.room-stage-title-wrap p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.room-devices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.device-card {
  background: rgba(10, 15, 26, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all var(--transition-fast);
}

.device-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.device-card.is-on {
  border-color: rgba(0, 242, 254, 0.4);
  background: rgba(14, 22, 38, 0.85);
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.1);
}

.device-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.device-icon-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.device-icon {
  font-size: 1.35rem;
}

.device-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.device-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Modern Switch Toggle */
.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
}

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

.slider-toggle {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: .3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 34px;
}

.slider-toggle:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 50%;
}

input:checked + .slider-toggle {
  background: var(--gradient-cyan);
}

input:checked + .slider-toggle:before {
  transform: translateX(22px);
  background-color: #05070d;
}

/* Range Slider */
.custom-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
  transition: opacity .2s;
}

.custom-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-cyan);
  cursor: pointer;
  box-shadow: 0 0 10px var(--accent-cyan);
}

/* Light Color Palette Swatches */
.color-swatches {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.color-swatch {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform var(--transition-fast);
}

.color-swatch:hover {
  transform: scale(1.15);
}

.color-swatch.active {
  border-color: #ffffff;
  box-shadow: 0 0 10px currentColor;
}

/* Voice Assistant Console Modal / Floating HUD */
.voice-hud-card {
  background: linear-gradient(145deg, rgba(14, 20, 36, 0.9), rgba(8, 12, 22, 0.95));
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(0, 242, 254, 0.15);
}

.voice-wave-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 60px;
  margin: 1.5rem 0;
}

.wave-bar {
  width: 6px;
  height: 12px;
  border-radius: 4px;
  background: var(--accent-cyan);
  transition: height 0.1s ease;
}

.wave-bar.speaking {
  animation: wave-motion 1.2s infinite ease-in-out;
}

.wave-bar:nth-child(1) { animation-delay: 0.0s; }
.wave-bar:nth-child(2) { animation-delay: 0.1s; }
.wave-bar:nth-child(3) { animation-delay: 0.2s; }
.wave-bar:nth-child(4) { animation-delay: 0.3s; }
.wave-bar:nth-child(5) { animation-delay: 0.4s; }
.wave-bar:nth-child(6) { animation-delay: 0.5s; }
.wave-bar:nth-child(7) { animation-delay: 0.6s; }
.wave-bar:nth-child(8) { animation-delay: 0.7s; }
.wave-bar:nth-child(9) { animation-delay: 0.8s; }

@keyframes wave-motion {
  0%, 100% { height: 8px; }
  50% { height: 50px; background-color: #9333ea; }
}

.voice-command-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.voice-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.voice-chip:hover {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}

.voice-status-text {
  text-align: center;
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
  color: var(--text-secondary);
  min-height: 28px;
}

/* Energy & Sustainability Dashboard */
.energy-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
}

.energy-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.energy-pill-card {
  background: rgba(14, 22, 38, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.energy-pill-val {
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 1.4rem;
  color: #fff;
}

/* Security & Access Section */
.security-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.cctv-viewer {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #000;
  aspect-ratio: 16 / 10;
}

.cctv-viewer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.1);
}

.cctv-hud {
  position: absolute;
  inset: 0;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, transparent 40%, rgba(0, 0, 0, 0.6) 100%);
  pointer-events: none;
}

.cctv-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(220, 38, 38, 0.85);
  color: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.biometric-pad {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  background: rgba(14, 20, 36, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  gap: 1.5rem;
}

.scanner-sensor {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 2px dashed var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all var(--transition-smooth);
}

.scanner-sensor:hover {
  background: rgba(0, 242, 254, 0.1);
  border-style: solid;
  box-shadow: 0 0 30px rgba(0, 242, 254, 0.4);
}

.scanner-sensor.scanning {
  animation: scan-pulse 1.2s infinite ease-in-out;
}

@keyframes scan-pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 242, 254, 0.7); }
  50% { transform: scale(1.05); box-shadow: 0 0 30px 10px rgba(0, 242, 254, 0.5); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 242, 254, 0); }
}

/* Owner Showcase Profile */
.owner-section {
  padding: 5rem 0;
  position: relative;
}

.owner-showcase-card {
  background: linear-gradient(135deg, rgba(24, 32, 54, 0.8) 0%, rgba(12, 17, 30, 0.9) 100%);
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(245, 158, 11, 0.12);
  display: grid;
  grid-template-columns: 460px 1fr;
  align-items: stretch;
}

.owner-portrait-wrap {
  height: 100%;
  min-height: 540px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% 28%, #162035 0%, #080d19 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.owner-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.owner-showcase-card:hover .owner-portrait-img {
  transform: scale(1.02);
}

.owner-info-content {
  padding: 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.owner-role-badge {
  color: var(--accent-cyan);
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
}

.owner-name {
  font-size: clamp(2rem, 3vw, 2.75rem);
}

.owner-quote {
  font-style: italic;
  font-size: 1.15rem;
  color: #e2e8f0;
  border-left: 3px solid var(--accent-cyan);
  padding-left: 1.25rem;
  line-height: 1.6;
}

.owner-highlights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.owner-highlight-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.owner-highlight-item span {
  font-size: 1.2rem;
}

/* Modal Windows */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 12, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.modal-backdrop.open {
  display: flex;
  opacity: 1;
}

.modal-box {
  background: rgba(14, 20, 36, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xl);
  max-width: 580px;
  width: 100%;
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8);
  transform: translateY(20px);
  transition: transform var(--transition-bounce);
}

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

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* Forms */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input, .form-textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.15rem;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

/* Footer */
.footer {
  margin-top: 6rem;
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 12, 20, 0.8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 9999;
}

.toast {
  background: rgba(14, 22, 38, 0.95);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(0, 242, 254, 0.4);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.35rem;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  animation: slide-toast 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slide-toast {
  from { transform: translateX(50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .room-hub-layout {
    grid-template-columns: 1fr;
  }
  .energy-grid, .security-grid {
    grid-template-columns: 1fr;
  }
  .owner-showcase-card {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0.6rem 1rem;
    border-radius: var(--radius-md);
  }
  .nav-links {
    display: none;
  }
  .energy-metrics-row {
    grid-template-columns: 1fr;
  }
}

/* Indian 2 BHK Architectural Blueprint & Vastu Styles */
.blueprint-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.blueprint-zone {
  background: rgba(14, 22, 38, 0.7);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.blueprint-zone:hover {
  background: rgba(22, 34, 58, 0.85);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.blueprint-zone.selected {
  background: rgba(26, 42, 74, 0.95);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.35);
  border-width: 2px;
}

.blueprint-zone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
}

.blueprint-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.tag-vastu { background: rgba(251, 191, 36, 0.2); color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.35); }
.tag-geyser { background: rgba(0, 242, 254, 0.2); color: #00f2fe; border: 1px solid rgba(0, 242, 254, 0.35); }
.tag-north { background: rgba(16, 185, 129, 0.2); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.35); }
.tag-east { background: rgba(59, 130, 246, 0.2); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.35); }
.tag-central { background: rgba(138, 43, 226, 0.2); color: #c084fc; border: 1px solid rgba(138, 43, 226, 0.35); }
.tag-west { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.35); }

.blueprint-area {
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.blueprint-zone-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 0.3rem;
}

.blueprint-zone-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Geyser Card Styles */
.geyser-card {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

.geyser-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.3);
}

.geyser-icon-wrap.heating {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  animation: geyser-heat-pulse 2s infinite ease-in-out;
}

@keyframes geyser-heat-pulse {
  0%, 100% {
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 22px rgba(239, 68, 68, 0.7);
    transform: scale(1.05);
  }
}

.mandir-card {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
}

/* Virtual Tour Stage & Interactive Hotspots */
.virtual-tour-stage-container {
  transition: all 0.4s ease;
}

.virtual-stage-viewport {
  position: relative;
  background: #000;
  user-select: none;
}

.tour-hotspot-pin {
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tour-hotspot-pin:hover {
  transform: translate(-50%, -50%) scale(1.15) !important;
  z-index: 20 !important;
}

.hotspot-pulse-ring {
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border-radius: 50%;
  border: 2px solid #00f2fe;
  animation: hotspot-pulse-anim 2.2s infinite ease-out;
  pointer-events: none;
}

@keyframes hotspot-pulse-anim {
  0% {
    transform: scale(0.6);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

.hotspot-core-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  border: 2px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}

.tour-hotspot-pin.is-active .hotspot-core-badge {
  border-color: #fff;
}

.hotspot-interactive-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(8, 14, 26, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.65rem;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-50%) translateY(4px);
  transition: all 0.25s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.tour-hotspot-pin:hover .hotspot-interactive-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Interactive SVG Blueprint Overlay */
.interactive-blueprint-container {
  position: relative;
  transition: all 0.3s ease;
}

.blueprint-svg-zone:hover {
  fill: rgba(0, 242, 254, 0.25) !important;
  stroke: #00f2fe !important;
  stroke-width: 5 !important;
  filter: drop-shadow(0 0 10px #00f2fe);
}

.blueprint-svg-zone.is-selected {
  fill: rgba(251, 191, 36, 0.35) !important;
  stroke: #fbbf24 !important;
  stroke-width: 6 !important;
  filter: drop-shadow(0 0 16px #fbbf24);
}

@media (max-width: 768px) {
  .blueprint-grid {
    grid-template-columns: 1fr;
  }
  .blueprint-zone {
    grid-column: span 1 !important;
  }
}

/* ==========================================================================
   Indian Vastu Purusha Mandala & Pancha Bhoota Architecture
   ========================================================================== */
.vastu-mandala-container {
  border-radius: var(--radius-xl);
}

.vastu-mandala-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.vastu-zone-card {
  background: rgba(12, 18, 32, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.vastu-zone-interactive {
  cursor: pointer;
}

.vastu-zone-interactive:hover {
  transform: translateY(-4px);
  background: rgba(18, 28, 50, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(251, 191, 36, 0.25);
  border-color: rgba(251, 191, 36, 0.4);
}

.vastu-zone-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.vastu-direction-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.03em;
}

.vastu-element-icon {
  font-size: 1.3rem;
}

.vastu-zone-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 0.4rem;
}

.vastu-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.vastu-zone-desc {
  font-size: 0.76rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 0.85rem;
  flex: 1;
}

.vastu-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.6rem;
  margin-top: auto;
}

.vastu-status-tag {
  font-size: 0.7rem;
  color: #10b981;
  font-weight: 600;
}

.vastu-inspect-btn {
  font-size: 0.72rem;
  color: #fbbf24;
  font-weight: 700;
  transition: transform 0.2s ease;
}

.vastu-zone-interactive:hover .vastu-inspect-btn {
  transform: translateX(3px);
}

/* Pancha Bhoota (5 Elements) Matrix */
.pancha-bhoota-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.pancha-card {
  background: rgba(14, 22, 38, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1rem;
  transition: all var(--transition-fast);
}

.pancha-card:hover {
  border-color: rgba(251, 191, 36, 0.35);
  transform: translateY(-2px);
}

.pancha-bar-bg {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
}

.pancha-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #fbbf24);
  border-radius: 9999px;
}

/* Active Room Vastu Banner */
.vastu-insight-banner {
  background: radial-gradient(circle at 10% 50%, rgba(251, 191, 36, 0.12), rgba(10, 15, 26, 0.85));
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

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

@media (max-width: 600px) {
  .vastu-mandala-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Theme & Language Switcher Controls
   ========================================================================== */
.theme-toggle-btn {
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.05rem;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.theme-toggle-btn:hover {
  background: var(--bg-surface-hover);
  border-color: var(--accent-gold);
  transform: scale(1.08);
}

.lang-toggle-btn {
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.lang-toggle-btn:hover {
  background: var(--bg-surface-hover);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-1px);
}

/* ==========================================================================
   Light Mode Visual Contrast Enhancements
   ========================================================================== */
[data-theme="light"] body {
  background: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(2, 132, 199, 0.08), transparent),
    radial-gradient(circle at 90% 30%, rgba(245, 158, 11, 0.06), transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(5, 150, 105, 0.05), transparent 45%),
    var(--bg-base);
}

[data-theme="light"] .bg-mesh-grid {
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.035) 1px, transparent 1px);
}

[data-theme="light"] .glass-card {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .glass-panel {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .room-stage {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .room-stage h3 {
  color: #0f172a;
}

[data-theme="light"] .room-btn {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(0, 0, 0, 0.06);
  color: #0f172a;
}

[data-theme="light"] .room-btn.active {
  background: rgba(2, 132, 199, 0.08);
  border-color: var(--accent-cyan);
}

[data-theme="light"] .device-card {
  background: rgba(248, 250, 252, 0.95);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .device-name {
  color: #0f172a;
}

[data-theme="light"] .device-card.is-on {
  background: rgba(240, 253, 250, 0.95);
  border-color: var(--accent-emerald);
}

[data-theme="light"] .voice-hud-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92));
  border-color: rgba(217, 119, 6, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .vastu-zone-card {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .vastu-zone-title {
  color: #0f172a;
}

[data-theme="light"] .blueprint-zone {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .blueprint-zone-title {
  color: #0f172a;
}

[data-theme="light"] .owner-quote {
  color: #1e293b;
}

[data-theme="light"] .hud-chip,
[data-theme="light"] .hud-stat-box {
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .hud-stat-value {
  color: #0f172a;
}

[data-theme="light"] .energy-pill-card {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .energy-pill-val {
  color: #0f172a;
}

[data-theme="light"] .pancha-card {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   2 BHK Interactive Architectural Minimap & Dynamic Room Visualizer
   ========================================================================== */

/* 2 BHK Minimap Bar */
.bhk-minimap-container {
  background: var(--bg-surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.bhk-minimap-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.bhk-minimap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem;
}

.bhk-minimap-card {
  position: relative;
  background: rgba(14, 20, 34, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 96px;
  text-align: left;
}

[data-theme="light"] .bhk-minimap-card {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.08);
}

.bhk-minimap-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-cyan);
  background: rgba(20, 30, 52, 0.85);
}

[data-theme="light"] .bhk-minimap-card:hover {
  background: rgba(240, 249, 255, 0.95);
  border-color: var(--accent-cyan);
}

.bhk-minimap-card.active {
  border-color: var(--accent-gold);
  background: rgba(251, 191, 36, 0.08);
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.25);
}

[data-theme="light"] .bhk-minimap-card.active {
  background: rgba(254, 243, 199, 0.7);
  border-color: #d97706;
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.2);
}

.bhk-minimap-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.4rem;
}

.bhk-minimap-icon {
  font-size: 1.2rem;
}

.bhk-minimap-power {
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--accent-cyan);
}

.bhk-minimap-name {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.bhk-minimap-meta {
  font-size: 0.68rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-variant-numeric: tabular-nums;
}

.bhk-minimap-badge {
  font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

/* Room Architectural Visual Stage */
.architectural-stage-canvas {
  position: relative;
  width: 100%;
  min-height: 280px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, #090e1a 0%, #0d1527 100%);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  transition: all 0.4s ease;
}

[data-theme="light"] .architectural-stage-canvas {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.room-visual-ambient-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: background 0.5s ease, opacity 0.5s ease;
}

.stage-ambient-header {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.stage-room-illustration {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 0;
  min-height: 140px;
}

/* Animated Architectural Elements */
@keyframes spinFan {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animated-fan-blades {
  display: inline-block;
  transform-origin: center center;
  animation: spinFan 0.8s linear infinite;
}

@keyframes diyaFlicker {
  0% { transform: scale(1); filter: drop-shadow(0 0 10px #fbbf24); }
  35% { transform: scale(1.18) translateY(-2px) rotate(1deg); filter: drop-shadow(0 0 18px #f59e0b); }
  70% { transform: scale(0.92) translateY(1px) rotate(-1deg); filter: drop-shadow(0 0 12px #d97706); }
  100% { transform: scale(1.12) translateY(-1px); filter: drop-shadow(0 0 16px #fbbf24); }
}

.animated-diya-flame {
  display: inline-block;
  transform-origin: bottom center;
  animation: diyaFlicker 1.1s ease-in-out infinite alternate;
}

@keyframes steamRise {
  0% { opacity: 0; transform: translateY(0) scale(0.7); }
  40% { opacity: 0.9; }
  100% { opacity: 0; transform: translateY(-30px) scale(1.3); }
}

.steam-particle {
  display: inline-block;
  animation: steamRise 1.8s ease-out infinite;
}

@keyframes soundBarPulse {
  0%, 100% { height: 8px; }
  50% { height: 32px; }
}

.sound-bar {
  width: 4px;
  background: var(--accent-cyan);
  border-radius: 2px;
  animation: soundBarPulse 1s ease-in-out infinite;
}

.sound-bar:nth-child(2) { animation-delay: 0.15s; background: #8a2be2; }
.sound-bar:nth-child(3) { animation-delay: 0.3s; background: #00f5a0; }
.sound-bar:nth-child(4) { animation-delay: 0.45s; background: #fbbf24; }
.sound-bar:nth-child(5) { animation-delay: 0.6s; background: var(--accent-cyan); }

@keyframes coolBreeze {
  0% { transform: translateX(0); opacity: 0.2; }
  50% { opacity: 0.8; }
  100% { transform: translateX(25px); opacity: 0.2; }
}

.ac-breeze-line {
  height: 2px;
  background: linear-gradient(90deg, transparent, #00f2fe, transparent);
  border-radius: 2px;
  animation: coolBreeze 1.5s ease-in-out infinite;
}

@keyframes bellRinging {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(18deg); }
  75% { transform: rotate(-18deg); }
}

.bell-swinging {
  transform-origin: top center;
  animation: bellRinging 0.6s ease-in-out infinite;
}

.stage-footer-telemetry {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  background: rgba(10, 15, 26, 0.85);
  backdrop-filter: blur(12px);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .stage-footer-telemetry {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.1);
}

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

/* Digital Gate Pass & Ticket Styling */
.active-pass-item:hover {
  background: rgba(20, 28, 50, 0.95) !important;
  border-color: rgba(0, 242, 254, 0.5) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 242, 254, 0.15);
}

.active-pass-item:hover .badge {
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

[data-theme="light"] .active-pass-item {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .active-pass-item:hover {
  background: #f8fafc !important;
  border-color: var(--accent-cyan) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

@media print {
  body * {
    visibility: hidden;
  }
  #digitalPassModal,
  #digitalPassModal * {
    visibility: visible;
  }
  #digitalPassModal {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background: transparent !important;
    display: block !important;
    opacity: 1 !important;
  }
  .modal-close-btn,
  #passShareWhatsappBtn,
  #passCopyDetailsBtn,
  #passPrintBtn {
    display: none !important;
  }
  .digital-pass-modal-box {
    box-shadow: none !important;
    border: 2px solid #000 !important;
    max-width: 100% !important;
    background: #fff !important;
    color: #000 !important;
  }
  #printablePassContent * {
    color: #000 !important;
  }
}

/* ============================================================
   MOBILE HAMBURGER MENU BUTTON
   ============================================================ */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
  z-index: 200;
  flex-shrink: 0;
  touch-action: manipulation;
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: center;
}

.mobile-menu-btn.open .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-menu-btn.open .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.mobile-menu-btn.open .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   COMPREHENSIVE MOBILE RESPONSIVE — All Screens ≤ 1024px
   ============================================================ */
@media (max-width: 1024px) {
  .navbar {
    top: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-lg);
    margin-inline: 0.75rem;
    max-width: calc(100% - 1.5rem);
  }

  .nav-links {
    gap: 1.25rem;
  }

  .nav-actions {
    gap: 0.5rem;
  }

  .badge-live {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

/* ============================================================
   TABLET & LARGE PHONE — ≤ 768px
   ============================================================ */
@media (max-width: 768px) {
  /* === NAVBAR === */
  .mobile-menu-btn {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 0.75rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    z-index: 150;
    animation: slideDown 0.25s ease forwards;
  }

  .nav-links.mobile-open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-link {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.2s ease;
  }

  .nav-link:hover {
    background: rgba(0, 242, 254, 0.08);
  }

  .nav-actions {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem + 200px);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 0.75rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    z-index: 149;
  }

  .nav-actions.mobile-open {
    display: flex;
    top: calc(100% + 0.5rem + 290px);
  }

  .nav-actions .btn,
  .nav-actions .lang-toggle-btn,
  .nav-actions .theme-toggle-btn {
    width: 100%;
    justify-content: center;
  }

  .badge-live {
    display: none !important;
  }

  /* Better: show nav-actions within nav-links on mobile */
  .nav-actions {
    display: none;
  }

  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
  }

  /* === HERO SECTION === */
  .hero-section {
    padding: 1.5rem 0 3rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .hero-title {
    font-size: clamp(1.9rem, 7vw, 2.8rem);
  }

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

  .hero-visual-card {
    max-height: 280px;
    overflow: hidden;
    border-radius: var(--radius-lg);
  }

  .hero-visual-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
  }

  .telemetry-strip {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem;
  }

  .telemetry-card {
    padding: 0.85rem;
  }

  /* === SECTIONS === */
  .section {
    padding: 3rem 0;
  }

  .section-title {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
  }

  /* === FLOOR PLAN / VIRTUAL TOUR === */
  .tour-layout {
    grid-template-columns: 1fr !important;
  }

  .room-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.6rem;
  }

  .room-card {
    padding: 0.85rem;
  }

  .room-card-title {
    font-size: 0.8rem;
  }

  .room-hub-layout {
    grid-template-columns: 1fr !important;
  }

  .tour-stage {
    min-height: 240px;
  }

  .floor-plan-tabs {
    gap: 0.35rem;
    flex-wrap: wrap;
  }

  .floor-plan-tab {
    padding: 0.55rem 0.9rem;
    font-size: 0.8rem;
  }

  /* === SECURITY CONSOLE === */
  .security-grid {
    grid-template-columns: 1fr !important;
  }

  .cctv-viewer {
    height: 220px;
  }

  /* Visitor Pass Form — single column on mobile */
  #visitorPassForm .grid-cols-2,
  #visitorPassForm [style*="grid-template-columns: 1fr 1fr"] {
    display: flex !important;
    flex-direction: column !important;
  }

  /* Pass list items - compact on mobile */
  .active-pass-item {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
  }

  .active-pass-item > div:last-child {
    width: 100%;
    display: flex;
    gap: 0.5rem;
  }

  .active-pass-item .view-pass-btn {
    flex: 1;
    justify-content: center;
  }

  /* === ENERGY SECTION === */
  .energy-grid {
    grid-template-columns: 1fr !important;
  }

  /* === OWNER SHOWCASE === */
  .owner-showcase-grid {
    grid-template-columns: 1fr !important;
  }

  /* === FOOTER === */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }

  /* === MODALS === */
  .modal-box {
    max-height: 95dvh;
    overflow-y: auto;
    border-radius: var(--radius-lg);
    margin: 0.5rem;
    width: calc(100% - 1rem);
    max-width: calc(100% - 1rem) !important;
  }

  .digital-pass-modal-box {
    width: calc(100% - 1rem) !important;
    max-width: calc(100% - 1rem) !important;
  }

  /* === VASTU MATRIX === */
  .vastu-matrix-grid {
    grid-template-columns: 1fr !important;
  }

  /* Pancha Bhoota cards */
  .pancha-bhoota-grid {
    grid-template-columns: 1fr !important;
  }

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

/* ============================================================
   SMALL PHONE — ≤ 480px (iPhone SE, older Androids)
   ============================================================ */
@media (max-width: 480px) {
  .container {
    padding-inline: 1rem;
  }

  .navbar {
    margin-inline: 0.5rem;
    max-width: calc(100% - 1rem);
    padding: 0.55rem 0.85rem;
  }

  .brand-name {
    font-size: 1rem;
  }

  .brand-logo-img {
    width: 34px;
    height: 34px;
  }

  .hero-title {
    font-size: clamp(1.65rem, 8vw, 2.2rem);
  }

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

  /* Buttons full-width on tiny screens */
  .hero-content > div[style*="display: flex"] {
    flex-direction: column;
  }

  .hero-content .btn {
    width: 100%;
    justify-content: center;
  }

  .telemetry-strip {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.6rem;
  }

  .telemetry-card {
    padding: 0.75rem;
    border-radius: var(--radius-md);
  }

  .telemetry-icon-wrap {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .telemetry-number {
    font-size: 0.95rem;
  }

  .telemetry-title {
    font-size: 0.7rem;
  }

  .room-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem;
  }

  .room-card {
    padding: 0.7rem 0.6rem;
  }

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

  /* Section buttons full width */
  .btn {
    touch-action: manipulation;
  }

  /* Pass form inputs full width */
  .form-input,
  .form-textarea {
    font-size: 16px; /* Prevents iOS zoom on focus */
  }

  /* CCTV compact */
  .cctv-viewer {
    height: 180px;
  }

  .biometric-pad {
    padding: 1.25rem;
  }

  /* Glass cards compact */
  .glass-card {
    padding: 1rem;
  }

  /* Modal full width */
  .modal-backdrop {
    padding: 0.25rem;
    align-items: flex-end;
  }

  .modal-box {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    max-height: 92dvh;
    margin: 0;
    width: 100%;
    max-width: 100% !important;
  }

  /* Owner showcase compact */
  .owner-showcase-content {
    padding: 1.5rem;
  }

  /* Floor plan tabs scrollable */
  .floor-plan-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .floor-plan-tabs::-webkit-scrollbar {
    display: none;
  }
}

/* ============================================================
   VERY SMALL — ≤ 360px (Galaxy S5, older budget phones)
   ============================================================ */
@media (max-width: 360px) {
  .hero-title {
    font-size: 1.55rem;
  }

  .navbar {
    padding: 0.45rem 0.75rem;
  }

  .brand-name {
    display: none;
  }

  .room-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.4rem;
  }

  .telemetry-strip {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.4rem;
  }
}

/* ============================================================
   TOUCH DEVICE IMPROVEMENTS
   ============================================================ */
@media (hover: none) and (pointer: coarse) {
  /* All interactive elements get larger tap targets */
  .btn, .nav-link, .room-card, .floor-plan-tab,
  .cam-switch-btn, .view-pass-btn, .revoke-pass-btn,
  .active-pass-item, .device-toggle-label {
    min-height: 44px;
    touch-action: manipulation;
  }

  /* Remove hover effects that feel wrong on touch */
  .glass-card:hover,
  .room-card:hover,
  .glass-panel:hover {
    transform: none;
  }

  /* Better scrolling */
  .modal-box, .tour-stage {
    -webkit-overflow-scrolling: touch;
  }
}

/* ============================================================
   WEATHER VCARDS — Dual Real-Time Weather Section
   ============================================================ */
.weather-vcards-section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.weather-vcards-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.weather-vcards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  max-width: 880px;
  margin-inline: auto;
}

.vcard-stat {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.5rem 0.6rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

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

.vcard-stat-value {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Spin animation for loading state */
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ============================================================
   OWNER SHOWCASE — Responsive two-column card
   ============================================================ */
.owner-showcase-card {
  display: grid;
  grid-template-columns: 420px 1fr;
}

/* ============================================================
   RESPONSIVE — Weather VCards & Owner Card
   ============================================================ */
@media (max-width: 800px) {
  .weather-vcards-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .owner-showcase-card {
    grid-template-columns: 1fr !important;
  }

  .owner-portrait-wrap {
    min-height: 340px !important;
  }
}

@media (max-width: 520px) {
  .weather-vcards-grid {
    gap: 0.85rem;
  }

  .vcard-stat-value {
    font-size: 0.8rem;
  }

  .owner-info-content {
    padding: 1.5rem 1.25rem !important;
  }

  .owner-highlights-grid {
    grid-template-columns: 1fr !important;
  }
}


@supports (padding: max(0px)) {
  .navbar {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  .container {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  .modal-backdrop {
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
  }
}

