/* ==========================================================================
   NIGAMA CONNECT — APP SCREENS PREVIEW STUDIO DESIGN SYSTEM
   Inspired by ARS Splash Preview Studio & NigamaConnectApp Design Tokens
   ========================================================================== */

:root {
  /* Brand Core Tokens */
  --brand-primary: #0FA3D9;
  --brand-primary-hover: #0284C7;
  --brand-primary-glow: rgba(15, 163, 217, 0.35);
  --brand-secondary: #4FD8A0;
  --brand-secondary-hover: #10B981;
  --brand-secondary-glow: rgba(79, 216, 160, 0.30);
  --brand-accent: #FFA24D;
  --brand-accent-hover: #F59E0B;
  --brand-accent-glow: rgba(255, 162, 77, 0.30);
  --brand-danger: #EF4444;
  --brand-success: #10B981;
  --brand-gold: #F59E0B;
  --brand-purple: #8B5CF6;

  /* Typography */
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Transitions */
  --trans-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --trans-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   STUDIO THEME: DARK (Default)
   -------------------------------------------------------------------------- */
[data-theme="dark"] {
  --studio-bg: #030712;
  --studio-header-bg: rgba(15, 23, 42, 0.88);
  --studio-sidebar-bg: #090E1A;
  --studio-border: rgba(255, 255, 255, 0.10);
  --studio-text: #F8FAFC;
  --studio-text-muted: #94A3B8;
  --studio-text-dim: #64748B;
  --studio-hover: rgba(255, 255, 255, 0.06);

  /* Device Skin */
  --device-bezel: #0F172A;
  --device-bezel-border: rgba(255, 255, 255, 0.18);
  --device-shadow: 0 35px 80px -15px rgba(0, 0, 0, 0.85), 0 0 50px rgba(15, 163, 217, 0.15);

  /* Inner App Dark Palette (Matches NigamaConnectApp Dark Theme) */
  --app-bg: #020617;
  --app-bg-radial: radial-gradient(circle at 50% 15%, #0A172E 0%, #020617 80%);
  --app-surface: #0B1528;
  --app-surface-elevated: #11203B;
  --app-surface-hover: #182C4F;
  --app-surface-glass: rgba(11, 21, 40, 0.85);
  --app-border: rgba(255, 255, 255, 0.08);
  --app-border-focus: rgba(15, 163, 217, 0.60);
  --app-text: #F8FAFC;
  --app-text-muted: #94A3B8;
  --app-text-dim: #64748B;
  --app-pill-bg: rgba(255, 255, 255, 0.06);
  --app-card-shadow: 0 10px 30px rgba(0, 0, 0, 0.50);
  --status-bar-text: #FFFFFF;
}

/* --------------------------------------------------------------------------
   STUDIO THEME: LIGHT
   -------------------------------------------------------------------------- */
[data-theme="light"] {
  --studio-bg: #F1F5F9;
  --studio-header-bg: rgba(255, 255, 255, 0.90);
  --studio-sidebar-bg: #FFFFFF;
  --studio-border: rgba(0, 0, 0, 0.10);
  --studio-text: #0F172A;
  --studio-text-muted: #475569;
  --studio-text-dim: #94A3B8;
  --studio-hover: rgba(0, 0, 0, 0.04);

  /* Device Skin */
  --device-bezel: #1E293B;
  --device-bezel-border: rgba(0, 0, 0, 0.25);
  --device-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.20), 0 0 40px rgba(15, 163, 217, 0.10);

  /* Inner App Light Palette (Matches NigamaConnectApp Light Theme) */
  --app-bg: #F8FAFC;
  --app-bg-radial: radial-gradient(circle at 50% 15%, #E2E8F0 0%, #F8FAFC 85%);
  --app-surface: #FFFFFF;
  --app-surface-elevated: #F1F5F9;
  --app-surface-hover: #E2E8F0;
  --app-surface-glass: rgba(255, 255, 255, 0.90);
  --app-border: rgba(0, 0, 0, 0.08);
  --app-border-focus: rgba(15, 163, 217, 0.80);
  --app-text: #0F172A;
  --app-text-muted: #475569;
  --app-text-dim: #94A3B8;
  --app-pill-bg: rgba(15, 163, 217, 0.08);
  --app-card-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  --status-bar-text: #0F172A;
}

/* ==========================================================================
   SCOPED SIMULATOR CONTAINER
   ========================================================================== */
.nc-simulator-container {
  width: 100%;
  border-radius: var(--nc-radius-xl, 24px);
  border: 1px solid var(--studio-border);
  background: var(--studio-bg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 40px rgba(15, 163, 217, 0.1);
  overflow: hidden;
  position: relative;
  margin-top: 2rem;
}

/* ==========================================================================
   1. STUDIO TOP HEADER & TOOLBAR
   ========================================================================== */
.studio-header {
  background: var(--studio-header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--studio-border);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 100;
  flex-wrap: wrap;
  gap: 12px;
}

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

.brand-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0FA3D9, #134E3A);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px rgba(15, 163, 217, 0.40);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  overflow: hidden;
}

.brand-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-info h1 {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-info h1 .version-tag {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  background: rgba(15, 163, 217, 0.18);
  color: var(--brand-primary);
  border: 1px solid rgba(15, 163, 217, 0.35);
}

.brand-info p {
  font-size: 11.5px;
  color: var(--studio-text-muted);
}

.studio-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.control-group {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--studio-hover);
  border: 1px solid var(--studio-border);
  padding: 3px 6px;
  border-radius: 10px;
}

.control-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--studio-text-dim);
  padding-left: 4px;
}

