/*
 * Public/guest-only stylesheet experiment.
 * Scope: static SEO landing pages, login, registration, public forum.
 * This file is intentionally standalone and does not import assets/style.css.
 */

:root {
  color-scheme: dark;
  --bg: #050607;
  --surface: #050607;
  --surface-2: #101318;
  --line: #46505c;
  --text: #fff;
  --muted: #d4dbe5;
  --green: #00ee30;
  --blue: #35a7ff;
  --orange: #ffb800;
  --font-vietnamese: "Times New Roman", Times, Arial, serif;
  --font-teen: "Times New Roman", Times, Arial, serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  font-family: var(--font-vietnamese) !important;
}

html { scroll-behavior: auto; scrollbar-gutter: stable; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: #000;
  color: var(--text);
  font-family: var(--font-vietnamese);
  font-size: 16px;
  line-height: 1.6;
}

body.modal-open { overflow: hidden; }
[hidden] { display: none !important; }
.auth-guest main .view:not([data-page="landing"]):not([data-page="login"]):not([data-page="register"]):not([data-page="public-forum"]):not([data-page="public-dating"]) { display: none !important; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
i[data-lucide] { display: inline-block; width: 1em; height: 1em; flex: 0 0 1em; }

.ambient {
  position: fixed;
  z-index: -1;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .09;
  pointer-events: none;
}

.ambient-one { top: -180px; left: 16%; background: #1e7fff; }
.ambient-two { right: 12%; bottom: -220px; background: #ff3f99; }

.app-shell {
  width: min(100%, 720px);
  min-height: 100vh;
  margin-inline: auto;
  border-inline: 1px solid #16191e;
  background: rgba(4, 5, 7, .96);
  box-shadow: 0 0 80px rgba(0, 0, 0, .8);
}

.public-shell { min-height: 100vh; }
.site-header { border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #202329, #111317 67%); }
.auth-guest .site-header { border-bottom: 0; }

.brand-row {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px 12px 11px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.public-brand { text-decoration: none; }
.brand-mark {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: transparent;
  filter: drop-shadow(0 4px 8px rgba(75, 152, 255, .24));
}

.brand strong {
  display: block;
  color: #f7f9fc;
  font-family: var(--font-teen) !important;
  font-size: 23px;
  line-height: 1.05;
  letter-spacing: .025em;
  text-shadow: 0 0 12px rgba(255, 255, 255, .22);
}

.brand small { display: block; margin-top: 2px; color: var(--orange); font-size: 11px; }
.brand small b { color: var(--blue); }

main { min-height: 600px; padding: 8px 0 0; }
.view { display: none; animation: public-fade-in .22s ease; }
.view.active { min-height: 570px; display: flex; flex-direction: column; }
@keyframes public-fade-in { from { opacity: .45; transform: translateY(3px); } }

.panel {
  margin: 0 0 9px;
  border-top: 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.view > .panel:last-child { border-bottom: 0; }
.panel-title {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 9px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(#202329, #181b20);
  color: var(--green);
  font-family: var(--font-teen) !important;
  font-size: 16px;
  font-weight: 700;
  text-shadow: 0 0 7px rgba(85, 255, 119, .22);
}

.panel-title > span { display: flex; align-items: center; gap: 6px; }
.panel-title svg { width: 16px; height: 16px; }

.primary-button {
  width: 100%;
  min-height: 39px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid #367fe0;
  border-radius: 4px;
  background: #1769d7;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.primary-button:hover { background: #2479e7; }
.primary-button svg { width: 15px; height: 15px; }
button { transition: color .16s ease, background-color .16s ease, border-color .16s ease, box-shadow .16s ease, filter .16s ease, opacity .16s ease, transform .16s ease; }
button svg { transform-origin: center; transition: color .16s ease, fill .16s ease, transform .16s ease; }
button:focus-visible { outline: 2px solid rgba(87, 166, 255, .72); outline-offset: 2px; }

@media (hover: hover) and (pointer: fine) {
  button:not(:disabled):hover { filter: brightness(1.18) saturate(1.08) drop-shadow(0 0 5px rgba(87, 166, 255, .2)); }
  button:not(:disabled):hover svg { transform: scale(1.09); }
}

button:not(:disabled):active { filter: brightness(.92); }
button:not(:disabled):active svg { transform: scale(.95); }

/* SEO landing pages */
.view[data-page="landing"], .view[data-page="login"], .view[data-page="register"] { width: 100%; }
.auth-panel { width: 100%; max-width: none; min-height: calc(100vh - 128px); margin: 0; overflow: hidden; border-inline: 0; border-radius: 0; background: #050607; }
.auth-welcome-title { min-height: 42px; padding: 8px 13px; border-bottom: 1px solid #3b4047; background: linear-gradient(180deg, #292b30, #1d1f23); font-size: 15px; }
.auth-welcome-title span { display: inline-flex; align-items: center; gap: 6px; color: #24df48; font-weight: 800; }
.auth-welcome-title svg { width: 17px; height: 17px; color: #ff4f64; fill: currentColor; }
.auth-stage { min-height: 620px; padding: 18px 14px 30px; background: radial-gradient(circle at 50% 0, rgba(70, 120, 180, .08), transparent 36%), #050607; }
.auth-register-stage { min-height: 760px; }
.auth-hero { margin-bottom: 15px; text-align: center; }
.auth-hero strong { display: block; color: #ffad12; font-family: var(--font-teen) !important; font-size: 17px; line-height: 1.45; }
.auth-hero span { display: block; margin-top: 1px; color: #ff8bd5; font-size: 17px; letter-spacing: 1px; text-shadow: 0 0 8px rgba(255, 86, 190, .35); }

.seo-landing-stage { display: grid; min-height: 620px; align-content: center; gap: 18px; }
.seo-landing-card { width: min(100%, 760px); margin: 0 auto; padding: 30px 24px; border: 1px solid #3a4048; border-radius: 12px; background: linear-gradient(145deg, rgba(29,34,42,.98), rgba(8,10,13,.98)); box-shadow: 0 22px 58px rgba(0,0,0,.45); text-align: center; }
.seo-landing-kicker { display: inline-block; margin-bottom: 10px; color: #ffad12; font-size: 12px; font-weight: 900; letter-spacing: 1.5px; }
.seo-landing-card h1 { max-width: 680px; margin: 0 auto; color: #fff; font-family: var(--font-vietnamese) !important; font-size: clamp(26px, 5vw, 42px); line-height: 1.25; text-wrap: balance; }
.seo-landing-card > p { max-width: 650px; margin: 15px auto 0; color: #c4ceda; font-size: 14px; line-height: 1.75; }
.seo-landing-card > small { display: block; margin-top: 14px; color: #788696; font-size: 10px; }
.seo-landing-actions { display: grid; width: min(100%, 430px); grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: center; gap: 10px; margin: 22px auto 0; }
.seo-landing-actions a { display: inline-flex; min-width: 0; min-height: 44px; align-items: center; justify-content: center; gap: 7px; padding: 10px 18px; border: 1px solid #465568; border-radius: 7px; background: #171c23; color: #e8eef7; font-size: 13px; font-weight: 900; text-decoration: none; }
.seo-landing-actions a:hover { border-color: #6da7eb; background: #1d2733; color: #fff; }
.seo-landing-actions a svg { width: 17px; height: 17px; }
.seo-landing-actions .seo-landing-primary { border-color: #2f7ee3; background: linear-gradient(180deg, #347cf0, #2569db); color: #fff; }
.seo-home-card { width: min(100%, 680px); padding: 38px 28px 30px; }
.seo-home-card > p { max-width: 560px; font-size: 15px; }
.seo-home-entry-card { width: min(100%, 560px); padding: 34px 28px 30px; }
.seo-home-entry-card h1 { font-size: clamp(26px, 5vw, 34px); }
.seo-home-auth-actions { display: grid; width: min(100%, 410px); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 24px auto 0; }
.seo-home-auth-actions a { min-width: 0; min-height: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 16px; border: 1px solid #465568; border-radius: 8px; background: #171c23; color: #e8eef7; font-size: 15px; font-weight: 900; line-height: 1.25; text-decoration: none; }
.seo-home-auth-actions a:hover { border-color: #72adff; background: #1d2733; color: #fff; }
.seo-home-auth-actions a:active { transform: translateY(1px); }
.seo-home-auth-actions a.is-login { border-color: #438df0; background: linear-gradient(180deg, #347ff3, #2265d6); box-shadow: 0 9px 24px rgba(34, 101, 214, .24); color: #fff; }
.seo-home-auth-actions a.is-login:hover { background: linear-gradient(180deg, #438cf8, #2c70df); }
.seo-home-auth-actions svg { width: 19px; height: 19px; }
.seo-home-primary-action { width: min(100%, 390px); margin: 24px auto 0; }
.seo-home-primary-action > a { display: grid; min-height: 58px; grid-template-columns: 22px auto; align-items: center; justify-content: center; column-gap: 9px; padding: 10px 20px; border: 1px solid #438df0; border-radius: 8px; background: linear-gradient(180deg, #347ff3, #2265d6); box-shadow: 0 9px 24px rgba(34, 101, 214, .24); color: #fff; text-align: center; text-decoration: none; }
.seo-home-primary-action > a:hover { border-color: #72adff; background: linear-gradient(180deg, #438cf8, #2c70df); }
.seo-home-primary-action svg { width: 22px; height: 22px; grid-row: 1 / 3; }
.seo-home-primary-action span { font-size: 15px; font-weight: 900; line-height: 1.25; }
.seo-home-primary-action small { margin-top: 2px; color: #dbeaff; font-size: 10px; line-height: 1.3; }
.seo-home-google { display: grid; width: min(100%, 390px); gap: 8px; margin: 14px auto 0; }
.seo-home-google > span { display: flex; align-items: center; gap: 9px; color: #7f8d9e; font-size: 10px; }
.seo-home-google > span::before, .seo-home-google > span::after { height: 1px; flex: 1; background: #303842; content: ""; }
.seo-home-login { width: min(100%, 390px); margin: 10px auto 0 !important; }
.seo-home-login a { display: flex; min-height: 46px; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border: 1px solid #465568; border-radius: 8px; background: #171c23; color: #e8eef7; font-size: 13px; font-weight: 900; line-height: 1.35; text-decoration: none; }
.seo-home-login a:hover { border-color: #6da7eb; background: #1d2733; color: #fff; }
.seo-home-login svg { width: 17px; height: 17px; }
.seo-home-benefits { width: min(100%, 760px); gap: 0; padding: 0 8px; }
.seo-home-benefits article { position: relative; padding: 14px 18px; border: 0; border-radius: 0; background: transparent; }
.seo-home-benefits article + article::before { position: absolute; top: 16px; bottom: 16px; left: 0; width: 1px; background: #29313a; content: ""; }
.seo-home-benefits article > svg { width: 19px; height: 19px; flex-basis: 19px; color: #68abff; }
.seo-home-benefits h2 { font-size: 12px; }
.seo-home-benefits p { font-size: 10px; }
.seo-home-link-section, .seo-home-guide-links { width: min(100%, 760px); margin: 0 auto; text-align: center; }
.seo-home-link-section h2 { margin: 0 0 8px; color: #8d9aaa; font-size: 11px; font-weight: 800; }
.seo-home-link-section nav, .seo-home-guide-links nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; }
.seo-home-link-section a, .seo-home-guide-links a { min-height: 28px; display: inline-flex; align-items: center; color: #8db7e4; font-size: 11px; line-height: 1.35; text-decoration: underline; text-decoration-color: rgba(141,183,228,.42); text-underline-offset: 3px; }
.seo-home-link-section a:hover, .seo-home-guide-links a:hover { color: #fff; text-decoration-color: currentColor; }
.seo-home-guide-links { margin-top: -6px; color: #8391a1; }
.seo-home-guide-links summary { width: max-content; margin: 0 auto; padding: 5px 2px; color: #7f91a4; cursor: pointer; font-size: 10px; text-decoration: underline; text-underline-offset: 3px; }
.seo-home-guide-links[open] summary { margin-bottom: 10px; }
.seo-home-guide-links nav { padding: 0 12px 8px; }
.seo-home-more { width: min(100%, 760px); margin: 0 auto; }
.seo-home-more > summary { width: max-content; min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 auto; padding: 10px 17px; border: 1px solid #465568; border-radius: 8px; background: #11161d; color: #cbd9e8; cursor: pointer; font-weight: 800; list-style: none; }
.seo-home-more > summary::-webkit-details-marker { display: none; }
.seo-home-more > summary:hover { border-color: #6da7eb; background: #18202a; color: #fff; }
.seo-home-more > summary:focus-visible { outline: 2px solid #78b8ff; outline-offset: 3px; }
.seo-home-more > summary svg { width: 17px; height: 17px; transition: transform .16s ease; }
.seo-home-more[open] > summary svg { transform: rotate(180deg); }
.seo-home-more-content { display: grid; gap: 18px; margin-top: 16px; padding: 22px 18px 18px; border-top: 1px solid #29313a; }
.seo-home-intro { max-width: 650px; margin: 0 auto; text-align: center; }
.seo-home-intro h2 { margin: 0; color: #f1f5fa; font-size: 22px; line-height: 1.35; }
.seo-home-intro p { margin: 8px auto 0; color: #aebbc9; }
.seo-home-public-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; padding-top: 4px; border-top: 1px solid #29313a; }
.seo-home-public-links a { min-height: 40px; display: inline-flex; align-items: center; padding: 7px 3px; color: #99b9da; font-weight: 800; text-decoration: none; }
.seo-home-public-links a:hover { color: #fff; }
.seo-home-public-links a:focus-visible { outline: 2px solid #78b8ff; outline-offset: 3px; }
.seo-home-public-note { display: block; color: #778594; text-align: center; }
.public-home-simple main { min-height: calc(100vh - 67px); padding-top: 0; }
.public-home-simple .auth-panel { min-height: calc(100vh - 67px); }
.public-home-simple .seo-landing-stage { min-height: calc(100vh - 109px); padding-block: 28px; align-content: center; }
.seo-landing-panel .auth-welcome-title svg { color: #24df48; fill: none; }
.public-home-simple .home-intro-stage { min-height: auto; padding: 16px 14px 34px; align-content: start; }
.home-intro { display: grid; width: min(100%, 680px); margin: 0 auto; gap: 14px; }
.home-intro-hero,
.home-intro-feature,
.home-intro-highlights,
.home-intro-links { border: 1px solid #2f3e54; border-radius: 11px; background: #111620; }
.home-intro-hero { padding: 27px 24px; text-align: center; background: linear-gradient(145deg, #171d29, #0d1118); }
.home-intro-hero h1 { max-width: 620px; margin: 0 auto; color: #ff9f1a; font-size: clamp(24px, 5vw, 34px); line-height: 1.3; text-wrap: balance; }
.home-intro-hero > p { max-width: 610px; margin: 13px auto 0; color: #bdc8d8; font-size: 13px; line-height: 1.75; }
.home-intro-hero > small { display: inline-flex; align-items: center; gap: 6px; margin-top: 15px; color: #7f8ea1; font-size: 10px; }
.home-intro-hero > small svg { width: 14px; height: 14px; }
.home-intro-feature { padding: 20px; }
.home-intro-feature > header { display: flex; align-items: flex-start; gap: 12px; }
.home-intro-feature > header > span { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border-radius: 10px; background: #17355f; color: #79baff; }
.home-intro-feature > header > span svg { width: 22px; height: 22px; }
.home-intro-feature h2,
.home-intro-highlights h2,
.home-intro-links > h2 { margin: 0; color: #edf4fd; font-size: 15px; line-height: 1.45; }
.home-intro-feature > header p { margin: 5px 0 0; color: #9baabc; font-size: 11px; line-height: 1.65; }
.home-intro-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.home-intro-feature-grid article { display: flex; align-items: flex-start; gap: 8px; padding: 12px; border: 1px solid #2c3746; border-radius: 8px; background: #0b0f15; }
.home-intro-feature-grid article > svg { width: 18px; height: 18px; flex: 0 0 18px; color: #67aefb; }
.home-intro-feature-grid h3 { margin: 0; color: #dfeafa; font-size: 11px; line-height: 1.45; }
.home-intro-feature-grid p { margin: 5px 0 0; color: #8594a6; font-size: 10px; line-height: 1.55; }
.home-intro-highlights { padding: 20px; }
.home-intro-highlights > header { display: flex; align-items: end; justify-content: space-between; gap: 14px; }
.home-intro-highlights > header > p { max-width: 320px; margin: 0; color: #8393a7; font-size: 10px; line-height: 1.55; text-align: right; }
.home-intro-highlights > div { display: grid; gap: 9px; margin-top: 14px; }
.home-intro-highlights article { display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: start; gap: 11px; padding: 13px; border: 1px solid #303a48; border-radius: 8px; background: #171b23; }
.home-intro-highlights article > span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 9px; background: #173962; color: #8fc7ff; }
.home-intro-highlights article > span svg { width: 18px; height: 18px; }
.home-intro-highlights h3 { margin: 0; color: #eef4fc; font-size: 12px; line-height: 1.45; }
.home-intro-highlights article p { margin: 4px 0 0; color: #93a2b5; font-size: 10px; line-height: 1.6; }
.home-intro-links { padding: 20px; }
.home-intro-links > nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 13px; }
.home-intro-links > nav > a { display: flex; min-width: 0; min-height: 62px; align-items: center; gap: 9px; padding: 11px; border: 1px solid #2c3949; border-radius: 8px; background: #0b1016; color: #dce9f8; text-decoration: none; transition: border-color .16s ease, background .16s ease; }
.home-intro-links > nav > a:hover { border-color: #5688bd; background: #111b26; }
.home-intro-links > nav > a > svg { width: 19px; height: 19px; flex: 0 0 19px; color: #66adfa; }
.home-intro-links > nav span { display: grid; min-width: 0; gap: 3px; }
.home-intro-links > nav strong { font-size: 11px; line-height: 1.35; }
.home-intro-links > nav small { color: #7f8fa2; font-size: 9px; line-height: 1.4; }
.home-intro-links .seo-home-public-links { margin-top: 15px; padding-top: 10px; }
.home-intro a:focus-visible { outline: 2px solid #78b8ff; outline-offset: 3px; }
.seo-landing-quick-room { width: min(100%, 430px); margin: 10px auto 0; }
.seo-landing-quick-room > a { display: flex; min-height: 44px; align-items: center; justify-content: center; gap: 7px; padding: 10px 18px; border: 1px solid #3b9a72; border-radius: 7px; background: linear-gradient(180deg, #173d31, #102b24); color: #a8f1cf; font-size: 13px; font-weight: 900; text-decoration: none; transition: .18s ease; }
.seo-landing-quick-room > a:hover { border-color: #63d9a6; background: linear-gradient(180deg, #1d4c3d, #14372e); color: #fff; }
.seo-landing-quick-room > a svg { width: 18px; height: 18px; }
.seo-landing-quick-room > small { display: block; margin-top: 8px; color: #8d9daf; font-size: 10px; line-height: 1.5; }

.seo-landing-features { display: grid; width: min(100%, 900px); margin: 0 auto; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.seo-landing-features article, .seo-landing-features > section { display: flex; align-items: flex-start; gap: 10px; padding: 15px; border: 1px solid #313843; border-radius: 9px; background: #101318; }
.seo-landing-features article > svg, .seo-landing-features > section > svg { width: 22px; height: 22px; flex: 0 0 22px; color: #63a9ff; }
.seo-landing-features h2 { margin: 0; color: #edf3fb; font-size: 13px; line-height: 1.4; }
.seo-landing-features p { margin: 5px 0 0; color: #8f9cac; font-size: 11px; line-height: 1.55; }

.seo-public-article { display: grid; width: 100%; gap: 18px; }
.seo-public-breadcrumb { display: flex; width: min(100%, 900px); align-items: center; gap: 8px; margin: 0 auto -6px; color: #8391a1; font-size: 11px; line-height: 1.45; }
.seo-public-breadcrumb a { min-height: 44px; display: inline-flex; align-items: center; color: #a9c8ea; font-weight: 800; text-decoration: none; }
.seo-public-breadcrumb span[aria-current="page"] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seo-public-copy, .seo-public-faq { width: min(100%, 900px); margin: 0 auto; padding: 20px; border: 1px solid #313843; border-radius: 10px; background: #101318; }
.seo-public-copy { display: grid; gap: 12px; }
.seo-public-copy p { margin: 0; color: #aeb9c7; font-size: 12px; line-height: 1.75; }
.seo-public-sections > section { display: grid; gap: 7px; }
.seo-public-sections > section + section { padding-top: 14px; border-top: 1px solid #27303a; }
.seo-public-sections h2 { margin: 0; color: #e4edf8; font-size: 14px; line-height: 1.45; }
.seo-public-faq > h2 { margin: 0 0 12px; color: #edf3fb; font-size: 16px; }
.seo-public-faq > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.seo-public-faq article { padding: 13px; border: 1px solid #2b333d; border-radius: 8px; background: #0b0e12; }
.seo-public-faq h3 { margin: 0; color: #dce8f7; font-size: 12px; line-height: 1.45; }
.seo-public-faq p { margin: 7px 0 0; color: #8f9cac; font-size: 11px; line-height: 1.6; }

.seo-public-links { display: flex; width: min(100%, 900px); flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 auto; }
.seo-public-links a { display: inline-flex; min-height: 44px; align-items: center; padding: 9px 12px; border: 1px solid #34404e; border-radius: 999px; background: #12171d; color: #a9c8ea; font-size: 11px; font-weight: 800; line-height: 1.35; text-decoration: none; }
.seo-public-links a:hover { border-color: #5b8fc6; color: #fff; }
.seo-public-links a[aria-current="page"] { border-color: #4f83bd; background: #18304a; color: #fff; }
.seo-related-links { margin-top: -6px; }
.seo-related-links::before { align-self: center; color: #7f8fa2; content: "Đọc tiếp:"; font-size: 11px; font-weight: 800; }
.seo-home-links { margin-top: -4px; }

.public-quick-links { display: grid; width: min(100%, 900px); gap: 10px; margin: 0 auto; }
.public-quick-links h2 { margin: 0; color: #edf3fb; font-size: 14px; }
.public-quick-links > div { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 8px; }
.public-quick-links a { display: flex; min-width: 0; min-height: 60px; align-items: center; gap: 8px; padding: 11px; border: 1px solid #34404e; border-radius: 9px; background: #11161c; color: #dbe8f7; text-decoration: none; transition: .18s ease; }
.public-quick-links a:hover { transform: translateY(-1px); border-color: #5b8fc6; background: #17212b; }
.public-quick-links a.is-forum { border-color: #356b55; background: #102019; }
.public-quick-links a > svg { width: 19px; height: 19px; flex: 0 0 19px; color: #69adff; }
.public-quick-links a.is-forum > svg { color: #52d98f; }
.public-quick-links a.is-dating { border-color: #8d3d4b; background: linear-gradient(145deg, #241217, #151116); }
.public-quick-links a.is-dating > svg { color: #ff6478; }
.public-quick-links a.is-dating strong { color: #ff8796; }
.public-quick-links span { display: grid; min-width: 0; gap: 2px; }
.public-quick-links strong { font-size: 12px; line-height: 1.35; }
.public-quick-links small { color: #8392a3; font-size: 10px; line-height: 1.4; }

/* Authentication */
.auth-form { width: min(100%, 420px); margin: 0 auto; overflow: hidden; border: 1px solid #3a4048; border-radius: 5px; background: #050607; box-shadow: 0 18px 42px rgba(0, 0, 0, .44); }
.auth-register-form { width: min(100%, 520px); }
.auth-card-title { display: flex; min-height: 44px; align-items: center; justify-content: center; gap: 7px; padding: 8px 12px; border-bottom: 1px solid #3a4048; background: linear-gradient(180deg, #282a2f, #1d1f23); color: #edf1f7; font-family: var(--font-teen) !important; font-size: 18px; text-shadow: 0 1px 1px #000; }
.auth-card-title svg { width: 18px; height: 18px; color: #dce8ff; }
.auth-form-body { padding: 12px; }
.auth-feedback { display: flex; align-items: flex-start; gap: 9px; margin: 0 0 12px; padding: 10px 11px; border: 1px solid #70404a; border-radius: 7px; background: #251319; color: #ffdce0; animation: auth-feedback-in .2s ease-out; }
.auth-feedback > svg { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 1px; color: #ff7482; }
.auth-feedback > div { min-width: 0; }
.auth-feedback strong, .auth-feedback span { display: block; }
.auth-feedback strong { color: #fff0f2; font-size: 12px; line-height: 1.35; }
.auth-feedback span { margin-top: 2px; color: #e8b8bf; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.auth-feedback.loading { border-color: #365d83; background: #101d29; }
.auth-feedback.loading > svg { color: #72b9ff; animation: auth-feedback-spin 1s linear infinite; }
.auth-feedback.loading strong { color: #e5f2ff; }
.auth-feedback.loading span { color: #a8c8e6; }
.auth-feedback.success { border-color: #347049; background: #102218; }
.auth-feedback.success > svg { color: #57dc7a; }
.auth-feedback.success strong { color: #e5ffec; }
.auth-feedback.success span { color: #a9d9b6; }
@keyframes auth-feedback-in { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes auth-feedback-spin { to { transform: rotate(360deg); } }

.auth-form label { display: block; margin-bottom: 11px; color: #25dc45; font-size: 15px; font-weight: 700; }
.auth-form label small { display: block; margin-top: 5px; color: #7f8996; font-size: 13px !important; font-weight: 400; line-height: 1.45; }
.auth-form label small.is-error { color: #ff8585; }
.auth-form input, .auth-form select { display: block; width: 100%; min-height: 42px; margin-top: 4px; padding: 9px 10px; border: 1px solid #353b44; border-radius: 4px; outline: 0; background: #17191e; color: #fff; font-size: 14px; }
.auth-form input[aria-invalid="true"] { border-color: #d95858; box-shadow: 0 0 0 2px rgba(217, 88, 88, .13); }
.auth-form input::placeholder { color: #aeb9c7; opacity: 1; }
.auth-form input:focus, .auth-form select:focus { border-color: #5799df; box-shadow: 0 0 0 2px rgba(87,166,255,.12); background: #1a1d22; }
.auth-identity-row { display: grid; grid-template-columns: minmax(0, 1fr) 122px; gap: 4px; align-items: end; }
.auth-password-field { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 4px; align-items: end; }
.auth-password-field button { display: grid; width: 44px; height: 44px; margin-top: 4px; place-items: center; border: 1px solid #353b44; border-radius: 4px; background: #17191e; color: #d7e0ec; cursor: pointer; }
.auth-password-field button:hover { border-color: #5799df; color: #fff; }
.auth-password-field button svg { width: 17px; height: 17px; }
.auth-options { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -1px 0 13px; }
.auth-check { display: inline-flex !important; align-items: center; gap: 6px; margin: 0 !important; font-family: inherit !important; font-size: 13px !important; cursor: pointer; }
.auth-check input { width: 15px !important; min-height: 15px !important; margin: 0 !important; padding: 0 !important; accent-color: #2680ed; }
.auth-options > button, .auth-switch button { min-height: 44px; display: inline-flex; align-items: center; padding: 0 4px; border: 0; background: transparent; color: #ffad12; cursor: pointer; font-size: 13px !important; font-weight: 800; }
.auth-options > button:hover, .auth-switch button:hover { color: #ffd36b; text-decoration: underline; }
.auth-submit { width: 100%; min-height: 44px; margin-top: 1px; border-radius: 4px; background: linear-gradient(180deg, #347cf0, #2569db); font-size: 15px; }
.auth-submit svg { width: 17px; height: 17px; }
.auth-divider { display: flex; align-items: center; gap: 9px; margin: 18px 0 10px; color: #c7cdd7; font-size: 13px !important; }
.auth-divider::before, .auth-divider::after { height: 1px; flex: 1; border-top: 1px dashed #68717c; content: ""; }
.auth-switch { margin: 0; color: #25dc45; text-align: center; font-size: 13px !important; }
.public-guest .auth-switch a { color: #78b8ff; font-weight: 800; text-decoration: none; }
.google-action { display: grid; width: min(100%, 396px); min-width: 0; gap: 7px; margin-inline: auto; }
.seo-landing-actions > .google-action { grid-column: 1 / -1; }
.auth-google-action { margin-top: 10px; }
.google-action-feedback { margin: 0; }
.auth-provider-shell { display: block; min-height: 44px; }
.auth-provider-retry { display: flex; width: 100%; min-height: 44px; align-items: center; justify-content: center; gap: 11px; padding: 8px 14px; border: 1px solid #747d88; border-radius: 4px; background: #fff; color: #202124; cursor: pointer; font: 500 14px/1.2 Arial, sans-serif; }
.auth-provider-retry[hidden] { display: none; }
.auth-provider-retry:hover { border-color: #5f6368; background: #f8faff; }
.auth-provider-retry:disabled { cursor: wait; opacity: .7; }
.auth-provider-retry > span { display: grid; width: 20px; height: 20px; place-items: center; border-radius: 50%; color: #4285f4; font-size: 18px; font-weight: 900; }
.auth-provider-retry > strong { font: inherit; }
.google-signin-button { display: flex; min-height: 44px; align-items: center; justify-content: center; overflow: hidden; border-radius: 4px; }
.google-signin-button > div { max-width: 100%; }
.google-registration-note { display: flex; align-items: flex-start; gap: 9px; padding: 9px 10px; border: 1px solid #285d45; border-radius: 5px; background: #0e2118; color: #c8f5d7; }
.google-registration-note > svg { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 1px; color: #56db84; }
.google-registration-note span, .google-registration-note strong, .google-registration-note small { display: block; min-width: 0; }
.google-registration-note strong { color: #eafff0; font-size: 12px; }
.google-registration-note small { margin-top: 2px; color: #9dd6b0 !important; font-size: 11px !important; font-weight: 500 !important; overflow-wrap: anywhere; }
.google-registration-note { margin: 0 0 12px; }
.auth-form-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

.captcha-row { display: grid; grid-template-columns: minmax(90px, 1fr) 155px 44px; gap: 6px; align-items: end; }
.captcha-row input { text-transform: uppercase; letter-spacing: 3px; font-weight: 800; }
.captcha-image { display: block; width: 155px; height: 42px; border: 1px solid #3a424e; border-radius: 4px; object-fit: cover; }
.captcha-row button { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid #3a424e; border-radius: 4px; background: #17191e; color: #d6dee8; cursor: pointer; }
.captcha-row button:hover { border-color: #4c7db1; color: var(--green); }
.captcha-row button svg { width: 16px; }

.registration-terms-trigger { min-height: 43px; margin: 2px 0 12px !important; padding: 8px 10px; border: 1px solid #3a424e; border-radius: 5px; background: #11151a; color: #e6ebf2 !important; }
.registration-terms-trigger:hover { border-color: #55708e; background: #151a20; }
.registration-terms-trigger input { flex: 0 0 17px; width: 17px !important; min-height: 17px !important; pointer-events: none; }
.registration-terms-trigger span { line-height: 1.4; }
.registration-terms-trigger u { color: #ffbc45; text-underline-offset: 2px; }
#register-submit:disabled { cursor: not-allowed; filter: grayscale(.65); opacity: .48; }

/* Registration terms modal */
.modal-backdrop { position: fixed; z-index: 80; inset: 0; display: grid; place-items: center; padding: 14px; background: rgba(0,0,0,.78); backdrop-filter: blur(3px); }
.modal-card { width: min(100%, 520px); max-height: 86vh; overflow: auto; border: 1px solid #3b424d; border-radius: 5px; background: #0b0d10; box-shadow: 0 20px 70px rgba(0,0,0,.75); }
.modal-close { display: grid; width: 44px; height: 44px; min-width: 44px; min-height: 44px; place-items: center; border: 1px solid var(--line); border-radius: 3px; background: #16191e; color: #a9b2be; cursor: pointer; }
.modal-close svg { width: 14px; }
.registration-terms-backdrop { z-index: 120; }
.registration-terms-card { width: min(620px, calc(100vw - 22px)); max-height: calc(100vh - 28px); overflow: hidden; }
/* Match the effective legacy cascade: the later generic modal rule limits this card. */
.modal-card.registration-terms-card { width: min(100%, 520px); overflow: auto; }
.registration-terms-content { max-height: min(58vh, 520px); overflow: auto; overscroll-behavior: contain; padding: 14px; outline: 0; background: #101318; color: #d5dce6; font-size: 12px; line-height: 1.72; white-space: pre-wrap; scrollbar-color: #596574 #171b21; scrollbar-width: thin; }
.registration-terms-content:focus { box-shadow: inset 0 0 0 2px rgba(87,166,255,.18); }
.registration-terms-status { display: flex; align-items: center; gap: 6px; margin: 0; padding: 7px 10px; border-top: 1px solid #303741; border-bottom: 1px solid #303741; background: #15191f; color: #ffc45b; font-size: 10px; line-height: 1.4; }
.registration-terms-status svg { width: 14px; height: 14px; flex: 0 0 14px; }
.registration-terms-status.is-complete, .registration-terms-content[data-unlocked="1"] + .registration-terms-status { color: #62e47b; }
.registration-terms-actions { display: flex; justify-content: flex-end; gap: 7px; padding: 10px; background: #0d1014; }
.registration-terms-actions button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 7px 13px; border: 1px solid #3d4854; border-radius: 5px; background: #181d23; color: #c7d0db; cursor: pointer; font-size: 11px; font-weight: 800; }
.registration-terms-actions button svg { width: 15px; }
.registration-terms-actions .primary-button, #registration-terms-confirm { width: auto; min-width: 160px; border-color: #2c7d44; background: linear-gradient(180deg, #279247, #1d7136); color: #fff; }
.registration-terms-actions .primary-button:disabled, #registration-terms-confirm:disabled { cursor: not-allowed; filter: grayscale(.7); opacity: .45; }
.modal-backdrop :is(.modal-card, [role="dialog"]) > .panel-title { position: sticky; z-index: 120; top: 0; flex: 0 0 auto; box-shadow: 0 5px 14px rgba(0,0,0,.32); }
.modal-backdrop :is(.modal-card, [role="dialog"]) > .panel-title > .modal-close { position: relative; z-index: 2; flex: 0 0 auto; touch-action: manipulation; }

/* Public forum: deliberately visible; the v4.44.21 guest-hiding exception is mirrored above. */
.public-forum-view { width: 100%; }
.public-forum-panel { overflow: hidden; }
.public-forum-hero { display: flex; align-items: flex-start; gap: 14px; padding: 22px; border-bottom: 1px solid #313843; background: linear-gradient(145deg,#151b23,#0b0e12); }
.public-forum-hero > span { display: grid; width: 44px; height: 44px; flex: 0 0 44px; place-items: center; border-radius: 12px; background: #17365b; color: #78b8ff; }
.public-forum-hero > div { min-width: 0; }
.public-forum-hero > span svg { width: 24px; }
.public-forum-hero small { color: #ffad12; font-size: 9px; font-weight: 900; letter-spacing: 1.3px; }
.public-forum-hero h1 { margin: 4px 0 0; color: #f5f8fc; font-size: clamp(20px,4vw,30px); line-height: 1.35; overflow-wrap: anywhere; }
.public-forum-hero p { margin: 8px 0 0; color: #92a2b4; font-size: 11px; line-height: 1.6; }
.public-forum-list { display: grid; gap: 10px; padding: 18px; }
.public-forum-list article { border: 1px solid #303946; border-radius: 9px; background: #101419; }
.public-forum-list article > a { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 12px; padding: 15px; color: inherit; text-decoration: none; }
.public-forum-list article > a > div:only-child { grid-column: 1 / -1; }
.public-forum-list-image { width: 92px; height: 72px; border: 1px solid #34414f; border-radius: 7px; object-fit: cover; }
.public-forum-list h2 { margin: 0; color: #eaf2fc; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.public-forum-list p { margin: 7px 0 0; color: #93a2b2; font-size: 11px; line-height: 1.65; }
.public-forum-list footer { display: flex; gap: 14px; margin-top: 10px; color: #6f8193; font-size: 9px; }
.public-forum-topic { margin: 18px; padding: 20px; border: 1px solid #313b47; border-radius: 10px; background: #101419; }
.public-forum-topic-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 15px; color: #7f92a6; font-size: 9px; }
.public-forum-topic-meta span { display: flex; align-items: center; gap: 5px; }
.public-forum-topic-meta svg { width: 13px; }
.public-forum-content { color: #c8d2de; font-size: 12px; line-height: 1.85; overflow-wrap: anywhere; }
.public-forum-media { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin-top: 16px; }
.public-forum-media img, .public-forum-media video { width: 100%; max-height: 520px; border: 1px solid #303c49; border-radius: 8px; background: #050608; object-fit: contain; }
.public-forum-replies { display: grid; gap: 9px; margin: 18px; }
.public-forum-replies > h2 { margin: 0 0 3px; color: #eef5fc; font-size: 15px; }
.public-forum-replies article { padding: 14px; border: 1px solid #2e3741; border-radius: 8px; background: #0d1116; }
.public-forum-replies header { display: flex; justify-content: space-between; gap: 10px; color: #7890a7; font-size: 9px; }
.public-forum-replies strong { color: #bcd2e8; }
.public-forum-replies p { margin: 9px 0 0; color: #aebac8; font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }
.public-forum-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; padding: 0 18px 20px; }
.public-forum-actions .google-action { flex: 0 0 100%; }
.public-forum-actions a, .public-forum-empty a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 13px; border: 1px solid #3b4a5b; border-radius: 7px; color: #bdd8f4; font-size: 10px; font-weight: 900; text-decoration: none; }
.public-forum-actions a.primary { border-color: #3477ce; background: #2567bd; color: #fff; }
.public-forum-actions svg { width: 14px; }
.public-forum-empty { padding: 42px 18px; color: #8394a6; text-align: center; }
.public-forum-empty > svg { width: 34px; color: #5e82a9; }
.public-forum-empty h2 { margin: 10px 0 0; color: #dae6f3; font-size: 16px; }
.public-forum-empty p { margin: 7px 0 16px; font-size: 11px; }
.public-forum-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 0 18px 18px; }
.public-forum-pagination a { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid #34404d; border-radius: 6px; color: #a9c4df; font-size: 11px; text-decoration: none; }
.public-forum-pagination a.active { border-color: #4388df; background: #255e9f; color: #fff; }

/* A calmer editorial layout for the public dating forum. */
.public-guest .public-forum-view { font-family: Arial, sans-serif; }
.public-guest .public-forum-hero { padding: 32px 26px; gap: 16px; background: radial-gradient(ellipse at top right,rgba(91,71,139,.22),transparent 65%),linear-gradient(135deg,#171c29,#10151d); }
.public-guest .public-forum-hero > span { background: #302943; color: #d3b9ec; border: 1px solid #514061; border-radius: 15px; }
.public-guest .public-forum-hero small { color: #cbb4de; letter-spacing: 1.8px; }
.public-guest .public-forum-hero h1 { margin-top: 10px; font-size: clamp(23px,4vw,30px); letter-spacing: -.6px; line-height: 1.4; }
.public-guest .public-forum-hero p { color: #a4adbf; }
.public-forum-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 26px 24px 6px; }
.public-forum-section-heading small { color: #af95cc; font-size: 11px; letter-spacing: 1.6px; }
.public-forum-section-heading h2 { margin: 7px 0 0; color: #e9edf6; font-size: 18px; }
.public-forum-section-heading > span { color: #aeb9c9; font-size: 11px; border: 1px solid #343d4c; padding: 6px 9px; border-radius: 20px; white-space: nowrap; }
.public-guest .public-forum-list { gap: 14px; padding: 18px 24px 24px; }
.public-guest .public-forum-list article { border-color: #293342; border-radius: 16px; background: linear-gradient(125deg,#151c26,#111720); transition: border-color .18s,background .18s; }
.public-guest .public-forum-list article:hover { border-color: #75648e; background: #1a2130; }
.public-guest .public-forum-list article > a { gap: 18px; padding: 22px; }
.public-guest .public-forum-list article > a:focus-visible { outline: 2px solid #be9ce0; outline-offset: 3px; border-radius: 16px; }
.public-guest .public-forum-list-image { width: 112px; height: 112px; border-radius: 11px; border-color: #364052; }
.public-guest .public-forum-list h2 { line-height: 1.5; font-weight: 700; color: #f1edf8; }
.public-guest .public-forum-list p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; color: #a7b1c0; margin-top: 10px; }
.public-guest .public-forum-list footer { align-items: center; flex-wrap: wrap; gap: 10px 16px; padding-top: 14px; margin-top: 15px; border-top: 1px solid #29313e; color: #8998ad; }
.public-guest .public-forum-list footer span:last-child { margin-left: auto; color: #c3afd8; }
.public-guest .public-forum-topic { margin: 24px; padding: 30px; border-color: #30394a; border-radius: 18px; background: #131a24; }
.public-guest .public-forum-topic-meta { padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px solid #30394a; gap: 12px 24px; color: #a69abc; }
.public-guest main .public-forum-content { font-size: 16px !important; line-height: 1.95 !important; color: #d4dbe5; }
.public-guest .public-forum-media { margin-top: 28px; gap: 14px; }
.public-guest .public-forum-media > :only-child { grid-column: 1 / -1; }
.public-guest .public-forum-media img,.public-guest .public-forum-media video { border-radius: 12px; }
.public-guest .public-forum-replies { margin: 24px; gap: 14px; }
.public-guest .public-forum-replies article { padding: 20px; border-radius: 14px; background: #141b25; border-color: #2b3544; }
.public-guest .public-forum-replies header { flex-wrap: wrap; }
.public-guest .public-forum-actions { padding: 8px 24px 28px; }
.public-guest .public-forum-actions a { min-height: 44px; justify-content: center; border-radius: 10px; }
.public-guest .public-forum-pagination a { border-radius: 12px; }
@media(max-width:520px){.public-guest .public-forum-hero{padding:24px 18px}.public-guest .public-forum-hero>span{display:none}.public-forum-section-heading{padding:22px 16px 4px;align-items:flex-start}.public-forum-section-heading>span{display:none}.public-guest .public-forum-list{padding:14px}.public-guest .public-forum-list article>a{padding:17px;gap:12px}.public-guest .public-forum-list-image{width:72px;height:88px}.public-guest .public-forum-topic{margin:14px;padding:20px}.public-guest .public-forum-replies{margin:14px}.public-guest .public-forum-list footer{gap:8px}.public-guest .public-forum-list footer span:last-child{margin-left:0}}

/* Public footer and accessibility */
.app-shell > .public-footer { display: grid; gap: 10px; align-items: center; padding: 20px 14px 28px; border-top: 1px solid var(--line); color: #778594; text-align: center; }
.public-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 14px; }
.public-footer a { display: inline-flex; min-height: 44px; align-items: center; padding: 8px 5px; color: #99b9da; font-size: 11px; font-weight: 800; line-height: 1.35; text-decoration: none; }
.public-footer small { font-size: 11px; }
.public-brand:focus-visible, .seo-landing-actions a:focus-visible, .seo-landing-quick-room > a:focus-visible, .seo-home-auth-actions a:focus-visible, .seo-home-primary-action a:focus-visible, .seo-home-login a:focus-visible, .seo-home-link-section a:focus-visible, .seo-home-guide-links a:focus-visible, .seo-home-guide-links summary:focus-visible, .public-quick-links a:focus-visible, .seo-public-links a:focus-visible, .public-footer a:focus-visible, .public-forum-actions a:focus-visible, .public-forum-pagination a:focus-visible { outline: 2px solid #78b8ff; outline-offset: 3px; }

@media (max-width: 700px) {
  .seo-landing-card { padding: 24px 15px; }
  .seo-landing-features { grid-template-columns: 1fr; }
  .seo-landing-stage { align-content: start; }
  .public-home-simple .home-intro-stage { padding: 12px 10px 25px; }
  .home-intro { gap: 11px; }
  .home-intro-hero, .home-intro-feature, .home-intro-highlights, .home-intro-links { border-radius: 9px; }
  .home-intro-hero { padding: 22px 15px; }
  .home-intro-feature, .home-intro-highlights, .home-intro-links { padding: 15px; }
  .home-intro-feature-grid, .home-intro-links > nav { grid-template-columns: 1fr; }
  .home-intro-highlights > header { display: block; }
  .home-intro-highlights > header > p { margin-top: 5px; text-align: left; }
  .seo-landing-actions { grid-template-columns: 1fr; }
  .seo-landing-actions a { width: 100%; }
  .seo-landing-actions > .google-action { grid-column: auto; }
  .seo-home-card { padding: 30px 17px 24px; }
  .seo-home-entry-card { padding: 28px 17px 24px; }
  .seo-home-benefits { gap: 2px; }
  .seo-home-benefits article { padding: 11px 7px; }
  .seo-home-benefits article + article::before { display: none; }
  .seo-home-link-section nav, .seo-home-guide-links nav { gap: 4px 14px; }
  .seo-home-more-content { padding-inline: 8px; }
  .public-quick-links > div { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .seo-public-copy, .seo-public-faq { padding: 15px; }
  .seo-public-faq > div { grid-template-columns: 1fr; }
  .seo-public-links { justify-content: flex-start; }
  .public-forum-list-image { width: 76px; height: 62px; }
  .public-forum-media { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .modal-backdrop :is(.modal-card, [role="dialog"]) > .panel-title { min-height: 46px; padding-top: 7px; }
  .modal-backdrop :is(.modal-card, [role="dialog"]) > .panel-title > .modal-close { width: 44px; height: 44px; min-width: 44px; min-height: 44px; }
}

@media (max-width: 560px) {
  body { font-size: 15px; }
  .app-shell { border-inline: 0; }
  #main-content { padding-inline: 3px; }
  .brand-row { min-height: 58px; }
  .brand-mark { width: 37px; height: 37px; }
  .brand strong { font-size: 19px; }
  .brand small { font-size: 11px; }
  .auth-panel { min-height: calc(100vh - 100px); }
  .auth-stage, .auth-register-stage { min-height: auto; padding: 14px 8px 23px; }
  .auth-hero { margin-bottom: 12px; }
  .auth-hero strong { font-size: 16px; }
  .auth-hero span { font-size: 15px; letter-spacing: 0; }
  .auth-card-title { min-height: 42px; font-size: 16px; }
  .auth-form-body { padding: 10px; }
  .auth-form label { font-size: 14px; }
  .auth-form input, .auth-form select { min-height: 44px; font-size: 16px; }
  .auth-identity-row { grid-template-columns: minmax(0, 1fr) 108px; }
  .auth-password-field { grid-template-columns: minmax(0, 1fr) 42px; }
  .auth-password-field button { width: 42px; height: 44px; }
  .auth-form-two { grid-template-columns: 1fr; gap: 0; }
  .auth-submit { min-height: 44px; }
  .captcha-row { grid-template-columns: minmax(70px, 1fr) 116px 40px; gap: 5px; }
  .captcha-image { width: 116px; height: 44px; }
  .captcha-row button { width: 40px; height: 44px; }
}

@media (max-width: 420px) {
  .brand-row { gap: 7px; padding-inline: 8px; }
  .brand { min-width: 0; flex: 1; }
  .brand > span:last-child { min-width: 0; }
  .brand strong, .brand small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .seo-home-auth-actions { grid-template-columns: 1fr; }
}

@media (max-width: 370px) {
  .brand small { display: none; }
  .auth-identity-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .view, button, button svg, .seo-home-more > summary svg, .public-quick-links a, .auth-feedback, .auth-feedback.loading > svg { animation: none !important; transition: none !important; }
}

/* Guest readability scale: public pages must remain comfortable at 100% zoom. */
.public-guest main :is(p, li) { font-size: 15px !important; line-height: 1.7; }
.public-guest main :is(a, button, summary) { font-size: 14px !important; }
.public-guest main :is(h1, h2, h3) a { font-size: inherit !important; }
.public-guest main label { font-size: 15px !important; }
.public-guest main :is(input, select, textarea) { font-size: 16px !important; }
.public-guest main :is(small, time, dt) { font-size: 13px !important; }
.public-guest main dd { font-size: 15px !important; }
.public-guest :is(.brand small, .public-footer a, .public-footer small) { font-size: 13px !important; }
.public-guest main :is(.seo-landing-kicker, .seo-home-google > span, .seo-public-breadcrumb, .public-forum-hero small, .public-forum-list footer, .public-forum-topic-meta, .public-forum-replies header, .registration-terms-status) { font-size: 13px !important; }
.public-guest main .seo-related-links::before { font-size: 13px !important; }
.public-guest main :is(.public-quick-links strong, .auth-feedback strong, .auth-feedback span) { font-size: 14px !important; }
.public-guest main :is(.seo-landing-features h2, .seo-home-link-section h2, .public-quick-links h2, .public-forum-list h2) { font-size: 17px !important; }
.public-guest main :is(.seo-public-sections h2, .public-forum-replies > h2, .public-forum-empty h2) { font-size: 18px !important; }
.public-guest main .seo-public-faq > h2 { font-size: 20px !important; }
.public-guest main .seo-public-faq h3 { font-size: 16px !important; }
.public-guest main :is(.public-forum-content, .public-forum-replies p) { font-size: 15px !important; line-height: 1.75; }
.public-guest .registration-terms-content { font-size: 15px !important; }
.public-guest .registration-terms-status { font-size: 13px !important; }
.public-guest .registration-terms-actions button { font-size: 14px !important; }

/* The dating stylesheet loads after this file, so use guest-scoped rules here. */
body.public-guest .public-dating-view :is(.dating-hero > span, .public-dating-hero > span, .dating-detail-copy > span) { font-size: 13px !important; }
body.public-guest .public-dating-view :is(.dating-list-summary, .dating-profile-stats, .public-dating-count, .dating-detail-location, .dating-safety-note, .public-dating-safety) { font-size: 14px !important; }
body.public-guest .public-dating-view :is(.dating-card-copy > p, .public-dating-card-copy > p, .dating-detail-copy section p, .public-dating-safety p) { font-size: 15px !important; }
body.public-guest .public-dating-view :is(.dating-card-copy li, .public-dating-card-copy li, .dating-detail-copy dt, .public-dating-filters label) { font-size: 13px !important; }
body.public-guest .public-dating-view :is(.dating-detail-copy dd, .public-dating-filters select) { font-size: 15px !important; }
body.public-guest .public-dating-view :is(.dating-card-open, .public-dating-card-open, .dating-detail-actions a, .public-dating-filters button, .public-dating-filters > a, .dating-detail-back) { font-size: 14px !important; }

/* Keep the two primary public actions readable on a single line on wider screens. */
.seo-landing-actions { width: min(100%, 520px); }
.seo-landing-actions a { padding-inline: 12px; white-space: nowrap; }
