/* ==========================================================================
   Mithaq v2 — bold, photographic, app-like
   Loaded after app.css; overrides and new homepage sections.
   ========================================================================== */

body { background: #fff; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.55rem; letter-spacing: -.03em; }
.site-header { background: rgba(255, 255, 255, .94); }
.nav a.nav-link { font-weight: 700; }

/* Transparent header over the homepage hero */
.page-home .site-header { position: absolute; top: auto; left: 0; right: 0; background: transparent; border-bottom: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
.page-home .site-header .brand,
.page-home .site-header .nav a.nav-link,
.page-home .site-header .menu-toggle { color: #fff; }
.page-home .site-header .nav a.nav-link:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.page-home .site-header .btn-ghost { color: #fff; }
.page-home .site-header.open .public-nav a.nav-link,
.page-home .site-header.open .public-nav .btn-ghost { color: var(--ink); }

/* Hero */
.hero-photo { position: relative; min-height: min(92vh, 820px); display: flex; align-items: center; overflow: hidden; background: var(--night); color: #fff; }
.hero-photo .hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 35%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(23, 10, 20, .86) 0%, rgba(23, 10, 20, .55) 45%, rgba(23, 10, 20, .1) 100%), linear-gradient(0deg, rgba(23, 10, 20, .6), transparent 40%); }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: end; padding-top: 130px; padding-bottom: 80px; }
.hero-copy h1 { color: #fff; font-size: clamp(3rem, 7.5vw, 6rem); line-height: .95; letter-spacing: -.045em; margin: 1.1rem 0 1.2rem; }
.hero-copy p { font-size: 1.2rem; color: rgba(255, 255, 255, .88); max-width: 34ch; }
.pill-glass { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .9rem; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-weight: 700; font-size: .85rem; }
.hero-photo .hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.8rem; }
.hero-points { list-style: none; padding: 0; margin: 1.8rem 0 0; display: flex; gap: 1.4rem; flex-wrap: wrap; font-weight: 700; font-size: .9rem; color: rgba(255, 255, 255, .9); }
.hero-points li { display: inline-flex; gap: .4rem; align-items: center; }
.hero-float { display: grid; gap: 14px; justify-items: end; }
.float-card { display: flex; gap: 12px; align-items: center; background: #fff; color: var(--ink); border-radius: 20px; padding: 14px 18px; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .5); min-width: 270px; animation: floaty 6s ease-in-out infinite; }
.float-card.small { min-width: 230px; margin-right: 40px; animation-delay: -3s; }
.float-card strong { display: block; font-family: var(--font-display); font-size: 1.05rem; }
.float-card small { color: var(--ink-3); font-weight: 600; }
.float-ring { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--plum-700) 92%, var(--line) 0); position: relative; flex: none; }
.float-ring::before { content: ""; position: absolute; inset: 6px; background: #fff; border-radius: 50%; }
.float-ring span { position: relative; font-weight: 800; font-size: .9rem; color: var(--plum-800); }
.float-heart { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--plum-700); color: #fff; flex: none; }
@keyframes floaty { 50% { transform: translateY(-8px); } }
.photo-credit { position: absolute; right: 16px; bottom: 10px; margin: 0; font-size: .7rem; color: rgba(255, 255, 255, .55); z-index: 1; }
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 110px; padding-bottom: 56px; }
  .hero-float { display: none; }
  .hero-shade { background: linear-gradient(0deg, rgba(23, 10, 20, .92) 10%, rgba(23, 10, 20, .45) 70%, rgba(23, 10, 20, .3)); }
  .hero-photo { min-height: 640px; align-items: flex-end; }
}

