/* ==============================================================================
  TURNOSPOT DESIGN SYSTEM & MODERN CSS
   Aesthetics: Deep Indigo/Slate Dark Mode, Emerald WA Glow, Glassmorphism
   ============================================================================== */

:root {
  /* Color Tokens */
  --bg-primary: #0a0f1d;
  --bg-secondary: #111827;
  --bg-surface: rgba(17, 24, 39, 0.75);
  --bg-surface-elevated: rgba(30, 41, 59, 0.8);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-hover: rgba(255, 255, 255, 0.16);
  
  /* Brand Accents */
  --emerald-500: #10b981;
  --emerald-400: #34d399;
  --emerald-glow: rgba(16, 185, 129, 0.25);
  --indigo-500: #6366f1;
  --indigo-600: #4f46e5;
  --indigo-glow: rgba(99, 102, 241, 0.25);
  --amber-500: #f59e0b;
  --rose-500: #f43f5e;
  --blue-500: #3b82f6;

  /* Typography */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Shadows & Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 30px rgba(16, 185, 129, 0.15);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.12) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(16, 185, 129, 0.1) 0px, transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Glass Panels */
.glass-panel {
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: border-color var(--transition-normal);
}

.glass-panel:hover {
  border-color: var(--border-glass-hover);
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-muted);
}

.text-muted { color: var(--text-muted) !important; }
.text-center { text-align: center; }
.mono { font-family: var(--font-mono); }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1.25rem; }
.mb-3 { margin-bottom: 0.75rem; }

/* Header Navigation */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 15, 29, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-glass);
  padding: 0.75rem 2rem;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #10b981, #059669);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  box-shadow: 0 0 15px var(--emerald-glow);
  overflow: hidden;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
  background: #ffffff;
  padding: 2px;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-badge {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
  margin-left: 0.5rem;
  text-transform: uppercase;
  font-weight: 600;
}

.header-user {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-info {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.user-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-main);
}

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

/* Main Layout */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}

.view-section {
  display: none;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  animation: fadeIn 0.3s ease-out;
}

.view-section.active {
  display: block;
}

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

/* Public Landing */
html { scroll-behavior: smooth; }

body.landing-mode {
  background-color: #070b14;
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(16, 185, 129, 0.15), transparent 70%),
    radial-gradient(ellipse 60% 40% at 100% 40%, rgba(99, 102, 241, 0.12), transparent 60%),
    radial-gradient(ellipse 50% 30% at 0% 80%, rgba(16, 185, 129, 0.08), transparent 60%);
  background-attachment: fixed;
  color: #f8fafc;
  overflow-x: hidden;
}

body.landing-mode .main-content { padding: 0; }

.landing-container {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

/* 1. Header & Floating Navigation */
.landing-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 11, 20, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.3s ease;
}

.landing-nav-wrap {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.landing-brand .brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #10b981, #059669);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.2rem;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.landing-brand:hover .brand-logo {
  transform: scale(1.05);
  box-shadow: 0 0 28px rgba(16, 185, 129, 0.6);
}

.landing-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.landing-nav a {
  color: #94a3b8;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s ease;
  position: relative;
  padding: 0.3rem 0;
}

.landing-nav a:hover {
  color: #fff;
}

.landing-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #10b981;
  transition: width 0.2s ease;
  border-radius: 2px;
}

.landing-nav a:hover::after {
  width: 100%;
}

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

.landing-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  cursor: pointer;
  place-items: center;
  font-size: 1.1rem;
}

