/* ==================================================================
   PLAiBASE Brand v5 | Animated background: 3 orbs + dot grid + spotlight
   nginx-injected layer — 2026-04-07
   ================================================================== */

/* Drift keyframes */
@keyframes plai-drift-1 {
  0%,100% { transform: translate(0px,0px) scale(1); }
  25%     { transform: translate(60px,-80px) scale(1.12); }
  50%     { transform: translate(-30px,-50px) scale(0.93); }
  75%     { transform: translate(-70px,40px) scale(1.05); }
}
@keyframes plai-drift-2 {
  0%,100% { transform: translate(0px,0px) scale(1); }
  20%     { transform: translate(-90px,70px) scale(1.08); }
  55%     { transform: translate(60px,90px) scale(0.90); }
  80%     { transform: translate(40px,-30px) scale(1.06); }
}
@keyframes plai-drift-3 {
  0%,100% { transform: translate(0px,0px) scale(1); }
  35%     { transform: translate(80px,60px) scale(1.09); }
  65%     { transform: translate(-50px,-80px) scale(0.94); }
  90%     { transform: translate(20px,50px) scale(1.04); }
}

/* Base background */
html, body { background: #06080e !important; }

/* Background container rendered by layout.tsx */
.plai-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* Dot grid */
.plai-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.13) 1px, transparent 1px);
  background-size: 36px 36px;
}

/* Mouse spotlight over grid */
.plai-spotlight {
  position: absolute;
  inset: 0;
  /* Brighter version of the grid — visible only near cursor */
  background-image: radial-gradient(circle, rgba(160, 210, 255, 0.70) 1px, transparent 1px);
  background-size: 36px 36px;
  /* Mask: tight circle at cursor position — dots outside mask are hidden */
  -webkit-mask-image: radial-gradient(
    circle 180px at var(--mouse-x, -9999px) var(--mouse-y, -9999px),
    black 30%,
    transparent 100%
  );
  mask-image: radial-gradient(
    circle 180px at var(--mouse-x, -9999px) var(--mouse-y, -9999px),
    black 30%,
    transparent 100%
  );
}

/* Shared orb base */
.plai-orb { position: absolute; border-radius: 50%; will-change: transform; }

/* Orb 1: Blue top-left */
.plai-orb-1 {
  top: -20%; left: -12%;
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(20,70,255,0.40) 0%, rgba(10,40,180,0.15) 50%, transparent 72%);
  filter: blur(100px);
  animation: plai-drift-1 30s ease-in-out infinite;
}

/* Orb 2: Teal bottom-left */
.plai-orb-2 {
  bottom: -25%; left: -10%;
  width: 750px; height: 750px;
  background: radial-gradient(circle, rgba(0,200,190,0.32) 0%, rgba(0,130,130,0.12) 50%, transparent 72%);
  filter: blur(110px);
  animation: plai-drift-2 24s ease-in-out infinite;
  animation-delay: -8s;
}

/* Orb 3: Purple right */
.plai-orb-3 {
  top: 5%; right: -15%;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(130,40,255,0.30) 0%, rgba(90,30,200,0.12) 50%, transparent 72%);
  filter: blur(110px);
  animation: plai-drift-3 36s ease-in-out infinite;
  animation-delay: -15s;
}

/* Content above background */
.plai-content { position: relative; z-index: 1; }
#__next { position: relative; z-index: 1; }

/* ── Transparent backgrounds (let orbs show through) ── */
.auth-page {
  background: transparent !important;
}
/* Chat page root */
.flex.overflow-hidden[style*="background: var(--bg-base)"],
div[style*="height: 100dvh"][style*="background: var(--bg-base)"] {
  background: transparent !important;
}
/* Landing page */
.lp-root {
  background: transparent !important;
}
/* Ensure html/body themselves are see-through for content layers */
.plai-content,
.plai-content > * {
  background: transparent;
}
/* Re-apply solid bg only to specific containers that need it (sidebar, cards) */
.auth-card {
  background: rgba(10, 10, 15, 0.75) !important;
  backdrop-filter: blur(40px) saturate(1.8) !important;
  -webkit-backdrop-filter: blur(40px) saturate(1.8) !important;
}

/* ── Chat page root: force transparent ── */
/* chat-root-transparent */
div.flex.overflow-hidden {
  background: transparent !important;
}
/* Sidebar keeps its dark bg */
div.flex.overflow-hidden > aside,
div.flex.overflow-hidden > div:first-child[style*="width: 280px"] {
  background: rgba(7,9,13,0.85) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
}