.segmented-control {
  display: flex;
  gap: 3px;
}

.segment-btn {
  padding: 5px 11px;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: var(--studio-text-muted);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--trans-fast);
}

.segment-btn:hover {
  color: var(--studio-text);
  background: rgba(255, 255, 255, 0.06);
}

.segment-btn.active {
  background: var(--brand-primary);
  color: #FFFFFF;
  box-shadow: 0 4px 14px var(--brand-primary-glow);
}

.live-ist-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(79, 216, 160, 0.12);
  border: 1px solid rgba(79, 216, 160, 0.30);
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-secondary);
}

.live-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-secondary);
  box-shadow: 0 0 10px var(--brand-secondary);
  animation: pulseBeacon 2s infinite ease-in-out;
}

@keyframes pulseBeacon {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* ==========================================================================
   2. MAIN STUDIO WORKSPACE LAYOUT
   ========================================================================== */
.studio-workspace {
  display: flex;
  flex: 1;
  height: calc(100vh - 67px);
  overflow: hidden;
}

/* Left Sidebar: Screens Directory */
.studio-sidebar {
  width: 320px;
  background: var(--studio-sidebar-bg);
  border-right: 1px solid var(--studio-border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow: hidden;
}

.sidebar-search-box {
  padding: 14px;
  border-bottom: 1px solid var(--studio-border);
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-wrapper svg {
  position: absolute;
  left: 12px;
  color: var(--studio-text-dim);
  pointer-events: none;
}

.search-input-wrapper input {
  width: 100%;
  padding: 9px 12px 9px 36px;
  border-radius: 8px;
  border: 1px solid var(--studio-border);
  background: var(--studio-hover);
  color: var(--studio-text);
  font-family: var(--font-sans);
  font-size: 13px;
  outline: none;
  transition: all var(--trans-fast);
}

.search-input-wrapper input:focus {
  border-color: var(--brand-primary);
  background: var(--app-surface);
  box-shadow: 0 0 0 3px var(--brand-primary-glow);
}

.sidebar-screens-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-screens-list::-webkit-scrollbar {
  width: 5px;
}
.sidebar-screens-list::-webkit-scrollbar-thumb {
  background: var(--studio-border);
  border-radius: 5px;
}

.sidebar-category-title {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--studio-text-dim);
  padding: 12px 12px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.screen-item-btn {
  padding: 9px 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--studio-text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--trans-fast);
  background: transparent;
  width: 100%;
  text-align: left;
}

.screen-item-btn:hover {
  background: var(--studio-hover);
  color: var(--studio-text);
}

.screen-item-btn.active {
  background: rgba(15, 163, 217, 0.14);
  border-color: rgba(15, 163, 217, 0.35);
  color: var(--brand-primary);
  font-weight: 700;
}

.screen-icon-bubble {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  display: grid;
  place-items: center;
  font-size: 14px;
  flex-shrink: 0;
}

.screen-item-btn.active .screen-icon-bubble {
  background: var(--brand-primary);
  color: #FFFFFF;
}

.screen-badge-pill {
  margin-left: auto;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--studio-text-dim);
}

.screen-item-btn.active .screen-badge-pill {
  background: rgba(15, 163, 217, 0.25);
  color: var(--brand-primary);
}

/* ==========================================================================
   3. STUDIO STAGE & CANVAS
   ========================================================================== */
.studio-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 24px;
  overflow-y: auto;
  overflow-x: auto;
  background: radial-gradient(circle at center, rgba(15, 163, 217, 0.04) 0%, transparent 70%);
  position: relative;
}

