/* Step99 — independent dating app. Uses the portal design language without changing existing sections. */

.dating-page {
    --dating-accent: #f43f5e;
    --dating-accent-dark: #e11d48;
    --dating-ink: #111827;
    --dating-muted: #667085;
    --dating-line: #e5e7eb;
    --dating-soft: #fff5f7;
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 30px 0 70px;
    color: var(--dating-ink);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.dating-page--narrow { width: min(860px, 100%); }
.dating-page--detail { width: min(1080px, 100%); }

.dating-kicker {
    display: block;
    margin-bottom: 8px;
    color: var(--dating-accent-dark);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.dating-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 28px;
    padding: 34px;
    border: 1px solid #f1d8de;
    border-radius: 30px;
    background:
        radial-gradient(circle at 88% 12%, rgba(244,63,94,.12), transparent 30%),
        linear-gradient(135deg, #fff 0%, #fff8fa 100%);
    box-shadow: 0 18px 55px rgba(15,23,42,.07);
}

.dating-hero h1,
.dating-form-head h1,
.dating-section-head h1,
.dating-section-head h2 {
    margin: 0;
    color: #101828;
    font-family: Manrope, Inter, sans-serif;
    font-weight: 850;
    letter-spacing: -.035em;
}

.dating-hero h1 { max-width: 760px; font-size: clamp(36px, 6vw, 68px); line-height: .98; }
.dating-hero p { max-width: 720px; margin: 18px 0 0; color: var(--dating-muted); font-size: 18px; line-height: 1.6; }
.dating-hero__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; max-width: 360px; }

.dating-btn {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid #d0d5dd;
    border-radius: 14px;
    background: #fff;
    color: #1f2937;
    font: inherit;
    font-weight: 750;
    line-height: 1.1;
    text-decoration: none;
    cursor: pointer;
}
.dating-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(15,23,42,.08); }
.dating-btn--primary { border-color: var(--dating-accent); background: var(--dating-accent); color: #fff; }
.dating-btn--primary:hover { background: var(--dating-accent-dark); }
.dating-btn--wide { width: 100%; }
.dating-btn--search { align-self: end; min-height: 50px; border-color: #111827; background: #111827; color: #fff; }

.dating-filters {
    display: grid;
    grid-template-columns: 1.15fr 1fr 1.1fr .9fr auto;
    gap: 12px;
    margin: 22px 0 38px;
    padding: 18px;
    border: 1px solid var(--dating-line);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(15,23,42,.05);
}

.dating-field { min-width: 0; }
.dating-field label,
.dating-form-row > label:not(.dating-checkbox) { display: block; margin: 0 0 7px; color: #475467; font-size: 13px; font-weight: 750; }
.dating-field input,
.dating-field select,
.dating-profile-form input[type="text"],
.dating-profile-form input[type="date"],
.dating-profile-form input[type="file"],
.dating-profile-form select,
.dating-profile-form textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 50px;
    padding: 11px 13px;
    border: 1px solid #d0d5dd;
    border-radius: 13px;
    background: #fff;
    color: #101828;
    font: inherit;
    font-size: 16px;
    outline: none;
}
.dating-profile-form textarea { min-height: 145px; resize: vertical; line-height: 1.5; }
.dating-field input:focus,
.dating-field select:focus,
.dating-profile-form input:focus,
.dating-profile-form select:focus,
.dating-profile-form textarea:focus { border-color: #fb7185; box-shadow: 0 0 0 3px rgba(244,63,94,.10); }
.dating-age-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }

.dating-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}
.dating-section-head--top { align-items: start; margin-bottom: 24px; }
.dating-section-head h1,
.dating-section-head h2 { font-size: clamp(30px, 4vw, 44px); }
.dating-count { color: #98a2b3; font-weight: 650; }

.dating-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}
.dating-grid--matches { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.dating-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--dating-line);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 10px 34px rgba(15,23,42,.06);
    transition: transform .18s ease, box-shadow .18s ease;
}
.dating-card:hover { transform: translateY(-3px); box-shadow: 0 18px 42px rgba(15,23,42,.10); }
.dating-card__photo { position: relative; display: block; height: 330px; overflow: hidden; background: #f2f4f7; text-decoration: none; }
.dating-card__photo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.dating-photo-placeholder { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; background: linear-gradient(135deg,#ffe4ea,#f3f4f6); color: #9f1239; font-size: 72px; font-weight: 850; }
.dating-goal-badge { position: absolute; left: 14px; bottom: 14px; max-width: calc(100% - 28px); padding: 7px 11px; border-radius: 999px; background: rgba(17,24,39,.82); color: #fff; backdrop-filter: blur(8px); font-size: 12px; font-weight: 800; }
.dating-goal-badge--inline { position: static; display: inline-flex; margin-bottom: 10px; background: #ffe4ea; color: #be123c; }
.dating-card__body { padding: 17px; }
.dating-card__title { display: block; margin-bottom: 6px; color: #101828; font-size: 23px; font-weight: 850; line-height: 1.15; text-decoration: none; }
.dating-card__meta { color: #667085; font-size: 14px; font-weight: 600; }
.dating-card__body p { min-height: 44px; margin: 12px 0; color: #475467; line-height: 1.45; }
.dating-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.dating-tags span { padding: 6px 9px; border-radius: 999px; background: #f2f4f7; color: #475467; font-size: 12px; font-weight: 650; }
.dating-tags--large span { padding: 8px 11px; font-size: 14px; }
.dating-card__actions { display: grid; grid-template-columns: 46px 1fr; gap: 8px; margin-top: 16px; }
.dating-like { width: 46px; height: 46px; border: 1px solid #f1c4ce; border-radius: 14px; background: #fff7f9; color: var(--dating-accent); font-size: 25px; cursor: pointer; }
.dating-like.is-active { background: #ffe4ea; }
.dating-mini-message { display: flex; align-items: center; justify-content: center; border-radius: 14px; background: #111827; color: #fff; font-weight: 750; text-decoration: none; }

.dating-empty { grid-column: 1 / -1; padding: 60px 24px; border: 1px dashed #d0d5dd; border-radius: 24px; background: #fafafa; text-align: center; }
.dating-empty__icon { font-size: 58px; }
.dating-empty h3 { margin: 12px 0 6px; font-size: 26px; }
.dating-empty p { color: #667085; }

.dating-form-head { margin-bottom: 24px; }
.dating-form-head h1 { margin-top: 4px; font-size: clamp(34px, 6vw, 52px); }
.dating-form-head p { max-width: 700px; color: #667085; line-height: 1.6; }
.dating-back { display: inline-block; margin-bottom: 18px; color: #667085; font-weight: 700; text-decoration: none; }
.dating-profile-form { padding: 24px; border: 1px solid var(--dating-line); border-radius: 24px; background: #fff; box-shadow: 0 12px 35px rgba(15,23,42,.06); }
.dating-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.dating-form-row--wide { grid-column: 1 / -1; }
.dating-form-row small { display: block; margin-top: 6px; color: #98a2b3; }
.dating-checkbox { display: inline-flex; align-items: center; gap: 10px; color: #344054; font-weight: 700; }
.dating-checkbox input { width: 20px !important; min-height: 20px !important; }
.dating-field-error, .dating-form-errors { margin-top: 6px; color: #b42318; font-size: 13px; font-weight: 650; }

.dating-current-photos { margin: 28px 0; }
.dating-current-photos h2 { margin-bottom: 12px; }
.dating-photo-edit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dating-photo-edit-item { position: relative; overflow: hidden; aspect-ratio: 1; border-radius: 16px; background: #f2f4f7; }
.dating-photo-edit-item img { width: 100%; height: 100%; object-fit: cover; }
.dating-photo-delete { position: absolute; right: 8px; bottom: 8px; padding: 7px 9px; border: 0; border-radius: 10px; background: rgba(17,24,39,.85); color: #fff; font-weight: 700; cursor: pointer; }
.dating-visibility-form { margin-top: 12px; }

.dating-detail-card { display: grid; grid-template-columns: minmax(0,1.12fr) minmax(330px,.88fr); gap: 0; overflow: hidden; border: 1px solid var(--dating-line); border-radius: 28px; background: #fff; box-shadow: 0 16px 48px rgba(15,23,42,.08); }
.dating-detail-gallery { padding: 18px; background: #f8fafc; }
.dating-detail-main-photo { height: 620px; overflow: hidden; border-radius: 20px; background: #eef2f6; }
.dating-detail-main-photo img { width: 100%; height: 100%; display: block; object-fit: contain; }
.dating-thumbs { display: flex; gap: 9px; overflow-x: auto; margin-top: 11px; padding-bottom: 3px; }
.dating-thumb { flex: 0 0 74px; width: 74px; height: 74px; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 12px; background: #fff; cursor: pointer; }
.dating-thumb:focus { border-color: var(--dating-accent); }
.dating-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dating-detail-info { padding: 34px; }
.dating-detail-info h1 { margin: 0 0 7px; font-family: Manrope,Inter,sans-serif; font-size: clamp(34px,5vw,52px); line-height: 1; letter-spacing: -.035em; }
.dating-detail-section { margin-top: 28px; }
.dating-detail-section h2 { margin: 0 0 9px; font-size: 17px; }
.dating-detail-section p { margin: 0; color: #475467; font-size: 17px; line-height: 1.65; }
.dating-detail-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 30px; }
.dating-detail-actions form:first-child { min-width: 0; }
.dating-detail-actions form:first-child .dating-btn { width: 100%; }
.dating-detail-actions form:last-child { grid-column: 1 / -1; text-align: center; }
.dating-text-danger { padding: 8px; border: 0; background: transparent; color: #b42318; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }

.dating-flashes { display: grid; gap: 8px; margin-bottom: 16px; }
.dating-flash { padding: 12px 14px; border-radius: 12px; background: #eef4ff; color: #344054; font-weight: 650; }
.dating-flash--success { background: #ecfdf3; color: #067647; }
.dating-flash--error { background: #fef3f2; color: #b42318; }
.dating-flash--warning { background: #fffaeb; color: #b54708; }

@media (max-width: 980px) {
    .dating-hero { grid-template-columns: 1fr; align-items: start; }
    .dating-hero__actions { justify-content: flex-start; max-width: none; }
    .dating-filters { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .dating-btn--search { grid-column: 1 / -1; }
    .dating-grid, .dating-grid--matches { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .dating-detail-card { grid-template-columns: 1fr; }
    .dating-detail-main-photo { height: min(72vh, 650px); }
}

@media (max-width: 640px) {
    .dating-page { padding: 14px 0 54px; }
    .dating-hero { padding: 24px 18px; border-radius: 22px; }
    .dating-hero h1 { font-size: 41px; }
    .dating-hero p { font-size: 16px; }
    .dating-hero__actions { display: grid; grid-template-columns: 1fr; width: 100%; }
    .dating-filters { grid-template-columns: 1fr; padding: 14px; border-radius: 18px; }
    .dating-btn--search { grid-column: auto; }
    .dating-section-head { align-items: start; }
    .dating-count { padding-top: 8px; font-size: 13px; }
    .dating-grid, .dating-grid--matches { grid-template-columns: 1fr; gap: 16px; }
    .dating-card { display: grid; grid-template-columns: 42% minmax(0,1fr); border-radius: 20px; }
    .dating-card__photo { height: 100%; min-height: 235px; }
    .dating-goal-badge { left: 8px; bottom: 8px; padding: 5px 7px; font-size: 10px; }
    .dating-card__body { padding: 14px; }
    .dating-card__title { font-size: 20px; }
    .dating-card__body p { min-height: 0; margin: 9px 0; font-size: 13px; }
    .dating-tags span:nth-child(n+3) { display: none; }
    .dating-form-grid { grid-template-columns: 1fr; }
    .dating-form-row--wide { grid-column: auto; }
    .dating-profile-form { padding: 17px; border-radius: 20px; }
    .dating-photo-edit-grid { grid-template-columns: repeat(2,1fr); }
    .dating-detail-card { border-radius: 20px; }
    .dating-detail-gallery { padding: 10px; }
    .dating-detail-main-photo { height: 58vh; min-height: 380px; border-radius: 15px; }
    .dating-detail-info { padding: 23px 18px 27px; }
    .dating-detail-info h1 { font-size: 38px; }
    .dating-detail-actions { grid-template-columns: 1fr; }
    .dating-detail-actions form:last-child { grid-column: auto; }
}

.dating-profile-secondary-actions { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; margin-top:12px; }
.dating-safety-actions { grid-column:1 / -1; display:flex; align-items:flex-start; justify-content:center; gap:16px; flex-wrap:wrap; }
.dating-report-menu { position:relative; font-size:13px; }
.dating-report-menu > summary { padding:8px; color:#667085; font-weight:700; cursor:pointer; list-style:none; }
.dating-report-menu > summary::-webkit-details-marker { display:none; }
.dating-report-menu form { position:absolute; right:0; top:38px; z-index:20; display:grid; gap:8px; width:min(320px, calc(100vw - 48px)); padding:12px; border:1px solid #e5e7eb; border-radius:14px; background:#fff; box-shadow:0 16px 44px rgba(15,23,42,.16); }
.dating-report-menu select, .dating-report-menu input { box-sizing:border-box; width:100%; min-height:42px; padding:8px 10px; border:1px solid #d0d5dd; border-radius:10px; font:inherit; background:#fff; }
@media (max-width:640px){ .dating-report-menu form{ right:-40px; } }
