@font-face {
  font-family: 'LvelsDisplay';
  src: url('assets/fonts/outfit-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'LvelsSans';
  src: url('assets/fonts/plus-jakarta-sans-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'LvelsSans';
  src: url('assets/fonts/plus-jakarta-sans-latin-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'LvelsSans';
  src: url('assets/fonts/plus-jakarta-sans-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'LvelsSans';
  src: url('assets/fonts/plus-jakarta-sans-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  interpolate-size: allow-keywords;
  --in-oklab: ;
  --in-oklch: ;

  --sat: max(env(safe-area-inset-top, 0px), var(--safe-area-inset-top, 0px));
  --sab: max(env(safe-area-inset-bottom, 0px), var(--safe-area-inset-bottom, 0px));
  --sal: max(env(safe-area-inset-left, 0px), var(--safe-area-inset-left, 0px));
  --sar: max(env(safe-area-inset-right, 0px), var(--safe-area-inset-right, 0px));
  --target-size: 36px;
  --blur-chrome: 18px;

  /* Motion & Spring Tokens */
  --dur-fast: 120ms;
  --dur-normal: 200ms;
  --dur-slow: 320ms;
  --spring-snappy: cubic-bezier(0.2, 0.9, 0.25, 1);
  --spring-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --spring-bouncy: cubic-bezier(0.34, 1.45, 0.64, 1);

  /* Brand Palette harmonized with icon-192.png (Midnight · Neon Orchid · Amethyst · Cyan) */
  --brand-color: #ff4d9d;
  --brand-primary: #db2777;
  --brand-secondary: #7c3aed;
  --brand-cyan: #0891b2;
  --brand-gradient: linear-gradient(135deg var(--in-oklab), #db2777 0%, #9333ea 54%, #4f46e5 100%);
  --supernova-gradient: linear-gradient(135deg var(--in-oklab), rgba(8, 145, 178, 0.92) 0%, rgba(124, 58, 237, 0.92) 100%);
  --plus-glass-gradient: linear-gradient(135deg var(--in-oklab), rgba(244, 114, 182, 0.34) 0%, rgba(168, 85, 247, 0.42) 55%, rgba(56, 189, 248, 0.28) 100%), rgba(24, 16, 48, 0.8);

  /* Midnight Aurora Dark iOS 27 Liquid Glass Surfaces */
  --bg-page: #0a0715;
  --bg-media-stage: #080512;
  --aurora-1: rgba(192, 38, 211, 0.26);
  --aurora-2: rgba(236, 72, 153, 0.2);
  --aurora-3: rgba(14, 165, 233, 0.15);
  --aurora-4: rgba(124, 58, 237, 0.18);
  --bg-surface: rgba(18, 13, 36, 0.62);
  --bg-card: rgba(24, 17, 48, 0.58);
  --bg-elevated: rgba(38, 27, 74, 0.56);
  --glass-bg: linear-gradient(135deg var(--in-oklab), rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.04) 100%), rgba(16, 11, 34, 0.64);
  --glass-bg-strong: linear-gradient(135deg var(--in-oklab), rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.05) 100%), rgba(12, 8, 28, 0.78);
  --glass-bar-bg: rgba(15, 10, 32, 0.5);
  --glass-sidebar-bg: rgba(12, 8, 26, 0.42);
  --glass-control-bg: rgba(14, 10, 30, 0.66);
  --glass-neutral-btn: linear-gradient(160deg var(--in-oklab), rgba(255, 255, 255, 0.115) 0%, rgba(255, 255, 255, 0.035) 100%), rgba(28, 20, 56, 0.64);
  --glass-box-bg: rgba(28, 20, 56, 0.56);
  --glass-table-head: rgba(24, 17, 48, 0.94);
  --glass-table-cell: rgba(18, 13, 36, 0.94);
  --select-opt-bg: #140e28;
  --glass-highlight: inset 2px 2px 4px rgba(255, 255, 255, 0.44), inset -2px -2px 6px rgba(255, 255, 255, 0.14);
  --glass-shadow: 0 14px 34px rgba(4, 2, 14, 0.46), var(--glass-highlight);
  --glass-shadow-sm: 0 10px 26px rgba(4, 2, 14, 0.32), var(--glass-highlight);
  --btn-glow: var(--glass-shadow-sm);

  /* Photographic Scrims */
  --scrim-top-subtle: linear-gradient(to bottom, rgba(8, 5, 18, 0.62) 0%, rgba(8, 5, 18, 0.24) 54%, transparent 100%);
  --scrim-bottom-editorial: linear-gradient(
    to top,
    rgba(8, 5, 18, 0.94) 0%,
    rgba(8, 5, 18, 0.84) 22%,
    rgba(8, 5, 18, 0.62) 45%,
    rgba(8, 5, 18, 0.34) 68%,
    rgba(8, 5, 18, 0.12) 86%,
    transparent 100%
  );

  --text-main: #f9f7ff;
  --text-muted: #c8bfe7;
  --champagne-text: #f5d0fe;
  --link-color: #f9a8d4;
  --link-hover: #ffffff;
  --focus-ring: #f9a8d4;
  --border-hairline: rgba(255, 255, 255, 0.09);
  --border-subtle: rgba(255, 255, 255, 0.16);
  --border-specular: rgba(255, 255, 255, 0.32);
  --border-control: rgba(255, 255, 255, 0.28);
  --verified-green: #10b981;

  --pill-green-bg: rgba(16, 185, 129, 0.18);
  --pill-green-fg: #6ee7b7;
  --pill-cyan-bg: rgba(8, 145, 178, 0.22);
  --pill-cyan-fg: #a5f3fc;
  --pill-purple-bg: rgba(124, 58, 237, 0.26);
  --pill-purple-fg: #ede9fe;
  --pill-pink-bg: rgba(219, 39, 119, 0.22);
  --pill-pink-fg: #fbcfe8;
  --pill-red-bg: rgba(225, 29, 72, 0.2);
  --pill-red-fg: #fecdd3;
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --radius-pill: 999px;

  /* Parity & iOS 27 Semantic Functional Color System (Dark) */
  --track-bg: rgba(255, 255, 255, 0.15);
  --control-inset-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.24);
  --header-shadow: 0 8px 28px rgba(4, 2, 12, 0.42), var(--glass-highlight);
  --dock-shadow: 0 -10px 32px rgba(4, 2, 12, 0.48), var(--glass-highlight);
  --ui-active-gradient: linear-gradient(135deg var(--in-oklab), #7c3aed 0%, #4f46e5 100%);
  --ui-active-glow: 0 4px 14px rgba(109, 40, 217, 0.34), var(--glass-highlight);

  /* 1. ❤️ Match / Me gusta — Rose-Fuchsia */
  --accent-love: #f43f5e;
  --accent-love-gradient: linear-gradient(135deg var(--in-oklab), #e11d48 0%, #be123c 55%, #9f1239 100%);
  --accent-love-soft: rgba(244, 63, 94, 0.2);
  --accent-love-border: rgba(251, 113, 133, 0.5);
  --accent-love-fg: #ffe4e6;
  --accent-love-glow: 0 8px 22px rgba(225, 29, 72, 0.38), var(--glass-highlight);

  /* 2. 💎 Diamantes — Refractive Ice Cyan -> Sapphire */
  --accent-diamond: #38bdf8;
  --accent-diamond-gradient: linear-gradient(135deg var(--in-oklab), #0e7490 0%, #0369a1 52%, #1d4ed8 100%);
  --accent-diamond-glass: linear-gradient(135deg var(--in-oklab), rgba(34, 211, 238, 0.24) 0%, rgba(37, 99, 235, 0.28) 100%), rgba(12, 22, 46, 0.68);
  --accent-diamond-soft: rgba(14, 165, 233, 0.2);
  --accent-diamond-border: rgba(56, 189, 248, 0.52);
  --accent-diamond-fg: #bae6fd;
  --accent-diamond-glow: 0 8px 22px rgba(14, 165, 233, 0.34), var(--glass-highlight);

  /* 3. 👑 Pase Lvels Plus (VIP) — Champagne Gold -> Amber */
  --accent-vip: #fbbf24;
  --accent-vip-gradient: linear-gradient(135deg var(--in-oklab), #fde68a 0%, #fbbf24 48%, #f59e0b 100%);
  --accent-vip-on-solid: #231202;
  --accent-vip-soft: linear-gradient(135deg var(--in-oklab), rgba(251, 191, 36, 0.22) 0%, rgba(217, 119, 6, 0.26) 100%);
  --accent-vip-border: rgba(251, 191, 36, 0.56);
  --accent-vip-fg: #fde68a;
  --accent-vip-glow: 0 8px 24px rgba(245, 158, 11, 0.3), var(--glass-highlight);

  /* 4. 🔴 En Vivo (VIVO) — Coral-Ruby Pulse */
  --accent-live: #ef4444;
  --accent-live-gradient: linear-gradient(135deg var(--in-oklab), #e11d48 0%, #dc2626 52%, #b91c1c 100%);
  --accent-live-soft: rgba(239, 68, 68, 0.22);
  --accent-live-border: rgba(252, 165, 165, 0.58);
  --accent-live-fg: #fecaca;
  --accent-live-glow: 0 8px 22px rgba(239, 68, 68, 0.42), var(--glass-highlight);

  /* 5. ✓ Verificado / En línea / Chat Gratis — Emerald-Mint */
  --accent-emerald: #10b981;
  --accent-emerald-gradient: linear-gradient(135deg var(--in-oklab), #047857 0%, #065f46 58%, #064e3b 100%);
  --accent-emerald-soft: rgba(16, 185, 129, 0.18);
  --accent-emerald-border: rgba(52, 211, 153, 0.46);
  --accent-emerald-fg: #6ee7b7;
  --accent-emerald-glow: 0 8px 20px rgba(16, 185, 129, 0.3), var(--glass-highlight);

  /* Liquid Glass Chat Bubbles (Dark) */
  --msg-in-bg: linear-gradient(135deg var(--in-oklab), rgba(56, 189, 248, 0.17) 0%, rgba(255, 255, 255, 0.08) 52%, rgba(139, 92, 246, 0.13) 100%), rgba(24, 19, 48, 0.88);
  --msg-in-shadow: 0 5px 16px rgba(8, 12, 32, 0.14), inset 1.5px 1.5px 3px rgba(255, 255, 255, 0.45), inset -1.5px -1.5px 4px rgba(56, 189, 248, 0.1);
  --msg-out-bg: linear-gradient(135deg var(--in-oklab), rgba(196, 28, 102, 0.94) 0%, rgba(126, 34, 206, 0.94) 54%, rgba(67, 56, 202, 0.95) 100%);
  --msg-out-shadow: 0 6px 18px rgba(147, 51, 234, 0.24), inset 1.5px 1.5px 3px rgba(255, 255, 255, 0.48), inset -1.5px -1.5px 4px rgba(15, 6, 36, 0.22);
}

:root:has(> head > meta[name="color-scheme"][content="light"]),
:root[data-theme="light"]:not(:has(> head > meta[name="color-scheme"][content="dark"])) {
  color-scheme: light;
  --bg-page: #f2f4fc;
  --bg-media-stage: #080512;
  --aurora-1: rgba(236, 72, 153, 0.19);
  --aurora-2: rgba(168, 85, 247, 0.18);
  --aurora-3: rgba(14, 165, 233, 0.18);
  --aurora-4: rgba(244, 114, 182, 0.15);
  --bg-surface: rgba(255, 255, 255, 0.72);
  --bg-card: rgba(255, 255, 255, 0.76);
  --bg-elevated: rgba(255, 255, 255, 0.9);
  --glass-bg: linear-gradient(135deg var(--in-oklab), rgba(255, 255, 255, 0.86) 0%, rgba(245, 248, 255, 0.68) 100%), rgba(255, 255, 255, 0.72);
  --glass-bg-strong: linear-gradient(135deg var(--in-oklab), rgba(255, 255, 255, 0.92) 0%, rgba(246, 248, 255, 0.82) 100%), rgba(255, 255, 255, 0.84);
  --glass-bar-bg: rgba(255, 255, 255, 0.68);
  --glass-sidebar-bg: rgba(248, 250, 255, 0.76);
  --glass-control-bg: rgba(255, 255, 255, 0.84);
  --glass-neutral-btn: linear-gradient(160deg var(--in-oklab), rgba(255, 255, 255, 0.92) 0%, rgba(241, 245, 255, 0.74) 100%), rgba(255, 255, 255, 0.78);
  --glass-box-bg: rgba(255, 255, 255, 0.78);
  --glass-table-head: rgba(244, 246, 253, 0.96);
  --glass-table-cell: rgba(255, 255, 255, 0.96);
  --select-opt-bg: #ffffff;
  --plus-glass-gradient: linear-gradient(135deg var(--in-oklab), rgba(219, 39, 119, 0.9) 0%, rgba(124, 58, 237, 0.9) 62%, rgba(14, 165, 233, 0.88) 100%);
  --glass-highlight: inset 2px 2px 4px rgba(255, 255, 255, 0.98), inset -2px -2px 6px rgba(124, 58, 237, 0.12), 0 0 0 1px rgba(76, 54, 138, 0.1);
  --glass-shadow: 0 14px 32px rgba(45, 32, 92, 0.12), var(--glass-highlight);
  --glass-shadow-sm: 0 8px 22px rgba(45, 32, 92, 0.09), var(--glass-highlight);

  --text-main: #18122b;
  --text-muted: #524873;
  --champagne-text: #86198f;
  --link-color: #9d174d;
  --link-hover: #831843;
  --focus-ring: #db2777;
  --border-hairline: rgba(76, 54, 138, 0.10);
  --border-subtle: rgba(76, 54, 138, 0.14);
  --border-specular: rgba(255, 255, 255, 0.94);
  --border-control: rgba(76, 54, 138, 0.22);

  --pill-green-bg: rgba(16, 185, 129, 0.14);
  --pill-green-fg: #065f46;
  --pill-cyan-bg: rgba(14, 165, 233, 0.14);
  --pill-cyan-fg: #0369a1;
  --pill-purple-bg: rgba(124, 58, 237, 0.13);
  --pill-purple-fg: #5b21b6;
  --pill-pink-bg: rgba(219, 39, 119, 0.13);
  --pill-pink-fg: #9d174d;
  --pill-red-bg: rgba(225, 29, 72, 0.12);
  --pill-red-fg: #9f1239;
  --track-bg: rgba(76, 54, 138, 0.15);
  --control-inset-shadow: inset 0 1px 2px rgba(45, 32, 92, 0.06);
  --header-shadow: 0 8px 24px rgba(45, 32, 92, 0.08), var(--glass-highlight);
  --dock-shadow: 0 -8px 26px rgba(45, 32, 92, 0.1), var(--glass-highlight);
  --ui-active-gradient: linear-gradient(135deg var(--in-oklab), #6d28d9 0%, #4338ca 100%);
  --ui-active-glow: 0 4px 12px rgba(91, 33, 182, 0.22), var(--glass-highlight);
  --accent-love: #e11d48;
  --accent-love-gradient: linear-gradient(135deg var(--in-oklab), #e11d48 0%, #be123c 54%, #9f1239 100%);
  --accent-love-soft: rgba(225, 29, 72, 0.11);
  --accent-love-border: rgba(225, 29, 72, 0.32);
  --accent-love-fg: #9f1239;
  --accent-love-glow: 0 6px 18px rgba(225, 29, 72, 0.22), var(--glass-highlight);
  --accent-diamond: #0284c7;
  --accent-diamond-gradient: linear-gradient(135deg var(--in-oklab), #0e7490 0%, #0369a1 52%, #1d4ed8 100%);
  --accent-diamond-glass: linear-gradient(135deg var(--in-oklab), rgba(224, 242, 254, 0.94) 0%, rgba(219, 234, 254, 0.88) 100%);
  --accent-diamond-soft: rgba(2, 132, 199, 0.12);
  --accent-diamond-border: rgba(2, 132, 199, 0.36);
  --accent-diamond-fg: #075985;
  --accent-diamond-glow: 0 6px 18px rgba(2, 132, 199, 0.2), var(--glass-highlight);
  --accent-vip: #d97706;
  --accent-vip-gradient: linear-gradient(135deg var(--in-oklab), #fde68a 0%, #fbbf24 52%, #f59e0b 100%);
  --accent-vip-on-solid: #291502;
  --accent-vip-soft: linear-gradient(135deg var(--in-oklab), rgba(251, 191, 36, 0.22) 0%, rgba(245, 158, 11, 0.16) 100%);
  --accent-vip-border: rgba(217, 119, 6, 0.45);
  --accent-vip-fg: #92400e;
  --accent-vip-glow: 0 6px 18px rgba(217, 119, 6, 0.22), var(--glass-highlight);
  --accent-live: #dc2626;
  --accent-live-gradient: linear-gradient(135deg var(--in-oklab), #e11d48 0%, #dc2626 55%, #b91c1c 100%);
  --accent-live-soft: rgba(220, 38, 38, 0.11);
  --accent-live-border: rgba(220, 38, 38, 0.35);
  --accent-live-fg: #991b1b;
  --accent-live-glow: 0 6px 18px rgba(220, 38, 38, 0.24), var(--glass-highlight);
  --accent-emerald: #059669;
  --accent-emerald-gradient: linear-gradient(135deg var(--in-oklab), #047857 0%, #065f46 60%, #064e3b 100%);
  --accent-emerald-soft: rgba(5, 150, 105, 0.12);
  --accent-emerald-border: rgba(5, 150, 105, 0.34);
  --accent-emerald-fg: #065f46;
  --accent-emerald-glow: 0 6px 18px rgba(5, 150, 105, 0.2), var(--glass-highlight);
  --msg-in-bg: linear-gradient(135deg var(--in-oklab), rgba(255, 255, 255, 0.96) 0%, rgba(224, 242, 254, 0.88) 100%);
  --msg-in-shadow: 0 5px 14px rgba(45, 32, 92, 0.08), inset 1.5px 1.5px 3px rgba(255, 255, 255, 0.96), inset -1.5px -1.5px 4px rgba(14, 165, 233, 0.12), 0 0 0 1px rgba(76, 54, 138, 0.12);
  --msg-out-bg: linear-gradient(135deg var(--in-oklab), rgba(190, 24, 93, 0.96) 0%, rgba(126, 34, 206, 0.96) 54%, rgba(67, 56, 202, 0.97) 100%);
  --msg-out-shadow: 0 6px 18px rgba(124, 58, 237, 0.24), inset 1.5px 1.5px 3px rgba(255, 255, 255, 0.48), inset -1.5px -1.5px 4px rgba(15, 6, 36, 0.2);
}

:root:has(> head > meta[name="color-scheme"][content="dark"]) {
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]):not(:has(> head > meta[name="color-scheme"][content="dark"])) {
    color-scheme: light;
    --bg-page: #f2f4fc;
    --bg-media-stage: #080512;
    --aurora-1: rgba(236, 72, 153, 0.19);
    --aurora-2: rgba(168, 85, 247, 0.18);
    --aurora-3: rgba(14, 165, 233, 0.18);
    --aurora-4: rgba(244, 114, 182, 0.15);
    --bg-surface: rgba(255, 255, 255, 0.72);
    --bg-card: rgba(255, 255, 255, 0.76);
    --bg-elevated: rgba(255, 255, 255, 0.9);
    --glass-bg: linear-gradient(135deg var(--in-oklab), rgba(255, 255, 255, 0.86) 0%, rgba(245, 248, 255, 0.68) 100%), rgba(255, 255, 255, 0.72);
    --glass-bg-strong: linear-gradient(135deg var(--in-oklab), rgba(255, 255, 255, 0.92) 0%, rgba(246, 248, 255, 0.82) 100%), rgba(255, 255, 255, 0.84);
    --glass-bar-bg: rgba(255, 255, 255, 0.68);
    --glass-sidebar-bg: rgba(248, 250, 255, 0.76);
    --glass-control-bg: rgba(255, 255, 255, 0.84);
    --glass-neutral-btn: linear-gradient(160deg var(--in-oklab), rgba(255, 255, 255, 0.92) 0%, rgba(241, 245, 255, 0.74) 100%), rgba(255, 255, 255, 0.78);
    --glass-box-bg: rgba(255, 255, 255, 0.78);
    --glass-table-head: rgba(244, 246, 253, 0.96);
    --glass-table-cell: rgba(255, 255, 255, 0.96);
    --select-opt-bg: #ffffff;
    --plus-glass-gradient: linear-gradient(135deg var(--in-oklab), rgba(219, 39, 119, 0.9) 0%, rgba(124, 58, 237, 0.9) 62%, rgba(14, 165, 233, 0.88) 100%);
    --glass-highlight: inset 2px 2px 4px rgba(255, 255, 255, 0.98), inset -2px -2px 6px rgba(124, 58, 237, 0.12), 0 0 0 1px rgba(76, 54, 138, 0.1);
    --glass-shadow: 0 14px 32px rgba(45, 32, 92, 0.12), var(--glass-highlight);
    --glass-shadow-sm: 0 8px 22px rgba(45, 32, 92, 0.09), var(--glass-highlight);
    --text-main: #18122b;
    --text-muted: #524873;
    --champagne-text: #86198f;
    --link-color: #9d174d;
    --link-hover: #831843;
    --focus-ring: #db2777;
    --border-hairline: rgba(76, 54, 138, 0.10);
    --border-subtle: rgba(76, 54, 138, 0.14);
    --border-specular: rgba(255, 255, 255, 0.94);
    --border-control: rgba(76, 54, 138, 0.22);
    --pill-green-bg: rgba(16, 185, 129, 0.14);
    --pill-green-fg: #065f46;
    --pill-cyan-bg: rgba(14, 165, 233, 0.14);
    --pill-cyan-fg: #0369a1;
    --pill-purple-bg: rgba(124, 58, 237, 0.13);
    --pill-purple-fg: #5b21b6;
    --pill-pink-bg: rgba(219, 39, 119, 0.13);
    --pill-pink-fg: #9d174d;
    --pill-red-bg: rgba(225, 29, 72, 0.12);
    --pill-red-fg: #9f1239;
    --track-bg: rgba(76, 54, 138, 0.15);
    --control-inset-shadow: inset 0 1px 2px rgba(45, 32, 92, 0.06);
    --header-shadow: 0 8px 24px rgba(45, 32, 92, 0.08), var(--glass-highlight);
    --dock-shadow: 0 -8px 26px rgba(45, 32, 92, 0.1), var(--glass-highlight);
    --ui-active-gradient: linear-gradient(135deg var(--in-oklab), #6d28d9 0%, #4338ca 100%);
    --ui-active-glow: 0 4px 12px rgba(91, 33, 182, 0.22), var(--glass-highlight);
    --accent-love: #e11d48;
    --accent-love-gradient: linear-gradient(135deg var(--in-oklab), #e11d48 0%, #be123c 54%, #9f1239 100%);
    --accent-love-soft: rgba(225, 29, 72, 0.11);
    --accent-love-border: rgba(225, 29, 72, 0.32);
    --accent-love-fg: #9f1239;
    --accent-love-glow: 0 6px 18px rgba(225, 29, 72, 0.22), var(--glass-highlight);
    --accent-diamond: #0284c7;
    --accent-diamond-gradient: linear-gradient(135deg var(--in-oklab), #0e7490 0%, #0369a1 52%, #1d4ed8 100%);
    --accent-diamond-glass: linear-gradient(135deg var(--in-oklab), rgba(224, 242, 254, 0.94) 0%, rgba(219, 234, 254, 0.88) 100%);
    --accent-diamond-soft: rgba(2, 132, 199, 0.12);
    --accent-diamond-border: rgba(2, 132, 199, 0.36);
    --accent-diamond-fg: #075985;
    --accent-diamond-glow: 0 6px 18px rgba(2, 132, 199, 0.2), var(--glass-highlight);
    --accent-vip: #d97706;
    --accent-vip-gradient: linear-gradient(135deg var(--in-oklab), #fde68a 0%, #fbbf24 52%, #f59e0b 100%);
    --accent-vip-on-solid: #291502;
    --accent-vip-soft: linear-gradient(135deg var(--in-oklab), rgba(251, 191, 36, 0.22) 0%, rgba(245, 158, 11, 0.16) 100%);
    --accent-vip-border: rgba(217, 119, 6, 0.45);
    --accent-vip-fg: #92400e;
    --accent-vip-glow: 0 6px 18px rgba(217, 119, 6, 0.22), var(--glass-highlight);
    --accent-live: #dc2626;
    --accent-live-gradient: linear-gradient(135deg var(--in-oklab), #e11d48 0%, #dc2626 55%, #b91c1c 100%);
    --accent-live-soft: rgba(220, 38, 38, 0.11);
    --accent-live-border: rgba(220, 38, 38, 0.35);
    --accent-live-fg: #991b1b;
    --accent-live-glow: 0 6px 18px rgba(220, 38, 38, 0.24), var(--glass-highlight);
    --accent-emerald: #059669;
    --accent-emerald-gradient: linear-gradient(135deg var(--in-oklab), #047857 0%, #065f46 60%, #064e3b 100%);
    --accent-emerald-soft: rgba(5, 150, 105, 0.12);
    --accent-emerald-border: rgba(5, 150, 105, 0.34);
    --accent-emerald-fg: #065f46;
    --accent-emerald-glow: 0 6px 18px rgba(5, 150, 105, 0.2), var(--glass-highlight);
    --msg-in-bg: linear-gradient(135deg var(--in-oklab), rgba(255, 255, 255, 0.96) 0%, rgba(224, 242, 254, 0.88) 100%);
    --msg-in-shadow: 0 5px 14px rgba(45, 32, 92, 0.08), inset 1.5px 1.5px 3px rgba(255, 255, 255, 0.96), inset -1.5px -1.5px 4px rgba(14, 165, 233, 0.12), 0 0 0 1px rgba(76, 54, 138, 0.12);
    --msg-out-bg: linear-gradient(135deg var(--in-oklab), rgba(190, 24, 93, 0.96) 0%, rgba(126, 34, 206, 0.96) 54%, rgba(67, 56, 202, 0.97) 100%);
    --msg-out-shadow: 0 6px 18px rgba(124, 58, 237, 0.24), inset 1.5px 1.5px 3px rgba(255, 255, 255, 0.48), inset -1.5px -1.5px 4px rgba(15, 6, 36, 0.2);
  }
}

@supports (background: linear-gradient(in oklab, white, black)) {
  :root {
    --in-oklab: in oklab;
    --in-oklch: in oklch;
  }
}

@supports (animation-timing-function: linear(0, 1)) {
  :root {
    --spring-snappy: linear(0, 0.38 14%, 0.78 32%, 0.98 54%, 1.02 74%, 1);
    --spring-smooth: linear(0, 0.28 12%, 0.66 28%, 0.91 50%, 0.99 74%, 1);
    --spring-bouncy: linear(0, 0.34 10%, 0.86 24%, 1.12 40%, 1.04 58%, 0.99 76%, 1);
  }
}

@media (pointer: coarse) {
  :root {
    --blur-chrome: 12px;
    --target-size: 44px;
  }
}

@media (pointer: coarse), (max-width: 860px) {
  :root {
    --target-size: 44px;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  scrollbar-width: thin;
  scrollbar-color: rgba(232, 121, 249, 0.34) transparent;
}

*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: rgba(232, 121, 249, 0.34);
  border-radius: 999px;
}

@media (hover: hover) and (pointer: fine) {
  *::-webkit-scrollbar-thumb:hover {
    background: rgba(232, 121, 249, 0.56);
  }
}

:where([hidden]) {
  display: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

[tabindex="-1"]:focus {
  outline: none;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

html {
  scroll-padding-top: calc(76px + var(--sat));
  scroll-padding-bottom: calc(104px + var(--sab));
  background-color: var(--bg-page);
  overflow-x: clip;
  max-width: 100%;
}

/* Skip Link: 100% invisible off-screen until keyboard :focus-visible (never leaks on Android punch-hole) */
.skip-link:not(:focus-visible) {
  position: fixed;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.skip-link:focus-visible {
  position: fixed;
  top: calc(12px + var(--sat));
  left: calc(12px + var(--sal));
  z-index: 200;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(var(--blur-chrome)) saturate(180%);
  backdrop-filter: blur(var(--blur-chrome)) saturate(180%);
  border: 1px solid rgba(249, 168, 212, 0.58);
  box-shadow: var(--glass-shadow-sm);
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.86rem;
  text-decoration: none;
}

body {
  font-family: 'LvelsSans', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  min-height: 100dvh;
  max-width: 100%;
  overflow-x: clip;
  line-height: 1.48;
  accent-color: var(--brand-color);
  -webkit-font-smoothing: antialiased;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: var(--bg-page);
  background-image:
    radial-gradient(circle at 84% 8%, var(--aurora-1) 0%, transparent 44%),
    radial-gradient(circle at 12% 20%, var(--aurora-2) 0%, transparent 42%),
    radial-gradient(circle at 78% 86%, var(--aurora-3) 0%, transparent 48%),
    radial-gradient(circle at 22% 84%, var(--aurora-4) 0%, transparent 45%);
}

a {
  color: var(--link-color);
  text-underline-offset: 3px;
}

.text-link-btn {
  background: none;
  border: none;
  color: var(--link-color);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  min-height: max(32px, var(--target-size));
  padding: 2px 6px;
  display: inline-flex;
  align-items: center;
}

@media (hover: hover) and (pointer: fine) {
  a:hover {
    color: var(--link-hover);
    text-decoration-thickness: 2px;
  }

  .text-link-btn:hover {
    color: var(--link-hover);
  }
}

/* ================= LIQUID GLASS ACCORDIONS (<details>) ================= */
.glass-accordion {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--blur-chrome)) saturate(150%);
  backdrop-filter: blur(var(--blur-chrome)) saturate(150%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--glass-shadow-sm);
  overflow: hidden;
  transition: border-color var(--dur-normal) ease;
}

.glass-accordion[open] {
  border-color: rgba(244, 114, 182, 0.35);
}

.glass-accordion::details-content {
  interpolate-size: allow-keywords;
  overflow: clip;
  contain: layout;
}

.glass-accordion:not([open])::details-content {
  block-size: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .glass-accordion::details-content {
    transition:
      block-size var(--dur-slow) var(--spring-smooth),
      content-visibility var(--dur-slow),
      display var(--dur-slow);
    transition-behavior: allow-discrete;
  }
}

.glass-accordion > summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 15px;
  min-height: var(--target-size);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-main);
  user-select: none;
}

.glass-accordion > summary::-webkit-details-marker {
  display: none;
}

.glass-accordion > summary::after {
  content: "▾";
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: transform var(--dur-normal) var(--spring-snappy);
}

.glass-accordion[open] > summary::after {
  transform: rotate(180deg);
}

.glass-accordion-body {
  padding: 4px 15px 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--border-hairline);
}

/* ================= AUTH SCREEN ================= */
.auth-screen {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: calc(18px + var(--sat)) calc(16px + var(--sar)) calc(20px + var(--sab)) calc(16px + var(--sal));
}

.auth-shell {
  max-width: 1040px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1.04fr;
  gap: 32px;
  align-items: center;
}

@media (max-width: 860px) {
  .auth-shell {
    grid-template-columns: 1fr;
    gap: 14px;
    max-width: 480px;
  }
}

.auth-hero {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.brand-logo-large {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-heart,
.brand-logo-img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 16px rgba(219, 39, 119, 0.38));
}

.brand-logo-large .brand-heart,
.brand-logo-large .brand-logo-img {
  width: 54px;
  height: 54px;
  border-radius: 16px;
}

.brand-title-xl {
  font-family: 'LvelsDisplay', sans-serif;
  font-size: clamp(1.85rem, 2vw + 1.15rem, 2.75rem);
  background: linear-gradient(95deg var(--in-oklab), #ff5ca8 0%, #e879f9 52%, #bae6fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.16;
  letter-spacing: -0.02em;
}

.brand-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 3px;
}

.auth-mini-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.glass-micro-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: var(--glass-neutral-btn);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--glass-highlight);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-main);
}

.auth-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.88rem;
  margin-top: 8px;
}

.auth-highlights li {
  background: var(--glass-box-bg);
  border: 1px solid var(--border-subtle);
  padding: 11px 13px;
  border-radius: var(--radius-md);
}

.trust-safety-box {
  background: linear-gradient(135deg var(--in-oklab), rgba(16, 185, 129, 0.14), rgba(139, 92, 246, 0.18));
  border: 1px solid rgba(52, 211, 153, 0.34);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.trust-safety-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--accent-emerald-fg);
}

.trust-safety-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.auth-card {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--blur-chrome)) saturate(155%);
  backdrop-filter: blur(var(--blur-chrome)) saturate(155%);
  border: 1px solid var(--border-specular);
  border-radius: var(--radius-xl);
  padding: 22px;
  box-shadow: var(--glass-shadow);
  min-width: 0;
  max-width: 100%;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: var(--glass-control-bg);
  padding: 4px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  margin-bottom: 16px;
}

.auth-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  min-height: var(--target-size);
  padding: 9px 12px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
}

.auth-tabs:not(.has-glass-ready) .auth-tab.active {
  background: var(--brand-gradient);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(219, 39, 119, 0.36), var(--glass-highlight);
}

.auth-alert {
  padding: 10px 13px;
  border-radius: var(--radius-md);
  background: var(--pill-red-bg);
  border: 1px solid var(--accent-love-border);
  color: var(--pill-red-fg);
  font-size: 0.84rem;
  margin-bottom: 12px;
}

.auth-alert.is-error {
  background: var(--pill-red-bg);
  border-color: var(--accent-love-border);
  color: var(--pill-red-fg);
}

.auth-alert.is-success {
  background: var(--pill-green-bg);
  border-color: var(--accent-emerald-border);
  color: var(--pill-green-fg);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.auth-form-title {
  font-family: 'LvelsDisplay', sans-serif;
  font-size: 1.25rem;
  line-height: 1.16;
  letter-spacing: -0.02em;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.field-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.field-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.field-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 520px) {
  .field-row-2:not(.keep-2col-mobile) {
    grid-template-columns: 1fr;
  }

  .field-row-2.keep-2col-mobile {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
  }
}

@media (max-width: 400px) {
  .field-row-2.keep-2col-mobile {
    grid-template-columns: 1fr;
  }
}

.password-input-wrap {
  display: flex;
  gap: 6px;
  align-items: stretch;
}

.toggle-pwd-btn,
.toggle-pass-btn {
  background: var(--glass-neutral-btn);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--glass-highlight);
  color: var(--text-main);
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pronoun-chips,
.quick-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.pronoun-chip,
.mini-chip {
  background: var(--glass-neutral-btn);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--glass-highlight);
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  min-height: max(34px, calc(var(--target-size) - 6px));
  font-family: inherit;
  font-size: 0.77rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .pronoun-chip:hover,
  .mini-chip:hover {
    border-color: rgba(244, 114, 182, 0.52);
    color: var(--text-main);
  }
}

.pronoun-chip.active,
:not(.lg-segmented-rail) > .mini-chip.active,
.lg-segmented-rail:not(.has-glass-ready) > .mini-chip.active {
  background: var(--brand-gradient);
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(219, 39, 119, 0.36), var(--glass-highlight);
}

.full-btn {
  width: 100%;
  justify-content: center;
}

.auth-helper-links,
.legal-links-inline {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.auth-helper-links a,
.legal-links-inline a {
  display: inline-flex;
  align-items: center;
  min-height: max(32px, var(--target-size));
  padding: 2px 4px;
}

/* ================= MAIN APP SHELL & CONTEXTUAL BARS ================= */
.announcement-bar {
  background: linear-gradient(90deg var(--in-oklab), rgba(124, 58, 237, 0.85), rgba(219, 39, 119, 0.85));
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: #ffffff;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  padding: calc(6px + var(--sat)) calc(14px + var(--sar)) 6px calc(14px + var(--sal));
  border-bottom: 1px solid var(--border-subtle);
}

.app-layout {
  max-width: 1240px;
  width: 100%;
  min-width: 0;
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(92px + var(--sab));
}

/* Single-Row Sticky Liquid Glass Header — ALWAYS preserves safe-area-inset-top */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(8px + var(--sat)) calc(16px + var(--sar)) 10px calc(16px + var(--sal));
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(var(--blur-chrome)) saturate(155%);
  backdrop-filter: blur(var(--blur-chrome)) saturate(155%);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--header-shadow);
  position: sticky;
  top: 0;
  z-index: 25;
  gap: 10px;
  flex-wrap: nowrap;
  view-transition-name: app-header;
}

.announcement-bar:not([hidden]) ~ .app-header,
.offline-banner:not([hidden]) ~ .app-header {
  padding-top: 8px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex: 1 1 auto;
}

.brand-logo-text {
  min-width: 0;
  overflow: hidden;
}

.brand-title {
  font-family: 'LvelsDisplay', sans-serif;
  font-size: clamp(1.12rem, 1vw + 0.9rem, 1.42rem);
  background: linear-gradient(95deg var(--in-oklab), #ff5ca8 0%, #e879f9 55%, #bae6fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  line-height: 1.16;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-badge {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.free-chat-pill {
  background: var(--pill-green-bg);
  border: 1px solid rgba(52, 211, 153, 0.42);
  box-shadow: var(--glass-highlight);
  color: var(--pill-green-fg);
  padding: 6px 12px;
  min-height: var(--target-size);
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .free-chat-pill:hover {
    background: rgba(16, 185, 129, 0.28);
    border-color: rgba(110, 231, 183, 0.65);
  }
}

.stealth-badge {
  background: var(--pill-purple-bg);
  border: 1px solid rgba(196, 181, 253, 0.45);
  color: var(--pill-purple-fg);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.icon-btn {
  border: 1px solid var(--border-subtle);
  background: var(--glass-neutral-btn);
  -webkit-backdrop-filter: blur(14px) saturate(145%);
  backdrop-filter: blur(14px) saturate(145%);
  box-shadow: var(--glass-highlight);
  color: var(--text-main);
  padding: 6px 12px;
  min-height: var(--target-size);
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .icon-btn:hover {
    border-color: var(--border-specular);
  }
}

/* Champagne-Orchid Liquid Glass Plus Button (replaces old taxi-yellow block) */
.vip-header-btn {
  background: var(--plus-glass-gradient);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  color: #ffffff;
  border: 1px solid rgba(244, 114, 182, 0.52);
  padding: 6px 13px;
  min-height: var(--target-size);
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(192, 38, 211, 0.3), var(--glass-highlight);
}

@media (hover: hover) and (pointer: fine) {
  .vip-header-btn:hover:not(:disabled) {
    border-color: rgba(249, 168, 212, 0.82);
  }
}

/* Contextual Visibility: Gender Bar & Spotlight Bar shown in Niveles & Radar Grid */
.gender-bar {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px calc(16px + var(--sar)) 8px calc(16px + var(--sal));
  background: var(--glass-bar-bg);
  -webkit-backdrop-filter: blur(var(--blur-chrome)) saturate(155%);
  backdrop-filter: blur(var(--blur-chrome)) saturate(155%);
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
  scrollbar-width: none;
}

.app-layout:has(#view-encounters.active) .gender-bar,
.app-layout:has(#view-discover.active):not(:has(#discoverDetailPanel:not([hidden]))) .gender-bar {
  display: flex;
}

.gender-bar::-webkit-scrollbar,
.spotlight-bar::-webkit-scrollbar,
.radar-quick-rail::-webkit-scrollbar,
.chat-tools-scroll::-webkit-scrollbar {
  display: none;
}

.gender-bar-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}

@media (max-width: 600px) {
  .gender-bar-label {
    display: none;
  }
}

.gender-chips {
  --lg-pill-fill: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.36) 0%,
    rgba(255, 255, 255, 0.08) 46%,
    rgba(168, 85, 247, 0.18) 84%,
    rgba(255, 255, 255, 0.24) 100%
  );
  --lg-pill-border: rgba(255, 255, 255, 0.44);
  --lg-pill-shadow:
    0 8px 20px rgba(0, 0, 0, 0.42),
    0 2px 5px rgba(0, 0, 0, 0.24),
    inset 0 2px 2px rgba(255, 255, 255, 0.78),
    inset 0 -2.5px 5px rgba(236, 72, 153, 0.28),
    inset 2.5px 0 5px rgba(56, 189, 248, 0.26),
    inset -2.5px 0 5px rgba(168, 85, 247, 0.28);
  --lg-pill-shadow-active:
    0 12px 24px rgba(0, 0, 0, 0.52),
    0 0 16px rgba(168, 85, 247, 0.28),
    inset 0 2.5px 2.5px rgba(255, 255, 255, 0.92),
    inset 0 -3px 6px rgba(236, 72, 153, 0.36),
    inset 3px 0 6px rgba(56, 189, 248, 0.34),
    inset -3px 0 6px rgba(168, 85, 247, 0.36);
  --lg-dome-sheen: linear-gradient(180deg, rgba(255, 255, 255, 0.56) 0%, rgba(255, 255, 255, 0.08) 65%, rgba(255, 255, 255, 0) 100%);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: var(--glass-bg);
  background-clip: padding-box;
  border: 1px solid var(--border-specular);
  box-shadow: var(--glass-highlight);
  overflow: clip;
  isolation: isolate;
  flex-shrink: 0;
  touch-action: pan-y;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.gender-chips * {
  touch-action: pan-y;
  -webkit-touch-callout: none;
}

:root:has(> head > meta[name="color-scheme"][content="light"]) .gender-chips,
:root[data-theme="light"]:not(:has(> head > meta[name="color-scheme"][content="dark"])) .gender-chips {
  --lg-pill-fill: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(255, 255, 255, 0.34) 44%,
    rgba(232, 238, 255, 0.56) 80%,
    rgba(255, 255, 255, 0.90) 100%
  );
  --lg-pill-border: rgba(255, 255, 255, 0.98);
  --lg-pill-shadow:
    0 6px 16px rgba(36, 22, 84, 0.14),
    0 2px 4px rgba(36, 22, 84, 0.08),
    0 0 0 1px rgba(88, 64, 158, 0.16),
    inset 0 2.5px 1.5px rgba(255, 255, 255, 1),
    inset 0 -2.5px 4px rgba(124, 58, 237, 0.16),
    inset 2.5px 0 4px rgba(14, 165, 233, 0.20),
    inset -2.5px 0 4px rgba(236, 72, 153, 0.22);
  --lg-pill-shadow-active:
    0 10px 22px rgba(36, 22, 84, 0.22),
    0 3px 6px rgba(36, 22, 84, 0.12),
    0 0 0 1px rgba(124, 58, 237, 0.26),
    inset 0 3px 2px rgba(255, 255, 255, 1),
    inset 0 -3px 5px rgba(124, 58, 237, 0.22),
    inset 3px 0 5px rgba(14, 165, 233, 0.28),
    inset -3px 0 5px rgba(236, 72, 153, 0.30);
  --lg-dome-sheen: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.25) 62%, rgba(255, 255, 255, 0) 100%);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]):not(:has(> head > meta[name="color-scheme"][content="dark"])) .gender-chips {
    --lg-pill-fill: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.96) 0%,
      rgba(255, 255, 255, 0.34) 44%,
      rgba(232, 238, 255, 0.56) 80%,
      rgba(255, 255, 255, 0.90) 100%
    );
    --lg-pill-border: rgba(255, 255, 255, 0.98);
    --lg-pill-shadow:
      0 6px 16px rgba(36, 22, 84, 0.14),
      0 2px 4px rgba(36, 22, 84, 0.08),
      0 0 0 1px rgba(88, 64, 158, 0.16),
      inset 0 2.5px 1.5px rgba(255, 255, 255, 1),
      inset 0 -2.5px 4px rgba(124, 58, 237, 0.16),
      inset 2.5px 0 4px rgba(14, 165, 233, 0.20),
      inset -2.5px 0 4px rgba(236, 72, 153, 0.22);
    --lg-pill-shadow-active:
      0 10px 22px rgba(36, 22, 84, 0.22),
      0 3px 6px rgba(36, 22, 84, 0.12),
      0 0 0 1px rgba(124, 58, 237, 0.26),
      inset 0 3px 2px rgba(255, 255, 255, 1),
      inset 0 -3px 5px rgba(124, 58, 237, 0.22),
      inset 3px 0 5px rgba(14, 165, 233, 0.28),
      inset -3px 0 5px rgba(236, 72, 153, 0.30);
    --lg-dome-sheen: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.25) 62%, rgba(255, 255, 255, 0) 100%);
  }
}