.stage-top-meta {
  width: 100%;
  max-width: 900px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: var(--studio-hover);
  border: 1px solid var(--studio-border);
  border-radius: 12px;
}

.meta-screen-title {
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.meta-screen-path {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--studio-text-dim);
}

.stage-device-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  transition: all var(--trans-smooth);
}

/* ==========================================================================
   4. REALISTIC DEVICE FRAMES (MOBILE & TABLET)
   ========================================================================== */

/* --- Mobile Device Frame (iPhone 16 Pro / Android Flagship Standard) --- */
.mobile-device-frame {
  width: 390px;
  height: 844px;
  background: var(--device-bezel);
  border: 4px solid var(--device-bezel-border);
  border-radius: 52px;
  padding: 10px;
  box-shadow: var(--device-shadow);
  position: relative;
  flex-shrink: 0;
  transition: all var(--trans-smooth);
}

.mobile-dynamic-island {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 30px;
  background: #000000;
  border-radius: 20px;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.camera-sensor {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #0B1220;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.status-indicator-led {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 6px #10B981;
}

/* --- Tablet Device Frame (iPad Air Standard: 820px × 680px landscape / 820px × 1180px portrait) --- */
.tablet-device-frame {
  width: 820px;
  height: 680px;
  background: var(--device-bezel);
  border: 5px solid var(--device-bezel-border);
  border-radius: 40px;
  padding: 14px;
  box-shadow: var(--device-shadow);
  position: relative;
  flex-shrink: 0;
  transition: all var(--trans-smooth);
}

/* Screen Viewport Inside Devices */
.app-screen-viewport {
  width: 100%;
  height: 100%;
  background: var(--app-bg);
  border-radius: 42px;
  overflow-y: auto;
  overflow-x: hidden;
  color: var(--app-text);
  display: flex;
  flex-direction: column;
  position: relative;
  font-size: 13.5px;
}

.tablet-device-frame .app-screen-viewport {
  border-radius: 28px;
}

.app-screen-viewport::-webkit-scrollbar {
  width: 4px;
}
.app-screen-viewport::-webkit-scrollbar-thumb {
  background: var(--app-border);
  border-radius: 4px;
}

/* Status Bar Inside Screen */
.mobile-status-bar {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--status-bar-text);
  z-index: 400;
  flex-shrink: 0;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Bottom Home Indicator Pill */
.mobile-home-indicator {
  position: sticky;
  bottom: 6px;
  left: 0;
  right: 0;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 400;
  pointer-events: none;
}

.home-bar-pill {
  width: 135px;
  height: 4px;
  background: var(--app-text);
  opacity: 0.40;
  border-radius: 4px;
}

/* ==========================================================================
   5. REAL APP SCREEN REPLICAS & COMPONENT STYLING
   ========================================================================== */

/* ── Screen 1: Splash Screen ────────────────────────────── */
.nc-splash-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 700px;
  padding: 32px;
  text-align: center;
  background: var(--app-bg-radial);
  position: relative;
  overflow: hidden;
}

