@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,700;12..96,800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* ============================================================
   OMEGA CONNECT — style.css
   Dark navy + teal accent theme · Mobile-first · CSS-only anim
   ============================================================ */

/* ----- 1. Custom Properties ----- */
:root {
  --accent: #00e5b0;
  --accent-dim: rgba(0, 229, 176, 0.10);
  --bg: #080c14;
  --bg-card: #0e1420;
  --border: rgba(255, 255, 255, 0.07);
  --text-primary: #f0f4ff;
  --text-secondary: #8892a4;
  --font-heading: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  /* Backgrounds */
  --bg-primary: var(--bg);
  --bg-surface: var(--bg-card);
  --bg-elevated: #151d30;

  /* Accent */
  --accent-hover: #00ffc4;
  --accent-muted: rgba(0, 229, 176, 0.15);

  /* Text */
  --text-muted: #556070;

  /* Chat bubbles */
  --sent-bubble: linear-gradient(135deg, #00e5b0, #00b388);
  --received-bubble: #131b2a;

  /* Semantic */
  --danger: #e74c3c;
  --danger-hover: #ff6b5a;
  --warning: #f39c12;
  --warning-hover: #f5b041;
  --success: #00e5b0;

  /* Borders & surfaces */
  --border-focus: rgba(0, 229, 176, 0.45);

  /* Radii */
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --radius-xs: 4px;

  /* Spacing scale (4px base) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;

  /* Sizing */
  --max-chat: 600px;
  --max-landing: 1100px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.2s;

  /* Safe-area */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

/* ----- 2. Reset & Base ----- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
  outline: none;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

a:hover {
  color: var(--accent-hover);
}

ul, ol {
  list-style: none;
}

/* ----- 3. Typography ----- */
h1, h2, h3 {
  font-family: 'Syne', sans-serif;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }

/* ----- Scrollbar ----- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--text-muted) transparent;
}

/* ----- 4. Page System ----- */
.page {
  display: none;
  width: 100%;
  min-height: 100dvh;
}

.page.active {
  display: flex;
  flex-direction: column;
}

.hidden {
  display: none !important;
}

/* ============================================================
   LANDING PAGE
   ============================================================ */
#landing-page {
  position: relative;
  overflow: hidden;
  background-color: var(--bg);
  min-height: 100vh;
}

.landing-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  margin: 0 auto;
}

/* Nav */
.landing-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(8, 12, 20, 0.85);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  box-sizing: border-box;
}

.landing-nav .logo {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--accent);
  font-size: 20px;
  user-select: none;
}

.landing-nav .auth-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.landing-nav .auth-btn {
  background: transparent;
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 6px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.landing-nav .auth-btn:hover {
  border-color: var(--accent) !important;
  color: var(--accent) !important;
  background: transparent !important;
  transform: none !important;
}

/* Hero Section */
.hero {
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  box-sizing: border-box;
  position: relative;
}

.hero-content {
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 2;
}

.live-badge {
  background: var(--accent-dim);
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  border-radius: 99px;
  padding: 4px 14px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(0, 229, 176, 0.15);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 52px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
  margin: 0;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.5;
  margin: 0 auto;
}

.hero .cta-btn {
  background: var(--accent) !important;
  color: #080c14 !important;
  font-family: var(--font-heading);
  font-weight: 700 !important;
  font-size: 16px !important;
  padding: 14px 40px !important;
  border-radius: 8px !important;
  border: none !important;
  cursor: pointer;
  transition: all 0.2s ease !important;
  box-shadow: none !important;
  width: auto !important;
  max-width: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero .cta-btn:hover:not(:disabled) {
  filter: brightness(1.1) !important;
  transform: scale(1.02) !important;
  box-shadow: none !important;
}

.hero .cta-btn:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed;
}

.trust-badges {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  justify-content: center;
  gap: 8px;
}

.hero .secondary-link {
  font-family: var(--font-heading);
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  margin-top: 8px;
  display: inline-block;
  transition: opacity 0.2s;
}

.hero .secondary-link:hover {
  opacity: 0.8;
}

.reconnect-link {
  font-family: var(--font-heading);
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  margin-top: 8px;
  display: inline-block;
  transition: opacity 0.2s;
}

.reconnect-link:hover {
  opacity: 0.8;
}

.recent-connections-container {
  width: 100%;
  margin-top: 16px;
}

/* Setup Card */
.setup-card {
  width: 100%;
  max-width: 480px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  text-align: left;
}

.setup-section {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.setup-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.optional-tag {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: normal;
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
}

/* Interest chips */
.interests-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.interest-chip {
  padding: var(--sp-2) var(--sp-3);
  background: transparent;
  border: 1px solid #1a1a30;
  border-radius: 999px;
  font-size: 0.85rem;
  color: #444;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.interest-chip:hover:not(.selected) {
  border-color: rgba(0, 229, 255, 0.2);
  color: #666;
}

.interest-chip.selected {
  background: rgba(0, 229, 255, 0.1) !important;
  border: 1px solid rgba(0, 229, 255, 0.4) !important;
  color: #00e5ff !important;
  transform: scale(1.04) !important;
  font-weight: 500;
}

.interest-chip.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* Setup divider */
.setup-divider {
  height: 1px;
  background: var(--border);
}

/* Gender / Pref pills */
.gender-row {
  display: flex;
  gap: var(--sp-2);
}

.gender-pills,
.pref-pills {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.gender-pill,
.pref-pill {
  padding: var(--sp-2) var(--sp-4);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: all var(--duration) var(--ease);
}

.gender-pill:hover,
.pref-pill:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

.gender-pill.active,
.pref-pill.active {
  background: var(--accent-muted);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

/* Age checkbox */
.age-checkbox {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  cursor: pointer;
  user-select: none;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.age-checkbox input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border: 2px solid var(--text-muted);
  border-radius: var(--radius-xs);
  transition: all var(--duration) var(--ease);
  position: relative;
}

.age-checkbox input[type="checkbox"]:checked ~ .checkmark {
  background: var(--accent);
  border-color: var(--accent);
}

.age-checkbox input[type="checkbox"]:checked ~ .checkmark::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 6px;
  height: 11px;
  border: solid var(--bg-primary);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.check-label {
  line-height: 1.4;
}

/* CTA button */
.cta-btn {
  width: 100%;
  padding: var(--sp-4);
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  transition: all var(--duration) var(--ease);
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
}

.cta-btn:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(255, 111, 97, 0.3);
}

.cta-btn:active:not(:disabled) {
  transform: translateY(0);
}

.cta-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Friend Invite Button */
.friend-invite-btn {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  transition: all var(--duration) var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
}

.friend-invite-btn:hover {
  border-color: var(--accent);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.02);
}

/* Trust strip */
.trust-strip {
  display: flex;
  justify-content: center;
  gap: var(--sp-5);
  flex-wrap: wrap;
  padding: var(--sp-3) 0;
}

.trust-item {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

/* Landing footer */
/* Landing footer */
.landing-footer {
  max-width: var(--max-landing);
  width: 100%;
  margin: 48px auto 0;
  padding: 24px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-secondary);
  box-sizing: border-box;
}

.landing-footer p {
  margin: 0;
}

.landing-footer a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.landing-footer a:hover {
  color: var(--accent);
}

.footer-links {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0;
}

.footer-copyright {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ============================================================
   WAITING PAGE
   ============================================================ */
#waiting-page {
  align-items: center;
  justify-content: center;
}

.waiting-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-4);
  padding: var(--sp-6);
}