.diversity-glass-indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--div-pill-w, 0px);
  height: var(--div-pill-h, 0px);
  border-radius: 999px;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  overflow: hidden;
  background: var(--lg-pill-fill);
  border: 1px solid var(--lg-pill-border);
  box-shadow: var(--lg-pill-shadow);
  transform: translate3d(var(--div-pill-x, 0px), var(--div-pill-y, 0px), 0) scale(var(--div-pill-scale-x, 1), var(--div-pill-scale-y, 1));
  transform-origin: center center;
  will-change: transform, width;
}

.diversity-glass-indicator::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 12%;
  right: 12%;
  height: 44%;
  border-radius: 999px;
  background: var(--lg-dome-sheen);
  pointer-events: none;
}

.diversity-glass-indicator::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    118deg,
    rgba(255, 255, 255, 0) 24%,
    rgba(255, 255, 255, 0.38) 46%,
    rgba(56, 189, 248, 0.14) 54%,
    rgba(255, 255, 255, 0) 74%
  );
  opacity: 0.55;
  pointer-events: none;
}

.gender-chips.has-glass-ready .diversity-glass-indicator {
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .gender-chips.has-glass-ready:not(.is-instant):not(.is-scrubbing) .diversity-glass-indicator {
    transition:
      transform 340ms var(--spring-bouncy),
      width 280ms var(--spring-snappy),
      height 220ms ease,
      box-shadow 220ms ease;
  }

  .gender-chips.is-pressing .diversity-glass-indicator,
  .gender-chips.is-scrubbing .diversity-glass-indicator {
    --div-pill-scale-x: var(--div-pill-dyn-sx, 1.09);
    --div-pill-scale-y: var(--div-pill-dyn-sy, 1.06);
    box-shadow: var(--lg-pill-shadow-active);
  }

  .gender-chips.is-pressing .diversity-glass-indicator::after,
  .gender-chips.is-scrubbing .diversity-glass-indicator::after {
    opacity: 0.9;
  }

  .gender-chips.is-scrubbing .diversity-glass-indicator {
    transition:
      width 110ms ease-out,
      box-shadow 140ms ease;
  }
}

.gender-chip {
  position: relative;
  z-index: 1;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
  box-shadow: none;
  padding: 5px 13px;
  min-height: max(36px, calc(var(--target-size) - 6px));
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.79rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  -webkit-tap-highlight-color: transparent;
}

.gender-chip:focus-visible {
  outline-offset: -2px;
}

.gender-chips:not(.has-glass-ready) .gender-chip.active {
  background: var(--brand-gradient);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 14px rgba(219, 39, 119, 0.34), var(--glass-highlight);
}

.gender-chips.has-glass-ready .gender-chip,
.gender-chips.has-glass-ready .gender-chip.active {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.gender-chips:not(.is-scrubbing) .gender-chip.active,
.gender-chips.is-scrubbing .gender-chip.is-glide-target {
  color: var(--pill-purple-fg);
  font-weight: 700;
}

@media (forced-colors: active) {
  .gender-chip[aria-pressed="true"] {
    outline: 2px solid Highlight;
    outline-offset: -2px;
  }
}

/* Spotlight Bar: Contextual to Niveles & Radar Grid */
.spotlight-bar {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 10px calc(16px + var(--sar)) 10px calc(16px + var(--sal));
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  background: var(--glass-bar-bg);
  -webkit-backdrop-filter: blur(var(--blur-chrome)) saturate(155%);
  backdrop-filter: blur(var(--blur-chrome)) saturate(155%);
  border-bottom: 1px solid var(--border-subtle);
}

.app-layout:has(#view-discover.active):not(:has(#discoverDetailPanel:not([hidden]))) .spotlight-bar,
.app-layout:has(#view-encounters.active) .spotlight-bar {
  display: flex;
}

.spotlight-track {
  display: flex;
  align-items: center;
  gap: 12px;
}

.spotlight-empty-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  min-height: var(--target-size);
  border-radius: var(--radius-pill);
  background: var(--glass-neutral-btn);
  border: 1px dashed var(--border-control);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.spotlight-item {
  scroll-snap-align: start;
  background: none;
  border: none;
  color: var(--text-main);
  font-family: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  min-width: 66px;
  min-height: var(--target-size);
  padding: 2px;
  border-radius: var(--radius-md);
}

.spotlight-avatar-wrap {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  padding: 2px;
  background: var(--brand-gradient);
}

.spotlight-avatar-wrap.is-vip {
  background: linear-gradient(135deg var(--in-oklab), #f472b6 0%, #c084fc 52%, #38bdf8 100%);
  box-shadow: 0 0 14px rgba(232, 121, 249, 0.45);
}

.spotlight-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 2px solid var(--bg-page);
}

.spotlight-plus {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--verified-green);
  color: #062118;
  font-weight: 700;
  font-size: 0.7rem;
  display: grid;
  place-items: center;
  border: 2px solid var(--bg-page);
}

.spotlight-name {
  font-size: 0.7rem;
  color: var(--text-muted);
  max-width: 76px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Main Sections */
.app-main {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  padding: 16px calc(18px + var(--sar)) 20px calc(18px + var(--sal));
}

.view-section {
  min-width: 0;
  max-width: 100%;
}

.section-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.compact-header-bar {
  margin-bottom: 12px;
}

.section-heading {
  font-family: 'LvelsDisplay', sans-serif;
  font-size: clamp(1.22rem, 0.9vw + 0.98rem, 1.62rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
}

.section-subtext {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Hide redundant headers when sub-views are active or on mobile Niveles */
#view-discover:has(#discoverDetailPanel:not([hidden])) > .section-header-bar,
#view-discover:has(#discoverDetailPanel:not([hidden])) > .radar-controls-card {
  display: none;
}

@media (max-width: 760px) {
  .encounters-header-bar {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }

  #view-chat:has(.chat-workspace.has-active-thread) .chat-section-top {
    display: none;
  }
}

/* Semantic Glass Pills */
.live-counter,
.badge-pill,
.pill-badge,
.verified-pill,
.demo-pill,
.gender-pill,
.orientation-pill,
.vip-boost-pill,
.vip-pill {
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.73rem;
  font-weight: 600;
  background: var(--glass-neutral-btn);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--glass-highlight);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.verified-pill {
  background: var(--pill-green-bg);
  color: var(--pill-green-fg);
  border-color: rgba(52, 211, 153, 0.38);
}

.demo-pill {
  background: var(--pill-cyan-bg);
  color: var(--pill-cyan-fg);
  border-color: rgba(34, 211, 238, 0.36);
}

.gender-pill {
  background: var(--pill-purple-bg);
  color: var(--pill-purple-fg);
  border-color: rgba(167, 139, 250, 0.44);
}

.orientation-pill {
  background: var(--pill-pink-bg);
  color: var(--pill-pink-fg);
  border-color: rgba(244, 114, 182, 0.42);
}

.vip-pill,
.vip-boost-pill {
  background: linear-gradient(135deg var(--in-oklab), rgba(244, 114, 182, 0.26), rgba(168, 85, 247, 0.32));
  color: var(--champagne-text);
  border-color: rgba(232, 121, 249, 0.5);
}

/* ================= TAB 1: NIVELES (CLEAN EDITORIAL GLASS CARD) ================= */
.encounter-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(430px, 58svh, 700px);
  min-width: 0;
  max-width: 100%;
}

.encounter-stage > .encounter-card {
  grid-area: 1 / 1;
  z-index: 2;
}

.encounter-card {
  width: 100%;
  min-width: 0;
  max-width: 500px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--blur-chrome)) saturate(160%);
  backdrop-filter: blur(var(--blur-chrome)) saturate(160%);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-specular);
  box-shadow: var(--glass-shadow);
  touch-action: pan-y;
  position: relative;
  user-select: none;
}

.encounter-card-next {
  grid-area: 1 / 1;
  z-index: 1;
  pointer-events: none;
  transform: translateY(10px) scale(0.96);
  opacity: 0.72;
  filter: brightness(0.84);
  transition: transform var(--dur-normal) var(--spring-smooth), opacity var(--dur-normal) ease;
}

.encounter-card.is-vip {
  border-color: rgba(232, 121, 249, 0.52);
  box-shadow: 0 22px 54px rgba(192, 38, 211, 0.18), var(--glass-shadow);
}

.encounter-card.is-dragging,
.encounter-card.is-throwing {
  will-change: transform;
}

.encounter-card.is-dragging {
  transition: none !important;
  cursor: grabbing;
}

.encounter-card.is-throwing {
  pointer-events: none;
}

.encounter-card input,
.encounter-card textarea {
  user-select: text;
}

.encounter-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: min(60svh, 520px);
  background: var(--bg-media-stage);
  overflow: clip;
  display: grid;
  place-items: center;
}

.encounter-photo-wrap::after,
.detail-hero-media::after,
.preview-profile-media::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 78px;
  background: var(--scrim-top-subtle);
  z-index: 2;
  pointer-events: none;
}

.encounter-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-height: inherit;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}

.encounter-top-report-btn {
  position: absolute;
  top: 18px;
  right: 12px;
  z-index: 8;
  width: max(36px, var(--target-size));
  height: max(36px, var(--target-size));
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(12, 8, 26, 0.62);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.88rem;
  display: grid;
  place-items: center;
  cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
  .encounter-top-report-btn:hover {
    background: rgba(225, 29, 72, 0.72);
    color: #ffffff;
  }
}

.swipe-stamp {
  position: absolute;
  top: 22px;
  padding: 8px 16px;
  border-radius: 12px;
  font-family: 'LvelsDisplay', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 2.5px solid currentColor;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  pointer-events: none;
  visibility: hidden;
  opacity: var(--swipe-opacity, 0);
  z-index: 9;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.48);
}

.swipe-stamp-like {
  right: 18px;
  transform: rotate(10deg);
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.24);
}

.swipe-stamp-pass {
  left: 18px;
  transform: rotate(-10deg);
  color: #fda4af;
  background: rgba(225, 29, 72, 0.24);
}

.swipe-stamp-crush {
  left: 50%;
  transform: translateX(-50%);
  color: #a5f3fc;
  background: rgba(8, 145, 178, 0.28);
}

.encounter-card.is-swiping-like .swipe-stamp-like,
.encounter-card.is-swiping-pass .swipe-stamp-pass,
.encounter-card.is-swiping-crush .swipe-stamp-crush,
.encounter-card.is-swiping-up .swipe-stamp-crush {
  visibility: visible;
  opacity: var(--swipe-opacity, 1);
}

.encounter-overlay {
  position: static;
  padding: 0 0 8px;
  background: none;
  border-bottom: 1px solid var(--border-hairline);
}

.encounter-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.encounter-name {
  font-family: 'LvelsDisplay', sans-serif;
  font-size: 1.48rem;
  line-height: 1.16;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.encounter-location {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.encounter-body {
  padding: 15px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-width: 0;
}

.encounter-bio {
  font-size: 0.92rem;
  line-height: 1.48;
  max-width: 65ch;
  white-space: pre-line;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.encounter-more-details > summary {
  padding: 9px 13px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.would-you-rather-box {
  background: var(--glass-box-bg);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  padding: 10px 13px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid #e879f9;
  font-size: 0.84rem;
}

.quick-first-msg-bar {
  display: flex;
  gap: 6px;
  align-items: center;
  background: var(--glass-control-bg);
  padding: 5px 6px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-control);
  box-shadow: var(--control-inset-shadow);
}

.quick-first-msg-bar:focus-within {
  border-color: var(--focus-ring);
  box-shadow: 0 0 0 2px rgba(249, 168, 212, 0.22);
}

.quick-first-msg-bar input {
  flex: 1;
  min-width: 0;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.86rem;
  padding: 6px 10px;
  min-height: calc(var(--target-size) - 6px);
  outline: none;
}

.tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.interest-tag {
  background: rgba(124, 58, 237, 0.2);
  border: 1px solid rgba(167, 139, 250, 0.36);
  color: #e9d5ff;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
}

.encounter-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  padding-top: 2px;
}

.circle-btn {
  width: 100%;
  min-width: 44px;
  min-block-size: 58px;
  padding: 8px 4px;
  border-radius: 16px;
  border: 1px solid var(--border-specular);
  background: var(--glass-neutral-btn);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  --btn-glow: var(--glass-shadow-sm);
  box-shadow: var(--btn-glow);
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: transform var(--dur-fast) var(--spring-snappy), border-color var(--dur-normal) ease;
}

.circle-btn .act-icon {
  font-size: 1.28rem;
  line-height: 1;
}

.circle-btn .act-label {
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  color: inherit;
}

.circle-btn.crush-btn {
  background: var(--supernova-gradient);
  color: #ffffff;
  border-color: rgba(165, 243, 252, 0.45);
  --btn-glow: var(--accent-diamond-glow);
  box-shadow: var(--btn-glow);
}

.circle-btn.like-btn {
  background: var(--brand-gradient);
  border-color: rgba(255, 255, 255, 0.36);
  color: #ffffff;
  --btn-glow: var(--accent-love-glow);
  box-shadow: var(--btn-glow);
}

.circle-btn.like-btn .act-icon {
  font-size: 1.42rem;
}

.quick-msg-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.quick-chat-hint {
  font-size: 0.76rem;
  line-height: 1.35;
  color: var(--text-muted);
  padding: 0 4px;
}

.quick-chat-hint strong {
  color: var(--pill-pink-fg);
}

.liked-card-cta {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--accent-love-gradient);
  border: 1px solid var(--accent-love-border);
  color: #ffffff;
}

.liked-card-cta.is-matched {
  background: var(--accent-emerald-gradient);
  border-color: var(--accent-emerald-border);
  color: #ffffff;
}

/* ================= TAB 2 & 3: RADAR GLASS BAR & PORTRAIT CARDS ================= */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  background: var(--glass-neutral-btn);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--glass-highlight);
  padding: 5px 13px;
  min-height: max(36px, calc(var(--target-size) - 6px));
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

:not(.lg-segmented-rail) > .chip.active,
.lg-segmented-rail:not(.has-glass-ready) > .chip.active {
  background: var(--brand-gradient);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 14px rgba(147, 51, 234, 0.35), var(--glass-highlight);
}

.radar-glass-bar {
  position: relative;
  z-index: 25;
  overflow: visible;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--blur-chrome)) saturate(155%);
  backdrop-filter: blur(var(--blur-chrome)) saturate(155%);
  border: 1px solid var(--border-specular);
  border-radius: 16px;
  padding: 7px 10px;
  margin-bottom: 10px;
  box-shadow: var(--glass-shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.radar-bar-top {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
}

.radar-search-row {
  position: relative;
  flex: 1 1 0;
  display: flex;
  align-items: center;
  min-width: 0;
}

.radar-search-icon {
  position: absolute;
  inset-inline-start: 10px;
  pointer-events: none;
  font-size: 0.82rem;
  opacity: 0.78;
}

.radar-search-row input[type="search"] {
  width: 100%;
  min-width: 0;
  min-block-size: 38px;
  padding-inline: 31px 30px;
  border-radius: var(--radius-pill);
  font-size: 1rem;
  text-overflow: ellipsis;
}

.radar-search-row input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.radar-clear-btn {
  position: absolute;
  inset-inline-end: 4px;
  min-inline-size: 28px;
  min-block-size: 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: var(--glass-neutral-btn);
  color: var(--text-main);
  font-size: 0.78rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.radar-autocomplete-menu {
  position: absolute;
  inset-block-start: calc(100% + 6px);
  inset-inline: 0;
  z-index: 80;
  list-style: none;
  margin: 0;
  padding: 6px;
  max-block-size: 280px;
  overflow-y: auto;
  border-radius: 18px;
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--border-specular);
  box-shadow: 0 20px 48px rgba(4, 2, 16, 0.56);
}

.radar-autocomplete-menu[hidden] {
  display: none;
}

.radar-ac-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-block-size: 44px;
  padding: 8px 12px;
  border-radius: 12px;
  cursor: pointer;
  color: var(--text-main);
  font-size: 0.86rem;
  transition: background-color var(--dur-fast) ease;
}