/* Buttons */
.btn-emerald {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  font-weight: 600;
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-emerald:hover {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.45);
  color: #fff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-weight: 500;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

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

.btn-large {
  padding: 0.95rem 1.6rem;
  font-size: 0.98rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

/* 2. Hero Section */
.landing-hero {
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(480px, 1.15fr);
  align-items: center;
  gap: 3.5rem;
  padding: 60px 0 90px;
  position: relative;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.9rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 9999px;
  color: #34d399;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}

.hero-copy h1 {
  font-size: clamp(2.6rem, 4.8vw, 4.2rem);
  line-height: 1.05;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 1.4rem;
}

.hero-copy h1 .highlight-text {
  background: linear-gradient(135deg, #34d399 0%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.12rem;
  line-height: 1.7;
  color: #94a3b8;
  max-width: 580px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.2rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 500;
}

.hero-trust span {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-trust i {
  color: #10b981;
}

/* Product Preview Interactive Mock */
.product-preview {
  position: relative;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 1rem;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.6), 0 0 40px rgba(16, 185, 129, 0.12);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.preview-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.6rem 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.preview-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.88rem;
  color: #fff;
}

.preview-brand i {
  color: #10b981;
  font-size: 1.1rem;
}

.preview-live {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 600;
}

.preview-live span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.preview-grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  background: #090e18;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  overflow: hidden;
  margin-top: 0.8rem;
}

.chat-preview {
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background: #0d1322;
}

.chat-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.75rem;
  color: #fff;
}

.chat-heading strong {
  display: block;
  font-size: 0.82rem;
  color: #f1f5f9;
}

.chat-heading small {
  display: block;
  font-size: 0.68rem;
  color: #10b981;
}

.chat-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 320px;
  background: radial-gradient(circle at 100% 0%, rgba(16, 185, 129, 0.04) 0%, transparent 60%);
}

.chat-bubble {
  max-width: 85%;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  font-size: 0.76rem;
  line-height: 1.45;
  animation: fadeInMsg 0.4s ease;
}

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

.chat-bubble.incoming {
  background: #1e293b;
  color: #e2e8f0;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}

.chat-bubble.outgoing {
  background: rgba(16, 185, 129, 0.18);
  color: #d1fae5;
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}

.time-options {
  display: flex;
  gap: 0.4rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.time-options span {
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.time-options span.selected {
  background: #10b981;
  color: #042f2e;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

.chat-mp-box {
  background: rgba(2, 132, 199, 0.12);
  border: 1px solid rgba(2, 132, 199, 0.3);
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  font-size: 0.72rem;
  color: #bae6fd;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  align-self: flex-end;
  max-width: 90%;
}

.chat-mp-box i {
  color: #38bdf8;
  font-size: 1.1rem;
}

.chat-confirm {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #d1fae5;
}

.chat-confirm i {
  color: #34d399;
  font-size: 1.2rem;
}

.chat-confirm strong {
  display: block;
  font-size: 0.78rem;
  color: #fff;
}

.chat-confirm small {
  display: block;
  font-size: 0.67rem;
  color: #a7f3d0;
}

/* Agenda Preview (Right Column) */
.agenda-preview {
  padding: 0.9rem;
  background: #090e18;
  display: flex;
  flex-direction: column;
}

.agenda-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.agenda-heading small {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #64748b;
  text-transform: uppercase;
}

.agenda-heading strong {
  display: block;
  font-size: 0.95rem;
  color: #fff;
}

.agenda-stat {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.agenda-stat span {
  font-size: 0.72rem;
  color: #94a3b8;
}

.agenda-stat strong {
  font-size: 1.1rem;
  color: #34d399;
  font-weight: 800;
}

.agenda-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.agenda-list > div {
  padding: 0.6rem 0.7rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid #334155;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
}

.agenda-list > div.active {
  border-left-color: #10b981;
  background: rgba(16, 185, 129, 0.08);
}

.agenda-list time {
  font-weight: 700;
  color: #94a3b8;
}

.agenda-list strong {
  display: block;
  color: #f1f5f9;
}

.agenda-list small {
  display: block;
  color: #64748b;
  font-size: 0.65rem;
}

.agenda-list i {
  color: #10b981;
}

.preview-toast {
  margin-top: 0.8rem;
  padding: 0.7rem 0.9rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.preview-toast i {
  color: #34d399;
  font-size: 1.1rem;
}

.preview-toast strong {
  display: block;
  font-size: 0.74rem;
  color: #fff;
}

.preview-toast small {
  display: block;
  font-size: 0.65rem;
  color: #94a3b8;
}

/* 3. Social Proof Stats Bar */
.landing-proof {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(11, 17, 32, 0.85);
  backdrop-filter: blur(16px);
  padding: 2.2rem 0;
}

.proof-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stat-card {
  text-align: center;
  padding: 0.8rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(16, 185, 129, 0.25);
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #ffffff 40%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.45rem;
}

.stat-label {
  font-size: 0.82rem;
  color: #94a3b8;
  font-weight: 500;
  line-height: 1.4;
}

/* 4. Section Headings */
.landing-block {
  padding: 100px 0;
  position: relative;
}

.landing-band {
  padding: 100px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(11, 17, 32, 0.6);
}

.landing-heading {
  max-width: 720px;
  margin: 0 auto 3.8rem;
  text-align: center;
}

.landing-heading.align-left {
  margin: 0;
  text-align: left;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #34d399;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.landing-heading h2 {
  font-size: clamp(2.1rem, 3.8vw, 3rem);
  line-height: 1.12;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

.landing-heading p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #94a3b8;
  max-width: 620px;
  margin: 0 auto;
}

.align-left p {
  margin: 0;
}

/* 5. Pain vs Gain Comparison Section */
.comparison-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem;
  margin-top: 2.5rem;
}

.comparison-card {
  padding: 2.2rem;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(16px);
  position: relative;
}

.comparison-card.pain {
  border: 1px solid rgba(239, 68, 68, 0.25);
  background: linear-gradient(160deg, rgba(239, 68, 68, 0.06), rgba(15, 23, 42, 0.8));
}

.comparison-card.gain {
  border: 1px solid rgba(16, 185, 129, 0.35);
  background: linear-gradient(160deg, rgba(16, 185, 129, 0.09), rgba(15, 23, 42, 0.8));
  box-shadow: 0 0 35px rgba(16, 185, 129, 0.1);
}

.comparison-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.comparison-header i {
  font-size: 1.4rem;
}

.comparison-card.pain .comparison-header i { color: #ef4444; }
.comparison-card.gain .comparison-header i { color: #10b981; }

.comparison-header h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
}

.comparison-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comparison-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #cbd5e1;
}

.comparison-card.pain .comparison-list li i {
  color: #ef4444;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.comparison-card.gain .comparison-list li i {
  color: #10b981;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

/* 6. Bento Grid Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-item {
  padding: 2rem;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.feature-item:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.feature-highlight {
  grid-column: span 2;
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.12), rgba(15, 23, 42, 0.85));
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: #34d399;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  margin-bottom: 1.4rem;
}

.feature-icon.icon-indigo {
  background: rgba(99, 102, 241, 0.14);
  border-color: rgba(99, 102, 241, 0.28);
  color: #818cf8;
}

.feature-icon.icon-blue {
  background: rgba(2, 132, 199, 0.14);
  border-color: rgba(2, 132, 199, 0.28);
  color: #38bdf8;
}

.feature-icon.icon-amber {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.28);
  color: #fbbf24;
}

.feature-icon.icon-purple {
  background: rgba(168, 85, 247, 0.14);
  border-color: rgba(168, 85, 247, 0.28);
  color: #c084fc;
}

.feature-item h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.6rem;
}

.feature-item p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #94a3b8;
}

/* 7. Interactive ROI Calculator */
.calculator-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 2.8rem;
  backdrop-filter: blur(20px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(16, 185, 129, 0.08);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.calc-controls {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.calc-control-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.calc-control-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 0.95rem;
  color: #f1f5f9;
}

.calc-control-label span.value-badge {
  color: #34d399;
  font-weight: 700;
  font-size: 1.1rem;
  font-family: var(--font-display);
}

.calc-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  outline: none;
  cursor: pointer;
}

.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.6);
  cursor: pointer;
  border: 2px solid #fff;
  transition: transform 0.15s ease;
}

.calc-range::-webkit-slider-thumb:hover {
  transform: scale(1.18);
}

.calc-results {
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.12), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 18px;
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  box-shadow: 0 0 35px rgba(16, 185, 129, 0.12);
}

.calc-result-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1rem;
}

.calc-result-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.calc-result-item small {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  font-weight: 700;
}

.calc-result-item strong {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
}

.calc-result-item strong.highlight {
  color: #34d399;
}

/* 8. How It Works Timeline */
.how-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: 5rem;
}

.steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.steps-list li {
  padding: 1.6rem;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 1.2rem;
  align-items: center;
  transition: all 0.25s ease;
}

.steps-list li:hover {
  border-color: rgba(16, 185, 129, 0.3);
  transform: translateX(6px);
  background: rgba(15, 23, 42, 0.85);
}

.steps-list li span.step-num {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  font-weight: 800;
  font-size: 1.1rem;
  font-family: var(--font-mono);
  display: grid;
  place-items: center;
}

.steps-list h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.35rem;
}

.steps-list p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #94a3b8;
}