/* ---------- Hero v3 (reference design) ---------- */
.brand-name { font-family: "Playfair Display", Georgia, serif; font-weight: 700; letter-spacing: -.01em; font-size: 1.7rem; }
.brand svg { width: 40px; height: 40px; border-radius: 0; }
.demo-banner { display: flex; align-items: center; justify-content: center; gap: .6rem; background: #1d0b17; color: #f4d38a; font-weight: 600; letter-spacing: .01em; }
.demo-banner .icon-sm { color: #f4c75a; flex: none; }
.demo-banner .db-line { flex: 0 1 70px; height: 1px; background: linear-gradient(90deg, transparent, rgba(244, 199, 90, .7)); }
.demo-banner .db-line:last-child { transform: scaleX(-1); }
.page-home .site-header .nav a.btn-primary { padding-left: 1.2rem; padding-right: 1.1rem; }

.hero-v3 { min-height: min(100vh, 900px); background: #1d0b17; }
.hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-v3 .hero-bg, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 55%; }
.hero-video { opacity: 0; transition: opacity 1.2s ease; }
.hero-v3 .hero-poster, .hero-v3 .hero-video { object-position: 50% 30%; }
.hero-video.ready { opacity: 1; }
.kenburns { transform-origin: 70% 50%; animation: kenburns 32s ease-in-out infinite alternate; will-change: transform; }
@keyframes kenburns { from { transform: scale(1.04) translate3d(0, 0, 0); } to { transform: scale(1.16) translate3d(-2%, -1.5%, 0); } }
.hero-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(55% 60% at 78% 30%, rgba(255, 176, 92, .38), transparent 70%); mix-blend-mode: screen; animation: glow 9s ease-in-out infinite alternate; }
@keyframes glow { from { opacity: .55; } to { opacity: 1; } }
.hero-v3 .hero-shade { background: linear-gradient(90deg, rgba(29, 11, 23, .95) 0%, rgba(29, 11, 23, .78) 32%, rgba(29, 11, 23, .25) 62%, rgba(29, 11, 23, .05) 100%), linear-gradient(0deg, rgba(29, 11, 23, .75) 0%, transparent 35%), linear-gradient(180deg, rgba(29, 11, 23, .55) 0%, transparent 22%); }
.hero-particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-particles span { position: absolute; bottom: -20px; width: 6px; height: 6px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 214, 140, .95), rgba(255, 170, 90, 0) 70%); animation: rise 18s linear infinite; opacity: 0; }
.hero-particles span:nth-child(1) { left: 52%; animation-delay: 0s; }
.hero-particles span:nth-child(2) { left: 58%; animation-delay: -3s; width: 4px; height: 4px; }
.hero-particles span:nth-child(3) { left: 64%; animation-delay: -6s; }
.hero-particles span:nth-child(4) { left: 70%; animation-delay: -9s; width: 9px; height: 9px; }
.hero-particles span:nth-child(5) { left: 76%; animation-delay: -12s; }
.hero-particles span:nth-child(6) { left: 82%; animation-delay: -15s; width: 4px; height: 4px; }
.hero-particles span:nth-child(7) { left: 88%; animation-delay: -2s; }
.hero-particles span:nth-child(8) { left: 94%; animation-delay: -5s; width: 8px; height: 8px; }
.hero-particles span:nth-child(9) { left: 61%; animation-delay: -8s; width: 3px; height: 3px; }
.hero-particles span:nth-child(10) { left: 73%; animation-delay: -11s; width: 5px; height: 5px; }
.hero-particles span:nth-child(11) { left: 85%; animation-delay: -14s; }
.hero-particles span:nth-child(12) { left: 47%; animation-delay: -17s; width: 4px; height: 4px; }
.hero-particles span:nth-child(13) { left: 67%; animation-delay: -4s; width: 7px; height: 7px; }
.hero-particles span:nth-child(14) { left: 91%; animation-delay: -10s; width: 3px; height: 3px; }
@keyframes rise { 0% { transform: translate3d(0, 0, 0); opacity: 0; } 12% { opacity: .9; } 80% { opacity: .5; } 100% { transform: translate3d(-40px, -95vh, 0); opacity: 0; } }