/* CSS-only spinner */
.spinner {
  width: 52px;
  height: 52px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.waiting-content h2 {
  font-size: 1.35rem;
  color: var(--text-primary);
}

.waiting-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.wait-time {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.wait-time span {
  color: var(--text-secondary);
  font-weight: 600;
}

.btn-secondary {
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  transition: all var(--duration) var(--ease);
}

.btn-secondary:hover {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--text-muted);
}

/* ============================================================
   CHAT PAGE
   ============================================================ */
#chat-page {
  height: 100dvh;
  display: none;
  flex-direction: column;
  background: var(--bg-primary);
}

#chat-page.active {
  display: flex;
}

/* --- Chat Header --- */
.chat-header {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  padding-top: calc(var(--sp-3) + var(--safe-top));
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  z-index: 20;
  flex-shrink: 0;
}

.header-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: all var(--duration) var(--ease);
  flex-shrink: 0;
}

.header-btn:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.chat-user-info {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex: 1;
  min-width: 0;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent);
  flex-shrink: 0;
  overflow: hidden;
}

.user-avatar.has-img {
  background: transparent;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.user-meta {
  min-width: 0;
}

.user-name {
  font-weight: 600;
  font-size: 13px;
  color: #ddd;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
}

.user-status.online,
.user-status.typing {
  color: #00e5ff;
}

.user-status.disconnected {
  color: var(--text-muted);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 5px var(--accent);
  flex-shrink: 0;
}

.user-status.disconnected .status-dot {
  background: var(--danger);
  box-shadow: none;
}

.status-dot.typing-active {
  background: var(--accent);
  box-shadow: 0 0 5px var(--accent);
  animation: statusPulse 1.2s infinite ease-in-out;
}

@keyframes statusPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

.header-right {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-shrink: 0;
}

.next-btn {
  background: rgba(255, 77, 109, 0.1);
  border: 1px solid rgba(255, 77, 109, 0.28);
  border-radius: 999px;
  padding: 4px 13px;
  color: #ff4d6d;
  font-size: 12px;
  font-weight: 600;
  transition: all var(--duration) var(--ease);
  cursor: pointer;
}

.next-btn:hover {
  background: rgba(255, 77, 109, 0.18);
  color: #ff4d6d;
}

/* --- Chat Messages --- */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  max-width: var(--max-chat);
  width: 100%;
  margin: 0 auto;
}

/* Message rows */
.msg {
  display: flex;
  flex-direction: column;
  max-width: 78%;
  animation: msgIn 0.2s var(--ease);
}

@keyframes msgIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.msg.out {
  align-self: flex-end;
  align-items: flex-end;
  max-width: 68%;
  display: flex;
  flex-direction: column;
}

.msg.in {
  align-self: flex-start;
  align-items: flex-start;
  max-width: 68%;
  display: flex;
  flex-direction: column;
}

.msg.system {
  align-self: center;
  max-width: 90%;
}

.msg.system .bubble {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-size: 0.8rem;
  text-align: center;
  border-radius: var(--radius-sm);
}

.message.system {
  text-align: center;
  padding: var(--sp-2) 0;
}

.message.system p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.bubble {
  padding: 9px 14px;
  font-size: 0.93rem;
  line-height: 1.5;
  word-wrap: break-word;
  overflow-wrap: break-word;
  position: relative;
  cursor: grab;
  transition: all 0.15s ease;
}

.msg.out .bubble {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.12), rgba(167, 139, 250, 0.12));
  border: 1px solid rgba(0, 229, 255, 0.22);
  border-radius: 14px 3px 14px 14px;
  color: #e2e2f0;
}

.msg.in .bubble {
  background: rgba(30, 30, 60, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(167, 139, 250, 0.18);
  border-radius: 3px 14px 14px 14px;
  color: #c8c8e0;
}

.msg-time {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: var(--sp-1);
  padding: 0 var(--sp-1);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.msg.out .msg-time {
  font-size: 10px;
  color: #444;
  margin-top: 4px;
  opacity: 0;
  transform: translateY(-2px);
  pointer-events: none;
}

.msg.out:hover .msg-time {
  opacity: 1;
  transform: translateY(0);
}

/* Message quote (reply preview inside bubble) */
.message-quote {
  padding: var(--sp-2) var(--sp-3);
  margin-bottom: var(--sp-2);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-xs);
  background: rgba(0, 0, 0, 0.15);
  font-size: 0.82rem;
}

.quote-sender {
  font-weight: 600;
  color: var(--accent);
  font-size: 0.75rem;
  margin-bottom: 2px;
}

.quote-text {
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Message image */
.message-image {
  max-width: 240px;
  border-radius: var(--radius-md);
  margin-bottom: var(--sp-1);
}

/* Message ticks */
.message-ticks {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  margin-left: var(--sp-1);
  vertical-align: middle;
}

.tick {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
}

.tick.read {
  color: #69d2e7;
}

/* Message reactions */
.message-reactions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
  margin-top: var(--sp-1);
}

.reaction {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.reaction:hover {
  border-color: var(--text-muted);
}

.reaction.reacted {
  background: var(--accent-muted);
  border-color: var(--accent);
}

/* Reaction picker (floating) */
.reaction-picker {
  position: fixed;
  z-index: 100;
  display: flex;
  gap: var(--sp-1);
  padding: var(--sp-2);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  animation: fadeScale 0.15s var(--ease);
}

@keyframes fadeScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.reaction-emoji {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--duration) var(--ease);
}

.reaction-emoji:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* --- Typing Indicator --- */
.typing {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  max-width: var(--max-chat);
  width: 100%;
  margin: 0 auto;
}

.typing.hidden {
  display: none;
}

.typing-bubble {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 9px 14px;
  background: rgba(30, 30, 60, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(167, 139, 250, 0.18);
  border-radius: 3px 14px 14px 14px;
  transition: all 0.15s ease;
}

.typing-dots {
  display: flex;
  align-items: center;
  gap: 4px;
}

.typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a78bfa;
  animation: typingBounce 1.2s ease-in-out infinite;
  display: inline-block;
  transition: all 0.15s ease;
}

.typing-dots span:nth-child(1) {
  animation-delay: 0s;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.typing-dots span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes typingBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

/* --- Reply bar --- */
.reply-bar {
  display: none;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}

.reply-bar.active {
  display: flex;
}

.reply-bar-content {
  flex: 1;
  min-width: 0;
  border-left: 3px solid var(--accent);
  padding-left: var(--sp-3);
}

.reply-sender {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
}

.reply-text {
  font-size: 0.82rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reply-close {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-muted);
  transition: all var(--duration) var(--ease);
  flex-shrink: 0;
}

.reply-close:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

/* --- Emoji Panel --- */
.emoji-panel {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: var(--sp-3);
  max-height: 260px;
  display: flex;
  flex-direction: column;
  z-index: 15;
}

.emoji-panel.hidden {
  display: none;
}

.emoji-tabs {
  display: flex;
  gap: var(--sp-1);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}

.emoji-tab {
  padding: var(--sp-1) var(--sp-2);
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  transition: background var(--duration) var(--ease);
  flex-shrink: 0;
}

.emoji-tab:hover {
  background: var(--bg-elevated);
}

.emoji-tab.active {
  background: var(--accent-muted);
}

.emoji-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(38px, 1fr));
  gap: var(--sp-1);
  padding: var(--sp-2) 0;
  overflow-y: auto;
  flex: 1;
}