/* 9. Multi-Rubro Cards */
.industry-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.industry-list span {
  padding: 1.3rem 1.4rem;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #f1f5f9;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s ease;
}

.industry-list span:hover {
  transform: translateY(-3px);
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.08);
  color: #fff;
}

.industry-list i {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}

/* 10. Pricing Plans (4 Columns Grid) */
.plans-band {
  background: radial-gradient(ellipse 90% 50% at 50% 50%, rgba(16, 185, 129, 0.06), transparent 70%), #070b14;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
  align-items: stretch;
}

.plan-item {
  position: relative;
  padding: 2.2rem 1.7rem;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(16px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.plan-item:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

.plan-featured {
  border: 2px solid #10b981;
  background: linear-gradient(165deg, rgba(16, 185, 129, 0.12), rgba(15, 23, 42, 0.9));
  box-shadow: 0 0 40px rgba(16, 185, 129, 0.2);
  transform: scale(1.02);
}

.plan-featured:hover {
  transform: scale(1.02) translateY(-5px);
  box-shadow: 0 0 50px rgba(16, 185, 129, 0.35);
}

.plan-popular {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  background: #10b981;
  color: #022c22;
  font-size: 0.68rem;
  font-weight: 800;
  border-radius: 9999px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.plan-item .badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.72rem;
  margin-bottom: 0.8rem;
  align-self: flex-start;
}

.plan-item h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.45rem;
}

.plan-item > p {
  font-size: 0.84rem;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 1.2rem;
  min-height: 40px;
}

.plan-price {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.4rem;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.plan-price small {
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 600;
}

.plan-item ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.plan-item li {
  font-size: 0.85rem;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.plan-item li i {
  color: #34d399;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.btn-block {
  width: 100%;
  text-align: center;
}

/* 11. FAQ Accordion */
.faq-accordion {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.faq-item {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.25s ease;
}

.faq-item.active {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(15, 23, 42, 0.9);
}

.faq-question {
  width: 100%;
  padding: 1.3rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: transparent;
  border: none;
  color: #fff;
  font-weight: 600;
  font-size: 1.02rem;
  text-align: left;
  cursor: pointer;
}

.faq-question i {
  color: #10b981;
  transition: transform 0.25s ease;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 1.6rem;
}

.faq-item.active .faq-answer {
  max-height: 250px;
  padding-bottom: 1.4rem;
}

.faq-answer p {
  color: #94a3b8;
  font-size: 0.92rem;
  line-height: 1.65;
}

/* 12. Final Call to Action */
.landing-cta {
  margin: 60px 0 100px;
  padding: 3.5rem;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(99, 102, 241, 0.15)), #0f172a;
  border: 1px solid rgba(16, 185, 129, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 50px rgba(16, 185, 129, 0.15);
}

.landing-cta h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.8rem;
}

.landing-cta p {
  font-size: 1.05rem;
  color: #cbd5e1;
  max-width: 580px;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-width: 250px;
}

/* 13. Footer */
.landing-footer {
  padding: 3.5rem 0 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #060911;
}

.footer-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2.5rem;
}

.footer-layout p {
  font-size: 0.88rem;
  color: #64748b;
  margin-top: 0.5rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  grid-column: 1 / -1;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #64748b;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.7rem;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #34d399;
  font-size: 0.74rem;
  font-weight: 600;
}

.footer-status-pill span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

/* 14. Responsive Breakpoints */
@media (max-width: 1100px) {
  .landing-hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3.5rem;
  }
  .hero-copy h1 { max-width: 780px; margin-left: auto; margin-right: auto; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-trust { justify-content: center; }
  .product-preview { max-width: 680px; margin: 0 auto; }
  
  .plans-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .plan-featured {
    transform: none;
  }
  .plan-featured:hover {
    transform: translateY(-5px);
  }
  
  .calculator-card {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .how-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 900px) {
  .landing-nav {
    position: absolute;
    top: 74px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    padding: 1.5rem;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  }
  .landing-nav.open {
    display: flex;
  }
  .landing-nav a {
    padding: 0.8rem 0;
    width: 100%;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  .landing-menu-btn {
    display: grid;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .feature-highlight {
    grid-column: auto;
  }
  .proof-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .comparison-container {
    grid-template-columns: 1fr;
  }
  .industry-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .landing-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 2.5rem 1.8rem;
  }
  .cta-actions {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .landing-container {
    width: calc(100% - 32px);
  }
  .preview-grid {
    grid-template-columns: 1fr;
  }
  .agenda-preview {
    display: none;
  }
  .proof-stats-grid {
    grid-template-columns: 1fr;
  }
  .plans-grid {
    grid-template-columns: 1fr;
  }
  .industry-list {
    grid-template-columns: 1fr;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .footer-layout {
    grid-template-columns: 1fr;
  }
}

/* Authentication Screen */
.auth-wrapper {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  padding: 2.5rem;
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-logo-badge {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #10b981, #059669);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  box-shadow: 0 0 25px var(--emerald-glow);
  margin-bottom: 1rem;
}

.auth-header h2 {
  font-size: 1.6rem;
  margin-bottom: 0.25rem;
}

.auth-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.25);
  padding: 4px;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  gap: 4px;
}

.auth-tab-btn {
  flex: 1;
  padding: 8px 12px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.auth-tab-btn.active {
  background: var(--bg-surface-elevated);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.auth-demo-hint {
  display: flex;
  gap: 8px;
  margin-top: 1.25rem;
}

.demo-chip {
  flex: 1;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--border-glass-hover);
  font-size: 0.75rem;
  color: var(--text-muted);
  cursor: pointer;
  text-align: center;
  transition: all var(--transition-fast);
}

.demo-chip:hover {
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  border-color: rgba(99, 102, 241, 0.4);
}

/* Forms & Inputs */
.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.form-input {
  width: 100%;
  padding: 0.7rem 1rem;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--indigo-500);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
  background: rgba(15, 23, 42, 0.9);
}

.form-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--text-subtle);
  margin-top: 0.3rem;
}

.form-row {
  display: flex;
  gap: 1rem;
}

.col-6 { flex: 1; }

.form-actions-flex {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, var(--indigo-500), var(--indigo-600));
  color: #fff;
  box-shadow: 0 4px 14px var(--indigo-glow);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn-emerald {
  background: linear-gradient(135deg, var(--emerald-500), #059669);
  color: #fff;
  box-shadow: 0 4px 14px var(--emerald-glow);
}

.btn-emerald:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

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

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-glass-hover);
}

.btn-outline-danger {
  background: transparent;
  border: 1px solid rgba(244, 63, 94, 0.4);
  color: var(--rose-500);
}

.btn-outline-danger:hover {
  background: rgba(244, 63, 94, 0.15);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.78rem;
}

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

/* Dashboard Containers */
.dashboard-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.section-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

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

.page-subtitle {
  font-size: 0.9rem;
}

/* Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.metric-card {
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.metric-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.metric-purple { background: rgba(99, 102, 241, 0.15); color: var(--indigo-500); }
.metric-emerald { background: rgba(16, 185, 129, 0.15); color: var(--emerald-500); }
.metric-amber { background: rgba(245, 158, 11, 0.15); color: var(--amber-500); }
.metric-blue { background: rgba(59, 130, 246, 0.15); color: var(--blue-500); }

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

.metric-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.metric-value {
  font-size: 1.6rem;
  font-weight: 800;
  font-family: var(--font-display);
  color: #fff;
}

/* Content Cards & Tables */
.content-card {
  padding: 1.5rem;
}

.card-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.card-title-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.icon-emerald { background: rgba(16, 185, 129, 0.15); color: var(--emerald-400); }
.icon-blue { background: rgba(59, 130, 246, 0.15); color: var(--blue-500); }

.search-box {
  position: relative;
  min-width: 280px;
}

.search-box i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-subtle);
  font-size: 0.85rem;
}