.radar-ac-item:hover,
.radar-ac-item.is-active {
  background: rgba(219, 39, 119, 0.22);
}

.radar-ac-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.radar-ac-label {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.radar-ac-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.radar-ac-badge {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--pill-purple-bg);
  color: var(--pill-purple-fg);
  border: 1px solid var(--border-hairline);
}

.radar-ac-empty {
  padding: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
}

.radar-active-place-pill {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--pill-purple-bg);
  color: var(--pill-purple-fg);
  border: 1px solid var(--border-specular);
  font-size: 0.8rem;
  font-weight: 600;
}

.radar-active-place-pill[hidden] {
  display: none;
}

.radar-place-pill-close {
  min-inline-size: 24px;
  min-block-size: 24px;
  border-radius: 50%;
  border: none;
  background: var(--glass-neutral-btn);
  color: var(--text-main);
  font-size: 0.72rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.radar-gps-btn.active {
  background: linear-gradient(135deg, rgba(219, 39, 119, 0.3), rgba(124, 58, 237, 0.3));
  border-color: rgba(244, 114, 182, 0.72);
  color: var(--text-main);
  box-shadow: 0 0 0 1px rgba(244, 114, 182, 0.25);
}

.radar-more-btn {
  flex-shrink: 0;
  font-size: 0.78rem;
  padding: 8px 12px;
  white-space: nowrap;
}

.radar-more-btn[aria-expanded="true"] {
  border-color: rgba(244, 114, 182, 0.55);
  background: rgba(219, 39, 119, 0.2);
}

.radar-more-btn[aria-expanded="true"] .drawer-chevron {
  transform: rotate(180deg);
}

.radar-bar-top > #radarSyncGpsBtn,
.radar-bar-top > #radarMoreFiltersBtn {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 6px 10px;
  font-size: 0.75rem;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .radar-autocomplete-menu {
    inline-size: min(calc(100dvw - 40px), 420px);
    inset-inline-start: 0;
    inset-inline-end: auto;
  }
}

@media (max-width: 390px) {
  .radar-glass-bar {
    padding: 6px 8px;
    margin-bottom: 8px;
  }

  .radar-bar-top {
    gap: 5px;
  }

  .radar-search-row input[type="search"] {
    min-block-size: 36px;
    padding-inline: 28px 26px;
    font-size: 1rem;
  }

  .radar-bar-top > #radarSyncGpsBtn,
  .radar-bar-top > #radarMoreFiltersBtn {
    min-height: 36px;
    padding: 5px 8px;
    font-size: 0.71rem;
  }
}

.drawer-chevron {
  display: inline-block;
  transition: transform var(--dur-normal) var(--spring-snappy);
}

.radar-quick-rail {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.radar-inline-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
}

.iso-flag-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 5px;
  border-radius: 5px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.25;
  background: var(--pill-purple-bg);
  color: var(--pill-purple-fg);
  border: 1px solid var(--border-hairline);
}

.rail-divider {
  width: 1px;
  height: 20px;
  background: var(--border-hairline);
  flex-shrink: 0;
}

#radarAdvancedDrawer,
.radar-advanced-drawer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--border-hairline);
  padding-top: 10px;
  block-size: auto;
  opacity: 1;
  overflow: clip;
}

#radarAdvancedDrawer[hidden],
.radar-advanced-drawer[hidden] {
  display: none;
  block-size: 0;
  opacity: 0;
  padding-top: 0;
  border-top-color: transparent;
}

@media (prefers-reduced-motion: no-preference) {
  #radarAdvancedDrawer,
  .radar-advanced-drawer {
    transition:
      block-size var(--dur-slow) var(--spring-smooth),
      opacity var(--dur-normal) ease,
      padding-top var(--dur-slow) var(--spring-smooth),
      border-color var(--dur-normal) ease,
      display var(--dur-slow);
    transition-behavior: allow-discrete;
  }

  @starting-style {
    #radarAdvancedDrawer:not([hidden]),
    .radar-advanced-drawer:not([hidden]) {
      block-size: 0;
      opacity: 0;
      padding-top: 0;
    }
  }
}

.radar-drawer-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 16px;
  align-items: start;
}

.radar-control-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.radar-control-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.location-quick-chips:not(.radar-inline-chips),
.km-quick-chips:not(.radar-inline-chips) {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.radar-age-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* Full-Bleed Portrait Glass Cards */
.discover-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.liked-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr));
  gap: 14px;
}

@media (min-width: 1181px) {
  .discover-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.discover-card {
  position: relative;
  aspect-ratio: 3 / 4.1;
  background: var(--bg-card);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border-specular);
  box-shadow: var(--glass-shadow-sm);
  cursor: pointer;
  text-align: left;
  color: #ffffff;
  font-family: inherit;
  display: block;
  padding: 0;
  user-select: none;
}

.discover-card.is-below-fold {
  content-visibility: auto;
  contain-intrinsic-size: auto 220px;
}

.discover-card-media-wrap {
  position: relative;
  width: 100%;
  height: 100%;
}

.discover-card-media-wrap::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 62px;
  background: var(--scrim-top-subtle);
  z-index: 1;
  pointer-events: none;
}

.discover-card.is-vip {
  border-color: rgba(232, 121, 249, 0.56);
}

.discover-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  background: var(--bg-card);
}

.card-floating-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(12, 8, 26, 0.76);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: calc(100% - 20px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-floating-badge.badge-spark {
  background: linear-gradient(135deg var(--in-oklab), rgba(219, 39, 119, 0.85), rgba(124, 58, 237, 0.85));
}

.card-floating-badge.badge-accepted {
  background: rgba(6, 78, 59, 0.84);
  border-color: rgba(52, 211, 153, 0.5);
  color: #a7f3d0;
}

.card-floating-badge.badge-passed,
.passed-status-pill {
  background: linear-gradient(135deg, rgba(159, 18, 57, 0.88), rgba(127, 29, 29, 0.9));
  -webkit-backdrop-filter: blur(12px) saturate(155%);
  backdrop-filter: blur(12px) saturate(155%);
  border: 1px solid rgba(251, 113, 133, 0.62);
  box-shadow:
    0 6px 18px rgba(136, 19, 55, 0.42),
    inset 0 1px 0 rgba(255, 228, 230, 0.34);
  color: #ffe4e6;
  letter-spacing: 0.01em;
}

.passed-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
}

.discover-card-body {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 40px 12px 14px;
  background: var(--scrim-bottom-editorial);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.discover-card-title {
  font-family: 'LvelsDisplay', sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  line-height: 1.18;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.discover-card-meta {
  font-size: 0.74rem;
  line-height: 1.32;
  padding-bottom: 1px;
  color: rgba(248, 246, 255, 0.86);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#hero {
  view-transition-name: hero;
}

.discover-card-img.selected {
  view-transition-name: hero;
}

::view-transition-old(hero),
::view-transition-new(hero) {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  border-radius: var(--radius-md);
  overflow: clip;
}

/* Detail Panel */
.discover-detail-panel {
  max-width: 1080px;
  margin-inline: auto;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--blur-chrome)) saturate(160%);
  backdrop-filter: blur(var(--blur-chrome)) saturate(160%);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-specular);
  box-shadow: var(--glass-shadow);
  padding: 18px;
}

.detail-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  gap: 10px;
}

.detail-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.detail-hero-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

/* Buttons */
.back-btn,
.secondary-btn,
.primary-btn,
.danger-btn,
.action-cta {
  padding: 9px 16px;
  min-height: var(--target-size);
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.84rem;
  cursor: pointer;
  border: 1px solid var(--border-subtle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  user-select: none;
}

.back-btn,
.secondary-btn {
  background: var(--glass-neutral-btn);
  -webkit-backdrop-filter: blur(14px) saturate(145%);
  backdrop-filter: blur(14px) saturate(145%);
  box-shadow: var(--glass-highlight);
  color: var(--text-main);
}

@media (hover: hover) and (pointer: fine) {
  .back-btn:hover:not(:disabled),
  .secondary-btn:hover:not(:disabled) {
    border-color: var(--border-specular);
  }
}

.primary-btn,
.like-cta {
  background: var(--brand-gradient);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.24);
  --btn-glow: var(--accent-love-glow);
  box-shadow: var(--btn-glow);
}

.crush-cta {
  background: var(--supernova-gradient);
  color: #ffffff;
  border-color: rgba(165, 243, 252, 0.4);
  --btn-glow: var(--accent-diamond-glow);
  box-shadow: var(--btn-glow);
}

.chat-cta {
  background: linear-gradient(135deg var(--in-oklab), #6d28d9 0%, #4338ca 100%);
  color: #ffffff;
  border-color: rgba(196, 181, 253, 0.35);
  box-shadow: var(--glass-highlight);
}

.danger-btn {
  background: linear-gradient(135deg var(--in-oklab), rgba(225, 29, 72, 0.85), rgba(159, 18, 57, 0.92));
  color: #ffffff;
  border-color: rgba(251, 113, 133, 0.45);
  box-shadow: var(--glass-highlight);
}

.back-btn:disabled,
.secondary-btn:disabled,
.primary-btn:disabled,
.danger-btn:disabled,
.action-cta:disabled,
.vip-header-btn:disabled {
  opacity: 0.46;
  cursor: not-allowed;
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: minmax(250px, 360px) 1fr;
  gap: 22px;
  align-items: start;
}

@media (max-width: 720px) {
  .detail-hero-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.detail-hero-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: clamp(300px, 56svh, 620px);
  border-radius: 18px;
  background: var(--bg-media-stage);
  overflow: clip;
  display: grid;
  place-items: center;
}

.detail-hero-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-height: inherit;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 18px;
  display: block;
  background: transparent;
}

.detail-title {
  font-family: 'LvelsDisplay', sans-serif;
  font-size: 1.65rem;
  line-height: 1.16;
  letter-spacing: -0.02em;
  width: fit-content;
  max-width: 100%;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.detail-subtitle {
  color: var(--text-muted);
  font-size: 0.86rem;
}

.detail-bio {
  font-size: 0.94rem;
  line-height: 1.52;
  max-width: 65ch;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.empty-state-card {
  grid-column: 1 / -1;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--blur-chrome)) saturate(150%);
  backdrop-filter: blur(var(--blur-chrome)) saturate(150%);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--glass-shadow-sm);
  border-radius: var(--radius-xl);
  padding: 28px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.empty-state-emblem {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--pill-pink-bg);
  border: 1px solid var(--accent-love-border);
  color: var(--pill-pink-fg);
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  box-shadow: var(--glass-highlight);
}

/* ================= TAB 4: MENSAJES LIBRES (SINGLE-ROW TOOLS & FIXED BACK BTN) ================= */
.chat-workspace {
  display: grid;
  grid-template-columns: clamp(240px, 28vw, 370px) minmax(0, 1fr);
  gap: 0;
  width: 100%;
  max-width: 1360px;
  margin-inline: auto;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--blur-chrome)) saturate(160%);
  backdrop-filter: blur(var(--blur-chrome)) saturate(160%);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-specular);
  box-shadow: var(--glass-shadow);
  min-height: 460px;
  height: clamp(460px, calc(100dvh - 268px - var(--sat) - var(--sab)), 880px);
  overflow: hidden;
}

.chat-sidebar {
  border-right: 1px solid var(--border-subtle);
  background: var(--glass-sidebar-bg);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
}

.chat-inbox-tabs {
  display: flex;
  gap: 4px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--glass-bar-bg);
}

.chat-inbox-tab {
  flex: 1;
  min-height: max(36px, calc(var(--target-size) - 6px));
  padding: 5px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.chat-inbox-tabs:not(.has-glass-ready) .chat-inbox-tab.active {
  background: var(--brand-gradient);
  color: #ffffff;
  box-shadow: var(--glass-highlight);
}

.chat-threads-scroll {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.chat-thread-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  min-height: max(64px, var(--target-size));
  border: none;
  border-bottom: 1px solid var(--border-hairline);
  border-left: 3px solid transparent;
  background: transparent;
  color: var(--text-main);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.chat-thread-btn.is-vip-priority {
  border-left-color: #e879f9;
  background: linear-gradient(90deg var(--in-oklab), rgba(232, 121, 249, 0.14), transparent 82%);
}

.chat-thread-btn.active {
  background: rgba(124, 58, 237, 0.22);
  border-left-color: var(--brand-color);
}

.thread-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  flex-shrink: 0;
}

.chat-thread-btn.is-vip .thread-avatar {
  border: 2px solid #e879f9;
  box-shadow: 0 0 10px rgba(232, 121, 249, 0.42);
}

.thread-preview {
  font-size: 0.76rem;
  color: var(--text-muted);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.unread-pill {
  background: var(--brand-color);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-status-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.69rem;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  margin-top: 3px;
  font-weight: 600;
  white-space: nowrap;
}

.status-accepted {
  background: var(--pill-green-bg);
  color: var(--pill-green-fg);
  border: 1px solid rgba(52, 211, 153, 0.34);
}

.status-inbound {
  background: var(--pill-pink-bg);
  color: var(--pill-pink-fg);
  border: 1px solid rgba(244, 114, 182, 0.42);
}

.status-outbound {
  background: var(--pill-purple-bg);
  color: var(--pill-purple-fg);
  border: 1px solid rgba(167, 139, 250, 0.38);
}

.status-declined {
  background: var(--pill-red-bg);
  color: var(--pill-red-fg);
  border: 1px solid rgba(225, 29, 72, 0.35);
}

.status-none {
  background: var(--glass-neutral-btn);
  color: var(--text-muted);
}

.chat-conversation {
  display: flex;
  flex-direction: column;
  padding: 12px 14px;
  height: 100%;
  min-height: 0;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  contain: layout style;
}

.chat-conv-top-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  min-width: 0;
  max-width: 100%;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.chat-back-btn {
  display: none;
  padding: 7px 12px;
  font-size: 0.78rem;
  flex-shrink: 0;
}

.chat-conv-header {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.chat-header-partner {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.chat-header-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.chat-header-name-row {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  flex-wrap: nowrap;
}

.chat-header-name {
  font-size: 0.95rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-header-name-row > :not(.chat-header-name) {
  flex-shrink: 0;
}

.chat-header-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 0.74rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.chat-header-sub-meta {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-header-sub .chat-header-view-link {
  flex-shrink: 0;
}

.chat-header-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.chat-header-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 1.5px solid var(--border-specular);
  display: block;
}

.chat-header-online {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--verified-green);
  border: 2px solid var(--bg-elevated);
}

.chat-permission-banner {
  margin-top: 8px;
  margin-inline: auto;
  width: 100%;
  max-width: 880px;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
  overflow-wrap: anywhere;
}

.banner-inbound {
  background: rgba(219, 39, 119, 0.16);
  border: 1px solid rgba(244, 114, 182, 0.45);
}

.banner-outbound {
  background: rgba(124, 58, 237, 0.18);
  border: 1px solid rgba(167, 139, 250, 0.45);
}

.banner-accepted {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
}

.banner-declined {
  background: var(--pill-red-bg);
  border: 1px solid var(--accent-love-border);
  color: var(--pill-red-fg);
}

.banner-none {
  background: var(--glass-box-bg);
  border: 1px dashed var(--border-subtle);
}

.chat-messages-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  min-width: 0;
  width: 100%;
  max-width: 880px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-messages {
  flex: 1;
  min-height: 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  padding: 12px 6px 18px;
  scroll-padding-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  overflow-anchor: auto;
}

.chat-messages > * {
  flex-shrink: 0;
}

.chat-date-pill {
  position: sticky;
  top: 4px;
  z-index: 4;
  align-self: center;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--glass-bg-strong);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--glass-shadow-sm);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.chat-typing-row {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  margin: 2px 6px 6px;
  padding: 6px 11px;
  border-radius: var(--radius-pill);
  background: var(--glass-box-bg);
  border: 1px solid var(--border-hairline);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.typing-dots i {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-color);
  opacity: 0.5;
}

@media (prefers-reduced-motion: no-preference) {
  .typing-dots i {
    animation: lvelsTypingBounce 1.15s ease-in-out infinite;
  }
  .typing-dots i:nth-child(2) {
    animation-delay: 0.16s;
  }
  .typing-dots i:nth-child(3) {
    animation-delay: 0.32s;
  }
}

@keyframes lvelsTypingBounce {
  0%, 80%, 100% {
    transform: translateY(0);
    opacity: 0.45;
  }
  40% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

.chat-jump-bottom-fab {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 6;
  min-width: 42px;
  height: 42px;
  padding: 0 11px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-specular);
  background: var(--glass-bg-strong);
  box-shadow: var(--glass-shadow);
  color: var(--text-main);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.msg-bubble {
  position: relative;
  flex-shrink: 0;
  max-width: min(82%, 100%, 60ch);
  padding: 10px 14px;
  border-radius: 20px;
  font-size: 0.9rem;
  line-height: 1.46;
  white-space: normal;
  overflow-wrap: anywhere;
  word-wrap: break-word;
}

.msg-bubble.is-cluster-mid,
.msg-bubble.is-cluster-last {
  margin-top: -6px;
}

.msg-text {
  white-space: pre-wrap;
}

.msg-incoming {
  align-self: flex-start;
  background: var(--msg-in-bg);
  color: var(--text-main);
  border: 1px solid var(--border-specular);
  box-shadow: var(--msg-in-shadow);
  border-bottom-left-radius: 5px;
}

.msg-incoming.is-cluster-first {
  border-bottom-left-radius: 6px;
}

.msg-incoming.is-cluster-mid {
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
}

.msg-incoming.is-cluster-last {
  border-top-left-radius: 6px;
  border-bottom-left-radius: 20px;
}

.msg-outgoing {
  align-self: flex-end;
  background: var(--msg-out-bg);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow: var(--msg-out-shadow);
  border-bottom-right-radius: 5px;
}

.msg-outgoing.is-cluster-first {
  border-bottom-right-radius: 6px;
}

.msg-outgoing.is-cluster-mid {
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
}

.msg-outgoing.is-cluster-last {
  border-top-right-radius: 6px;
  border-bottom-right-radius: 20px;
}

.msg-bubble.gift-card-bubble {
  background: linear-gradient(135deg var(--in-oklab), rgba(244, 114, 182, 0.28), rgba(124, 58, 237, 0.42));
  border: 1px solid rgba(249, 168, 212, 0.52);
  color: #fdf4ff;
}

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

/* Single-Row Chat Quick Tools + Overflow Menu */
.chat-QuickTools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0 4px;
  position: relative;
  min-width: 0;
  width: 100%;
  max-width: 880px;
  margin-inline: auto;
  overflow: visible;
}

.chat-tools-scroll {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  scrollbar-width: none;
  padding-bottom: 0;
  flex: 1;
}

.chat-tools-scroll::-webkit-scrollbar {
  height: 3px;
}

.chat-tools-scroll::-webkit-scrollbar-thumb {
  background: rgba(232, 121, 249, 0.38);
  border-radius: 999px;
}

.tool-chip {
  background: var(--glass-neutral-btn);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--glass-highlight);
  padding: 6px 11px;
  min-height: max(38px, calc(var(--target-size) - 4px));
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.tool-chip:disabled {
  opacity: 0.44;
  cursor: not-allowed;
}

.chat-more-menu {
  position: relative;
  flex-shrink: 0;
}

.chat-more-trigger {
  list-style: none;
  width: max(38px, calc(var(--target-size) - 4px));
  height: max(38px, calc(var(--target-size) - 4px));
  border-radius: 50%;
  background: var(--glass-neutral-btn);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--glass-highlight);
  color: var(--text-main);
  font-weight: 700;
  font-size: 1rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  user-select: none;
}

.chat-more-trigger::-webkit-details-marker {
  display: none;
}

.chat-more-popover {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  z-index: 30;
  min-width: 215px;
  padding: 7px;
  border-radius: 16px;
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--border-specular);
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  gap: 5px;
  transform-origin: bottom right;
}

.chat-menu-item {
  width: 100%;
  justify-content: flex-start;
  border-radius: 10px;
}

.danger-menu-item {
  color: var(--pill-red-fg);
  border-color: var(--accent-love-border);
}

.chat-input-bar {
  display: flex;
  gap: 8px;
  margin-top: 4px;
  margin-inline: auto;
  align-items: stretch;
  min-width: 0;
  width: 100%;
  max-width: 880px;
}

.chat-input-bar input {
  border-radius: var(--radius-pill);
  padding-inline: 15px;
  min-width: 0;
  flex: 1;
}

.chat-input-bar input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.send-btn {
  background: var(--brand-gradient);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 6px 18px rgba(219, 39, 119, 0.3), var(--glass-highlight);
  padding: 0 18px;
  min-height: var(--target-size);
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  flex-shrink: 0;
}

.send-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Mobile Master-Detail Chat Workspace + Drill-Down View Transition */
@media (max-width: 760px) {
  .chat-workspace {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
    min-height: clamp(380px, 64svh, 680px);
  }

  .chat-sidebar {
    border-right: none;
  }

  .chat-workspace:not(.has-active-thread) .chat-conversation {
    display: none;
  }

  .chat-workspace.has-active-thread .chat-sidebar {
    display: none;
  }

  #view-chat.active .chat-workspace:not(.has-active-thread) .chat-sidebar,
  #view-chat.active .chat-workspace.has-active-thread .chat-conversation {
    view-transition-name: chat-pane;
  }

  .chat-workspace.has-active-thread .chat-conversation {
    display: flex;
    height: calc(100dvh - 156px - var(--sat) - var(--sab));
    min-height: 360px;
    max-height: none;
  }

  .chat-back-btn {
    display: inline-flex;
    padding: 7px 10px;
  }

  /* El estado del chat ya se ve en la lista y el banner: liberamos espacio para nombre + "Ver perfil" */
  .chat-conv-header > .chat-status-tag {
    display: none;
  }

  body.keyboard-open .app-layout:has(#view-chat.active) {
    min-height: 0;
    padding-bottom: 0;
  }

  body.keyboard-open .app-layout:has(#view-chat.active) .app-main {
    padding-top: 4px;
    padding-bottom: 4px;
  }

  body.keyboard-open .chat-workspace.has-active-thread {
    min-height: 0;
  }

  body.keyboard-open .chat-workspace.has-active-thread .chat-conversation {
    min-height: 0;
    padding: 8px 10px;
    height: calc(var(--vvh, 100dvh) - var(--chat-top-chrome-h, var(--app-header-h, 64px)) - 10px);
    max-height: calc(var(--vvh, 100dvh) - var(--chat-top-chrome-h, var(--app-header-h, 64px)) - 10px);
  }

  body.keyboard-open .chat-workspace.has-active-thread .chat-conv-top-row {
    min-height: 42px;
    padding-bottom: 6px;
  }

  body.keyboard-open .chat-workspace.has-active-thread .chat-QuickTools {
    padding: 3px 0 2px;
  }
}

::view-transition-old(chat-pane),
::view-transition-new(chat-pane) {
  animation-duration: var(--dur-normal);
  animation-timing-function: var(--spring-smooth);
  overflow: clip;
  border-radius: var(--radius-xl);
}

@media (max-width: 480px) {
  .chat-back-label {
    display: none;
  }
}

/* ================= INPUTS & CONTROLS (GLASS) ================= */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="search"],
input[type="number"],
input[type="url"],
select,
textarea {
  width: 100%;
  background: var(--glass-control-bg);
  border: 1px solid var(--border-control);
  box-shadow: var(--control-inset-shadow);
  color: var(--text-main);
  padding: 10px 13px;
  min-height: var(--target-size);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.9rem;
}

select option {
  background-color: var(--select-opt-bg);
  color: var(--text-main);
}

input:user-invalid,
select:user-invalid,
textarea:user-invalid {
  border-color: #fb7185;
  box-shadow: 0 0 0 2px rgba(244, 63, 94, 0.24);
}

input[type="range"],
.lvels-range {
  -webkit-appearance: none;
  appearance: none;
  --slider-track-size: 8px;
  --slider-thumb-size: 24px;
  --attr-min: 1;
  --attr-max: 501;
  --control-value: 501;
  --slider-progress: calc((var(--control-value) - var(--attr-min)) / max(1, (var(--attr-max) - var(--attr-min))) * 100%);
  width: 100%;
  min-height: max(40px, var(--target-size, 44px));
  padding: 8px 0;
  background: transparent;
  accent-color: var(--brand-color, #ff4d9d);
  cursor: pointer;
}

input[type="range"]:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 4px;
  border-radius: 10px;
}

input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: var(--slider-track-size, 8px);
  border-radius: 999px;
  background: linear-gradient(
    to right,
    var(--brand-color, #ff4d9d) 0%,
    #a855f7 var(--slider-progress, 0%),
    var(--track-bg) var(--slider-progress, 0%),
    var(--track-bg) 100%
  );
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: var(--slider-thumb-size, 24px);
  height: var(--slider-thumb-size, 24px);
  margin-top: calc((var(--slider-track-size, 8px) - var(--slider-thumb-size, 24px)) / 2);
  border-radius: 50%;
  border: 2px solid #ffffff;
  background: var(--brand-color, #ff4d9d);
  box-shadow: 0 2px 10px rgba(219, 39, 119, 0.5);
  cursor: pointer;
  transition: transform var(--dur-fast) var(--spring-snappy);
}

@media (hover: hover) and (pointer: fine) {
  input[type="range"]:hover::-webkit-slider-thumb {
    transform: scale(1.08);
  }
}

input[type="range"]:active::-webkit-slider-thumb {
  transform: scale(1.08);
}

input[type="range"]::-moz-range-track {
  width: 100%;
  height: var(--slider-track-size, 8px);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.26);
}

input[type="range"]::-moz-range-progress {
  height: var(--slider-track-size, 8px);
  border-radius: 999px;
  background: var(--brand-color, #ff4d9d);
}

input[type="range"]::-moz-range-thumb {
  width: var(--slider-thumb-size, 24px);
  height: var(--slider-thumb-size, 24px);
  border-radius: 50%;
  border: 2px solid #ffffff;
  background: var(--brand-color, #ff4d9d);
  box-shadow: 0 2px 10px rgba(219, 39, 119, 0.5);
  cursor: pointer;
}

@media (pointer: coarse), (max-width: 760px) {
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="date"],
  input[type="search"],
  input[type="number"],
  input[type="url"],
  select,
  textarea {
    font-size: max(16px, 1rem);
  }
}

/* ================= TAB 5: MI ESPACIO (SEGMENTED GLASS SUB-TABS) ================= */
.profile-hero-glass,
.profile-card,
.lvels-panel-card {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--blur-chrome)) saturate(160%);
  backdrop-filter: blur(var(--blur-chrome)) saturate(160%);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-specular);
  box-shadow: var(--glass-shadow-sm);
  padding: 18px 20px;
  min-width: 0;
  max-width: 100%;
}

.profile-hero-glass {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 14px;
}

.profile-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.my-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.my-avatar-wrap .liquid-online-dot {
  top: 2px;
  right: 4px;
  bottom: auto;
}

.my-avatar {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 2.5px solid #e879f9;
  box-shadow: 0 8px 22px rgba(219, 39, 119, 0.3);
  display: block;
}

.avatar-fab-btn {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand-gradient);
  border: 2px solid var(--bg-page);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  cursor: pointer;
}

.avatar-fab-btn:has(input:focus-visible),
.avatar-upload-btn:has(input:focus-visible) {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.profile-hero-meta {
  min-width: 0;
  flex: 1;
}

.profile-name-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.my-name {
  font-family: 'LvelsDisplay', sans-serif;
  font-size: 1.32rem;
  line-height: 1.16;
  letter-spacing: -0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.my-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.profile-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-subtabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 5px;
  border-radius: var(--radius-pill);
  background: var(--glass-control-bg);
  border: 1px solid var(--border-subtle);
  margin-bottom: 16px;
}

@media (max-width: 640px) {
  .profile-subtabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 18px;
  }
}

.profile-subtab-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  min-height: var(--target-size);
  padding: 8px 10px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-subtabs:not(.has-glass-ready) .profile-subtab-btn.active {
  background: var(--brand-gradient);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(219, 39, 119, 0.34), var(--glass-highlight);
}

.profile-photos-grid-layout,
.profile-dashboard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}

@media (max-width: 860px) {
  .profile-photos-grid-layout,
  .profile-dashboard {
    grid-template-columns: 1fr;
  }
}

.profile-edit-card,
.profile-account-stack {
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
}

.profile-account-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 900px) {
  .profile-account-stack {
    max-width: 1120px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
  }
}

.legal-actions-stack {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 6px;
}

.panel-card-title {
  font-family: 'LvelsDisplay', sans-serif;
  font-size: 1.04rem;
  line-height: 1.16;
  letter-spacing: -0.02em;
}

.panel-card-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.profile-form,
.filter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Custom Accessible Dark Checkboxes */
label.checkbox-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--target-size);
  font-size: 0.84rem;
  color: var(--text-main);
  cursor: pointer;
}

label.checkbox-row:has(input[type="checkbox"].visually-hidden) {
  padding-left: 32px;
}

label.checkbox-row input[type="checkbox"].visually-hidden + span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 1.5px solid var(--border-control);
  background: var(--glass-control-bg);
  box-sizing: border-box;
}

label.checkbox-row input[type="checkbox"].visually-hidden:checked + span::before {
  background: var(--brand-gradient);
  border-color: transparent;
}

label.checkbox-row input[type="checkbox"].visually-hidden:checked + span::after {
  content: "✓";
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.82rem;
  line-height: 1;
}

label.checkbox-row input[type="checkbox"].visually-hidden:focus-visible + span::before {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.blocked-users-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.blocked-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--glass-control-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 9px 12px;
}

.blocked-user-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.blocked-user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  flex-shrink: 0;
}

