/*
 * Design audit fixes — 18 Oct 2026 (Fix List items in brackets).
 * Loaded last on public, auth and member layouts so these rules win without touching the older files.
 * Visual only: no text, URLs or SEO markup are changed here.
 */

/* ---------- Shared primary button look (#3) ---------- */
.landing-home :is(.hero .btn--pink, .process__cta, .mp-v2 a.mp-cta, .ready-cta-btn),
:is(.contact-submit-btn, .auth-body .auth-submit, .likes-primary) {
    background: linear-gradient(135deg, #ff1450 0%, #e00b40 100%) !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 999px !important;
    min-height: 52px;
    font-family: Figtree, sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    box-shadow: none !important;
}
.landing-home :is(.hero .btn--pink, .process__cta, .mp-v2 a.mp-cta, .ready-cta-btn):hover,
:is(.contact-submit-btn, .auth-body .auth-submit, .likes-primary):hover {
    background: #e00b40 !important;
}
.landing-home :is(.hero .btn--pink, .process__cta, .mp-v2 a.mp-cta, .ready-cta-btn):focus-visible,
:is(.contact-submit-btn, .auth-body .auth-submit, .likes-primary):focus-visible {
    outline: 3px solid #ffb3c6;
    outline-offset: 3px;
}

/* ---------- Homepage feature cards: art never covers the heading (#1, #2) ---------- */
@media (max-width: 1023px) {
    .fx-card {
        height: auto;
        min-height: clamp(330px, 30vw, 380px);
        justify-content: flex-start;
    }
    .fx-card .fx-mock {
        position: relative;
        inset: auto;
        flex: 0 0 200px;
        height: 200px;
        margin: 0 0 14px;
    }
    .fx-card h3,
    .fx-card .hx { margin-top: auto; }
}

/* ---------- Sticky "Join free" bar (#4, #5) — JS hides it near other primary buttons ---------- */
@media (max-width: 767px) {
    .conversion-sticky-join {
        background: linear-gradient(135deg, #ff1450 0%, #e00b40 100%) !important;
        min-height: 52px !important;
        border-radius: 999px !important;
        font-weight: 600 !important;
        font-size: 16px !important;
    }
    body:has(.conversion-sticky-join) { padding-bottom: 84px; }
}

/* ---------- Homepage details (#6–#9) ---------- */
@media (min-width: 1024px) {
    .landing-home .mp-v2.is-sparse { column-gap: 48px; }
    .landing-home .mp-v2.is-sparse .mp-row { justify-content: flex-start; }
}
.landing-home .safety-photo figcaption { display: none !important; }
.landing-home .app-store-preview img { box-shadow: none; opacity: .72; cursor: default; }
@media (max-width: 767px) {
    .landing-home .step-card { min-height: 0; padding-bottom: 20px; }
}

/* ---------- Footer (#10, #11) ---------- */
.footer--zobeya a,
.footer--zobeya .cookie-inline {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
}
.footer--zobeya .cookie-inline {
    text-decoration: none !important;
    border: 0;
    background: none;
    padding: 0;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

/* ---------- Subscription (#12, #13, #14) and credits table (#64) ---------- */
.clear-costs h3 {
    font-family: Figtree, sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: -.01em;
}
.clear-costs thead th:last-child,
.clear-costs td { white-space: nowrap; }
.story-banner__content {
    background: radial-gradient(ellipse at center, rgba(14, 9, 16, .72) 0%, rgba(14, 9, 16, .45) 60%, rgba(14, 9, 16, 0) 100%);
    border-radius: 24px;
    padding: 24px;
}
.plan-credit-details summary {
    display: flex;
    align-items: center;
    min-height: 32px;
    cursor: pointer;
}

/* ---------- Blog (#15, #17) ---------- */
.blog-card__category {
    background: #fff !important;
    color: #a3002e !important;
}
.blog-read-more-btn { min-height: 32px; display: inline-flex; align-items: center; }

/* ---------- Stories (#20) ---------- */
@media (min-width: 992px) {
    body:has(.stories-hero-container) .stories-hero-container { min-height: 0; }
}

/* ---------- Help (#22–#25) ---------- */
body.support-page-body .service-contact-card {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 72px;
    align-items: center;
    gap: 18px;
    min-height: 0;
    padding: 24px;
    background: #2d2032 !important;
    border-color: #68496b;
}
body.support-page-body .service-contact-card > div { min-width: 0; }
body.support-page-body .service-contact-card > img {
    display: block;
    width: 72px !important;
    max-width: 100%;
    height: auto !important;
    position: static !important;
    transform: none !important;
    margin: 0 !important;
    object-fit: contain;
    filter: none;
}
body.support-page-body .service-contact-card a { overflow-wrap: anywhere; }
@media (max-width: 600px) {
    body.support-page-body .service-contact-card { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    body.support-page-body .service-contact-card > img { justify-self: end; }
}
body.support-page-body .service-contact-card h3 { color: #fff; }
body.support-page-body .service-contact-card :is(p, a) { color: #e0cfe5; }
.service-contact-card::before,
.service-contact-card::after,
.service-contact-card h3::before,
.service-contact-card h3::after { display: none !important; }
.service-contact-card h3,
.service-faq h3 { text-decoration: none !important; }
.service-hero { display: flex; flex-direction: column; }
.service-hero > a { order: -1; align-self: flex-start; font-size: 14px; margin-bottom: 8px; }
.service-hero .service-hero-title {
    font-family: "Instrument Serif", serif;
    font-weight: 400;
    font-size: 28px;
    line-height: 1.1;
    letter-spacing: -.01em;
    margin: 0;
    color: inherit;
}
@media (min-width: 768px) { .service-hero .service-hero-title { font-size: 36px; } }

/* ---------- Contact (#70 H1 keeps the old H2 look) ---------- */
.contact-info-col .contact-title {
    font-family: "Instrument Serif", "Cormorant Garamond", Georgia, serif;
    font-weight: 400;
    font-size: 28px;
    line-height: 1.6;
    letter-spacing: -.01em;
    color: #fff;
    margin: 0 0 14px;
}
@media (min-width: 768px) { .contact-info-col .contact-title { font-size: 38px; } }

/* ---------- Terms and Privacy (#28–#32) ---------- */
.terms-toc ol { list-style: none; padding-left: 0; }
.terms-hero { display: flex; flex-direction: column; }
.terms-hero p {
    text-decoration: none !important;
    text-align: left !important;
}
.terms-hero p a { text-decoration: underline; }
.terms-hero > a { order: -1; align-self: flex-start; font-size: 14px; margin-bottom: 8px; }

/* ---------- Dating advice (#33) ---------- */
.timeline-pill, .advice-tag { color: #ff8fab !important; }

/* ---------- Astrology / Double / Music dating (#34–#37) ---------- */
.guest-mode-content > header h1 { font-size: clamp(36px, 6vw, 48px) !important; line-height: 1.05; }
.guest-mode-content .cosmic-section h2,
.guest-mode-content #zodiacPreviewTitle { font-size: clamp(24px, 3.4vw, 32px) !important; margin-top: 28px; }
.cosmic-sign span { font-size: 12px !important; }
.guest-play-card select { padding-right: 40px !important; background-position: right 14px center !important; }

/* ---------- Auth pages (#38, #39) ---------- */
.auth-mobile-logo { display: inline-flex; align-items: center; min-height: 44px; }
.registration-legal a { display: inline-flex; align-items: center; min-height: 24px; }

/* ---------- Forgot password matches Log in (#41, #42) ---------- */
.auth-panel:has(#forgotForm) {
    justify-content: center;
}
.auth-panel:has(#forgotForm) > h2 {
    font-family: Figtree, sans-serif !important;
    font-weight: 800 !important;
    font-size: 28px !important;
    text-align: center;
    margin-top: 0;
}
.auth-panel:has(#forgotForm) .auth-subtitle { text-align: center; }
@media (max-width: 767px) {
    .auth-panel:has(#forgotForm) { padding-top: 48px !important; overflow: visible !important; }
}

/* ---------- Discover (#47, #48, #49, #50) ---------- */
img[src*="avatar-placeholder.svg"] {
    object-fit: contain !important;
    background: linear-gradient(180deg, #3d2a3e, #1f1720) !important;
}
.discover-mobile-head { text-shadow: 0 1px 6px rgba(0, 0, 0, .55); }
.discover-mobile-head::before {
    content: "";
    position: absolute;
    inset: 0 0 -24px;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(18, 12, 20, .72), rgba(18, 12, 20, 0));
}
@media (max-width: 767px) {
    .discover-photo-invite {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 44px 10px 14px !important;
    }
    .discover-photo-invite p { margin: 0 !important; font-size: 13px !important; }
    .discover-photo-invite > a { min-height: 32px; white-space: nowrap; }
    .zobeya-install-offer {
        left: 12px !important;
        right: 12px !important;
        width: auto !important;
        bottom: calc(76px + env(safe-area-inset-bottom)) !important;
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 4px 12px;
        padding: 12px 14px !important;
    }
    .zobeya-install-offer[hidden] { display: none !important; }
    .zobeya-install-offer p { margin: 0 !important; font-size: 13px !important; grid-column: 1; }
    .zobeya-install-offer > div { grid-column: 2; grid-row: 1 / span 2; }
    body:has(.zobeya-install-offer:not([hidden])) .dash-main { padding-bottom: 120px !important; }
}

/* ---------- Likes empty state (#52, #53) ---------- */
.human-likes-empty-icon {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: rgba(255, 20, 80, .12);
    color: #ff6b8e;
}
.human-likes-empty-icon svg { width: 30px; height: 30px; }
.likes-primary { display: inline-flex; align-items: center; justify-content: center; padding: 0 28px; }

/* ---------- Profile (#56, #57) ---------- */
.profile-studio.pv2-no-photos { display: flex; flex-direction: column; }
.profile-studio.pv2-no-photos > .profile-studio-details { order: 3; }
.profile-studio.pv2-no-photos > :is(.pv2-menu, .member-participation-card, .profile-account-hub, .profile-support-hub) { order: 4; }
.profile-studio.pv2-no-photos > .profile-signout-zone { order: 5; }

/* ---------- Scroll cue on cut-off tab rows (#58, #59) ---------- */
@media (max-width: 767px) {
    :is(.profile-edit-jumps, .settings-section-links) {
        -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
        mask-image: linear-gradient(90deg, #000 85%, transparent);
        padding-right: 24px;
    }
}

/* ---------- Settings: one sticky save bar (#60) ---------- */
.settings-bottom-save[data-settings-save-bar] {
    position: sticky;
    bottom: 12px;
    z-index: 20;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid rgba(255, 20, 80, .35);
    border-radius: 16px;
    background: rgba(42, 31, 46, .96);
}
.settings-bottom-save .settings-unsaved { color: #d9d3dc; font: 500 14px Figtree, sans-serif; }
.settings-bottom-save .settings-btn { width: auto !important; flex: 0 0 auto; }
@media (max-width: 767px) {
    .settings-bottom-save[data-settings-save-bar] { bottom: calc(84px + env(safe-area-inset-bottom)); }
    .settings-bottom-save .settings-btn { flex: 1 1 auto; }
}

/* ---------- Membership (#63) ---------- */
.membership-checkout:disabled {
    opacity: 1 !important;
    background: #252528 !important;
    color: #a79fad !important;
    border-color: transparent !important;
    cursor: not-allowed;
}
.membership-disabled-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(16, 185, 129, .12);
    color: #fff;
    font: 600 14px Figtree, sans-serif;
}
.membership-disabled-note i { width: 8px; height: 8px; border-radius: 50%; background: #10b981; }

/* ---------- Photo verification and Priority buttons (#66, #67) ---------- */
body .photo-check-card .photo-check-primary {
    background: linear-gradient(135deg, #ff1450, #e00b40) !important;
    color: #fff !important;
    border: 0 !important;
    min-height: 52px;
    font-weight: 600;
}
body .photo-check-card .photo-check-primary:disabled { background: #252528 !important; color: #a79fad !important; opacity: 1; cursor: not-allowed; }
.verification-option .premium-button {
    background: linear-gradient(135deg, #ff1450, #e00b40) !important;
    color: #fff !important;
    border: 0 !important;
}

/* ---------- Stories empty state action (#19) ---------- */
.honest-stories-empty-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; grid-column: 1 / -1; }
.stories-empty-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 26px;
    border: 1.5px solid rgba(255, 255, 255, .45);
    border-radius: 999px;
    background: transparent;
    color: #fff !important;
    font: 600 15px Figtree, sans-serif;
    text-decoration: none !important;
    text-transform: none;
    cursor: pointer;
}
.stories-empty-cta:hover { background: rgba(255, 255, 255, .08); }

/* Optional sexuality / trans identity fields (onboarding + profile edit) */
.identity-disclosure{margin:4px 0 18px;border:1px solid rgba(255,255,255,.12);border-radius:14px;padding:0}
.identity-disclosure>summary{cursor:pointer;list-style:none;padding:12px 14px;font-size:13.5px;font-weight:600;color:#d0d2dc;display:flex;align-items:center;gap:8px}
.identity-disclosure>summary::-webkit-details-marker{display:none}
.identity-disclosure>summary::before{content:"+";display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;background:rgba(255,20,80,.18);color:#ff7aa0;font-weight:700}
.identity-disclosure[open]>summary::before{content:"−"}
.identity-body{padding:0 14px 14px;display:grid;gap:10px}
.identity-fieldset{border:0;margin:0;padding:0}
.identity-fieldset legend{font-size:13px;color:#d0d2dc;margin-bottom:8px}
.identity-fieldset legend small,.edit-field label small{font-weight:400;opacity:.7}
.identity-pills{flex-wrap:wrap!important;gap:8px!important}
body .identity-pills .figma-pill-radio{flex:0 0 auto!important;min-width:0}
body .identity-pills .figma-pill-radio span{width:auto!important;white-space:nowrap!important;overflow-wrap:normal!important;height:40px!important;min-height:40px!important;padding:0 16px!important}
.identity-check span:last-child{font-size:13px;color:#a5a8b5}
.identity-notice{font-size:12px;line-height:1.5;color:#8d90a0;margin:4px 0 16px}
.edit-field+.edit-checkbox+.edit-checkbox+.identity-notice{color:#6b6e7c}
.identity-notice a{color:#ff7aa0;text-decoration:underline}

/* Out-of-credits sheet: centered premium card with the real number of admirers */
body .discover-credit-sheet{position:fixed;inset:0;margin:auto;width:min(calc(100vw - 32px),400px);height:fit-content;max-height:calc(100dvh - 48px);padding:30px 24px 22px;border:1px solid rgba(255,255,255,.09);border-radius:26px;background:radial-gradient(120% 70% at 50% 0%,rgba(255,36,90,.16) 0%,rgba(255,36,90,0) 60%),linear-gradient(180deg,#24182a 0%,#18111c 100%);box-shadow:0 30px 80px rgba(0,0,0,.55),inset 0 1px 0 rgba(255,255,255,.06);text-align:center;color:#fff}
body .discover-credit-sheet[open]{animation:creditSheetIn .28s cubic-bezier(.2,.9,.3,1.1) both}
body .discover-credit-sheet::backdrop{background:rgba(10,6,14,.62);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
@keyframes creditSheetIn{from{opacity:0;transform:translateY(10px) scale(.96)}to{opacity:1;transform:none}}
.credit-sheet-badge{display:inline-grid;place-items:center;width:56px;height:56px;margin:0 auto 14px;border-radius:50%;background:linear-gradient(145deg,rgba(255,36,90,.22),rgba(255,36,90,.06));box-shadow:inset 0 0 0 1px rgba(255,120,160,.28),0 8px 24px rgba(255,20,80,.18);color:#ff6f96;font-size:24px}
body .discover-credit-sheet h2{font-family:var(--font-heading,"Instrument Serif",serif);font-weight:400;font-size:26px;line-height:1.2;margin:0 0 18px;color:#fff;letter-spacing:.1px}
.credit-sheet-admirers{display:flex;align-items:center;gap:12px;margin:0 0 16px;padding:12px 14px;border-radius:18px;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.08);color:#fff;text-decoration:none;text-align:left;transition:background .2s,border-color .2s,transform .2s}
.credit-sheet-admirers:hover,.credit-sheet-admirers:focus-visible{background:rgba(255,255,255,.07);border-color:rgba(255,140,175,.35);transform:translateY(-1px);outline:none}
.credit-sheet-faces{position:relative;display:flex;flex:none;padding-right:6px}
.credit-sheet-faces img{width:34px;height:34px;border-radius:50%;object-fit:cover;border:2px solid #1f1524;background:#3a2a40;filter:blur(2px) saturate(1.1)}
.credit-sheet-faces img+img{margin-left:-12px}
.credit-sheet-heart{position:absolute;right:0;bottom:-3px;display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#ff1450;border:2px solid #1f1524;color:#fff;font-size:9px}
.credit-sheet-admirers-text{display:grid;gap:2px;flex:1;min-width:0}
.credit-sheet-admirers-text strong{font-size:14.5px;font-weight:600;line-height:1.3;white-space:normal!important}
.credit-sheet-admirers-text small{font-size:12.5px;color:#ff8db0;font-weight:500}
.credit-sheet-chevron{color:rgba(255,255,255,.45);font-size:14px;flex:none}
body .discover-credit-sheet .credit-sheet-refresh{display:flex;align-items:center;justify-content:center;gap:7px;font-size:13.5px;color:#b9a9bd;margin:0 0 20px;line-height:1.4}
.credit-sheet-refresh i{color:#8f7f94}
body .discover-credit-sheet .credit-sheet-refresh strong{color:#fff;font-weight:600}
body .discover-credit-sheet>div{display:grid;gap:6px}
body .discover-credit-sheet [data-credit-store]{min-height:50px;border:0;background:linear-gradient(135deg,#ff245a 0%,#e1043c 100%);box-shadow:0 10px 26px rgba(225,4,60,.38);font-size:15px;font-weight:700;color:#fff}
body .discover-credit-sheet [data-credit-store]:hover{filter:brightness(1.06)}
body .discover-credit-sheet [data-credit-wait]{min-height:44px;border:0;background:transparent;color:#bba9bf;font-weight:600}
body .discover-credit-sheet [data-credit-wait]:hover{color:#fff}
@media (prefers-reduced-motion:reduce){body .discover-credit-sheet[open]{animation:none}.credit-sheet-admirers{transition:none}}
body .discover-credit-sheet h2:focus{outline:none}
body .discover-credit-sheet button:focus-visible,.credit-sheet-admirers:focus-visible{outline:2px solid rgba(255,160,190,.7);outline-offset:3px}