.hero-v3 .hero-inner { align-items: center; padding-top: 140px; padding-bottom: 90px; }
.pill-gold { display: inline-flex; align-items: center; gap: .55rem; padding: .55rem 1.1rem; border-radius: 999px; border: 1px solid rgba(244, 199, 90, .7); background: rgba(29, 11, 23, .35); color: #fff; font-weight: 600; font-size: .95rem; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.pill-gold .icon-sm { color: #f4c75a; }
.hero-v3 .hero-copy h1 { font-family: "Playfair Display", Georgia, serif; font-weight: 800; letter-spacing: -.02em; line-height: .98; font-size: clamp(3.2rem, 7.6vw, 6.6rem); margin: 1.6rem 0 1.4rem; }
.h-serif, .h-italic { display: block; }
.h-italic { font-style: italic; background: linear-gradient(90deg, #ff4f93 0%, #ff7aa8 55%, #ffb3c9 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .08em; }
.hero-v3 .hero-copy p { font-size: 1.25rem; max-width: 36ch; color: rgba(255, 255, 255, .9); }
.btn-gold-outline { --btn-bg: transparent; --btn-fg: #f4d38a; --btn-bd: rgba(244, 199, 90, .85); }
.btn-gold-outline:hover { --btn-bg: rgba(244, 199, 90, .12); --btn-fg: #ffe3a3; }
.hero-v3 .btn-primary { --btn-bg: #ff2d7f; --btn-bd: #ff2d7f; box-shadow: 0 14px 30px -12px rgba(255, 45, 127, .7); }
.hero-v3 .btn-primary:hover { --btn-bg: #ff4a92; }
.hero-stats { list-style: none; padding: 0; margin: 2.2rem 0 0; display: flex; flex-wrap: wrap; gap: 0; color: #fff; font-weight: 600; }
.hero-stats li { display: inline-flex; align-items: center; gap: .55rem; padding: 0 1.4rem; border-left: 1px solid rgba(255, 255, 255, .25); }
.hero-stats li:first-child { padding-left: 0; border-left: 0; }
.hero-stats .icon { width: 24px; height: 24px; color: #fff; }
.hero-v3 .float-card { background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hero-v3 .hero-float { align-self: end; }
@media (max-width: 900px) {
  .hero-v3 { min-height: 100svh; }
  .hero-v3 .hero-bg, .hero-video { object-position: 70% 50%; }
  /* Phones: video fills the top band (wide enough for both faces) and fades into the text area */
  .hero-v3 .hero-media { bottom: 38%; -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%); mask-image: linear-gradient(180deg, #000 72%, transparent 100%); }
  .hero-v3 .hero-poster, .hero-v3 .hero-video { object-position: 64% 18%; }
  .hero-v3 { align-items: flex-end; }
  .hero-v3 .hero-inner { padding-top: 46svh; padding-bottom: 48px; }
  .hero-v3 .hero-shade { background: linear-gradient(0deg, rgba(29, 11, 23, 1) 0%, rgba(29, 11, 23, .92) 40%, rgba(29, 11, 23, .25) 58%, rgba(29, 11, 23, .1) 100%); }
  .hero-v3 .hero-glow { opacity: .6; }
  .hero-v3 .hero-copy h1 { font-size: clamp(2.9rem, 13vw, 4rem); margin-top: 1rem; }
  .hero-v3 .hero-shade { background: linear-gradient(0deg, rgba(29, 11, 23, .96) 18%, rgba(29, 11, 23, .55) 62%, rgba(29, 11, 23, .35) 100%); }
  .hero-stats li { padding: .35rem 1rem; }
  .hero-stats li:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 520px) {
  .hero-stats li { padding: .3rem .8rem; font-size: .88rem; }
  .hero-stats li:nth-child(2) { border-left: 1px solid rgba(255, 255, 255, .25); }
  .demo-banner .db-line { display: none; }
}
@media (prefers-reduced-motion: reduce) { .hero-particles { display: none; } }

/* Trust strip */
.trust-strip { background: #fff; border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 30px; padding-bottom: 30px; }
.trust-grid > div { display: flex; gap: 12px; align-items: flex-start; }
.trust-grid strong { display: block; font-family: var(--font-display); font-size: 1.02rem; }
.trust-grid small { color: var(--ink-3); font-weight: 500; }
.t-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--plum-50); color: var(--plum-700); flex: none; }
@media (max-width: 900px) { .trust-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .trust-grid { grid-template-columns: 1fr; } }

/* Photo collage */
.section-pink { background: linear-gradient(180deg, #fff5f8 0%, #ffe9f0 100%); }
.collage { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; grid-template-rows: 1fr 1fr; gap: 14px; height: 520px; }
.collage figure { margin: 0; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); background: var(--plum-50); }
.collage img { width: 100%; height: 100%; object-fit: cover; }
.collage .c1 { grid-row: 1 / 3; }
.collage-badge { position: absolute; left: -14px; bottom: 34px; display: inline-flex; gap: .5rem; align-items: center; background: #fff; padding: .8rem 1.1rem; border-radius: 999px; box-shadow: var(--shadow-lg); font-weight: 800; color: var(--plum-800); }
@media (max-width: 900px) { .collage { height: 380px; } .collage-badge { left: 10px; } }

/* Journey: Single → Married */
.journey { display: grid; grid-template-columns: 1.05fr 170px 1fr; gap: 20px; align-items: center; }
.journey-phase { position: relative; }
.phase-tag { position: absolute; top: -16px; left: 18px; z-index: 3; display: inline-flex; align-items: center; gap: .5rem; padding: .45rem 1rem .45rem .45rem; border-radius: 999px; background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1rem; box-shadow: var(--shadow); }
.phase-tag b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink); font-size: .85rem; }
.phase-tag.married { background: var(--plum-700); }
.phase-tag.married b { color: var(--plum-700); }
.singles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.portrait, .couple { position: relative; margin: 0; border-radius: 28px; overflow: hidden; box-shadow: 0 30px 50px -28px rgba(29, 19, 32, .55); background: var(--plum-50); }
.portrait { aspect-ratio: 3 / 4; }
.portrait.p-him { transform: translateY(34px); }
.portrait img, .couple img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.portrait:hover img, .couple:hover img { transform: scale(1.04); }
.portrait.p-her img { object-position: 50% 25%; }
.portrait figcaption { position: absolute; left: 10px; right: 10px; bottom: 10px; padding: .5rem .75rem; border-radius: 14px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-size: .8rem; font-weight: 800; color: var(--ink); text-align: center; }
.couple { aspect-ratio: 4 / 5; border: 6px solid #fff; box-shadow: 0 40px 70px -30px rgba(229, 51, 107, .6); }
.couple img { object-position: 50% 30%; }
.couple-badge { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: inline-flex; gap: .4rem; align-items: center; padding: .6rem 1.1rem; border-radius: 999px; background: #fff; color: var(--plum-800); font-weight: 800; white-space: nowrap; box-shadow: var(--shadow); }
.journey-link { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.link-line { width: 3px; height: 54px; border-radius: 3px; background: repeating-linear-gradient(180deg, var(--plum-300, #ffc2d3) 0 8px, transparent 8px 14px); }
.link-heart { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #ff6f91, #e5336b); box-shadow: 0 16px 34px -12px rgba(229, 51, 107, .8); animation: beat 2.4s ease-in-out infinite; }
.link-heart .icon { width: 32px; height: 32px; fill: #fff; }
.link-card { text-align: center; padding: .6rem 1rem; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.link-card strong { display: block; font-family: var(--font-display); font-weight: 800; color: var(--plum-800); }
.link-card small { color: var(--ink-3); font-weight: 700; }
@keyframes beat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.12); } 24% { transform: scale(1); } 36% { transform: scale(1.08); } }
.journey-note { text-align: right; font-size: .72rem; color: var(--ink-3); margin: 44px 0 0; }
.journey-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.journey-points > div { display: flex; gap: 12px; align-items: flex-start; padding: 20px; border-radius: 22px; background: var(--ivory-2); }
.journey-points strong { display: block; font-family: var(--font-display); font-size: 1.05rem; }
.journey-points small { color: var(--ink-2); font-weight: 500; }
@media (max-width: 960px) {
  .journey { grid-template-columns: 1fr; gap: 34px; }
  .journey-link { flex-direction: row; justify-content: center; }
  .link-line { width: 48px; height: 3px; background: repeating-linear-gradient(90deg, #ffc2d3 0 8px, transparent 8px 14px); }
  .journey-points { grid-template-columns: 1fr; }
  .journey-note { text-align: center; margin-top: 16px; }
}
@media (max-width: 480px) { .link-card { display: none; } .portrait.p-him { transform: translateY(20px); } }

/* How it works + phone mockup */
.how { display: grid; grid-template-columns: 1fr 360px; gap: 56px; align-items: center; }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.how-steps li { display: flex; gap: 18px; align-items: flex-start; background: #fff; border-radius: 22px; padding: 22px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.how-steps .num { width: 44px; height: 44px; border-radius: 14px; background: var(--plum-700); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; display: grid; place-items: center; flex: none; box-shadow: 0 8px 18px -8px rgba(229, 51, 107, .7); }
.how-steps h3 { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: .25rem; }
.how-steps p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.phone { position: relative; width: 340px; justify-self: center; background: #1d1320; border-radius: 46px; padding: 14px; box-shadow: 0 40px 80px -30px rgba(29, 19, 32, .55); margin-bottom: 30px; }
.phone-notch { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 110px; height: 24px; background: #1d1320; border-radius: 0 0 16px 16px; z-index: 2; }
.phone-screen { background: #fff; border-radius: 34px; padding: 40px 16px 18px; min-height: 540px; }
.phone-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-family: var(--font-display); font-size: 1.3rem; }
.phone .preview-card { grid-template-columns: 96px 1fr; padding: 12px; gap: 12px; }
.phone .preview-art { width: 96px; height: 120px; }
.phone .preview-meta h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; }
.phone .bar-row { grid-template-columns: 100px 1fr 30px; font-size: .75rem; }
.phone-actions { display: flex; justify-content: center; gap: 22px; margin-top: 16px; }
.phone-actions .pa { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; box-shadow: var(--shadow); }
.phone-actions .pass { background: #fff; color: var(--ink-3); border: 1px solid var(--line); }
.phone-actions .like { background: var(--plum-700); color: #fff; }
.phone-note { position: absolute; left: 0; right: 0; bottom: -30px; text-align: center; font-size: .75rem; color: var(--ink-3); margin: 0; }
@media (max-width: 960px) { .how { grid-template-columns: 1fr; } }
@media (max-width: 400px) { .phone { width: 100%; } }

.preview-card { background: linear-gradient(160deg, #fff 0%, var(--plum-50) 100%); }
.preview-art { background: linear-gradient(170deg, #f04d80, #ffb938); }
.preview-art::before { border-color: rgba(255, 255, 255, .8); }
.preview-art::after { background: rgba(255, 255, 255, .9); }
.preview-tabs button[aria-pressed=true] { background: var(--plum-700); border-color: var(--plum-700); }
.bar > span { background: linear-gradient(90deg, #ff7aa0, var(--plum-700)); }

/* Dark photo section */
.dark-photo { position: relative; overflow: hidden; background: var(--night); color: #fff; }
.dark-photo-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dark-photo-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(27, 13, 25, .9) 0%, rgba(27, 13, 25, .6) 55%, rgba(27, 13, 25, .35) 100%); }
.dark-photo .check-list li { color: #f3dfe8; }
.dark-photo .check-list .icon { color: var(--rose-500); }
.eyebrow-dark { background: rgba(255, 255, 255, .12); color: #fff; }
.privacy-visual { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #fff; }

/* Testimonials, pricing */
.testimonial { box-shadow: var(--shadow-sm); }
.testimonial blockquote { font-family: var(--font-sans); font-style: normal; font-weight: 600; font-size: 1.12rem; color: var(--ink); }
.stars { color: var(--gold-500); letter-spacing: .1em; margin-bottom: .8rem; }
.price-card { border: 0; box-shadow: 0 30px 60px -30px rgba(229, 51, 107, .45); }
.price { font-weight: 800; letter-spacing: -.03em; font-family: var(--font-display); }

/* CTA band with photo */
.cta-photo { position: relative; overflow: hidden; min-height: 460px; display: flex; align-items: center; text-align: center; color: #fff; }
.cta-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.cta-shade { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(229, 51, 107, .82), rgba(90, 14, 50, .55)); }
.cta-inner { position: relative; padding-top: 80px; padding-bottom: 80px; }
.cta-inner h2 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); }
.cta-inner p { font-size: 1.15rem; color: rgba(255, 255, 255, .9); max-width: 46ch; margin: 0 auto 1.8rem; }

/* Auth pages with photography */
.auth-art.photo { padding: 48px; background: var(--night); }
.auth-art.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth-art.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(23, 10, 20, .92) 0%, rgba(23, 10, 20, .25) 60%, rgba(229, 51, 107, .15)); }
.auth-art.photo > *:not(img) { position: relative; z-index: 1; }
.auth-art blockquote { font-family: var(--font-display); font-style: normal; font-weight: 700; font-size: 1.7rem; }
.auth-panel { background: #fff; }

/* App home banner */
.app-hero { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin: 28px 0 28px; padding: 36px 40px; border-radius: 32px; color: #fff; background: linear-gradient(120deg, #e5336b 0%, #f2577f 45%, #ff9f6e 100%); box-shadow: 0 30px 60px -34px rgba(229, 51, 107, .8); }
.app-hero::before, .app-hero::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.app-hero::before { width: 320px; height: 320px; right: -80px; top: -140px; }
.app-hero::after { width: 180px; height: 180px; right: 220px; bottom: -110px; }
.app-hero > * { position: relative; z-index: 1; }
.app-hero h1 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.8rem); max-width: 22ch; margin: .3rem 0 .5rem; }
.app-hero p { color: rgba(255, 255, 255, .9); max-width: 56ch; }
.app-hero-hi { font-weight: 800; margin: 0; }
.app-hero-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.app-hero .filters-toggle { display: none; }
@media (max-width: 960px) { .app-hero .filters-toggle { display: inline-flex; } .app-hero { padding: 28px 24px; } }

/* App surfaces */
.page-head h1 { letter-spacing: -.03em; }
.pcard { border-radius: 26px; box-shadow: 0 2px 4px rgba(29, 19, 32, .04); }
.pcard-body h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; }
.pcard-media { background: linear-gradient(160deg, #ffe1ea, #fff4dc); }
.pcard-media .monogram { color: var(--plum-700); font-weight: 800; opacity: .8; }
.pcard-score { font-weight: 800; }
.ring span { font-weight: 800; }
.reveal { background: radial-gradient(60% 80% at 50% 0%, #ffe1ea 0%, transparent 70%); }
.reveal .big-count { color: var(--plum-700); font-weight: 800; letter-spacing: -.05em; }
.onb-card h1 { letter-spacing: -.03em; }
.site-footer { background: var(--night); }
.footer-grid h4 { color: var(--rose-500); }
.demo-banner { background: #1d1320; color: #ffd27a; }
.error-code { color: var(--plum-50); -webkit-text-stroke: 2px var(--plum-700); font-weight: 800; }
.verified { color: #1d9bf0; }
.icon-badge { border-radius: 16px; }
.feature h3 { font-family: var(--font-display); font-size: 1.2rem; }
.empty h3, .card .display { font-weight: 800; letter-spacing: -.02em; }

/* ---------- Banner variants ---------- */
.app-hero.tone-night { background: radial-gradient(120% 140% at 0% 0%, #5a1440 0%, #2a0d24 50%, var(--night) 100%); box-shadow: 0 30px 60px -34px rgba(29, 19, 32, .8); }
.app-hero.tone-peach { background: linear-gradient(120deg, #ff8a5b 0%, #ff6f91 55%, #e5336b 100%); }
.app-hero-main { display: flex; gap: 18px; align-items: center; }
.app-hero-icon { width: 60px; height: 60px; border-radius: 20px; display: grid; place-items: center; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .3); flex: none; }
.app-hero-icon .icon { width: 28px; height: 28px; }
.app-hero .btn-light { --btn-bg: rgba(255, 255, 255, .16); }
@media (max-width: 640px) { .app-hero-icon { display: none; } }

/* ---------- Pill tabs ---------- */
.tabs.pills { border: 0; gap: .5rem; margin-bottom: 26px; }
.tabs.pills a { border: 1px solid var(--line); border-radius: 999px; padding: .6rem 1.2rem; color: var(--ink-2); background: #fff; }
.tabs.pills a.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.tabs.pills .count-pill { margin-left: .4rem; font-size: .75rem; background: var(--plum-700); color: #fff; padding: .05rem .5rem; border-radius: 999px; }

/* List pages: action row under each card */
.card-stack { display: flex; flex-direction: column; }
.card-stack .pcard { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.card-actions { display: flex; gap: .5rem; padding: 12px; background: #fff; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 26px 26px; }
.card-actions > * { flex: 1; }
.card-actions .btn { width: 100%; }
.note-bubble { margin: 0; padding: 10px 14px; background: var(--plum-50); color: var(--plum-800); font-size: .88rem; font-weight: 600; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }

/* ---------- Profile cover (my profile + member profile) ---------- */
.profile-cover { position: relative; margin-top: 24px; border-radius: 34px; overflow: hidden; background: linear-gradient(120deg, #e5336b 0%, #f2577f 45%, #ff9f6e 100%); padding: 36px 40px 30px; color: #fff; }
.profile-cover::before { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; right: -100px; top: -180px; background: rgba(255, 255, 255, .12); }
.profile-cover::after { content: ""; position: absolute; width: 200px; height: 200px; border-radius: 50%; left: 40%; bottom: -130px; background: rgba(255, 255, 255, .1); }
.profile-cover > * { position: relative; z-index: 1; }
.cover-grid { display: grid; grid-template-columns: 220px 1fr auto; gap: 32px; align-items: center; }
.cover-photo { width: 220px; aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; border: 5px solid rgba(255, 255, 255, .9); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .45); background: linear-gradient(160deg, #ffe1ea, #fff4dc); position: relative; }
.cover-photo img { width: 100%; height: 100%; object-fit: cover; }
.cover-photo img.blurred { filter: blur(20px); transform: scale(1.2); }
.cover-photo .monogram { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 4.5rem; color: var(--plum-700); }
.cover-photo .media-note { position: absolute; left: 10px; right: 10px; bottom: 10px; text-align: center; font-size: .72rem; font-weight: 700; color: #fff; background: rgba(29, 19, 32, .6); padding: .35rem .5rem; border-radius: 999px; }
.cover-info h1 { color: #fff; font-size: clamp(2.2rem, 4.5vw, 3.4rem); margin: .4rem 0 .3rem; }
.cover-info .place { font-size: 1.1rem; font-weight: 600; color: rgba(255, 255, 255, .92); margin: 0; }
.cover-badges { display: flex; gap: .5rem; flex-wrap: wrap; }
.cover-badges .badge { background: rgba(255, 255, 255, .2); color: #fff; border: 1px solid rgba(255, 255, 255, .3); }
.cover-badges .badge-demo { background: #1d1320; border: 0; color: #ffd27a; }
.cover-score { text-align: center; }
.cover-score .ring { --size: 130px; background: conic-gradient(#ffd27a calc(var(--val) * 1%), rgba(255, 255, 255, .3) 0); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .4); }
.cover-score .ring::before { inset: 10px; background: #fff; }
.cover-score .ring span { color: var(--plum-800); }
.cover-score .ring small { color: var(--ink-3); }
.cover-info .place { display: flex; align-items: flex-start; gap: .4rem; }
.cover-info .place .icon-sm { margin-top: .3em; }
.cover-score p { margin: .5rem 0 0; font-weight: 800; }
.cover-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 22px; }
.cover-actions .btn:not(.btn-primary):not(.btn-white) { --btn-bg: rgba(255, 255, 255, .16); --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .35); }
.cover-actions .btn-primary { --btn-bg: #fff; --btn-fg: var(--plum-800); --btn-bd: #fff; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .4); }
.cover-hint { color: rgba(255, 255, 255, .9); font-size: .85rem; margin: .8rem 0 0; }
.cover-hint a { color: #fff; font-weight: 800; }
.highlight-row { display: flex; gap: .6rem; flex-wrap: wrap; margin: 22px 0 6px; }
.highlight-row .chip { background: #fff; border-color: var(--plum-100); color: var(--plum-800); font-weight: 700; box-shadow: var(--shadow-sm); }
.gallery-strip { display: flex; gap: 10px; margin-top: 14px; }
.gallery-strip button { width: 64px; height: 80px; border-radius: 14px; overflow: hidden; border: 3px solid rgba(255, 255, 255, .5); padding: 0; cursor: pointer; background: rgba(255, 255, 255, .2); }
.gallery-strip button[aria-current=true] { border-color: #fff; }
.gallery-strip img { width: 100%; height: 100%; object-fit: cover; }
.profile-body { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; margin-top: 24px; align-items: start; }
.profile-body .card { border-radius: 28px; }
.section-title { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; margin-bottom: 1rem; color: var(--ink); }
.section-title .icon-badge { width: 38px; height: 38px; border-radius: 12px; }
.detail-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.detail-tile { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; background: var(--ivory-2); }
.detail-tile .icon { color: var(--plum-700); margin-top: 2px; }
.detail-tile small { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.detail-tile strong { font-weight: 700; font-size: .93rem; }
.strength { display: flex; align-items: center; gap: 14px; }
.strength .ring { --size: 74px; }
@media (max-width: 960px) {
  .cover-grid { grid-template-columns: 1fr; gap: 20px; }
  .cover-photo { width: 180px; }
  .cover-score { text-align: left; display: flex; align-items: center; gap: 12px; }
  .cover-score .ring { --size: 84px; }
  .profile-body { grid-template-columns: 1fr; }
  .profile-cover { padding: 26px 22px; }
}
@media (max-width: 560px) { .detail-tiles { grid-template-columns: 1fr; } }

/* ---------- Messages ---------- */
.chat { border: 0; border-radius: 30px; box-shadow: 0 30px 60px -40px rgba(29, 19, 32, .45), 0 0 0 1px var(--line); }
.chat-list { background: #fff; overflow-x: hidden; }
.chat-list a > span { min-width: 0; }
.chat-list-head { padding: 18px 18px 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; }
.chat-list a { border-bottom: 0; margin: 2px 8px; border-radius: 18px; }
.chat-list a.active { background: var(--plum-50); }
.chat-list .avatar, .chat-head .avatar { background: linear-gradient(135deg, #f04d80, #ffb938); color: #fff; }
.chat-head { background: linear-gradient(120deg, #e5336b, #ff7a8f); color: #fff; border-bottom: 0; }
.chat-head .avatar { color: #fff; }
.chat:not(.has-active) { height: calc(100vh - 380px); min-height: 420px; }
.chat-head a, .chat-head strong { color: #fff; }
.chat-head .btn-ghost { --btn-fg: #fff; }
.chat-head .btn-ghost:hover { --btn-bg: rgba(255, 255, 255, .15); }
.chat-safety { background: #fff7e6; color: #8a5a00; }
.chat-stream { background: #fff6f9; }
.msg { border: 0; background: #fff; box-shadow: 0 2px 6px rgba(29, 19, 32, .06); border-radius: 22px; border-bottom-left-radius: 6px; }
.msg.mine { background: linear-gradient(135deg, #f04d80, #e5336b); border-bottom-right-radius: 6px; border-bottom-left-radius: 22px; }
.chat-form { background: #fff; }
.chat-form textarea { border-radius: 999px; padding: .75rem 1.2rem; }

/* ---------- Settings ---------- */
.settings-nav { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 10px; }
.settings-nav a { border-radius: 14px; }
.settings-nav a .icon { color: var(--plum-700); }
.settings-nav a:hover { background: var(--plum-50); color: var(--plum-800); }
.settings-section { border-radius: 28px; }
.settings-section h2 { display: flex; align-items: center; gap: .7rem; font-size: 1.6rem !important; }
.settings-section h2 .icon-badge { width: 42px; height: 42px; border-radius: 14px; }
.settings-section#danger h2 .icon-badge { background: var(--danger-bg); color: var(--danger); }
.switch input:checked { background: var(--plum-700); }

/* Notifications */
.notif { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 20px; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); transition: transform .2s var(--ease), box-shadow .2s; }
.notif:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.notif.unread { border-color: var(--plum-100); background: linear-gradient(90deg, var(--plum-50), #fff 60%); }
.notif .when { margin-left: auto; font-size: .8rem; color: var(--ink-3); white-space: nowrap; }
.notif-list { display: grid; gap: 10px; }