/* ================= SUPER ADMIN PANEL & RESPONSIVE TABLE ================= */
.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(145px, 100%), 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.admin-kpi-box {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--blur-chrome)) saturate(150%);
  backdrop-filter: blur(var(--blur-chrome)) saturate(150%);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--glass-shadow-sm);
  border-radius: var(--radius-md);
  padding: 14px;
}

.admin-kpi-val {
  font-family: 'LvelsDisplay', sans-serif;
  font-size: 1.65rem;
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: var(--link-color);
  display: block;
}

.admin-kpi-lbl {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.table-wrapper {
  overflow: auto;
  max-inline-size: 100%;
  max-block-size: min(500px, 80dvh);
  container-type: inline-size;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.admin-users-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.82rem;
  --label-2: "Email";
  --label-3: "Género y Orientación";
  --label-4: "Rol";
  --label-5: "Pase Plus";
  --label-6: "Estado";
  --label-7: "Acciones / Regalar";
}

.admin-users-table thead {
  position: sticky;
  inset-block-start: 0;
  z-index: 2;
}

.admin-users-table thead th {
  background: var(--glass-table-head);
  color: var(--text-main);
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.admin-users-table tbody th,
.admin-users-table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-hairline);
  vertical-align: middle;
}

.admin-users-table tbody th {
  position: sticky;
  inset-inline-start: 0;
  background: var(--glass-table-cell);
  text-align: left;
  font-weight: 700;
  z-index: 1;
}

@container (width < 600px) {
  .admin-users-table,
  .admin-users-table thead,
  .admin-users-table tbody,
  .admin-users-table tr,
  .admin-users-table th,
  .admin-users-table td {
    display: block;
  }

  .admin-users-table thead {
    display: none;
  }

  .admin-users-table tr {
    margin-block-end: 0.9rem;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    overflow: hidden;
  }

  .admin-users-table tbody th {
    position: sticky;
    inset-block-start: 0;
    z-index: 2;
    background: var(--glass-table-cell);
  }

  .admin-users-table td:nth-child(2)::before { content: var(--label-2) ": "; font-weight: 700; color: var(--text-muted); }
  .admin-users-table td:nth-child(3)::before { content: var(--label-3) ": "; font-weight: 700; color: var(--text-muted); }
  .admin-users-table td:nth-child(4)::before { content: var(--label-4) ": "; font-weight: 700; color: var(--text-muted); }
  .admin-users-table td:nth-child(5)::before { content: var(--label-5) ": "; font-weight: 700; color: var(--text-muted); }
  .admin-users-table td:nth-child(6)::before { content: var(--label-6) ": "; font-weight: 700; color: var(--text-muted); }
  .admin-users-table td:nth-child(7)::before { content: var(--label-7) ": "; font-weight: 700; color: var(--text-muted); }
}

.admin-btn-sm {
  background: var(--glass-neutral-btn);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 5px 10px;
  min-height: max(32px, calc(var(--target-size) - 6px));
  border-radius: 9px;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-btn-danger {
  background: var(--pill-red-bg);
  border-color: var(--accent-love-border);
  color: var(--pill-red-fg);
}

.audit-logs-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 360px;
  overflow-y: auto;
}

.audit-log-row {
  background: var(--glass-control-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 0.79rem;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

/* ================= FLOATING LIQUID GLASS BOTTOM DOCK ================= */
.bottom-nav {
  --lg-pill-fill: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.36) 0%,
    rgba(255, 255, 255, 0.08) 46%,
    rgba(168, 85, 247, 0.16) 84%,
    rgba(255, 255, 255, 0.24) 100%
  );
  --lg-pill-border: rgba(255, 255, 255, 0.42);
  --lg-pill-shadow:
    0 10px 24px rgba(0, 0, 0, 0.44),
    0 2px 6px rgba(0, 0, 0, 0.26),
    inset 0 2px 2px rgba(255, 255, 255, 0.78),
    inset 0 -2.5px 5px rgba(236, 72, 153, 0.30),
    inset 2.5px 0 5px rgba(56, 189, 248, 0.28),
    inset -2.5px 0 5px rgba(168, 85, 247, 0.28);
  --lg-pill-shadow-active:
    0 14px 28px rgba(0, 0, 0, 0.54),
    0 0 18px rgba(236, 72, 153, 0.26),
    inset 0 2.5px 2.5px rgba(255, 255, 255, 0.92),
    inset 0 -3px 6px rgba(236, 72, 153, 0.38),
    inset 3px 0 6px rgba(56, 189, 248, 0.36),
    inset -3px 0 6px rgba(168, 85, 247, 0.36);
  --lg-dome-sheen: linear-gradient(180deg, rgba(255, 255, 255, 0.56) 0%, rgba(255, 255, 255, 0.08) 65%, rgba(255, 255, 255, 0) 100%);
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--glass-bg-strong);
  background-clip: padding-box;
  -webkit-backdrop-filter: blur(var(--blur-chrome)) saturate(155%);
  backdrop-filter: blur(var(--blur-chrome)) saturate(155%);
  border-top: 1px solid var(--border-specular);
  box-shadow: var(--dock-shadow);
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 7px calc(10px + var(--sar)) calc(8px + var(--sab)) calc(10px + var(--sal));
  z-index: 35;
  overflow: clip;
  isolation: isolate;
  touch-action: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.bottom-nav * {
  touch-action: none;
  -webkit-touch-callout: none;
}

:root:has(> head > meta[name="color-scheme"][content="light"]) .bottom-nav,
:root[data-theme="light"]:not(:has(> head > meta[name="color-scheme"][content="dark"])) .bottom-nav {
  --lg-pill-fill: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(255, 255, 255, 0.34) 44%,
    rgba(232, 238, 255, 0.54) 80%,
    rgba(255, 255, 255, 0.90) 100%
  );
  --lg-pill-border: rgba(255, 255, 255, 0.98);
  --lg-pill-shadow:
    0 7px 18px rgba(36, 22, 84, 0.15),
    0 2px 4px rgba(36, 22, 84, 0.09),
    0 0 0 1px rgba(88, 64, 158, 0.15),
    inset 0 2.5px 1.5px rgba(255, 255, 255, 1),
    inset 0 -2.5px 4px rgba(124, 58, 237, 0.16),
    inset 2.5px 0 4px rgba(14, 165, 233, 0.20),
    inset -2.5px 0 4px rgba(236, 72, 153, 0.22);
  --lg-pill-shadow-active:
    0 11px 24px rgba(36, 22, 84, 0.22),
    0 3px 7px rgba(36, 22, 84, 0.12),
    0 0 0 1px rgba(124, 58, 237, 0.24),
    inset 0 3px 2px rgba(255, 255, 255, 1),
    inset 0 -3px 5px rgba(124, 58, 237, 0.22),
    inset 3px 0 5px rgba(14, 165, 233, 0.28),
    inset -3px 0 5px rgba(236, 72, 153, 0.30);
  --lg-dome-sheen: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.25) 62%, rgba(255, 255, 255, 0) 100%);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]):not(:has(> head > meta[name="color-scheme"][content="dark"])) .bottom-nav {
    --lg-pill-fill: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.96) 0%,
      rgba(255, 255, 255, 0.34) 44%,
      rgba(232, 238, 255, 0.54) 80%,
      rgba(255, 255, 255, 0.90) 100%
    );
    --lg-pill-border: rgba(255, 255, 255, 0.98);
    --lg-pill-shadow:
      0 7px 18px rgba(36, 22, 84, 0.15),
      0 2px 4px rgba(36, 22, 84, 0.09),
      0 0 0 1px rgba(88, 64, 158, 0.15),
      inset 0 2.5px 1.5px rgba(255, 255, 255, 1),
      inset 0 -2.5px 4px rgba(124, 58, 237, 0.16),
      inset 2.5px 0 4px rgba(14, 165, 233, 0.20),
      inset -2.5px 0 4px rgba(236, 72, 153, 0.22);
    --lg-pill-shadow-active:
      0 11px 24px rgba(36, 22, 84, 0.22),
      0 3px 7px rgba(36, 22, 84, 0.12),
      0 0 0 1px rgba(124, 58, 237, 0.24),
      inset 0 3px 2px rgba(255, 255, 255, 1),
      inset 0 -3px 5px rgba(124, 58, 237, 0.22),
      inset 3px 0 5px rgba(14, 165, 233, 0.28),
      inset -3px 0 5px rgba(236, 72, 153, 0.30);
    --lg-dome-sheen: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.25) 62%, rgba(255, 255, 255, 0) 100%);
  }
}

::view-transition-group(bottom-nav),
::view-transition-image-pair(bottom-nav),
::view-transition-old(bottom-nav),
::view-transition-new(bottom-nav) {
  border-radius: 26px;
  overflow: clip;
  box-shadow: none;
}

body.keyboard-open .bottom-nav {
  display: none !important;
}

body.keyboard-open .app-layout {
  padding-bottom: 12px;
}

.nav-glass-indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--nav-pill-w, 0px);
  height: var(--nav-pill-h, 0px);
  border-radius: 999px;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  overflow: hidden;
  background: var(--lg-pill-fill);
  border: 1px solid var(--lg-pill-border);
  box-shadow: var(--lg-pill-shadow);
  transform: translate3d(var(--nav-pill-x, 0px), var(--nav-pill-y, 0px), 0) scale(var(--nav-pill-scale-x, 1), var(--nav-pill-scale-y, 1));
  transform-origin: center center;
  will-change: transform, width;
}

/* Curved 3D convex water-droplet crown reflection */
.nav-glass-indicator::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 11%;
  right: 11%;
  height: 44%;
  border-radius: 999px;
  background: var(--lg-dome-sheen);
  pointer-events: none;
}

/* Subtle diagonal prismatic caustic glint */
.nav-glass-indicator::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    118deg,
    rgba(255, 255, 255, 0) 24%,
    rgba(255, 255, 255, 0.38) 46%,
    rgba(56, 189, 248, 0.14) 54%,
    rgba(255, 255, 255, 0) 74%
  );
  opacity: 0.55;
  pointer-events: none;
}

.bottom-nav.has-glass-ready .nav-glass-indicator {
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .bottom-nav.has-glass-ready:not(.is-instant):not(.is-scrubbing) .nav-glass-indicator {
    transition:
      transform 340ms var(--spring-bouncy),
      width 280ms var(--spring-snappy),
      height 220ms ease,
      box-shadow 220ms ease;
  }

  .bottom-nav.is-pressing .nav-glass-indicator,
  .bottom-nav.is-scrubbing .nav-glass-indicator {
    --nav-pill-scale-x: var(--nav-pill-dyn-sx, 1.12);
    --nav-pill-scale-y: var(--nav-pill-dyn-sy, 1.06);
    box-shadow: var(--lg-pill-shadow-active);
  }

  .bottom-nav.is-pressing .nav-glass-indicator::after,
  .bottom-nav.is-scrubbing .nav-glass-indicator::after {
    opacity: 0.9;
  }

  .bottom-nav.is-scrubbing .nav-glass-indicator {
    transition:
      width 110ms ease-out,
      box-shadow 140ms ease;
  }
}

.nav-tab {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: inherit;
  padding: 5px 12px;
  min-height: max(46px, var(--target-size));
  border-radius: 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  position: relative;
  z-index: 1;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.nav-tab:focus-visible {
  outline-offset: -2px;
}

/* Fallback static highlight only before JS measures .nav-glass-indicator */
.bottom-nav:not(.has-glass-ready) .nav-tab.active {
  color: var(--pill-pink-fg);
  background: var(--pill-pink-bg);
  border-color: rgba(219, 39, 119, 0.45);
  box-shadow: var(--glass-highlight);
}

.bottom-nav.has-glass-ready .nav-tab,
.bottom-nav.has-glass-ready .nav-tab.active {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.bottom-nav:not(.is-scrubbing) .nav-tab.active,
.bottom-nav.is-scrubbing .nav-tab.is-glide-target {
  color: var(--pill-pink-fg);
}

@media (forced-colors: active) {
  .nav-tab[aria-current="page"] {
    outline: 2px solid Highlight;
    outline-offset: -2px;
  }
}

.nav-icon {
  font-size: 1.16rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.bottom-nav .nav-icon svg {
  width: 20px;
  height: 20px;
  display: block;
  stroke: currentColor;
}

@media (prefers-reduced-motion: no-preference) {
  .bottom-nav .nav-icon svg {
    transition: transform var(--dur-fast) var(--spring-snappy);
  }

  .bottom-nav:not(.is-scrubbing) .nav-tab.active .nav-icon svg,
  .bottom-nav.is-scrubbing .nav-tab.is-glide-target .nav-icon svg {
    transform: translateY(-1px) scale(1.06);
  }
}

.bottom-nav:not(.is-scrubbing) .nav-tab.active .nav-icon svg,
.bottom-nav.is-scrubbing .nav-tab.is-glide-target .nav-icon svg {
  fill: currentColor;
  fill-opacity: 0.2;
}

.nav-label {
  font-size: 0.7rem;
  font-weight: 600;
}

.nav-badge {
  position: absolute;
  top: 2px;
  right: 8px;
  background: var(--brand-color);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
}

/* ================= LIQUID GLASS MODAL DIALOGS (BIDIRECTIONAL TOP-LAYER) ================= */
dialog {
  margin: auto;
  border: 1px solid var(--border-specular);
  border-radius: var(--radius-xl);
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(var(--blur-chrome)) saturate(155%);
  backdrop-filter: blur(var(--blur-chrome)) saturate(155%);
  color: var(--text-main);
  max-width: 500px;
  width: calc(100% - 24px - var(--sal) - var(--sar));
  max-height: calc(100dvh - max(24px, calc(16px + var(--sat) + var(--sab))));
  overflow-y: auto;
  padding: 0;
  box-shadow: var(--glass-shadow);
  opacity: 0;
  transition-property: opacity, transform, display, overlay;
  transition-duration: var(--dur-normal);
  transition-timing-function: var(--spring-smooth);
  transition-behavior: allow-discrete;
}

@media (prefers-reduced-motion: no-preference) {
  dialog {
    transform: scale(0.95) translateY(8px);
  }
}

#vipDialog {
  max-width: 540px;
}

#reportDialog {
  max-width: 520px;
}

#photoLightboxDialog {
  max-width: min(94dvw, 780px);
  width: 100%;
}

#myProfilePreviewDialog {
  max-width: min(94dvw, 900px);
  width: 100%;
}

#privatePhotoDialog {
  max-width: min(94dvw, 520px);
  width: 100%;
}

dialog[open] {
  display: block;
}

dialog[open]:where(:not([data-closing])) {
  opacity: 1;
}

@starting-style {
  dialog[open]:where(:not([data-closing])) {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  dialog[open]:where(:not([data-closing])) {
    transform: scale(1) translateY(0);
  }

  @starting-style {
    dialog[open]:where(:not([data-closing])) {
      transform: scale(0.95) translateY(8px);
    }
  }
}

:root:has(dialog:modal) {
  overflow: hidden;
}

dialog:modal {
  overscroll-behavior: contain;
}

dialog::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
  background-color: rgba(6, 4, 15, 0);
  -webkit-backdrop-filter: blur(0px);
  backdrop-filter: blur(0px);
  transition-property: background-color, backdrop-filter, -webkit-backdrop-filter, display, overlay;
  transition-duration: var(--dur-normal);
  transition-timing-function: ease-out;
  transition-behavior: allow-discrete;
}

dialog[open]:where(:not([data-closing]))::backdrop {
  background-color: rgba(6, 4, 15, 0.68);
  -webkit-backdrop-filter: blur(12px) saturate(135%);
  backdrop-filter: blur(12px) saturate(135%);
}

@starting-style {
  dialog[open]:where(:not([data-closing]))::backdrop {
    background-color: rgba(6, 4, 15, 0);
    -webkit-backdrop-filter: blur(0px);
    backdrop-filter: blur(0px);
  }
}

.dialog-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dialog-head-row,
.dialog-header,
.dialog-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.dialog-head-row h2,
.dialog-header h2,
.dialog-header-row h2 {
  font-family: 'LvelsDisplay', sans-serif;
  font-size: 1.24rem;
  line-height: 1.16;
  letter-spacing: -0.02em;
}

.dialog-subtext,
.dialog-sub {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.vip-perks {
  list-style: none;
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: var(--glass-box-bg);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.8rem;
  line-height: 1.4;
}

.dialog-close-x {
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--glass-neutral-btn);
  box-shadow: var(--glass-highlight);
  color: var(--text-main);
  font-size: 0.92rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

@media (hover: hover) and (pointer: fine) {
  .dialog-close-x:hover {
    border-color: var(--border-specular);
    background: rgba(255, 255, 255, 0.14);
  }
}

/* VIP Perks & Side-by-Side Plans */
.vip-perks-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.vip-perk-chip {
  background: var(--glass-box-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 9px 11px;
  font-size: 0.78rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.vip-perk-chip span {
  font-size: 0.71rem;
  color: var(--text-muted);
}

.vip-plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 350px) {
  .vip-perks-grid,
  .vip-plan-grid {
    grid-template-columns: 1fr;
  }
}

.vip-plan-card {
  background: var(--glass-box-bg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--glass-highlight);
  border-radius: 16px;
  padding: 13px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vip-plan-card button {
  margin-top: auto;
}

.vip-plan-card.featured {
  border-color: var(--accent-vip-border);
  background: var(--accent-vip-soft);
}

.vip-plan-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 26px;
  gap: 6px;
}

.vip-plan-name {
  font-weight: 700;
  font-size: 0.9rem;
}

.vip-plan-price {
  font-family: 'LvelsDisplay', sans-serif;
  font-size: 1.32rem;
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: var(--champagne-text);
}

.vip-plan-price span {
  font-family: 'LvelsSans', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

.vip-plan-note {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.promo-inline-form {
  display: flex;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border-hairline);
}

.promo-inline-form input {
  flex: 1;
  min-width: 0;
}

.vip-legal-note {
  font-size: 0.71rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.report-target-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: var(--glass-control-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 0.84rem;
}

.report-target-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  flex-shrink: 0;
}

.match-celebration-dialog {
  text-align: center;
}

#matchDialog.is-super-match,
.match-celebration-dialog.is-super-match {
  border-color: rgba(251, 191, 36, 0.62);
  box-shadow:
    0 0 0 1px rgba(251, 191, 36, 0.25),
    0 24px 64px rgba(0, 0, 0, 0.72),
    0 0 42px rgba(251, 191, 36, 0.28);
}

.match-avatars-row,
.match-avatars-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 10px 0 6px;
}

.match-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 3px solid #e879f9;
  box-shadow: 0 0 22px rgba(232, 121, 249, 0.44);
}

.match-avatars-stage .match-avatar:first-of-type,
.match-avatars-row .match-avatar:first-of-type {
  margin-right: -10px;
  animation: matchAvatarSlideLeft var(--dur-slow) var(--spring-bouncy) both;
}

.match-avatars-stage .match-avatar:last-of-type,
.match-avatars-row .match-avatar:last-of-type {
  margin-left: -10px;
  animation: matchAvatarSlideRight var(--dur-slow) var(--spring-bouncy) 60ms both;
}

#matchDialog.is-super-match .match-avatar,
.match-celebration-dialog.is-super-match .match-avatar {
  border-color: #fbbf24;
  box-shadow: 0 0 24px rgba(251, 191, 36, 0.52);
}

.match-spark {
  position: relative;
  z-index: 2;
  font-size: 1.95rem;
  animation: matchSparkPulse 1.8s var(--spring-smooth) infinite;
}

@keyframes matchAvatarSlideLeft {
  from {
    opacity: 0;
    transform: translateX(-28px) scale(0.84) rotate(-8deg);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1) rotate(0deg);
  }
}

@keyframes matchAvatarSlideRight {
  from {
    opacity: 0;
    transform: translateX(28px) scale(0.84) rotate(8deg);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1) rotate(0deg);
  }
}

@keyframes matchSparkPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.16);
  }
}

#matchIcebreakersRow,
.match-icebreakers-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 4px 0 2px;
}

#matchQuickReplyForm,
.match-quick-reply-form {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 4px;
}

#matchQuickReplyForm input,
.match-quick-reply-form input {
  flex: 1 1 0;
  min-width: 0;
}

#matchQuickReplyForm button,
.match-quick-reply-form button {
  flex-shrink: 0;
  min-height: max(42px, var(--target-size));
}

#matchDialog .dialog-actions,
.match-celebration-dialog .dialog-actions {
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  gap: 8px;
  margin-top: 8px;
}

#matchDialog .dialog-actions > button,
.match-celebration-dialog .dialog-actions > button {
  width: 100%;
  min-height: max(44px, var(--target-size));
  justify-content: center;
}

.dialog-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 4px;
}

.video-call-stage {
  position: relative;
  height: min(58svh, 440px);
  min-height: 240px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-media-stage);
}

.video-partner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.video-remote-stream {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  background: var(--bg-media-stage);
}

.video-self-pip,
.video-self-stream {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 84px;
  height: 112px;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 10px;
  border: 2px solid #ffffff;
  z-index: 2;
  background: #120d24;
}

.video-self-stream {
  transform: scaleX(-1);
}

.video-call-timer {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.video-call-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 12px;
}

.video-call-controls > button {
  flex: 1 1 0;
  min-width: 96px;
}

.video-call-controls [aria-pressed="true"] {
  border-color: rgba(251, 113, 133, 0.6);
  background: rgba(225, 29, 72, 0.22);
}

.video-answer-btn {
  background: linear-gradient(135deg, #10b981, #059669);
  border-color: rgba(110, 231, 183, 0.5);
}

/* Galería + Cámara upload pairs */
.gallery-upload-btns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* Fecha de nacimiento bloqueada tras el registro */
#inputMyBirthDate[readonly] {
  opacity: 0.72;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.04);
}

/* ================= NON-BLOCKING TOASTS (POPOVER + POLYFILL-SAFE SELECTOR) ================= */
.toast-region {
  position: fixed;
  inset: auto;
  top: calc(14px + var(--sat));
  right: calc(14px + var(--sar));
  left: auto;
  bottom: auto;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  width: min(390px, calc(100dvw - 28px - var(--sal) - var(--sar)));
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 95;
  pointer-events: none;
  overflow: visible;
}

.toast-region[popover="manual"] {
  display: none;
  opacity: 0;
  transform: translateY(-10px);
  transition:
    opacity var(--dur-normal) var(--spring-snappy),
    transform var(--dur-normal) var(--spring-snappy),
    display var(--dur-normal),
    overlay var(--dur-normal);
  transition-behavior: allow-discrete;
}

.toast-region[popover="manual"]:is(:popover-open, .\:popover-open, .is-open) {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

@starting-style {
  .toast-region[popover="manual"]:is(:popover-open, .\:popover-open, .is-open) {
    opacity: 0;
    transform: translateY(-10px);
  }
}

.lvels-toast {
  pointer-events: auto;
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(var(--blur-chrome)) saturate(155%);
  backdrop-filter: blur(var(--blur-chrome)) saturate(155%);
  border: 1px solid var(--border-specular);
  border-left: 4px solid var(--brand-secondary);
  border-radius: var(--radius-md);
  box-shadow: var(--glass-shadow);
  color: var(--text-main);
  padding: 11px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.84rem;
  line-height: 1.4;
}

.lvels-toast.toast-success {
  border-left-color: var(--verified-green);
}

.lvels-toast.toast-error {
  border-left-color: #f43f5e;
}

.lvels-toast.toast-warning {
  border-left-color: #e879f9;
}

.lvels-toast.toast-info {
  border-left-color: #38bdf8;
}

.toast-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.toast-action-btn {
  background: linear-gradient(135deg, rgba(219, 39, 119, 0.92), rgba(124, 58, 237, 0.92));
  border: 1px solid rgba(249, 168, 212, 0.45);
  color: #ffffff;
  border-radius: var(--radius-pill);
  min-height: max(32px, calc(var(--target-size) - 6px));
  padding: 0 12px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .toast-action-btn:hover {
    opacity: 0.92;
  }
}

.toast-close-btn {
  background: var(--glass-neutral-btn);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  border-radius: 8px;
  min-width: max(32px, calc(var(--target-size) - 6px));
  min-height: max(32px, calc(var(--target-size) - 6px));
  padding: 0 8px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ================= PUSH NOTIFICATIONS SWITCH (HTML switch + Liquid Glass) ================= */
.push-settings-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.push-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.push-switch-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  flex: 1;
  min-width: 0;
}

.push-actions-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

input[type="checkbox"].glass-switch {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  width: 50px;
  height: 28px;
  min-width: 50px;
  border-radius: var(--radius-pill);
  background: var(--glass-neutral-btn);
  border: 1px solid var(--border-specular);
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color var(--dur-normal) ease, border-color var(--dur-normal) ease;
}

input[type="checkbox"].glass-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  transition: transform var(--dur-normal) var(--spring-snappy);
}

input[type="checkbox"].glass-switch:checked {
  background: linear-gradient(135deg, #db2777, #9333ea);
  border-color: rgba(249, 168, 212, 0.65);
}

input[type="checkbox"].glass-switch:checked::after {
  transform: translateX(22px);
}

/* ================= GALLERIES, CAROUSEL, PREVIEW & PRIVATE PHOTO CONSENT ================= */
.card-media,
.detail-hero-media,
.preview-profile-media {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: var(--bg-media-stage);
}

.is-zoomable {
  cursor: zoom-in;
}

.photo-bars {
  position: absolute;
  top: 9px;
  left: 12px;
  right: 12px;
  z-index: 6;
  display: flex;
  gap: 5px;
  pointer-events: none;
}

.photo-bar {
  flex: 1;
  height: 3.5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
  transition: background-color var(--dur-normal) ease;
}

.photo-bar.active {
  background: #ffffff;
}

.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 7;
  width: max(42px, var(--target-size));
  height: max(42px, var(--target-size));
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(12, 8, 26, 0.82);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  color: #ffffff;
  font-size: 1.35rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: manipulation;
}

@media (hover: hover) and (pointer: fine) {
  .carousel-nav-btn:hover {
    background: rgba(219, 39, 119, 0.84);
  }
}

.carousel-prev {
  left: 10px;
}

.carousel-next {
  right: 10px;
}

.photo-zoom-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 7;
  min-height: max(36px, calc(var(--target-size) - 4px));
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(12, 8, 26, 0.68);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
}

.encounter-photo-wrap .photo-zoom-badge {
  top: 18px;
  left: 12px;
  bottom: auto;
  right: auto;
}

.photo-counter-pill {
  position: absolute;
  top: 20px;
  right: 58px;
  z-index: 7;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: rgba(12, 8, 26, 0.68);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.detail-hero-media .photo-counter-pill,
.preview-profile-media .photo-counter-pill {
  right: 12px;
}

.my-gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.my-photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.my-photo-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--glass-control-bg);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
}

.my-photo-card.is-primary {
  border-color: #e879f9;
  box-shadow: 0 0 0 1px rgba(232, 121, 249, 0.35);
}

.my-photo-thumb {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  cursor: zoom-in;
}

.photo-primary-badge {
  position: absolute;
  top: 7px;
  left: 7px;
  z-index: 3;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(12, 8, 26, 0.84);
  color: var(--champagne-text);
  border: 1px solid rgba(232, 121, 249, 0.48);
}

.photo-card-actions {
  display: flex;
  gap: 5px;
  padding: 6px;
  background: var(--glass-box-bg);
  border-top: 1px solid var(--border-hairline);
}

.photo-mini-btn {
  flex: 1;
  min-height: max(36px, calc(var(--target-size) - 6px));
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--glass-neutral-btn);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.73rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 7px;
}

@media (hover: hover) and (pointer: fine) {
  .photo-mini-btn:hover {
    border-color: var(--border-specular);
  }
}

.photo-mini-btn.danger {
  color: var(--pill-red-fg);
  border-color: rgba(244, 63, 94, 0.35);
}

.evidence-box {
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--glass-box-bg);
  border: 1px solid var(--border-hairline);
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: pre-wrap;
  max-height: 150px;
  overflow-y: auto;
}

.admin-photos-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.admin-photo-tile {
  background: var(--glass-control-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.admin-photo-tile img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  cursor: zoom-in;
}

.admin-photo-tile-body {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.74rem;
}

.admin-evidence-media {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 12px;
  background: var(--glass-box-bg);
  border: 1px solid rgba(244, 114, 182, 0.35);
}

.admin-evidence-thumb {
  width: 72px;
  height: 90px;
  border-radius: 9px;
  object-fit: cover;
  object-position: center 20%;
  cursor: zoom-in;
}

.admin-evidence-thumb.is-safe-blurred {
  filter: blur(16px) brightness(0.6);
}

.gallery-empty-hint {
  grid-column: 1 / -1;
  padding: 16px;
  text-align: center;
  border-radius: 12px;
  border: 1px dashed var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.8rem;
}

.lightbox-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 4 / 5;
  min-height: 240px;
  max-height: 74svh;
  background: var(--bg-media-stage);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.lightbox-img {
  max-width: 100%;
  max-height: 74svh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.preview-profile-card {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  background: var(--glass-box-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 14px;
}

.preview-profile-media {
  border-radius: 14px;
  overflow: clip;
  aspect-ratio: 4 / 5;
  max-height: min(52svh, 460px);
  background: var(--bg-media-stage);
  display: grid;
  place-items: center;
}

.preview-profile-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-height: inherit;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}

.preview-profile-info {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
}

/* Private Photo Modal & Chat Consent Cards */
.private-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
  max-height: 150px;
  overflow-y: auto;
}

.private-picker-item {
  position: relative;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--border-subtle);
  background: var(--glass-control-bg);
  aspect-ratio: 4 / 5;
  cursor: pointer;
}

.private-picker-item.active {
  border-color: var(--brand-color);
  box-shadow: 0 0 0 2px rgba(244, 114, 182, 0.38);
}

.private-picker-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.private-upload-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.private-send-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 14px;
  background: var(--glass-box-bg);
  border: 1px solid rgba(244, 114, 182, 0.38);
}

.private-send-preview img {
  width: 58px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  object-position: center 20%;
  flex-shrink: 0;
  display: block;
}

.private-photo-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 3px;
  max-width: 270px;
}

