:root {
  --coral: #e95f63;
  --coral-dark: #c84552;
  --teal: #007f88;
  --teal-dark: #005f67;
  --yellow: #f8bd3d;
  --ink: #19323a;
  --muted: #5f7077;
  --cream: #fffaf4;
  --sand: #f7f0e8;
  --line: #dbe5e5;
  --white: #ffffff;
  --radius: 1.25rem;
  --shadow: 0 18px 48px rgba(25, 50, 58, 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 999; padding: .6rem .9rem; background: var(--ink); color: var(--white); border-radius: .45rem; }
.skip-link:focus { top: 1rem; }
.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; }
.container { width: min(1120px, calc(100% - 2.25rem)); margin: 0 auto; }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,250,244,.96); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(219,229,229,.8); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand-area { display: inline-flex; align-items: center; gap: .55rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; font-size: 1.03rem; font-weight: 800; color: var(--ink); white-space: nowrap; }
.brand img { width: 42px; height: 42px; object-fit: contain; }
.profile-button { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: var(--white); box-shadow: 0 6px 16px rgba(25,50,58,.06); }
.profile-button[hidden] { display: none; }
.profile-avatar { position: relative; display: block; width: 25px; height: 25px; border-radius: 50%; background: #e0f2ef; }
.profile-avatar::before { content: ""; position: absolute; left: 50%; top: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); transform: translateX(-50%); }
.profile-avatar::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 15px; height: 8px; border-radius: 9px 9px 5px 5px; background: var(--teal); transform: translateX(-50%); }
.profile-avatar img { width: 100%; height: 100%; display: block; border-radius: 50%; object-fit: cover; }
.profile-avatar:has(img)::before, .profile-avatar:has(img)::after { display: none; }
.desktop-nav { display: none; align-items: center; gap: 1.1rem; }
.desktop-nav a, .footer-nav a { text-decoration: none; font-weight: 650; color: var(--ink); }
.desktop-nav a:hover, .footer-nav a:hover { color: var(--teal); }
.header-actions { display: flex; align-items: center; gap: .55rem; }
.language-switcher { display: inline-flex; padding: .2rem; border: 1px solid var(--line); border-radius: 99px; background: var(--white); }
.language-switcher a { padding: .28rem .48rem; text-decoration: none; font-size: .78rem; font-weight: 800; border-radius: 99px; color: var(--muted); }
.language-switcher a.active { color: var(--white); background: var(--teal); }
.menu-toggle { display: inline-grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); border-radius: .75rem; color: var(--ink); background: var(--white); cursor: pointer; }
.mobile-nav { display: none; padding: .75rem 0 1rem; border-top: 1px solid var(--line); }
.mobile-nav.open { display: grid; }
.mobile-nav a { padding: .72rem 0; text-decoration: none; font-weight: 700; border-bottom: 1px solid #edf2f2; }

.button { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; padding: .75rem 1rem; border: 1px solid transparent; border-radius: .85rem; text-decoration: none; font-weight: 800; text-align: center; cursor: pointer; transition: transform .18s ease, background-color .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--coral); color: var(--white); box-shadow: 0 10px 20px rgba(233,95,99,.20); }
.button-primary:hover { background: var(--coral-dark); }
.button-secondary { color: var(--teal-dark); background: var(--white); border-color: var(--teal); }
.button-quiet { color: var(--teal-dark); background: transparent; border-color: transparent; }
.button-small { min-height: 39px; padding: .55rem .8rem; font-size: .89rem; }
.button[aria-disabled="true"] { pointer-events: none; opacity: .58; }
.member-invite-panel { display: grid; gap: .85rem; margin: 1.2rem 0; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fffaf4; }
.member-invite-panel[hidden] { display: none; }
.member-invite-panel h3 { margin: 0; }
.referral-code-display { display: inline-flex; width: fit-content; margin: 0; padding: .45rem .7rem; border-radius: .75rem; background: var(--teal); color: var(--white); font-weight: 900; letter-spacing: .08em; }

