:root {
  color-scheme: dark;
  --bg: #02050d;
  --panel: rgba(5, 11, 24, .88);
  --panel-strong: rgba(7, 15, 31, .98);
  --line: rgba(130, 175, 211, .2);
  --text: #f7fbff;
  --muted: #a7b8cc;
  --cyan: #00e8ff;
  --pink: #ff1687;
  --violet: #a75cff;
  --green: #49e5aa;
  --danger: #ff4f79;
  --radius: 26px;
  --shadow: 0 26px 90px rgba(0, 0, 0, .55);
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: var(--bg); }
body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 0%, rgba(0, 206, 255, .14), transparent 33rem),
    radial-gradient(circle at 88% 82%, rgba(255, 22, 135, .13), transparent 35rem),
    #02050d;
  font: 16px/1.5 "Segoe UI Variable", "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea, select { font: inherit; }
button, a, label { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
::selection { color: #001018; background: var(--cyan); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

#appConstellation {
  position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; opacity: .9;
}
.app-ribbons { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; mix-blend-mode: screen; }
.app-ribbons::before, .app-ribbons::after, .app-ribbons i {
  content: ""; position: absolute; left: -40vw; width: 180vw; height: 2px;
  opacity: 0; filter: drop-shadow(0 0 12px currentColor); transform-origin: center;
}
.app-ribbons::before { top: 17%; color: var(--cyan); background: linear-gradient(90deg, transparent 12%, currentColor, transparent 80%); animation: ribbon-one 23s linear infinite; }
.app-ribbons::after { top: 76%; color: var(--pink); background: linear-gradient(90deg, transparent 12%, currentColor, transparent 80%); animation: ribbon-two 29s linear infinite 4s; }
.app-ribbons i:nth-child(1) { top: 42%; color: var(--violet); background: linear-gradient(90deg, transparent, currentColor, transparent); animation: ribbon-three 34s linear infinite 9s; }
.app-ribbons i:nth-child(2) { top: 91%; color: var(--cyan); background: linear-gradient(90deg, transparent, currentColor, transparent); animation: ribbon-one 31s linear infinite 13s; }
@keyframes ribbon-one { 0% { opacity: 0; transform: translateX(-22%) rotate(-11deg); } 12%, 70% { opacity: .32; } 100% { opacity: 0; transform: translateX(25%) rotate(9deg); } }
@keyframes ribbon-two { 0% { opacity: 0; transform: translateX(20%) rotate(12deg); } 14%, 72% { opacity: .27; } 100% { opacity: 0; transform: translateX(-27%) rotate(-8deg); } }
@keyframes ribbon-three { 0% { opacity: 0; transform: translateX(-20%) rotate(5deg); } 20%, 75% { opacity: .18; } 100% { opacity: 0; transform: translateX(24%) rotate(-12deg); } }

.app-header {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between;
  height: 84px; padding: 8px max(24px, env(safe-area-inset-left));
  border-bottom: 1px solid var(--line); background: rgba(2, 5, 13, .78); backdrop-filter: blur(22px);
}
.app-brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.app-brand img { width: 66px; height: 66px; object-fit: contain; flex: 0 0 auto; border-radius: 17px; filter: drop-shadow(0 0 18px rgba(0, 232, 255, .22)); }
.app-brand span { display: grid; line-height: 1.1; }
.app-brand b { font-size: 21px; letter-spacing: -.04em; }
.app-brand small { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.app-tools { display: flex; align-items: center; gap: 10px; }
.language-select, .icon-button {
  min-width: 48px; min-height: 48px; border: 1px solid rgba(0, 232, 255, .36); border-radius: 16px;
  background: rgba(4, 11, 22, .9); color: var(--text); cursor: pointer;
}
.app-language-picker { position: relative; flex: none; }
.app-language-trigger { min-width: 100px; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 10px; border: 1px solid rgba(0,232,255,.46); border-radius: 16px; color: white; background: rgba(4,11,22,.96); box-shadow: inset 0 1px rgba(255,255,255,.06), 0 0 18px rgba(0,232,255,.08); cursor: pointer; }
.app-language-trigger > span { margin-left: 1px; font-size: 16px; line-height: 1; transition: transform .2s; }
.app-language-trigger[aria-expanded="true"] > span { transform: rotate(180deg); }
.language-flag { width: 28px; height: 19px; flex: none; overflow: hidden; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255,255,255,.38), 0 0 10px rgba(0,232,255,.14); }
.language-code { color: #fff; font-size: 14px; font-weight: 950; letter-spacing: .045em; line-height: 1; }
.language-native { display: none; }
.app-language-menu { position: absolute; z-index: 90; top: calc(100% + 10px); right: 0; width: min(238px, calc(100vw - 24px)); display: grid; gap: 3px; padding: 9px; border: 1px solid rgba(0,232,255,.42); border-right-color: rgba(255,22,135,.45); border-radius: 18px; background: rgba(3,10,22,.985); box-shadow: 0 24px 70px rgba(0,0,0,.7); }
.app-language-menu button { min-height: 45px; display: grid; grid-template-columns: 30px 31px minmax(0,1fr); gap: 9px; align-items: center; padding: 0 11px; border: 1px solid transparent; border-radius: 11px; color: #dce9f5; background: transparent; text-align: left; cursor: pointer; }
.app-language-menu button:hover, .app-language-menu button:focus-visible, .app-language-menu button[aria-selected="true"] { border-color: rgba(0,232,255,.28); color: white; background: linear-gradient(90deg, rgba(0,232,255,.14), rgba(255,22,135,.09)); outline: none; }
.app-language-menu svg { width: 28px; height: 19px; overflow: hidden; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255,255,255,.28); }
.app-language-menu b { font-size: 14px; }
.app-language-menu span { font-size: 14px; font-weight: 650; }
.icon-button { position: relative; display: grid; place-items: center; font-size: 23px; }
.contact-tool { min-width: 96px; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 13px; border: 1px solid rgba(255, 22, 135, .5); border-radius: 16px; background: rgba(4, 11, 22, .9); color: white; font-size: 11px; font-weight: 900; letter-spacing: .05em; }
.contact-tool span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--cyan), var(--pink)); color: white; font-size: 15px; box-shadow: 0 0 16px rgba(0, 232, 255, .2); }
.contact-tool:hover { border-color: var(--cyan); box-shadow: 0 0 24px rgba(0, 232, 255, .12); }
.sound-button[aria-pressed="true"] { border-color: var(--cyan); color: var(--cyan); box-shadow: 0 0 24px rgba(0,232,255,.24); }
.icon-button b, .nav-item i, .mobile-nav i { position: absolute; display: grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 20px; background: var(--pink); color: white; font-size: 10px; font-style: normal; }
.icon-button b { top: -6px; right: -6px; }