/* PLAiBASE — Brand Override Layer v4
   Injected via nginx sub_filter into ai.plaibase.dk
   Target: PLAi v2 Next.js app (gi-* class system)
   Brand: Cyan #00D4FF → Violet #8B5CF6 | Liquid Glass
   2026-04-03 */

/* ════════════════════════════════
   EMPTY STATE (greeting screen)
   ════════════════════════════════ */

/* ── GREETING — Hero sizing ── */
.gi-greeting {
  font-size: clamp(1.9rem, 4.2vw, 3rem) !important;
  font-weight: 300 !important;
  letter-spacing: -0.025em !important;
  color: rgba(255, 255, 255, 0.90) !important;
  line-height: 1.1 !important;
}

/* ── LOGO MARK — Hide (greeting is the hero) ── */
.gi-logo-mark {
  display: none !important;
}

/* ── HEADER — Tighten gap without logo ── */
.gi-header {
  gap: 0 !important;
  margin-bottom: 48px !important;
}

/* ── INPUT CARD — Enhanced liquid glass ── */
.gi-input-card {
  backdrop-filter: blur(56px) saturate(2.2) !important;
  -webkit-backdrop-filter: blur(56px) saturate(2.2) !important;
  border-color: rgba(255, 255, 255, 0.13) !important;
  box-shadow: 0 8px 40px rgba(0,0,0,0.45), 0 1px 0 rgba(255,255,255,0.08) inset !important;
  transition: border-color 0.25s ease, box-shadow 0.25s ease !important;
}
.gi-input-card:focus-within {
  border-color: rgba(0, 212, 255, 0.20) !important;
  box-shadow: 0 8px 40px rgba(0,0,0,0.45), 0 0 0 1px rgba(0,212,255,0.08), 0 1px 0 rgba(255,255,255,0.08) inset !important;
}

/* ── PLAiSAFE PILL — Cyan brand ── */
.gi-pill-safe {
  border-color: rgba(0, 212, 255, 0.28) !important;
  color: rgba(0, 212, 255, 0.50) !important;
}
.gi-pill-safe:hover,
.gi-pill-safe.active {
  border-color: rgba(0, 212, 255, 0.60) !important;
  background: rgba(0, 212, 255, 0.09) !important;
  color: rgba(0, 212, 255, 0.90) !important;
}

/* ── PLAiONLINE PILL — Violet ── */
.gi-pill-online {
  border-color: rgba(139, 92, 246, 0.28) !important;
  color: rgba(139, 92, 246, 0.50) !important;
}
.gi-pill-online:hover,
.gi-pill-online.active {
  border-color: rgba(139, 92, 246, 0.60) !important;
  background: rgba(139, 92, 246, 0.09) !important;
  color: rgba(139, 92, 246, 0.90) !important;
}

/* ── SEND BUTTON (empty state) — Gradient ── */
.gi-send-btn:not(:disabled) {
  background: linear-gradient(135deg, #00D4FF, #8B5CF6) !important;
  box-shadow: 0 2px 14px rgba(0,212,255,0.28), 0 1px 4px rgba(139,92,246,0.14) !important;
  border-radius: 50% !important;
}
.gi-send-btn:not(:disabled):hover {
  transform: scale(1.08) !important;
  box-shadow: 0 4px 22px rgba(0,212,255,0.40), 0 2px 8px rgba(139,92,246,0.22) !important;
}

/* ════════════════════════════════
   ACTIVE CHAT VIEW
   ════════════════════════════════ */

/* ── Chat header — title bar ── */
main header {
  border-bottom-color: rgba(255,255,255,0.06) !important;
}
main header > div:first-child {
  background: rgba(7,9,13,0.6) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
}

/* ── Model sub-bar — hide raw model names, keep minimal ── */
/* "🌐 Claude Sonnet 4.6 · Anthropic" / "🛡 PLAiSAFE · Self-hosted" */
main header .flex.items-center.justify-between.px-4.py-1\.5 {
  background: rgba(7,9,13,0.4) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
}
/* Soften the model name text — don't expose raw infra */
main header .flex.items-center.gap-2.text-xs span.font-medium {
  font-weight: 400 !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.04em !important;
}
/* Mute the "· Anthropic" / "· Self-hosted" descriptor */
main header .flex.items-center.gap-2.text-xs span:last-child {
  opacity: 0.5 !important;
  font-size: 0.65rem !important;
}
/* Brand-colour the remaining count */
main header .text-xs.tabular-nums {
  font-size: 0.65rem !important;
  opacity: 0.6 !important;
}

/* ── Chat input area footer (active conv) ── */
main .flex-shrink-0.px-4 {
  background: rgba(7,9,13,0.55) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border-top-color: rgba(255,255,255,0.05) !important;
}

/* ── Chat input box ── */
main .flex.items-end.gap-3.px-4.py-3.rounded-2xl {
  background: rgba(255,255,255,0.05) !important;
  border-color: rgba(255,255,255,0.09) !important;
  backdrop-filter: blur(20px) saturate(1.8) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.8) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}
