/* ============================================================
 * modals.css — All modal and bottom sheet styles
 * ============================================================ */

/* GENERIC MODAL */
.modal-bg{display:none;position:fixed;inset:0;background:rgba(0,0,0,.4);z-index:500;align-items:flex-end;justify-content:center;}
.modal-bg.visible{display:flex;}
.modal-sheet{background:#fff;border-radius:0;width:100%;max-height:90vh;overflow-y:auto;padding:20px;border-top:0.5px solid #e0e0e0;}
.modal-handle{width:32px;height:3px;background:#e0e0e0;margin:0 auto 16px;}
.modal-title{font-size:16px;font-weight:400;color:#000;margin-bottom:14px;letter-spacing:-.01em;}
.modal-close-btn{position:absolute;top:16px;right:16px;background:none;border:none;font-size:20px;color:#bbb;cursor:pointer;}
.btn-buy-modal{width:100%;margin-top:14px;background:#000;color:#fff;font-family:'Inter',sans-serif;font-size:13px;font-weight:500;padding:14px;border:none;cursor:pointer;letter-spacing:.06em;text-transform:uppercase;}

/* PAY MODAL */
.pay-modal-bg{display:none;position:fixed;inset:0;background:rgba(0,0,0,.4);z-index:600;align-items:flex-end;}
.pay-modal-bg.visible{display:flex;}
.pay-sheet{background:#fff;width:100%;padding:24px;text-align:center;border-top:0.5px solid #e0e0e0;}

/* AUTH MODAL */
.auth-modal-bg{display:none;position:fixed;inset:0;background:rgba(0,0,0,.4);z-index:700;align-items:flex-end;}
.auth-modal-bg.visible{display:flex;}
.auth-sheet{background:#fff;width:100%;padding:24px;border-top:0.5px solid #e0e0e0;}

/* SWITCHER MODAL */
.sw-modal-bg{display:none;position:fixed;inset:0;background:rgba(0,0,0,.4);z-index:550;align-items:flex-end;}
.sw-modal-bg.visible{display:flex;}
.sw-sheet{background:#fff;width:100%;max-height:80vh;overflow-y:auto;padding:20px;border-top:0.5px solid #e0e0e0;}

/* VIDEO MODAL */
.vid-modal-bg{display:none;position:fixed;inset:0;background:rgba(0,0,0,.9);z-index:800;align-items:flex-end;}
.vid-modal-bg.visible{display:flex;}
.vid-sheet{background:#fff;width:100%;overflow:hidden;border-top:0.5px solid #e0e0e0;}

/* DAY DETAIL SHEET */
.day-detail-bg{display:none;position:fixed;inset:0;background:rgba(0,0,0,.4);z-index:600;align-items:flex-end;}
.day-detail-bg.visible{display:flex;}
.day-detail-sheet{background:#fff;width:100%;max-height:85vh;overflow-y:auto;padding-bottom:env(safe-area-inset-bottom,16px);border-top:0.5px solid #e0e0e0;}

/* CONFIRM SHEET */
.confirm-bg{display:none;position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:900;align-items:flex-end;}
.confirm-bg.visible{display:flex;}
.confirm-sheet{background:#fff;width:100%;padding:24px 20px env(safe-area-inset-bottom,20px);border-top:0.5px solid #e0e0e0;}
.confirm-handle{width:32px;height:3px;background:#e0e0e0;margin:0 auto 18px;}
.confirm-title{font-size:17px;font-weight:400;color:#000;margin-bottom:6px;text-align:center;}
.confirm-sub{font-size:13px;color:#bbb;text-align:center;line-height:1.5;margin-bottom:22px;font-weight:300;}
.confirm-stats{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:22px;}
.confirm-stat{background:#fafafa;border:0.5px solid #e0e0e0;padding:12px;text-align:center;}
.confirm-stat-val{font-size:22px;font-weight:200;color:#000;line-height:1;}
.confirm-stat-lbl{font-size:9px;color:#bbb;margin-top:2px;text-transform:uppercase;letter-spacing:.1em;font-weight:500;}
.confirm-yes{width:100%;background:#000;color:#fff;border:none;padding:15px;font-family:'Inter',sans-serif;font-size:14px;font-weight:500;cursor:pointer;margin-bottom:10px;letter-spacing:.04em;}
.confirm-no{width:100%;background:transparent;border:none;color:#bbb;font-family:'Inter',sans-serif;font-size:14px;cursor:pointer;padding:8px;}

/* SWITCH CONFIRM */
.switch-confirm-bg{display:none;position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:900;align-items:flex-end;}
.switch-confirm-bg.visible{display:flex;}
.switch-confirm-sheet{background:#fff;width:100%;padding:24px 20px env(safe-area-inset-bottom,20px);border-top:0.5px solid #e0e0e0;}

/* PROFILE SHEET */
.profile-sheet{background:var(--app-bg,#fff);width:100%;max-height:90vh;overflow-y:auto;padding-bottom:env(safe-area-inset-bottom,20px);border-top:0.5px solid #e0e0e0;}

/* SUBSCRIPTION MODAL */
.sub-modal-bg{display:none;position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:650;align-items:flex-end;}
.sub-modal-bg.visible{display:flex;}
.sub-sheet{background:#fff;width:100%;padding:24px 20px env(safe-area-inset-bottom,24px);border-top:0.5px solid #e0e0e0;text-align:center;}
.sub-handle{width:32px;height:3px;background:#e0e0e0;margin:0 auto 18px;}
.sub-title{font-size:20px;font-weight:700;color:#1a1917;margin-bottom:6px;letter-spacing:-.02em;}
.sub-sub{font-size:13px;color:#9e9b91;line-height:1.5;margin-bottom:20px;}
.sub-plans-row{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:18px;}
.sub-plan{border:1.5px solid #e0ddd5;border-radius:12px;padding:14px 10px;cursor:pointer;position:relative;text-align:center;transition:border-color .15s;}
.sub-plan.selected{border-color:#1a1917;background:#faf9f5;}
.sp-period{font-size:11px;font-weight:600;color:#9e9b91;text-transform:uppercase;letter-spacing:.06em;margin-bottom:4px;}
.sp-price{font-size:22px;font-weight:700;color:#1a1917;}
.sp-per{font-size:12px;font-weight:400;color:#9e9b91;}
.sp-badge{display:inline-block;margin-top:4px;font-size:10px;font-weight:700;color:#fff;background:#1a1917;border-radius:4px;padding:2px 6px;letter-spacing:.04em;}
.btn-sub-go{width:100%;background:#1a1917;color:#fff;border:none;border-radius:12px;padding:15px;font-family:'Inter',sans-serif;font-size:15px;font-weight:600;cursor:pointer;margin-bottom:12px;letter-spacing:.01em;}
.sub-promo-row{display:flex;gap:8px;margin-bottom:6px;}
.sub-promo-input{flex:1;border:1px solid #e0ddd5;border-radius:9px;padding:10px 12px;font-size:13px;font-family:'Inter',sans-serif;background:#faf9f5;}
.sub-promo-btn{background:#f0ede5;border:none;border-radius:9px;padding:10px 14px;font-size:13px;font-weight:600;cursor:pointer;color:#1a1917;}
.sub-promo-err{color:#dc2626;font-size:11px;margin-bottom:10px;}
.btn-sub-cancel{background:none;border:none;color:#9e9b91;font-size:13px;cursor:pointer;padding:8px;font-family:'Inter',sans-serif;}