.emoji-grid button {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  border-radius: var(--radius-sm);
  transition: background var(--duration) var(--ease);
}

.emoji-grid button:hover {
  background: var(--bg-elevated);
}

/* --- Chat Input Bar --- */
.chat-input-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2.5) var(--sp-4);
  padding-bottom: calc(var(--sp-3) + var(--safe-bottom));
  background: var(--bg-surface);
  border-top: none;
  flex-shrink: 0;
}

.input-tool-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-muted);
  transition: all var(--duration) var(--ease);
  flex-shrink: 0;
}

.input-tool-btn:hover {
  background: var(--bg-elevated);
  color: var(--text-secondary);
}

.chat-input {
  flex: 1;
  height: 42px;
  padding: 0 var(--sp-4);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-primary);
  font-size: 0.93rem;
  transition: border-color var(--duration) var(--ease);
}

.chat-input::placeholder {
  color: var(--text-muted);
}

.chat-input:focus {
  border-color: var(--border-focus);
}

.send-btn {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #00e5ff, #a78bfa);
  border-radius: 10px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.25);
  transition: all 0.15s ease;
  color: #fff;
  flex-shrink: 0;
}

.send-btn svg {
  width: 18px;
  height: 18px;
  color: #ffffff;
}

.send-btn:hover:not(:disabled) {
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
  transform: scale(1.05);
}

.send-btn:active:not(:disabled) {
  transform: scale(0.95);
  filter: brightness(1.3);
}

.send-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
}

/* --- Chat Tools --- */
.chat-tools {
  display: flex;
  gap: 8px;
  padding: 8px 12px 6px;
  background: rgba(8, 8, 20, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(0, 229, 255, 0.07);
}

.tool-chip {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 229, 255, 0.1);
  border-radius: 9px;
  padding: 6px 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  flex: 1;
}

.tool-chip .tool-icon {
  font-size: 16px;
  line-height: 1;
}

.tool-chip .tool-label {
  font-size: 9px;
  color: #555;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.15s ease;
}

.tool-chip:hover:not(:disabled) {
  border-color: rgba(0, 229, 255, 0.28);
  background: rgba(0, 229, 255, 0.06);
}

.tool-chip:hover:not(:disabled) .tool-label {
  color: #888;
}

.tool-chip:disabled {
  opacity: 0.25;
  cursor: not-allowed;
  pointer-events: none;
}

.chat-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--bg-surface);
}

.input-tool-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* Smart replies */
.smart-replies {
  display: flex;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.smart-reply {
  flex-shrink: 0;
  padding: var(--sp-2) var(--sp-3);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--accent);
  background: var(--accent-muted);
  border: 1px solid rgba(255, 111, 97, 0.2);
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
}

.smart-reply:hover {
  background: rgba(255, 111, 97, 0.25);
  border-color: var(--accent);
}

/* ============================================================
   MODALS
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-sizing: border-box;
}

.modal.active {
  display: flex;
  animation: fadeIn 0.2s ease forwards;
}

.modal-content {
  background: rgba(9,9,22,0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(0,229,255,0.1);
  border-radius: 16px;
  width: 100%;
  max-width: 400px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  max-height: 85dvh;
}

.modal.active .modal-content {
  animation: slideUp 0.25s ease forwards;
}

.modal-accent-line {
  height: 3px;
  width: 100%;
  flex-shrink: 0;
}

.modal-body {
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.modal-title {
  font-size: 16px;
  font-weight: 700;
  color: #ddd;
  margin-bottom: 4px;
  font-family: inherit;
}

.modal-subtitle {
  font-size: 13px;
  color: #555;
  margin-bottom: 16px;
  line-height: 1.4;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: #444;
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.15s ease;
  z-index: 11;
}

.modal-close:hover {
  color: #ddd;
}

.modal-scroll {
  overflow-y: auto;
  max-height: 60vh;
  padding-right: var(--sp-1);
}

.modal-scroll::-webkit-scrollbar {
  width: 6px;
}
.modal-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}
.modal-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}
.modal-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

.modal-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

/* Modal button variants */
.btn-primary {
  width: 100%;
  padding: 12px 0;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #00e5ff, #a78bfa);
  color: #06060f !important;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  margin-bottom: 8px;
  transition: opacity 0.15s, transform 0.15s;
  display: block;
  text-align: center;
  box-sizing: border-box;
}
.btn-primary:hover {
  opacity: 0.9;
  transform: scale(1.01);
}

.btn-danger {
  width: 100%;
  padding: 10px 0;
  border: none;
  border-radius: 9px;
  background: rgba(255, 77, 109, 0.1);
  border: 1px solid rgba(255, 77, 109, 0.28);
  color: #ff4d6d;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  margin-bottom: 8px;
  transition: opacity 0.15s, transform 0.15s;
  display: block;
  text-align: center;
  box-sizing: border-box;
}
.btn-danger:hover {
  background: rgba(255, 77, 109, 0.18);
  border-color: rgba(255, 77, 109, 0.4);
}

.btn-warning {
  width: 100%;
  padding: 10px 0;
  border: none;
  border-radius: 9px;
  background: rgba(255, 170, 0, 0.1);
  border: 1px solid rgba(255, 170, 0, 0.25);
  color: #ffaa00;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  margin-bottom: 8px;
  transition: opacity 0.15s, transform 0.15s;
  display: block;
  text-align: center;
  box-sizing: border-box;
}
.btn-warning:hover {
  background: rgba(255, 170, 0, 0.18);
  border-color: rgba(255, 170, 0, 0.35);
}

.btn-ghost {
  display: block;
  width: 100%;
  text-align: center;
  padding: 8px 0;
  background: transparent;
  border: none;
  color: #444;
  font-size: 12px;
  cursor: pointer;
  font-weight: 500;
  transition: color 0.15s;
}
.btn-ghost:hover {
  color: #777;
}

.btn-text {
  background: transparent;
  border: none;
  color: #444;
  font-size: 12px;
  text-align: center;
  cursor: pointer;
  padding: 8px 0;
  width: 100%;
  transition: color 0.15s ease;
  display: block;
}

.btn-text:hover {
  color: #888;
}

/* Leave modal options */
.leave-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Chat summary (disconnected modal) */
.chat-summary {
  padding: var(--sp-4);
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Report options */
.report-options {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.report-option {
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-align: left;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.report-option:hover {
  border-color: var(--danger);
  color: var(--danger);
}

/* Game modal */
.game-modal-content {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.game-buttons {
  display: flex;
  gap: var(--sp-3);
}

.btn-truth {
  flex: 1;
  padding: var(--sp-3);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  background: linear-gradient(135deg, #3498db, #2980b9);
  transition: all var(--duration) var(--ease);
}

.btn-truth:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(52, 152, 219, 0.35);
}

.btn-dare {
  flex: 1;
  padding: var(--sp-3);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  background: linear-gradient(135deg, var(--danger), #c0392b);
  transition: all var(--duration) var(--ease);
}

.btn-dare:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(231, 76, 60, 0.35);
}

.game-result {
  padding: var(--sp-4);
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  font-size: 1rem;
  text-align: center;
  color: var(--text-primary);
  line-height: 1.5;
}

.game-actions {
  display: flex;
  gap: var(--sp-2);
}

/* Tic-Tac-Toe styles */
.ttt-status {
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent);
  margin-bottom: var(--sp-2);
}

.ttt-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-2);
  max-width: 240px;
  margin: var(--sp-2) auto;
}

.ttt-cell {
  aspect-ratio: 1;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--duration) var(--ease);
}