main .flex.items-end.gap-3.px-4.py-3.rounded-2xl:focus-within {
  border-color: rgba(0, 212, 255, 0.20) !important;
  box-shadow: 0 0 0 1px rgba(0,212,255,0.08) !important;
}

/* ── Chat send button (active conv) ── */
/* When enabled: override var(--accent-blue) inline style */
main .flex-shrink-0.w-8.h-8.flex.items-center.justify-center.rounded-xl[style*="var(--accent-blue)"] {
  background: linear-gradient(135deg, #00D4FF, #8B5CF6) !important;
}
/* Stop button (red) — keep as-is */
main .flex-shrink-0.w-8.h-8.flex.items-center.justify-center.rounded-xl[style*="var(--accent-red)"] {
  /* keep red */
}

/* ── Footer help text ── */
main .flex.items-center.justify-center.gap-3.text-xs {
  opacity: 0.55 !important;
  font-size: 0.7rem !important;
}

/* ── User message bubble ── */
.rounded-2xl.px-4.py-3.text-sm[style*="rgba(59,130,246,0.13)"] {
  background: rgba(0, 212, 255, 0.08) !important;
  border-color: rgba(0, 212, 255, 0.16) !important;
  border-radius: 18px 18px 4px 18px !important;
}

/* ── AI message bubble ── */
.rounded-2xl.px-4.py-3.text-sm[style*="rgba(255,255,255,0.04)"] {
  background: rgba(255,255,255,0.04) !important;
  border-color: rgba(255,255,255,0.08) !important;
  border-radius: 18px 18px 18px 4px !important;
}

/* ── Scroll-to-bottom pill ── */
.sticky.bottom-4 button {
  background: rgba(20,22,28,0.9) !important;
  border-color: rgba(0,212,255,0.25) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

/* ── Thinking dots ── */
.plai-dot {
  background: rgba(0,212,255,0.6) !important;
}

/* ── Web search indicator ── */
main .rounded-2xl.px-4.py-3.flex.items-center.gap-2\.5 {
  background: rgba(0,212,255,0.05) !important;
  border-color: rgba(0,212,255,0.18) !important;
}

/* ════════════════════════════════
   SIDEBAR REFINEMENTS
   ════════════════════════════════ */

/* ── Hide model section (scores exposed to user) ── */
aside .px-3.py-2\.5.space-y-1 {
  display: none !important;
}

/* ── New Conversation — glass ── */
aside .px-3.py-2 > button.w-full.rounded-xl {
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid rgba(255,255,255,0.09) !important;
  color: rgba(255,255,255,0.75) !important;
  transition: all 0.2s ease !important;
}
aside .px-3.py-2 > button.w-full.rounded-xl:hover {
  background: rgba(0,212,255,0.07) !important;
  border-color: rgba(0,212,255,0.20) !important;
  color: rgba(0,212,255,0.90) !important;
}

/* ── Conversation dots — muted neutral ── */
.inline-block.w-1\.5.h-1\.5.rounded-full.flex-shrink-0 {
  opacity: 0.25 !important;
  background: rgba(255,255,255,0.5) !important;
}

/* ── Active conversation item highlight ── */
aside .group.flex.items-center[style*="var(--bg-elevated)"] {
  background: rgba(0,212,255,0.06) !important;
  border-radius: 8px !important;
}

/* ── Conversation title — light weight ── */
.group.flex.items-center .text-xs.truncate.block {
  font-weight: 300 !important;
}

/* ════════════════════════════════
   SUGGESTED PROMPTS
   ════════════════════════════════ */

/* Already brand-coloured in source; reinforce contrast */
.grid.grid-cols-1 button {
  transition: all 0.15s ease !important;
}

/* ════════════════════════════════
   GLOBAL POLISH
   ════════════════════════════════ */

/* Typography — Inter throughout, JetBrains Mono for code
   Respects the app's CSS variables set by Next.js font loader */
*, *::before, *::after {
  font-family: var(--font-sans), 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif !important;
}
code, pre, kbd, samp {
  font-family: var(--font-mono), 'JetBrains Mono', 'Fira Code', ui-monospace, 'SF Mono', Menlo, Consolas, monospace !important;
}

/* Smooth scrollbar */
::-webkit-scrollbar { width: 3px !important; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.10) !important; border-radius: 2px !important; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,212,255,0.20) !important; }