.search-box input {
  width: 100%;
  padding: 0.55rem 0.75rem 0.55rem 2.2rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 0.85rem;
}

.table-responsive {
  overflow-x: auto;
}

.modern-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.modern-table th {
  padding: 0.85rem 1rem;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border-glass);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}

.modern-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.modern-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-success { background: rgba(16, 185, 129, 0.18); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-warning { background: rgba(245, 158, 11, 0.18); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-danger { background: rgba(244, 63, 94, 0.18); color: #fb7185; border: 1px solid rgba(244, 63, 94, 0.3); }
.badge-info { background: rgba(59, 130, 246, 0.18); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }

/* WhatsApp Status Live Banner */
.wa-status-banner {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-left: 4px solid var(--emerald-500);
  gap: 1.5rem;
}

.wa-status-content {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.wa-status-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: rgba(16, 185, 129, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--emerald-400);
}

.wa-status-badge-line {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.25rem;
}

.status-indicator-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--amber-500);
  box-shadow: 0 0 8px var(--amber-500);
}

.status-indicator-dot.connected {
  background: var(--emerald-500);
  box-shadow: 0 0 10px var(--emerald-500);
}

.status-indicator-dot.disconnected {
  background: var(--rose-500);
  box-shadow: 0 0 8px var(--rose-500);
}

.status-text-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.tenant-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .tenant-grid { grid-template-columns: 1fr; }
  .wa-status-banner { flex-direction: column; align-items: flex-start; }
}