.splash-radial-aura {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 163, 217, 0.28) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  animation: auraPulse 4s infinite ease-in-out;
}

@keyframes auraPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
}

.splash-logo-rotating-ring {
  width: 136px;
  height: 136px;
  border-radius: 50%;
  border: 2px dashed rgba(15, 163, 217, 0.35);
  display: grid;
  place-items: center;
  position: relative;
  margin-bottom: 24px;
  box-shadow: 0 0 30px rgba(15, 163, 217, 0.25);
}

.splash-logo-card {
  width: 106px;
  height: 106px;
  border-radius: 26px;
  background: #0B1528;
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 14px 40px rgba(15, 163, 217, 0.45), 0 0 25px rgba(15, 163, 217, 0.25);
  display: grid;
  place-items: center;
  overflow: hidden;
  transform: none !important; /* Stays steady, level and upright */
}

.splash-logo-card img {
  width: 82px;
  height: 82px;
  object-fit: contain;
  transform: none !important;
}

.splash-wordmark {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.splash-underline-gradient {
  width: 90px;
  height: 3.5px;
  border-radius: 4px;
  background: linear-gradient(90deg, #0FA3D9, #4FD8A0, #FFA24D);
  margin-bottom: 14px;
}

.splash-tagline {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--app-text-muted);
  max-width: 260px;
  line-height: 1.4;
  margin-bottom: 40px;
}

.splash-loader-block {
  width: 200px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.splash-progress-track {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  overflow: hidden;
}

.splash-progress-fill {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
  border-radius: 10px;
  animation: progressFillAnim 2.5s ease-out forwards;
}

@keyframes progressFillAnim {
  0% { width: 0%; }
  35% { width: 45%; }
  75% { width: 85%; }
  100% { width: 100%; }
}

.splash-status-text {
  font-size: 11px;
  color: var(--app-text-dim);
  font-family: var(--font-mono);
}

.splash-version-text {
  position: absolute;
  bottom: 24px;
  font-size: 11px;
  color: var(--app-text-dim);
}

/* ── Screen 2: Initial Screen (Get Started) ──────────────── */
.nc-getstarted-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 16px 20px 24px;
  background: var(--app-bg-radial);
  justify-content: space-between;
}

.getstarted-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
}

.nc-brand-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(15, 163, 217, 0.15);
  border: 1px solid rgba(15, 163, 217, 0.35);
  color: #38BDF8;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.getstarted-header-text {
  text-align: center;
  margin: 8px 0 4px;
}

.getstarted-title {
  font-size: 21px;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 3px;
  letter-spacing: -0.02em;
}

.getstarted-subtitle {
  font-size: 11px;
  color: var(--app-text-muted);
  line-height: 1.35;
  margin: 0 auto;
  max-width: 270px;
}

.lang-dropdown-pill {
  padding: 5px 10px;
  border-radius: 20px;
  background: var(--app-pill-bg);
  border: 1px solid var(--app-border);
  font-size: 11.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.getstarted-hero-image-wrap {
  width: 100%;
  max-width: 285px;
  height: 130px;
  margin: 8px auto;
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
  background: rgba(15, 163, 217, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.getstarted-hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.getstarted-action-box {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.feature-pills-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.feat-pill {
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(15, 29, 56, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 10.5px;
  font-weight: 600;
  color: #F1F5F9;
  display: flex;
  align-items: center;
  gap: 5px;
}

.nc-simulator-section .getstarted-action-box .nc-btn-primary,
.nc-simulator-container .nc-btn-primary,
.nc-phone-screen .nc-btn-primary {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-hover));
  color: #FFFFFF;
  border: none;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 24px var(--brand-primary-glow);
  transition: all var(--trans-fast);
}

.nc-simulator-section .getstarted-action-box .nc-btn-primary:hover,
.nc-simulator-container .nc-btn-primary:hover,
.nc-phone-screen .nc-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px var(--brand-primary-glow);
}

.getstarted-legal-links {
  text-align: center;
  font-size: 11px;
  color: var(--app-text-dim);
  margin-top: 12px;
}

.getstarted-legal-links a {
  color: var(--brand-primary);
  text-decoration: none;
  font-weight: 600;
}

/* ── Screen 3 & 4: Login & Verify OTP ───────────────────── */
.nc-auth-container {
  padding: 16px 20px 24px;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.auth-header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.auth-back-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--app-pill-bg);
  border: 1px solid var(--app-border);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--app-text);
}

