/* ==============================================================================
  RESERVAPP 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 .main-content { padding: 0; }
body.landing-mode { background-image: none; }

.landing-view {
  max-width: none;
  overflow: hidden;
  background:
    linear-gradient(rgba(99, 102, 241, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.045) 1px, transparent 1px),
    var(--bg-primary);
  background-size: 56px 56px;
}

.landing-view h1,
.landing-view h2,
.landing-view h3 { letter-spacing: 0; }

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

.landing-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(10, 15, 29, 0.88);
  border-bottom: 1px solid var(--border-glass);
  backdrop-filter: blur(18px);
}

.landing-nav-wrap {
  min-height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}

.landing-brand {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: #fff;
  text-decoration: none;
}

.landing-brand .brand-logo { width: 38px; height: 38px; }
.landing-nav { display: flex; align-items: center; gap: 1.8rem; }
.landing-nav a,
.footer-links a,
.footer-links button {
  color: var(--text-muted);
  text-decoration: none;
  font: 600 0.84rem var(--font-sans);
  transition: color var(--transition-fast);
}
.landing-nav a:hover,
.footer-links a:hover,
.footer-links button:hover { color: #fff; }

.landing-nav-actions { display: flex; justify-content: flex-end; align-items: center; gap: 0.7rem; }
.landing-menu-btn { display: none; }
.btn-large { min-height: 48px; padding: 0.8rem 1.35rem; }

.landing-hero {
  min-height: calc(100vh - 72px);
  max-height: 880px;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(540px, 1.18fr);
  align-items: center;
  gap: 4rem;
  padding-top: 64px;
  padding-bottom: 88px;
}

.hero-copy { position: relative; z-index: 2; }
.hero-eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--emerald-400);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-eyebrow {
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.08);
}

.hero-copy h1 {
  max-width: 650px;
  margin: 1.25rem 0 1.2rem;
  font-size: 4.25rem;
  line-height: 0.98;
  font-weight: 800;
}

.hero-lead { max-width: 570px; font-size: 1.1rem; line-height: 1.75; color: #b9c4d4; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.15rem; margin-top: 1.5rem; color: var(--text-muted); font-size: 0.76rem; }
.hero-trust i { margin-right: 0.3rem; color: var(--emerald-400); }

.product-preview {
  position: relative;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  background: #111827;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.48), 0 0 50px rgba(99, 102, 241, 0.12);
  transform: perspective(1200px) rotateY(-3deg) rotateX(1deg);
}

.preview-topbar { min-height: 45px; display: flex; align-items: center; justify-content: space-between; padding: 0 0.7rem 0 0.5rem; }
.preview-brand { display: flex; align-items: center; gap: 0.45rem; font-family: var(--font-display); font-weight: 700; font-size: 0.86rem; }
.preview-brand i { color: var(--emerald-400); font-size: 1.05rem; }
.preview-live { display: flex; align-items: center; gap: 0.4rem; color: var(--text-muted); font-size: 0.67rem; }
.preview-live span { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald-400); box-shadow: 0 0 9px var(--emerald-400); }
.preview-grid { display: grid; grid-template-columns: 1.12fr 0.88fr; min-height: 410px; overflow: hidden; border: 1px solid var(--border-glass); border-radius: 8px; background: #0c1322; }
.chat-preview { display: flex; flex-direction: column; border-right: 1px solid var(--border-glass); }
.chat-heading { min-height: 66px; padding: 0.85rem; display: flex; align-items: center; gap: 0.7rem; border-bottom: 1px solid var(--border-glass); }
.chat-heading div,
.chat-heading small,
.chat-confirm div,
.chat-confirm small,
.agenda-heading div,
.agenda-heading strong,
.agenda-list span,
.agenda-list small { display: block; }
.chat-heading strong { font-size: 0.78rem; }
.chat-heading small { color: var(--text-muted); font-size: 0.64rem; margin-top: 0.1rem; }
.chat-avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(99, 102, 241, 0.2); color: #c7d2fe; font-size: 0.67rem; font-weight: 700; }
.chat-body { flex: 1; padding: 1rem; background: linear-gradient(135deg, rgba(16, 185, 129, 0.025), rgba(99, 102, 241, 0.035)); }
.chat-bubble { max-width: 84%; padding: 0.65rem 0.75rem; margin-bottom: 0.55rem; border-radius: 8px; font-size: 0.69rem; line-height: 1.45; }
.chat-bubble.incoming { background: #202b3d; color: #dbe4ef; }
.chat-bubble.outgoing { margin-left: auto; background: rgba(16, 185, 129, 0.2); color: #d1fae5; }
.chat-bubble.short { max-width: 55%; }
.time-options { display: flex; justify-content: flex-end; gap: 0.35rem; margin: 0 0 0.65rem auto; }
.time-options span { padding: 0.3rem 0.48rem; border: 1px solid rgba(16, 185, 129, 0.32); border-radius: 5px; color: var(--emerald-400); font-size: 0.63rem; }
.chat-confirm { margin-top: 0.9rem; padding: 0.7rem; display: flex; align-items: center; gap: 0.6rem; border: 1px solid rgba(16, 185, 129, 0.2); border-radius: 7px; background: rgba(16, 185, 129, 0.07); }
.chat-confirm > i { color: var(--emerald-400); }
.chat-confirm strong { color: #fff; font-size: 0.69rem; }
.chat-confirm small { color: var(--text-muted); font-size: 0.59rem; margin-top: 0.1rem; }
.agenda-preview { padding: 1rem; }
.agenda-heading { display: flex; justify-content: space-between; align-items: flex-start; }
.agenda-heading small { color: var(--text-subtle); font-size: 0.55rem; font-weight: 700; letter-spacing: 0.08em; }
.agenda-heading strong { margin-top: 0.25rem; font-size: 0.92rem; }
.agenda-heading button { width: 28px; height: 28px; border: 1px solid var(--border-glass); border-radius: 6px; background: transparent; color: var(--text-muted); }
.agenda-stat { margin: 1.2rem 0; padding: 0.8rem; display: flex; justify-content: space-between; align-items: center; border-radius: 7px; background: rgba(99, 102, 241, 0.1); color: var(--text-muted); font-size: 0.64rem; }
.agenda-stat strong { color: #fff; font: 800 1.15rem var(--font-display); }
.agenda-list { display: grid; gap: 0.45rem; }
.agenda-list > div { min-height: 58px; display: grid; grid-template-columns: 43px 1fr auto; align-items: center; gap: 0.5rem; padding: 0.55rem; border-left: 2px solid #334155; background: rgba(255, 255, 255, 0.025); }
.agenda-list > div.active { border-left-color: var(--emerald-400); background: rgba(16, 185, 129, 0.08); }
.agenda-list time { color: var(--text-muted); font-size: 0.59rem; }
.agenda-list strong { font-size: 0.66rem; }
.agenda-list small { margin-top: 0.12rem; color: var(--text-subtle); font-size: 0.57rem; }
.agenda-list i { color: var(--emerald-400); font-size: 0.8rem; }
.preview-toast { position: absolute; right: -22px; bottom: -25px; min-width: 255px; padding: 0.75rem; display: flex; align-items: center; gap: 0.7rem; border: 1px solid rgba(16, 185, 129, 0.3); border-radius: 8px; background: #162235; box-shadow: var(--shadow-md); }
.preview-toast > i { color: var(--emerald-400); font-size: 1.1rem; }
.preview-toast span,
.preview-toast small { display: block; }
.preview-toast strong { font-size: 0.7rem; }
.preview-toast small { color: var(--text-muted); font-size: 0.58rem; margin-top: 0.1rem; }

.landing-proof { border-top: 1px solid var(--border-glass); border-bottom: 1px solid var(--border-glass); background: rgba(17, 24, 39, 0.78); }
.proof-row { min-height: 88px; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; color: var(--text-muted); }
.proof-row > span { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; }
.proof-row strong { color: #cbd5e1; font-size: 0.84rem; }
.proof-row i { margin-right: 0.35rem; color: var(--emerald-400); }

.landing-block { padding-top: 110px; padding-bottom: 110px; }
.landing-band { padding: 110px 0; border-top: 1px solid var(--border-glass); border-bottom: 1px solid var(--border-glass); background: rgba(17, 24, 39, 0.68); }
.landing-heading { max-width: 690px; margin: 0 auto 3.5rem; text-align: center; }
.landing-heading.align-left { margin: 0; text-align: left; }
.landing-heading h2,
.landing-cta h2 { margin: 0.7rem 0 1rem; font-size: 2.75rem; line-height: 1.08; }
.landing-heading p { max-width: 590px; margin: 0 auto; font-size: 1rem; line-height: 1.7; }
.align-left p { margin: 0; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.feature-item { min-height: 265px; padding: 1.6rem; border: 1px solid var(--border-glass); border-radius: 8px; background: rgba(17, 24, 39, 0.88); }
.feature-item:hover { border-color: var(--border-glass-hover); }
.feature-highlight { grid-row: span 2; min-height: 546px; background: linear-gradient(155deg, rgba(16, 185, 129, 0.13), rgba(17, 24, 39, 0.95) 52%); }
.feature-wide { grid-column: span 2; display: grid; grid-template-columns: 1fr 0.8fr; align-items: center; gap: 2rem; }
.feature-icon { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 1.4rem; border-radius: 8px; background: rgba(16, 185, 129, 0.14); color: var(--emerald-400); font-size: 1.1rem; }
.feature-icon.icon-indigo { background: rgba(99, 102, 241, 0.14); color: #a5b4fc; }
.feature-icon.icon-blue { background: rgba(59, 130, 246, 0.14); color: #60a5fa; }
.feature-icon.icon-amber { background: rgba(245, 158, 11, 0.14); color: #fbbf24; }
.feature-item h3 { margin-bottom: 0.65rem; font-size: 1.18rem; }
.feature-item p { font-size: 0.88rem; line-height: 1.65; }
.mini-chat { margin-top: 4rem; display: grid; gap: 0.6rem; }
.mini-chat span { width: fit-content; max-width: 88%; padding: 0.7rem 0.8rem; border-radius: 8px; background: #202b3d; color: #dbe4ef; font-size: 0.72rem; }
.mini-chat span:last-child { margin-left: auto; background: rgba(16, 185, 129, 0.2); color: #d1fae5; }
.security-lines { display: grid; gap: 0.75rem; }
.security-lines span { padding-bottom: 0.75rem; border-bottom: 1px solid var(--border-glass); color: #cbd5e1; font-size: 0.82rem; }
.security-lines i { margin-right: 0.45rem; color: var(--emerald-400); }

.how-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; align-items: center; gap: 6rem; }
.steps-list { list-style: none; display: grid; }
.steps-list li { min-height: 130px; display: grid; grid-template-columns: 65px 1fr; gap: 1.1rem; padding: 1.4rem 0; border-bottom: 1px solid var(--border-glass); }
.steps-list li:first-child { border-top: 1px solid var(--border-glass); }
.steps-list > li > span { color: var(--emerald-400); font: 700 0.76rem var(--font-mono); }
.steps-list h3 { margin-bottom: 0.4rem; font-size: 1.15rem; }
.steps-list p { font-size: 0.86rem; }

.industry-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.industry-list span { min-height: 74px; display: flex; align-items: center; gap: 0.8rem; padding: 1rem 1.2rem; border: 1px solid var(--border-glass); border-radius: 8px; background: rgba(17, 24, 39, 0.74); color: #dbe4ef; font-weight: 600; }
.industry-list i { width: 28px; color: var(--emerald-400); font-size: 1rem; text-align: center; }

.plans-band { background: rgba(9, 14, 27, 0.92); }
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; align-items: stretch; }
.plan-item { position: relative; padding: 1.8rem; display: flex; flex-direction: column; border: 1px solid var(--border-glass); border-radius: 8px; background: #111827; }
.plan-featured { border-color: rgba(16, 185, 129, 0.5); box-shadow: 0 0 35px rgba(16, 185, 129, 0.1); }
.plan-popular { position: absolute; top: 0; right: 1.2rem; padding: 0.35rem 0.55rem; background: var(--emerald-500); color: #052e22; font-size: 0.6rem; font-weight: 800; }
.plan-label { color: var(--emerald-400); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; }
.plan-item h3 { margin: 0.9rem 0 0.5rem; font-size: 1.45rem; }
.plan-item > p { min-height: 48px; font-size: 0.84rem; }
.plan-item ul { flex: 1; margin: 1.5rem 0; display: grid; gap: 0.8rem; list-style: none; color: #cbd5e1; font-size: 0.82rem; }
.plan-item li i { margin-right: 0.5rem; color: var(--emerald-400); }

.landing-cta { margin-top: 110px; margin-bottom: 110px; padding: 3.3rem; display: flex; align-items: center; justify-content: space-between; gap: 3rem; border: 1px solid rgba(99, 102, 241, 0.28); border-radius: 8px; background: linear-gradient(120deg, rgba(99, 102, 241, 0.14), rgba(16, 185, 129, 0.09)); }
.landing-cta > div:first-child { max-width: 640px; }
.landing-cta h2 { font-size: 2.4rem; }
.cta-actions { min-width: 220px; display: grid; gap: 0.7rem; }

.landing-footer { padding: 2.5rem 0; border-top: 1px solid var(--border-glass); background: #080d18; }
.footer-layout { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2rem; }
.footer-layout p { margin-top: 0.6rem; font-size: 0.78rem; }
.footer-links { display: flex; align-items: center; gap: 1.3rem; }
.footer-links button { padding: 0; border: 0; background: transparent; cursor: pointer; }
.footer-layout small { grid-column: 1 / -1; padding-top: 1.4rem; border-top: 1px solid var(--border-glass); color: var(--text-subtle); }
.auth-back { margin-bottom: 1.2rem; display: inline-flex; align-items: center; gap: 0.45rem; border: 0; background: transparent; color: var(--text-muted); font: 600 0.78rem var(--font-sans); cursor: pointer; }
.auth-back:hover { color: #fff; }

@media (max-width: 1050px) {
  .landing-nav-wrap { grid-template-columns: 1fr auto; }
  .landing-nav { position: absolute; top: 64px; left: 24px; right: 24px; display: none; padding: 1rem; flex-direction: column; align-items: stretch; gap: 0; border: 1px solid var(--border-glass); border-radius: 8px; background: #111827; box-shadow: var(--shadow-md); }
  .landing-nav.open { display: flex; }
  .landing-nav a { padding: 0.75rem; }
  .landing-menu-btn { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--border-glass); border-radius: 8px; background: rgba(255, 255, 255, 0.04); color: #fff; cursor: pointer; }
  .landing-hero { min-height: auto; max-height: none; grid-template-columns: 1fr; gap: 3rem; padding-top: 80px; }
  .hero-copy { max-width: 740px; text-align: center; margin: 0 auto; }
  .hero-copy h1,
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-actions,
  .hero-trust { justify-content: center; }
  .product-preview { width: min(760px, 100%); margin: 0 auto; transform: none; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-highlight { grid-row: auto; min-height: 300px; }
  .feature-wide { grid-column: span 2; }
  .mini-chat { margin-top: 2rem; }
  .how-layout { gap: 3rem; }
  .landing-cta { flex-direction: column; align-items: flex-start; }
  .cta-actions { width: 100%; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .landing-container { width: min(100% - 32px, 1180px); }
  .landing-login-btn { display: none; }
  .landing-nav-actions .btn-emerald { padding: 0.58rem 0.8rem; font-size: 0.76rem; }
  .landing-hero { padding-top: 62px; padding-bottom: 70px; }
  .hero-copy h1 { font-size: 3rem; line-height: 1.02; }
  .hero-lead { font-size: 1rem; }
  .hero-actions { display: grid; }
  .hero-actions .btn { width: 100%; }
  .hero-trust { display: grid; gap: 0.65rem; }
  .preview-grid { grid-template-columns: 1fr; }
  .chat-preview { border-right: 0; }
  .agenda-preview { display: none; }
  .product-preview { padding: 8px; }
  .preview-toast { right: 10px; bottom: -30px; }
  .proof-row { min-height: 120px; justify-content: center; flex-wrap: wrap; padding: 1.2rem 0; }
  .proof-row > span { width: 100%; text-align: center; }
  .landing-block,
  .landing-band { padding-top: 78px; padding-bottom: 78px; }
  .landing-heading { margin-bottom: 2.4rem; }
  .landing-heading h2,
  .landing-cta h2 { font-size: 2.1rem; }
  .feature-grid,
  .industry-list,
  .plans-grid { grid-template-columns: 1fr; }
  .feature-wide { grid-column: auto; grid-template-columns: 1fr; }
  .how-layout { grid-template-columns: 1fr; }
  .landing-cta { margin-top: 72px; margin-bottom: 72px; padding: 2rem 1.4rem; }
  .cta-actions { grid-template-columns: 1fr; }
  .footer-layout { grid-template-columns: 1fr; }
  .footer-links { flex-wrap: wrap; }
  .footer-layout small { grid-column: auto; }
}

@media (max-width: 420px) {
  .landing-nav-actions .btn-emerald { display: none; }
  .hero-copy h1 { font-size: 2.55rem; }
  .preview-toast { min-width: 0; left: 18px; }
  .proof-row { column-gap: 0.8rem; }
  .proof-row strong { font-size: 0.72rem; }
}

/* 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;
}