.ttt-cell:hover:not(:disabled) {
  background: var(--bg-surface);
  border-color: var(--accent);
}

.ttt-cell:disabled {
  cursor: default;
}

.ttt-cell[data-val="X"] {
  color: var(--accent);
}

.ttt-cell[data-val="O"] {
  color: var(--danger);
}

/* Drawing modal */
.drawing-modal-content {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

#drawing-canvas {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: crosshair;
  touch-action: none;
}

.drawing-tools {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

/* Settings modal */
.settings-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: 12px 0;
  border-bottom: 1px solid #111220;
  width: 100%;
}

.setting-item:last-child {
  border-bottom: 1px solid #111220;
}

.setting-item label {
  font-size: 14px;
  color: #ccc;
  font-weight: 500;
  flex: 1;
}

/* Toggle switch */
.toggle-switch {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
  cursor: pointer;
}

.toggle-switch input {
  display: none;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: #1a1a30;
  border-radius: 22px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.toggle-slider::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.toggle-switch input:checked + .toggle-slider {
  background: linear-gradient(135deg, #00e5ff, #a78bfa);
}

.toggle-switch input:checked + .toggle-slider::after {
  transform: translateX(18px);
}

/* Range input */
.modal-content input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  background: #1a1a30;
  height: 6px;
  border-radius: 3px;
  outline: none;
  margin: 8px 0;
}

.modal-content input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #00e5ff;
  cursor: pointer;
  transition: transform 0.15s;
}

.modal-content input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.modal-content input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #00e5ff;
  cursor: pointer;
  border: none;
  transition: transform 0.15s;
}

.modal-content input[type="range"]::-moz-range-thumb:hover {
  transform: scale(1.1);
}

/* Select dropdown */
.modal-content select {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238892a4' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.modal-content select:focus {
  border-color: var(--border-focus);
}

/* Range input */
.modal-content input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  height: 4px;
  cursor: pointer;
}

/* Textarea */
.modal-content textarea {
  width: 100%;
  min-height: 100px;
  padding: var(--sp-3) var(--sp-4);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  resize: vertical;
  transition: border-color var(--duration) var(--ease);
}

.modal-content textarea:focus {
  border-color: var(--border-focus);
}

/* Feedback form */
.modal-content form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

/* Legal text */
.legal-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.legal-text h4 {
  font-size: 0.95rem;
  margin-top: var(--sp-4);
  margin-bottom: var(--sp-2);
}

.legal-text p {
  margin-bottom: var(--sp-3);
}

.legal-text ul {
  padding-left: var(--sp-5);
  list-style: disc;
  margin-bottom: var(--sp-3);
}

.legal-text li {
  margin-bottom: var(--sp-2);
}

.legal-updated {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Confirm modal */
.confirm-modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sp-4);
}

.confirm-icon {
  font-size: 2.5rem;
}

.confirm-buttons {
  display: flex;
  gap: var(--sp-3);
  width: 100%;
}

.confirm-buttons button {
  flex: 1;
}

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  bottom: calc(var(--sp-6) + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  z-index: 300;
  padding: var(--sp-3) var(--sp-5);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  max-width: calc(100% - var(--sp-8));
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s var(--ease);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.toast-message {
  font-size: 0.88rem;
  color: var(--text-primary);
  text-align: center;
  white-space: nowrap;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* ============================================================
   ACHIEVEMENT POPUP
   ============================================================ */
.achievement-popup {
  position: fixed;
  top: calc(var(--sp-5) + var(--safe-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  padding: var(--sp-3) var(--sp-5);
  background: linear-gradient(135deg, var(--accent), #e64a19);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(255, 111, 97, 0.3);
  animation: achieveIn 0.3s var(--ease);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
}

@keyframes achieveIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* ============================================================
   FOCUS & ACCESSIBILITY
   ============================================================ */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.interest-chip:focus-visible,
.gender-pill:focus-visible,
.pref-pill:focus-visible,
.report-option:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   RESPONSIVE — Tablet (≤768px)
   ============================================================ */
@media (max-width: 768px) {
  .hero-title {
    font-size: 1.85rem;
  }

  .hero-subtitle {
    font-size: 0.92rem;
  }

  .setup-card {
    padding: var(--sp-4);
  }



  .trust-strip {
    gap: var(--sp-3);
  }
}

/* ============================================================
   RESPONSIVE — Phone (≤480px)
   ============================================================ */
@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .hero-subtitle {
    font-size: 0.88rem;
  }

  .hero-badge {
    font-size: 0.72rem;
  }

  .setup-card {
    padding: var(--sp-3);
    gap: var(--sp-3);
  }

  .interest-chip {
    padding: 6px var(--sp-3);
    font-size: 0.8rem;
  }

  .gender-pill,
  .pref-pill {
    padding: 6px var(--sp-3);
    font-size: 0.8rem;
  }

  .cta-btn {
    padding: var(--sp-3);
    font-size: 0.93rem;
  }

  .chat-header {
    padding: var(--sp-2) var(--sp-3);
    padding-top: calc(var(--sp-2) + var(--safe-top));
  }

  .chat-tools {
    padding: var(--sp-2) var(--sp-3) 0;
  }

  .chat-input-bar {
    gap: var(--sp-1);
    padding: var(--sp-2) var(--sp-3);
    padding-bottom: calc(var(--sp-2) + var(--safe-bottom));
  }

  .chat-input {
    height: 38px;
    font-size: 0.88rem;
  }

  .voice-recording-overlay {
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    font-size: 0.82rem;
    padding: 0 var(--sp-3);
  }

  .input-tool-btn {
    width: 36px;
    height: 36px;
  }

  .msg {
    max-width: 85%;
  }

  .bubble {
    padding: var(--sp-2) var(--sp-3);
    font-size: 0.9rem;
  }

  .landing-content {
    padding: var(--sp-3);
    padding-top: calc(var(--sp-3) + var(--safe-top));
    padding-bottom: calc(var(--sp-3) + var(--safe-bottom));
  }

  .footer-links {
    gap: var(--sp-3);
  }

  .game-buttons {
    flex-direction: column;
  }

  .confirm-buttons {
    flex-direction: column;
  }

  .emoji-grid {
    grid-template-columns: repeat(auto-fill, minmax(34px, 1fr));
  }

  .emoji-grid button {
    width: 34px;
    height: 34px;
    font-size: 1.15rem;
  }
}

/* ============================================================
   SAFE AREA INSETS (iOS standalone / PWA)
   ============================================================ */
@supports (padding: max(0px)) {
  .landing-content {
    padding-top: max(var(--sp-4), env(safe-area-inset-top));
    padding-bottom: max(var(--sp-4), env(safe-area-inset-bottom));
    padding-left: max(var(--sp-4), env(safe-area-inset-left));
    padding-right: max(var(--sp-4), env(safe-area-inset-right));
  }

  .chat-header {
    padding-top: max(var(--sp-3), env(safe-area-inset-top));
  }

  .chat-input-bar {
    padding-bottom: max(var(--sp-3), env(safe-area-inset-bottom));
  }
}

/* ============================================================
   SWIPE TO REPLY & MESSAGE REACTIONS
   ============================================================ */
.msg.has-reactions {
  margin-bottom: var(--sp-3);
}

.swipe-reply-indicator {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: scale(0.6) translateY(-50%);
  transform-origin: left center;
  opacity: 0;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 1;
}

.swipe-reply-indicator.ready {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(255, 111, 97, 0.4);
}

/* Glassmorphic Reaction Picker */
.reaction-picker {
  position: absolute;
  z-index: 1000;
  display: flex;
  gap: var(--sp-1);
  padding: 4px 8px;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: scale(0.9) translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  pointer-events: auto;
}

.reaction-picker.active {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.reaction-emoji-btn {
  background: transparent;
  border: none;
  font-size: 1.35rem;
  padding: 4px;
  cursor: pointer;
  transition: transform 0.15s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
}

.reaction-emoji-btn:hover {
  transform: scale(1.3);
}

/* Reaction Badges below the Bubble */
.reaction-badges {
  position: absolute;
  bottom: -10px;
  display: flex;
  gap: 4px;
  z-index: 10;
  pointer-events: auto;
}

.msg.out .reaction-badges {
  right: 12px;
}

.msg.in .reaction-badges {
  left: 12px;
}

.reaction-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2px 6px;
  font-size: 0.72rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  user-select: none;
  font-family: inherit;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.reaction-pill:hover {
  background: var(--bg-elevated);
  border-color: var(--text-muted);
}

.reaction-pill.reacted {
  background: rgba(255, 111, 97, 0.15);
  border-color: var(--accent);
  color: var(--accent);
}

.pill-emoji {
  font-size: 0.78rem;
  line-height: 1;
}

.pill-count {
  font-weight: 600;
  line-height: 1;
}

.bubble:active {
  cursor: grabbing;
}

/* Recent matches list */
.recent-list {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-1) 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.recent-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-1);
  background: transparent;
  border: none;
  cursor: pointer;
  width: 65px;
  flex-shrink: 0;
  transition: transform 0.2s var(--ease);
}

.recent-item:hover {
  transform: translateY(-2px);
}

.recent-avatar {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.recent-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.recent-avatar-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
}

.recent-online-status {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 11px;
  height: 11px;
  background: var(--text-muted);
  border: 2px solid var(--bg-surface);
  border-radius: 50%;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.recent-online-status.online {
  background: var(--success);
  box-shadow: 0 0 6px var(--success);
}

.recent-name {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

/* ----- Vibe Rooms Selection Grid ----- */
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
  margin-top: var(--sp-1);
}

@media (max-width: 480px) {
  .rooms-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-2);
  }
}

/* --- Choose Your Vibe Section --- */
.vibe-rooms-section {
  width: 100%;
  max-width: 900px;
  margin: 64px auto;
  padding: 0 24px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.vibe-rooms-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin: 0 0 8px 0;
}

.vibe-rooms-subtitle {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-secondary);
  text-align: center;
  margin: 0 0 32px 0;
}

.vibe-rooms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
}

