/* Pookie Chat — Cosmic Purple-Neon Official Website & Full Desktop Web Mode */
:root {
  --neon-purple: #9d4edd;
  --neon-orchid: #c77dff;
  --neon-pink: #ff4d8d;
  --neon-grad: linear-gradient(135deg, #9d4edd 0%, #c77dff 50%, #ff4d8d 100%);
  --online-green: #00e676;

  /* Dark Midnight Sapphire Workspace (Default Studio Theme) */
  --bg-deep: #070d19;
  --bg-surface: #0e1628;
  --bg-sidebar: #0b1222;
  --bg-chat: #08101f;
  --bg-card: #15213a;
  --bg-input: #17233d;
  --text-primary: #f1f5ff;
  --text-secondary: #9fb2d4;
  --bubble-my: linear-gradient(135deg, #2563eb 0%, #1d4ed8 55%, #1e40af 100%);
  --bubble-other: #162136;
  --border-color: rgba(148, 163, 184, 0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.app-layout.light-theme {
  --bg-deep: #f4f7fc;
  --bg-surface: #ffffff;
  --bg-sidebar: #f8faff;
  --bg-chat: #eef3fb;
  --bg-card: #edf2fc;
  --bg-input: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --bubble-my: linear-gradient(135deg, #2563eb 0%, #1d4ed8 58%, #1e40af 100%);
  --bubble-other: #ffffff;
  --border-color: rgba(15, 23, 42, 0.09);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-family);
  background: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
}

/* =====================================================
   MODE 1: OFFICIAL POOKIE CHAT WEBSITE
   ===================================================== */
.landing-page {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: radial-gradient(circle at top right, rgba(157, 78, 221, 0.18), transparent 45%),
              radial-gradient(circle at 15% 40%, rgba(255, 77, 141, 0.12), transparent 40%),
              #0b0914;
  color: #f6f3ff;
  overflow: hidden;
}

.cosmic-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  z-index: 0;
}
.glow-a { width: 420px; height: 420px; background: rgba(157, 78, 221, 0.25); top: -120px; right: -80px; }
.glow-b { width: 380px; height: 380px; background: rgba(255, 77, 141, 0.18); top: 45%; left: -120px; }

.site-navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 9, 20, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(199, 125, 255, 0.15);
}

.nav-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  overflow: hidden;
  border: 1.5px solid rgba(199, 125, 255, 0.45);
  box-shadow: 0 4px 18px rgba(157, 78, 221, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #140b29;
}

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

.brand-wordmark {
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(90deg, #ffffff 30%, #e0aaff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  text-decoration: none;
  color: #cfc6ea;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.15s;
}
.nav-links a:hover { color: #e0aaff; }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.btn-gradient-primary,
.btn-download-premium {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #7c3aed 0%, #c77dff 50%, #ff4d8d 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  box-shadow: 0 8px 26px rgba(157, 78, 221, 0.42);
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1),
              background 0.32s ease,
              box-shadow 0.32s ease,
              border-color 0.28s ease,
              color 0.24s ease;
}
.btn-gradient-primary::before,
.btn-download-premium::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 65%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.32), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
  pointer-events: none;
}
.btn-gradient-primary:hover::before,
.btn-download-premium:hover::before {
  left: 140%;
}
.btn-gradient-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255, 77, 141, 0.48);
}
.btn-download-premium:hover,
.btn-download-premium:focus-visible {
  background: linear-gradient(135deg, #00e676 0%, #00d2ff 55%, #38bdf8 100%);
  color: #05161f;
  border-color: rgba(167, 243, 208, 0.9);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 36px rgba(0, 230, 118, 0.46), 0 0 22px rgba(0, 210, 255, 0.35);
  outline: none;
}
.btn-download-premium .dl-arrow {
  display: inline-flex;
  align-items: center;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn-download-premium:hover .dl-arrow {
  transform: translateY(2px);
}

.btn-outline-glow {
  background: rgba(255, 255, 255, 0.04);
  color: #f6f3ff;
  border: 1.5px solid rgba(199, 125, 255, 0.38);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  transition: background 0.16s, border-color 0.16s;
}
.btn-outline-glow:hover {
  background: rgba(199, 125, 255, 0.14);
  border-color: #e0aaff;
}
.btn-lg { padding: 14px 26px; font-size: 15px; }

/* HERO */
.hero-section {
  position: relative;
  z-index: 1;
  max-width: 1220px;
  margin: 0 auto;
  padding: 44px 24px 68px;
}

.hero-grid {
  background: linear-gradient(145deg, rgba(28, 20, 54, 0.9) 0%, rgba(16, 12, 32, 0.94) 100%);
  border: 1px solid rgba(199, 125, 255, 0.22);
  border-radius: 32px;
  padding: 50px 46px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: center;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(157, 78, 221, 0.2);
  border: 1px solid rgba(199, 125, 255, 0.35);
  color: #e0aaff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 18px;
}

.dot-live {
  width: 8px; height: 8px;
  background: var(--online-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--online-green);
}

.hero-copy h1 {
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 18px;
}
.hero-copy h1 span {
  background: var(--neon-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 16.5px;
  line-height: 1.62;
  color: #c9bfe6;
  margin-bottom: 28px;
  max-width: 560px;
}

.hero-cta-group { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }

.hero-meta-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: #b7abd9;
}

.hero-trust-strip {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.trust-stat-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(199, 125, 255, 0.22);
  border-radius: 16px;
  padding: 12px 14px;
  backdrop-filter: blur(8px);
}
.trust-stat-card strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 2px;
}
.trust-stat-card span {
  font-size: 11.5px;
  color: #b7abd9;
}

.web-update-banner {
  position: relative;
  z-index: 45;
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.28), rgba(0, 210, 255, 0.18), rgba(255, 77, 141, 0.25));
  border-bottom: 1px solid rgba(199, 125, 255, 0.35);
  backdrop-filter: blur(12px);
}
.web-update-banner.highlighted {
  background: linear-gradient(90deg, rgba(0, 230, 118, 0.22), rgba(0, 210, 255, 0.24), rgba(157, 78, 221, 0.32));
  border-bottom-color: rgba(0, 230, 118, 0.55);
  box-shadow: 0 10px 30px rgba(0, 210, 255, 0.18);
}
.web-update-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.web-update-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #efe9ff;
}
.update-pill-badge {
  background: linear-gradient(135deg, #00e676, #00d2ff);
  color: #041821;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.7px;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}
.verified-build-note {
  margin-top: 14px;
  background: rgba(0, 230, 118, 0.08);
  border: 1px solid rgba(0, 230, 118, 0.32);
  border-radius: 16px;
  padding: 12px 15px;
  font-size: 12.5px;
  line-height: 1.55;
  color: #d7fbe8;
}
.verified-build-note strong { color: #69f0ae; }
.download-banner.update-focus {
  border-color: rgba(0, 230, 118, 0.65);
  box-shadow: 0 26px 70px rgba(0, 230, 118, 0.22), 0 0 36px rgba(0, 210, 255, 0.16);
}

.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }

.phone-frame-hero {
  width: 280px;
  background: #140f24;
  border-radius: 36px;
  padding: 10px;
  box-shadow: 0 30px 70px rgba(157, 78, 221, 0.3);
  border: 2.5px solid rgba(199, 125, 255, 0.45);
}
.phone-frame-hero img { width: 100%; border-radius: 26px; display: block; }

.floating-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(24, 18, 44, 0.94);
  backdrop-filter: blur(10px);
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(199, 125, 255, 0.35);
  white-space: nowrap;
}
.chip-top { top: 22px; right: -10px; }
.chip-bottom { bottom: 26px; left: -14px; }

/* SECTIONS */
.section-container {
  position: relative;
  z-index: 1;
  max-width: 1220px;
  margin: 0 auto;
  padding: 72px 24px;
}

.section-heading { text-align: center; max-width: 680px; margin: 0 auto 44px; }

.section-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.4px;
  color: #c77dff;
  margin-bottom: 10px;
}
.section-heading h2 { font-size: clamp(26px, 3.3vw, 38px); font-weight: 800; line-height: 1.18; margin-bottom: 12px; }
.section-heading p { font-size: 15.5px; line-height: 1.6; color: #b7abd9; }

.screenshots-section {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(199, 125, 255, 0.12);
  border-bottom: 1px solid rgba(199, 125, 255, 0.12);
}
.screenshots-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.screenshot-card {
  background: #141024;
  border-radius: 26px;
  padding: 26px 22px;
  text-align: center;
  border: 1px solid rgba(199, 125, 255, 0.18);
  transition: transform 0.2s, border-color 0.2s;
}
.screenshot-card:hover { transform: translateY(-4px); border-color: rgba(199, 125, 255, 0.5); }
.phone-mockup {
  max-width: 230px;
  margin: 0 auto 20px;
  background: #0d0a18;
  border-radius: 28px;
  padding: 8px;
  border: 1px solid rgba(199, 125, 255, 0.28);
}
.phone-mockup img { width: 100%; border-radius: 22px; display: block; }
.screenshot-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.screenshot-card p { font-size: 13.5px; color: #b7abd9; line-height: 1.55; }

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
  background: linear-gradient(160deg, rgba(24, 18, 44, 0.94), rgba(16, 12, 32, 0.96));
  border: 1px solid rgba(199, 125, 255, 0.2);
  border-radius: 22px;
  padding: 26px;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 210, 255, 0.48);
  box-shadow: 0 18px 42px rgba(157, 78, 221, 0.22);
}
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: rgba(157, 78, 221, 0.18);
  border: 1px solid rgba(199, 125, 255, 0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; line-height: 1.58; color: #b7abd9; }

.download-banner {
  background: linear-gradient(135deg, #1b1235 0%, #2b1546 100%);
  border: 1px solid rgba(199, 125, 255, 0.35);
  border-radius: 30px;
  padding: 46px 42px;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 36px;
  align-items: center;
  box-shadow: 0 24px 60px rgba(157, 78, 221, 0.25);
}
.download-tag {
  display: inline-block;
  background: rgba(255, 77, 141, 0.2);
  color: #ff94bd;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.download-copy h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; margin-bottom: 12px; }
.download-copy p { color: #d8cef2; font-size: 15px; line-height: 1.6; margin-bottom: 22px; }
.download-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.install-steps { font-size: 13px !important; color: #b7abd9 !important; margin-bottom: 0 !important; }
.download-qr-card { text-align: center; }
.download-logo-img {
  width: 170px; height: 170px;
  border-radius: 32px;
  box-shadow: 0 18px 44px rgba(157, 78, 221, 0.45);
  border: 2px solid rgba(199, 125, 255, 0.5);
  margin-bottom: 14px;
}
.download-meta-pill {
  display: inline-block;
  background: rgba(11, 9, 20, 0.7);
  border: 1px solid rgba(199, 125, 255, 0.3);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #e0aaff;
}

.legal-tabs { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.legal-tab {
  background: #141024;
  color: #cfc6ea;
  border: 1px solid rgba(199, 125, 255, 0.22);
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  font-family: inherit;
}
.legal-tab.active { background: var(--neon-grad); color: #fff; border-color: transparent; }

.legal-card {
  background: #141024;
  border: 1px solid rgba(199, 125, 255, 0.2);
  border-radius: 24px;
  padding: 32px;
  max-width: 880px;
  margin: 0 auto;
}
.legal-panel h3 { font-size: 21px; margin-bottom: 10px; color: #e0aaff; }
.legal-panel p { color: #d5cce9; line-height: 1.6; margin-bottom: 14px; font-size: 14.5px; }
.legal-list { padding-left: 20px; display: flex; flex-direction: column; gap: 10px; color: #cfc6ea; font-size: 14px; line-height: 1.55; }
.legal-list code { background: rgba(157, 78, 221, 0.2); padding: 2px 6px; border-radius: 6px; color: #e0aaff; }

.site-footer {
  background: #080610;
  border-top: 1px solid rgba(199, 125, 255, 0.15);
  padding: 48px 24px 28px;
}
.footer-inner {
  max-width: 1220px;
  margin: 0 auto 32px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
}
.footer-brand p { margin-top: 10px; color: #a89dc7; font-size: 14px; max-width: 300px; }
.footer-cols { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-cols h4 { font-size: 14px; margin-bottom: 12px; color: #e0aaff; }
.footer-cols a { display: block; color: #a89dc7; text-decoration: none; font-size: 13.5px; margin-bottom: 8px; }
.footer-cols a:hover { color: #ffffff; }
.footer-bottom {
  max-width: 1220px;
  margin: 0 auto;
  padding-top: 18px;
  border-top: 1px solid rgba(199, 125, 255, 0.12);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
  color: #887ca8;
}

/* =====================================================
   AUTH MODAL & DESKTOP QR
   ===================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 4, 14, 0.78);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 120;
  padding: 16px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: #141024;
  border: 1px solid rgba(199, 125, 255, 0.3);
  border-radius: 24px;
  padding: 24px;
  color: #f6f3ff;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
  max-height: 92vh;
  overflow-y: auto;
}
.auth-top-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.back-to-site-btn {
  background: transparent; border: none; color: #c77dff; font-weight: 700; font-size: 13px; cursor: pointer; font-family: inherit;
}
.auth-header { text-align: center; margin-bottom: 18px; }
.logo-badge { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 18px; overflow: hidden; border: 2px solid rgba(199, 125, 255, 0.5); }
.brand-img-fit { width: 100%; height: 100%; object-fit: cover; }
.auth-header h2 { font-size: 20px; font-weight: 800; }
.auth-header p { font-size: 12.5px; color: #a89dc7; margin-top: 4px; }

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #0d0a18;
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 16px;
}
.tab-btn {
  background: transparent; border: none; color: #a89dc7; padding: 8px 6px; border-radius: 9px; font-weight: 700; font-size: 12.5px; cursor: pointer; font-family: inherit;
}
.tab-btn.active { background: var(--neon-grad); color: #fff; }

.btn-google-auth {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  background: #ffffff; color: #161129; border: none; padding: 11px 16px; border-radius: 12px;
  font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25); transition: transform 0.15s;
}
.btn-google-auth:hover { transform: translateY(-1px); }
.auth-divider {
  display: flex; align-items: center; gap: 10px; margin: 14px 0; color: #9c8ec2; font-size: 11.5px; font-weight: 600;
}
.auth-divider::before, .auth-divider::after {
  content: ""; flex: 1; height: 1px; background: rgba(199, 125, 255, 0.22);
}

.desktop-qr-card { text-align: center; }
.qr-box {
  display: inline-flex; padding: 12px; background: #fff; border-radius: 16px; margin-bottom: 12px;
}
.qr-status-pill {
  display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(157, 78, 221, 0.18); color: #e0aaff; font-size: 12px; font-weight: 700; margin-bottom: 10px;
}
.qr-status-pill.linked { background: rgba(0, 230, 118, 0.18); color: var(--online-green); }
.pairing-code-row { display: flex; justify-content: center; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 12px; }
.pairing-code-pill { background: #1e1836; padding: 4px 10px; border-radius: 8px; color: #c77dff; cursor: pointer; }
.mini-refresh-btn { background: #251d42; color: #fff; border: 1px solid rgba(199, 125, 255, 0.3); padding: 4px 10px; border-radius: 8px; font-size: 11.5px; font-weight: 600; cursor: pointer; }
.qr-steps-list { text-align: left; font-size: 12.5px; color: #cfc6ea; padding-left: 18px; line-height: 1.6; }

/* =====================================================
   MODE 2: FULL DESKTOP WEB MODE WORKSPACE
   ===================================================== */
.app-layout {
  position: relative;
  display: flex;
  width: 100vw;
  height: 100vh;
  background: var(--bg-deep);
  color: var(--text-primary);
  overflow: hidden;
}

.element-bubbles-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 95;
  overflow: hidden;
}
.floating-particle {
  position: absolute;
  bottom: -40px;
  font-size: 20px;
  opacity: 0.72;
  animation: floatUp linear infinite;
}
.element-sphere {
  position: absolute;
  bottom: -70px;
  border-radius: 50%;
  pointer-events: auto;
  cursor: pointer;
  animation: floatSphereUp linear infinite;
  transition: transform 0.16s ease, opacity 0.2s ease;
  will-change: transform, opacity;
}
.element-sphere:hover {
  transform: scale(1.12);
}
.element-sphere.popped {
  transform: scale(1.9) !important;
  opacity: 0 !important;
  pointer-events: none;
}
/* Hydrogen: True AI Studio Pure Pearlescent Frosted White 3D Glass Sphere */
.sphere-hydrogen {
  background: radial-gradient(circle at 30% 26%, #ffffff 0%, #f8fafc 32%, rgba(241, 245, 249, 0.88) 65%, rgba(203, 213, 225, 0.42) 100%);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow:
    inset -4px -6px 12px rgba(148, 163, 184, 0.34),
    inset 3px 3px 8px rgba(255, 255, 255, 0.96),
    0 6px 22px rgba(255, 255, 255, 0.22);
}
.sphere-oxygen {
  background: radial-gradient(circle at 30% 26%, #ffffff 0%, #e0f2fe 35%, rgba(56, 189, 248, 0.45) 78%, rgba(2, 132, 199, 0.28) 100%);
  border: 1px solid rgba(186, 230, 253, 0.75);
  box-shadow: inset -4px -6px 10px rgba(2, 132, 199, 0.25), inset 3px 3px 8px rgba(255, 255, 255, 0.9), 0 4px 18px rgba(56, 189, 248, 0.24);
}
.sphere-carbon {
  background: radial-gradient(circle at 30% 26%, #f8fafc 0%, #94a3b8 40%, rgba(71, 85, 105, 0.6) 80%, rgba(30, 41, 59, 0.45) 100%);
  border: 1px solid rgba(226, 232, 240, 0.55);
  box-shadow: inset -4px -6px 10px rgba(15, 23, 52, 0.42), inset 3px 3px 8px rgba(255, 255, 255, 0.8), 0 4px 16px rgba(148, 163, 184, 0.22);
}
.sphere-water {
  background: radial-gradient(circle at 30% 26%, #ffffff 0%, #cffafe 36%, rgba(34, 211, 238, 0.45) 78%, rgba(8, 145, 178, 0.28) 100%);
  border: 1px solid rgba(165, 243, 252, 0.78);
  box-shadow: inset -4px -6px 10px rgba(8, 145, 178, 0.28), inset 3px 3px 8px rgba(255, 255, 255, 0.92), 0 4px 18px rgba(34, 211, 238, 0.26);
}
.sphere-fire {
  background: radial-gradient(circle at 30% 26%, #fff8e1 0%, #fdba74 36%, rgba(249, 115, 22, 0.52) 78%, rgba(220, 38, 38, 0.32) 100%);
  border: 1px solid rgba(254, 215, 170, 0.78);
  box-shadow: inset -4px -6px 10px rgba(194, 65, 12, 0.32), inset 3px 3px 8px rgba(255, 255, 255, 0.88), 0 4px 18px rgba(249, 115, 22, 0.28);
}
.sphere-aurora {
  background: radial-gradient(circle at 30% 26%, #ffffff 0%, #e9d5ff 36%, rgba(192, 132, 252, 0.52) 74%, rgba(244, 114, 182, 0.34) 100%);
  border: 1px solid rgba(243, 232, 255, 0.8);
  box-shadow: inset -4px -6px 10px rgba(147, 51, 234, 0.26), inset 3px 3px 8px rgba(255, 255, 255, 0.92), 0 4px 20px rgba(192, 132, 252, 0.28);
}
.sphere-pop-spark {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  pointer-events: none;
  animation: sparkFly 0.45s ease-out forwards;
}
@keyframes sparkFly {
  0% { transform: translate(0, 0) scale(1); opacity: 0.95; }
  100% { transform: translate(var(--dx, 20px), var(--dy, -20px)) scale(0.15); opacity: 0; }
}
@keyframes floatSphereUp {
  0% { transform: translate3d(0, 0, 0) scale(0.92); opacity: 0; }
  10% { opacity: var(--max-op, 0.72); }
  50% { transform: translate3d(var(--sway, 14px), -55vh, 0) scale(1); }
  90% { opacity: var(--max-op, 0.72); }
  100% { transform: translate3d(calc(var(--sway, 14px) * -0.6), -114vh, 0) scale(1.04); opacity: 0; }
}
@keyframes floatUp {
  0% { transform: translateY(0) scale(0.9); opacity: 0; }
  12% { opacity: 0.78; }
  90% { opacity: 0.7; }
  100% { transform: translateY(-108vh) scale(1.15); opacity: 0; }
}

.web-nav-rail {
  width: 72px;
  background: var(--bg-surface);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 12px 6px;
  z-index: 30;
  flex-shrink: 0;
}

.rail-top, .rail-bottom { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; }

.rail-logo-btn {
  width: 44px; height: 44px; border-radius: 14px; overflow: hidden; border: 1.5px solid rgba(199, 125, 255, 0.45);
  background: #140b29; cursor: pointer; margin-bottom: 8px; padding: 0;
}
.rail-logo-btn img { width: 100%; height: 100%; object-fit: cover; }

.rail-btn {
  width: 58px; padding: 7px 4px; border-radius: 14px; background: transparent; border: none;
  color: var(--text-secondary); display: flex; flex-direction: column; align-items: center; gap: 3px;
  cursor: pointer; font-family: inherit; transition: background 0.15s, color 0.15s;
}
.rail-btn span { font-size: 18px; line-height: 1; }
.rail-btn small { font-size: 10px; font-weight: 700; }
.rail-btn:hover { background: var(--bg-card); color: var(--text-primary); }
.rail-btn.active { background: rgba(157, 78, 221, 0.22); color: #e0aaff; }

.rail-icon-wrap { position: relative; display: inline-block; }
.rail-badge {
  position: absolute; top: -6px; right: -10px; background: var(--neon-pink); color: #fff;
  font-style: normal; font-size: 10px; font-weight: 800; padding: 1px 5px; border-radius: 999px;
}

/* SIDEBAR */
.sidebar-pane {
  width: 365px;
  max-width: 42vw;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.sidebar-header {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}

.user-profile-preview { display: flex; align-items: center; gap: 10px; cursor: pointer; min-width: 0; flex: 1; }
.profile-info { min-width: 0; }
.profile-title-line { display: flex; align-items: center; gap: 6px; }
.profile-name { font-weight: 700; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-uname { font-size: 12px; color: var(--neon-orchid); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }

.icon-btn {
  width: 36px; height: 36px; border-radius: 50%; background: transparent; border: none;
  color: var(--text-secondary); display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 17px; transition: background 0.15s, color 0.15s;
}
.icon-btn:hover { background: var(--bg-card); color: var(--text-primary); }
.icon-btn.recording { background: rgba(255, 77, 141, 0.25); color: var(--neon-pink); animation: pulseRec 1s infinite; }
@keyframes pulseRec { 50% { transform: scale(1.1); } }

.global-announcement-bar {
  background: linear-gradient(90deg, rgba(157, 78, 221, 0.22), rgba(255, 77, 141, 0.2));
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 12px;
  border-bottom: 1px solid var(--border-color);
}

.search-filter-section { padding: 10px 12px; border-bottom: 1px solid var(--border-color); }
.search-bar {
  display: flex; align-items: center; gap: 8px; background: var(--bg-card);
  border: 1px solid var(--border-color); border-radius: 12px; padding: 8px 12px;
}
.search-icon { color: var(--text-secondary); flex-shrink: 0; }
.search-bar input {
  width: 100%; background: transparent; border: none; outline: none; color: var(--text-primary); font-size: 13.5px; font-family: inherit;
}

.filter-pills { display: flex; gap: 6px; margin-top: 9px; overflow-x: auto; }
.pill {
  background: var(--bg-card); border: 1px solid var(--border-color); color: var(--text-secondary);
  padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit; white-space: nowrap;
}
.pill.active { background: var(--neon-grad); color: #fff; border-color: transparent; }

.action-bar-row { display: flex; gap: 8px; }
.status-post-box { display: flex; gap: 6px; align-items: center; }
.status-post-box input[type="text"] {
  flex: 1; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 10px;
  padding: 8px 10px; color: var(--text-primary); font-size: 13px; font-family: inherit; outline: none;
}

.chats-scroll { flex: 1; overflow-y: auto; padding: 6px; }

.chat-item {
  display: flex; align-items: center; gap: 11px; padding: 10px; border-radius: 14px;
  cursor: pointer; transition: background 0.15s; margin-bottom: 2px;
}
.chat-item:hover { background: var(--bg-card); }
.chat-item.active { background: rgba(157, 78, 221, 0.2); border: 1px solid rgba(199, 125, 255, 0.25); }

.avatar-wrap { position: relative; flex-shrink: 0; }
.avatar-circle {
  width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, #7b2cbf, #c77dff);
  color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px;
  overflow: hidden; flex-shrink: 0;
}
.avatar-circle img { width: 100%; height: 100%; object-fit: cover; }
.avatar-circle.mini { width: 26px; height: 26px; font-size: 12px; }
.avatar-circle.xl { width: 108px; height: 108px; font-size: 38px; }
.avatar-circle.logo-avatar { background: #140b29; border: 1px solid rgba(199, 125, 255, 0.5); }

.online-dot {
  position: absolute; bottom: 1px; right: 1px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--online-green); border: 2px solid var(--bg-sidebar);
  box-shadow: 0 0 6px var(--online-green);
}

.chat-content { flex: 1; min-width: 0; }
.chat-top-row { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-bottom: 3px; }
.chat-name { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-time { font-size: 11px; color: var(--text-secondary); flex-shrink: 0; }
.chat-bottom-row { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.chat-last-msg { font-size: 12.5px; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.unread-badge {
  background: var(--neon-pink); color: #fff; font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 999px; flex-shrink: 0;
}

/* RIGHT WORKSPACE */
.chat-pane {
  flex: 1;
  background: radial-gradient(circle at top right, rgba(157, 78, 221, 0.08), transparent 40%), var(--bg-chat);
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: relative;
}

.empty-chat-placeholder {
  flex: 1; display: flex; align-items: center; justify-content: center; padding: 32px; text-align: center;
}
.placeholder-content { max-width: 480px; }
.brand-hero {
  width: 112px; height: 112px; margin: 0 auto 18px; border-radius: 28px; overflow: hidden;
  border: 2px solid rgba(199, 125, 255, 0.45); box-shadow: 0 18px 44px rgba(157, 78, 221, 0.35);
}
.brand-hero-img { width: 100%; height: 100%; object-fit: cover; }
.placeholder-content h1 { font-size: 28px; font-weight: 800; margin-bottom: 10px; }
.placeholder-content .subtitle { color: var(--text-secondary); font-size: 14px; line-height: 1.55; margin-bottom: 20px; }
.feature-bullets { display: flex; flex-direction: column; gap: 8px; text-align: left; margin-bottom: 22px; }
.bullet-item { display: flex; align-items: center; gap: 10px; background: var(--bg-surface); padding: 10px 14px; border-radius: 12px; border: 1px solid var(--border-color); font-size: 13px; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

.active-chat-container { display: flex; flex-direction: column; height: 100%; width: 100%; }

.chat-header {
  padding: 11px 18px;
  background: rgba(14, 22, 40, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(2, 6, 23, 0.22);
  z-index: 3;
}
.app-layout.light-theme .chat-header {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}
.chat-target-profile { display: flex; align-items: center; gap: 11px; cursor: pointer; min-width: 0; flex: 1; }
.target-info { min-width: 0; }
.title-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.target-name { font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.uname-badge {
  background: rgba(37, 99, 235, 0.16); color: #60a5fa; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; cursor: copy; border: 1px solid rgba(96, 165, 250, 0.25);
}
.app-layout.light-theme .uname-badge {
  background: rgba(37, 99, 235, 0.1); color: #2563eb; border-color: rgba(37, 99, 235, 0.2);
}
.target-status { font-size: 12px; color: var(--text-secondary); }

.pinned-banner {
  background: rgba(37, 99, 235, 0.12);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 7px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
}

.messages-stage {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.messages-feed {
  flex: 1;
  overflow-y: auto;
  padding: 18px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  scroll-behavior: smooth;
}

.messages-feed.chat-wallpaper {
  background-color: var(--bg-chat);
  background-image:
    radial-gradient(circle at 18% 18%, rgba(56, 189, 248, 0.12) 0%, transparent 44%),
    radial-gradient(circle at 82% 82%, rgba(37, 99, 235, 0.16) 0%, transparent 48%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='136' height='136' viewBox='0 0 136 136'%3E%3Cg fill='none' stroke='%2393c5fd' stroke-opacity='0.075' stroke-width='1.35' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 30c0-6 5-10 12-10h11c7 0 12 4 12 10s-5 10-12 10H31l-7 5 2-6c-2-2-4-5-4-9z'/%3E%3Cpath d='M94 22l3 7 7 1-5 5 1 7-6-3-6 3 1-7-5-5 7-1z'/%3E%3Ccircle cx='34' cy='96' r='10'/%3E%3Cellipse cx='34' cy='96' rx='17' ry='4.5' transform='rotate(-20 34 96)'/%3E%3Cpath d='M86 88c4-5 11-5 14 0 3-5 10-5 14 0 4 6-2 13-14 20-12-7-18-14-14-20z'/%3E%3Cpath d='M64 62l14-6-6 14-3-5z'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat, repeat;
  background-size: auto, auto, 136px 136px;
}
.app-layout.light-theme .messages-feed.chat-wallpaper {
  background-color: #eef3fb;
  background-image:
    radial-gradient(circle at 18% 18%, rgba(37, 99, 235, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 82% 82%, rgba(14, 165, 233, 0.08) 0%, transparent 45%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='136' height='136' viewBox='0 0 136 136'%3E%3Cg fill='none' stroke='%232563eb' stroke-opacity='0.07' stroke-width='1.35' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 30c0-6 5-10 12-10h11c7 0 12 4 12 10s-5 10-12 10H31l-7 5 2-6c-2-2-4-5-4-9z'/%3E%3Cpath d='M94 22l3 7 7 1-5 5 1 7-6-3-6 3 1-7-5-5 7-1z'/%3E%3Ccircle cx='34' cy='96' r='10'/%3E%3Cellipse cx='34' cy='96' rx='17' ry='4.5' transform='rotate(-20 34 96)'/%3E%3Cpath d='M86 88c4-5 11-5 14 0 3-5 10-5 14 0 4 6-2 13-14 20-12-7-18-14-14-20z'/%3E%3Cpath d='M64 62l14-6-6 14-3-5z'/%3E%3C/g%3E%3C/svg%3E");
}

.empty-messages-prompt { margin: auto; background: var(--bg-surface); padding: 12px 18px; border-radius: 14px; border: 1px solid var(--border-color); font-size: 13px; color: var(--text-secondary); }

.msg-row {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  width: 100%;
  padding: 2px 4px;
  border-radius: 12px;
  transition: background 0.14s ease;
}
.msg-row.my { justify-content: flex-end; }
.msg-row.other { justify-content: flex-start; }
.msg-row.selection-active { cursor: pointer; }
.msg-row.selection-active:hover { background: rgba(199, 125, 255, 0.08); }
.msg-row.selected-row { background: rgba(157, 78, 221, 0.22) !important; }

.msg-select-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--neon-orchid);
  background: rgba(11, 9, 20, 0.55);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
  align-self: center;
  cursor: pointer;
}
.msg-row.selected-row .msg-select-check {
  background: var(--neon-grad);
  border-color: transparent;
  box-shadow: 0 0 10px rgba(199, 125, 255, 0.55);
}

.msg-bubble-wrap {
  position: relative;
  display: inline-flex;
  align-items: flex-end;
  max-width: min(540px, 78%);
}
.msg-row.my .msg-bubble-wrap { flex-direction: row-reverse; }

.msg-bubble {
  min-width: 110px;
  background: var(--bubble-other);
  color: var(--text-primary);
  padding: 9px 14px 7px;
  border-radius: 17px;
  border: 1px solid var(--border-color);
  position: relative;
  word-break: break-word;
  box-shadow: 0 3px 12px rgba(2, 6, 23, 0.16);
}
.app-layout.light-theme .msg-bubble {
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}
.msg-row.my .msg-bubble {
  background: var(--bubble-my);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 5px 18px rgba(37, 99, 235, 0.28);
}
.msg-row.my .msg-bubble a { color: #bae6fd; font-weight: 600; }
.msg-row.other .msg-bubble a { color: #60a5fa; font-weight: 600; }
.app-layout.light-theme .msg-row.other .msg-bubble a { color: #2563eb; }
.msg-row.other .msg-bubble.tail { border-top-left-radius: 4px; }
.msg-row.my .msg-bubble.tail { border-top-right-radius: 4px; }
.msg-row.other .msg-bubble.tail::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -7px;
  width: 0;
  height: 0;
  border-top: 9px solid var(--bubble-other);
  border-left: 8px solid transparent;
}
.msg-row.my .msg-bubble.tail::before {
  content: "";
  position: absolute;
  top: 0;
  right: -7px;
  width: 0;
  height: 0;
  border-top: 9px solid #1e40af;
  border-right: 8px solid transparent;
}
.msg-bubble.has-reactions { margin-bottom: 13px; }

.msg-sender-name { font-size: 11.5px; font-weight: 800; color: #60a5fa; margin-bottom: 3px; }
.msg-reply-quote {
  background: rgba(15, 23, 42, 0.22);
  border-left: 3px solid #38bdf8;
  padding: 6px 10px;
  border-radius: 9px;
  font-size: 12px;
  margin-bottom: 6px;
}
.app-layout.light-theme .msg-row.other .msg-reply-quote {
  background: rgba(37, 99, 235, 0.07);
  border-left-color: #2563eb;
}
.msg-row.my .msg-reply-quote {
  background: rgba(255, 255, 255, 0.16);
  border-left-color: #67e8f9;
}
.msg-text { font-size: 14px; line-height: 1.46; white-space: pre-wrap; padding-right: 12px; }
.msg-media-img { max-width: 100%; max-height: 290px; border-radius: 12px; cursor: zoom-in; display: block; margin-bottom: 6px; }
.msg-media-video { max-width: 100%; max-height: 280px; border-radius: 12px; margin-bottom: 6px; }
.msg-sticker-img { width: 132px; height: 132px; object-fit: contain; display: block; margin-bottom: 4px; }
.msg-doc-card {
  display: flex; align-items: center; gap: 10px; background: rgba(0, 0, 0, 0.22); padding: 8px 12px; border-radius: 10px; margin-bottom: 6px;
  text-decoration: none; color: inherit; font-size: 13px; font-weight: 600;
}

/* Pookie Overlapping Bottom Reaction Pill */
.msg-reactions-pill {
  position: absolute;
  bottom: -14px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  z-index: 4;
  transition: transform 0.14s ease, border-color 0.14s ease;
}
.msg-row.my .msg-reactions-pill { left: auto; right: 10px; }
.msg-reactions-pill:hover { transform: scale(1.06); border-color: var(--neon-orchid); }
.msg-reactions-pill.mine {
  border-color: var(--neon-pink);
  background: linear-gradient(135deg, rgba(157, 78, 221, 0.35), rgba(255, 77, 141, 0.28));
}

/* Clean Message Hover Controls (Quick React + Chevron Menu) */
.msg-hover-controls {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.14s ease;
  align-self: center;
  margin: 0 4px;
}
.msg-row:hover .msg-hover-controls,
.msg-bubble-wrap:focus-within .msg-hover-controls {
  opacity: 1;
  pointer-events: auto;
}
.msg-hover-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}
.msg-hover-btn:hover { background: var(--bg-card); color: var(--text-primary); border-color: var(--neon-orchid); }

.msg-meta {
  display: flex; justify-content: flex-end; align-items: center; gap: 5px; font-size: 10.5px; opacity: 0.78; margin-top: 3px;
}

.reply-banner {
  padding: 8px 16px; background: var(--bg-surface); border-top: 1px solid var(--border-color);
  display: flex; justify-content: space-between; align-items: center;
}

.sticker-drawer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 10px 14px;
  max-height: 220px;
  overflow-y: auto;
}
.sticker-drawer-head { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; font-weight: 700; margin-bottom: 8px; }
.quick-emoji-row { display: flex; gap: 8px; margin-bottom: 10px; }
.quick-emoji-row button { font-size: 22px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 10px; padding: 4px 8px; cursor: pointer; }
.custom-stickers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(66px, 1fr)); gap: 8px; }
.sticker-tile { background: var(--bg-card); border-radius: 12px; padding: 6px; text-align: center; cursor: pointer; border: 1px solid var(--border-color); }
.sticker-tile img { width: 48px; height: 48px; object-fit: contain; }

.chat-input-area {
  position: relative;
  padding: 10px 16px 12px;
  background: rgba(14, 22, 40, 0.9);
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--border-color);
}
.app-layout.light-theme .chat-input-area {
  background: rgba(255, 255, 255, 0.92);
}
.input-wrapper {
  display: flex; align-items: center; gap: 6px; background: var(--bg-input); border: 1px solid var(--border-color);
  border-radius: 26px; padding: 4px 6px 4px 10px;
  box-shadow: 0 3px 12px rgba(2, 6, 23, 0.14);
}
.app-layout.light-theme .input-wrapper {
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}
.input-wrapper input[type="text"],
.input-wrapper textarea {
  flex: 1; background: transparent; border: none; outline: none; color: var(--text-primary); font-size: 14px; padding: 8px 4px; font-family: inherit;
  resize: none; max-height: 120px; overflow-y: auto; line-height: 1.4;
}
.send-btn {
  width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); color: #fff; border: none;
  font-size: 16px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.ai-quick-chips { display: flex; gap: 8px; flex-wrap: wrap; padding: 8px 16px; background: var(--bg-surface); border-top: 1px solid var(--border-color); }

/* INSTA & SETTINGS & ADMIN */
.insta-feed-scroll, .settings-scroll { flex: 1; overflow-y: auto; padding: 20px; }
.insta-grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.insta-post-card {
  background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: 18px; overflow: hidden; margin: 0 auto 18px; max-width: 540px;
}
.insta-post-head { display: flex; align-items: center; gap: 10px; padding: 12px; }
.insta-post-media { width: 100%; max-height: 400px; object-fit: cover; display: block; background: #0d0a18; }
.insta-post-body { padding: 12px 14px; }
.insta-actions { display: flex; gap: 14px; margin-bottom: 8px; }
.insta-actions button { background: transparent; border: none; color: var(--text-primary); cursor: pointer; font-size: 15px; font-weight: 700; }

.settings-card {
  background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: 18px; padding: 18px; margin-bottom: 16px; max-width: 720px;
}
.settings-card h3 { font-size: 16px; margin-bottom: 12px; color: var(--neon-orchid); }
.setting-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border-color);
}
.setting-row:last-child { border-bottom: none; }
.setting-row select {
  background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border-color); padding: 6px 10px; border-radius: 8px; font-family: inherit;
}

/* VOICE / VIDEO CALL OVERLAY */
.call-overlay {
  position: fixed; inset: 0; background: rgba(8, 5, 18, 0.94); z-index: 150;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.call-stage {
  width: 100%; max-width: 760px; height: min(640px, 90vh);
  background: linear-gradient(155deg, #1b1136 0%, #0d0819 100%);
  border: 1px solid rgba(199, 125, 255, 0.35); border-radius: 28px;
  display: flex; flex-direction: column; justify-content: space-between; padding: 20px; position: relative; overflow: hidden;
}
.call-top-bar { display: flex; justify-content: space-between; align-items: center; z-index: 5; }
.call-pill { background: rgba(157, 78, 221, 0.25); color: #e0aaff; padding: 6px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.call-media-area { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; }
#remote-video { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; background: #000; }
#local-video { position: absolute; bottom: 14px; right: 14px; width: 150px; height: 112px; object-fit: cover; border-radius: 12px; border: 2px solid #c77dff; z-index: 4; }
.call-avatar-stage { text-align: center; z-index: 2; }
.call-avatar-ring { display: inline-flex; padding: 10px; border-radius: 50%; border: 3px solid rgba(199, 125, 255, 0.55); box-shadow: 0 0 36px rgba(157, 78, 221, 0.45); margin-bottom: 14px; }
.call-timer { font-size: 18px; font-weight: 800; color: var(--online-green); margin-top: 8px; }
.call-controls { display: flex; justify-content: center; gap: 18px; z-index: 5; }
.call-circle-btn {
  width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1); color: #fff; font-size: 22px; cursor: pointer;
}
.call-circle-btn.end { background: #e5253a; border-color: #e5253a; }
.call-action-btn {
  padding: 14px 28px; border-radius: 999px; border: none; font-size: 15px; font-weight: 800; cursor: pointer; color: #fff;
}
.call-action-btn.accept { background: #00c853; }
.call-action-btn.reject { background: #e5253a; }

.pip-call-card {
  position: fixed; bottom: 20px; right: 20px; background: #1e1338; border: 1px solid rgba(199, 125, 255, 0.5);
  border-radius: 16px; padding: 10px 14px; display: flex; align-items: center; gap: 12px; z-index: 140; cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}
.pip-pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--online-green); box-shadow: 0 0 8px var(--online-green); }
.pip-end-btn { background: #e5253a; color: #fff; border: none; padding: 5px 10px; border-radius: 8px; font-weight: 700; cursor: pointer; }

/* STATUS VIEWER */
.status-viewer-card {
  width: 100%; max-width: 440px; height: min(640px, 88vh); background: #141024; border-radius: 22px;
  overflow: hidden; display: flex; flex-direction: column; border: 1px solid rgba(199, 125, 255, 0.35);
}
.status-progress-bar { height: 4px; background: var(--neon-grad); width: 100%; }
.status-viewer-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: rgba(0, 0, 0, 0.35); }
.status-viewer-body { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; font-size: 20px; font-weight: 700; overflow: hidden; }
.status-viewer-body img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; }
.status-viewer-footer { display: flex; justify-content: space-between; padding: 12px 16px; background: rgba(0, 0, 0, 0.35); }

.lightbox-inner { position: relative; max-width: 92vw; max-height: 90vh; }
.lightbox-inner img { max-width: 100%; max-height: 86vh; border-radius: 16px; }
.lightbox-close { position: absolute; top: -36px; right: 0; color: #fff; font-size: 32px; }

/* SHARED BUTTONS / INPUTS / DIALOGS */
.primary-btn {
  flex: 1; background: var(--neon-grad); color: #fff; border: none; padding: 11px 18px; border-radius: 12px;
  font-size: 13.5px; font-weight: 700; cursor: pointer; font-family: inherit; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.primary-btn.full-width { width: 100%; }
.outline-btn {
  flex: 1; background: transparent; color: var(--text-primary); border: 1.5px solid var(--border-color); padding: 10px 16px;
  border-radius: 12px; font-size: 13.5px; font-weight: 600; cursor: pointer; font-family: inherit;
}

.input-group { margin-bottom: 13px; }
.input-group label { display: block; font-size: 12px; font-weight: 600; color: var(--text-secondary); margin-bottom: 5px; }
.input-group input {
  width: 100%; background: var(--bg-card); border: 1px solid var(--border-color); padding: 10px 13px;
  border-radius: 10px; color: var(--text-primary); font-size: 14px; outline: none; font-family: inherit;
}
.input-group input:focus { border-color: var(--neon-orchid); }

.dialog-card {
  width: 100%; max-width: 430px; background: var(--bg-surface); border: 1px solid var(--border-color);
  border-radius: 22px; padding: 22px; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55); color: var(--text-primary);
}
.dialog-card.wide { max-width: 490px; }
.dialog-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.dialog-header h3 { font-size: 17.5px; font-weight: 800; }
.close-btn { background: transparent; border: none; color: var(--text-secondary); font-size: 24px; cursor: pointer; }
.dialog-desc { font-size: 13px; color: var(--text-secondary); margin-bottom: 14px; line-height: 1.45; }
.dialog-footer { display: flex; gap: 10px; margin-top: 18px; }
.linked-badge { font-size: 10px; font-weight: 700; background: rgba(0, 230, 118, 0.16); color: var(--online-green); padding: 2px 7px; border-radius: 8px; white-space: nowrap; }
.auth-footer p { font-size: 11px; color: var(--text-secondary); text-align: center; margin-top: 12px; }
.apk-card { display: flex; align-items: center; gap: 14px; background: var(--bg-card); padding: 14px; border-radius: 14px; margin-bottom: 14px; border: 1px solid var(--border-color); }
.users-list-scroll { max-height: 290px; overflow-y: auto; }
.user-row-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; cursor: pointer; }
.user-row-item:hover { background: var(--bg-card); }
.clickable-uname { color: var(--neon-orchid); font-weight: 700; font-size: 13.5px; margin: 4px 0 10px; cursor: copy; }
.qr-hint { font-size: 12px; color: var(--text-secondary); }
.text-center { text-align: center; }

.empty-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 16px; gap: 10px; color: var(--text-secondary); font-size: 13px; }
.error-banner { background: rgba(255, 77, 141, 0.18); border: 1px solid var(--neon-pink); color: #ffb3cd; font-size: 12px; padding: 8px 12px; border-radius: 10px; margin-bottom: 14px; }
.toast-popup {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: #1e1638; color: #fff;
  border: 1px solid rgba(199, 125, 255, 0.4); padding: 10px 20px; border-radius: 999px; font-size: 13px; font-weight: 600;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.45); z-index: 250; display: none;
}
.spinner { width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, 0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .hero-grid, .download-banner { grid-template-columns: 1fr; padding: 30px 22px; }
  .hero-trust-strip { grid-template-columns: 1fr; }
  .screenshots-grid, .features-grid { grid-template-columns: 1fr; }
  .chip-top, .chip-bottom { display: none; }
}

@media (max-width: 768px) {
  .app-layout { flex-direction: column-reverse; position: relative; }
  .web-nav-rail { width: 100%; height: 60px; flex-direction: row; padding: 4px 8px; border-right: none; border-top: 1px solid var(--border-color); }
  .rail-top, .rail-bottom { flex-direction: row; justify-content: space-around; gap: 2px; }
  .rail-logo-btn { display: none; }
  .rail-btn { width: auto; padding: 4px 8px; }
  .sidebar-pane { width: 100%; max-width: 100%; flex: 1; border-right: none; }
  .chat-pane {
    position: absolute; top: 0; left: 0; width: 100%; height: calc(100% - 60px); z-index: 20;
    transform: translateX(100%); transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .chat-pane.mobile-active { transform: translateX(0); }
  .mobile-only { display: flex !important; }
}
@media (min-width: 769px) { .mobile-only { display: none !important; } }

/* DESKTOP SYNC RING OVERLAY */
.desktop-sync-overlay {
  position: fixed;
  inset: 0;
  z-index: 210;
  background: radial-gradient(circle at center, rgba(32, 20, 62, 0.96), rgba(9, 7, 18, 0.98));
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.desktop-sync-card {
  text-align: center;
  max-width: 390px;
  width: 100%;
  background: rgba(22, 16, 40, 0.9);
  border: 1px solid rgba(199, 125, 255, 0.35);
  border-radius: 28px;
  padding: 32px 26px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.65);
}
.desktop-sync-card h2 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
  color: #ffffff;
}
.desktop-sync-card p {
  font-size: 13px;
  color: #c6bae6;
  margin-bottom: 18px;
  min-height: 20px;
}
.sync-ring-wrap {
  position: relative;
  width: 124px;
  height: 124px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sync-ring-outer {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #c77dff;
  border-right-color: #ff4d8d;
  box-shadow: 0 0 26px rgba(199, 125, 255, 0.45);
  animation: spin 1.1s linear infinite;
}
.sync-ring-inner {
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  border: 2.5px dashed rgba(255, 215, 0, 0.72);
  animation: spinReverse 2.4s linear infinite;
}
@keyframes spinReverse { to { transform: rotate(-360deg); } }
.sync-logo-core {
  width: 82px;
  height: 82px;
  border-radius: 22px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 10px 26px rgba(157, 78, 221, 0.45);
  background: #140b29;
}
.sync-logo-core img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sync-progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}
.sync-progress-fill {
  height: 100%;
  width: 24%;
  border-radius: 999px;
  background: var(--neon-grad);
  transition: width 0.35s ease;
}

/* VERIFIED SEAL & GIFT BOOM CELEBRATION */
.verified-seal {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin-left: 4px;
  flex-shrink: 0;
}
.gift-boom-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 221;
}
.gift-boom-card {
  position: relative;
  z-index: 222;
  border: 1.5px solid rgba(255, 215, 0, 0.45);
  background: radial-gradient(circle at top, #271849, #130e22);
  padding: 28px 24px;
}
.gift-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #ffd700;
  background: rgba(255, 215, 0, 0.14);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.gift-box-btn {
  display: block;
  margin: 8px auto 16px;
  width: 112px;
  height: 112px;
  border-radius: 28px;
  font-size: 62px;
  border: 2px solid rgba(255, 215, 0, 0.45);
  background: linear-gradient(135deg, rgba(157, 78, 221, 0.3), rgba(255, 77, 141, 0.25));
  cursor: pointer;
  animation: giftBounce 1.15s ease-in-out infinite;
}
@keyframes giftBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.06); }
}
.gift-reveal-badge {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(56, 151, 240, 0.16);
  border: 2px solid rgba(56, 151, 240, 0.55);
  box-shadow: 0 0 32px rgba(56, 151, 240, 0.45);
}

/* ADVANCED WEB ADMIN CONSOLE */
.admin-subtabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.admin-subtab-btn {
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.admin-subtab-btn.active {
  background: var(--neon-grad);
  color: #fff;
  border-color: transparent;
}
.admin-user-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 12px;
  max-width: 760px;
}
.admin-user-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.admin-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.admin-mini-btn {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 9px;
  padding: 6px 10px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.admin-mini-btn:hover {
  border-color: var(--neon-orchid);
}
.admin-mini-btn.danger {
  border-color: rgba(255, 77, 141, 0.5);
  color: #ff85b3;
}
.admin-status-chip {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(157, 78, 221, 0.16);
  color: var(--neon-orchid);
}

/* =====================================================
   POOKIE DESKTOP & GROUP RECEIPT / POLL / SEARCH STYLES
   ===================================================== */
.chat-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
}
.chat-search-bar input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 7px 12px;
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
  font-family: inherit;
}
.chat-search-count {
  font-size: 12px;
  color: var(--text-secondary);
  min-width: 38px;
  text-align: center;
  font-weight: 700;
}

.msg-date-separator {
  align-self: center;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  margin: 10px 0 6px;
  box-shadow: 0 2px 8px rgba(2, 6, 23, 0.2);
}
.app-layout.light-theme .msg-date-separator {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(15, 23, 42, 0.08);
  color: #475569;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.msg-bubble.search-hit {
  box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.45);
}
.msg-bubble.search-hit-active {
  box-shadow: 0 0 0 2.5px #ffd700, 0 0 18px rgba(255, 215, 0, 0.35);
}

.msg-tick {
  font-weight: 800;
  cursor: pointer;
}
.msg-tick.delivered {
  color: rgba(255, 255, 255, 0.82);
}
.msg-tick.read {
  color: #67e8f9;
  text-shadow: 0 0 8px rgba(103, 232, 249, 0.55);
}
.msg-star-icon {
  color: #ffd54f;
  font-size: 11px;
}

.poll-card {
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 10px 12px;
  min-width: 240px;
  margin-bottom: 4px;
}
.poll-question {
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 8px;
}
.poll-options-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.poll-option-btn {
  width: 100%;
  text-align: left;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 8px 10px;
  color: inherit;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
}
.poll-option-btn.selected {
  border-color: #4fc3f7;
  background: rgba(79, 195, 247, 0.16);
}
.poll-option-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: rgba(199, 125, 255, 0.25);
  pointer-events: none;
  transition: width 0.2s ease;
}
.poll-option-row {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.poll-meta {
  font-size: 11px;
  opacity: 0.78;
  margin-top: 7px;
}

.mention-popup {
  position: absolute;
  bottom: 100%;
  left: 16px;
  right: 16px;
  max-height: 200px;
  overflow-y: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.45);
  padding: 6px;
  margin-bottom: 6px;
  z-index: 40;
}
.mention-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
}
.mention-item:hover {
  background: var(--bg-card);
}

.receipt-snippet {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 14px;
  font-size: 13px;
}
.receipt-section {
  margin-bottom: 14px;
}
.receipt-section-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--neon-orchid);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.receipt-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 11px;
  background: var(--bg-card);
  margin-bottom: 6px;
}
.receipt-user-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.receipt-time {
  font-size: 11.5px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.group-info-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 12px;
}
.group-info-section h4 {
  font-size: 13px;
  font-weight: 800;
  color: var(--neon-orchid);
  margin-bottom: 8px;
}
.group-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 13px;
}
.group-member-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
}
.group-member-row:last-child {
  border-bottom: none;
}
.group-role-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(157, 78, 221, 0.22);
  color: #e0aaff;
}

/* =====================================================
   FOUNDER & ORIGIN STORY + FAQ SEO SECTIONS
   ===================================================== */
.founder-section {
  background: rgba(255, 255, 255, 0.015);
  border-top: 1px solid rgba(199, 125, 255, 0.12);
  border-bottom: 1px solid rgba(199, 125, 255, 0.12);
}
.founder-card {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 34px;
  background: linear-gradient(155deg, rgba(24, 18, 44, 0.96), rgba(15, 11, 29, 0.98));
  border: 1px solid rgba(199, 125, 255, 0.28);
  border-radius: 28px;
  padding: 34px;
  box-shadow: 0 24px 64px rgba(157, 78, 221, 0.16);
}
.founder-profile-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(199, 125, 255, 0.18);
  border-radius: 22px;
}
.founder-avatar-frame {
  position: relative;
  width: 128px;
  height: 128px;
  margin-bottom: 18px;
}
.founder-avatar-frame img {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  object-fit: cover;
  border: 2.5px solid rgba(199, 125, 255, 0.55);
  box-shadow: 0 14px 36px rgba(157, 78, 221, 0.35);
}
.founder-verified-pill {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: linear-gradient(135deg, #00c853, #00b0ff);
  color: #041821;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(0, 200, 83, 0.35);
}
.founder-profile-col h3 {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}
.founder-role {
  font-size: 13px;
  font-weight: 600;
  color: #c77dff;
  margin-bottom: 14px;
}
.founder-badges {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.founder-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(157, 78, 221, 0.14);
  border: 1px solid rgba(199, 125, 255, 0.25);
  font-size: 12.5px;
  font-weight: 600;
  color: #efe9ff;
}
.founder-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 12px;
  background: rgba(10, 102, 194, 0.22);
  border: 1px solid rgba(56, 189, 248, 0.45);
  font-size: 12.5px;
  font-weight: 700;
  color: #bae6fd;
  text-decoration: none;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}
.founder-social-btn:hover {
  transform: translateY(-2px);
  background: rgba(10, 102, 194, 0.38);
  border-color: #38bdf8;
  color: #ffffff;
}
.founder-social-btn.instagram {
  background: linear-gradient(135deg, rgba(225, 48, 108, 0.22), rgba(157, 78, 221, 0.24));
  border-color: rgba(255, 77, 141, 0.45);
  color: #ffd1e6;
}
.founder-social-btn.instagram:hover {
  background: linear-gradient(135deg, rgba(225, 48, 108, 0.38), rgba(157, 78, 221, 0.4));
  border-color: #ff4d8d;
  color: #ffffff;
}
.founder-story-col h3 {
  font-size: 22px;
  font-weight: 800;
  color: #e0aaff;
  margin-bottom: 12px;
}
.founder-story-col > p {
  color: #d6cdeb;
  font-size: 15px;
  line-height: 1.68;
  margin-bottom: 14px;
}
.journey-timeline {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.journey-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(199, 125, 255, 0.16);
}
.journey-year {
  flex-shrink: 0;
  background: linear-gradient(135deg, #9d4edd, #ff4d8d);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 11px;
  border-radius: 999px;
}
.journey-step strong {
  display: block;
  font-size: 14.5px;
  color: #ffffff;
  margin-bottom: 3px;
}
.journey-step p {
  font-size: 13.5px;
  line-height: 1.55;
  color: #b7abd9;
  margin: 0;
}
.journey-step code {
  background: rgba(157, 78, 221, 0.2);
  padding: 1px 6px;
  border-radius: 6px;
  color: #e0aaff;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.faq-item {
  background: #141024;
  border: 1px solid rgba(199, 125, 255, 0.2);
  border-radius: 22px;
  padding: 24px 26px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.faq-item:hover {
  border-color: rgba(0, 210, 255, 0.45);
  transform: translateY(-2px);
}
.faq-item h3 {
  font-size: 16.5px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}
.faq-item p {
  font-size: 14px;
  line-height: 1.62;
  color: #c9bfe6;
  margin: 0;
}

@media (max-width: 900px) {
  .founder-card {
    grid-template-columns: 1fr;
    padding: 22px;
  }
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .avatar-guides-grid {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   INTERACTIVE 3D FEATURE AVATARS SHOWCASE
   ===================================================== */
.avatar-showcase-section {
  position: relative;
  z-index: 1;
}
.avatar-guides-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.avatar-guide-card {
  display: flex;
  gap: 20px;
  align-items: center;
  background: linear-gradient(155deg, rgba(28, 20, 54, 0.94), rgba(14, 10, 28, 0.96));
  border: 1px solid rgba(199, 125, 255, 0.26);
  border-radius: 26px;
  padding: 22px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.35);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.avatar-guide-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 210, 255, 0.52);
  box-shadow: 0 24px 58px rgba(157, 78, 221, 0.28);
}
.avatar-portrait-wrap {
  position: relative;
  width: 146px;
  flex-shrink: 0;
  text-align: center;
}
.avatar-portrait-wrap img {
  width: 146px;
  height: 146px;
  object-fit: cover;
  border-radius: 24px;
  border: 2px solid rgba(199, 125, 255, 0.5);
  box-shadow: 0 14px 32px rgba(157, 78, 221, 0.32);
  display: block;
}
.avatar-role-pill {
  display: inline-block;
  margin-top: -12px;
  position: relative;
  z-index: 2;
  background: linear-gradient(135deg, #9d4edd, #ff4d8d);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 4px 11px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(157, 78, 221, 0.45);
}
.avatar-speech-bubble {
  flex: 1;
  min-width: 0;
}
.speech-quote {
  position: relative;
  background: rgba(157, 78, 221, 0.14);
  border: 1px solid rgba(199, 125, 255, 0.3);
  border-radius: 16px;
  padding: 11px 14px;
  font-size: 13px;
  line-height: 1.5;
  color: #efe9ff;
  margin-bottom: 12px;
}
.avatar-speech-bubble h3 {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 7px;
}
.avatar-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12.8px;
  color: #c7bce6;
}

@media (max-width: 600px) {
  .avatar-guide-card {
    flex-direction: column;
    text-align: center;
  }
  .avatar-perks {
    text-align: left;
  }
}

/* =====================================================
   POOKIE MULTI-SELECT BAR, FLOATING REACTIONS, CONTEXT MENU & TOASTS
   ===================================================== */
.chat-selection-bar {
  padding: 10px 16px;
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.34), rgba(20, 16, 36, 0.98));
  border-bottom: 1px solid rgba(199, 125, 255, 0.38);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.selection-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: #ffffff;
}
.selection-bar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.selection-action-btn {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.selection-action-btn:hover { border-color: var(--neon-orchid); background: var(--bg-card); }
.selection-action-btn.danger { border-color: rgba(255, 77, 141, 0.55); color: #ff85b3; }

.scroll-bottom-fab {
  position: absolute;
  right: 20px;
  bottom: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  z-index: 10;
}
.scroll-bottom-fab:hover { border-color: var(--neon-orchid); transform: translateY(-2px); }
.scroll-fab-badge {
  position: absolute;
  top: -7px;
  right: -5px;
  background: var(--neon-pink);
  color: #fff;
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 999px;
}

.msg-reaction-popover {
  position: fixed;
  z-index: 190;
  background: var(--bg-surface);
  border: 1px solid rgba(199, 125, 255, 0.42);
  border-radius: 26px;
  padding: 6px 10px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.58);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.reaction-popover-row {
  display: flex;
  align-items: center;
  gap: 4px;
}
.react-emoji-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  font-size: 21px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.14s ease, background 0.14s ease;
}
.react-emoji-btn:hover { transform: scale(1.22); background: var(--bg-card); }
.react-emoji-btn.active {
  background: rgba(199, 125, 255, 0.28);
  box-shadow: 0 0 0 1.5px var(--neon-orchid);
}
.react-plus-btn {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  background: var(--bg-card);
}
.react-ext-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-top: 1px solid var(--border-color);
  padding-top: 6px;
}

.msg-context-menu {
  position: fixed;
  z-index: 195;
  min-width: 185px;
  background: var(--bg-surface);
  border: 1px solid rgba(199, 125, 255, 0.35);
  border-radius: 16px;
  padding: 6px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.62);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.msg-ctx-item {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--text-primary);
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 9px;
}
.msg-ctx-item:hover { background: var(--bg-card); }
.msg-ctx-item.danger { color: #ff7ba5; }

.reactions-modal-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
  margin-bottom: 8px;
}
.reaction-tab-btn {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.reaction-tab-btn.active {
  background: var(--neon-grad);
  color: #ffffff;
  border-color: transparent;
}
.reactor-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 12px;
  background: var(--bg-card);
  margin-bottom: 6px;
}
.reactor-row.clickable { cursor: pointer; }
.reactor-row.clickable:hover { border: 1px solid rgba(255, 77, 141, 0.45); }

.web-notif-toast-stack {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 260;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 340px;
  width: calc(100vw - 36px);
  pointer-events: none;
}
.web-notif-toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 11px;
  background: rgba(22, 16, 42, 0.96);
  backdrop-filter: blur(12px);
  color: #f6f3ff;
  border: 1px solid rgba(199, 125, 255, 0.45);
  border-radius: 16px;
  padding: 11px 14px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
  cursor: pointer;
  animation: slideInNotif 0.22s ease-out;
}
.web-notif-toast:hover { border-color: #00e676; }
@keyframes slideInNotif {
  from { transform: translateX(30px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
.web-notif-title { font-size: 13.5px; font-weight: 800; color: #ffffff; margin-bottom: 2px; }
.web-notif-body { font-size: 12px; color: #cfc6ea; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }

.ai-typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 2px;
}
.ai-typing-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon-orchid);
  animation: aiDotBounce 1.1s infinite ease-in-out;
}
.ai-typing-dots span:nth-child(2) { animation-delay: 0.16s; }
.ai-typing-dots span:nth-child(3) { animation-delay: 0.32s; }
@keyframes aiDotBounce {
  0%, 80%, 100% { transform: scale(0.7); opacity: 0.5; }
  40% { transform: scale(1.15); opacity: 1; }
}

/* =====================================================
   v2.4 POOKIE CHAT EDITORIAL WEBSITE STYLES
   ===================================================== */
.wa-landing {
  background: radial-gradient(circle at top right, rgba(0, 168, 132, 0.16), transparent 42%),
              radial-gradient(circle at 12% 38%, rgba(37, 211, 102, 0.1), transparent 36%),
              #0b141a;
  color: #e9edef;
}
.wa-navbar {
  background: rgba(11, 20, 26, 0.9);
  border-bottom: 1px solid rgba(233, 237, 239, 0.1);
}
.wa-navbar .brand-wordmark {
  background: linear-gradient(90deg, #ffffff 30%, #25d366 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.btn-download-wa {
  position: relative;
  overflow: hidden;
  background: #25d366;
  color: #0b141a;
  border: 1px solid #25d366;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.28);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn-download-wa:hover {
  background: #3be079;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.38);
}
.btn-outline-wa {
  background: rgba(255, 255, 255, 0.04);
  color: #e9edef;
  border: 1.5px solid rgba(233, 237, 239, 0.28);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  transition: background 0.16s, border-color 0.16s, transform 0.16s;
}
.btn-outline-wa:hover {
  background: rgba(37, 211, 102, 0.12);
  border-color: #25d366;
  transform: translateY(-1px);
}
.hero-card-wa {
  background: linear-gradient(145deg, #111b21 0%, #0d231e 55%, #0b141a 100%);
  border: 1px solid rgba(37, 211, 102, 0.22);
  border-radius: 32px;
  padding: 52px 46px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: center;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
}
.hero-pill-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 211, 102, 0.14);
  border: 1px solid rgba(37, 211, 102, 0.35);
  color: #7bf0a5;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 18px;
}
.hero-card-wa .hero-copy h1 span {
  background: linear-gradient(135deg, #25d366 0%, #7bf0a5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-visual-wa {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.wa-preview-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.wa-phone {
  border-color: rgba(37, 211, 102, 0.45);
  box-shadow: 0 26px 64px rgba(0, 168, 132, 0.24);
}
.wa-chat-bubble-float {
  position: absolute;
  max-width: 245px;
  background: #202c33;
  color: #e9edef;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 10px 13px;
  font-size: 12px;
  line-height: 1.45;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.48);
  z-index: 3;
}
.wa-chat-bubble-float strong { display: block; color: #25d366; font-size: 11px; margin-bottom: 2px; }
.wa-chat-bubble-float small { display: block; text-align: right; font-size: 10px; opacity: 0.72; margin-top: 3px; }
.wa-chat-bubble-float.incoming { top: 24px; left: -34px; border-top-left-radius: 4px; }
.wa-chat-bubble-float.outgoing { bottom: 26px; right: -28px; background: #005c4b; border-top-right-radius: 4px; }
.editorial-strip-section {
  border-top: 1px solid rgba(233, 237, 239, 0.08);
  border-bottom: 1px solid rgba(233, 237, 239, 0.08);
  background: #111b21;
}
.editorial-statement {
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}
.editorial-statement h2 {
  font-size: clamp(22px, 2.8vw, 31px);
  font-weight: 800;
  line-height: 1.32;
  color: #ffffff;
  margin-bottom: 10px;
}
.editorial-statement p { color: #9ab0ba; font-size: 14.5px; }
.editorial-statement code { background: rgba(37, 211, 102, 0.16); color: #7bf0a5; padding: 2px 7px; border-radius: 6px; }
.wa-landing .section-kicker { color: #25d366; }
.wa-download-banner {
  background: linear-gradient(135deg, #111b21 0%, #0b2e26 100%);
  border-color: rgba(37, 211, 102, 0.35);
}
.download-badge-card { text-align: center; }

/* =====================================================
   POOKIE WEB WORKSPACE: SIDEBAR MENUS, WALLPAPERS, TABS
   ===================================================== */
.chat-item-more-btn {
  opacity: 0;
  background: var(--bg-surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.14s ease;
}
.chat-item:hover .chat-item-more-btn { opacity: 1; }
.chat-item-badges { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; }
.chat-pin-icon { font-size: 11px; opacity: 0.78; }

.composer-attach-menu {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 44px;
  min-width: 195px;
  background: var(--bg-surface);
  border: 1px solid rgba(199, 125, 255, 0.36);
  border-radius: 16px;
  padding: 6px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.6);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.emoji-cat-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.mini-cat-btn {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.mini-cat-btn.active { background: var(--neon-grad); color: #fff; border-color: transparent; }

.quick-emoji-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}
.quick-emoji-row button {
  font-size: 21px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 4px 8px;
  cursor: pointer;
}
.quick-emoji-row button:hover { transform: scale(1.1); }

/* Chat Info Tabs & Shared Media Gallery */
.chat-info-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}
.info-media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.info-media-tile {
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  cursor: pointer;
}
.info-media-tile img, .info-media-tile video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Wallpaper Presets */
.messages-feed.wp-sapphire {
  background-color: #08101f !important;
  background-image:
    radial-gradient(circle at 18% 18%, rgba(56, 189, 248, 0.14) 0%, transparent 45%),
    radial-gradient(circle at 82% 82%, rgba(37, 99, 235, 0.18) 0%, transparent 48%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='136' height='136' viewBox='0 0 136 136'%3E%3Cg fill='none' stroke='%2393c5fd' stroke-opacity='0.075' stroke-width='1.35' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 30c0-6 5-10 12-10h11c7 0 12 4 12 10s-5 10-12 10H31l-7 5 2-6c-2-2-4-5-4-9z'/%3E%3Cpath d='M94 22l3 7 7 1-5 5 1 7-6-3-6 3 1-7-5-5 7-1z'/%3E%3Ccircle cx='34' cy='96' r='10'/%3E%3Cellipse cx='34' cy='96' rx='17' ry='4.5' transform='rotate(-20 34 96)'/%3E%3Cpath d='M86 88c4-5 11-5 14 0 3-5 10-5 14 0 4 6-2 13-14 20-12-7-18-14-14-20z'/%3E%3Cpath d='M64 62l14-6-6 14-3-5z'/%3E%3C/g%3E%3C/svg%3E") !important;
  background-repeat: no-repeat, no-repeat, repeat !important;
  background-size: auto, auto, 136px 136px !important;
}
.app-layout.light-theme .messages-feed.wp-sapphire {
  background-color: #eef3fb !important;
  background-image:
    radial-gradient(circle at 18% 18%, rgba(37, 99, 235, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 82% 82%, rgba(14, 165, 233, 0.08) 0%, transparent 45%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='136' height='136' viewBox='0 0 136 136'%3E%3Cg fill='none' stroke='%232563eb' stroke-opacity='0.075' stroke-width='1.35' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 30c0-6 5-10 12-10h11c7 0 12 4 12 10s-5 10-12 10H31l-7 5 2-6c-2-2-4-5-4-9z'/%3E%3Cpath d='M94 22l3 7 7 1-5 5 1 7-6-3-6 3 1-7-5-5 7-1z'/%3E%3Ccircle cx='34' cy='96' r='10'/%3E%3Cellipse cx='34' cy='96' rx='17' ry='4.5' transform='rotate(-20 34 96)'/%3E%3Cpath d='M86 88c4-5 11-5 14 0 3-5 10-5 14 0 4 6-2 13-14 20-12-7-18-14-14-20z'/%3E%3Cpath d='M64 62l14-6-6 14-3-5z'/%3E%3C/g%3E%3C/svg%3E") !important;
}
.messages-feed.wp-emerald {
  background-color: #0b141a !important;
  background-image: radial-gradient(circle at 20% 25%, rgba(0, 168, 132, 0.14) 0%, transparent 48%), radial-gradient(circle at 80% 75%, rgba(37, 211, 102, 0.08) 0%, transparent 45%) !important;
}
.messages-feed.wp-ocean {
  background-color: #081523 !important;
  background-image: radial-gradient(circle at 30% 20%, rgba(56, 189, 248, 0.16) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(37, 99, 235, 0.14) 0%, transparent 48%) !important;
}
.messages-feed.wp-sunset {
  background-color: #1c0f1b !important;
  background-image: radial-gradient(circle at 25% 25%, rgba(244, 63, 94, 0.18) 0%, transparent 48%), radial-gradient(circle at 80% 75%, rgba(251, 146, 60, 0.12) 0%, transparent 48%) !important;
}
.messages-feed.wp-clean {
  background-image: none !important;
}
.wallpaper-swatch-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.wallpaper-swatch {
  padding: 7px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.wallpaper-swatch.active { border-color: #25d366; box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.25); }

/* =====================================================
   POOKIE FEED (POSTS, REELS, STORIES & CREATORS) + CHANNELS
   ===================================================== */
.feed-subtabs-bar {
  display: flex;
  gap: 8px;
  padding: 10px 18px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
}
.feed-tab-btn {
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.feed-tab-btn.active {
  background: var(--neon-grad);
  color: #ffffff;
  border-color: transparent;
}
.feed-story-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
}
.feed-story-ring {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 68px;
  flex-shrink: 0;
  cursor: pointer;
}
.feed-story-ring .ring-border {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  padding: 2.5px;
  background: linear-gradient(135deg, #25d366, #9d4edd, #ff4d8d);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feed-story-ring .ring-border.add-story {
  background: var(--bg-card);
  border: 1.5px dashed var(--neon-orchid);
}
.feed-story-ring small {
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 68px;
}

.feed-reel-card {
  position: relative;
  background: #07060d;
  border: 1px solid rgba(199, 125, 255, 0.28);
  border-radius: 22px;
  overflow: hidden;
  max-width: 440px;
  margin: 0 auto 22px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.48);
}
.feed-reel-video {
  width: 100%;
  max-height: 520px;
  background: #000;
  display: block;
  object-fit: contain;
}
.feed-reel-badge {
  display: inline-block;
  background: linear-gradient(135deg, #ff4d8d, #9d4edd);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}
.feed-pinned-chip {
  display: inline-block;
  background: rgba(37, 211, 102, 0.18);
  color: #7bf0a5;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
}
.feed-post-stats {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.feed-creator-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: var(--bg-card);
  border-radius: 16px;
  margin-bottom: 14px;
}
.feed-creator-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  text-align: center;
  margin-bottom: 12px;
}
.feed-creator-stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 8px 6px;
  cursor: pointer;
}
.feed-creator-stat-box strong { display: block; font-size: 16px; }
.feed-creator-stat-box small { font-size: 11px; color: var(--text-secondary); }

.channel-post-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 12px;
  max-width: 680px;
}
.starred-row-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 10px;
  cursor: pointer;
  max-width: 720px;
}
.starred-row-card:hover { border-color: var(--neon-orchid); }

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(125px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.admin-stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 10px 12px;
  text-align: center;
}
.admin-stat-box strong { display: block; font-size: 19px; color: #25d366; }
.admin-stat-box small { font-size: 11px; color: var(--text-secondary); }

@media (max-width: 960px) {
  .hero-card-wa { grid-template-columns: 1fr; padding: 30px 22px; }
  .wa-chat-bubble-float { display: none; }
}

/* =====================================================
   v2.6 POOKIE CHAT & FEED POLISH
   ===================================================== */
.feed-story-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  padding: 2.5px;
  background: linear-gradient(135deg, #25d366, #9d4edd, #ff4d8d);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 18px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}
.feed-story-circle img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2px solid var(--bg-app);
}
.feed-story-name {
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 68px;
  text-align: center;
}

.msg-unread-divider {
  align-self: center;
  margin: 10px auto;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(37, 211, 102, 0.16);
  border: 1px solid rgba(37, 211, 102, 0.4);
  color: #7bf0a5;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.msg-location-card,
.msg-contact-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 6px;
  min-width: 210px;
}
.msg-location-title,
.msg-contact-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}
.msg-location-sub,
.msg-contact-sub {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}
.msg-card-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 2px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(37, 211, 102, 0.18);
  color: #7bf0a5;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.msg-card-action-link:hover {
  background: rgba(37, 211, 102, 0.28);
}

.media-caption-preview-box {
  width: 100%;
  max-height: 320px;
  border-radius: 14px;
  background: #07060d;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.media-caption-preview-box img,
.media-caption-preview-box video {
  max-width: 100%;
  max-height: 310px;
  object-fit: contain;
  display: block;
}

.story-composer-preview {
  width: 100%;
  min-height: 190px;
  max-height: 280px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  overflow: hidden;
  position: relative;
}
.story-composer-preview img {
  max-width: 100%;
  max-height: 260px;
  border-radius: 12px;
  object-fit: contain;
}
.story-bg-swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
}
.story-bg-swatch.active {
  border-color: #ffffff;
  transform: scale(1.12);
}

.feed-hashtag-bar {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 2px 2px 12px;
  margin-bottom: 10px;
}
.feed-hashtag-chip {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
}
.feed-hashtag-chip.active {
  background: var(--neon-grad);
  border-color: transparent;
  color: #ffffff;
}
.feed-inline-hashtag {
  background: transparent;
  border: none;
  color: #38bdf8;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  font-size: inherit;
  font-family: inherit;
}
.feed-media-wrap {
  position: relative;
  overflow: hidden;
}
.feed-heart-burst {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  pointer-events: none;
  animation: feedHeartPop 0.65s ease-out forwards;
}
@keyframes feedHeartPop {
  0% { transform: scale(0.4); opacity: 0; }
  35% { transform: scale(1.15); opacity: 0.96; }
  100% { transform: scale(1.35); opacity: 0; }
}

@media (max-width: 768px) {
  .chat-item-more-btn { opacity: 0.85; }
  .dialog-card, .dialog-card.wide {
    width: calc(100vw - 24px);
    max-width: 96vw;
    padding: 16px;
  }
  .insta-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .feed-creator-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .web-nav-rail {
    overflow-x: auto;
  }
}

/* =====================================================
   v2.7 ADVANCED DESKTOP MODE (3-PANEL, D&D UPLOAD, GIF, GROUP CALLS, 2FA)
   ===================================================== */
.network-connectivity-bar {
  position: fixed;
  top: 0;
  left: 72px;
  right: 0;
  z-index: 220;
  padding: 7px 16px;
  font-size: 12.5px;
  font-weight: 700;
  text-align: center;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.network-connectivity-bar.offline {
  background: rgba(225, 29, 72, 0.92);
  color: #ffffff;
}
.network-connectivity-bar.reconnecting {
  background: rgba(217, 119, 6, 0.92);
  color: #ffffff;
}

.skeleton-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 6px;
}
.skeleton-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px;
  border-radius: 14px;
  background: var(--bg-card);
}
.skeleton-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.06) 25%, rgba(255,255,255,0.14) 50%, rgba(255,255,255,0.06) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.4s infinite linear;
}
.skeleton-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.skeleton-line {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,0.06) 25%, rgba(255,255,255,0.14) 50%, rgba(255,255,255,0.06) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.4s infinite linear;
}
.skeleton-line.w50 { width: 50%; }
.skeleton-line.w60 { width: 60%; }
.skeleton-line.w70 { width: 70%; }
.skeleton-line.w75 { width: 75%; }
.skeleton-line.w80 { width: 80%; }
.skeleton-line.w85 { width: 85%; }
@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.right-info-pane {
  width: 340px;
  flex-shrink: 0;
  border-left: 1px solid var(--border-color);
  background: var(--bg-sidebar);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideInRightPane 0.18s ease-out;
}
@keyframes slideInRightPane {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: translateX(0); }
}
.right-info-header {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-surface);
}
.right-info-header h3 {
  font-size: 15px;
  font-weight: 800;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.right-info-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
}

@media (max-width: 1200px) and (min-width: 1024px) {
  .sidebar-pane { width: 295px; }
  .right-info-pane { width: 285px; }
}
@media (max-width: 1023px) {
  .right-info-pane { display: none !important; }
  .network-connectivity-bar { left: 0; }
}

.drag-drop-overlay {
  position: absolute;
  inset: 0;
  z-index: 80;
  background: rgba(12, 8, 28, 0.84);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.drag-drop-card {
  width: min(440px, 90%);
  border: 2px dashed var(--neon-orchid);
  border-radius: 24px;
  background: rgba(29, 20, 56, 0.92);
  padding: 36px 26px;
  text-align: center;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.55);
}
.drag-drop-card h3 { font-size: 17px; margin: 10px 0 6px; color: #ffffff; }
.drag-drop-card p { font-size: 12.5px; color: var(--text-secondary); margin: 0; }

.upload-queue-bar {
  padding: 8px 14px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.upload-queue-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  background: var(--bg-card);
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}
.upload-progress-track {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.upload-progress-fill {
  height: 100%;
  background: var(--neon-grad);
  transition: width 0.2s ease;
}

.gif-search-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 7px 11px;
  color: var(--text-primary);
  font-size: 12.5px;
  outline: none;
  margin-bottom: 8px;
  font-family: inherit;
}
.gif-tile {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.14s ease, border-color 0.14s ease;
}
.gif-tile:hover { transform: scale(1.04); border-color: var(--neon-orchid); }
.gif-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gif-tile-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 4px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.call-conn-badge {
  background: rgba(37, 211, 102, 0.18);
  border: 1px solid rgba(37, 211, 102, 0.45);
  color: #7bf0a5;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
}
.call-output-select {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11.5px;
  max-width: 170px;
  font-family: inherit;
}
.group-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  width: 100%;
  height: 100%;
  padding: 8px;
}
.group-video-tile {
  position: relative;
  background: #0a0714;
  border: 1px solid rgba(199, 125, 255, 0.35);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
}
.group-video-tile video { width: 100%; height: 100%; object-fit: cover; }
.group-video-label {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 8px;
}

.sv-viewers-drawer {
  background: rgba(16, 12, 30, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  max-height: 160px;
  overflow-y: auto;
  padding: 10px 14px;
  color: #ffffff;
  font-size: 12.5px;
}
.sv-react-strip {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 6px 12px;
}
.sv-react-strip button {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 18px;
  cursor: pointer;
}
.sv-react-strip button:hover { transform: scale(1.15); background: rgba(199, 125, 255, 0.3); }

.msg-event-card {
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(199, 125, 255, 0.36);
  border-radius: 14px;
  padding: 11px 13px;
  min-width: 230px;
  margin-bottom: 6px;
}
.msg-event-title { font-size: 14px; font-weight: 800; color: #ffffff; margin-bottom: 4px; }
.msg-event-meta { font-size: 12px; color: var(--text-secondary); line-height: 1.45; }
.event-rsvp-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 9px; }
.event-rsvp-btn {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.event-rsvp-btn.active {
  background: var(--neon-grad);
  border-color: transparent;
  color: #ffffff;
}

.shortcuts-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.shortcut-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  font-size: 13px;
  font-weight: 600;
}
.shortcut-row kbd {
  background: var(--bg-surface);
  border: 1px solid rgba(199, 125, 255, 0.45);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--neon-orchid);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.load-older-btn {
  align-self: center;
  margin: 6px auto 12px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.load-older-btn:hover { border-color: var(--neon-orchid); }

/* =========================================================
   360° 3D POOKIE CARD & INVITE FRIENDS
   ========================================================= */
.pookie-card-stage {
  perspective: 1350px;
  width: 100%;
  max-width: 390px;
  margin: 0 auto 14px;
  user-select: none;
  touch-action: none;
  cursor: grab;
}
.pookie-card-stage:active { cursor: grabbing; }
.pookie-card-stage.compact {
  max-width: 310px;
  margin: 4px auto 8px;
}

.pookie-card-3d {
  position: relative;
  width: 100%;
  aspect-ratio: 1.586 / 1;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.08s linear;
}
.pookie-card-3d.smooth-anim {
  transition: transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
}

.pookie-card-face {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.35);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
}
.pookie-card-stage.compact .pookie-card-face {
  border-radius: 15px;
  padding: 12px 13px;
}

.pookie-card-back {
  transform: rotateY(180deg);
}

/* Luxury Metallic / Gem Tiers */
.pookie-card-face.tier-golden {
  background: linear-gradient(135deg, #2b1d02 0%, #7d5608 26%, #e7b84b 54%, #9c6c0b 78%, #241600 100%);
  border-color: rgba(255, 224, 130, 0.75);
}
.pookie-card-face.tier-diamond {
  background: linear-gradient(135deg, #0b1c36 0%, #1d4e89 28%, #90e0ef 56%, #00b4d8 78%, #07142b 100%);
  border-color: rgba(186, 244, 255, 0.85);
}
.pookie-card-face.tier-platinum {
  background: linear-gradient(135deg, #1b212c 0%, #4e5968 30%, #e5e9f0 56%, #6f7c8e 78%, #161b24 100%);
  border-color: rgba(241, 245, 249, 0.78);
}
.pookie-card-face.tier-sapphire {
  background: linear-gradient(135deg, #090e38 0%, #1e3a8a 30%, #60a5fa 56%, #2563eb 78%, #060b28 100%);
  border-color: rgba(147, 197, 253, 0.75);
}
.pookie-card-face.tier-ruby {
  background: linear-gradient(135deg, #2b0312 0%, #881337 28%, #fb7185 55%, #be123c 78%, #21010d 100%);
  border-color: rgba(254, 205, 211, 0.75);
}
.pookie-card-face.tier-obsidian {
  background: linear-gradient(135deg, #090710 0%, #261844 32%, #7c3aed 56%, #1d1332 78%, #06040a 100%);
  border-color: rgba(199, 125, 255, 0.72);
}

.pookie-card-sheen {
  position: absolute;
  inset: -40%;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.24) 48%, rgba(255, 255, 255, 0.05) 54%, transparent 66%);
  pointer-events: none;
  transform: translateX(-18%) rotate(8deg);
}

.pookie-card-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pookie-card-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}
.pookie-card-brand img {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  object-fit: cover;
}
.pookie-card-stage.compact .pookie-card-brand img {
  width: 16px;
  height: 16px;
}

.pookie-card-tier-badge {
  background: rgba(0, 0, 0, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.36);
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.pookie-card-mid {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 13px;
}

.pookie-card-avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 22px;
  background: rgba(0, 0, 0, 0.32);
}
.pookie-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pookie-card-stage.compact .pookie-card-avatar {
  width: 46px;
  height: 46px;
  font-size: 17px;
}

.pookie-card-holder {
  min-width: 0;
  flex: 1;
}
.pookie-card-name {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 5px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pookie-card-stage.compact .pookie-card-name { font-size: 14px; }

.pookie-card-handle {
  font-size: 12.5px;
  font-weight: 700;
  opacity: 0.92;
  margin-top: 2px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}
.pookie-card-bio {
  font-size: 11px;
  opacity: 0.88;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.pookie-card-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}
.pookie-card-meta-pill {
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 9px;
  padding: 4px 8px;
  font-size: 10.5px;
  font-weight: 700;
  backdrop-filter: blur(4px);
}
.pookie-card-chip {
  width: 34px;
  height: 24px;
  border-radius: 6px;
  background: linear-gradient(135deg, #fde68a, #f59e0b 55%, #b45309);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.14);
}
.pookie-card-stage.compact .pookie-card-chip { width: 26px; height: 18px; }

.pookie-card-back-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
}
.pookie-card-qr-box {
  background: #ffffff;
  padding: 7px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pookie-card-qr-box img,
.pookie-card-qr-box canvas {
  display: block;
  width: 106px !important;
  height: 106px !important;
}
.pookie-card-stage.compact .pookie-card-qr-box {
  padding: 5px;
  border-radius: 9px;
}
.pookie-card-stage.compact .pookie-card-qr-box img,
.pookie-card-stage.compact .pookie-card-qr-box canvas {
  width: 78px !important;
  height: 78px !important;
}

.pookie-tier-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 12px;
}
.pookie-tier-pill {
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-primary);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.pookie-tier-pill.active {
  background: var(--neon-grad);
  border-color: transparent;
  color: #ffffff;
}

.pookie-bubble-card-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.pookie-bubble-card-btn {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(0, 0, 0, 0.28);
  color: #ffffff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.pookie-bubble-card-btn:hover { background: rgba(124, 58, 237, 0.55); }

.invite-banner-preview-box {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  margin-bottom: 12px;
  max-height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.invite-banner-preview-box img {
  width: 100%;
  max-height: 210px;
  object-fit: cover;
  display: block;
}
.pending-qr-redirect-banner {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.28), rgba(236, 72, 153, 0.22));
  border: 1px solid rgba(199, 125, 255, 0.55);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 12.5px;
  line-height: 1.45;
  color: #ffffff;
  text-align: center;
}

/* =====================================================
   MOBILE NAVIGATION DRAWER & BIG-SCREEN LAUNCH TIMER
   ===================================================== */
.mobile-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(233, 237, 239, 0.24);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  flex-shrink: 0;
}
.mobile-nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: #ffffff;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.mobile-nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-nav-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav-drawer {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 10px 18px 16px;
  background: rgba(11, 20, 26, 0.98);
  border-top: 1px solid rgba(233, 237, 239, 0.1);
}
.mobile-nav-drawer.open { display: flex; }
.mobile-nav-drawer a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: #e9edef;
  font-size: 14.5px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.mobile-nav-drawer a:hover {
  background: rgba(37, 211, 102, 0.14);
  border-color: rgba(37, 211, 102, 0.35);
}

.banner-dl-btn {
  padding: 7px 16px !important;
  font-size: 12.5px !important;
  white-space: nowrap;
}

.launch-banner-festive {
  background: linear-gradient(90deg, #1b1038 0%, #2b124d 50%, #0e2438 100%) !important;
  border-bottom: 1px solid rgba(251, 191, 36, 0.35) !important;
}

/* BIG-SCREEN LAUNCH TIMER SHOWCASE */
.launch-bigscreen-section {
  position: relative;
  z-index: 1;
  max-width: 1220px;
  margin: 0 auto;
  padding: 28px 24px 0;
}
.launch-bigscreen-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  padding: 32px 34px 28px;
  background:
    radial-gradient(circle at 12% 15%, rgba(251, 191, 36, 0.16), transparent 44%),
    radial-gradient(circle at 88% 82%, rgba(56, 189, 248, 0.18), transparent 45%),
    linear-gradient(140deg, #0b1428 0%, #191136 52%, #0a1b24 100%);
  border: 1.5px solid rgba(251, 191, 36, 0.42);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.launch-bigscreen-glow {
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at center, rgba(199, 125, 255, 0.12), transparent 60%);
  pointer-events: none;
}
.launch-bigscreen-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.launch-pill-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.launch-live-tag {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.7px;
  color: #fde68a;
  text-transform: uppercase;
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.32);
  padding: 5px 12px;
  border-radius: 999px;
}
.launch-sync-badge {
  font-size: 11px;
  font-weight: 700;
  color: #69f0ae;
  background: rgba(0, 230, 118, 0.12);
  border: 1px solid rgba(0, 230, 118, 0.34);
  padding: 5px 11px;
  border-radius: 999px;
}
.launch-date-pill {
  font-size: 12px;
  font-weight: 800;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.18);
  border: 1px solid rgba(251, 191, 36, 0.45);
  color: #fef3c7;
}
.launch-bigscreen-head {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-bottom: 22px;
}
.launch-bigscreen-head h2 {
  font-size: clamp(24px, 3.6vw, 40px);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.6px;
  margin-bottom: 6px;
}
.launch-bigscreen-head h2 span {
  background: linear-gradient(135deg, #fde68a 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.launch-bigscreen-head p {
  font-size: 14.5px;
  color: #cbd5e1;
}

.bigscreen-countdown-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  max-width: 920px;
  margin: 0 auto 20px;
}
.bigscreen-tile {
  background: linear-gradient(180deg, rgba(8, 14, 29, 0.9), rgba(15, 23, 42, 0.94));
  border: 1px solid rgba(253, 230, 138, 0.32);
  border-radius: 22px;
  padding: 20px 12px;
  text-align: center;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.bigscreen-num {
  display: block;
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #fef08a 0%, #ff8fab 50%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.bigscreen-lbl {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #9fb2d4;
}
.bigscreen-sep {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  color: rgba(253, 230, 138, 0.72);
  text-align: center;
}

.launch-progress-track {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto 18px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.launch-progress-fill {
  height: 100%;
  width: 65%;
  border-radius: 999px;
  background: linear-gradient(90deg, #fde68a, #25d366, #38bdf8);
  transition: width 0.6s ease;
}

.launch-bigscreen-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.countdown-status-line {
  font-size: 13px;
  color: #dbeafe;
  font-weight: 600;
}
.launch-bigscreen-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-card-festive {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.14), transparent 42%),
    radial-gradient(circle at bottom left, rgba(157, 78, 221, 0.22), transparent 48%),
    linear-gradient(145deg, #111b21 0%, #0f1b2e 52%, #0b141a 100%) !important;
  border: 1px solid rgba(251, 191, 36, 0.28) !important;
}
.founder-badge-chip {
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #fde68a !important;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

/* =====================================================
   FOUNDER SPOTLIGHT: 360 POOKIE CARD + INTERACTIVE CARDS
   ===================================================== */
.founder-spotlight-section {
  padding: 28px 0 42px;
}
.founder-spotlight-card {
  background: linear-gradient(145deg, rgba(19, 27, 46, 0.95), rgba(29, 17, 51, 0.94));
  border: 1px solid rgba(199, 125, 255, 0.3);
  border-radius: 28px;
  padding: 34px 32px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: start;
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.36);
}
.founder-spotlight-left h2 {
  font-size: clamp(23px, 2.8vw, 30px);
  font-weight: 800;
  margin: 8px 0 12px;
  color: #ffffff;
}
.founder-spotlight-left h2 span {
  background: linear-gradient(135deg, #fde68a 0%, #c77dff 55%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.founder-lead {
  font-size: 15px;
  line-height: 1.65;
  color: #dbeafe;
  margin-bottom: 12px;
}
.founder-clarification {
  font-size: 13px;
  line-height: 1.55;
  color: #fde68a;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 12px;
  padding: 10px 13px;
  margin-bottom: 18px;
}

/* Interactive Identity & Social Cards (Replaces Plain Links) */
.founder-identity-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}
.founder-identity-card {
  width: 100%;
  text-align: left;
  text-decoration: none;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 16px;
  background: rgba(8, 14, 29, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.24);
  color: #ffffff;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.founder-identity-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.36);
}
.founder-identity-card.is-pookie-id {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.26), rgba(37, 99, 235, 0.24));
  border-color: rgba(253, 230, 138, 0.55);
}
.founder-identity-card.is-pookie-id:hover { border-color: #fde68a; }
.founder-identity-card.is-instagram:hover { border-color: #f472b6; }
.founder-identity-card.is-linkedin:hover { border-color: #38bdf8; }
.founder-identity-card.is-zyapa:hover { border-color: #25d366; }

.fid-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.fid-card-body {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fid-card-kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.7px;
  color: #fde68a;
  text-transform: uppercase;
}
.fid-card-body strong {
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fid-card-body small {
  font-size: 11.5px;
  color: #9fb2d4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fid-card-arrow {
  font-size: 16px;
  font-weight: 800;
  color: #cbd5e1;
  flex-shrink: 0;
}

.founder-spotlight-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.founder-360-showcase-box {
  background: rgba(8, 13, 26, 0.78);
  border: 1px solid rgba(253, 230, 138, 0.32);
  border-radius: 22px;
  padding: 16px;
}
.founder-360-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
}
.founder-360-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 8px;
}
.founder-mini-btn {
  padding: 7px 12px !important;
  font-size: 12px !important;
}

.ecosystem-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.ecosystem-mini-card {
  background: rgba(8, 14, 29, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  padding: 14px 13px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ecosystem-mini-card .eco-icon { font-size: 22px; }
.ecosystem-mini-card strong { font-size: 14px; color: #ffffff; }
.ecosystem-mini-card small { font-size: 11.5px; line-height: 1.45; color: #9fb2d4; }

.admin-stat-box.metric-highlight {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.22), rgba(37, 99, 235, 0.18));
  border-color: rgba(199, 125, 255, 0.48);
}
.admin-stat-box.metric-highlight strong { color: #fde68a; }

/* =====================================================
   MOBILE & TABLET RESPONSIVE DESIGN (360px - 1024px)
   ===================================================== */
@media (max-width: 960px) {
  .mobile-nav-toggle { display: inline-flex; }
  .nav-inner { padding: 11px 16px; gap: 10px; }
  .brand-wordmark { font-size: 17.5px; }
  .brand-icon-wrap { width: 36px; height: 36px; border-radius: 10px; }
  .hero-section { padding: 24px 16px 42px; }
  .hero-card-wa { grid-template-columns: 1fr; padding: 26px 20px; gap: 26px; }
  .section-container { padding: 48px 16px; }
  .founder-spotlight-card { grid-template-columns: 1fr; padding: 24px 20px; }
  .launch-bigscreen-section { padding: 18px 16px 0; }
  .launch-bigscreen-card { padding: 24px 18px 22px; border-radius: 24px; }
  .download-banner { grid-template-columns: 1fr; padding: 28px 20px; gap: 24px; }
  .download-logo-img { width: 132px; height: 132px; border-radius: 26px; }
  .screenshots-grid, .features-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .app-layout {
    height: 100dvh;
    flex-direction: column-reverse;
    position: relative;
  }
  .web-nav-rail {
    width: 100%;
    height: 62px;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    padding: 4px 6px;
    border-right: none;
    border-top: 1px solid var(--border-color);
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    gap: 2px;
  }
  .web-nav-rail::-webkit-scrollbar { display: none; }
  .rail-top, .rail-bottom {
    flex-direction: row;
    width: auto;
    gap: 2px;
    flex-shrink: 0;
  }
  .rail-logo-btn { display: none; }
  .rail-btn {
    width: auto;
    min-width: 54px;
    padding: 5px 8px;
    flex-shrink: 0;
  }
  .sidebar-pane { width: 100%; max-width: 100%; flex: 1; border-right: none; min-height: 0; }
  .chat-pane {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100dvh - 62px);
    z-index: 20;
    transform: translateX(100%);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .chat-pane.mobile-active { transform: translateX(0); }
  .dialog-card, .dialog-card.wide {
    max-height: 92dvh;
    overflow-y: auto;
    padding: 18px 16px;
  }
  .legal-card { padding: 22px 16px; }
  .footer-inner { gap: 24px; }
  .footer-cols { gap: 28px; }
}

@media (max-width: 600px) {
  .nav-actions .btn-outline-wa,
  .nav-actions .btn-download-wa {
    padding: 7px 11px;
    font-size: 12px;
    gap: 5px;
  }
  .web-update-inner { padding: 9px 14px; gap: 10px; }
  .web-update-left { font-size: 12px; }
  .banner-dl-btn { width: 100%; }
  .bigscreen-countdown-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .bigscreen-sep { display: none; }
  .bigscreen-tile { padding: 15px 10px; border-radius: 18px; }
  .launch-bigscreen-footer {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .launch-bigscreen-actions {
    flex-direction: column;
    width: 100%;
  }
  .launch-bigscreen-actions > * { width: 100%; }
  .hero-copy h1 { font-size: 31px; }
  .hero-sub { font-size: 14.5px; }
  .hero-cta-group { flex-direction: column; }
  .hero-cta-group > * { width: 100%; }
  .phone-frame-hero { width: 230px; }
  .founder-identity-cards-grid,
  .ecosystem-mini-grid {
    grid-template-columns: 1fr;
  }
  .download-actions { flex-direction: column; }
  .download-actions > * { width: 100%; }
}