.auth-step-pill {
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(15, 163, 217, 0.15);
  color: var(--brand-primary);
}

.auth-logo-center {
  text-align: center;
  margin-bottom: 20px;
}

.auth-logo-center img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 12px;
}

.auth-logo-center h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}

.auth-logo-center p {
  font-size: 12.5px;
  color: var(--app-text-muted);
}

.nc-auth-container .nc-input-group,
.nc-simulator-section .nc-input-group {
  margin-bottom: 16px;
}

.nc-auth-container .nc-input-label,
.nc-simulator-section .nc-input-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--app-text);
  margin-bottom: 6px;
  display: block;
}

.nc-input-box {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  color: var(--app-text);
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
  transition: all var(--trans-fast);
}

.nc-input-box:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px var(--brand-primary-glow);
}

/* OTP 4-Box Pin Grid */
.otp-boxes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 20px 0;
}

.otp-digit-box {
  height: 64px;
  border-radius: 14px;
  background: var(--app-surface);
  border: 2px solid var(--app-border);
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 800;
  color: var(--app-text);
  transition: all var(--trans-fast);
}

.otp-digit-box.filled {
  border-color: var(--brand-primary);
  background: rgba(15, 163, 217, 0.08);
}

.otp-digit-box.active {
  border-color: var(--brand-secondary);
  box-shadow: 0 0 16px var(--brand-secondary-glow);
}

.auth-security-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 11px;
  color: var(--app-text-dim);
  margin-top: 14px;
}

/* ── Screen 6: Dashboard Home ───────────────────────────── */
.nc-dashboard-container {
  padding: 12px 16px 70px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dash-profile-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  box-shadow: var(--app-card-shadow);
}

.dash-user-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dash-avatar-wrapper {
  position: relative;
  width: 46px;
  height: 46px;
}

.dash-avatar-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0FA3D9, #134E3A);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 16px;
  color: #FFFFFF;
  border: 2px solid var(--brand-primary);
}

.avatar-completion-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand-secondary);
  color: #020617;
  font-size: 10px;
  font-weight: 900;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--app-surface);
}

.dash-actions-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dash-action-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--app-pill-bg);
  border: 1px solid var(--app-border);
  display: grid;
  place-items: center;
  cursor: pointer;
  position: relative;
  color: var(--app-text);
  transition: all var(--trans-fast);
}

[data-theme="dark"] .dash-action-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .dash-action-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

[data-theme="dark"] .dash-action-btn svg {
  stroke: #FFFFFF;
}

.dash-badge-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-danger);
  border: 1.5px solid var(--app-surface);
  box-shadow: 0 0 6px var(--brand-danger);
}

/* Vedic Panchangam Banner */
.dash-panchangam-card {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(15, 163, 217, 0.20) 0%, rgba(79, 216, 160, 0.15) 100%);
  border: 1px solid rgba(15, 163, 217, 0.35);
  position: relative;
  overflow: hidden;
}

.panchangam-fest-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 12px;
  background: var(--brand-accent);
  color: #020617;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.panchangam-fest-title {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 4px;
}

.panchangam-details-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 11.5px;
  color: var(--app-text-muted);
}

/* 9 Modules Grid */
.dash-modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