.vibe-rooms-grid .vibe-card.room-card[data-room="general"] {
  grid-column: 1 / -1;
  max-width: 280px;
  width: 100%;
  margin: 0 auto;
}

.vibe-card.room-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease, border-color 0.2s ease, background 0.2s ease;
  user-select: none;
  width: 100%;
  text-align: left;
}

.vibe-card.room-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.vibe-card.room-card:hover,
.vibe-card.room-card.active {
  border-color: var(--accent) !important;
  background: var(--accent-dim) !important;
}

.vibe-card.room-card i.vibe-room-icon {
  font-size: 24px;
  color: var(--accent);
  margin-bottom: 4px;
}

.vibe-room-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  width: 100%;
}

.vibe-room-name {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.vibe-room-desc {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.45;
}

.vibe-room-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 12px;
}

.vibe-online-counter {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

.vibe-join-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 14px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
}

.vibe-card.room-card:hover .vibe-join-btn,
.vibe-card.room-card.active .vibe-join-btn {
  border-color: var(--accent) !important;
  color: var(--accent) !important;
}

@media (max-width: 768px) {
  .vibe-rooms-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .vibe-rooms-grid {
    grid-template-columns: 1fr;
  }
}


.sub-room-card {
  transition: all var(--duration) var(--ease);
}

.sub-room-card:hover {
  border-color: rgba(255, 111, 97, 0.3) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.sub-room-card.active {
  background: var(--accent-dim) !important;
  border-color: var(--accent) !important;
  box-shadow: 0 0 10px rgba(255, 111, 97, 0.15);
}

/* ============================================================
   REAL-TIME VIDEO & VOICE CALLS
   ============================================================ */
.call-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.call-btn:hover {
  background: var(--bg-elevated);
  color: var(--accent);
  transform: scale(1.05);
}

.call-btn:active {
  transform: scale(0.95);
}

/* Call Overlay Container */
.call-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #090e1a;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  border-radius: inherit;
}

.call-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Tint overlay on top of full-screen video when calling */
.call-overlay.calling::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(9, 14, 26, 0.4) 0%, rgba(9, 14, 26, 0.8) 100%);
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

/* Remote full video screen */
.remote-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

/* Local video preview card */
.local-video-container {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  width: 120px;
  height: 160px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.2);
  z-index: 10;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  background: #000;
}

.local-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1); /* mirror local feed */
}

/* Transition to full screen during calling phase */
.call-overlay.calling .local-video-container {
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  border: none;
  box-shadow: none;
  z-index: 1;
}

/* Centered Caller Info Card */
.call-status-container {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
  color: white;
  text-align: center;
  z-index: 5;
  pointer-events: none;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  padding: var(--sp-5) var(--sp-7);
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.call-status-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 3px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.call-status-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.call-status-text {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  opacity: 0.95;
}

/* Floating control bar iOS FaceTime style */
.call-controls {
  position: absolute;
  bottom: var(--sp-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--sp-5);
  padding: var(--sp-3) var(--sp-6);
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  z-index: 10;
  transition: all 0.3s ease;
}

.call-control-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.call-control-btn:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: scale(1.08);
}

.call-control-btn:active {
  transform: scale(0.92);
}

/* Muted red button */
.call-control-btn.muted {
  background: rgba(239, 68, 68, 0.9);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

/* iOS Red Hang up button */
.call-control-btn#hangup-call-btn {
  background: #ff3b30;
  box-shadow: 0 0 20px rgba(255, 59, 48, 0.4);
}

.call-control-btn#hangup-call-btn:hover {
  background: #ff453a;
  transform: scale(1.1) rotate(15deg);
}

/* Pulse animation for avatar */
.pulse-avatar {
  animation: pulse-ring 2.2s infinite;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 111, 97, 0.55);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(255, 111, 97, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 111, 97, 0);
  }
}

/* Tablet & Mobile responsive overrides */
@media (max-width: 768px) {
  .call-status-container {
    top: 25%;
    padding: var(--sp-4) var(--sp-6);
  }
  .call-status-avatar {
    width: 84px;
    height: 84px;
  }
}

@media (max-width: 480px) {
  .local-video-container {
    width: 95px;
    height: 126px;
    top: var(--sp-3);
    right: var(--sp-3);
  }
  .call-controls {
    bottom: var(--sp-6);
    gap: var(--sp-2); /* Tighter gap for 6 buttons */
    padding: 10px 12px;
  }
  .call-control-btn {
    width: 44px; /* Slightly smaller to fit iPhone SE */
    height: 44px;
  }
}

/* ==========================================================================
   VIDEO FILTERS & FILTER DRAWER
   ========================================================================== */