#root { position: relative; z-index: 2; min-height: calc(100dvh - 84px); }
.loading-view { min-height: calc(100dvh - 84px); display: grid; place-items: center; align-content: center; gap: 18px; text-align: center; color: var(--muted); }
.loading-view img { width: 128px; height: 128px; object-fit: contain; border-radius: 28px; }
.spinner { width: 34px; height: 34px; border: 3px solid rgba(255,255,255,.15); border-top-color: var(--cyan); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.glass-panel { border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow); backdrop-filter: blur(24px); }
.email-notice { display: flex; gap: 10px; margin: 0; padding: 12px 13px; border: 1px solid rgba(0, 232, 255, .25); border-radius: 14px; background: rgba(0, 232, 255, .06); color: #c8d8e8; font-size: 13px; line-height: 1.5; }
.email-notice > span:first-child { flex: 0 0 auto; color: var(--cyan); font-size: 17px; }
.profile-email-option { max-width: 720px; }
.eyebrow { margin: 0 0 8px; color: var(--cyan); font-size: 12px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
em { color: transparent; background: linear-gradient(110deg, var(--cyan), #a9ddff 43%, var(--pink)); -webkit-background-clip: text; background-clip: text; font-style: normal; }

.auth-view { width: min(1180px, calc(100% - 36px)); margin: 0 auto; padding: 62px 0 48px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(390px, 470px); gap: 52px; align-items: center; }
.auth-intro { display: grid; grid-template-columns: minmax(150px, 210px) 1fr; gap: 28px; align-items: center; }
.auth-intro img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 42px; filter: drop-shadow(0 0 32px rgba(0, 232, 255, .2)); }
.auth-intro h1 { margin: 0; font-size: clamp(38px, 5vw, 68px); line-height: .98; letter-spacing: -.055em; }
.auth-intro p:not(.eyebrow) { max-width: 650px; margin: 22px 0 0; color: var(--muted); font-size: 18px; }
.auth-panel { position: relative; isolation: isolate; padding: 26px; overflow: hidden; border-color: rgba(0,232,255,.42); border-right-color: rgba(255,22,135,.48); border-radius: 30px; background: radial-gradient(circle at 6% 2%, rgba(0,232,255,.11), transparent 31%), radial-gradient(circle at 96% 10%, rgba(255,22,135,.10), transparent 29%), rgba(4,11,24,.94); box-shadow: 0 32px 90px rgba(0,0,0,.56), -12px 0 48px rgba(0,232,255,.08), 12px 0 48px rgba(255,22,135,.08); }
.auth-panel::after { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none; background: linear-gradient(120deg, transparent 18%, rgba(255,255,255,.035) 43%, transparent 64%); }
.auth-mode-branding { margin: 0 2px 22px; padding: 1px 8px 0; text-align: center; }
.auth-rings { position: relative; width: 74px; height: 43px; display: block; margin: 0 auto 7px; filter: drop-shadow(0 0 10px rgba(0,232,255,.22)) drop-shadow(0 0 10px rgba(255,22,135,.2)); }
.auth-rings i { position: absolute; top: 3px; width: 38px; height: 38px; border: 3px solid; border-radius: 50%; background: transparent; }
.auth-rings i:first-child { left: 7px; z-index: 2; border-color: var(--cyan); box-shadow: 0 0 8px rgba(0,232,255,.95), inset 0 0 7px rgba(0,232,255,.46); }
.auth-rings i:last-child { right: 7px; z-index: 1; border-color: var(--pink); box-shadow: 0 0 8px rgba(255,22,135,.95), inset 0 0 7px rgba(255,22,135,.46); }
.auth-rings::after { content: ""; position: absolute; z-index: 3; top: 50%; left: 50%; width: 7px; height: 7px; border-radius: 50%; background: #dffaff; box-shadow: 0 0 10px rgba(0,232,255,.85), 0 0 14px rgba(255,22,135,.62); transform: translate(-50%, -50%); }
.auth-mode-copy h2 { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 .28em; margin: 0; font-size: clamp(25px, 3.1vw, 34px); font-weight: 950; line-height: 1.04; letter-spacing: -.045em; text-transform: uppercase; }
.auth-title-cyan { color: var(--cyan); text-shadow: 0 0 17px rgba(0,232,255,.18); }
.auth-title-pink { color: #ff3d9b; text-shadow: 0 0 17px rgba(255,22,135,.18); }
.auth-mode-copy > p { max-width: 390px; margin: 8px auto 0; color: #d4e0ec; font-size: 14px; line-height: 1.3; }
.auth-free-badge { width: min(240px, 82%); min-height: 30px; display: flex; align-items: center; justify-content: center; margin: 9px auto 0; padding: 3px 18px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; background: linear-gradient(100deg, #0dbed0 0%, #5c86cf 48%, #d81875 100%); color: white; box-shadow: 0 0 16px rgba(0,232,255,.12), 0 0 16px rgba(255,22,135,.1), inset 0 1px rgba(255,255,255,.2); font-size: 12px; font-weight: 950; line-height: 1.05; text-transform: uppercase; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 5px; margin-bottom: 24px; border: 1px solid var(--line); border-radius: 17px; background: rgba(0,0,0,.22); }
.auth-tab { min-height: 52px; border: 0; border-radius: 13px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 900; cursor: pointer; transition: color .2s, background .2s, box-shadow .2s; }
.auth-tab.is-active { color: white; background: linear-gradient(110deg, rgba(0, 205, 230, .58), rgba(255, 22, 135, .45)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2), 0 7px 24px rgba(0,232,255,.09); }
.auth-form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { color: #e6f2fb; font-size: 14px; font-weight: 800; }
.field input, .field textarea, .message-form textarea {
  width: 100%; min-height: 56px; padding: 14px 16px; border: 1px solid rgba(151, 188, 218, .3); border-radius: 15px;
  outline: 0; background: rgba(0, 5, 14, .82); color: var(--text); font-size: 16px; transition: .2s ease;
}
.field input:focus, .message-form textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 232, 255, .11), -6px 0 22px rgba(0,232,255,.08), 6px 0 22px rgba(255,22,135,.07); }
.field input:disabled { opacity: .65; }
.field small { color: var(--muted); font-size: 12px; }
.check-row { display: grid; grid-template-columns: 22px 1fr; gap: 11px; align-items: start; color: var(--muted); font-size: 13px; cursor: pointer; }
.check-row input { width: 19px; height: 19px; accent-color: var(--cyan); }
.check-row a { color: var(--cyan); text-decoration: underline; }
.primary-button, .secondary-button, .danger-button, .provider-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 20px;
  border-radius: 15px; font-size: 12px; font-weight: 900; letter-spacing: .035em; cursor: pointer; transition: transform .2s ease, filter .2s ease, border-color .2s ease;
}
.primary-button { border: 1px solid rgba(255,255,255,.2); background: linear-gradient(105deg, #18c8e5, #6c8de8 51%, #f01483); color: white; box-shadow: 0 10px 34px rgba(0, 197, 226, .2), 0 8px 30px rgba(240,20,131,.15), inset 0 1px rgba(255,255,255,.25); }
.secondary-button { border: 1px solid rgba(0, 232, 255, .5); background: rgba(2, 8, 17, .72); color: white; }
.danger-button { border: 1px solid rgba(255, 79, 121, .55); background: rgba(255, 43, 105, .12); color: #ff8aa6; }
.provider-button { width: 100%; border: 1px solid rgba(255,255,255,.22); background: white; color: #162031; }
.provider-button svg { width: 24px; height: 24px; }
.compact { min-height: 46px; width: auto; }
.primary-button:hover, .secondary-button:hover, .danger-button:hover, .provider-button:hover { transform: translateY(-1px); filter: brightness(1.08); }
.primary-button:disabled, .secondary-button:disabled { cursor: wait; opacity: .58; transform: none; }
.text-button { border: 0; background: transparent; color: var(--cyan); font-size: 13px; cursor: pointer; }
.text-button:hover { color: white; text-decoration: underline; text-underline-offset: 4px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0 15px; color: var(--muted); font-size: 12px; text-align: center; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.status-message { min-height: 20px; margin: 12px 0 0; color: #ff96b0; text-align: center; font-size: 13px; }
.status-message.success { color: var(--green); }
.coming-platforms { grid-column: 1 / -1; padding-top: 22px; text-align: center; }
.coming-platforms > p { margin: 0 0 13px; color: #d6e3ef; font-size: 12px; font-weight: 900; letter-spacing: .2em; }
.platforms-coming-soon {
  width: min(680px, calc(100vw - 28px));
  max-width: 100%;
  aspect-ratio: 993 / 98;
  display: block;
  margin: 0 auto;
  background: url("/assets/platforms-coming-soon-es.webp") center / contain no-repeat;
}
html[lang="en"] .platforms-coming-soon { background-image: url("/assets/platforms-coming-soon-en.webp"); }
html[lang="fr"] .platforms-coming-soon { background-image: url("/assets/platforms-coming-soon-fr.webp"); }
html[lang="pt"] .platforms-coming-soon { background-image: url("/assets/platforms-coming-soon-pt.webp"); }
html[lang="de"] .platforms-coming-soon { background-image: url("/assets/platforms-coming-soon-de.webp"); }
html[lang="ca"] .platforms-coming-soon { background-image: url("/assets/platforms-coming-soon-ca.webp"); }
html[lang="ro"] .platforms-coming-soon { background-image: url("/assets/platforms-coming-soon-ro.webp"); }
.future-store-buttons { display: grid; grid-template-columns: repeat(3, minmax(0, 158px)); justify-content: center; gap: 10px; }
.future-store-button { min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 6px 11px; border: 1px solid #090b0e; border-radius: 10px; background: white; color: #050609; text-align: left; box-shadow: 0 0 0 1px rgba(255,255,255,.88), 0 12px 26px rgba(0,0,0,.3); }
.future-store-button svg { width: 30px; height: 30px; flex: 0 0 30px; fill: #050609; stroke: #050609; stroke-width: 2.7; }
.future-store-button .play-cyan { fill: var(--cyan); stroke: none; }
.future-store-button .play-pink { fill: var(--pink); stroke: none; }
.future-store-button .play-yellow { fill: #fbbc04; stroke: none; }
.future-store-button .tiktok-cyan { stroke: var(--cyan); transform: translate(-1px,1px); }
.future-store-button .tiktok-pink { stroke: var(--pink); transform: translate(1px,-1px); }
.future-store-button span { display: grid; min-width: 0; padding: 0; line-height: 1.1; }
.future-store-button small { color: #1f242b; font-size: 9px; font-weight: 900; }
.future-store-button b { color: #050609; font-size: 14px; white-space: nowrap; }

.main-app { width: min(1480px, calc(100% - 36px)); min-height: calc(100dvh - 116px); margin: 24px auto 32px; display: grid; grid-template-columns: 285px minmax(0, 1fr); gap: 20px; }
.app-sidebar, .app-content { border-radius: var(--radius); }
.app-sidebar { position: sticky; top: 108px; align-self: start; min-height: calc(100dvh - 140px); padding: 18px 13px; overflow: hidden; border-color: rgba(0,232,255,.25); border-right-color: rgba(255,22,135,.28); background: radial-gradient(circle at 0 0, rgba(0,232,255,.09), transparent 36%), radial-gradient(circle at 100% 70%, rgba(255,22,135,.07), transparent 42%), rgba(4,10,22,.94); }
.app-sidebar::after { content: ""; position: absolute; inset: auto -40% -100px 8%; height: 220px; pointer-events: none; background: var(--pink); filter: blur(100px); opacity: .07; }
.sidebar-user { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 13px; align-items: center; padding: 8px 8px 23px; border-bottom: 1px solid var(--line); }
.sidebar-user > div:last-child { min-width: 0; display: grid; }
.sidebar-user strong, .sidebar-user small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user strong { font-size: 17px; }
.sidebar-user small { color: #c0d0df; font-size: 12px; }
.avatar { width: 58px; height: 58px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--cyan); border-radius: 50%; background: linear-gradient(145deg, rgba(0,232,255,.27), rgba(255,22,135,.25)); font-size: 17px; font-weight: 900; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.app-nav { position: relative; z-index: 1; display: grid; gap: 8px; margin-top: 18px; }
.nav-item { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: center; min-height: 64px; padding: 0 12px; overflow: hidden; border: 1px solid transparent; border-radius: 18px; background: rgba(255,255,255,.012); color: #c0cede; text-align: left; cursor: pointer; transition: color .2s, border-color .2s, background .2s, transform .2s; }
.nav-item::before { content: ""; position: absolute; left: 0; width: 3px; height: 0; border-radius: 0 4px 4px 0; background: linear-gradient(var(--cyan), var(--pink)); box-shadow: 0 0 13px var(--cyan); transition: height .2s; }
.nav-item span { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(130,175,211,.24); border-radius: 14px; background: rgba(255,255,255,.035); }
.nav-item span svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-item b { font-size: 16px; font-weight: 850; letter-spacing: .01em; }
.nav-item:hover { color: white; border-color: rgba(0,232,255,.14); transform: translateX(2px); }
.nav-item.is-active { border-color: rgba(0,232,255,.54); border-right-color: rgba(255,22,135,.58); color: white; background: linear-gradient(95deg, rgba(0,232,255,.2), rgba(112,86,255,.13) 52%, rgba(255,22,135,.15)); box-shadow: inset 0 1px rgba(255,255,255,.08), -5px 0 24px rgba(0,232,255,.1), 5px 0 24px rgba(255,22,135,.1); }
.nav-item.is-active::before { height: 30px; }
.nav-item.is-active span { border-color: rgba(0,232,255,.7); color: var(--cyan); background: rgba(0,232,255,.11); box-shadow: 0 0 22px rgba(0,232,255,.17); }
.nav-item i { top: 5px; right: 5px; }
.sidebar-logout { width: calc(100% - 12px); min-height: 48px; margin: 25px 6px 0; padding: 12px; border: 1px solid rgba(255,79,121,.22); border-radius: 14px; background: rgba(255,79,121,.05); color: #ff9ab2; font-size: 14px; font-weight: 850; cursor: pointer; }
.app-content { min-height: calc(100dvh - 140px); overflow: hidden; }
.app-view-navigation { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px clamp(16px, 3vw, 32px); border-bottom: 1px solid rgba(130,175,211,.16); background: linear-gradient(90deg, rgba(0,232,255,.035), rgba(86,48,155,.055), rgba(255,22,135,.025)); }
.app-view-navigation button { min-height: 36px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid rgba(0,232,255,.28); border-radius: 12px; background: rgba(2,8,18,.68); color: #dce9f5; cursor: pointer; }
.app-view-navigation button:last-child { border-color: rgba(167,92,255,.34); }
.app-view-navigation button span { color: var(--cyan); font-size: 19px; line-height: 1; }
.app-view-navigation button:last-child span { color: #c8a9ff; }
.app-view-navigation button b { font-size: 10px; letter-spacing: .07em; }
.app-view-navigation button:disabled { opacity: .3; cursor: default; }
.app-view-navigation button:not(:disabled):hover { border-color: var(--cyan); background: rgba(0,232,255,.08); }
.app-view { display: none; min-height: 100%; padding: clamp(24px, 4vw, 52px); }
.app-view.is-active { display: block; animation: view-in .28s ease both; }
@keyframes view-in { from { opacity: 0; transform: translateY(8px); } }
.view-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.view-heading h1 { margin: 0; font-size: clamp(30px, 4vw, 48px); line-height: 1; letter-spacing: -.045em; }
.view-lead { max-width: 720px; margin: -10px 0 30px; color: var(--muted); }
.counter { min-width: 82px; padding: 10px 14px; border: 1px solid rgba(255,22,135,.4); border-radius: 13px; color: #e9dbff; text-align: center; font-weight: 900; }

.progress-card { display: grid; grid-template-columns: 152px minmax(0, 1fr); gap: 28px; align-items: center; padding: 28px; border: 1px solid rgba(0,232,255,.28); border-radius: 24px; background: linear-gradient(115deg, rgba(0,188,221,.12), rgba(15,12,38,.58) 55%, rgba(255,22,135,.08)); }
.ring-progress { --progress: 0deg; width: 144px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--cyan) var(--progress), rgba(255,255,255,.09) 0); position: relative; }
.ring-progress::before { content: ""; position: absolute; inset: 9px; border-radius: inherit; background: #071021; }
.ring-progress span { position: relative; z-index: 1; font-size: 24px; font-weight: 900; }
.progress-card h2 { margin: 0; font-size: 25px; }
.progress-card p { margin: 8px 0 18px; color: var(--muted); }
.home-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin-top: 18px; }
.feature-card { display: grid; grid-template-columns: 54px minmax(0,1fr) 20px; gap: 14px; align-items: center; min-height: 120px; padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: rgba(4, 10, 22, .76); text-align: left; cursor: pointer; }
.feature-card h3 { margin: 0; font-size: 17px; }
.feature-card p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.feature-card > b { font-size: 30px; color: var(--muted); }
.feature-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; font-size: 27px; font-weight: 900; }
.feature-icon.cyan { border: 1px solid var(--cyan); color: var(--cyan); background: rgba(0,232,255,.09); }
.feature-icon.pink { border: 1px solid var(--pink); color: var(--pink); background: rgba(255,22,135,.09); }
.feature-icon.violet { border: 1px solid var(--violet); color: #ceb1ff; background: rgba(167,92,255,.11); }
.plans-feature { border-color: rgba(167,92,255,.3); background: linear-gradient(125deg, rgba(65,29,105,.2), rgba(4,10,22,.76)); }
.notices-card, .invite-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 18px; padding: 23px; border: 1px solid var(--line); border-radius: 20px; background: rgba(4, 10, 22, .64); }
.notices-card h2, .invite-card h2 { margin: 0; font-size: 19px; }
.notices-card p, .invite-card p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }

.quiz-intro, .quiz-complete { min-height: 480px; display: grid; place-items: center; align-content: center; gap: 14px; padding: 40px; text-align: center; }
.quiz-complete-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.quiz-intro img { width: 150px; aspect-ratio: 1; object-fit: contain; border-radius: 32px; }
.quiz-intro h2, .quiz-complete h2 { margin: 6px 0 0; font-size: 30px; }
.quiz-intro p, .quiz-complete p { max-width: 560px; margin: 0 0 10px; color: var(--muted); }
.quiz-complete > span { width: 90px; height: 90px; display: grid; place-items: center; border: 2px solid var(--green); border-radius: 50%; color: var(--green); font-size: 44px; box-shadow: 0 0 35px rgba(73,229,170,.22); }
.quiz-card { min-height: 500px; padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: rgba(4, 11, 24, .72); }
.quiz-progress { height: 6px; margin-bottom: 32px; overflow: hidden; border-radius: 10px; background: rgba(255,255,255,.09); }
.quiz-progress i { display: block; width: 5%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--cyan), var(--pink)); transition: width .25s ease; }
.quiz-card h2 { max-width: 820px; margin: 8px 0 26px; font-size: clamp(25px, 4vw, 38px); line-height: 1.18; }
.answer-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.answer-option {
  min-height: 80px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  padding: 14px 17px;
  border: 1px solid #cbd8e4;
  border-radius: 17px;
  background: linear-gradient(180deg, #fff 0%, #f8fbfd 100%);
  color: #10263d;
  font-family: "Segoe UI Variable Text", Aptos, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.48;
  letter-spacing: -.006em;
  text-align: left;
  text-wrap: pretty;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,.17), inset 0 1px rgba(255,255,255,.92);
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.answer-emoji {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #d9e5ee;
  border-radius: 13px;
  background: #f2f7fb;
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
  font-size: 22px;
  line-height: 1;
}
.answer-copy { min-width: 0; }
.answer-option:hover { transform: translateY(-1px); border-color: #59c9d8; background: #fff; box-shadow: 0 9px 23px rgba(0,0,0,.2), 0 0 0 2px rgba(0,191,216,.09); }
.answer-option.is-selected { border-color: #00bfd8; color: #071b30; background: #fff; box-shadow: inset 5px 0 0 #00bfd8, 0 0 0 3px rgba(0,191,216,.18), 0 9px 23px rgba(0,0,0,.2); }
.answer-option.is-selected .answer-emoji { border-color: rgba(0,191,216,.5); background: #eafcff; box-shadow: 0 0 0 3px rgba(0,191,216,.08); }
.quiz-controls { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; }

.cards-list, .chat-list { display: grid; gap: 13px; }
.empty-state { display: grid; place-items: center; min-height: 300px; padding: 32px; border: 1px dashed rgba(130,175,211,.26); border-radius: 22px; color: var(--muted); text-align: center; }
.empty-state span { display: block; margin-bottom: 8px; color: var(--cyan); font-size: 38px; }
.match-card { display: grid; grid-template-columns: 68px minmax(0,1fr) auto; gap: 17px; align-items: center; padding: 17px; border: 1px solid var(--line); border-radius: 20px; background: rgba(4,10,22,.74); }
.match-card .avatar { width: 66px; height: 66px; }
.match-card h3 { margin: 0; font-size: 19px; }
.match-score { display: inline-flex; align-items: baseline; gap: 3px; margin-top: 5px; color: var(--cyan); font-size: 22px; font-weight: 900; }
.match-score small { color: var(--muted); font-size: 12px; }
.match-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.match-actions button { min-height: 42px; padding: 0 14px; }
.locked-matches { position: relative; min-height: 150px; overflow: hidden; border: 1px solid rgba(167,92,255,.42); border-radius: 22px; background: linear-gradient(120deg, rgba(0,232,255,.045), rgba(82,45,150,.13) 52%, rgba(255,22,135,.045)); box-shadow: inset 0 0 40px rgba(63,31,130,.12); }
.locked-match-previews { display: grid; gap: 13px; padding: 8px; filter: blur(7px); opacity: .48; pointer-events: none; user-select: none; }
.locked-match-preview { min-height: 132px; grid-template-columns: 68px minmax(0,1fr); border-color: rgba(167,92,255,.32); }
.locked-matches-cta { position: absolute; z-index: 2; inset: 0; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 20px; border: 0; border-radius: inherit; background: radial-gradient(circle at 50% 50%, rgba(6,10,25,.94) 0, rgba(6,9,22,.83) 52%, rgba(6,9,22,.48) 100%); color: white; text-align: center; cursor: pointer; }
.locked-matches-cta:hover b, .locked-matches-cta:focus-visible b { transform: translateY(-2px); box-shadow: 0 0 25px rgba(0,232,255,.28), 0 0 28px rgba(167,92,255,.22); }
.locked-matches-cta:focus-visible { outline: 2px solid var(--cyan); outline-offset: -4px; }
.locked-matches-symbol { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(0,232,255,.56); border-radius: 11px; color: var(--cyan); background: rgba(0,232,255,.08); font-size: 21px; box-shadow: 0 0 20px rgba(0,232,255,.15); }
.locked-matches-cta strong { font-size: 17px; }
.locked-matches-cta small { color: #b6c6d8; font-size: 12px; }
.locked-matches-cta b { margin-top: 5px; padding: 10px 15px; border: 1px solid rgba(0,232,255,.55); border-right-color: rgba(167,92,255,.72); border-radius: 999px; background: linear-gradient(110deg, rgba(0,167,212,.2), rgba(91,55,176,.32)); color: white; font-size: 12px; letter-spacing: .05em; transition: transform .2s, box-shadow .2s; }

.chat-item { width: 100%; display: grid; grid-template-columns: 55px minmax(0,1fr) auto; gap: 13px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: rgba(4,10,22,.72); color: white; text-align: left; cursor: pointer; }
.chat-item .avatar { width: 54px; height: 54px; }
.chat-item div:nth-child(2) { min-width: 0; display: grid; }
.chat-item strong, .chat-item p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-item p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.chat-item time { color: var(--muted); font-size: 11px; }
.chat-item.is-unread { border-color: rgba(255,22,135,.45); }
.chat-item.is-unread strong::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 8px; border-radius: 50%; background: var(--pink); }
.chat-room { height: calc(100dvh - 190px); min-height: 610px; display: grid; grid-template-rows: auto auto 1fr auto auto; margin: calc(clamp(24px,4vw,52px) * -1); background: #eef1f4; }
.chat-room-header { display: grid; grid-template-columns: 48px 48px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 15px 18px; border-bottom: 1px solid var(--line); background: rgba(2,7,16,.88); }
.chat-room-header .avatar { width: 46px; height: 46px; }
.chat-room-header > div:nth-child(3) { display: grid; }
.chat-room-header small { color: var(--muted); font-size: 11px; }
.chat-actions { display: flex; gap: 8px; }
.chat-actions button { padding: 8px 10px; border: 0; background: transparent; color: #ff89a5; font-size: 11px; cursor: pointer; }
.chat-consent { padding: 20px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(0,232,255,.09), rgba(255,22,135,.09)); text-align: center; }
.chat-consent h2 { margin: 0; font-size: 20px; }
.chat-consent p { margin: 5px 0 13px; color: var(--muted); font-size: 13px; }
.message-list { overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 24px; color: #111827; background-color: #eef1f4; background-image: radial-gradient(circle at 20% 20%, rgba(0,128,128,.035) 0 2px, transparent 2px), radial-gradient(circle at 80% 70%, rgba(74,31,119,.03) 0 2px, transparent 2px); background-size: 46px 46px, 62px 62px; scroll-behavior: smooth; }
.message { max-width: min(78%, 620px); padding: 11px 14px; border: 1px solid #dce2e7; border-radius: 18px 18px 18px 5px; background: #fff; color: #111827; box-shadow: 0 2px 7px rgba(15,23,42,.08); overflow-wrap: anywhere; }
.message.is-mine { align-self: flex-end; border-color: #ccefc9; border-radius: 18px 18px 5px 18px; background: #dcf8c6; color: #0f172a; }
.message time { display: block; margin-top: 5px; color: #637083; font-size: 9px; text-align: right; }
.typing-indicator { padding: 5px 24px; color: #334155; background: #eef1f4; font-size: 12px; }
.message-form { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: end; padding: 15px; border-top: 1px solid #d8dee5; background: #f7f9fb; }
.message-form textarea { border-color: #cfd6df; background: #fff; color: #111827; }
.message-form textarea { min-height: 50px; max-height: 132px; resize: none; }
.message-form:has(textarea:disabled) { opacity: .45; pointer-events: none; }

.profile-form { max-width: 720px; display: grid; gap: 18px; }
.photo-editor { display: flex; align-items: center; gap: 18px; margin-bottom: 8px; }
.profile-photo { width: 112px; height: 112px; display: grid; place-items: center; overflow: hidden; border: 2px solid var(--cyan); border-radius: 28px; background: linear-gradient(145deg, rgba(0,232,255,.25), rgba(255,22,135,.25)); font-size: 30px; font-weight: 900; box-shadow: 0 0 32px rgba(0,232,255,.12); }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-info { display: flex; align-items: center; gap: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 15px; color: var(--muted); }
.profile-info span { width: 46px; height: 46px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--cyan); border-radius: 14px; color: var(--cyan); font-weight: 900; }
.profile-info p { margin: 0; font-size: 13px; }
.invite-card code { display: inline-block; margin-top: 10px; color: var(--cyan); font-weight: 900; }
.danger-zone { max-width: 720px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.danger-zone h2 { font-size: 18px; }
.account-session-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.account-session-actions .secondary-button, .account-session-actions .danger-button { min-width: 230px; }
.account-safety-note { max-width: 620px; margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.account-delete-status { min-height: 20px; margin: 10px 0 0; color: #8df8ff; font-size: 13px; font-weight: 750; }
.notices-card .secondary-button.is-enabled { border-color: rgba(0,232,255,.62); color: #bffcff; background: rgba(0,232,255,.1); box-shadow: 0 0 18px rgba(0,232,255,.1); }

.app-plan-switcher { width: min(720px, 100%); display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; margin: 0 auto 22px; }
.top-plan-switcher { margin-bottom: 28px; }
.plan-shortcut { position: relative; min-width: 0; aspect-ratio: 2.5; display: block; overflow: hidden; padding: 0; border: 0; border-radius: 999px; background: #000; cursor: pointer; filter: brightness(.9); transition: transform .2s ease, filter .2s ease; }
.plan-shortcut img { width: 100%; height: 100%; display: block; object-fit: cover; pointer-events: none; }
.plan-shortcut:hover { transform: translateY(-2px); filter: brightness(1.08); }
.plan-shortcut:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.plan-shortcut.is-current-panel { transform: translateY(-2px) scale(1.025); filter: brightness(1.14) saturate(1.08); box-shadow: 0 0 0 2px rgba(255,255,255,.76), -5px 0 22px rgba(0,232,255,.2), 5px 0 22px rgba(255,22,135,.2); }
.plans-switcher { width: 100%; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 17px; margin-bottom: 19px; }
.plans-switcher .plan-shortcut { width: min(240px, 100%); justify-self: center; }

.plan-price-pill { padding: 10px 14px; border: 1px solid rgba(255,22,135,.38); border-radius: 999px; color: #fff; background: rgba(255,22,135,.08); font-weight: 900; white-space: nowrap; }
.plan-price-pill b { color: #ff9bc9; font-size: 10px; letter-spacing: .1em; }
.plan-choice-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 17px; align-items: start; }
.plan-choice { position: relative; padding: 0; overflow: hidden; border: 1px solid rgba(130,175,211,.24); border-radius: 24px; background: #030711; cursor: pointer; box-shadow: 0 18px 46px rgba(0,0,0,.35); transition: transform .2s, border-color .2s, box-shadow .2s; }
.plan-choice:hover { transform: translateY(-5px); border-color: rgba(0,232,255,.48); }
.plan-choice.is-featured { border-color: rgba(255,22,135,.5); box-shadow: 0 20px 52px rgba(255,22,135,.12); }
.plan-choice img { width: 100%; height: auto; }
.premium-claim-fix { position: absolute; z-index: 3; top: 32.2%; right: 5.5%; left: 29.5%; height: 14.7%; display: flex; flex-direction: column; justify-content: space-around; gap: 2%; padding: 1.2% 2.2%; pointer-events: none; border: 1px solid rgba(0,225,242,.38); border-left-color: rgba(255,42,142,.52); border-radius: 10px; background: rgba(1,3,11,.995); box-shadow: 0 0 18px rgba(0,225,242,.06), 0 0 16px rgba(255,42,142,.05); color: #fff; text-align: left; }
.premium-claim-fix b { display: flex; min-height: 44%; align-items: center; font-size: clamp(8px, 1.45vw, 21px); line-height: 1.12; }
.plan-selected-mark { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; color: white; background: linear-gradient(135deg, var(--cyan), var(--pink)); font-weight: 950; opacity: 0; transform: scale(.7); transition: .2s; box-shadow: 0 0 24px rgba(0,232,255,.22); }
.plan-choice.is-selected { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,232,255,.12), 0 22px 58px rgba(0,232,255,.14); }
.plan-choice.is-selected .plan-selected-mark { opacity: 1; transform: scale(1); }
.plan-status-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 20px; padding: 19px 22px; border: 1px solid rgba(0,232,255,.24); border-right-color: rgba(255,22,135,.3); border-radius: 18px; background: linear-gradient(110deg, rgba(0,232,255,.07), rgba(255,22,135,.06)); }
.plan-status-card strong { color: var(--cyan); font-size: 10px; letter-spacing: .14em; }
.plan-status-card p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.plan-status-card > p { max-width: 620px; text-align: right; }
.selected-plan-row { display: flex; align-items: center; gap: 10px; margin-top: 3px; }
.selected-plan-row > p { margin: 0; color: white; font-size: 15px; font-weight: 850; }
.plan-lock-status { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border: 1px solid rgba(167,92,255,.58); border-radius: 999px; color: #dbc8ff; background: rgba(167,92,255,.11); font-size: 11px; font-weight: 900; box-shadow: 0 0 18px rgba(167,92,255,.12); }
.plan-lock-status[hidden] { display: none; }
.plan-lock-status svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.plan-lock-status .lock-open { display: none; }
.plan-lock-status.is-unlocked { border-color: rgba(49,229,160,.58); color: var(--green); background: rgba(49,229,160,.1); }
.plan-lock-status.is-unlocked .lock-closed { display: none; }
.plan-lock-status.is-unlocked .lock-open { display: block; }
.referral-panel { margin-top: 22px; padding: 25px; border: 1px solid rgba(167,92,255,.42); border-left-color: rgba(0,232,255,.44); border-right-color: rgba(255,22,135,.46); border-radius: 24px; background: radial-gradient(circle at 0 0, rgba(0,232,255,.09), transparent 32%), radial-gradient(circle at 100% 10%, rgba(255,22,135,.1), transparent 34%), rgba(3,8,20,.86); box-shadow: 0 20px 54px rgba(0,0,0,.3); }
.referral-heading { display: grid; grid-template-columns: 64px minmax(0,1fr); gap: 17px; align-items: center; }
.referral-heading > span { width: 62px; height: 62px; display: grid; place-items: center; border: 1px solid var(--violet); border-radius: 19px; color: white; background: linear-gradient(145deg, rgba(0,232,255,.16), rgba(255,22,135,.16)); font-size: 22px; font-weight: 950; box-shadow: 0 0 26px rgba(167,92,255,.16); }
.referral-heading h2 { margin: 0; font-size: clamp(21px,2.4vw,30px); line-height: 1.08; }
.referral-heading p:not(.eyebrow) { margin: 7px 0 0; color: var(--muted); font-size: 14px; }
.referral-progress { display: grid; gap: 9px; margin-top: 23px; }
.referral-progress > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.referral-progress strong { font-size: 27px; }
.referral-progress span { color: #cad8e7; font-size: 13px; }
.referral-track { height: 13px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; background: rgba(255,255,255,.06); }
.referral-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--cyan),var(--violet) 52%,var(--pink)); box-shadow: 0 0 18px rgba(0,232,255,.3); transition: width .35s ease; }
.referral-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 13px; }
.referral-stats span { display: flex; align-items: baseline; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.025); }
.referral-stats b { color: white; font-size: 20px; }
.referral-stats small { color: var(--muted); font-size: 12px; }
.invite-link-field { display: grid; gap: 7px; margin-top: 17px; color: #dce9f5; font-size: 13px; font-weight: 800; }
.invite-link-field input { width: 100%; min-height: 49px; padding: 0 14px; border: 1px solid rgba(0,232,255,.28); border-radius: 13px; outline: none; background: rgba(0,4,12,.8); color: var(--cyan); font-size: 14px; }
.referral-actions, .invite-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.referral-state { margin: 13px 0 0; color: var(--muted); font-size: 13px; }
.profile-referral-progress { display: inline-flex; margin-left: 12px; padding: 4px 9px; border: 1px solid rgba(167,92,255,.4); border-radius: 999px; color: #d8c2ff; font-size: 12px; font-weight: 900; }

.mobile-nav { display: none; }
.app-dialog { width: min(500px, calc(100% - 32px)); padding: 0; border: 1px solid rgba(0,232,255,.4); border-radius: 24px; background: #07101f; color: white; box-shadow: 0 30px 100px rgba(0,0,0,.75); }
.app-dialog::backdrop { background: rgba(0,2,8,.82); backdrop-filter: blur(8px); }
.app-dialog form { display: grid; gap: 17px; padding: 28px; }
.app-dialog img { width: 110px; aspect-ratio: 1; margin: 0 auto; object-fit: contain; border-radius: 24px; }
.app-dialog h2 { margin: 0; font-size: 28px; text-align: center; }
.app-dialog > form > p { margin: -6px 0 5px; color: var(--muted); text-align: center; }
.dialog-symbol { width: 72px; height: 72px; display: grid; place-items: center; margin: 0 auto; border: 1px solid rgba(0,232,255,.52); border-right-color: rgba(255,22,135,.56); border-radius: 23px; background: radial-gradient(circle, rgba(0,232,255,.18), rgba(255,22,135,.08)); color: white; font-size: 34px; box-shadow: 0 0 34px rgba(0,232,255,.12); }
.dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.invite-plan-dialog { border-color: rgba(167,92,255,.58); border-left-color: rgba(0,232,255,.62); border-right-color: rgba(255,22,135,.64); background: radial-gradient(circle at 0 0, rgba(0,232,255,.12), transparent 36%), radial-gradient(circle at 100% 0, rgba(255,22,135,.13), transparent 38%), #07101f; }
.invite-plan-dialog form { gap: 14px; }
.invite-plan-dialog .eyebrow { margin: -2px 0 0; color: var(--cyan); text-align: center; }
.invite-plan-dialog .invite-dialog-symbol { font-size: 22px; font-weight: 950; letter-spacing: -.04em; }
.invite-plan-dialog .primary-button { padding-inline: 16px; }
.premium-success-dialog, .match-success-dialog { border-color: rgba(0,232,255,.66); border-right-color: rgba(255,22,135,.7); background: radial-gradient(circle at 10% 0, rgba(0,232,255,.16), transparent 38%), radial-gradient(circle at 90% 0, rgba(255,22,135,.17), transparent 40%), #07101f; }
.premium-success-dialog form, .match-success-dialog form { gap: 14px; }
.premium-success-dialog .eyebrow, .match-success-dialog .eyebrow { margin: -1px 0 0; color: var(--cyan); text-align: center; }
.premium-success-dialog h2, .match-success-dialog h2 { font-size: clamp(25px, 5vw, 32px); line-height: 1.08; }
.premium-success-dialog #premiumSuccessBody { margin: 0 0 5px; color: #c5d4e3; font-size: 15px; line-height: 1.55; }
.match-success-dialog #matchSuccessBody { margin: 0 0 5px; color: #c5d4e3; font-size: 15px; line-height: 1.55; }
.match-dialog-symbol { color: var(--cyan); font-size: 43px; text-shadow: 0 0 18px rgba(0,232,255,.65), 0 0 34px rgba(167,92,255,.35); }
.match-locked-preview { width: 150px; display: grid; grid-template-columns: 58px minmax(0,1fr); align-items: center; gap: 12px; margin: 0 auto; padding: 10px 12px; overflow: hidden; border: 1px solid rgba(0,232,255,.38); border-right-color: rgba(167,92,255,.58); border-radius: 18px; background: linear-gradient(115deg, rgba(0,232,255,.08), rgba(83,46,153,.18)); }
.match-locked-avatar { width: 58px; height: 58px; filter: blur(10px); transform: scale(1.08); }
.app-dialog .match-locked-avatar img { width: 100%; height: 100%; margin: 0; border-radius: 50%; object-fit: cover; }
.match-locked-preview strong { overflow: hidden; color: white; filter: blur(7px); font-size: 15px; text-overflow: clip; white-space: nowrap; user-select: none; }
.reset-dialog .status-message { margin: -2px 0; }
.confirm-dialog form > div { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.toast { position: fixed; z-index: 100; right: 22px; bottom: 22px; max-width: min(420px, calc(100% - 44px)); padding: 14px 18px; border: 1px solid rgba(0,232,255,.4); border-radius: 14px; background: rgba(6,16,31,.96); color: white; box-shadow: 0 18px 60px rgba(0,0,0,.55); font-size: 14px; }
.toast.error { border-color: rgba(255,79,121,.65); }

@media (max-width: 900px) {
  .auth-view { grid-template-columns: 1fr; gap: 28px; padding-top: 32px; }
  .auth-intro { grid-template-columns: 140px 1fr; }
  .auth-intro h1 { font-size: clamp(35px, 7vw, 56px); }
  .auth-panel { width: min(560px, 100%); margin-inline: auto; }
  .main-app { grid-template-columns: 240px minmax(0,1fr); }
  .home-grid { grid-template-columns: 1fr; }
  .plan-choice-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .answer-list { grid-template-columns: 1fr; }
  .match-card { grid-template-columns: 62px minmax(0,1fr); }
  .match-actions { grid-column: 1 / -1; justify-content: stretch; }
  .match-actions button { flex: 1; }
}

@media (max-width: 680px) {
  .platforms-coming-soon { width: min(100%, 360px); }
  body { font-size: 15px; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .app-header { height: calc(72px + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top); padding-inline: 12px; }
  .app-brand { gap: 8px; }
  .app-brand img { width: 58px; height: 58px; border-radius: 14px; }
  .app-brand b { font-size: 17px; }
  .app-brand small { font-size: 8px; }
  .app-tools { gap: 7px; }
  .language-select, .icon-button { min-height: 43px; border-radius: 14px; }
  .app-language-trigger { min-width: 88px; min-height: 43px; gap: 7px; padding: 0 8px; border-radius: 14px; }
  .app-language-menu { position: absolute; top: calc(100% + 8px); right: 0; width: min(250px, calc(100vw - 16px)); max-height: calc(100dvh - 88px - env(safe-area-inset-top)); overflow-y: auto; }
  .language-flag { width: 26px; height: 18px; }
  .language-code { font-size: 14px; }
  .sound-button { font-size: 25px; }
  .contact-tool { min-width: 61px; min-height: 43px; gap: 4px; padding: 0 7px; border-radius: 14px; font-size: 9px; }
  .contact-tool span { width: 21px; height: 21px; font-size: 13px; }
  #root { min-height: calc(100dvh - 72px - env(safe-area-inset-top)); }
  .auth-view { width: min(100% - 24px, 560px); padding: 24px 0 22px; }
  .auth-intro { grid-template-columns: 94px 1fr; gap: 16px; }
  .auth-intro img { border-radius: 24px; }
  .auth-intro h1 { font-size: clamp(30px, 9.2vw, 44px); }
  .auth-intro p:not(.eyebrow) { margin-top: 12px; font-size: 15px; }
  .auth-intro .eyebrow { font-size: 9px; }
  .auth-panel { padding: 18px; border-radius: 22px; }
  .auth-mode-branding { margin-bottom: 18px; padding-inline: 0; }
  .auth-mode-copy h2 { font-size: clamp(24px, 7.4vw, 31px); }
  .auth-mode-copy > p { font-size: 13px; }
  .auth-free-badge { width: min(230px, 88%); }
  .future-store-buttons { width: min(174px, 100%); grid-template-columns: 1fr; margin-inline: auto; gap: 8px; }
  .future-store-button { min-height: 50px; }
  .main-app { width: 100%; min-height: calc(100dvh - 72px - env(safe-area-inset-top) - 70px); margin: 0; display: block; }
  .app-sidebar { display: none; }
  .app-content { min-height: calc(100dvh - 72px - env(safe-area-inset-top) - 70px); border: 0; border-radius: 0; background: rgba(2,5,13,.55); box-shadow: none; backdrop-filter: none; }
  .app-view { width: 100%; min-width: 0; max-width: 100%; padding: 26px 16px 34px; overflow-wrap: break-word; }
  .view-heading { align-items: center; gap: 12px; margin-bottom: 22px; }
  .view-heading h1 { font-size: 31px; }
  .view-heading .secondary-button { min-height: 42px; padding: 0 12px; font-size: 10px; }
  .view-lead { font-size: 14px; }
  .progress-card { grid-template-columns: 94px minmax(0,1fr); gap: 18px; padding: 20px 16px; }
  .ring-progress { width: 94px; }
  .ring-progress span { font-size: 18px; }
  .progress-card h2 { font-size: 20px; }
  .feature-card { min-height: 105px; padding: 16px; }
  .notices-card, .invite-card { align-items: stretch; flex-direction: column; }
  .quiz-intro, .quiz-complete { min-height: 430px; padding: 24px 10px; }
  .quiz-card { min-height: 510px; padding: 22px 16px; }
  .quiz-card h2 { font-size: 25px; }
  .answer-option { min-height: 72px; grid-template-columns: 37px minmax(0, 1fr); gap: 11px; padding: 12px 13px; font-size: 16px; line-height: 1.43; }
  .answer-emoji { width: 37px; height: 37px; border-radius: 11px; font-size: 20px; }
  .quiz-controls > button { flex: 1; }
  .match-card { grid-template-columns: 58px minmax(0,1fr); padding: 14px; }
  .match-card .avatar { width: 58px; height: 58px; }
  .chat-room { height: calc(100dvh - 72px - env(safe-area-inset-top) - 70px); min-height: 0; margin: -26px -16px -34px; }
  .chat-room-header { grid-template-columns: 42px 43px minmax(0,1fr); padding: 10px; }
  .chat-room-header .icon-button { min-width: 40px; min-height: 40px; }
  .chat-actions { grid-column: 1 / -1; justify-content: flex-end; margin-top: -5px; }
  .message-list { padding: 17px 12px; }
  .message { max-width: 88%; font-size: 14px; }
  .message-form { padding: 10px; padding-bottom: max(10px, env(safe-area-inset-bottom)); }
  .message-form .primary-button { width: 74px; padding: 0 10px; }
  .photo-editor { align-items: flex-start; flex-direction: column; }
  .profile-photo { width: 104px; height: 104px; }
  .plan-choice-grid { display: block; }
  .plan-choice-grid .plan-choice { display: none; width: 100%; max-width: 360px; margin-inline: auto; border-radius: 20px; }
  .plan-choice-grid .plan-choice.is-panel-active { display: block; animation: view-in .24s ease both; }
  .premium-claim-fix b { font-size: clamp(11px, 4.1vw, 19px); }
  .app-plan-switcher, .plans-switcher { width: 100%; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 3px; margin-bottom: 19px; }
  .plans-switcher .plan-shortcut { width: 100%; min-width: 0; }
  .plan-shortcut { min-height: 0; padding: 0; border-radius: 999px; }
  .plan-shortcut small { font-size: 7px; }
  .plan-shortcut b { font-size: clamp(10px, 3.1vw, 13px); }
  .plan-status-card { align-items: stretch; flex-direction: column; gap: 8px; }
  .plan-status-card > p { text-align: left; }
  .plan-price-pill { font-size: 13px; }
  .referral-panel { padding: 19px 16px; border-radius: 21px; }
  .referral-heading { grid-template-columns: 54px minmax(0,1fr); gap: 13px; }
  .referral-heading > span { width: 54px; height: 54px; border-radius: 16px; font-size: 19px; }
  .referral-heading h2 { font-size: 21px; }
  .referral-heading p:not(.eyebrow) { font-size: 13px; }
  .referral-stats { gap: 7px; }
  .referral-stats span { display: grid; gap: 1px; padding: 10px; }
  .referral-actions { display: grid; grid-template-columns: 1fr; }
  .invite-plan-dialog .dialog-actions { grid-template-columns: 1fr; }
  .invite-plan-dialog .primary-button { grid-row: 1; }
  .mobile-nav { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(6, 1fr); min-height: calc(74px + env(safe-area-inset-bottom)); padding: 6px 3px env(safe-area-inset-bottom); border-top: 1px solid rgba(0,232,255,.25); background: linear-gradient(100deg, rgba(2,12,24,.98), rgba(10,5,24,.98)); box-shadow: 0 -12px 38px rgba(0,0,0,.45); backdrop-filter: blur(22px); }
  .mobile-nav button { position: relative; display: grid; place-items: center; align-content: center; gap: 2px; min-width: 0; margin: 0 1px; border: 1px solid transparent; border-radius: 13px; background: transparent; color: #9fb2c7; cursor: pointer; }
  .mobile-nav button span { width: 27px; height: 27px; display: grid; place-items: center; }
  .mobile-nav button span svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.85; stroke-linecap: round; stroke-linejoin: round; }
  .mobile-nav button b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; font-size: 8px; font-weight: 900; letter-spacing: .015em; text-transform: uppercase; }
  .mobile-nav button.is-active { border-color: rgba(0,232,255,.28); color: white; background: linear-gradient(145deg, rgba(0,232,255,.16), rgba(255,22,135,.13)); box-shadow: inset 0 1px rgba(255,255,255,.08), 0 0 20px rgba(0,232,255,.08); }
  .mobile-nav button.is-active span { color: var(--cyan); filter: drop-shadow(0 0 7px rgba(0,232,255,.55)); }
  .mobile-nav i { top: 1px; right: 11%; }
  .toast { left: 12px; right: 12px; bottom: calc(82px + env(safe-area-inset-bottom)); max-width: none; text-align: center; }
}

@media (max-width: 390px) {
  .app-brand span { display: none; }
  .app-header { padding-inline: 8px; }
  .app-brand img { width: 53px; height: 53px; }
  .app-tools { gap: 5px; }
  .contact-tool { min-width: 43px; padding: 0; }
  .contact-tool b { display: none; }
  .auth-intro { display: block; text-align: center; }
  .auth-intro img { width: 110px; margin: 0 auto 16px; }
  .auth-intro p:not(.eyebrow) { font-size: 14px; }
  .progress-card { grid-template-columns: 1fr; text-align: center; }
  .ring-progress { margin-inline: auto; }
  .match-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .plan-shortcut b { font-size: 9px; }
  .referral-heading { grid-template-columns: 1fr; text-align: center; }
  .referral-heading > span { margin-inline: auto; }
  .mobile-nav button b { font-size: 7.5px; }
}

@media (max-width: 480px) {
  .app-brand span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .app-ribbons { display: none; }
}