.instance-details-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.instance-detail-item {
  display: flex;
  justify-content: space-between;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.88rem;
}

.detail-label { color: var(--text-muted); }
.detail-value { font-weight: 600; color: #fff; }

.workflow-info-banner {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: #c7d2fe;
}

.workflow-info-banner i {
  color: #818cf8;
  font-size: 1.1rem;
  margin-top: 2px;
}

.integration-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.025);
}

.weekday-selector {
  display: grid;
  grid-template-columns: repeat(7, minmax(42px, 1fr));
  gap: 0.5rem;
}

.weekday-selector label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 42px;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.services-list {
  display: grid;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.service-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--border-glass);
}

.service-row small {
  display: block;
  margin-top: 0.2rem;
  color: var(--text-muted);
}

.service-empty { margin-top: 1rem; }

@media (max-width: 680px) {
  .integration-status-row { align-items: flex-start; flex-direction: column; }
  .weekday-selector { grid-template-columns: repeat(4, minmax(52px, 1fr)); }
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-backdrop.active {
  display: flex;
}

.modal-dialog {
  width: 100%;
  max-width: 650px;
  background: #131b2e;
  border: 1px solid var(--border-glass-hover);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  animation: modalScale 0.25s ease-out;
}

.modal-dialog-sm {
  max-width: 420px;
}

@keyframes modalScale {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover { color: #fff; }

.modal-body {
  padding: 1.5rem;
  max-height: 75vh;
  overflow-y: auto;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-glass);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.15);
}

.justify-center { justify-content: center !important; }

/* QR Modal Specifics */
.qr-modal-body {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.qr-code-container {
  width: 250px;
  height: 250px;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.qr-code-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(16, 185, 129, 0.2);
  border-top-color: var(--emerald-500);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.pulse-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--emerald-500);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  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); }
}

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