.hero { overflow: hidden; padding: 2.4rem 0 2rem; background: linear-gradient(135deg, #fffaf4 0%, #fff6eb 48%, #edf8f6 100%); }
.hero-grid { display: grid; gap: 1.7rem; align-items: center; }
.hero-copy { position: relative; z-index: 1; }
.eyebrow { display: inline-flex; margin: 0 0 .8rem; padding: .38rem .7rem; border-radius: 99px; background: #e0f2ef; color: var(--teal-dark); font-size: .82rem; font-weight: 800; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.025em; }
h1 { max-width: 680px; margin: 0; font-size: clamp(2.3rem, 8vw, 4.55rem); }
h2 { margin: 0; font-size: clamp(1.8rem, 5vw, 3rem); }
h3 { margin: 0; font-size: 1.2rem; }
.hero-copy > p:not(.eyebrow) { max-width: 620px; margin: 1.1rem 0 0; color: #405860; font-size: clamp(1rem, 2.8vw, 1.16rem); }
.hero-actions { display: grid; gap: .7rem; margin: 1.45rem 0 .9rem; }
.hero-proof { margin: 0; color: var(--muted); font-size: .9rem; font-weight: 650; }
.hero-visual { position: relative; min-height: 290px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #edf3f1; }
.hero-visual img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.hero-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,250,244,.15), transparent 50%); pointer-events: none; }

.section { padding: 4.25rem 0; }
.section-soft { background: var(--white); }
.section-heading { max-width: 700px; margin-bottom: 1.8rem; }
.section-heading p { margin: .75rem 0 0; color: var(--muted); font-size: 1.04rem; }
.card-grid { display: grid; gap: 1rem; }
.feature-card { display: block; min-height: 100%; padding: 1.3rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; box-shadow: 0 6px 16px rgba(25,50,58,.035); transition: transform .18s ease, box-shadow .18s ease; }
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 1rem; border-radius: .95rem; font-size: 1.35rem; }
.feature-card:nth-child(1) .feature-icon { background: #ffe3e4; color: var(--coral-dark); }
.feature-card:nth-child(2) .feature-icon { background: #ddf1ef; color: var(--teal-dark); }
.feature-card:nth-child(3) .feature-icon { background: #fff0cd; color: #956000; }
.feature-card:nth-child(4) .feature-icon { background: #fbe0e0; color: var(--coral-dark); }
.feature-card p { margin: .55rem 0 0; color: var(--muted); }
.feature-link { display: inline-block; margin-top: .9rem; color: var(--teal-dark); font-weight: 800; }
.steps { display: grid; gap: 1rem; counter-reset: steps; }
.step { position: relative; padding: 1.25rem 1.25rem 1.25rem 5rem; border-radius: var(--radius); background: var(--sand); }
.step::before { counter-increment: steps; content: counter(steps); position: absolute; left: 1.25rem; top: 1.22rem; display: grid; place-items: center; width: 2.7rem; height: 2.7rem; border-radius: 50%; background: var(--teal); color: var(--white); font-weight: 900; }
.step p { margin: .45rem 0 0; color: var(--muted); }
.section-cta { padding: 3.25rem 0; background: var(--teal); color: var(--white); }
.cta-box { display: grid; gap: 1.3rem; align-items: center; }
.cta-box p { max-width: 680px; margin: .75rem 0 0; color: #d5efec; }
.cta-actions { display: grid; gap: .7rem; }
.cta-actions .button-primary { background: var(--yellow); color: #4c3300; box-shadow: none; }
.cta-actions .button-secondary { color: var(--white); background: transparent; border-color: rgba(255,255,255,.65); }

.page-hero { padding: 3.5rem 0 2.6rem; background: linear-gradient(135deg, #e2f4f1, #fff6e9); }
.page-hero p { max-width: 720px; color: #3f5c62; font-size: 1.08rem; }
.content-grid { display: grid; gap: 1rem; }
.content-card { padding: 1.35rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.content-card p { margin: .55rem 0 0; color: var(--muted); }
.event-empty { display: grid; gap: 1rem; padding: 2rem; text-align: center; border: 2px dashed #b8d8d5; border-radius: var(--radius); background: #f7fcfb; }
.event-feed { min-height: 220px; }
.event-list { display: grid; gap: 1rem; }
.event-card { display: grid; gap: 1rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 6px 16px rgba(25,50,58,.035); }
.event-card h2 { font-size: clamp(1.35rem, 4vw, 2rem); }
.event-card p { margin: .65rem 0 0; color: var(--muted); }
.event-mode { display: inline-flex; width: fit-content; margin: 0 0 .7rem !important; padding: .26rem .55rem; border-radius: 99px; background: #e0f2ef; color: var(--teal-dark) !important; font-size: .8rem; font-weight: 850; }
.event-meta { display: grid; gap: .65rem; margin: 0; }
.event-meta div { padding-top: .75rem; border-top: 1px solid var(--line); }
.event-meta dt { color: var(--muted); font-size: .8rem; font-weight: 850; text-transform: uppercase; }
.event-meta dd { margin: .15rem 0 0; color: var(--ink); font-weight: 750; }
.event-actions { display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; }
.points-panel { padding: 1.4rem; border-radius: var(--radius); background: #fff4d9; border-left: 5px solid var(--yellow); }
.points-panel p { margin: .45rem 0 0; color: #5d4b26; }
.member-points-panel[hidden] { display: none; }
.member-points-panel { margin: 1.2rem 0; }
.member-points-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin: 1rem 0 .5rem; }
.member-points-grid div { padding: .7rem; border-radius: .75rem; background: rgba(255,255,255,.62); }
.member-points-grid dt { color: #705a25; font-size: .82rem; font-weight: 800; }
.member-points-grid dd { margin: .2rem 0 0; color: var(--teal-dark); font-size: 1.4rem; font-weight: 900; }
.member-ucb-panel { display: grid; gap: .75rem; margin: 1.2rem 0; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: #f3fbf9; }
.member-ucb-panel[hidden] { display: none; }
.member-ucb-panel h3 { margin: 0; }
.member-ucb-panel p { margin: 0; }
.member-ucb-open { display: inline-flex; align-items: center; gap: .55rem; justify-self: start; }
.member-ucb-open[disabled] { opacity: .65; cursor: progress; }
.member-ucb-mark { display: inline-grid; place-items: center; width: 1.65rem; height: 1.65rem; border-radius: 999px; background: var(--teal-dark); color: #fff; font-size: .95rem; line-height: 1; }
.profile-cover { padding: 3.2rem 0 0; background: linear-gradient(135deg, #dff4f1 0%, #fff1dc 100%); }
.profile-cover-inner { display: grid; gap: 1.5rem; align-items: end; min-height: 270px; padding-bottom: 1.5rem; }
.profile-cover h1 { font-size: clamp(2.15rem, 7vw, 4rem); }
.profile-cover p:not(.eyebrow) { max-width: 680px; margin: .85rem 0 0; color: #3f5c62; font-size: 1.08rem; }
.profile-avatar-large { display: grid; place-items: center; width: 132px; height: 132px; border: 5px solid var(--white); border-radius: 50%; background: var(--white); box-shadow: var(--shadow); overflow: hidden; }
.profile-avatar-large .profile-avatar { width: 82px; height: 82px; }
.profile-avatar-large .profile-avatar::before { top: 16px; width: 24px; height: 24px; }
.profile-avatar-large .profile-avatar::after { bottom: 12px; width: 48px; height: 25px; border-radius: 26px 26px 14px 14px; }
.profile-avatar-large img { width: 100%; height: 100%; object-fit: cover; }
.profile-layout { display: grid; gap: 1rem; align-items: start; }
.profile-main { display: grid; gap: 1rem; min-width: 0; }
.profile-sidebar { min-width: 0; }
.profile-composer, .profile-gallery-panel { padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 8px 18px rgba(25,50,58,.04); }
.profile-composer p { margin: .55rem 0 1rem; color: var(--muted); }
.profile-composer textarea { width: 100%; min-height: 110px; resize: vertical; padding: .85rem; border: 1px solid #b8caca; border-radius: .9rem; background: #f8fbfb; color: var(--ink); font: inherit; }
.profile-composer textarea:disabled { opacity: 1; color: var(--muted); cursor: not-allowed; }
.profile-privacy-panel .auth-note { margin: .35rem 0 .9rem; }
.profile-privacy-form { display: grid; gap: .55rem; }
.profile-privacy-form label { color: var(--ink); font-size: .9rem; font-weight: 650; }
.profile-privacy-form input, .profile-privacy-form select, .profile-privacy-form textarea { width: 100%; min-height: 46px; padding: .72rem .85rem; border: 1px solid #b8caca; border-radius: .78rem; background: #f8fbfb; color: var(--ink); font: inherit; }
.profile-privacy-form textarea { resize: vertical; }
.profile-privacy-form input:focus, .profile-privacy-form select:focus, .profile-privacy-form textarea:focus { outline: 3px solid rgba(248,189,61,.42); border-color: var(--teal); }
.profile-privacy-form .join-submit { margin-top: .5rem; }
.profile-checkbox { display: flex; align-items: center; gap: .55rem; font-weight: 500; }
.profile-checkbox input { flex: 0 0 auto; width: 1.1rem; height: 1.1rem; min-height: 0; margin: 0; }
.profile-privacy-panel #profile-audience-hint { margin: 0; }
.profile-privacy-panel #profile-privacy-migration-note { margin: .75rem 0 0; }
.profile-privacy-panel .profile-privacy-form { margin-top: .35rem; }
.activity-composer-form { display: grid; gap: .7rem; }
.activity-composer-form input, .activity-composer-form select { width: 100%; min-height: 46px; padding: .72rem .85rem; border: 1px solid #b8caca; border-radius: .78rem; background: #f8fbfb; color: var(--ink); font: inherit; }
.activity-composer-form input:focus, .activity-composer-form select:focus, .activity-composer-form textarea:focus { outline: 3px solid rgba(248,189,61,.42); border-color: var(--teal); }
.activity-feed { display: grid; gap: 1rem; }
.activity-post { display: grid; gap: .85rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 6px 16px rgba(25,50,58,.035); }
.activity-post-header { display: flex; gap: .75rem; align-items: center; }
.activity-post-header p { margin: .15rem 0 0; color: var(--muted); font-size: .84rem; }
.activity-avatar { flex: 0 0 auto; width: 42px; height: 42px; overflow: hidden; background: #e0f2ef; }
.activity-body { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }
.activity-media { border-radius: .95rem; overflow: hidden; background: #edf3f1; }
.activity-media img { display: block; width: 100%; max-height: 520px; object-fit: cover; }
.activity-video { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: .95rem; overflow: hidden; background: #10252b; }
.activity-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.activity-actions { display: flex; flex-wrap: wrap; gap: .45rem; }
.activity-actions button { min-height: 34px; padding: .35rem .65rem; border: 1px solid var(--line); border-radius: 99px; background: #f7fcfb; color: var(--teal-dark); font: inherit; font-size: .8rem; font-weight: 800; cursor: pointer; }
.activity-actions button:hover, .activity-actions button:focus-visible { border-color: var(--teal); background: #e0f2ef; }
.dating-layout { display: grid; gap: 1rem; }
.dating-search-panel { display: grid; gap: .85rem; padding: 1rem; border: 1px solid var(--line); border-radius: .95rem; background: var(--white); }
.dating-filter-grid { display: grid; gap: .75rem; }
.dating-filter-grid label { display: grid; gap: .35rem; color: var(--ink); font-size: .9rem; font-weight: 750; }
.dating-filter-grid input, .dating-filter-grid select { width: 100%; min-height: 44px; padding: .65rem .8rem; border: 1px solid #b8caca; border-radius: .75rem; background: #f8fbfb; color: var(--ink); font: inherit; }
.dating-results { display: grid; gap: .85rem; }
.dating-card, .dating-profile-card { display: grid; gap: .85rem; padding: 1rem; border: 1px solid var(--line); border-radius: .95rem; background: var(--white); box-shadow: 0 10px 24px rgba(25,50,58,.05); }
.dating-avatar { width: 66px; height: 66px; }
.profile-panel-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .35rem 1rem; align-items: end; margin-bottom: 1rem; }
.profile-panel-heading h2 { font-size: clamp(1.45rem, 4vw, 2.15rem); }
.profile-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.profile-gallery-empty { grid-column: 1 / -1; padding: 1.5rem; border: 2px dashed #b8d8d5; border-radius: .95rem; background: #f7fcfb; color: var(--muted); text-align: center; font-weight: 750; }
.profile-media-card { position: relative; min-height: 180px; margin: 0; border-radius: .95rem; overflow: hidden; background: #edf3f1; }
.profile-media-card-active { outline: 3px solid var(--yellow); outline-offset: -3px; }
.profile-media-card img { width: 100%; height: 100%; min-height: 180px; display: block; object-fit: cover; }
.profile-media-card figcaption { position: absolute; left: .55rem; bottom: .55rem; padding: .2rem .5rem; border-radius: 99px; background: rgba(25,50,58,.78); color: var(--white); font-size: .74rem; font-weight: 800; }
.profile-media-actions { position: absolute; right: .55rem; top: .55rem; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .35rem; max-width: calc(100% - 1.1rem); }
.profile-media-select { min-height: 34px; padding: .35rem .6rem; border: 1px solid rgba(255,255,255,.78); border-radius: 99px; background: rgba(0,123,119,.88); color: var(--white); font: inherit; font-size: .76rem; font-weight: 850; cursor: pointer; }
.profile-media-select { background: rgba(0,123,119,.88); }
.profile-media-select:disabled { cursor: default; background: rgba(248,189,61,.96); color: #3d321a; }
.profile-media-select:not(:disabled):hover, .profile-media-select:not(:disabled):focus-visible { background: var(--teal-dark); }
.profile-media-remove { display: inline-grid; place-items: center; width: 26px; height: 26px; min-height: 0; padding: 0; border: 1px solid rgba(255,255,255,.85); border-radius: 50%; background: rgba(25,50,58,.68); color: var(--white); font: inherit; font-size: 1.05rem; font-weight: 700; line-height: 1; cursor: pointer; transition: background .15s ease, transform .15s ease; }
.profile-media-remove:hover, .profile-media-remove:focus-visible { background: #b83f43; transform: scale(1.08); }
.profile-media-remove span { display: block; margin-top: -.08em; }
.profile-upload-panel { position: sticky; top: 94px; }
.profile-photo-form { display: grid; gap: .65rem; margin-top: 1rem; }
.profile-photo-form label { color: var(--ink); font-size: .93rem; font-weight: 800; }
.profile-photo-form input[type="file"] { width: 100%; padding: .75rem; border: 1px dashed #94bebb; border-radius: .85rem; background: #f7fcfb; color: var(--muted); }
.profile-photo-form input[type="file"]:disabled { opacity: .6; cursor: not-allowed; }
.join-layout { display: grid; gap: 1.1rem; max-width: 720px; }
.join-panel { padding: clamp(1.25rem, 4vw, 2rem); border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: 0 10px 26px rgba(25,50,58,.05); }
.referral-message { margin: 0 0 1rem; padding: .85rem 1rem; border-radius: .8rem; background: #e5f4f1; color: var(--teal-dark); font-weight: 700; }
.auth-note { margin: .65rem 0 0; color: var(--muted); }
.auth-methods { display: grid; gap: .7rem; margin-top: 1.1rem; }
.auth-method { display: flex; justify-content: flex-start; align-items: center; gap: .75rem; min-height: 52px; padding: .75rem 1rem; border: 1px solid var(--line); border-radius: .8rem; background: #fbfcfc; color: var(--ink); font-weight: 750; }
.auth-method-button { width: 100%; text-align: left; cursor: pointer; opacity: 1; }
.auth-method-button:not(:disabled):hover { border-color: var(--teal); background: #f4fbfa; }
.auth-method-button:disabled { cursor: not-allowed; opacity: .62; }
.auth-method-button:disabled { color: var(--ink); }
.auth-method-label { flex: 1; }
.oauth-icon { display: inline-grid; place-items: center; flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; background: var(--white); font-weight: 900; line-height: 1; }
.oauth-icon-google { border: 1px solid #dbe5e5; }
.oauth-icon-google svg { width: 18px; height: 18px; display: block; }
.oauth-icon-facebook { color: var(--white); background: #1877f2; font-family: Arial, sans-serif; font-size: 1.22rem; }
.oauth-icon-apple { color: var(--ink); border: 1px solid #dbe5e5; font-family: ui-serif, Georgia, serif; }
.auth-method .coming-label { color: var(--muted); font-size: .85rem; font-weight: 650; }
.coming-label { padding: .18rem .45rem; border-radius: 99px; background: var(--sand); }
.join-divider { display: flex; align-items: center; gap: .75rem; margin: 1.5rem 0 1.1rem; color: var(--muted); font-size: .9rem; font-weight: 700; }
.join-divider::before, .join-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.email-account-form { display: grid; gap: .55rem; }
.email-account-form label { margin-top: .3rem; color: var(--ink); font-size: .93rem; font-weight: 800; }
.email-account-form input { width: 100%; min-height: 48px; padding: .72rem .85rem; border: 1px solid #b8caca; border-radius: .78rem; background: var(--white); color: var(--ink); font: inherit; }
.email-account-form input:focus { outline: 3px solid rgba(248,189,61,.42); border-color: var(--teal); }
.field-hint { margin: -.15rem 0 .25rem; color: var(--muted); font-size: .84rem; }
.join-submit { width: 100%; margin-top: .35rem; }
.form-status { margin: .75rem 0 0; padding: .75rem .9rem; border-radius: .75rem; background: #fff4d9; color: #5d4b26; font-weight: 700; }
.join-existing { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .35rem 1rem; margin-top: 1.25rem; padding-top: 1.1rem; border-top: 1px solid var(--line); color: var(--muted); }
.join-existing p, .forgot-link { margin: 0; }
.join-existing a, .support-line a { color: var(--teal-dark); font-weight: 800; }
.support-line { margin: 1.15rem 0 0; color: var(--muted); }
.auth-disclosure { margin: 1rem 0 0; color: var(--muted); font-size: .84rem; }
.referral-code-form { display: grid; gap: .55rem; margin-top: 1rem; }
.referral-code-form label { margin-top: .3rem; color: var(--ink); font-size: .93rem; font-weight: 800; }
.referral-input-row { display: grid; gap: .7rem; }
.referral-code-form input { width: 100%; min-height: 48px; padding: .72rem .85rem; border: 1px solid #b8caca; border-radius: .78rem; background: var(--white); color: var(--ink); font: inherit; text-transform: uppercase; }
.referral-code-form input:focus { outline: 3px solid rgba(248,189,61,.42); border-color: var(--teal); }
.gate-note { margin: .75rem 0 0; padding: .75rem .9rem; border-left: 4px solid var(--yellow); border-radius: .65rem; background: #fff9e8; color: #5d4b26; font-weight: 700; }
.future-gate-note { border-left-color: var(--teal); background: #edf8f6; color: var(--teal-dark); }
.signup-fields { display: grid; gap: .55rem; margin: 0; padding: 0; border: 0; min-inline-size: 0; }
.signup-fields:disabled { opacity: .66; }
.signup-fields:disabled input, .signup-fields:disabled button { cursor: not-allowed; }
.passport-choice-grid { display: grid; gap: 1rem; width: 100%; }
.passport-choice-card { align-self: start; }
.passport-choice-card-accent { border-top: 4px solid var(--teal); background: #edf8f6; }
.form-select { width: 100%; min-height: 48px; padding: .72rem .85rem; border: 1px solid #b8caca; border-radius: .78rem; background: var(--white); color: var(--ink); font: inherit; }
.form-select:focus { outline: 3px solid rgba(248,189,61,.42); border-color: var(--teal); }

.site-footer { padding: 2.35rem 0; background: #173740; color: #effafa; }
.footer-inner { display: grid; gap: 1.4rem; }
.footer-brand { display: inline-flex; align-items: center; gap: .7rem; font-weight: 850; }
.footer-brand img { width: 42px; height: 42px; object-fit: contain; }
.footer-brand span { color: var(--white); }
.footer-nav { display: flex; flex-wrap: wrap; gap: .85rem 1rem; }
.footer-nav a { color: #d6eeee; font-size: .9rem; }
.footer-meta { margin: 0; color: #b7d3d4; font-size: .86rem; }

@media (min-width: 720px) {
  .hero { padding: 4.1rem 0 3.2rem; }
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); gap: 2.5rem; }
  .hero-visual { min-height: 480px; }
  .hero-actions, .cta-actions { display: flex; flex-wrap: wrap; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step { padding: 5rem 1.2rem 1.2rem; }
  .step::before { left: 1.2rem; top: 1.2rem; }
  .content-grid { grid-template-columns: repeat(3, 1fr); }
  .event-card { grid-template-columns: minmax(0, 1fr) minmax(220px, .42fr); align-items: start; }
  .event-actions { grid-column: 1 / -1; }
  .profile-cover-inner { grid-template-columns: minmax(0, 1fr) auto; }
  .profile-layout { grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); }
  .profile-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dating-filter-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dating-card { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
  .referral-input-row { grid-template-columns: 1fr auto; }
  .passport-choice-grid { grid-template-columns: minmax(0, 1fr) minmax(260px, .62fr); align-items: start; }
  .cta-box { grid-template-columns: 1fr auto; }
  .footer-inner { grid-template-columns: 1fr auto; align-items: center; }
  .footer-meta { grid-column: 1 / -1; }
}

@media (min-width: 1000px) {
  .desktop-nav { display: flex; }
  .menu-toggle, .mobile-nav { display: none !important; }
  .card-grid { grid-template-columns: repeat(4, 1fr); }
  .section { padding: 5.25rem 0; }
}

@media (max-width: 719px) {
  .header-inner { min-height: 70px; }
  .header-actions .button-quiet { display: none; }
  .header-actions .button-primary { min-height: 39px; padding: .5rem .65rem; font-size: .78rem; }
  .brand { gap: .4rem; font-size: .91rem; }
  .brand img { width: 34px; height: 34px; }
  .profile-button { width: 36px; height: 36px; }
  .profile-avatar { width: 22px; height: 22px; }
  .profile-avatar-large { width: 112px; height: 112px; }
  .profile-gallery { grid-template-columns: 1fr; }
  .profile-upload-panel { position: static; }
  .hero-actions .button { width: 100%; }
  .referral-input-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

/* Groups + Events V1 (member area) */
.member-columns { display: grid; gap: 1.25rem; align-items: start; }
.stack-form { display: grid; gap: .5rem; }
.stack-form label { color: var(--ink); font-weight: 800; }
.stack-form input, .stack-form textarea, .stack-form select { width: 100%; min-height: 48px; padding: .72rem .85rem; border: 1px solid #b8caca; border-radius: .78rem; background: var(--white); color: var(--ink); font: inherit; }
.stack-form textarea { min-height: 96px; resize: vertical; }
.stack-form input:focus, .stack-form textarea:focus, .stack-form select:focus { outline: 3px solid rgba(248,189,61,.42); border-color: var(--teal); }
.stack-form .button { justify-self: start; }
.form-status[data-kind="ok"] { background: #e0f2ef; color: var(--teal-dark); }
.form-status[data-kind="error"] { background: #ffe6e5; color: #8f2b2f; }
.group-list { display: grid; gap: 1rem; }
.group-card { display: grid; gap: .7rem; padding: 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fffdfb; }
.group-card-head { display: flex; flex-wrap: wrap; gap: .5rem; align-items: baseline; justify-content: space-between; }
.group-card-head h3 { margin: 0; }
.group-card-head p { margin: 0; }
.group-member-list { display: grid; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.group-member-list li { display: flex; flex-wrap: wrap; gap: .5rem; align-items: baseline; justify-content: space-between; padding: .5rem .7rem; border-radius: .7rem; background: #f3fbf9; }
.group-member-name { font-weight: 800; }
.group-member-email { color: var(--muted); font-size: .86rem; overflow-wrap: anywhere; }
.group-member-form { display: grid; gap: .5rem; margin: .2rem 0 0; }
.group-member-form label { font-weight: 800; }
.group-member-form input { width: 100%; min-height: 48px; padding: .72rem .85rem; border: 1px solid #b8caca; border-radius: .78rem; background: var(--white); color: var(--ink); font: inherit; }
.group-member-form input:focus { outline: 3px solid rgba(248,189,61,.42); border-color: var(--teal); }
.group-member-form .referral-input-row { align-items: stretch; }
.group-member-form .button { flex: 0 0 auto; }
.event-actions [aria-pressed="true"] { box-shadow: 0 8px 18px rgba(233,95,99,.24); }
[data-rsvp-status] { align-self: center; }
#member-event-group-wrap[hidden] { display: none; }
@media (min-width: 1000px) {
  .member-columns { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); }
}
@media (max-width: 719px) {
  .member-columns { grid-template-columns: minmax(0, 1fr); }
  .group-member-form .referral-input-row { display: grid; grid-template-columns: minmax(0, 1fr); }
  .group-member-form .button { width: 100%; }
  .event-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  .event-actions .button { width: 100%; }
}
/* Pre-existing authenticated header: on small screens the mobile "Join Free"
   link keeps its box even though it carries the hidden attribute, pushing the
   header row 20px past the viewport. Scoped to the header action row only. */
.header-actions > [hidden] { display: none; }


/* ---- Interests inbox (receiver-side visibility) ----------------------- */
.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent, #e2574c);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
}
.interest-list { display: grid; gap: 14px; }
.interest-card {
  border: 1px solid rgba(16, 63, 71, 0.12);
  border-radius: 16px;
  padding: 16px;
  background: #fff;
  display: grid;
  gap: 10px;
}
.interest-card .activity-post-header { align-items: flex-start; gap: 12px; }
.interest-card .activity-post-header h3 { margin: 0; font-size: 1.02rem; }
.interest-card .activity-post-header > div { flex: 1 1 auto; min-width: 0; }
.interest-card .activity-post-header > div h3,
.interest-card .activity-post-header > div p { overflow-wrap: anywhere; }
.interest-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
  background: rgba(16, 63, 71, 0.08);
  color: #103f47;
}
.interest-status-accepted { background: rgba(31, 138, 76, 0.14); color: #14663a; }
.interest-status-ignored { background: rgba(16, 63, 71, 0.08); color: #5b6b70; }
.interest-status-blocked { background: rgba(226, 87, 76, 0.14); color: #a33227; }
.interest-status-pending { background: rgba(214, 149, 22, 0.16); color: #8a5b06; }
.interest-message { margin: 0; }
.interest-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.interest-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.interest-card [data-interest-status] { margin: 0; }
@media (max-width: 719px) {
  .interest-footer { align-items: stretch; }
  .interest-actions { width: 100%; }
  .interest-actions .button { flex: 1 1 140px; }
}