.filter-drawer {
  position: absolute;
  bottom: 90px;
  left: 0;
  right: 0;
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 8px 16px 12px;
  scrollbar-width: none;
  z-index: 10;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  pointer-events: none;
  transform: translateY(15px);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}

.filter-drawer::-webkit-scrollbar {
  display: none;
}

.filter-drawer.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.filter-chip {
  flex-shrink: 0;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: none;
  border: none;
  padding: 0;
  transition: all 0.2s ease;
  user-select: none;
}

.filter-preview {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid #1a1a30;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  position: relative;
}

.filter-preview-inner {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.filter-label {
  font-size: 11px;
  margin-top: 6px;
  color: #444;
  font-weight: 400;
  transition: all 0.2s ease;
}

/* Active Filter Item states */
.filter-chip.active .filter-preview {
  border-color: #00e5ff;
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.4);
}

.filter-chip.active .filter-label {
  color: #00e5ff;
  font-weight: 700;
}

/* Video Filters styling */
.filter-none {
  filter: none !important;
}

.filter-vhs {
  filter: contrast(1.2) saturate(0.7) sepia(0.3) hue-rotate(330deg) !important;
}

.filter-neon {
  filter: contrast(1.3) saturate(2) hue-rotate(140deg) brightness(0.9) !important;
}

.filter-warm {
  filter: sepia(0.4) saturate(1.4) contrast(1.1) brightness(1.05) !important;
}

.filter-noir {
  filter: grayscale(1) contrast(1.3) brightness(0.85) !important;
}

.filter-chrome {
  filter: saturate(0.6) contrast(1.2) brightness(1.1) hue-rotate(200deg) !important;
}

/* --- Redesigned Incoming Call Modal --- */
.incoming-call-overlay-modal.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

.incoming-call-overlay-modal.modal.active {
  display: flex !important;
}

.incoming-call-container {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

.incoming-call-card {
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Pulsing Avatar and Concentric Rings */
.incoming-avatar-wrapper {
  position: relative;
  width: 72px;
  height: 72px;
  margin-bottom: 56px; /* Space to fit concentric rings expansion */
  display: flex;
  align-items: center;
  justify-content: center;
}

.incoming-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  font-size: 28px;
  font-weight: bold;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 0 20px rgba(167, 139, 250, 0.3);
}

.concentric-ring {
  position: absolute;
  border: 1px solid transparent;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  animation: pulseRing 2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

.ring-1 {
  inset: -12px;
  border-color: rgba(167, 139, 250, 0.25);
  animation-delay: 0s;
}

.ring-2 {
  inset: -24px;
  border-color: rgba(167, 139, 250, 0.12);
  animation-delay: 0.3s;
}

.ring-3 {
  inset: -38px;
  border-color: rgba(167, 139, 250, 0.06);
  animation-delay: 0.6s;
}

@keyframes pulseRing {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: scale(1.05);
    opacity: 0.5;
  }
}

.incoming-title {
  font-size: 18px;
  font-weight: 700;
  color: #ddd;
  margin: 0 0 6px 0;
}

.incoming-sub {
  font-size: 13px;
  color: #555;
  margin: 0 0 36px 0;
}

/* Decline / Accept Action Controls */
.incoming-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  width: 100%;
}

.incoming-action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.incoming-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
}

.incoming-btn:hover {
  transform: scale(1.08);
}

.btn-decline {
  background: rgba(255, 77, 109, 0.15);
  border: 1px solid rgba(255, 77, 109, 0.35);
  color: #ff4d6d;
}

.btn-decline:hover {
  background: rgba(255, 77, 109, 0.25);
  border-color: rgba(255, 77, 109, 0.55);
  box-shadow: 0 0 12px rgba(255, 77, 109, 0.35);
}

.btn-accept {
  background: rgba(0, 255, 136, 0.15);
  border: 1px solid rgba(0, 255, 136, 0.35);
  color: #00ff88;
  box-shadow: 0 0 16px rgba(0, 255, 136, 0.2);
}

.btn-accept:hover {
  background: rgba(0, 255, 136, 0.25);
  border-color: rgba(0, 255, 136, 0.55);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.45);
}

.incoming-btn-label {
  font-size: 11px;
  margin-top: 8px;
  color: #888;
  font-weight: 500;
}

/* Would You Rather Poll styles */
.btn-poll-option {
  position: relative;
  width: 100%;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: white;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.25s ease;
  z-index: 1;
}

.btn-poll-option:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-poll-option:disabled {
  cursor: default;
}

.btn-poll-option.selected {
  border-color: var(--accent, #6c5ce7);
  box-shadow: 0 0 12px rgba(108, 92, 231, 0.2);
}

.poll-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: rgba(108, 92, 231, 0.18);
  z-index: -1;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 11px 0 0 11px;
}

.btn-poll-option.selected .poll-bar {
  background: rgba(108, 92, 231, 0.3);
}

.option-lbl {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.option-pct {
  position: relative;
  z-index: 2;
  font-weight: 700;
  color: var(--accent, #6c5ce7);
  font-size: 1.05rem;
  pointer-events: none;
}

/* Voice note recorder overlay styles */
.voice-recording-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-surface, #1e1e24);
  border-top: 1px solid var(--border, rgba(255, 255, 255, 0.05));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--sp-4);
  z-index: 10;
  animation: overlay-fade-in 0.2s ease-out;
}

@keyframes overlay-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.voice-recording-overlay.hidden {
  display: none !important;
}

.rec-left {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.rec-dot-pulse {
  animation: rec-pulse 1s infinite alternate;
  color: #ef4444;
  font-size: 0.9rem;
}

@keyframes rec-pulse {
  0% { opacity: 0.3; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1.1); }
}

.rec-timer {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary, #ffffff);
  font-variant-numeric: tabular-nums;
}

.rec-middle {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 var(--sp-3);
  overflow: hidden;
  position: relative;
}

.voice-waveform {
  width: 100%;
  max-width: 200px;
  height: 30px;
  display: block;
}

.voice-waveform.hidden {
  display: none !important;
}