.private-photo-locked-box {
  padding: 13px;
  border-radius: 14px;
  background: var(--glass-box-bg);
  border: 1px dashed rgba(244, 114, 182, 0.55);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.private-photo-media-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-media-stage);
  border: 1px solid var(--border-subtle);
}

.private-photo-img {
  width: 100%;
  height: 100%;
  max-height: 320px;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  transition: transform var(--dur-normal) var(--spring-snappy);
  cursor: zoom-in;
}

.private-photo-img.is-blurred {
  filter: blur(22px) brightness(0.65);
  transform: scale(1.06);
}

.private-photo-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.private-status-note {
  font-size: 0.76rem;
  color: var(--text-muted);
  padding: 5px 9px;
  border-radius: 10px;
  background: var(--glass-box-bg);
  border: 1px solid var(--border-hairline);
}

/* Anti-Capture / Anti-Save Shield on Private Photos */
.private-photo-card,
.private-photo-img,
#photoLightboxDialog.is-private-lightbox #lightboxImg,
#myPrivatePhotosGrid .my-photo-thumb,
#privatePickerGrid img,
#privateSendPreviewImg {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
}

body.private-capture-shield-active .private-photo-img,
body.private-capture-shield-active #photoLightboxDialog.is-private-lightbox #lightboxImg,
body.private-capture-shield-active #myPrivatePhotosGrid .my-photo-thumb,
body.private-capture-shield-active #privateSendPreviewImg {
  filter: blur(36px) brightness(0.15) !important;
  transition: none !important;
}

@media print {
  .private-photo-card,
  .private-photo-img,
  #photoLightboxDialog.is-private-lightbox,
  #myPrivatePhotosGrid {
    display: none !important;
    visibility: hidden !important;
  }
}

/* ================= MOBILE COMPACT & SAFE-AREA POLISH ================= */
@media (max-width: 760px) {
  .header-admin-btn,
  .btn-label-desktop {
    display: none;
  }

  .radar-drawer-grid,
  .preview-profile-card {
    grid-template-columns: 1fr;
  }

  .my-photos-grid {
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  }

  dialog:not(#liveStreamDialog):not(#storyViewerDialog):not(#videoCallDialog) {
    width: calc(100dvw - 20px - var(--sal) - var(--sar));
    max-width: min(94dvw, 540px);
    max-height: calc(100svh - 24px - var(--sat) - var(--sab));
  }

  #liveStreamDialog,
  #storyViewerDialog,
  #videoCallDialog {
    width: 100dvw;
    max-width: 100dvw;
    height: 100svh;
    max-height: 100svh;
    margin: 0;
    border-radius: 0;
    border-inline: none;
    padding: max(12px, var(--sat)) max(12px, var(--sar)) max(14px, var(--sab)) max(12px, var(--sal));
  }
}

@media (max-width: 680px) {
  #dailyQuotaPill,
  #stealthModeBadge {
    display: none;
  }
}

@media (max-width: 600px) {
  .app-header {
    padding: max(8px, var(--sat)) calc(12px + var(--sar)) 8px calc(12px + var(--sal));
    gap: 6px;
  }

  .brand-heart,
  .brand-logo-img {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .vip-header-btn,
  .icon-btn {
    padding: 6px 11px;
    font-size: 0.76rem;
  }

  .gender-bar {
    padding: 6px calc(12px + var(--sar)) 6px calc(12px + var(--sal));
  }

  .spotlight-bar {
    padding: 8px calc(12px + var(--sar)) 8px calc(12px + var(--sal));
    gap: 10px;
  }

  .app-main {
    padding: 10px calc(12px + var(--sar)) 16px calc(12px + var(--sal));
  }

  .encounter-photo-wrap {
    height: auto;
    aspect-ratio: 4 / 4.4;
    max-height: clamp(235px, 38svh, 355px);
  }

  .encounter-body {
    padding: 13px 14px 15px;
    gap: 10px;
  }

  .discover-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .liked-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .discover-grid .discover-card {
    border-radius: 14px;
    aspect-ratio: 3 / 4.25;
  }

  .discover-grid .discover-card-body {
    padding: 28px 9px 12px;
    gap: 2px;
  }

  .discover-grid .discover-card-title {
    font-size: 0.78rem;
  }

  .discover-grid .discover-card-meta {
    font-size: 0.7rem;
    line-height: 1.3;
    padding-bottom: 1px;
  }

  .discover-grid .card-floating-badge {
    top: 6px;
    left: 6px;
    font-size: 0.69rem;
    padding: 2px 6px;
  }

  .bottom-nav {
    left: max(8px, var(--sal));
    right: max(8px, var(--sar));
    bottom: max(6px, var(--sab));
    border-radius: 26px;
    border: 1px solid var(--border-specular);
    justify-content: space-around;
    gap: 2px;
    padding: 5px 6px;
  }

  .app-layout {
    padding-bottom: calc(88px + var(--sab));
  }

  .nav-tab {
    flex: 1 1 0;
    min-width: 0;
    padding: 5px 3px;
  }

  .nav-label {
    font-size: 0.69rem;
    letter-spacing: -0.02em;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-badge {
    top: 2px;
    right: 10%;
    font-size: 0.69rem;
    padding: 1px 5px;
  }

  .toast-region,
  .toast-region[popover="manual"] {
    left: calc(12px + var(--sal));
    right: calc(12px + var(--sar));
    width: auto;
  }
}

@media (max-width: 480px) {
  .btn-label-compact {
    display: none;
  }

  .encounter-actions {
    gap: 6px;
  }

  .circle-btn {
    padding: 7px 2px;
    min-block-size: 54px;
    border-radius: 14px;
  }

  .circle-btn .act-label {
    font-size: 0.72rem;
  }

  .circle-btn.like-btn .act-icon {
    font-size: 1.32rem;
  }
}

@media (max-width: 379px) {
  .bottom-nav {
    left: max(4px, var(--sal));
    right: max(4px, var(--sar));
    border-radius: 20px;
    padding-inline: 4px;
    gap: 2px;
  }

  .header-actions {
    gap: 4px;
  }

  .brand-title {
    font-size: 0.96rem;
  }
}

@media (max-height: 640px), (orientation: landscape) and (max-height: 520px) {
  .encounter-photo-wrap {
    max-height: clamp(200px, 42svh, 300px);
  }

  .story-stage-wrap {
    max-height: 62svh;
  }

  .auth-card {
    padding: 16px 18px;
  }
}

@media (pointer: coarse) {
  :root {
    --blur-chrome: 12px;
    --target-size: 44px;
  }

  .card-floating-badge,
  .live-pill-badge,
  .live-gift-toast-item {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: linear-gradient(135deg, rgba(14, 9, 30, 0.88), rgba(26, 16, 52, 0.82));
  }

  .card-floating-badge.badge-passed {
    background: linear-gradient(135deg, rgba(159, 18, 57, 0.92), rgba(127, 29, 29, 0.94));
    border-color: rgba(251, 113, 133, 0.65);
    color: #ffe4e6;
  }

  .liked-act-btn {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: var(--glass-bg-strong);
  }
}

@media (pointer: coarse), (max-width: 760px) {
  :root {
    --target-size: 44px;
  }

  .dialog-close-x,
  .toast-close-btn,
  .chat-more-trigger,
  .carousel-nav-btn {
    min-width: 44px;
    min-height: 44px;
  }

  .dialog-close-x {
    width: 44px;
    height: 44px;
  }

  .app-header,
  .bottom-nav,
  .auth-card,
  .encounter-card,
  .lvels-panel-card {
    -webkit-backdrop-filter: blur(var(--blur-chrome)) saturate(140%);
    backdrop-filter: blur(var(--blur-chrome)) saturate(140%);
  }
}

/* ================= DESKTOP FLOATING DOCK & EDITORIAL XL/QHD/4K ================= */
@media (min-width: 860px) {
  .encounter-stage {
    min-height: 0;
  }

  .encounter-card {
    max-width: clamp(780px, 76dvw, 1120px);
    display: grid;
    grid-template-columns: minmax(320px, 44%) minmax(0, 1fr);
    align-items: stretch;
    max-height: calc(100svh - 210px - var(--sat) - var(--sab));
  }

  .encounter-photo-wrap {
    aspect-ratio: auto;
    height: 100%;
    min-height: clamp(400px, calc(100svh - 240px), 650px);
    max-height: calc(100svh - 210px);
  }

  .encounter-body {
    padding: clamp(20px, 2.2vw, 34px);
    justify-content: space-between;
    gap: 14px;
    overflow-y: auto;
    min-height: 0;
  }

  .encounter-bio {
    font-size: 1rem;
    line-height: 1.56;
    -webkit-line-clamp: 6;
  }

  .encounter-actions {
    position: sticky;
    bottom: 0;
    z-index: 3;
    padding-top: 8px;
    background: linear-gradient(to top, var(--glass-bg-strong) 75%, transparent);
    max-width: 440px;
  }
}

@media (min-width: 1024px) {
  .bottom-nav {
    left: 50%;
    right: auto;
    bottom: calc(16px + var(--sab));
    transform: translateX(-50%);
    width: fit-content;
    max-width: calc(100dvw - 48px);
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-specular);
    padding: 7px 14px;
    gap: 8px;
    box-shadow: var(--glass-shadow);
  }

  .nav-glass-indicator {
    border-radius: var(--radius-pill);
  }

  .nav-tab {
    flex-direction: row;
    gap: 8px;
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    min-height: 44px;
  }

  .nav-label {
    font-size: 0.84rem;
  }

  .nav-badge {
    position: static;
    margin-left: 2px;
  }

  .app-layout {
    padding-bottom: calc(104px + var(--sab));
  }
}

@media (min-width: 1200px) {
  .encounter-card {
    max-width: clamp(880px, 68dvw, 1160px);
    grid-template-columns: minmax(350px, 460px) minmax(0, 1fr);
  }

  .encounter-photo-wrap {
    min-height: clamp(440px, calc(100dvh - 250px), 650px);
    max-height: calc(100dvh - 220px);
  }

  .encounter-body {
    padding: clamp(24px, 2.4vw, 36px);
  }

  .encounter-bio {
    font-size: 1.02rem;
    line-height: 1.58;
  }

  .detail-hero-grid {
    grid-template-columns: minmax(360px, 460px) 1fr;
    gap: 30px;
  }

  .detail-hero-media,
  .detail-hero-img {
    max-height: clamp(440px, 62dvh, 720px);
  }
}

@media (min-width: 1440px) {
  html {
    font-size: clamp(16px, 0.35vw + 12px, 18.5px);
  }

  .app-layout {
    max-width: min(92dvw, 1540px);
  }

  .auth-shell {
    max-width: min(86dvw, 1320px);
    gap: 44px;
  }

  .discover-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
  }

  .liked-grid {
    grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
    gap: 18px;
  }
}

@media (min-width: 1700px) {
  .discover-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (min-width: 2200px) {
  html {
    font-size: clamp(17px, 0.3vw + 13px, 20px);
  }

  .app-layout {
    max-width: min(90dvw, 1920px);
  }

  .discover-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 22px;
  }

  .liked-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
  }
}

/* ================= NATURAL MICRO-INTERACTIONS & REDUCED MOTION ================= */
@media (prefers-reduced-motion: no-preference) {
  :where(button:not(.nav-tab):not(.gender-chip):not(.lg-segmented-rail > button):not(.lg-transient-rail > button), .avatar-upload-btn, .avatar-fab-btn, .chat-more-trigger, .discover-card) {
    transition:
      transform var(--dur-fast) var(--spring-snappy),
      scale var(--dur-fast) var(--spring-snappy),
      background-color var(--dur-normal) ease,
      border-color var(--dur-normal) ease;
  }

  :where(button:not(:disabled):not(.nav-tab):not(.gender-chip):not(.lg-segmented-rail > button):not(.lg-transient-rail > button), .avatar-upload-btn, .avatar-fab-btn, .chat-more-trigger):active {
    scale: 0.97;
  }

  @media (hover: hover) and (pointer: fine) {
    .circle-btn:hover:not(:disabled),
    .primary-btn:hover:not(:disabled),
    .vip-header-btn:hover:not(:disabled) {
      transform: translateY(-1px);
    }

    .discover-card:hover {
      transform: translateY(-3px);
      border-color: rgba(244, 114, 182, 0.55);
      box-shadow: 0 16px 36px rgba(4, 2, 12, 0.55), var(--glass-highlight);
    }
  }

  .encounter-card {
    animation: lvelsCardEnter var(--dur-normal) var(--spring-snappy);
  }

  .msg-bubble.is-just-sent {
    transform-origin: 94% 100%;
    will-change: transform, opacity;
    animation: lvelsWhatsappSend 340ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .msg-bubble.is-just-received {
    transform-origin: 6% 100%;
    will-change: transform, opacity;
    animation: lvelsWhatsappRecv 320ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .msg-tick.tick-pop {
    display: inline-block;
    animation: lvelsTickPop 260ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .chat-more-menu[open] .chat-more-popover {
    animation: lvelsPopoverIn var(--dur-fast) var(--spring-snappy) both;
  }

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

  @keyframes lvelsWhatsappSend {
    0% {
      opacity: 0;
      transform: translate3d(0, 10px, 0) scale(0.968);
    }
    45% {
      opacity: 1;
    }
    100% {
      opacity: 1;
      transform: translate3d(0, 0, 0) scale(1);
    }
  }

  @keyframes lvelsWhatsappRecv {
    0% {
      opacity: 0;
      transform: translate3d(0, 8px, 0) scale(0.972);
    }
    45% {
      opacity: 1;
    }
    100% {
      opacity: 1;
      transform: translate3d(0, 0, 0) scale(1);
    }
  }

  @keyframes lvelsTickPop {
    0% {
      opacity: 0.45;
      transform: scale(0.86);
    }
    100% {
      opacity: 1;
      transform: scale(1);
    }
  }

  @keyframes lvelsPopoverIn {
    from { opacity: 0; scale: 0.92; }
    to { opacity: 1; scale: 1; }
  }
}

/* Fallback for older browsers without accent-color */
@supports not (accent-color: var(--brand-color)) {
  form input[type="checkbox"].visually-hidden {
    position: absolute !important;
    clip-path: inset(50%) !important;
    overflow: hidden !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    border: 0 !important;
    white-space: nowrap !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html,
  body {
    scroll-behavior: auto !important;
  }

  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }

  .encounter-card,
  .msg-bubble,
  .live-floating-heart,
  .match-avatar,
  .match-spark,
  dialog,
  .reg-wizard-step {
    animation: none !important;
    translate: none !important;
    scale: none !important;
  }

  .glass-accordion::details-content,
  .radar-advanced-drawer,
  dialog,
  dialog::backdrop,
  .toast-region[popover="manual"] {
    transition-duration: var(--dur-fast) !important;
    transform: none !important;
    translate: none !important;
    scale: none !important;
  }

  .story-progress-seg.is-active .story-progress-fill {
    animation-duration: 6s !important;
  }
}

.hp-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

.gps-detect-btn {
  padding: 9px 14px;
  font-size: 0.82rem;
  border-radius: var(--radius-pill);
}

.radar-gps-btn {
  flex-shrink: 0;
  font-size: 0.78rem;
  padding: 8px 11px;
  white-space: nowrap;
}

.gps-profile-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.admin-quick-gift-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 8px;
}

.admin-tabs-shell {
  margin-top: 16px;
}

.admin-tablist {
  display: flex;
  overflow-x: auto;
  flex-wrap: wrap;
  gap: 6px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 16px;
  scrollbar-width: none;
}

.admin-tablist::-webkit-scrollbar {
  display: none;
}

.admin-sec-tab {
  position: relative;
  flex: none;
  padding: 10px 14px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.admin-sec-tab[aria-selected="true"] {
  color: var(--text-main);
}

.admin-tablist:not(.has-glass-ready) .admin-sec-tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  border-block-end: 3px solid #f472b6;
}

.tab-count-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--pill-pink-bg);
  color: var(--pill-pink-fg);
}

.admin-sec-tab[aria-selected="true"] .tab-count-pill {
  background: var(--pill-pink-bg);
  color: var(--pill-pink-fg);
  border: 1px solid rgba(219, 39, 119, 0.42);
}

.admin-tabs-shell [role="tabpanel"] {
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
}

.admin-panel-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-subfilter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.admin-subfilter-pills:not(.has-glass-ready) .mini-chip.active {
  background: var(--brand-gradient);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

.admin-users-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.admin-users-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.admin-users-filters input[type="search"] {
  min-width: 200px;
}

.admin-users-filters select {
  width: auto;
  min-width: 136px;
}

.admin-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.admin-pager-info {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================================================
   Guided Step-by-Step Onboarding Wizard, Completeness Bar & Chat Partner View
   ============================================================================ */
.reg-wizard-nav {
  margin-bottom: 4px;
}

.reg-step-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 0;
  margin: 0;
}

.reg-step-item {
  min-width: 0;
}

.reg-step-dot-btn {
  width: 100%;
  min-height: 38px;
  padding: 6px 6px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--glass-control-bg);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: default;
  transition: border-color var(--dur-normal) ease, background-color var(--dur-normal) ease, color var(--dur-normal) ease;
}

.reg-step-item[aria-current="step"] .reg-step-dot-btn {
  border-color: rgba(244, 114, 182, 0.75);
  background: var(--brand-gradient);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(219, 39, 119, 0.25);
}

.reg-step-item.is-done .reg-step-dot-btn {
  border-color: rgba(52, 211, 153, 0.5);
  background: rgba(16, 185, 129, 0.14);
  color: var(--pill-green-fg);
  cursor: pointer;
}

.reg-wizard-step {
  display: flex;
  flex-direction: column;
  gap: 11px;
  opacity: 1;
  translate: 0 0;
  transition:
    opacity var(--dur-normal) var(--spring-smooth),
    translate var(--dur-normal) var(--spring-smooth),
    display var(--dur-normal);
  transition-behavior: allow-discrete;
}

@starting-style {
  .reg-wizard-step:not([hidden]) {
    opacity: 0;
    translate: calc(var(--nav-dir, 1) * 14px) 0;
  }
}

.reg-wizard-step[hidden] {
  display: none;
  opacity: 0;
  translate: calc(var(--nav-dir, -1) * -14px) 0;
}

.reg-step-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--pill-pink-fg);
  margin: 2px 0;
}

.reg-step-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
}

.reg-step-actions > .primary-btn,
.reg-step-actions > .secondary-btn {
  flex: 1;
}

.age-calc-pill {
  padding: 9px 12px;
  border-radius: 12px;
  background: var(--glass-box-bg);
  border: 1px solid var(--border-hairline);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.age-calc-pill.is-valid {
  border-color: rgba(52, 211, 153, 0.5);
  background: rgba(16, 185, 129, 0.14);
  color: var(--pill-green-fg);
}

.age-calc-pill.is-error {
  border-color: rgba(251, 113, 133, 0.65);
  background: rgba(225, 29, 72, 0.16);
  color: var(--pill-red-fg);
}

.age-inline-hint {
  display: block;
  margin-top: 2px;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.age-inline-hint.is-valid {
  color: var(--pill-green-fg);
}

.age-inline-hint.is-error {
  color: var(--pill-red-fg);
}

.reg-photo-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  background: var(--glass-box-bg);
  border: 1px solid var(--border-hairline);
}

.reg-photo-preview {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 2px solid var(--border-specular);
  flex-shrink: 0;
}

.reg-photo-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}

.reg-interest-chips {
  margin-bottom: 6px;
}

.reg-interest-chip.active {
  background: var(--brand-gradient);
  border-color: rgba(244, 114, 182, 0.75);
  color: #ffffff;
}

.profile-completeness-bar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--glass-box-bg);
  border: 1px solid var(--border-hairline);
}

.profile-completeness-bar[hidden] {
  display: none;
}

.profile-comp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
}

.profile-comp-track {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: var(--glass-neutral-btn);
  overflow: hidden;
}

.profile-comp-fill {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: var(--brand-gradient);
  transform-origin: left center;
  transform: scaleX(var(--progress, 1));
  transition: transform var(--dur-normal) var(--spring-smooth);
}

.profile-comp-nudge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.looking-for-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  background: var(--pill-purple-bg);
  border: 1px solid rgba(192, 132, 252, 0.42);
  color: var(--pill-purple-fg);
}

.chat-header-partner-btn {
  appearance: none;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 4px 8px 4px 4px;
  margin: -4px 0 -4px -4px;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  min-height: 44px;
  flex: 1;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}

@media (hover: hover) and (pointer: fine) {
  .chat-header-partner-btn:hover {
    background: var(--glass-neutral-btn);
    border-color: var(--border-subtle);
  }
}

.chat-header-partner-btn:focus-visible {
  outline: 2px solid #f472b6;
  outline-offset: 2px;
}

.chat-header-view-link {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--link-color);
}

.auth-form :is(input, select, textarea):is(:user-invalid, .user-invalid-fallback),
.profile-form :is(input, select, textarea):is(:user-invalid, .user-invalid-fallback) {
  border-color: #fb7185;
  background-color: rgba(225, 29, 72, 0.12);
}

@media (max-width: 520px) {
  .reg-step-list {
    gap: 4px;
  }
  .reg-step-dot-btn {
    font-size: 0.66rem;
    padding: 5px 3px;
  }
}

/* ============================================================================
   First-Entry Onboarding Wizard (<progress>), Verification Dialog & Admin Queue
   ============================================================================ */
.onb-progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.onb-progress-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}

progress.lvels-progress {
  appearance: none;
  border: 0 solid;
  overflow: clip;
  width: 100%;
  height: 9px;
  --progress-bar-radius: 1e5px;
  border-radius: var(--progress-bar-radius);
  background: rgba(255, 255, 255, 0.12);
  display: block;
}

progress.lvels-progress::-webkit-progress-bar {
  background: transparent;
}

progress.lvels-progress::-webkit-progress-value {
  background: var(--brand-gradient);
  border-radius: var(--progress-bar-radius);
  transition: inline-size 0.25s ease;
}

progress.lvels-progress::-moz-progress-bar {
  background: var(--brand-gradient);
  border-radius: var(--progress-bar-radius);
  transition: inline-size 0.25s ease;
}

.onb-required-pill {
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--pill-pink-bg);
  border: 1px solid rgba(244, 114, 182, 0.5);
  color: var(--pill-pink-fg);
  font-size: 0.82rem;
  font-weight: 700;
}

.onb-photo-stage {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 16px;
  background: var(--glass-box-bg);
  border: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.onb-main-photo {
  width: 92px;
  height: 92px;
  border-radius: 20px;
  object-fit: cover;
  object-position: center 20%;
  border: 2px solid var(--border-specular);
  flex-shrink: 0;
}

.onb-photo-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 180px;
}

.onb-uploaded-thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.onb-thumb-item {
  position: relative;
  width: 68px;
  height: 82px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-specular);
  flex-shrink: 0;
}

.onb-thumb-item img,
.onb-uploaded-thumb-img {
  width: 100%;
  height: 100%;
  max-width: 68px;
  max-height: 82px;
  display: block;
  object-fit: cover;
  object-position: center 20%;
}

.onb-thumb-badge {
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 4px;
  text-align: center;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 4px;
  border-radius: 999px;
  background: rgba(12, 8, 26, 0.82);
  color: #fbcfe8;
  border: 1px solid rgba(244, 114, 182, 0.45);
}

#storyUploadPreviewWrap {
  justify-content: center;
}

#storyUploadPreviewWrap img {
  width: 112px;
  height: 156px;
  border-radius: 14px;
  object-fit: cover;
  object-position: center 20%;
}

.onb-interest-chip.active {
  background: var(--brand-gradient);
  border-color: rgba(244, 114, 182, 0.75);
  color: #ffffff;
}

.verification-status-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(16, 185, 129, 0.09);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.verification-status-card.is-pending {
  background: rgba(245, 158, 11, 0.11);
  border-color: rgba(251, 191, 36, 0.42);
}

.verification-status-card.is-rejected {
  background: rgba(225, 29, 72, 0.12);
  border-color: rgba(251, 113, 133, 0.45);
}

.verification-status-card.is-unverified {
  background: var(--glass-box-bg);
  border-color: var(--border-hairline);
}

.verify-compare-grid {
  display: grid;
  grid-template-columns: 124px 1fr;
  gap: 12px;
  align-items: stretch;
}

.verify-ref-box,
.verify-gesture-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  border-radius: 14px;
  background: var(--glass-box-bg);
  border: 1px solid var(--border-hairline);
  text-align: center;
}

.verify-box-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.verify-ref-img {
  width: 96px;
  height: 96px;
  border-radius: 14px;
  object-fit: cover;
  object-position: center 20%;
  border: 1px solid var(--border-specular);
}

.verify-gesture-emoji {
  font-size: 2.2rem;
  line-height: 1.1;
}

.verify-gesture-text {
  font-size: 0.84rem;
  line-height: 1.35;
}

.verify-capture-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.verify-capture-actions > * {
  flex: 1;
  min-width: 170px;
}

.verify-webcam-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.verify-webcam-video {
  width: 100%;
  max-height: 240px;
  border-radius: 14px;
  background: var(--bg-media-stage);
  object-fit: cover;
  transform: scaleX(-1);
}

.admin-verif-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 12px;
  margin-top: 12px;
}

.admin-verif-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: var(--glass-box-bg);
  border: 1px solid var(--border-hairline);
}

.admin-verif-photos-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.admin-verif-photo-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.admin-verif-thumb {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 12px;
  border: 1px solid var(--border-specular);
  cursor: zoom-in;
}

@media (max-width: 480px) {
  .verify-compare-grid {
    grid-template-columns: 1fr;
  }
}

/* Historias 24h (Radar Strip + Upload & Story Viewer Modals) */
.spotlight-avatar-wrap.has-story-unseen {
  background: linear-gradient(135deg, #fb7185 0%, #f43f5e 38%, #c084fc 72%, #38bdf8 100%);
  box-shadow: 0 0 14px rgba(244, 63, 94, 0.45);
}

.spotlight-avatar-wrap.has-story-seen {
  background: rgba(148, 163, 184, 0.45);
  box-shadow: none;
}

.story-badge-pill {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--bg-page);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  line-height: 1;
}

.story-safety-banner {
  font-size: 0.78rem;
  line-height: 1.4;
  padding: 9px 12px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: var(--pill-green-fg);
}

.story-viewer-card {
  width: min(100%, 440px);
  max-height: min(92svh, 760px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
}

.story-progress-segments {
  display: flex;
  gap: 5px;
  width: 100%;
}

.story-progress-seg {
  flex: 1;
  height: 3.5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  overflow: hidden;
}

.story-progress-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: #ffffff;
  border-radius: 999px;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform var(--dur-fast) linear;
}

.story-progress-seg.is-done .story-progress-fill {
  transform: scaleX(1);
}

.story-progress-seg.is-active .story-progress-fill {
  animation: storyProgressFill 6s linear forwards;
}

#storyViewerDialog.is-paused .story-progress-seg.is-active .story-progress-fill {
  animation-play-state: paused;
}

#storyViewerDialog.is-hold-paused .story-progress-segments,
#storyViewerDialog.is-hold-paused .story-viewer-topbar,
#storyViewerDialog.is-hold-paused .story-stage-caption,
#storyViewerDialog.is-hold-paused .story-poll-box,
#storyViewerDialog.is-hold-paused .story-stage-bottom {
  opacity: 0.18;
  transition: opacity var(--dur-normal) ease;
}

@keyframes storyProgressFill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

:root[data-theme="light"] .story-viewer-card > .story-progress-segments .story-progress-seg,
:root:has(> head > meta[name="color-scheme"][content="light"]) .story-viewer-card > .story-progress-segments .story-progress-seg {
  background: rgba(76, 54, 138, 0.16);
}

:root[data-theme="light"] .story-viewer-card > .story-progress-segments .story-progress-fill,
:root:has(> head > meta[name="color-scheme"][content="light"]) .story-viewer-card > .story-progress-segments .story-progress-fill {
  background: var(--brand-color);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]):not(:has(> head > meta[name="color-scheme"][content="dark"])) .story-viewer-card > .story-progress-segments .story-progress-seg {
    background: rgba(76, 54, 138, 0.16);
  }
  :root:not([data-theme="dark"]):not(:has(> head > meta[name="color-scheme"][content="dark"])) .story-viewer-card > .story-progress-segments .story-progress-fill {
    background: var(--brand-color);
  }
}

.story-viewer-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.story-viewer-author {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex: 1;
}

.story-author-btn {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 2px 6px 2px 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  border-radius: 12px;
  transition: background var(--dur-fast) ease;
}

.story-author-btn:hover,
.story-author-btn:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.story-viewer-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 1.5px solid var(--border-specular);
  flex-shrink: 0;
}

.story-viewer-author-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.story-viewer-author-meta strong {
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.story-viewer-author-meta small {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.story-viewer-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.story-icon-btn {
  border: 1px solid var(--border-subtle);
  background: var(--glass-neutral-btn);
  color: var(--text-main);
  border-radius: 10px;
  padding: 5px 8px;
  font-size: 0.74rem;
  cursor: pointer;
}

.story-stage-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 13;
  max-height: 54svh;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-media-stage);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px;
}

.story-stage-wrap::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 112px;
  background: linear-gradient(180deg, rgba(6, 4, 15, 0.8) 0%, rgba(6, 4, 15, 0.34) 55%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

.story-stage-wrap::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 48%;
  background: var(--scrim-bottom-editorial);
  z-index: 1;
  pointer-events: none;
}

.story-stage-wrap > .story-progress-segments {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  width: auto;
  z-index: 4;
}

.story-stage-wrap > .story-viewer-topbar {
  position: absolute;
  top: 22px;
  left: 10px;
  right: 10px;
  z-index: 4;
  color: #ffffff;
}

.story-stage-wrap > .story-viewer-topbar .story-viewer-author-meta small {
  color: rgba(243, 238, 255, 0.85);
}

.story-stage-wrap > .story-viewer-topbar .story-icon-btn,
.story-stage-wrap > .story-viewer-topbar .dialog-close-x {
  background: rgba(12, 8, 26, 0.56);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
}

