/* ==========================================================================
   Feature dialogs: video player, match, video date, checkout, report
   ========================================================================== */

/* Video player */
.video-box { max-width: 420px; overflow: hidden; }
.video-stage { aspect-ratio: 3 / 4; max-height: 62vh; width: 100%; position: relative; display: grid; place-items: center; }
.video-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.video-initial { font-size: 120px; font-weight: 800; color: rgba(255, 255, 255, .5); animation: breathe 3s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.05); } }
.video-progress { position: absolute; left: 16px; right: 16px; bottom: 16px; height: 4px; background: rgba(255, 255, 255, .3); border-radius: 4px; overflow: hidden; }
.video-progress span { display: block; height: 100%; width: 0; background: #fff; transition: width 1s linear; }
.video-time { position: absolute; right: 16px; bottom: 28px; color: #fff; font-size: 12px; font-weight: 700; }
.video-meta { padding: 20px 24px 24px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.video-meta h3 { font-size: 22px; }
.video-acts { display: flex; gap: 12px; }
.round-btn { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1.5px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .2s; }
.round-btn:hover { transform: scale(1.1); }
.round-btn svg { width: 26px; height: 26px; }
.round-btn.is-heart { box-shadow: 0 8px 22px rgba(232, 48, 94, .3); }

/* Match */
.match-pair { display: flex; align-items: center; justify-content: center; gap: 4px; margin-bottom: 6px; }
.match-av { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 30px; border: 4px solid #fff; box-shadow: var(--shadow-md); }
.match-av.me { background: var(--grad-teal); font-size: 18px; }
.match-heart { width: 54px; height: 54px; margin: 0 -14px; z-index: 2; background: #fff; border-radius: 50%; display: grid; place-items: center; box-shadow: var(--shadow-md); animation: beat 1.2s infinite; }
.match-heart svg { width: 30px; height: 30px; }
@keyframes beat { 15% { transform: scale(1.18); } 30% { transform: scale(1); } 45% { transform: scale(1.12); } 60% { transform: scale(1); } }
.match-title { font-size: 40px; letter-spacing: -1px; margin: 10px 0 6px; }

/* Video date timer */
.date-ring { position: relative; width: 200px; height: 200px; margin: 18px auto; }
.date-ring svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.ring-bg { fill: none; stroke: #f1eef4; stroke-width: 12; }
.ring-fg { fill: none; stroke: var(--pink); stroke-width: 12; stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.date-time { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.date-time b { font-size: 46px; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.date-time span { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-weight: 700; }
.meet-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px 10px 16px; background: var(--bg); border-radius: 14px; font-size: 14px; font-weight: 600; text-align: left; word-break: break-all; }
.modal-center .meet-link .btn { width: auto; flex: none; }
.meet-link .btn svg { width: 14px; height: 14px; }

/* Checkout */
.checkout-ev { background: var(--tint-pink); padding: 14px 16px; border-radius: 14px; display: grid; gap: 2px; margin-top: 12px; }
.checkout-ev span { font-size: 13px; color: var(--muted); }
.plan-opt { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--line); cursor: pointer; transition: border-color .2s, background .2s; }
.plan-opt:has(input:checked) { border-color: var(--pink); background: var(--tint-pink); }
.plan-opt input { accent-color: var(--pink); width: 18px; height: 18px; }
.plan-opt-body { flex: 1; display: grid; }
.plan-opt-body small, .plan-opt-price small { color: var(--muted); font-size: 12px; font-weight: 500; }
.plan-opt-price { text-align: right; font-weight: 800; font-size: 18px; display: grid; }

/* Report */
.radio-row { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); font-size: 14px; font-weight: 600; cursor: pointer; }
.radio-row:has(input:checked) { border-color: var(--ink); }
.radio-row input { accent-color: var(--ink); }

/* ---------- 8-minute video date inside VideoMatch (WebRTC) ---------- */
.modal-box.vdate-box { width: min(920px, 96vw); max-width: none; padding: 0; overflow: hidden; background: #0f1220; }
.vdate { display: grid; }
.vdate-stage { position: relative; aspect-ratio: 16 / 9; background: #0f1220; overflow: hidden; }
.vdate-remote { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #0f1220; }
.vdate-self { position: absolute; right: 14px; bottom: 14px; width: 24%; min-width: 110px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; border: 2px solid rgba(255,255,255,.85); background: #1d2236; transform: scaleX(-1); box-shadow: 0 8px 24px rgba(0,0,0,.35); z-index: 2; }
.vdate-wait { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 24px; text-align: center; color: #fff; background: radial-gradient(circle at 50% 40%, #2a2f4a, #0f1220 70%); z-index: 1; }
.vdate-wait b { font-size: 20px; }
.vdate-wait span:not(.vdate-photo) { color: rgba(255,255,255,.75); max-width: 420px; font-size: 14px; line-height: 1.5; }
.vdate-wait .btn { color: #fff; border-color: rgba(255,255,255,.5); margin-top: 6px; }
.vdate-photo { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; font-size: 36px; font-weight: 800; color: #fff; border: 3px solid rgba(255,255,255,.8); }
.vdate-top { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: linear-gradient(rgba(0,0,0,.55), transparent); color: #fff; z-index: 3; }
.vdate-name { font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vdate-left { font-size: 22px; font-variant-numeric: tabular-nums; padding: 4px 12px; border-radius: 999px; background: rgba(0,0,0,.45); }
.vdate-left.is-low { background: var(--red, #e5484d); }
.vdate-controls { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; padding: 14px 16px 6px; background: #fff; }
.vdate-controls .btn[aria-pressed="true"] { background: var(--ink, #1a1d2e); color: #fff; }
.vdate-hint { background: #fff; text-align: center; padding: 0 16px 14px; margin: 0; }
@media (max-width: 640px) {
  .modal:has(.vdate-box) { padding: 0; }
  .modal-box.vdate-box { width: 100%; height: 100dvh; max-height: none; border-radius: 0; display: flex; flex-direction: column; }
  .vdate { flex: 1; grid-template-rows: 1fr auto auto; }
  .vdate-stage { aspect-ratio: auto; min-height: 0; }
  .vdate-self { width: 30%; aspect-ratio: 3 / 4; }
  .vdate-top { flex-wrap: wrap; }
}
.vdate-wait .vdate-join { color: #ffd27a !important; font-weight: 600; }
.vdate-wait .vdate-join:empty { display: none; }

/* The Chemistry Session (3-month plan bonus) */
.modal-box.chem-box { max-width: 760px; }
.chem-embed { min-height: 520px; margin-top: 14px; border-radius: 16px; overflow: hidden; }
.chem-card { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px; border-radius: 18px; background: #fff4e5; border: 1px dashed #f5b54a; margin-top: 16px; }
.chem-card > div { flex: 1; min-width: 220px; }
.chem-card p { margin-top: 4px; font-size: 14px; }
.chem-gift { font-size: 30px; }
.vdate-safety { display: flex; justify-content: center; gap: 6px; background: #fff; padding: 0 16px 4px; }
.vdate-safety .btn { color: var(--muted); }