/* Individual Module Color Mapping */
.mod-family { --mod-accent: #0FA3D9; --mod-rgb: 15, 163, 217; }
.mod-relatives { --mod-accent: #10B981; --mod-rgb: 16, 185, 129; }
.mod-friends { --mod-accent: #F59E0B; --mod-rgb: 245, 158, 11; }
.mod-matrimony { --mod-accent: #EC4899; --mod-rgb: 236, 72, 153; }
.mod-events { --mod-accent: #8B5CF6; --mod-rgb: 139, 92, 246; }
.mod-classifieds { --mod-accent: #F97316; --mod-rgb: 249, 115, 22; }
.mod-messages { --mod-accent: #06B6D4; --mod-rgb: 6, 182, 212; }
.mod-opentowork { --mod-accent: #3B82F6; --mod-rgb: 59, 130, 246; }
.mod-invitations { --mod-accent: #A855F7; --mod-rgb: 168, 85, 247; }

.module-nav-card {
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: 16px;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all var(--trans-fast);
  position: relative;
  box-shadow: var(--app-card-shadow);
}

.module-nav-card:hover {
  transform: translateY(-3px);
  border-color: var(--mod-accent, var(--brand-primary));
  background: var(--app-surface-hover);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45), 0 0 18px rgba(var(--mod-rgb, 15, 163, 217), 0.25);
}

[data-theme="dark"] .module-nav-card {
  background: #0E1A2E;
  border-color: rgba(255, 255, 255, 0.10);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.40);
}

[data-theme="dark"] .module-nav-card:hover {
  background: #142542;
  border-color: var(--mod-accent, var(--brand-primary));
}

.module-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  position: relative;
  transition: all var(--trans-fast);
  background: linear-gradient(135deg, rgba(var(--mod-rgb, 15, 163, 217), 0.20), rgba(var(--mod-rgb, 15, 163, 217), 0.08));
  border: 1.5px solid rgba(var(--mod-rgb, 15, 163, 217), 0.35);
  box-shadow: 0 4px 12px rgba(var(--mod-rgb, 15, 163, 217), 0.15);
}

.module-card-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  transition: transform var(--trans-fast);
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.25));
}

/* Dark Theme Icon Enhancement (Matches React Native tintColor: isDark ? '#FFFFFF' : cardColor) */
[data-theme="dark"] .module-card-icon {
  background: linear-gradient(135deg, rgba(var(--mod-rgb, 15, 163, 217), 0.35), rgba(var(--mod-rgb, 15, 163, 217), 0.15));
  border: 1.5px solid rgba(var(--mod-rgb, 15, 163, 217), 0.60);
  box-shadow: 0 4px 16px rgba(var(--mod-rgb, 15, 163, 217), 0.32), inset 0 1px 1px rgba(255, 255, 255, 0.30);
}

[data-theme="dark"] .module-card-icon img {
  /* Brightness(0) turns pixels black, invert(1) turns them pure glowing white! */
  filter: brightness(0) invert(1) drop-shadow(0 2px 6px rgba(255, 255, 255, 0.45));
}

.module-nav-card:hover .module-card-icon {
  transform: scale(1.08);
}

[data-theme="dark"] .module-nav-card:hover .module-card-icon {
  border-color: rgba(var(--mod-rgb, 15, 163, 217), 0.90);
  box-shadow: 0 6px 20px rgba(var(--mod-rgb, 15, 163, 217), 0.45), inset 0 1px 2px rgba(255, 255, 255, 0.40);
}

.module-card-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--app-text);
  line-height: 1.2;
}

[data-theme="dark"] .module-card-title {
  color: #FFFFFF;
}

.module-card-count {
  font-size: 10.5px;
  color: var(--app-text-dim);
  margin-top: 3px;
  font-weight: 500;
}

[data-theme="dark"] .module-card-count {
  color: #94A3B8;
}

/* Bottom Nav Bar (5 Tabs) */
.app-bottom-tabbar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 62px;
  background: var(--app-surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--app-border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px;
  z-index: 300;
}

[data-theme="dark"] .app-bottom-tabbar {
  background: rgba(11, 21, 40, 0.94);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -6px 25px rgba(0, 0, 0, 0.50);
}

.bottom-tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--app-text-dim);
  cursor: pointer;
  transition: all var(--trans-fast);
  padding: 6px 12px;
  border-radius: 10px;
}