/* Lock dark mode */
:root { color-scheme: dark !important; }


/* ════════════════════════════════
   AUTH PAGES (login, register, verify)
   ════════════════════════════════ */

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

.auth-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: 40px 24px;
  background: var(--bg-base);
  position: relative;
  overflow: hidden;
}

/* Subtle background glow — matching landing page */
/* Auth-page orbs: handled by global .plai-bg (v5) */

.auth-wordmark-block {
  position: relative;
  z-index: 1;
  margin-bottom: 40px;
  animation: fadeIn 0.4s ease both;
}

.auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  padding: 32px;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(40px) saturate(1.8);
  -webkit-backdrop-filter: blur(40px) saturate(1.8);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
  animation: fadeIn 0.5s ease 0.1s both;
}

.auth-card-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0 0 20px;
}

/* Google OAuth button */
.auth-btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}
.auth-btn-google:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.15);
  color: var(--text-primary);
}

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
}
.auth-divider-line {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.06);
}
.auth-divider-text {
  font-size: 12px;
  color: var(--text-muted);
}

/* Form fields */
.auth-field {
  margin-bottom: 16px;
}
.auth-label {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.auth-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(255,255,255,0.05);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.auth-input::placeholder {
  color: var(--text-muted);
}
.auth-input:focus {
  border-color: rgba(79,143,247,0.4);
  box-shadow: 0 0 0 2px rgba(79,143,247,0.08);
}

/* Primary button */
.auth-btn-primary {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 11px 20px;
  border-radius: 10px;
  border: none;
  background: var(--accent-blue);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  font-family: inherit;
  margin-top: 4px;
}
.auth-btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
.auth-btn-primary:disabled {
  opacity: 0.5;
  cursor: wait;
}
.auth-btn-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.15) 50%, transparent 60%);
  transform: translateX(-100%);
  animation: lp-shimmer 3s ease infinite;
}

/* Error banner */
.auth-error-banner {
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.18);
  color: var(--accent-red);
  font-size: 13px;
  margin: 12px 0 4px;
}