.voice-slide-hint {
  font-size: 0.85rem;
  color: var(--text-muted, #a0a0a8);
  white-space: nowrap;
  animation: slide-hint-fade 1.5s infinite alternate;
  display: flex;
  align-items: center;
  gap: 4px;
}

.voice-slide-hint.hidden {
  display: none !important;
}

@keyframes slide-hint-fade {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

.slide-arrow {
  display: inline-block;
  animation: slide-arrow-anim 1.2s infinite ease-in-out;
}

@keyframes slide-arrow-anim {
  0% { transform: translateX(0); }
  50% { transform: translateX(-6px); }
  100% { transform: translateX(0); }
}

.rec-right {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.voice-action-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  border: none;
}

.voice-delete-btn {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.voice-delete-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  transform: scale(1.05);
}

.voice-delete-btn:active {
  transform: scale(0.95);
}

.voice-send-btn {
  background: #00a884; /* WhatsApp Green */
  color: white;
}

.voice-send-btn:hover {
  background: #008f70;
  transform: scale(1.05);
}

.voice-send-btn:active {
  transform: scale(0.95);
}

.input-tool-btn#voiceBtn.active {
  background: var(--accent, #6c5ce7);
  animation: voice-pulse 1.4s infinite;
  border-radius: 50%;
  position: relative;
  z-index: 13;
}

@keyframes voice-pulse {
  0% { box-shadow: 0 0 0 0 rgba(108, 92, 231, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(108, 92, 231, 0); }
  100% { box-shadow: 0 0 0 0 rgba(108, 92, 231, 0); }
}

/* Floating Lock Indicator styles */
.voice-lock-container {
  position: absolute;
  bottom: 56px;
  left: 52px;
  background: var(--bg-surface, #1e1e24);
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  border-radius: 20px;
  padding: 8px 10px;
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  animation: lock-slide-in 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.voice-lock-container.hidden {
  display: none !important;
}

.lock-icon-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-secondary, #b0b0ba);
}

.lock-arrow {
  font-size: 0.75rem;
  margin-bottom: 2px;
  animation: lock-arrow-bounce 1s infinite alternate;
}

.lock-svg {
  animation: lock-wiggle 2s infinite alternate;
}

@keyframes lock-arrow-bounce {
  0% { transform: translateY(2px); }
  100% { transform: translateY(-2px); }
}

@keyframes lock-wiggle {
  0%, 90% { transform: rotate(0); }
  95% { transform: rotate(-8deg); }
  100% { transform: rotate(8deg); }
}

@keyframes lock-slide-in {
  from { transform: translateY(15px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Audio Player custom styling inside chat bubble */
.bubble audio {
  max-width: 240px;
  height: 40px;
  border-radius: 20px;
  outline: none;
  background: transparent;
  display: block;
}

.msg.out .bubble audio {
  filter: invert(1) hue-rotate(180deg); /* Style default player for dark bubble contrast */
}

/* Screen-Burst Emoji Reactions */
.emoji-burst-particle {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  font-size: 28px;
  user-select: none;
  animation: emoji-fly 1.0s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes emoji-fly {
  0% {
    transform: translate(-50%, -50%) translate(0, 0) scale(0.4);
    opacity: 1;
  }
  50% {
    opacity: 0.9;
  }
  100% {
    transform: translate(-50%, -50%) translate(var(--tx), var(--ty)) scale(1.6);
    opacity: 0;
  }
}

/* Auth Section and Buttons */
.auth-btn {
  display: flex;
  align-items: center;
  gap: var(--sp-1.5);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--sp-2) var(--sp-3.5);
  border-radius: var(--radius-pill);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.auth-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.auth-btn:active {
  transform: translateY(0);
}

.auth-tabs {
  display: flex;
  gap: var(--sp-2);
  background: rgba(255, 255, 255, 0.03);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: var(--sp-2);
}

.auth-tab {
  flex: 1;
  background: transparent;
  border: none;
  padding: var(--sp-2) var(--sp-3);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.auth-tab.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--sp-3.5);
  text-align: left;
}

.form-label {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-input {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--sp-2.5) var(--sp-3.5);
  color: var(--text-primary);
  font-size: 0.92rem;
  font-family: inherit;
  transition: all var(--duration) var(--ease);
  width: 100%;
  box-sizing: border-box;
}

.form-input:focus {
  border-color: var(--border-focus);
  outline: none;
  background: rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

.profile-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: var(--sp-2);
}

.overlay-left {
  display: flex;
  align-items: center;
  gap: var(--sp-1.5);
  font-family: var(--font-display);
  font-size: 0.95rem;
}

.overlay-center {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-family: var(--font-display);
  font-weight: 500;
  animation: slideText 1.5s infinite ease-in-out;
  transition: transform 0.1s ease, opacity 0.1s ease;
  user-select: none;
}

@keyframes slideText {
  0%, 100% { transform: translateX(0); opacity: 0.8; }
  50% { transform: translateX(-8px); opacity: 0.4; }
}

i.ti {
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  line-height: 1;
}


/* Visual Identity Overrides */
.game-result span {
  color: var(--accent) !important;
}


/* --- Customize Vibe Collapsible Section --- */
.collapsible-options {
  max-height: 1000px;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
  opacity: 1;
}

.collapsible-options.collapsed {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}

.toggle-options-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--sp-2) 0;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color var(--duration) var(--ease);
}

.toggle-options-btn:hover {
  color: var(--accent);
}

/* --- Feature Highlights --- */
/* --- Feature Highlights Strip --- */
.feature-strip {
  display: flex;
  gap: 16px;
  width: 100%;
  max-width: 900px;
  margin: 48px auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.feature-strip-card {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  text-align: left;
  box-sizing: border-box;
}

.feature-strip-card i {
  font-size: 24px;
  color: var(--accent);
}

.feature-strip-card h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.feature-strip-card p {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.45;
}

.feature-strip-card:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
}

/* --- Radar/Pulse waiting state --- */
.radar-pulse-container {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto var(--sp-4);
  display: flex;
  align-items: center;
  justify-content: center;
}

body {
  font-family: var(--font-body);
}

h1, h2, h3, .logo-text, .app-name {
  font-family: var(--font-heading);
}

h1, h2, h3 {
  font-family: 'Syne', sans-serif !important;
}

/* --- Pulsing Glow Button (.cta-glow) --- */
.cta-glow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  transition: transform var(--duration) var(--ease), box-shadow 0.3s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .cta-glow:not(:disabled) {
    animation: cta-pulse-glow 2.5s ease-in-out infinite;
  }
  .cta-glow:hover:not(:disabled) {
    animation-play-state: paused;
  }
}

.cta-glow:hover:not(:disabled) {
  transform: scale(1.04);
}

.cta-glow:disabled {
  animation: none !important;
  box-shadow: none !important;
  transform: none !important;
  opacity: 0.4;
  cursor: not-allowed;
}

@keyframes cta-pulse-glow {
  0% {
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
  }
  50% {
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.7);
  }
  100% {
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
  }
}

/* --- Feature Showcase Section --- */
.feature-showcase-section {
  padding: 40px 0;
  background: transparent;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
}

.showcase-title {
  font-family: 'Syne', sans-serif !important;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--text-primary);
  text-align: center;
  position: relative;
  padding-bottom: var(--sp-2);
  margin-top: 0;
  margin-bottom: var(--sp-1);
}

.showcase-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #00e5ff, #a78bfa);
  border-radius: var(--radius-pill);
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  width: 100%;
}

.showcase-card {
  background: rgba(14, 14, 32, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-top: 2px solid var(--accent-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: left;
  gap: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.2);
  
  /* Subtle radial gradient glow behind each card matching its accent color */
  background-image: radial-gradient(circle at 15% 50%, var(--accent-glow) 0%, transparent 60%);
  background-repeat: no-repeat;
  
  /* Animation states for IntersectionObserver */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              border-color 0.3s ease,
              box-shadow 0.3s ease;
}

.showcase-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.showcase-card:hover {
  border-color: var(--accent-color);
  box-shadow: 0 8px 25px 0 var(--accent-glow);
  transform: translateY(-2px) scale(1.02);
}

.showcase-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.showcase-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.showcase-feature-name {
  font-family: 'Syne', sans-serif !important;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin: 0;
}

.showcase-feature-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin: 0;
}

@media (max-width: 600px) {
  .feature-showcase-section {
    padding: 30px 16px;
  }
  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .showcase-title {
    font-size: 1.15rem;
  }
  .showcase-card {
    padding: 10px 14px;
    gap: 12px;
  }
  .showcase-icon {
    font-size: 1.4rem;
  }
}

/* --- Age Gate Immersive Experience --- */
/* --- Age Gate Verification Modal --- */
.immersive-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: opacity 0.4s ease;
  opacity: 1;
  pointer-events: auto;
  padding: 24px;
  box-sizing: border-box;
}