[data-theme="dark"] .bottom-tab-item {
  color: #94A3B8;
}

[data-theme="dark"] .bottom-tab-item:hover {
  color: #F1F5F9;
}

.bottom-tab-item.active {
  color: var(--brand-primary);
}

[data-theme="dark"] .bottom-tab-item.active {
  color: #38BDF8;
}

[data-theme="dark"] .bottom-tab-item.active svg {
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.70));
}

.bottom-tab-item span {
  font-size: 10.5px;
  font-weight: 700;
  color: inherit;
}

/* ── Screen 9: Multi-Gen Family Tree ─────────────────────── */
.nc-tree-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding-bottom: 60px;
}

.tree-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--app-surface);
  border-bottom: 1px solid var(--app-border);
  flex-shrink: 0;
}

.tree-title-block h3 {
  font-size: 15px;
  font-weight: 800;
}

.tree-title-block span {
  font-size: 11px;
  color: var(--brand-primary);
  font-weight: 700;
}

.tree-canvas-scroll {
  flex: 1;
  overflow: auto;
  padding: 24px 16px;
  position: relative;
}

.tree-generation-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 28px;
  position: relative;
}

.tree-node-card {
  width: 140px;
  padding: 10px;
  border-radius: 14px;
  background: var(--app-surface);
  border: 1.5px solid var(--app-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--app-card-shadow);
  position: relative;
}

.tree-node-card.self-node {
  border-color: var(--brand-gold);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(15, 163, 217, 0.08));
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.35);
}

.tree-node-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--app-surface-elevated);
  border: 2px solid var(--app-border);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 6px;
}

.tree-node-role {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brand-primary);
}

.tree-node-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--app-text);
  line-height: 1.2;
  margin: 2px 0;
}

.tree-node-years {
  font-size: 10px;
  color: var(--app-text-dim);
}

/* ── Screen 7: Posts Feed ────────────────────────────────── */
.nc-feed-container {
  padding: 12px 14px 70px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feed-filter-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.feed-tab-pill {
  padding: 6px 12px;
  border-radius: 16px;
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  font-size: 12px;
  font-weight: 600;
  color: var(--app-text-muted);
  cursor: pointer;
  white-space: nowrap;
}

.feed-tab-pill.active {
  background: var(--brand-primary);
  color: #FFFFFF;
  border-color: var(--brand-primary);
}

.post-card-box {
  border-radius: 16px;
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--app-card-shadow);
}

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

.post-author-block {
  display: flex;
  align-items: center;
  gap: 10px;
}

.post-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #1E293B;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
  color: white;
}

.post-author-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--app-text);
}

.post-kin-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 8px;
  background: rgba(15, 163, 217, 0.15);
  color: var(--brand-primary);
  margin-left: 6px;
}

.post-meta-sub {
  font-size: 11px;
  color: var(--app-text-dim);
}

.post-content-text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--app-text);
}

.post-actions-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid var(--app-border);
  font-size: 12px;
  color: var(--app-text-muted);
}

.post-action-item {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

/* ── Screen 14: Community Matrimony ──────────────────────── */
.nc-matrimony-container {
  padding: 12px 14px 70px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.matri-profile-card {
  border-radius: 18px;
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--app-card-shadow);
}

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

.matri-photo-box {
  width: 76px;
  height: 90px;
  border-radius: 12px;
  background: var(--app-surface-elevated);
  display: grid;
  place-items: center;
  font-size: 32px;
  flex-shrink: 0;
  border: 1px solid var(--app-border);
}

.matri-info-box h4 {
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
}

.matri-verified-badge {
  color: var(--brand-secondary);
}

.matri-sub-details {
  font-size: 11.5px;
  color: var(--app-text-muted);
  margin-top: 2px;
}

.matri-vedic-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}