.story-stage-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  z-index: 0;
}

.story-nav-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 34%;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 2;
}

.story-nav-zone.prev { left: 0; }
.story-nav-zone.next { right: 0; }

.story-stage-bottom {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.story-stage-caption {
  position: relative;
  margin: 0;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(10, 7, 21, 0.62);
  color: #ffffff;
  font-size: 0.85rem;
  text-align: center;
  z-index: 3;
}

@media (max-width: 760px) {
  #storyViewerDialog .story-viewer-card {
    width: 100%;
    height: 100%;
    max-height: 100svh;
  }

  #storyViewerDialog .story-stage-wrap {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
  }
}

.story-footer-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.story-reply-form {
  display: flex;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.story-reply-form input {
  flex: 1;
  min-width: 0;
}

/* ============================================================================
   v1.13.0 — iOS 27 Liquid Glass + Light/Dark + Online Orb + Diamonds + Live
   ============================================================================ */
:root[data-theme="light"] .brand-title,
:root[data-theme="light"] .brand-title-xl,
:root:has(> head > meta[name="color-scheme"][content="light"]) .brand-title,
:root:has(> head > meta[name="color-scheme"][content="light"]) .brand-title-xl {
  background: linear-gradient(95deg var(--in-oklab), #be185d 0%, #6d28d9 55%, #0369a1 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]):not(:has(> head > meta[name="color-scheme"][content="dark"])) .brand-title,
  :root:not([data-theme="dark"]):not(:has(> head > meta[name="color-scheme"][content="dark"])) .brand-title-xl {
    background: linear-gradient(95deg var(--in-oklab), #be185d 0%, #6d28d9 55%, #0369a1 100%);
    -webkit-background-clip: text;
    background-clip: text;
  }
}

.auth-theme-toggle {
  position: fixed;
  top: calc(14px + var(--sat));
  right: calc(14px + var(--sar));
  z-index: 40;
}

/* Green Liquid Glass Status Orb (.liquid-online-dot) */
.liquid-online-dot {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #d1fae5 0%, #34d399 45%, #059669 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.88);
  box-shadow:
    0 0 0 2px rgba(16, 185, 129, 0.24),
    0 0 12px rgba(16, 185, 129, 0.85),
    inset 0 1px 1px rgba(255, 255, 255, 0.9);
  z-index: 4;
  pointer-events: none;
  flex-shrink: 0;
}

.liquid-online-dot.sm {
  width: 10px;
  height: 10px;
  bottom: 1px;
  right: 1px;
  border-width: 1.5px;
}

.liquid-online-dot.lg {
  width: 15px;
  height: 15px;
  bottom: 10px;
  right: 10px;
}

.encounter-name-row .liquid-online-dot {
  position: static;
  margin-left: 2px;
}

.thread-avatar-wrap,
.story-avatar-wrap,
.live-host-avatar-wrap {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}

.preview-profile-media .liquid-online-dot,
.detail-hero-media .liquid-online-dot,
.encounter-photo-wrap .liquid-online-dot {
  top: 10px;
  right: 10px;
  bottom: auto;
}

.discover-card-media-wrap .liquid-online-dot {
  top: 8px;
  right: 8px;
  bottom: auto;
}

/* Actionable "Me gusta" Card Actions */
.liked-profile-card {
  cursor: pointer;
}

.liked-card-actions {
  display: flex;
  gap: 5px;
  margin-top: 6px;
}

.liked-act-btn {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(18, 12, 36, 0.72);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  backdrop-filter: blur(10px) saturate(160%);
  color: #ffffff;
  border-radius: 10px;
  padding: 5px 8px;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.liked-act-btn.is-like {
  flex: 1;
  background: var(--brand-gradient);
  border-color: rgba(255, 255, 255, 0.34);
}

.liked-act-btn.is-pass {
  background: rgba(190, 18, 60, 0.8);
  border-color: rgba(251, 113, 133, 0.55);
}

/* Image Fade-In, Shimmer Skeletons, Chat Load Older & Optimistic Bubbles */
.img-fade {
  opacity: 0;
  transition: opacity var(--dur-normal) ease-out;
}

.img-fade.is-ready {
  opacity: 1;
}

.lvels-skeleton {
  position: relative;
  overflow: hidden;
  background: var(--glass-neutral-btn);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
}

@media (prefers-reduced-motion: no-preference) {
  .lvels-skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.12) 50%, transparent 100%);
    transform: translateX(-100%);
    animation: lvelsSkeletonShimmer 1.35s ease-in-out infinite;
    pointer-events: none;
  }

  @keyframes lvelsSkeletonShimmer {
    to {
      transform: translateX(100%);
    }
  }
}

.portrait-skeleton-card {
  aspect-ratio: 4 / 5;
  width: 100%;
  border-radius: var(--radius-lg);
}

.chat-skeleton-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 8px;
}

.chat-skeleton-bubble {
  height: 38px;
  width: min(64%, 240px);
  border-radius: 16px;
  background: var(--glass-neutral-btn);
  border: 1px solid var(--border-subtle);
  opacity: 0.72;
}

.chat-skeleton-bubble.is-right {
  align-self: flex-end;
  width: min(56%, 210px);
}

.chat-skeleton-bubble.is-short {
  width: min(40%, 150px);
}

.chat-load-older-wrap {
  display: flex;
  justify-content: center;
  padding-bottom: 6px;
}

.msg-bubble.is-pending {
  opacity: 0.94;
}

.discover-load-sentinel {
  width: 100%;
  height: 18px;
}

/* Header Diamonds Button & Shop */
.diamonds-header-btn {
  background: linear-gradient(135deg var(--in-oklab), rgba(14, 165, 233, 0.22), rgba(168, 85, 247, 0.24));
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: var(--pill-cyan-fg);
  padding: 5px 11px;
  min-height: var(--target-size);
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  box-shadow: var(--glass-highlight);
}

.diamonds-dialog-card {
  max-width: 560px;
}

.diamonds-balance-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-lg);
  background: var(--glass-box-bg);
  border: 1px solid var(--border-specular);
  box-shadow: var(--glass-shadow-sm);
}

.diamonds-balance-label {
  display: block;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.diamonds-balance-value {
  display: block;
  font-family: 'LvelsDisplay', sans-serif;
  font-size: 1.55rem;
  color: var(--pill-cyan-fg);
}

.diamonds-earned-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.diamond-packs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.diamond-pack-card {
  position: relative;
  padding: 28px 10px 14px;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--glass-shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.diamond-pack-card.is-featured {
  border-color: rgba(56, 189, 248, 0.52);
}

.diamond-pack-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 0.64rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: var(--pill-pink-bg);
  color: var(--pill-pink-fg);
}

.diamond-pack-amt {
  font-size: 1.25rem;
  font-weight: 700;
}

.diamond-pack-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.diamond-pack-price {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--pill-cyan-fg);
}

.diamond-preset-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.diamond-select-sm {
  width: auto !important;
  min-width: 78px;
  flex-shrink: 0;
  font-weight: 700;
}

/* Profile Guide & Rules Grid */
.guide-rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 14px;
}

.guide-rule-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.guide-rule-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.48;
}

.guide-rule-list strong {
  color: var(--text-main);
}

.guide-card-actions {
  margin-top: auto;
  padding-top: 6px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.theme-settings-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Spotlight Stories & Live Launcher */
.spotlight-avatar-wrap.has-story-unseen {
  background: var(--brand-gradient);
}

.spotlight-avatar-wrap.has-story-seen {
  background: rgba(148, 163, 184, 0.45);
}

.spotlight-avatar-wrap.has-live-ring {
  background: linear-gradient(135deg var(--in-oklab), #f43f5e 0%, #db2777 50%, #10b981 100%);
  box-shadow: 0 0 16px rgba(244, 63, 94, 0.55);
}

.spotlight-avatar-wrap.live-launch-ring {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg var(--in-oklab), #f43f5e 0%, #db2777 100%);
}

.live-launch-glyph {
  font-size: 1.28rem;
}

.spotlight-live-badge {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  background: #e11d48;
  color: #ffffff;
  font-size: 0.58rem;
  font-weight: 700;
  border: 1.5px solid var(--bg-page);
  white-space: nowrap;
}

/* Story Viewer Gift Bar */
.story-footer-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.story-counters-row,
.story-own-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

#storyOwnStatsText {
  min-width: 0;
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.story-gift-form {
  display: flex;
  gap: 6px;
  align-items: center;
  width: 100%;
}

.story-gift-form input {
  flex: 1;
  min-width: 0;
}

.story-own-gifts-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 92px;
  overflow-y: auto;
  font-size: 0.78rem;
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--glass-box-bg);
  border: 1px solid var(--border-subtle);
}

/* En Vivo Stage Dialog */
.live-stage-dialog-card {
  width: min(94vw, 520px);
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
  padding: 12px;
  gap: 10px;
}

.live-stage-header-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.live-stage-viewport {
  position: relative;
  width: 100%;
  height: clamp(320px, 54svh, 520px);
  aspect-ratio: auto;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-media-stage);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.live-stage-viewport.has-cohost {
  height: clamp(300px, 50svh, 480px);
  aspect-ratio: auto;
}

#liveStageVideo,
.live-stage-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.live-stage-poster {
  z-index: 1;
}

.live-floating-hearts {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 4;
}

.live-floating-heart {
  position: absolute;
  bottom: 14px;
  font-size: 1.45rem;
  animation: liveHeartFloat 1.4s ease-out forwards;
}

@keyframes liveHeartFloat {
  0% {
    transform: translate3d(0, 0, 0) scale(0.8);
    opacity: 0.95;
  }
  100% {
    transform: translate3d(var(--drift-x, 12px), -210px, 0) scale(1.35);
    opacity: 0;
  }
}

.live-top-hud {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(12, 8, 28, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.live-host-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.live-host-avatar-wrap img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 2px solid #f43f5e;
}

.live-host-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.live-host-meta strong,
.live-host-meta small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-hud-metrics {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.live-pill-badge {
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: rgba(12, 8, 26, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.live-pill-badge.is-live {
  background: rgba(225, 29, 72, 0.88);
  border-color: rgba(253, 164, 175, 0.65);
}

.live-pill-badge.is-warn {
  background: rgba(217, 119, 6, 0.9);
}

.live-host-telemetry-row {
  position: relative;
  z-index: 2;
  padding: 0;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.live-motion-warning {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(180, 83, 9, 0.92);
  border: 1px solid rgba(252, 211, 77, 0.7);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
}

.live-gifts-feed {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 36%;
  overflow-y: auto;
  pointer-events: none;
}

.live-gift-toast-item {
  align-self: flex-start;
  padding: 5px 10px;
  border-radius: 12px;
  background: rgba(12, 8, 26, 0.78);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.78rem;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.live-gift-toast-item.is-highlighted {
  background: linear-gradient(135deg var(--in-oklab), rgba(219, 39, 119, 0.88), rgba(124, 58, 237, 0.88));
  border-color: rgba(249, 168, 212, 0.75);
}

.live-footer-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 2px;
  width: 100%;
  min-width: 0;
}

#liveViewerControlsBar button,
#liveViewerControlsBar input,
#liveViewerControlsBar select {
  min-height: 38px;
}

.live-host-footer {
  justify-content: space-between;
  flex-wrap: wrap;
}

.live-host-notice {
  font-size: 0.76rem;
  color: var(--text-muted);
  flex: 1;
  min-width: 160px;
}

.live-heart-fab {
  border: 1px solid rgba(244, 114, 182, 0.55);
  background: linear-gradient(135deg var(--in-oklab), rgba(225, 29, 72, 0.85), rgba(219, 39, 119, 0.85));
  color: #ffffff;
  padding: 9px 12px;
  min-height: var(--target-size);
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}

.live-gift-form {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1 1 220px;
  width: 100%;
  min-width: 0;
}

.live-gift-form input {
  flex: 1 1 110px;
  width: 0;
  min-width: 0;
  max-width: 100%;
}

/* ==========================================================================
   iOS 27 SEMANTIC FUNCTIONAL COLOR SYSTEM & GEOMETRIC ALIGNMENT ("TODO CUADRADO")
   ========================================================================== */

/* 1. Light/Dark Surface, Track & Text Parity Fixes */
.app-header {
  box-shadow: var(--header-shadow);
}

.bottom-nav {
  box-shadow: var(--dock-shadow);
}

.preview-profile-card,
.private-send-preview,
.private-photo-locked-box,
.evidence-box {
  background: var(--glass-box-bg);
}

label.checkbox-row input[type="checkbox"].visually-hidden + span::before {
  border-color: var(--border-control);
}

.glass-switch,
input[type="range"]::-webkit-slider-runnable-track,
input[type="range"]::-moz-range-track,
.profile-comp-track,
progress.lvels-progress::-webkit-progress-bar {
  background: var(--track-bg);
}

.glass-accordion-body,
.radar-advanced-drawer,
.promo-inline-form {
  border-top-color: var(--border-subtle);
}

.interest-tag,
.looking-for-pill {
  background: var(--pill-purple-bg);
  color: var(--pill-purple-fg);
  border-color: var(--border-subtle);
}

.story-safety-banner,
.trust-safety-title {
  color: var(--accent-emerald-fg);
}

.auth-alert,
.banner-declined {
  color: var(--pill-red-fg);
}

/* 2. Uniform Top Header Geometry (--header-ctrl-h) */
.app-header {
  --header-ctrl-h: 38px;
}

.header-actions :where(.free-chat-pill, .diamonds-header-btn, .vip-header-btn, .icon-btn) {
  height: var(--header-ctrl-h);
  min-height: var(--header-ctrl-h);
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#themeToggleBtn {
  width: var(--header-ctrl-h);
  min-width: var(--header-ctrl-h);
  padding: 0;
}

.brand-title {
  font-size: clamp(1.02rem, 3.8vw, 1.4rem);
}

@media (max-width: 560px) {
  .btn-label-compact {
    display: none;
  }
  .header-actions {
    gap: 5px;
  }
  .header-actions .vip-header-btn,
  #openFilterBtn {
    width: var(--header-ctrl-h);
    min-width: var(--header-ctrl-h);
    padding: 0;
  }
}

/* 3. Spotlight Bar Geometry & No Fake Story Ring */
.spotlight-item {
  flex: 0 0 68px;
  width: 68px;
}

.spotlight-avatar-wrap {
  width: 52px;
  height: 52px;
  background: var(--border-subtle);
}

.spotlight-avatar-wrap.has-story-unseen {
  background: var(--brand-gradient);
}

.spotlight-avatar-wrap.has-story-seen {
  background: var(--border-control);
}

.spotlight-avatar-wrap .liquid-online-dot.sm {
  top: 0;
  right: 0;
  bottom: auto;
}

.spotlight-divider {
  height: 36px;
  align-self: center;
  margin: 0 2px;
}

/* 4. Niveles, Radar, Me gusta, Chat & Mi Perfil Alignment ("Todo cuadrado") */
.circle-btn {
  height: 60px;
  min-block-size: 60px;
}

.circle-btn .act-icon {
  height: 24px;
  display: grid;
  place-items: center;
}

@media (min-width: 1200px) {
  .encounter-actions {
    max-width: none;
    width: 100%;
  }
}

.quick-first-msg-bar {
  padding: 4px;
  align-items: center;
}

.quick-first-msg-bar .primary-btn {
  min-height: 38px;
  height: 38px;
  padding: 0 16px;
}

.radar-bar-top input[type="search"],
#radarSyncGpsBtn,
#radarMoreFiltersBtn {
  min-height: 44px;
}

#clearRadarLocationBtn {
  top: 50%;
  transform: translateY(-50%);
}

.discover-card .card-floating-badge {
  max-width: calc(100% - 30px);
}

.discover-card-title {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}

.discover-card-title > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.discover-card-ident {
  display: flex;
  align-items: baseline;
  min-inline-size: 0;
  white-space: nowrap;
  overflow: hidden;
}

.discover-card-ident > .discover-card-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-inline-size: 0;
}

@media (max-width: 760px) {
  #discoverGrid.discover-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3px;
    margin-inline: -8px;
  }

  #discoverGrid .discover-card {
    aspect-ratio: 1 / 1.06;
    border-radius: 5px;
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.09);
  }

  #discoverGrid .discover-card.is-vip {
    border-color: var(--accent-vip-border);
  }

  #discoverGrid .discover-card.is-below-fold {
    content-visibility: auto;
    contain-intrinsic-size: auto none auto 132px;
  }

  #discoverGrid .discover-card-media-wrap::after {
    height: 34px;
  }

  #discoverGrid .discover-card .card-floating-badge {
    top: 4px;
    left: 4px;
    padding: 1px 5px;
    font-size: 0.58rem;
    max-width: calc(100% - 20px);
  }

  #discoverGrid .discover-card-media-wrap .liquid-online-dot {
    top: 5px;
    right: 5px;
    width: 9px;
    height: 9px;
  }

  #discoverGrid .discover-card-body {
    padding: 18px 6px 5px;
    gap: 1px;
  }

  #discoverGrid .discover-card-title {
    font-size: 0.74rem;
    line-height: 1.15;
    gap: 3px;
  }

  #discoverGrid .discover-card-meta {
    font-size: 0.63rem;
    line-height: 1.18;
  }

  #discoverGrid .discover-card-meta-city {
    display: none;
  }
}

.detail-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

@media (max-width: 420px) {
  .detail-actions {
    grid-template-columns: 1fr 1fr;
  }
  .detail-actions #detailChatBtn {
    grid-column: 1 / -1;
  }
}

.liked-act-btn {
  height: 36px;
  min-height: 36px;
  white-space: nowrap;
}

.liked-act-btn.is-view,
.liked-act-btn.is-pass {
  flex: 0 0 36px;
  width: 36px;
  padding: 0;
}

.chat-inbox-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
}

.chat-tools-scroll {
  padding-bottom: 0;
  scrollbar-width: none;
}

.tool-chip,
.chat-more-trigger {
  height: 36px;
  min-height: 36px;
}

.my-avatar {
  width: 84px;
  height: 84px;
}

.profile-quick-actions {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 8px;
  align-items: center;
}

.profile-quick-actions > button {
  height: 40px;
  min-height: 40px;
  justify-content: center;
  white-space: nowrap;
}

@media (max-width: 420px) {
  .profile-quick-actions {
    grid-template-columns: 1fr 1fr;
  }

  .profile-quick-actions > button {
    min-width: 0;
    white-space: normal;
    line-height: 1.2;
  }

  .profile-quick-actions > button:last-child {
    grid-column: 1 / -1;
  }
}

.wallet-summary-card {
  margin-bottom: 14px;
  border-color: var(--accent-diamond-border);
}

.wallet-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.wallet-summary-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.wallet-summary-actions > button {
  height: 38px;
  min-height: 38px;
  padding: 0 13px;
  font-size: 0.82rem;
  justify-content: center;
}

@media (max-width: 520px) {
  .wallet-summary-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

.dialog-actions-symmetric {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 8px;
}

.dialog-actions-symmetric > button {
  justify-content: center;
  min-height: 42px;
}

@media (min-width: 761px) {
  #storyViewerDialog {
    max-width: 440px;
  }
}

.btn-buy-diamond-pack {
  margin-top: auto;
  width: 100%;
  justify-content: center;
}

/* 5. Semantic Color System Bindings (5 Unmistakable Feature Identities) */

/* UI Navigation & Filter Selection -> Refractive Violet-Indigo (Fallback before .has-glass-ready or on non-rail chips) */
.gender-chips:not(.has-glass-ready) .gender-chip.active,
.filter-chips:not(.has-glass-ready) .chip[data-filter="all"].active,
:not(.lg-segmented-rail) > .mini-chip.active,
.lg-segmented-rail:not(.has-glass-ready) > .mini-chip.active,
.pronoun-chip.active,
.chat-inbox-tabs:not(.has-glass-ready) .chat-inbox-tab.active,
.profile-subtabs:not(.has-glass-ready) .profile-subtab-btn.active,
.auth-tabs:not(.has-glass-ready) .auth-tab.active {
  background: var(--ui-active-gradient);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: var(--ui-active-glow);
}

/* ❤️ Match / Me gusta -> Rose-Fuchsia */
.circle-btn.like-btn,
.like-cta,
.liked-act-btn.is-like,
.live-heart-fab,
#storyLikeBtn[aria-pressed="true"] {
  background: var(--accent-love-gradient);
  color: #ffffff;
  border-color: var(--accent-love-border);
  --btn-glow: var(--accent-love-glow);
  box-shadow: var(--accent-love-glow);
}

.bottom-nav:not(.has-glass-ready) .nav-tab[data-target="liked"].active {
  background: var(--accent-love-soft);
  border-color: var(--accent-love-border);
}

.bottom-nav:not(.is-scrubbing) .nav-tab[data-target="liked"].active,
.bottom-nav.is-scrubbing .nav-tab[data-target="liked"].is-glide-target {
  color: var(--accent-love-fg);
}

/* 💎 Diamantes & Regalos -> Refractive Ice Cyan -> Sapphire */
.diamonds-header-btn,
.diamonds-balance-hero {
  background: var(--accent-diamond-glass);
  color: var(--accent-diamond-fg);
  border: 1px solid var(--accent-diamond-border);
}

:where(.diamond-cta-btn, #accountOpenDiamondsBtn, #guideOpenDiamondsBtn, .btn-buy-diamond-pack, #storyGiftSendBtn, #liveGiftSendBtn, #adminQuickDiamondsBtn) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.diamond-cta-btn,
#accountOpenDiamondsBtn,
#guideOpenDiamondsBtn,
.btn-buy-diamond-pack,
#storyGiftSendBtn,
#liveGiftSendBtn,
#adminQuickDiamondsBtn {
  background: var(--accent-diamond-gradient);
  color: #ffffff;
  border: 1px solid var(--accent-diamond-border);
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  --btn-glow: var(--accent-diamond-glow);
  box-shadow: var(--accent-diamond-glow);
}

.diamonds-balance-value,
.diamond-pack-price,
#storyDiamondsCountBadge {
  color: var(--accent-diamond-fg);
}

.msg-bubble.gift-card-bubble {
  background: var(--accent-diamond-soft);
  border: 1px solid var(--accent-diamond-border);
  color: var(--text-main);
}

/* 👑 Pase Lvels Plus (VIP) -> Warm Champagne Gold -> Amber (AAA Espresso Ink) */
.vip-header-btn,
#openVipModalBtn,
#profileOpenVipBtn,
#btnSubYearly,
#guideOpenVipBtn,
#adminQuickVipBtn {
  background: var(--accent-vip-gradient);
  color: var(--accent-vip-on-solid);
  border: 1px solid var(--accent-vip-border);
  font-weight: 700;
  --btn-glow: var(--accent-vip-glow);
  box-shadow: var(--accent-vip-glow);
}

.vip-pill,
.vip-boost-pill {
  background: var(--accent-vip-soft);
  color: var(--accent-vip-fg);
  border: 1px solid var(--accent-vip-border);
}

.vip-plan-price {
  color: var(--accent-vip-fg);
}

.encounter-card.is-vip,
.discover-card.is-vip {
  border-color: var(--accent-vip-border);
}

.spotlight-avatar-wrap.is-vip {
  background: var(--accent-vip-gradient);
}

.bottom-nav:not(.has-glass-ready) .nav-tab[data-target="admin"].active {
  background: var(--accent-vip-soft);
  border-color: var(--accent-vip-border);
}

.bottom-nav:not(.is-scrubbing) .nav-tab[data-target="admin"].active,
.bottom-nav.is-scrubbing .nav-tab[data-target="admin"].is-glide-target {
  color: var(--accent-vip-fg);
}

/* 🔴 En Vivo (VIVO) -> Live Coral-Ruby Pulse */
.live-cta-btn,
.spotlight-avatar-wrap.live-launch-ring,
.spotlight-avatar-wrap.has-live-ring,
.spotlight-live-badge,
.live-pill-badge.is-live,
#startLiveConfirmBtn,
#guideGoLiveBtn {
  background: var(--accent-live-gradient);
  color: #ffffff;
  border: 1px solid var(--accent-live-border);
  --btn-glow: var(--accent-live-glow);
  box-shadow: var(--accent-live-glow);
}

.live-cta-btn {
  border-radius: var(--radius-pill);
  padding: 10px 16px;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ✓ Verificado / En línea / Chat Gratis -> Emerald-Mint */
.free-chat-pill,
.verified-pill,
.status-accepted,
.banner-accepted,
.filter-chips:not(.has-glass-ready) .chip[data-filter="online"].active,
.filter-chips:not(.has-glass-ready) .chip[data-filter="verified"].active,
.bottom-nav:not(.has-glass-ready) .nav-tab[data-target="chat"].active {
  background: var(--accent-emerald-soft);
  color: var(--accent-emerald-fg);
  border-color: var(--accent-emerald-border);
}

.bottom-nav:not(.is-scrubbing) .nav-tab[data-target="chat"].active,
.bottom-nav.is-scrubbing .nav-tab[data-target="chat"].is-glide-target {
  color: var(--accent-emerald-fg);
}

.chat-cta,
#acceptInboundChatBtn,
#acceptFromEncounterBtn,
#openVerifyProfileBtn,
#verifySubmitSelfieBtn {
  background: var(--accent-emerald-gradient);
  color: #ffffff;
  border-color: var(--accent-emerald-border);
  --btn-glow: var(--accent-emerald-glow);
  box-shadow: var(--accent-emerald-glow);
}

/* ============================================================================
   v1.14.0 — New Features Styles (#1 Audio-Bio/Voice, #2 Gateways/Wallet,
   #3 En Vivo 2.0, #5 Story Polls, #6 Rewind/Chemistry/Icebreakers,
   #8 Private Album 2.0, #9 Referrals + Offline Banner)
   ============================================================================ */
.offline-banner {
  background: rgba(245, 158, 11, 0.22);
  color: #fde68a;
  border-bottom: 1px solid rgba(251, 191, 36, 0.45);
  padding: calc(7px + var(--sat)) calc(14px + var(--sar)) 7px calc(14px + var(--sal));
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
}

:root[data-theme="light"] .offline-banner,
:root:has(> head > meta[name="color-scheme"][content="light"]) .offline-banner {
  background: rgba(245, 158, 11, 0.2);
  color: #78350f;
  border-bottom-color: rgba(180, 83, 9, 0.35);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]):not(:has(> head > meta[name="color-scheme"][content="dark"])) .offline-banner {
    background: rgba(245, 158, 11, 0.2);
    color: #78350f;
    border-bottom-color: rgba(180, 83, 9, 0.35);
  }
}

.rewind-header-btn {
  min-height: 36px;
  padding: 6px 12px;
  font-size: 0.8rem;
}

.chemistry-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--pill-purple-bg);
  color: var(--pill-purple-fg);
  border: 1px solid var(--border-subtle);
  font-size: 0.76rem;
  font-weight: 700;
}

.icebreakers-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.icebreakers-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}

.icebreaker-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.icebreaker-chip {
  background: var(--glass-neutral-btn);
  border: 1px solid var(--border-control);
  color: var(--text-main);
  padding: 7px 11px;
  min-height: 36px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

@media (hover: hover) and (pointer: fine) {
  .icebreaker-chip:hover {
    border-color: var(--brand-color);
  }
}

/* #1 Audio-Bio & Voice Notes */
.audio-bio-box {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 6px 0;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  background: var(--glass-box-bg);
  border: 1px solid var(--border-subtle);
}

.audio-bio-dur {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 600;
}

.voice-intro-editor {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
}

.voice-intro-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.voice-intro-audio,
.voice-note-player {
  width: 100%;
  max-width: 280px;
  height: 38px;
}

.voice-record-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 12px;
  margin-bottom: 6px;
  border-radius: var(--radius-md);
  background: var(--pill-red-bg);
  border: 1px solid var(--accent-love-border);
  color: var(--text-main);
}

.voice-rec-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-live);
  flex-shrink: 0;
}

.voice-wave-track {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 22px;
  min-width: 72px;
  flex: 1 1 80px;
}

.voice-wave-bar {
  flex: 1 1 0;
  min-width: 3px;
  max-width: 5px;
  height: 100%;
  border-radius: var(--radius-pill);
  background: var(--accent-live);
  transform-origin: center;
  transform: scaleY(var(--wave-scale, 0.35));
  transition: transform 90ms ease-out;
}

.voice-rec-timer {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 0.84rem;
  margin-right: auto;
}

.voice-note-bubble {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: min(230px, 68vw);
}

.voice-note-meta {
  font-size: 0.76rem;
  font-weight: 700;
  color: inherit;
}

.vn-player {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: min(220px, 64vw);
  padding: 6px 8px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.vn-play-btn {
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: var(--brand-gradient);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.84rem;
  cursor: pointer;
  flex-shrink: 0;
}

.vn-waveform {
  flex: 1 1 auto;
  min-width: 70px;
  height: 24px;
  display: flex;
  align-items: center;
  gap: 2.5px;
  cursor: pointer;
}

.vn-bar {
  flex: 1 1 0;
  min-width: 2.5px;
  height: var(--bar-h, 45%);
  min-height: 4px;
  max-height: 22px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.38);
  transition: background-color var(--dur-fast) ease, transform var(--dur-fast) ease;
}

.vn-bar.is-played,
.vn-bar.active {
  background: #ffffff;
}

.vn-speed-btn {
  min-width: 34px;
  min-height: 26px;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(12, 8, 26, 0.42);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  flex-shrink: 0;
}

.vn-time {
  font-size: 0.7rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: inherit;
  opacity: 0.92;
  white-space: nowrap;
  flex-shrink: 0;
}

.audio-bio-box .vn-player {
  background: var(--glass-neutral-btn);
  border-color: var(--border-subtle);
  color: var(--text-main);
}

.audio-bio-box .vn-bar {
  background: var(--border-control);
}

.audio-bio-box .vn-bar.is-played,
.audio-bio-box .vn-bar.active {
  background: var(--brand-color);
}

.audio-bio-box .vn-speed-btn {
  background: var(--glass-box-bg);
  border-color: var(--border-control);
  color: var(--text-main);
}