.toast {
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  background: #1e293b;
  color: #fff;
  border-left: 4px solid var(--indigo-500);
  box-shadow: var(--shadow-md);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slideInRight 0.25s ease-out;
}

.toast-success { border-left-color: var(--emerald-500); }
.toast-error { border-left-color: var(--rose-500); }

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

/* ==============================================================================
   FASE 4: ANALYTICS KPIS, HEATMAP & REPORT EXPORT STYLES
   ============================================================================== */
.analytics-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.analytics-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.analytics-kpis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.analytics-kpi-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  backdrop-filter: blur(12px);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.analytics-kpi-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-glass-hover);
}

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

.kpi-title {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.kpi-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.kpi-icon.emerald { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.kpi-icon.indigo { background: rgba(99, 102, 241, 0.15); color: #818cf8; }
.kpi-icon.amber { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.kpi-icon.rose { background: rgba(244, 63, 94, 0.15); color: #fb7185; }
.kpi-icon.blue { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }

.kpi-main-value {
  font-size: 1.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.kpi-subtext {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.kpi-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.35rem;
}

.kpi-progress-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.5s ease-in-out;
}

/* Heatmap Grid */
.heatmap-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.heatmap-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.heatmap-pills-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.heatmap-legend {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.legend-scale {
  display: flex;
  gap: 3px;
}

.legend-box {
  width: 14px;
  height: 14px;
  border-radius: 3px;
}

.heatmap-grid-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
}

.heatmap-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  text-align: center;
}

.heatmap-table th, .heatmap-table td {
  padding: 6px 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  min-width: 42px;
}

.heatmap-table th {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-weight: 500;
}

.heatmap-cell {
  border-radius: 4px;
  transition: transform var(--transition-fast), filter var(--transition-fast);
  cursor: default;
  font-weight: 600;
}

.heatmap-cell:hover {
  transform: scale(1.15);
  filter: brightness(1.2);
  z-index: 10;
  position: relative;
}

.cell-lvl-0 { background: rgba(255, 255, 255, 0.02); color: #475569; }
.cell-lvl-1 { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; }
.cell-lvl-2 { background: rgba(16, 185, 129, 0.4); color: #a7f3d0; }
.cell-lvl-3 { background: rgba(16, 185, 129, 0.65); color: #ecfdf5; }
.cell-lvl-4 { background: rgba(16, 185, 129, 0.9); color: #022c22; font-weight: 700; }

/* Quick Date Range Buttons */
.quick-date-btn {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.quick-date-btn:hover, .quick-date-btn.active {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.4);
  color: #c7d2fe;
}

/* ==============================================================================
   PORTAL DE AUTOGESTIÓN (mi-turno.html)
   ============================================================================== */
.self-portal-container {
  max-width: 560px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.self-portal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 2rem;
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

.portal-brand-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.portal-logo-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 0.75rem;
  background: linear-gradient(135deg, var(--emerald-500), var(--indigo-500));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #fff;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.turno-details-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.turno-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.turno-detail-row:last-child {
  border-bottom: none;
}

.policy-banner {
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.policy-banner.allowed {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #6ee7b7;
}

.policy-banner.restricted {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fca5a5;
}

.portal-actions-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ==============================================================================
   TENANT DASHBOARD MODERN TABS & MULTI-SECTION WORKSPACE
   ============================================================================== */

.tenant-tabs-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.tenant-tabs-nav::-webkit-scrollbar {
  display: none;
}

.tenant-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-normal);
  user-select: none;
}

.tenant-tab-btn i {
  font-size: 1rem;
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.tenant-tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

.tenant-tab-btn:hover i {
  transform: translateY(-1px);
}

.tenant-tab-btn.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.16) 0%, rgba(99, 102, 241, 0.16) 100%);
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.15);
}

.tenant-tab-btn.active i {
  color: var(--emerald-400);
}

.tab-badge-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.25);
  color: var(--emerald-400);
  border: 1px solid rgba(16, 185, 129, 0.3);
  line-height: 1;
}

.tab-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  transition: background-color var(--transition-normal), box-shadow var(--transition-normal);
}

.tab-status-dot.connected {
  background-color: var(--emerald-400);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
}

.tab-status-dot.connecting {
  background-color: var(--amber-500);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.8);
}