.vedic-chip {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 162, 77, 0.12);
  color: var(--brand-accent);
  border: 1px solid rgba(255, 162, 77, 0.25);
}

/* ── Screen 16: Profile & Heritage Hub (7 Tabs) ──────────── */
.nc-profile-container {
  padding: 14px 16px 70px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.profile-top-hero {
  text-align: center;
  padding: 14px 0 6px;
}

.profile-big-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0FA3D9, #134E3A);
  border: 3px solid var(--brand-primary);
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
  font-size: 30px;
  font-weight: 800;
  color: #FFFFFF;
  position: relative;
}

.profile-tab-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.profile-tab-btn {
  padding: 6px 12px;
  border-radius: 12px;
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--app-text-muted);
  cursor: pointer;
  white-space: nowrap;
}

.profile-tab-btn.active {
  background: var(--brand-primary);
  color: #FFFFFF;
  border-color: var(--brand-primary);
}

.profile-data-card {
  border-radius: 14px;
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.data-row-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--app-border);
  font-size: 12.5px;
}

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

.data-row-label {
  color: var(--app-text-dim);
}

.data-row-value {
  font-weight: 700;
  color: var(--app-text);
}

/* ==========================================================================
   6. INTERACTIVE MODALS & POPUPS
   ========================================================================== */
.studio-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.70);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--trans-fast);
}

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

.studio-modal-card {
  width: 100%;
  max-width: 360px;
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  transform: translateY(20px) scale(0.95);
  transition: all var(--trans-smooth);
}

.studio-modal-backdrop.open .studio-modal-card {
  transform: translateY(0) scale(1);
}

.modal-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.modal-header-row h4 {
  font-size: 17px;
  font-weight: 800;
}

.modal-close-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--app-pill-bg);
  border: none;
  color: var(--app-text-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
}

/* ==========================================================================
   7. TABLET VIEWPORT RESPONSIVE LAYOUT (iPad Air)
   ========================================================================== */
.tablet-device-frame .nc-dashboard-container {
  padding: 20px 28px 80px;
}

.tablet-device-frame .dash-modules-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.tablet-device-frame .module-nav-card {
  padding: 20px 14px;
}

.tablet-device-frame .module-card-icon {
  width: 54px;
  height: 54px;
}

.tablet-device-frame .module-card-icon img {
  width: 40px;
  height: 40px;
}

.tablet-device-frame .module-card-title {
  font-size: 14px;
}

.tablet-device-frame .tree-generation-row {
  gap: 32px;
}

.tablet-device-frame .tree-node-card {
  width: 170px;
  padding: 14px;
}

.tablet-device-frame .tree-node-name {
  font-size: 13.5px;
}

/* ==========================================================================
   8. EMBEDDED SHOWCASE RESPONSIVENESS (MOBILE-FIRST PRIMACY)
   ========================================================================== */
.studio-workspace {
  height: 860px;
}

@media (max-width: 1024px) {
  .studio-workspace {
    height: 820px;
  }
  .stage-device-wrapper {
    gap: 20px;
  }
}

@media (max-width: 860px) {
  .studio-workspace {
    flex-direction: column;
    height: auto;
  }
  .studio-sidebar {
    width: 100%;
    max-height: 280px;
    border-right: none;
    border-bottom: 1px solid var(--studio-border);
  }
  .studio-stage {
    padding: 16px 8px;
    min-height: 750px;
  }
  .mobile-device-frame {
    width: 100%;
    max-width: 390px;
    height: 720px;
    padding: 8px;
    border-radius: 40px;
  }
  .tablet-device-frame {
    width: 100%;
    max-width: 100%;
    height: 600px;
  }
  .studio-header {
    padding: 10px 14px;
  }
  .stage-device-wrapper {
    flex-direction: column;
    width: 100%;
  }
}