.immersive-gate.exiting {
  opacity: 0;
  pointer-events: none;
}

.age-gate-modal-content {
  background: #0e1420;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  box-sizing: border-box;
}

.age-gate-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 12px 0;
}

.age-gate-body {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0 0 24px 0;
  line-height: 1.5;
}

.age-gate-btn {
  background: var(--accent);
  color: #080c14;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s ease;
}

.age-gate-btn:hover {
  filter: brightness(1.1);
  transform: scale(1.02);
}

/* --- Game Picker Modal Redesign --- */
.game-modal-content {
  background: rgba(14, 14, 32, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(0, 229, 255, 0.2) !important;
  border-radius: 16px !important;
  padding: 24px !important;
  position: relative !important;
  overflow: hidden !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5) !important;
  max-width: 500px !important;
  width: 90% !important;
}

.game-modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #00e5ff, #a78bfa, #ff6eb4);
  z-index: 2;
}

.game-picker-title {
  font-family: 'Syne', sans-serif !important;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-top: 0;
  margin-bottom: 4px;
  text-align: left;
}

.game-picker-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  margin-top: 0;
  text-align: left;
}

#game-modal .modal-content {
  background: rgba(9, 9, 22, 0.97) !important;
  max-width: 480px;
}

.game-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 16px 20px 20px;
}

@media (max-width: 480px) {
  .game-cards-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 481px) {
  .game-cards-grid .game-card:last-child {
    grid-column: span 2;
  }
}

.game-card {
  background: rgba(var(--accent-rgb), 0.07);
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  box-sizing: border-box;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.game-card:hover {
  border-color: rgba(var(--accent-rgb), 0.5);
  transform: translateY(-3px);
}

.game-card-icon {
  font-size: 26px;
  margin-bottom: 8px;
  line-height: 1;
}

.game-card-name {
  font-size: 13px;
  font-weight: 700;
  color: #ddd;
  margin-bottom: 4px;
}

.game-card-desc {
  font-size: 11px;
  color: #555;
  margin-bottom: 10px;
  line-height: 1.35;
}

.game-card-action {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  margin-top: auto;
}

.close-game-picker {
  width: 100%;
  padding: 12px !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  border-radius: var(--radius-md) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: var(--text-primary) !important;
  cursor: pointer;
  transition: all 0.2s ease !important;
}

.close-game-picker:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.modal-drag-handle {
  display: none;
}

@keyframes drawerSlideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

/* Drawing modes toolbar inside drawing modal */
.drawing-modes {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
  width: 100%;
}

.draw-mode-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
  color: #888;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.draw-mode-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #bbb;
  border-color: rgba(255, 255, 255, 0.15);
}

.draw-mode-btn.active {
  border: 1px solid rgba(0, 229, 255, 0.35);
  background: rgba(0, 229, 255, 0.08);
  color: #00e5ff;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.15);
}

.draw-mode-btn.active:hover {
  background: rgba(0, 229, 255, 0.12);
}

/* --- Disconnected Modal Redesign --- */
#disconnected-modal .modal-content {
  background: radial-gradient(ellipse at 50% 0%, rgba(167, 139, 250, 0.08), transparent 55%), #06060f !important;
  max-width: 360px;
  padding: 32px 24px;
  margin: 0 auto;
  border-radius: 16px;
  border: 1px solid rgba(0, 229, 255, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

#disconnected-modal.active .modal-content {
  animation: disconnectedFadeIn 0.35s ease forwards !important;
}

@keyframes disconnectedFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.disconnected-emoji {
  font-size: 32px;
  margin-bottom: 8px;
  display: block;
  text-align: center;
}

.disconnected-headline {
  font-size: 16px;
  font-weight: 700;
  color: #ddd;
  text-align: center;
  margin: 0 0 16px 0;
}

.disconnected-stats-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin: 16px 0;
}

.disconnected-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.disconnected-stat-val {
  font-size: 24px;
  font-weight: 900;
  line-height: 1.2;
}

.disconnected-stat:first-child .disconnected-stat-val {
  color: #00e5ff;
}

.disconnected-stat:last-child .disconnected-stat-val {
  color: #a78bfa;
}

.disconnected-stat-lbl {
  font-size: 10px;
  color: #444;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.disconnected-divider {
  width: 1px;
  height: 40px;
  background: #1a1a30;
}

.reconnect-banner {
  background: rgba(255, 170, 0, 0.08);
  border: 1px solid rgba(255, 170, 0, 0.2);
  border-radius: 9px;
  padding: 9px 14px;
  text-align: center;
  margin-bottom: 14px;
  color: #ffaa00;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

.reconnect-banner:hover {
  background: rgba(255, 170, 0, 0.12);
  border-color: rgba(255, 170, 0, 0.3);
}

.disconnected-primary-btn {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 11px;
  background: linear-gradient(135deg, #00e5ff, #a78bfa);
  color: #06060f;
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.2);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 10px;
}

.disconnected-primary-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 0 32px rgba(0, 229, 255, 0.35);
}

.disconnected-secondary-link {
  display: block;
  text-align: center;
  font-size: 12px;
  color: #333;
  cursor: pointer;
  transition: color 0.15s ease;
  margin-top: 8px;
  user-select: none;
}

.disconnected-secondary-link:hover {
  color: #666;
}

@media (max-width: 639.98px) {
  .modal {
    align-items: flex-end !important;
    padding: 0 !important;
  }
  .modal-content {
    border-radius: 20px 20px 0 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    margin-top: auto !important;
    margin-bottom: 0 !important;
    max-height: 85dvh !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    animation: slideUpMobile 0.28s ease forwards !important;
  }
  .modal-content::after {   /* drag handle */
    content: '';
    display: block;
    width: 36px;
    height: 4px;
    background: #1a1a30;
    border-radius: 2px;
    margin: 12px auto -8px;
    order: -1;
    flex-shrink: 0;
  }
  .modal.active .modal-content {
    animation: slideUpMobile 0.28s ease forwards !important;
  }

  /* Exclude age gate and disconnected modal from bottom sheet layout */
  #disconnected-modal.modal {
    align-items: center !important;
    padding: 20px !important;
  }
  #disconnected-modal .modal-content {
    border-radius: 16px !important;
    max-width: 360px !important;
    margin: auto !important;
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    animation: slideUp 0.25s ease forwards !important;
  }
  #disconnected-modal .modal-content::after {
    display: none !important;
  }
}

@keyframes slideUpMobile {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

#matching-status {
  font-size: 18px !important;
  color: #a78bfa !important;
  font-style: italic !important;
  font-weight: 500 !important;
}

@media (min-width: 601px) {
  .landing-content {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 0 32px;
    padding-top: calc(var(--sp-4) + var(--safe-top));
    padding-bottom: calc(var(--sp-4) + var(--safe-bottom));
  }
}

/* --- Redesign Mobile Responsive Overrides --- */
@media (max-width: 768px) {
  .hero-title {
    font-size: 32px !important;
  }
  .landing-nav {
    padding: 12px 16px;
  }
  .landing-nav .logo {
    font-size: 18px !important;
  }
  .landing-nav .auth-section span {
    display: none !important;
  }
  .feature-strip {
    flex-direction: column !important;
    gap: 16px !important;
    padding: 0 24px;
  }
  .hero {
    min-height: calc(100vh - 60px);
    padding: 32px 24px;
  }
  #friend-connect-section,
  #reconnect-section,
  .vibe-rooms-section {
    padding: 0 24px;
  }
}