.tab-status-dot.disconnected {
  background-color: var(--rose-500);
  box-shadow: 0 0 8px rgba(244, 63, 94, 0.6);
}

/* Tab Panes */
.tenant-tab-pane {
  display: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.tenant-tab-pane.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Tab Header / Section Title Bar */
.tab-section-header {
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}

.tab-section-header-title {
  display: flex;
  flex-direction: column;
}

.tab-section-header-title h2 {
  font-size: 1.45rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tab-section-header-title p {
  margin: 4px 0 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* 2-Column Responsive Layout Grid for Tab Panes */
.tenant-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

@media (max-width: 1024px) {
  .tenant-grid-2col {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Modern Guidance / Feature Info Cards */
.feature-info-card {
  padding: 20px;
  background: rgba(15, 23, 42, 0.55);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.feature-step-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.feature-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.3);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ==============================================================================
   SUPERADMIN DASHBOARD & ADVANCED METRICS STYLES
   ============================================================================== */

.filter-pills-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-pill-btn {
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.filter-pill-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.16);
}

.filter-pill-btn.active {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.5);
  color: #a5b4fc;
}

.filter-pill-btn.active.emerald {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.5);
  color: #6ee7b7;
}

.filter-pill-btn.active.warning {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.5);
  color: #fcd34d;
}

.filter-pill-btn.active.danger {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  color: #fca5a5;
}

.service-health-card {
  padding: 18px 20px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: all var(--transition-normal);
}

.service-health-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.service-health-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

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

.financial-hero-card {
  padding: 24px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(99, 102, 241, 0.12) 100%);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
}

/* ===== Categorías de servicios ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.category-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.category-form .form-input {
  flex: 1 1 240px;
}

.category-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 6px 14px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.category-chip:hover {
  background: rgba(16, 185, 129, 0.14);
  border-color: var(--emerald-400);
  transform: translateY(-1px);
}

.category-chip-name {
  font-weight: 600;
  color: var(--text-main);
}

.category-chip-count {
  min-width: 22px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 0.75rem;
  text-align: center;
  color: var(--emerald-400);
  background: rgba(16, 185, 129, 0.15);
}

.category-chip-btn {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease;
}

.category-chip-btn:hover,
.category-chip-btn:focus-visible {
  color: var(--text-main);
  background: var(--bg-glass);
}

.category-chip-btn-danger:hover,
.category-chip-btn-danger:focus-visible {
  color: var(--rose-500);
  background: rgba(244, 63, 94, 0.12);
}

.modern-table tr.service-category-row td {
  padding: 10px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--emerald-400);
  background: rgba(16, 185, 129, 0.07);
  border-bottom: 1px solid rgba(16, 185, 129, 0.2);
}

.modern-table tr.service-category-row td i {
  margin-right: 6px;
}

/* ===== Landing: Servicios y categorías ===== */
.catalog-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

.catalog-points {
  list-style: none;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 0;
}

.catalog-points li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #cbd5e1;
}

.catalog-points li i {
  margin-top: 4px;
  color: #34d399;
}

.catalog-demo {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.catalog-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
}

.catalog-tab {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.7);
  color: #cbd5e1;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.catalog-tab:hover {
  border-color: rgba(16, 185, 129, 0.45);
  color: #fff;
}

.catalog-tab:focus-visible {
  outline: 2px solid #34d399;
  outline-offset: 2px;
}