/* #2 Multi-Gateway & Creator Wallet */
.gateway-selector-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 4px 0;
}

.gateway-selector-row[hidden] {
  display: none;
}

.gateway-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}

.creator-wallet-box {
  background: var(--glass-box-bg);
  border: 1px solid var(--accent-diamond-border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.creator-redeem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  gap: 6px;
}

.creator-redeem-btn {
  font-size: 0.76rem;
  padding: 8px 10px;
  justify-content: center;
  text-align: center;
}

/* #3 En Vivo 2.0 (Co-Host 50%|50% Symmetric Split, Diamond Goal, Live Text Chat) */
.live-videos-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
}

.live-stage-viewport.has-cohost .live-videos-stage {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
}

.live-video-pane {
  position: relative;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--bg-media-stage);
}

.live-video-pane video,
.live-video-pane .live-stage-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.live-video-pane-cohost {
  border-top: 0;
  border-left: 2px solid var(--accent-love-border);
}

.live-pane-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 4;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(12, 8, 28, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  max-width: calc(100% - 16px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-cohost-badge {
  position: absolute;
  right: 8px;
  top: 8px;
  bottom: auto;
  z-index: 4;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(124, 58, 237, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  max-width: calc(100% - 16px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-goal-bar {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(12, 8, 26, 0.72);
  border: 1px solid rgba(56, 189, 248, 0.45);
  border-radius: 10px;
  padding: 6px 9px;
  color: #ffffff;
}

.live-goal-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 0.74rem;
}

#liveGoalLabelText {
  min-width: 0;
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#liveGoalProgressText {
  flex-shrink: 0;
}

.live-goal-track {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.live-goal-fill {
  width: 100%;
  height: 100%;
  background: var(--accent-diamond-gradient);
  border-radius: 999px;
  transform-origin: left center;
  transform: scaleX(var(--progress, 1));
  transition: transform var(--dur-normal) var(--spring-smooth);
}

.live-ctrl-chip {
  background: rgba(12, 8, 26, 0.78);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-pill);
  padding: 5px 10px;
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 32px;
}

.live-ctrl-chip[aria-pressed="true"] {
  background: rgba(225, 29, 72, 0.85);
  border-color: rgba(253, 164, 175, 0.7);
}

.live-cohost-banner {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(124, 58, 237, 0.9);
  border: 1px solid rgba(221, 214, 254, 0.65);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.78rem;
}

.live-overlays-bottom {
  position: absolute;
  left: 10px;
  right: auto;
  bottom: 10px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  max-width: min(74%, 290px);
  max-height: 28%;
  pointer-events: none;
}

.live-stage-viewport.has-cohost .live-overlays-bottom {
  max-height: 22%;
}

.live-overlays-bottom .live-gifts-feed {
  position: static;
  max-height: 68px;
}

.live-chat-feed {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 92px;
  overflow-y: auto;
  pointer-events: auto;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 24%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 24%);
}

.live-chat-msg {
  align-self: flex-start;
  padding: 4px 9px;
  border-radius: 11px;
  background: rgba(12, 8, 26, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 0.76rem;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.live-chat-vip-badge {
  color: #fde68a;
  font-weight: 700;
}

.live-chat-form {
  display: flex;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.live-chat-form input {
  flex: 1;
  min-width: 0;
}

.live-duet-btn {
  flex-shrink: 0;
  padding: 8px 10px;
  font-size: 0.78rem;
}

@media (min-width: 1024px) {
  #liveStreamDialog {
    max-width: min(92dvw, 1120px);
    width: min(92dvw, 1120px);
  }

  #liveStreamDialog .live-stage-dialog-card {
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(290px, 360px);
    grid-template-rows: auto minmax(380px, 58svh) auto;
    gap: 12px;
    padding: 16px;
  }

  #liveStreamDialog .live-stage-header-stack,
  #liveStreamDialog .live-footer-controls {
    grid-column: 1 / -1;
  }

  #liveStreamDialog .live-stage-viewport:not(:has(> .live-overlays-bottom)) {
    grid-column: 1;
    grid-row: 2;
    height: 100%;
    max-height: 58svh;
  }

  #liveStreamDialog .live-stage-dialog-card > .live-overlays-bottom {
    grid-column: 2;
    grid-row: 2;
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: none;
    max-height: 100%;
    height: 100%;
    padding: 12px;
    border-radius: 18px;
    background: var(--glass-box-bg);
    border: 1px solid var(--border-subtle);
    pointer-events: auto;
  }

  #liveStreamDialog .live-stage-viewport:has(> .live-overlays-bottom) {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(290px, 360px);
    grid-template-rows: minmax(0, 1fr);
    gap: 12px;
    height: 100%;
    max-height: 58svh;
    overflow: visible;
    background: transparent;
    border: none;
    border-radius: 0;
  }

  #liveStreamDialog .live-stage-viewport:has(> .live-overlays-bottom) > .live-videos-stage {
    position: relative;
    inset: auto;
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-media-stage);
    border: 1px solid var(--border-specular);
  }

  #liveStreamDialog .live-stage-viewport:has(> .live-overlays-bottom) > .live-floating-hearts {
    grid-column: 1;
    grid-row: 1;
  }

  #liveStreamDialog .live-stage-viewport:has(> .live-overlays-bottom) > .live-overlays-bottom {
    grid-column: 2;
    grid-row: 1;
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: none;
    max-height: 100%;
    height: 100%;
    padding: 12px;
    border-radius: 18px;
    background: var(--glass-box-bg);
    border: 1px solid var(--border-subtle);
    pointer-events: auto;
  }

  #liveStreamDialog .live-stage-viewport.has-cohost .live-videos-stage {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
  }

  #liveStreamDialog .live-overlays-bottom .live-chat-feed {
    flex: 1 1 auto;
    max-height: none;
  }

  #liveStreamDialog .live-chat-msg {
    background: var(--glass-neutral-btn);
    border-color: var(--border-hairline);
    color: var(--text-main);
  }
}

/* #5 Story Polls */
.story-poll-box {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  width: 100%;
  z-index: 3;
  background: rgba(14, 10, 30, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 14px;
  padding: 10px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.story-poll-question {
  font-size: 0.84rem;
  font-weight: 700;
  text-align: center;
}

.story-poll-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.story-poll-opt-btn {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-radius: 10px;
  padding: 8px 10px;
  min-height: 40px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.story-poll-opt-btn.is-voted {
  border-color: var(--brand-color);
  background: rgba(219, 39, 119, 0.26);
}

.story-poll-opt-bar {
  position: absolute;
  inset: 0 auto 0 0;
  background: rgba(168, 85, 247, 0.42);
  pointer-events: none;
  z-index: 0;
}

.story-poll-opt-btn > span {
  position: relative;
  z-index: 1;
}

.story-poll-opt-pct {
  font-variant-numeric: tabular-nums;
  font-size: 0.72rem;
}

/* #8 Private Album 2.0 (Watermark + Countdown + Expired) */
.private-photo-mode-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--pill-purple-fg);
}

.private-watermark-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 2;
}

.private-watermark-overlay span {
  transform: rotate(-22deg);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.38);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
  white-space: nowrap;
  user-select: none;
}

.private-countdown-pill {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: rgba(225, 29, 72, 0.9);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.private-expired-box {
  padding: 12px;
  border-radius: 12px;
  background: var(--glass-box-bg);
  border: 1px dashed var(--border-control);
  color: var(--text-muted);
  font-size: 0.78rem;
  text-align: center;
}

/* #9 Referrals "Invita a tu Tribu" */
.referral-invite-banner {
  margin-bottom: 6px;
  font-size: 0.82rem;
}

.referral-code-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.referral-code-pill {
  padding: 8px 13px;
  border-radius: var(--radius-md);
  background: var(--pill-purple-bg);
  color: var(--pill-purple-fg);
  border: 1px dashed var(--border-control);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
}

.referral-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.referral-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 10px;
  background: var(--glass-box-bg);
  border: 1px solid var(--border-subtle);
  font-size: 0.78rem;
}

/* ============================================================================
   v1.15.0 — Liquid Glass Pro (Refracción SVG selectiva + Bisel Especular)
   ============================================================================ */
:where(button, .nav-tab, .chip, .mini-chip, .gender-chip, .pronoun-chip, .circle-btn, .encounter-photo, .discover-card-media-wrap img, .story-stage-img) {
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}

.liquid-glass-svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.liquid-glass-pro {
  position: relative;
  border-radius: 30px;
  background: var(--glass-bg);
  border: 1px solid var(--border-specular);
  box-shadow: var(--glass-shadow);
}

.liquid-glass-pro,
.app-header,
.bottom-nav,
.auth-card,
.lvels-toast,
dialog[open]:not(#liveStreamDialog):not(#videoCallDialog) {
  -webkit-backdrop-filter: blur(var(--blur-chrome)) saturate(155%);
  backdrop-filter: blur(var(--blur-chrome)) saturate(155%);
}

@supports (backdrop-filter: url(#liquid-refraction)) {
  @media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) and (min-width: 1024px) {
    .liquid-glass-pro {
      backdrop-filter: blur(12px) saturate(165%) brightness(1.08) url(#liquid-refraction);
    }
  }
}

.primary-btn,
.diamond-cta-btn,
.vip-header-btn,
.live-cta-btn,
.circle-btn {
  box-shadow:
    inset 1.5px 1.5px 3px rgba(255, 255, 255, 0.45),
    inset -1.5px -1.5px 4px rgba(0, 0, 0, 0.16),
    var(--btn-glow, var(--glass-shadow-sm));
  transition: transform var(--dur-fast) var(--spring-snappy);
}

.guide-card-highlight {
  outline: 2px solid var(--accent-diamond);
  box-shadow: var(--accent-diamond-glow);
}

.auth-lang-toggle {
  position: fixed;
  top: calc(14px + var(--sat));
  right: calc(64px + var(--sar));
  z-index: 40;
  width: auto;
  min-width: 64px;
  padding: 0 11px;
  font-size: 0.78rem;
  font-weight: 700;
  gap: 5px;
}

.lang-settings-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.lang-inline-edit-box {
  padding: 12px 14px;
  border-radius: var(--radius-lg, 18px);
  background: var(--glass-bg);
  border: 1px solid var(--border-specular);
  box-shadow: var(--glass-shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lang-inline-edit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.lang-select-dialog .dialog-card {
  max-width: 440px;
}

.lang-options-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.lang-option-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  padding: 12px 14px;
  border-radius: var(--radius-lg, 18px);
  background: var(--glass-bg-strong, var(--glass-bg));
  border: 1px solid var(--border-specular);
  box-shadow: var(--glass-shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  color: var(--text-main);
  text-align: left;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--spring-snappy), border-color 0.18s ease, background 0.18s ease;
}

.lang-option-btn:hover {
  transform: translateY(-1px);
  border-color: var(--brand-color);
}

.lang-option-btn.active {
  border-color: var(--brand-color);
  box-shadow: 0 0 0 2px rgba(236, 72, 153, 0.35), var(--glass-shadow-sm);
}

.lang-option-flag {
  font-size: 1.45rem;
  line-height: 1;
  flex-shrink: 0;
}

.lang-option-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.lang-option-meta strong {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
}

.lang-option-meta small {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* ================= WEB-ONLY SEO, AEO & PUBLIC SSR PAGES ================= */
:target {
  scroll-margin-top: 4.75rem;
}

.auth-screen:not([hidden]):has(.web-seo-landing) {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 36px;
}

.auth-screen:not([hidden]):has(.web-seo-landing) > .auth-shell {
  min-block-size: min(86dvh, 760px);
  align-content: center;
}

.web-seo-deferred {
  content-visibility: auto;
  contain-intrinsic-size: auto none auto 780px;
}

.web-seo-landing,
.seo-page-shell {
  --seo-link: #f9a8d4;
  --seo-link-hover: #fdf2f8;
  --seo-sticky-surface: #151026;
  --seo-card-surface: rgba(20, 15, 38, 0.86);
  width: 100%;
  max-inline-size: 1040px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: var(--text-main);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .web-seo-landing,
  :root:not([data-theme="dark"]) .seo-page-shell {
    --seo-link: #9d174d;
    --seo-link-hover: #701a75;
    --seo-sticky-surface: #eef1fb;
    --seo-card-surface: rgba(255, 255, 255, 0.94);
  }
}

:root[data-theme="light"] .web-seo-landing,
:root[data-theme="light"] .seo-page-shell {
  --seo-link: #9d174d;
  --seo-link-hover: #701a75;
  --seo-sticky-surface: #eef1fb;
  --seo-card-surface: rgba(255, 255, 255, 0.94);
}

.seo-public-body {
  min-block-size: 100dvh;
  background-color: var(--bg-page);
  color: var(--text-main);
}

.seo-page-shell {
  padding: 20px calc(16px + var(--sar, 0px)) calc(48px + var(--sab, 0px)) calc(16px + var(--sal, 0px));
}

.seo-site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 30;
  background: var(--seo-sticky-surface);
  border-block-end: 1px solid var(--border-specular);
  padding: calc(8px + var(--sat, 0px)) calc(16px + var(--sar, 0px)) 8px calc(16px + var(--sal, 0px));
}

.seo-header-inner {
  max-inline-size: 1040px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.seo-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text-main);
  text-decoration: none;
  font-family: 'LvelsDisplay', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
}

.seo-brand-link img {
  border-radius: 9px;
  flex-shrink: 0;
}

.seo-site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.seo-site-nav a,
.web-seo-inline-nav a {
  display: inline-flex;
  align-items: center;
  min-block-size: 36px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  border: 1px solid transparent;
}

.seo-site-nav a:hover,
.web-seo-inline-nav a:hover {
  border-color: var(--border-specular);
  background: rgba(236, 72, 153, 0.12);
}

.seo-site-nav a[aria-current="page"] {
  border: 2px solid #ec4899;
  background: rgba(236, 72, 153, 0.18);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.seo-header-ctas {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.seo-btn-sm {
  padding: 7px 13px;
  font-size: 0.83rem;
  text-decoration: none;
}

.web-seo-inline-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 14px;
  background: var(--seo-card-surface);
  border: 1px solid var(--border-specular);
  border-radius: 18px;
}

.seo-breadcrumb > ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.seo-breadcrumb > ol > li + li::before {
  content: "›" / "";
  margin-inline-end: 6px;
  color: var(--text-muted);
}

.seo-breadcrumb a {
  color: var(--seo-link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.seo-breadcrumb a[aria-current="page"] {
  color: var(--text-main);
  font-weight: 700;
  text-decoration: none;
}

@media (forced-colors: active) {
  .seo-breadcrumb a[aria-current="page"] {
    text-decoration: underline;
  }
}

.seo-ai-bridge {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border-specular);
  background: rgba(255, 255, 255, 0.03);
}

.seo-ai-bridge-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.copy {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.copy-button {
  min-inline-size: 28px;
  min-block-size: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-specular);
  background: var(--glass-bg-strong);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.copy-button[data-copied] {
  border-color: #10b981;
}

.copy-button[data-failed] {
  border-color: #ef4444;
}

.copy-button .copy-icon::before {
  content: "📋";
}

.copy-button[data-copied] .copy-icon::before {
  content: "✓";
}

.copy-tip {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--glass-bg-strong);
  border: 1px solid var(--border-specular);
  color: var(--text-main);
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms ease;
}

.copy-button[data-copied] + .copy-tip,
.copy-button[data-failed] + .copy-tip {
  opacity: 1;
}

.seo-code-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.seo-code-wrap pre {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-specular);
  background: rgba(8, 5, 18, 0.78);
  color: #f9f7ff;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.8rem;
  line-height: 1.5;
  overflow-x: auto;
}

.seo-hero-card,
.seo-editorial-card {
  background: var(--seo-card-surface);
  border: 1px solid var(--border-specular);
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--glass-shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.seo-hero-card h1,
.seo-editorial-card h2,
.seo-editorial-card h3 {
  font-family: 'LvelsDisplay', system-ui, sans-serif;
  letter-spacing: -0.02em;
  color: var(--text-main);
  line-height: 1.25;
}

.seo-hero-card h1 {
  font-size: clamp(1.45rem, 3.2vw, 2rem);
}

.seo-editorial-card h2 {
  font-size: clamp(1.15rem, 2.3vw, 1.4rem);
}

.seo-editorial-card h3 {
  font-size: 1.04rem;
  margin-block-start: 6px;
}

.seo-freshness-tag {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.seo-answer-block,
.seo-editorial-card p,
.seo-steps-list li,
.seo-feature-list li {
  font-size: 0.95rem;
  line-height: 1.62;
  color: var(--text-main);
}

.seo-steps-list,
.seo-feature-list {
  padding-inline-start: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.seo-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-block-start: 4px;
}

.seo-cta-row a {
  text-decoration: none;
}

/* Responsive Semantic Table (modern-web-guidance: responsive-table) */
.seo-table-wrapper {
  overflow: auto;
  max-inline-size: 100%;
  max-block-size: min(560px, 80dvh);
  container-type: inline-size;
  border: 1px solid var(--border-specular);
  border-radius: 16px;
}

.seo-cmp-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9rem;
}

.seo-cmp-table caption {
  text-align: start;
  padding: 12px 14px;
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--text-muted);
  background: var(--seo-sticky-surface);
  border-block-end: 1px solid var(--border-specular);
}

.seo-cmp-table thead {
  position: sticky;
  inset-block-start: 0;
  z-index: 2;
}

.seo-cmp-table th,
.seo-cmp-table td {
  padding: 11px 14px;
  text-align: start;
  border-block-end: 1px solid var(--border-specular);
  vertical-align: top;
}

.seo-cmp-table thead th {
  background: var(--seo-sticky-surface);
  color: var(--text-main);
  font-weight: 700;
}

.seo-cmp-table tbody th {
  position: sticky;
  inset-inline-start: 0;
  z-index: 1;
  background: var(--seo-sticky-surface);
  color: var(--text-main);
  font-weight: 600;
}

@container (width < 600px) {
  .seo-cmp-table,
  .seo-cmp-table thead,
  .seo-cmp-table tbody,
  .seo-cmp-table tr,
  .seo-cmp-table th,
  .seo-cmp-table td {
    display: block;
  }

  .seo-cmp-table thead {
    display: none;
  }

  .seo-cmp-table tr {
    margin: 10px;
    border: 1px solid var(--border-specular);
    border-radius: 12px;
    overflow: hidden;
  }

  .seo-cmp-table tbody th {
    position: sticky;
    inset-block-start: 0;
    z-index: 2;
    background: var(--seo-sticky-surface);
  }

  .seo-cmp-table td:nth-child(2)::before {
    content: var(--label-2) ": ";
    font-weight: 700;
  }

  .seo-cmp-table td:nth-child(3)::before {
    content: var(--label-3) ": ";
    font-weight: 700;
  }

  .seo-cmp-table td:nth-child(4)::before {
    content: var(--label-4) ": ";
    font-weight: 700;
  }
}

/* Hub Cards & City Pills */
.seo-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 12px;
}

.seo-mini-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--border-specular);
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  color: var(--text-main);
}

.seo-mini-card strong {
  color: var(--seo-link);
  font-size: 0.96rem;
}

.seo-mini-card span {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.seo-mini-card:hover {
  border-color: #ec4899;
}

.seo-city-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block-start: 4px;
}

.seo-city-pill {
  display: inline-flex;
  align-items: center;
  min-block-size: 36px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--border-specular);
  color: var(--text-main);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
}

.seo-city-pill:hover {
  border-color: #ec4899;
}

/* Accessible FAQ Accordion (modern-web-guidance: accordion) */
.seo-faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.seo-faq-item {
  border: 1px solid var(--border-specular);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  padding: 0 14px;
}

.seo-faq-item > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.65ch;
  padding-block: 13px;
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--text-main);
  cursor: pointer;
}

.seo-faq-item > summary::-webkit-details-marker {
  display: none;
}

.seo-faq-item > summary::before {
  content: "";
  inline-size: 0.95em;
  block-size: 0.95em;
  flex-shrink: 0;
  background-color: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='black'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E") no-repeat center / contain;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='black'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E") no-repeat center / contain;
  rotate: -90deg;
}

.seo-faq-item[open] > summary::before {
  rotate: 0deg;
}

.seo-faq-answer {
  padding-block: 0 14px;
}

.seo-faq-item::details-content {
  interpolate-size: allow-keywords;
  overflow: clip;
  contain: layout;
}

.seo-faq-item:not([open])::details-content {
  block-size: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .seo-faq-item > summary::before {
    transition: rotate 0.2s ease;
  }

  .seo-faq-item::details-content {
    transition: block-size 0.25s ease-in-out, content-visibility 0.25s ease-in-out, display 0.25s ease-in-out;
    transition-behavior: allow-discrete;
  }
}

/* Public Footer */
.web-seo-footer {
  background: var(--seo-card-surface);
  border: 1px solid var(--border-specular);
  border-radius: 22px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.web-seo-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 18px;
}

.web-seo-footer-heading {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  margin-block-end: 8px;
}

.web-seo-footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.84rem;
}

.web-seo-footer a,
.seo-editorial-card a:not(.primary-btn):not(.secondary-btn):not(.seo-mini-card):not(.seo-city-pill) {
  color: var(--seo-link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.web-seo-footer a:hover,
.seo-editorial-card a:not(.primary-btn):not(.secondary-btn):not(.seo-mini-card):not(.seo-city-pill):hover {
  color: var(--seo-link-hover);
}

.web-seo-footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  border-block-start: 1px solid var(--border-specular);
  padding-block-start: 14px;
}

@media (max-width: 640px) {
  .seo-hero-card,
  .seo-editorial-card,
  .web-seo-footer {
    padding: 16px;
    border-radius: 18px;
  }
}

/* ================= ACCOUNT SESSION, PAUSE & 50 DIAMONDS RETENTION DIALOG ================= */
dialog:modal {
  overscroll-behavior: contain;
}

dialog::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
}

.paused-account-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-block: 10px 8px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.48);
  color: var(--text-main);
}

.paused-account-banner-text {
  font-size: 0.85rem;
  line-height: 1.45;
  flex: 1 1 210px;
  min-width: 0;
  color: var(--text-main);
}

.paused-resume-btn {
  flex-shrink: 0;
  font-size: 0.84rem;
  padding: 8px 14px;
}

.account-actions-card {
  margin-block-start: 16px;
  border: 1px solid var(--border-specular);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.account-actions-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.account-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 10px;
}

.account-actions-grid button {
  width: 100%;
  justify-content: center;
  min-block-size: 44px;
}

.account-pause-btn.is-paused {
  border-color: rgba(52, 211, 153, 0.65);
  background: rgba(16, 185, 129, 0.16);
  color: var(--text-main);
}

.retention-delete-dialog .dialog-card {
  max-inline-size: 480px;
}

.retention-offer-box {
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(236, 72, 153, 0.14), rgba(139, 92, 246, 0.16));
  border: 1px solid rgba(236, 72, 153, 0.42);
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-block: 8px 12px;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .retention-offer-box {
    background: linear-gradient(145deg, rgba(253, 242, 248, 0.96), rgba(245, 243, 255, 0.96));
    border-color: rgba(190, 24, 93, 0.35);
  }
  :root:not([data-theme="dark"]) .paused-account-banner {
    background: rgba(254, 243, 199, 0.92);
    border-color: rgba(180, 83, 9, 0.42);
  }
}

:root[data-theme="light"] .retention-offer-box {
  background: linear-gradient(145deg, rgba(253, 242, 248, 0.96), rgba(245, 243, 255, 0.96));
  border-color: rgba(190, 24, 93, 0.35);
}

:root[data-theme="light"] .paused-account-banner {
  background: rgba(254, 243, 199, 0.92);
  border-color: rgba(180, 83, 9, 0.42);
}

.retention-offer-desc {
  margin: 0;
  color: var(--text-main);
  font-size: 0.9rem;
  line-height: 1.5;
}

.retention-status-note {
  margin: 0;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.retention-claim-btn {
  width: 100%;
  justify-content: center;
  min-block-size: 46px;
  font-weight: 700;
}

.retention-secondary-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.retention-secondary-stack button {
  width: 100%;
  justify-content: center;
  min-block-size: 44px;
}

.final-delete-confirm-box {
  margin-block-start: 12px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(225, 29, 72, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.5);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .final-delete-confirm-box {
    background: rgba(255, 241, 242, 0.96);
    border-color: rgba(190, 18, 60, 0.45);
  }
}

:root[data-theme="light"] .final-delete-confirm-box {
  background: rgba(255, 241, 242, 0.96);
  border-color: rgba(190, 18, 60, 0.45);
}

.final-delete-warn {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--text-main);
  font-weight: 600;
}

.final-delete-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.final-delete-actions button {
  flex: 1 1 160px;
  justify-content: center;
  min-block-size: 44px;
}

.admin-retention-card {
  margin-block-end: 14px;
  border: 1px solid rgba(236, 72, 153, 0.38);
}

.admin-retention-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-retention-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.admin-retention-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 220px;
}

.admin-retention-meta img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.admin-retention-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ================= EXPRESS 2-STEP ONBOARDING, EXPLORER BANNER & QUICK PHOTO UNLOCK ================= */
.missing-photo-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  max-inline-size: 1060px;
  width: calc(100% - 24px);
  margin: 8px auto 4px;
  padding: 10px 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.16), rgba(139, 92, 246, 0.16));
  border: 1px solid rgba(236, 72, 153, 0.42);
  color: var(--text-main);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .missing-photo-banner {
    background: linear-gradient(135deg, rgba(253, 242, 248, 0.96), rgba(245, 243, 255, 0.96));
    border-color: rgba(190, 24, 93, 0.35);
  }
}

:root[data-theme="light"] .missing-photo-banner {
  background: linear-gradient(135deg, rgba(253, 242, 248, 0.96), rgba(245, 243, 255, 0.96));
  border-color: rgba(190, 24, 93, 0.35);
}

.missing-photo-banner-text {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.42;
  flex: 1 1 220px;
  min-width: 0;
  color: var(--text-main);
}

.photo-gate-cta-btn {
  flex-shrink: 0;
  padding: 8px 14px;
  font-size: 0.83rem;
  min-block-size: 40px;
}

.email-verify-banner {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.16), rgba(139, 92, 246, 0.16));
  border-color: rgba(56, 189, 248, 0.48);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .email-verify-banner {
    background: linear-gradient(135deg, rgba(224, 242, 254, 0.96), rgba(245, 243, 255, 0.96));
    border-color: rgba(2, 132, 199, 0.38);
  }
}

:root[data-theme="light"] .email-verify-banner {
  background: linear-gradient(135deg, rgba(224, 242, 254, 0.96), rgba(245, 243, 255, 0.96));
  border-color: rgba(2, 132, 199, 0.38);
}

.field-hint {
  margin: 4px 0 8px;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.otp-single-input {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-align: center;
  min-block-size: 48px;
  padding: 0.5rem 0.75rem;
  box-sizing: border-box;
}

.onb-optional-details {
  margin-block-top: 8px;
}

.onb-skip-explore-wrap {
  margin-block-start: 12px;
  padding-block-start: 10px;
  border-block-start: 1px solid var(--border-subtle);
}

.onb-skip-photo-btn {
  min-block-size: 44px;
  justify-content: center;
}

.quick-photo-unlock-dialog .dialog-card {
  max-inline-size: 440px;
}

.quick-photo-actions-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-block-start: 12px;
}

.quick-photo-actions-stack > label,
.quick-photo-actions-stack > button {
  width: 100%;
  justify-content: center;
  min-block-size: 46px;
}

/* ============================================================================
   v44 — Unified iOS 26 3D Refractive Liquid Glass Segmented Rails
   (Mensajes Inbox, Radar Status & Country, Mi Perfil Tabs, Idioma, Tema, Auth & Admin)
   ============================================================================ */
.lg-rail-scroll {
  display: flex;
  align-items: center;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.lg-rail-scroll::-webkit-scrollbar {
  display: none;
}

.lg-segmented-rail {
  --lg-pill-fill: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.38) 0%,
    rgba(255, 255, 255, 0.08) 45%,
    rgba(168, 85, 247, 0.17) 82%,
    rgba(255, 255, 255, 0.25) 100%
  );
  --lg-pill-border: rgba(255, 255, 255, 0.44);
  --lg-pill-shadow:
    0 8px 20px rgba(0, 0, 0, 0.42),
    0 2px 5px rgba(0, 0, 0, 0.25),
    inset 0 2px 2px rgba(255, 255, 255, 0.78),
    inset 0 -2px 4px rgba(236, 72, 153, 0.28),
    inset 2px 0 4px rgba(56, 189, 248, 0.26),
    inset -2px 0 4px rgba(168, 85, 247, 0.26);
  --lg-pill-shadow-active:
    0 12px 24px rgba(0, 0, 0, 0.52),
    0 0 16px rgba(236, 72, 153, 0.24),
    inset 0 2.5px 2.5px rgba(255, 255, 255, 0.92),
    inset 0 -2.5px 5px rgba(236, 72, 153, 0.36),
    inset 2.5px 0 5px rgba(56, 189, 248, 0.34),
    inset -2.5px 0 5px rgba(168, 85, 247, 0.34);
  --lg-dome-sheen: linear-gradient(180deg, rgba(255, 255, 255, 0.56) 0%, rgba(255, 255, 255, 0.08) 65%, rgba(255, 255, 255, 0) 100%);
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius-pill);
  background: var(--glass-bg);
  background-clip: padding-box;
  border: 1px solid var(--border-specular);
  box-shadow: var(--glass-highlight);
  overflow: clip;
  isolation: isolate;
  flex-shrink: 0;
  box-sizing: border-box;
  touch-action: pan-y;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.lg-segmented-rail * {
  touch-action: pan-y;
  -webkit-touch-callout: none;
}