/* Notice (e.g. email not verified) */
.auth-notice {
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(245,158,11,0.06);
  border: 1px solid rgba(245,158,11,0.15);
  margin: 12px 0 4px;
}
.auth-notice-text {
  font-size: 13px;
  color: var(--accent-amber);
  margin: 0 0 6px;
}
.auth-notice-link {
  background: none;
  border: none;
  color: var(--accent-blue);
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Footer */
.auth-footer {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}
.auth-footer a {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 400;
}
.auth-footer a:hover {
  text-decoration: underline;
}

/* ── Allow scroll on pages that can overflow ── */
.auth-page {
  overflow-y: auto !important;
}
.lp-root {
  overflow-y: auto !important;
}
/* Ensure plai-content doesn't block scroll */
.plai-content {
  overflow: visible !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   MOBILE OVERHAUL — applies only at ≤1023px, desktop (≥1024px) unaffected
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Auth: tighter card on small screens ── */
@media (max-width: 1023px) {
  .auth-wordmark-block {
    margin-bottom: 24px;
  }
  .auth-card {
    padding: 24px 20px;
    border-radius: 14px;
    max-width: 420px;
  }
  .auth-card-title {
    font-size: 15px;
    margin-bottom: 16px;
  }
}
@media (max-width: 480px) {
  .auth-page {
    padding: 24px 16px;
    align-items: flex-start;
    padding-top: max(40px, env(safe-area-inset-top, 24px));
  }
  .auth-card {
    padding: 20px 16px;
    border-radius: 12px;
  }
  /* iOS-safe: prevent auto-zoom by keeping ≥16px on inputs */
  .auth-input,
  .auth-field input,
  input[type="email"],
  input[type="password"],
  input[type="text"] {
    font-size: 16px !important;
  }
}

/* ── Landing: mobile layout ── */
@media (max-width: 1023px) {
  .lp-root {
    padding: 28px 20px 48px;
    padding-bottom: max(48px, env(safe-area-inset-bottom, 48px));
  }
  .lp-headline {
    font-size: clamp(2rem, 9vw, 3.2rem);
    margin-bottom: 16px;
  }
  .lp-sub {
    font-size: 14px;
    margin-bottom: 24px;
  }
  .lp-pills {
    gap: 6px;
    margin-bottom: 28px;
  }
  .lp-ctas {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 36px;
    width: 100%;
    max-width: 360px;
  }
  .lp-btn-primary,
  .lp-btn-ghost {
    width: 100%;
    justify-content: center;
    padding: 13px 20px;
    font-size: 14px;
  }
  .lp-sep {
    margin-bottom: 32px;
  }
  .lp-modes {
    max-width: 100%;
  }
}

/* ── Chat: hamburger button, greeting, input bar ── */
@media (max-width: 1023px) {
  /* More visible hamburger */
  .gi-hamburger {
    background: rgba(255,255,255,0.06) !important;
    border: 1px solid rgba(255,255,255,0.10) !important;
    border-radius: 10px !important;
    color: rgba(255,255,255,0.7) !important;
  }
  .gi-hamburger:hover {
    background: rgba(255,255,255,0.10) !important;
  }

  /* Greeting text: scale down on narrow screens */
  .gi-greeting {
    font-size: clamp(1.5rem, 6.5vw, 2.4rem) !important;
    margin-bottom: 24px !important;
    padding: 0 16px;
  }

  /* Input toolbar: ensure full safe-area coverage at bottom */
  .gi-input-area {
    padding-bottom: max(12px, env(safe-area-inset-bottom, 12px));
  }

  /* Chat input font ≥16px to prevent iOS zoom */
  .gi-textarea {
    font-size: 16px !important;
  }

  /* Prevent sidebar backdrop from being clipped */
  .plai-bg {
    position: fixed !important;
  }
}

/* ── Workspace picker: full-width cards on mobile ── */
@media (max-width: 480px) {
  /* Ensure workspace buttons are well-padded touch targets */
  .auth-card button {
    min-height: 48px;
    font-size: 14px;
  }
}

/* ── Splash / loading screen ── */
.plai-splash {
  background: var(--bg-base, #06080e);
  position: fixed;
  inset: 0;
  z-index: 100;
  animation: plai-splash-in 0.3s ease both;
}

@keyframes plai-splash-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.plai-splash-inner {
  animation: plai-splash-rise 0.5s cubic-bezier(0.22,1,0.36,1) 0.1s both;
}

@keyframes plai-splash-rise {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.plai-splash-ring {
  position: relative;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.plai-splash-ring::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid transparent;
  border-top-color: rgba(0,212,255,0.7);
  border-right-color: rgba(139,92,246,0.4);
  animation: plai-splash-spin 1.1s linear infinite;
}

.plai-splash-ring::after {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.05);
}

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

.plai-splash-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00D4FF, #8B5CF6);
  animation: plai-dot-pulse 1.5s ease-in-out infinite;
}

@keyframes plai-dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}

/* ── Keyboard-safe: iOS visual viewport ── */
/* Applied by the VisualViewport listener (added via useEffect in layout or a hook) */
:root {
  --keyboard-inset: 0px;
}

.gi-input-area {
  padding-bottom: max(16px, calc(env(safe-area-inset-bottom) + 16px));
}

/* When keyboard is open (class added by JS), shift content up */
body.keyboard-open .gi-input-area {
  padding-bottom: 12px;
}


/* ── Mode cards: side-by-side on all mobile sizes ── */
@media (max-width: 480px) {
  .lp-modes {
    flex-direction: row !important;
    align-items: stretch;
  }
  .lp-mode-divider {
    width: 1px !important;
    height: auto !important;
    margin: 0 !important;
    flex-shrink: 0;
  }
  .lp-mode {
    flex: 1;
    min-width: 0;
    padding: 14px 12px !important;
  }
  .lp-mode-desc {
    font-size: 11px !important;
  }
}

/* ── Mode cards: move directly under CTA buttons (no separator gap) ── */
.lp-sep {
  display: none !important;
}
.lp-ctas {
  margin-bottom: 20px !important;
}