.catalog-tab.active {
  background: linear-gradient(135deg, #10b981, #059669);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.35);
}

.catalog-window {
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.catalog-window-bar {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.catalog-window-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.catalog-panel {
  padding: 1.2rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-height: 330px;
  animation: catalogFade 0.3s ease;
}

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

.catalog-category {
  margin-top: 0.4rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #34d399;
}

.catalog-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.catalog-item:hover {
  border-color: rgba(16, 185, 129, 0.35);
  transform: translateX(4px);
}

.catalog-item strong {
  display: block;
  color: #fff;
  font-size: 0.95rem;
}

.catalog-item small {
  color: #94a3b8;
  font-size: 0.78rem;
}

.catalog-item > span {
  font-family: var(--font-display);
  font-weight: 700;
  color: #34d399;
}

@media (max-width: 1100px) {
  .catalog-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .catalog-tabs {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .catalog-panel { animation: none; }
  .catalog-item, .catalog-tab, .category-chip { transition: none; }
}

/* ==============================================================================
   FEATURE: RECORDATORIOS AUTOMÁTICOS MULTICANAL (FEATURE TURNITO)
   ============================================================================== */
.reminders-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 1024px) {
  .reminders-layout {
    grid-template-columns: 1fr;
  }
}

.reminders-rules-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.reminder-rule-card {
  padding: 1.25rem 1.5rem;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.reminder-rule-card:hover {
  border-color: rgba(16, 185, 129, 0.25);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.reminder-rule-card.disabled {
  opacity: 0.6;
}

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

.reminder-rule-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reminder-rule-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.icon-cal-blue { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.icon-alarm-amber { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.icon-msg-purple { background: rgba(192, 132, 252, 0.15); color: #c084fc; }
.icon-mail-emerald { background: rgba(52, 211, 153, 0.15); color: #34d399; }

.reminder-rule-info h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #f8fafc;
}

.reminder-rule-info p {
  margin: 2px 0 0;
  font-size: 0.8rem;
  color: #94a3b8;
}

/* Modern iOS-style Switch Toggle */
.modern-switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
}

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

.modern-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: .3s;
  border-radius: 34px;
}

.modern-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.modern-switch input:checked + .modern-slider {
  background-color: #10b981;
}

.modern-switch input:checked + .modern-slider:before {
  transform: translateX(20px);
}

/* Channel Selection Pills */
.reminder-channel-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
}

.channel-pill-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 0.82rem;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
  opacity: 0.65;
}

.channel-pill-checkbox input {
  cursor: pointer;
  accent-color: #10b981;
}

.channel-pill-checkbox:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  opacity: 0.9;
}

.channel-pill-checkbox:has(input:checked),
.channel-pill-checkbox.is-checked {
  opacity: 1;
}

.channel-pill-checkbox.active-wa:has(input:checked),
.channel-pill-checkbox.active-wa.is-checked {
  background: rgba(37, 211, 102, 0.12);
  border-color: rgba(37, 211, 102, 0.4);
  color: #4ade80;
}

.channel-pill-checkbox.active-email:has(input:checked),
.channel-pill-checkbox.active-email.is-checked {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.4);
  color: #38bdf8;
}

.channel-pill-checkbox.is-unchecked {
  opacity: 0.5;
  border-color: rgba(255, 255, 255, 0.08);
  color: #64748b;
  background: rgba(255, 255, 255, 0.02);
}

/* WhatsApp Phone Mockup Styling */
.whatsapp-mockup-wrapper {
  background: #0b141a;
  border: 2px solid #222e35;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  max-width: 380px;
  margin: 0 auto;
}

.whatsapp-mockup-header {
  background: #202c33;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.whatsapp-mockup-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #00a884;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.whatsapp-mockup-chatinfo h5 {
  margin: 0;
  color: #e9edef;
  font-size: 0.9rem;
  font-weight: 600;
}

.whatsapp-mockup-chatinfo small {
  color: #8696a0;
  font-size: 0.72rem;
}

.whatsapp-mockup-body {
  padding: 18px 14px;
  background-color: #0b141a;
  background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 16px 16px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.whatsapp-chat-bubble {
  background: #005c4b;
  color: #e9edef;
  padding: 12px 14px;
  border-radius: 12px 12px 2px 12px;
  max-width: 95%;
  margin-left: auto;
  font-size: 0.85rem;
  line-height: 1.45;
  position: relative;
  box-shadow: 0 1px 2px rgba(0,0,0,0.3);
  word-break: break-word;
  white-space: pre-wrap;
}

.whatsapp-chat-bubble strong {
  color: #fff;
}

.whatsapp-chat-bubble a {
  color: #53bdeb;
  text-decoration: underline;
}

.whatsapp-bubble-time {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 6px;
  font-size: 0.7rem;
  color: #8696a0;
}

.whatsapp-bubble-time .checks {
  color: #53bdeb;
  font-weight: 700;
}

.email-mockup-wrapper {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 16px;
  overflow: hidden;
  padding: 16px;
  font-size: 0.85rem;
  color: #e2e8f0;
}