:root:has(> head > meta[name="color-scheme"][content="light"]) .lg-segmented-rail,
:root[data-theme="light"]:not(:has(> head > meta[name="color-scheme"][content="dark"])) .lg-segmented-rail {
  --lg-pill-fill: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.96) 0%,
    rgba(255, 255, 255, 0.34) 44%,
    rgba(232, 238, 255, 0.56) 80%,
    rgba(255, 255, 255, 0.90) 100%
  );
  --lg-pill-border: rgba(255, 255, 255, 0.98);
  --lg-pill-shadow:
    0 6px 16px rgba(36, 22, 84, 0.14),
    0 2px 4px rgba(36, 22, 84, 0.08),
    0 0 0 1px rgba(88, 64, 158, 0.16),
    inset 0 2.5px 1.5px rgba(255, 255, 255, 1),
    inset 0 -2.5px 4px rgba(124, 58, 237, 0.16),
    inset 2.5px 0 4px rgba(14, 165, 233, 0.20),
    inset -2.5px 0 4px rgba(236, 72, 153, 0.22);
  --lg-pill-shadow-active:
    0 10px 22px rgba(36, 22, 84, 0.22),
    0 3px 6px rgba(36, 22, 84, 0.12),
    0 0 0 1px rgba(124, 58, 237, 0.26),
    inset 0 3px 2px rgba(255, 255, 255, 1),
    inset 0 -3px 5px rgba(124, 58, 237, 0.22),
    inset 3px 0 5px rgba(14, 165, 233, 0.28),
    inset -3px 0 5px rgba(236, 72, 153, 0.30);
  --lg-dome-sheen: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.25) 62%, rgba(255, 255, 255, 0) 100%);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]):not(:has(> head > meta[name="color-scheme"][content="dark"])) .lg-segmented-rail {
    --lg-pill-fill: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.96) 0%,
      rgba(255, 255, 255, 0.34) 44%,
      rgba(232, 238, 255, 0.56) 80%,
      rgba(255, 255, 255, 0.90) 100%
    );
    --lg-pill-border: rgba(255, 255, 255, 0.98);
    --lg-pill-shadow:
      0 6px 16px rgba(36, 22, 84, 0.14),
      0 2px 4px rgba(36, 22, 84, 0.08),
      0 0 0 1px rgba(88, 64, 158, 0.16),
      inset 0 2.5px 1.5px rgba(255, 255, 255, 1),
      inset 0 -2.5px 4px rgba(124, 58, 237, 0.16),
      inset 2.5px 0 4px rgba(14, 165, 233, 0.20),
      inset -2.5px 0 4px rgba(236, 72, 153, 0.22);
    --lg-pill-shadow-active:
      0 10px 22px rgba(36, 22, 84, 0.22),
      0 3px 6px rgba(36, 22, 84, 0.12),
      0 0 0 1px rgba(124, 58, 237, 0.26),
      inset 0 3px 2px rgba(255, 255, 255, 1),
      inset 0 -3px 5px rgba(124, 58, 237, 0.22),
      inset 3px 0 5px rgba(14, 165, 233, 0.28),
      inset -3px 0 5px rgba(236, 72, 153, 0.30);
    --lg-dome-sheen: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.25) 62%, rgba(255, 255, 255, 0) 100%);
  }
}

.lg-segmented-indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--lg-pill-w, 0px);
  height: var(--lg-pill-h, 0px);
  border-radius: 999px;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  overflow: hidden;
  background: var(--lg-pill-fill);
  border: 1px solid var(--lg-pill-border);
  box-shadow: var(--lg-pill-shadow);
  transform: translate3d(var(--lg-pill-x, 0px), var(--lg-pill-y, 0px), 0) scale(var(--lg-pill-scale-x, 1), var(--lg-pill-scale-y, 1));
  transform-origin: center center;
  will-change: transform, width;
}

.lg-segmented-indicator[data-tone="emerald"] {
  border-color: rgba(110, 231, 183, 0.56);
}

:root:has(> head > meta[name="color-scheme"][content="light"]) .lg-segmented-indicator[data-tone="emerald"],
:root[data-theme="light"]:not(:has(> head > meta[name="color-scheme"][content="dark"])) .lg-segmented-indicator[data-tone="emerald"] {
  border-color: rgba(255, 255, 255, 0.98);
}

.lg-segmented-indicator::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 12%;
  right: 12%;
  height: 44%;
  border-radius: 999px;
  background: var(--lg-dome-sheen);
  pointer-events: none;
}

.lg-segmented-indicator::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    118deg,
    rgba(255, 255, 255, 0) 24%,
    rgba(255, 255, 255, 0.38) 46%,
    rgba(56, 189, 248, 0.14) 54%,
    rgba(255, 255, 255, 0) 74%
  );
  opacity: 0.55;
  pointer-events: none;
}

.lg-segmented-rail.has-glass-ready:not(.has-no-active) > .lg-segmented-indicator,
.lg-segmented-rail.is-scrubbing > .lg-segmented-indicator {
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .lg-segmented-rail.has-glass-ready:not(.is-instant):not(.is-scrubbing) > .lg-segmented-indicator {
    transition:
      transform 340ms var(--spring-bouncy),
      width 280ms var(--spring-snappy),
      height 220ms ease,
      opacity 180ms ease,
      box-shadow 220ms ease;
  }

  .lg-segmented-rail.is-pressing > .lg-segmented-indicator,
  .lg-segmented-rail.is-scrubbing > .lg-segmented-indicator {
    --lg-pill-scale-x: var(--lg-pill-dyn-sx, 1.08);
    --lg-pill-scale-y: var(--lg-pill-dyn-sy, 1.05);
    box-shadow: var(--lg-pill-shadow-active);
  }

  .lg-segmented-rail.is-pressing > .lg-segmented-indicator::after,
  .lg-segmented-rail.is-scrubbing > .lg-segmented-indicator::after {
    opacity: 0.9;
  }

  .lg-segmented-rail.is-scrubbing > .lg-segmented-indicator {
    transition:
      width 110ms ease-out,
      opacity 120ms ease,
      box-shadow 140ms ease;
  }
}

/* Container-specific layout refinements */
.auth-tabs.lg-segmented-rail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  padding: 4px;
  gap: 4px;
  margin-bottom: 16px;
}

.radar-filter-scroll {
  max-width: 100%;
}

.chat-inbox-rail-wrap {
  width: 100%;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--glass-bar-bg);
  flex-shrink: 0;
  box-sizing: border-box;
}

.chat-inbox-tabs.lg-segmented-rail {
  min-width: 100%;
  padding: 4px;
  gap: 3px;
  border-bottom: 1px solid var(--border-specular);
  background: var(--glass-bg);
}

.chat-inbox-tabs.lg-segmented-rail > .chat-inbox-tab:not([hidden]) {
  flex: 1 0 auto;
}

.profile-subtabs-scroll {
  width: 100%;
  margin-bottom: 16px;
}

.profile-subtabs.lg-segmented-rail {
  display: inline-flex;
  grid-template-columns: none;
  min-width: 100%;
  padding: 5px;
  gap: 4px;
  margin-bottom: 0;
  border-radius: var(--radius-pill);
}

.profile-subtabs.lg-segmented-rail > .profile-subtab-btn:not([hidden]) {
  flex: 1 0 auto;
  justify-content: center;
  overflow: visible;
  text-overflow: clip;
}

.lang-settings-group.lg-segmented-rail,
.theme-settings-group.lg-segmented-rail {
  padding: 4px;
  gap: 4px;
}

.admin-tablist-scroll {
  width: 100%;
  margin-bottom: 16px;
}

.admin-tablist.lg-segmented-rail {
  min-width: 100%;
  padding: 5px;
  gap: 4px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--border-specular);
}

.admin-tablist.lg-segmented-rail > .admin-sec-tab:not([hidden]) {
  flex: 1 0 auto;
  justify-content: center;
  border-radius: var(--radius-pill);
  padding: 8px 13px;
  min-height: max(38px, var(--target-size));
}

.admin-subfilter-scroll {
  width: 100%;
  margin-bottom: 14px;
}

.admin-subfilter-pills.lg-segmented-rail {
  padding: 4px;
  gap: 4px;
  margin-bottom: 0;
}

/* Segmented items inside .lg-segmented-rail */
.lg-segmented-rail > button:not([hidden]) {
  position: relative;
  z-index: 1;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  -webkit-tap-highlight-color: transparent;
}

.lg-segmented-rail > button:focus-visible {
  outline-offset: -2px;
}

.lg-segmented-rail.has-glass-ready > button,
.lg-segmented-rail.has-glass-ready > button.active {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.lg-segmented-rail:not(.is-scrubbing) > button.active,
.lg-segmented-rail:not(.is-scrubbing) > button[aria-selected="true"],
.lg-segmented-rail.is-scrubbing > button.is-glide-target {
  color: var(--pill-purple-fg);
}

.lg-segmented-rail:not(.is-scrubbing) > button[data-filter="online"].active,
.lg-segmented-rail:not(.is-scrubbing) > button[data-filter="verified"].active,
.lg-segmented-rail:not(.is-scrubbing) > button[data-chat-filter="accepted"].active,
.lg-segmented-rail:not(.is-scrubbing) > button[data-alert-cat="resolved"].active,
.lg-segmented-rail:not(.is-scrubbing) > button[data-verif-status="reviewed"].active,
.lg-segmented-rail.is-scrubbing > button[data-filter="online"].is-glide-target,
.lg-segmented-rail.is-scrubbing > button[data-filter="verified"].is-glide-target,
.lg-segmented-rail.is-scrubbing > button[data-chat-filter="accepted"].is-glide-target,
.lg-segmented-rail.is-scrubbing > button[data-alert-cat="resolved"].is-glide-target,
.lg-segmented-rail.is-scrubbing > button[data-verif-status="reviewed"].is-glide-target {
  color: var(--accent-emerald-fg);
}

@media (forced-colors: active) {
  .lg-segmented-rail > button[aria-selected="true"],
  .lg-segmented-rail > button[aria-pressed="true"] {
    outline: 2px solid Highlight;
    outline-offset: -2px;
  }
}

/* ============================================================================
   v45 — Floating Rounded Liquid Glass Top Header + Clear Action Labels
   + Transient 3D Optical Magnifier ("Efecto Lupa") on Toolbars & Radar KM Rail
   ============================================================================ */
.app-header {
  margin: max(8px, var(--sat)) max(12px, var(--sar)) 4px max(12px, var(--sal));
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-specular);
  background: var(--glass-bg-strong);
  background-clip: padding-box;
  box-shadow: var(--header-shadow);
  top: max(6px, var(--sat));
  overflow: clip;
  isolation: isolate;
}

.announcement-bar:not([hidden]) ~ .app-header,
.offline-banner:not([hidden]) ~ .app-header {
  margin-top: 6px;
  padding-top: 6px;
}

::view-transition-group(app-header),
::view-transition-image-pair(app-header),
::view-transition-old(app-header),
::view-transition-new(app-header) {
  border-radius: 26px;
  overflow: clip;
  box-shadow: none;
}

/* Full-bleed straight horizontal Liquid Glass diversity strip (flush & even on both left and right edges,
   while the inner 3D magnifying droplet #diversityGlassIndicator stays a rounded 999px pill) */
.gender-bar {
  margin-top: 2px;
  padding: 0;
  gap: 0;
  width: 100%;
  border-radius: 0;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--blur-chrome)) saturate(155%);
  backdrop-filter: blur(var(--blur-chrome)) saturate(155%);
  border-top: 1px solid var(--border-specular);
  border-bottom: 1px solid var(--border-specular);
  border-left: none;
  border-right: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}

.gender-bar > .gender-bar-label {
  padding-left: calc(16px + var(--sal));
  padding-right: 6px;
}

.gender-bar > .gender-chips {
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
  padding: 5px calc(12px + var(--sar)) 5px calc(12px + var(--sal));
}

@media (min-width: 601px) {
  .gender-bar > .gender-chips {
    padding-left: 6px;
  }
}

/* Logo-only on phones & compact tablets so "Lvels Lo..." is never truncated;
   frees space so Plus & Filtros always display crystal-clear text labels */
.brand-logo {
  flex: 0 0 auto;
}

.brand-logo-img {
  border-radius: 11px;
  box-shadow: 0 2px 10px rgba(219, 39, 119, 0.28);
}

@media (max-width: 899px) {
  .brand-logo-text {
    display: none;
  }
}

@media (max-width: 760px) {
  #dailyQuotaPill,
  #stealthModeBadge {
    display: none;
  }
}

/* Hide redundant header crown since Admin (with badge) already lives in .bottom-nav */
.header-admin-btn {
  display: none !important;
}

/* Always keep Plus and Filtros labels visible and readable (zero guessing) */
.header-actions .btn-label-compact {
  display: inline !important;
}

.header-actions .vip-header-btn,
.header-actions #openFilterBtn {
  width: auto;
  min-width: 0;
  padding: 0 11px;
  gap: 5px;
}

.header-filter-btn svg {
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .app-header {
    width: min(calc(100% - 36px), 1240px);
    margin-inline: auto;
  }
}

@media (max-width: 600px) {
  .app-header {
    margin: max(6px, var(--sat)) max(8px, var(--sar)) 3px max(8px, var(--sal));
    padding: 5px 8px;
    border-radius: 26px;
    gap: 6px;
    --header-ctrl-h: 36px;
  }

  .header-actions {
    gap: 5px;
  }

  .header-actions :where(.diamonds-header-btn, .vip-header-btn, #openFilterBtn) {
    padding: 0 10px;
    font-size: 0.75rem;
    gap: 4px;
  }

  #themeToggleBtn {
    width: 36px;
    min-width: 36px;
    padding: 0;
  }
}

@media (max-width: 375px) {
  .app-header {
    margin-inline: max(4px, var(--sal));
    padding: 4px 6px;
    border-radius: 22px;
    gap: 4px;
    --header-ctrl-h: 34px;
  }

  .brand-heart,
  .brand-logo-img {
    width: 30px;
    height: 30px;
    border-radius: 9px;
  }

  .header-actions {
    gap: 3px;
  }

  .header-actions :where(.diamonds-header-btn, .vip-header-btn, #openFilterBtn) {
    padding: 0 7px;
    font-size: 0.7rem;
    gap: 3px;
  }

  #themeToggleBtn {
    width: 32px;
    min-width: 32px;
    font-size: 0.76rem;
  }
}

.radar-km-presets-scroll {
  width: 100%;
  margin-top: 2px;
}

/* Transient 3D Optical Magnifying Droplet ("Efecto Lupa") for Action Toolbars */
.lg-transient-rail {
  position: relative;
  touch-action: pan-y;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.lg-transient-rail * {
  touch-action: pan-y;
  -webkit-touch-callout: none;
}

.chat-tools-track.lg-transient-rail {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  flex-shrink: 0;
}

.lg-transient-rail > .lg-segmented-indicator.lg-transient-lens {
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.36) 0%,
    rgba(255, 255, 255, 0.04) 44%,
    rgba(56, 189, 248, 0.09) 78%,
    rgba(255, 255, 255, 0.24) 100%
  );
  border: 1.25px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.44),
    0 0 16px rgba(236, 72, 153, 0.26),
    inset 0 2.5px 2px rgba(255, 255, 255, 0.94),
    inset 0 -2px 4px rgba(236, 72, 153, 0.34),
    inset 2.5px 0 4px rgba(56, 189, 248, 0.34),
    inset -2.5px 0 4px rgba(168, 85, 247, 0.34);
}

:root:has(> head > meta[name="color-scheme"][content="light"]) .lg-transient-rail > .lg-segmented-indicator.lg-transient-lens,
:root[data-theme="light"]:not(:has(> head > meta[name="color-scheme"][content="dark"])) .lg-transient-rail > .lg-segmented-indicator.lg-transient-lens {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.72) 0%,
    rgba(255, 255, 255, 0.08) 46%,
    rgba(124, 58, 237, 0.07) 80%,
    rgba(255, 255, 255, 0.58) 100%
  );
  border-color: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 8px 20px rgba(36, 22, 84, 0.22),
    0 0 0 1px rgba(124, 58, 237, 0.26),
    inset 0 2.5px 2px rgba(255, 255, 255, 1),
    inset 0 -2px 4px rgba(124, 58, 237, 0.20),
    inset 2.5px 0 4px rgba(14, 165, 233, 0.26),
    inset -2.5px 0 4px rgba(236, 72, 153, 0.28);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]):not(:has(> head > meta[name="color-scheme"][content="dark"])) .lg-transient-rail > .lg-segmented-indicator.lg-transient-lens {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.72) 0%,
      rgba(255, 255, 255, 0.08) 46%,
      rgba(124, 58, 237, 0.07) 80%,
      rgba(255, 255, 255, 0.58) 100%
    );
    border-color: rgba(255, 255, 255, 0.98);
    box-shadow:
      0 8px 20px rgba(36, 22, 84, 0.22),
      0 0 0 1px rgba(124, 58, 237, 0.26),
      inset 0 2.5px 2px rgba(255, 255, 255, 1),
      inset 0 -2px 4px rgba(124, 58, 237, 0.20),
      inset 2.5px 0 4px rgba(14, 165, 233, 0.26),
      inset -2.5px 0 4px rgba(236, 72, 153, 0.28);
  }
}

.lg-transient-rail.is-pressing > .lg-segmented-indicator.lg-transient-lens,
.lg-transient-rail.is-scrubbing > .lg-segmented-indicator.lg-transient-lens {
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .lg-transient-rail > .lg-segmented-indicator.lg-transient-lens {
    transition:
      opacity 180ms ease,
      width 120ms ease-out,
      height 140ms ease;
  }

  .lg-transient-rail.is-pressing > .lg-segmented-indicator.lg-transient-lens,
  .lg-transient-rail.is-scrubbing > .lg-segmented-indicator.lg-transient-lens {
    --lg-pill-scale-x: var(--lg-pill-dyn-sx, 1.07);
    --lg-pill-scale-y: var(--lg-pill-dyn-sy, 1.09);
  }

  .lg-transient-rail.is-scrubbing > button.is-glide-target {
    transform: scale(1.035);
    z-index: 2;
  }
}

/* ============================================================================
   Daily 7-Day Streak Check-In Modal (Facebook Parejas × 3D Liquid Glass)
   ============================================================================ */
.streak-trigger-pill {
  position: relative;
  border-color: rgba(251, 146, 60, 0.42);
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.16), rgba(168, 85, 247, 0.16));
  font-weight: 700;
}

.streak-trigger-pill.has-unclaimed::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #fb923c;
  box-shadow: 0 0 8px rgba(251, 146, 60, 0.9);
  display: inline-block;
  margin-left: 5px;
  vertical-align: middle;
}

#dailyStreakDialog {
  max-width: min(440px, calc(100vw - 20px));
  width: 100%;
}

.daily-streak-card {
  position: relative;
  overflow: clip;
  background-clip: padding-box;
  isolation: isolate;
  padding: 20px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(139, 92, 246, 0.26) 0%, rgba(236, 72, 153, 0.10) 48%, transparent 80%),
    var(--bg-elevated, #151226);
}

.streak-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
}

.streak-hero-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 2px 28px 0;
}

.streak-hero-badge {
  width: 60px;
  height: 60px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(115% 95% at 50% 10%, rgba(255, 255, 255, 0.52) 0%, rgba(255, 255, 255, 0.08) 38%, transparent 66%),
    linear-gradient(145deg, rgba(249, 115, 22, 0.36), rgba(139, 92, 246, 0.44));
  border: 1.5px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    0 10px 26px rgba(139, 92, 246, 0.34),
    inset 0 2.5px 2px rgba(255, 255, 255, 0.88),
    inset 0 -3px 6px rgba(236, 72, 153, 0.32),
    inset 2px 0 4px rgba(56, 189, 248, 0.30);
}

.streak-hero-badge.is-grand {
  background:
    radial-gradient(115% 95% at 50% 10%, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0.12) 40%, transparent 68%),
    linear-gradient(145deg, rgba(250, 204, 21, 0.52), rgba(245, 158, 11, 0.44), rgba(168, 85, 247, 0.42));
  border-color: rgba(254, 240, 138, 0.92);
  box-shadow:
    0 12px 30px rgba(245, 158, 11, 0.38),
    inset 0 2.5px 2px rgba(255, 255, 255, 0.95),
    inset 0 -3px 6px rgba(217, 119, 6, 0.36);
}

.streak-hero-icon {
  font-size: 1.85rem;
  line-height: 1;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.28));
}

.streak-total-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 800;
  background: rgba(251, 146, 60, 0.18);
  border: 1px solid rgba(251, 146, 60, 0.45);
  color: #fed7aa;
}

.streak-dialog-title {
  font-size: 1.22rem;
  line-height: 1.2;
  margin: 2px 0 0;
}

.streak-dialog-sub {
  font-size: 0.82rem;
  line-height: 1.38;
  margin: 0;
  max-width: 36ch;
}

.streak-progress-box {
  border-radius: 18px;
  padding: 11px 13px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.16);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.streak-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.streak-step-label {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-primary, #f8fafc);
}

.streak-countdown-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.22);
  border: 1px solid rgba(196, 181, 253, 0.35);
  color: #e9d5ff;
}

.streak-progress-bar {
  height: 10px;
}

.streak-remaining-copy {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--text-secondary, #cbd5e1);
}

.streak-remaining-copy strong {
  color: var(--text-primary, #ffffff);
}

.streak-context-notice {
  font-size: 0.76rem;
  line-height: 1.35;
  padding: 7px 11px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #bae6fd;
  text-align: center;
}

.streak-days-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.streak-day-card {
  position: relative;
  border-radius: 16px;
  padding: 9px 7px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  text-align: center;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.12);
  min-width: 0;
  overflow: hidden;
}

.streak-day-head {
  font-size: 0.71rem;
  font-weight: 700;
  color: var(--text-muted, #94a3b8);
  line-height: 1.15;
}

.streak-day-icon {
  font-size: 1.32rem;
  line-height: 1.1;
  margin: 1px 0;
}

.streak-day-reward {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-primary, #f8fafc);
  line-height: 1.15;
}

.streak-day-tag {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  line-height: 1.2;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted, #cbd5e1);
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.streak-day-card.is-claimed,
.streak-day-card.is-today-claimed {
  background: linear-gradient(160deg, rgba(16, 185, 129, 0.20), rgba(124, 58, 237, 0.22));
  border-color: rgba(52, 211, 153, 0.55);
  box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, 0.28);
}

.streak-day-card.is-claimed .streak-day-head,
.streak-day-card.is-today-claimed .streak-day-head {
  color: #a7f3d0;
}

.streak-day-card.is-claimed .streak-day-tag,
.streak-day-card.is-today-claimed .streak-day-tag {
  background: rgba(16, 185, 129, 0.28);
  color: #ecfdf5;
}

.streak-day-card.is-today-ready {
  background:
    radial-gradient(120% 95% at 50% 8%, rgba(255, 255, 255, 0.44) 0%, rgba(255, 255, 255, 0.06) 42%, transparent 72%),
    linear-gradient(165deg, rgba(139, 92, 246, 0.36), rgba(236, 72, 153, 0.28));
  border: 1.5px solid rgba(255, 255, 255, 0.88);
  box-shadow:
    0 8px 20px rgba(139, 92, 246, 0.34),
    inset 0 2px 2px rgba(255, 255, 255, 0.85),
    inset 2px 0 4px rgba(56, 189, 248, 0.32),
    inset -2px 0 4px rgba(244, 114, 182, 0.34);
}

.streak-day-card.is-today-ready .streak-day-head {
  color: #ffffff;
}

.streak-day-card.is-today-ready .streak-day-tag {
  background: linear-gradient(135deg, #f97316, #ec4899);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(236, 72, 153, 0.4);
}

.streak-day-card.is-upcoming {
  opacity: 0.82;
}

.streak-day-card.is-grand-prize {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  padding: 11px 13px;
  gap: 10px;
  background:
    radial-gradient(120% 100% at 15% 0%, rgba(254, 240, 138, 0.24) 0%, transparent 60%),
    linear-gradient(135deg, rgba(245, 158, 11, 0.24), rgba(139, 92, 246, 0.28));
  border: 1.5px solid rgba(251, 191, 36, 0.55);
  box-shadow:
    0 8px 22px rgba(245, 158, 11, 0.18),
    inset 0 1.5px 2px rgba(255, 255, 255, 0.42);
  opacity: 1;
}

.streak-day-card.is-grand-prize.is-today-ready {
  border-color: rgba(254, 240, 138, 0.96);
  box-shadow:
    0 10px 26px rgba(245, 158, 11, 0.38),
    inset 0 2px 2px rgba(255, 255, 255, 0.9);
}

.streak-grand-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.streak-grand-emblem {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  background: linear-gradient(145deg, rgba(250, 204, 21, 0.42), rgba(217, 119, 6, 0.36));
  border: 1px solid rgba(254, 240, 138, 0.72);
  box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, 0.7);
}

.streak-grand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.streak-grand-copy .streak-day-head {
  color: #fde68a;
  font-size: 0.73rem;
}

.streak-grand-copy .streak-day-reward {
  font-size: 0.86rem;
  color: #ffffff;
}

.streak-claim-btn {
  width: 100%;
  min-height: 46px;
  font-size: 0.94rem;
  font-weight: 800;
  border-radius: 999px;
}

.streak-claim-btn.is-grand-ready {
  background: linear-gradient(135deg, #f59e0b 0%, #ec4899 55%, #8b5cf6 100%);
  box-shadow: 0 8px 22px rgba(245, 158, 11, 0.36);
}

.streak-claim-btn.is-done-today {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--text-primary, #f8fafc);
  box-shadow: none;
}

.streak-burst-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 5;
}

.streak-burst-dot {
  position: absolute;
  left: 50%;
  top: 48%;
  font-size: 1.05rem;
  opacity: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .streak-day-card.is-today-ready {
    animation: streakTodayFloat 2.4s ease-in-out infinite;
  }

  .streak-day-card.is-just-claimed {
    animation: streakClaimPop 520ms cubic-bezier(0.22, 1.35, 0.36, 1);
  }

  .streak-burst-dot {
    animation: streakBurstFly 820ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
}

@keyframes streakTodayFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2.5px);
  }
}

@keyframes streakClaimPop {
  0% {
    transform: scale(0.9);
  }
  55% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes streakBurstFly {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.5);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--bx, 0px)), calc(-50% + var(--by, -80px))) scale(1.15) rotate(var(--br, 0deg));
  }
}

/* Light Mode Overrides for WCAG AA Contrast */
[data-theme="light"] .daily-streak-card {
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(139, 92, 246, 0.14) 0%, rgba(236, 72, 153, 0.08) 52%, transparent 82%),
    #ffffff;
}

[data-theme="light"] .streak-total-pill {
  background: rgba(249, 115, 22, 0.14);
  border-color: rgba(234, 88, 12, 0.38);
  color: #9a3412;
}

[data-theme="light"] .streak-progress-box {
  background: rgba(124, 58, 237, 0.055);
  border-color: rgba(124, 58, 237, 0.18);
}

[data-theme="light"] .streak-step-label,
[data-theme="light"] .streak-remaining-copy strong,
[data-theme="light"] .streak-day-reward {
  color: #1e1b4b;
}

[data-theme="light"] .streak-remaining-copy {
  color: #334155;
}

[data-theme="light"] .streak-countdown-pill {
  background: rgba(124, 58, 237, 0.12);
  border-color: rgba(124, 58, 237, 0.28);
  color: #4c1d95;
}

[data-theme="light"] .streak-context-notice {
  background: rgba(14, 165, 233, 0.1);
  border-color: rgba(14, 165, 233, 0.3);
  color: #0c4a6e;
}

[data-theme="light"] .streak-day-card {
  background: rgba(241, 245, 249, 0.85);
  border-color: rgba(148, 163, 184, 0.36);
}

[data-theme="light"] .streak-day-head {
  color: #475569;
}

[data-theme="light"] .streak-day-tag {
  background: rgba(148, 163, 184, 0.22);
  color: #334155;
}

[data-theme="light"] .streak-day-card.is-claimed,
[data-theme="light"] .streak-day-card.is-today-claimed {
  background: linear-gradient(160deg, rgba(16, 185, 129, 0.16), rgba(124, 58, 237, 0.12));
  border-color: rgba(16, 185, 129, 0.5);
}

[data-theme="light"] .streak-day-card.is-claimed .streak-day-head,
[data-theme="light"] .streak-day-card.is-today-claimed .streak-day-head {
  color: #065f46;
}

[data-theme="light"] .streak-day-card.is-claimed .streak-day-tag,
[data-theme="light"] .streak-day-card.is-today-claimed .streak-day-tag {
  background: #059669;
  color: #ffffff;
}

[data-theme="light"] .streak-day-card.is-today-ready {
  background:
    radial-gradient(120% 95% at 50% 8%, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.4) 45%, transparent 76%),
    linear-gradient(165deg, rgba(139, 92, 246, 0.20), rgba(236, 72, 153, 0.18));
  border-color: rgba(124, 58, 237, 0.62);
  box-shadow:
    0 8px 18px rgba(124, 58, 237, 0.18),
    inset 0 2px 2px rgba(255, 255, 255, 0.96);
}

[data-theme="light"] .streak-day-card.is-today-ready .streak-day-head {
  color: #4c1d95;
}

[data-theme="light"] .streak-day-card.is-grand-prize {
  background:
    radial-gradient(120% 100% at 15% 0%, rgba(254, 240, 138, 0.55) 0%, transparent 62%),
    linear-gradient(135deg, rgba(251, 191, 36, 0.22), rgba(168, 85, 247, 0.16));
  border-color: rgba(217, 119, 6, 0.55);
}

[data-theme="light"] .streak-grand-copy .streak-day-head {
  color: #92400e;
}

[data-theme="light"] .streak-grand-copy .streak-day-reward {
  color: #1e1b4b;
}

[data-theme="light"] .streak-claim-btn.is-done-today {
  background: rgba(124, 58, 237, 0.10);
  border-color: rgba(124, 58, 237, 0.28);
  color: #312e81;
}

@media (max-width: 360px) {
  .daily-streak-card {
    padding: 16px 12px 14px;
    gap: 10px;
  }
  .streak-days-grid {
    gap: 6px;
  }
  .streak-day-card {
    padding: 7px 4px;
  }
  .streak-day-reward {
    font-size: 0.73rem;
  }
}

[hidden] {
  display: none;
}
