/* ═══ v15.0 — Reader account screen + "Your data" (DPDP) ═══════════════ */

/* Welcome header — the coloured block mark above the wordmark (same mark as the masthead) */
.welcome-mark { display:flex; justify-content:center; margin-bottom:8px; }
.welcome-why li strong { color:#E8520A; font-weight:700; }
body.light-mode .welcome-why li strong { color:#E8520A; }

/* Account screen brand — mark + wordmark */
.ac-brand { display:inline-flex; align-items:center; gap:8px; }
.ac-mark { display:inline-flex; gap:2px; align-items:flex-start; }
.ac-mark span { display:block; border-radius:1.5px; }

/* Welcome step 3 — two choices, no form */
.welcome-choice { display:flex; flex-direction:column; gap:10px; margin-top:18px; }
.welcome-btn.secondary { background:transparent; border:1px solid rgba(255,255,255,0.3); color:#F5F0E8; margin-top:0; }
body.light-mode .welcome-btn.secondary { border-color:rgba(0,0,0,0.25); color:#0E0E12; }
.welcome-why { list-style:none; padding:0; margin:14px 0 4px; display:flex; flex-direction:column; gap:8px; }
.welcome-why li { display:flex; gap:10px; align-items:flex-start; font-family:'DM Sans',sans-serif; font-size:14px; line-height:1.45; color:rgba(245,240,232,0.85); }
.welcome-why li::before { content:'★'; color:#B8860B; flex:0 0 auto; }
body.light-mode .welcome-why li { color:rgba(14,14,18,0.85); }
.welcome-fine { font-family:'DM Sans',sans-serif; font-size:12px; line-height:1.5; color:rgba(245,240,232,0.5); margin-top:14px; text-align:center; }
.welcome-fine a { color:#E8520A; text-decoration:none; }
body.light-mode .welcome-fine { color:rgba(14,14,18,0.55); }
.welcome-hint { font-family:'DM Sans',sans-serif; font-size:12px; color:rgba(245,240,232,0.5); margin-top:6px; }
body.light-mode .welcome-hint { color:rgba(14,14,18,0.55); }

/* Account overlay */
#account-overlay { display:none; position:fixed; inset:0; z-index:650; background:#0d0d12; color:#F5F0E8; overflow-y:auto; -webkit-overflow-scrolling:touch; padding:calc(env(safe-area-inset-top) + 14px) 22px 60px; font-family:'DM Sans',sans-serif; }
#account-overlay.show { display:block; }
body.light-mode #account-overlay { background:#FBF8F2; color:#0E0E12; }
.ac-top { display:flex; align-items:center; justify-content:space-between; margin-bottom:22px; }
.ac-brand { font-family:'Libre Baskerville',Georgia,serif; font-weight:700; font-size:16px; letter-spacing:.5px; }
.ac-brand .dot { color:#E8520A; }
#ac-close { background:none; border:none; color:#E8520A; font-size:14px; font-weight:600; cursor:pointer; padding:6px 0; }
.ac-h1 { font-family:'Libre Baskerville',Georgia,serif; font-size:24px; line-height:1.2; margin:0 0 6px; }
.ac-sub { font-size:14px; line-height:1.5; opacity:.75; margin-bottom:18px; }
.ac-btn { display:block; width:100%; height:46px; border-radius:8px; border:1px solid rgba(255,255,255,0.25); background:transparent; color:inherit; font-family:'DM Sans',sans-serif; font-size:13px; font-weight:600; letter-spacing:1px; text-transform:uppercase; cursor:pointer; margin-bottom:10px; }
body.light-mode .ac-btn { border-color:rgba(0,0,0,0.25); }
.ac-btn.primary { background:#E8520A; border-color:#E8520A; color:#fff; }
.ac-btn.primary:hover { background:#FF6020; }
.ac-btn.ghost { border:none; text-transform:none; letter-spacing:0; font-weight:500; opacity:.7; height:auto; padding:8px 0; }
.ac-or { text-align:center; font-size:11px; letter-spacing:2px; text-transform:uppercase; opacity:.45; margin:14px 0; }
.ac-field { display:flex; flex-direction:column; gap:6px; margin-bottom:12px; }
.ac-label { font-size:10px; letter-spacing:2px; text-transform:uppercase; opacity:.55; }
.ac-input { width:100%; box-sizing:border-box; background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.15); color:inherit; border-radius:8px; padding:13px 14px; font-family:'DM Sans',sans-serif; font-size:16px; outline:none; -webkit-appearance:none; }
.ac-input:focus { border-color:#E8520A; }
body.light-mode .ac-input { background:#fff; border-color:rgba(0,0,0,0.15); }
.ac-input.code { letter-spacing:8px; text-align:center; font-size:22px; font-weight:600; }
.ac-check { display:flex; gap:10px; align-items:flex-start; font-size:13px; line-height:1.45; margin:12px 0 0; cursor:pointer; }
.ac-check input { margin:3px 0 0; accent-color:#E8520A; flex:0 0 auto; width:18px; height:18px; }
#ac-notice-toggle { background:none; border:none; color:#E8520A; font-family:'DM Sans',sans-serif; font-size:13px; font-weight:600; padding:12px 0 6px; cursor:pointer; }
#ac-notice { display:none; background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.12); border-radius:10px; padding:14px 14px 6px; font-size:13px; line-height:1.5; margin-bottom:12px; }
body.light-mode #ac-notice { background:#fff; border-color:rgba(0,0,0,0.12); }
#ac-notice p { margin:0 0 10px; }
#ac-notice ul { margin:0 0 10px; padding-left:18px; }
#ac-notice li { margin-bottom:5px; }
#ac-notice a { color:#E8520A; }
.ac-note { min-height:18px; font-size:13px; margin:6px 0 10px; color:#8FD18F; }
.ac-note.is-err { color:#FF7A6B; }
.ac-done { text-align:center; padding:30px 0; }
.ac-done .big { font-size:40px; color:#B8860B; margin-bottom:10px; }

/* Profile panel — Your data */
.yd-row { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:11px 0; border-bottom:1px solid rgba(255,255,255,0.08); font-family:'DM Sans',sans-serif; font-size:14px; }
body.light-mode .yd-row { border-bottom-color:rgba(0,0,0,0.08); }
.yd-row:last-child { border-bottom:none; }
.yd-row .yd-l { opacity:.7; flex:0 0 auto; }
.yd-row .yd-r { display:flex; gap:8px; align-items:center; flex:1 1 auto; justify-content:flex-end; }
.yd-input { flex:1 1 auto; min-width:0; max-width:220px; background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.15); color:inherit; border-radius:6px; padding:8px 10px; font-family:'DM Sans',sans-serif; font-size:14px; outline:none; }
.yd-input:focus { border-color:#E8520A; }
body.light-mode .yd-input { background:#fff; border-color:rgba(0,0,0,0.15); }
.yd-small { background:transparent; border:1px solid #E8520A; color:#E8520A; border-radius:6px; padding:7px 10px; font-family:'DM Sans',sans-serif; font-size:11px; font-weight:700; letter-spacing:1px; text-transform:uppercase; cursor:pointer; white-space:nowrap; }
.yd-link { background:none; border:none; color:#E8520A; font-family:'DM Sans',sans-serif; font-size:14px; font-weight:600; cursor:pointer; padding:0; text-decoration:none; }
.yd-link.danger { color:#FF6B5B; }
.yd-help { font-family:'DM Sans',sans-serif; font-size:12px; line-height:1.5; opacity:.55; margin:4px 0 8px; }
.yd-grievance { font-family:'DM Sans',sans-serif; font-size:13px; line-height:1.55; opacity:.8; padding:8px 0; }
.yd-grievance a { color:#E8520A; }

/* Toast */
#ac-toast { position:fixed; left:50%; bottom:90px; transform:translateX(-50%) translateY(10px); z-index:9999; max-width:88%; background:#1a1a1a; color:#f5f0e8; border:1px solid rgba(255,255,255,0.15); border-radius:12px; padding:12px 16px; font-family:'DM Sans',sans-serif; font-size:13px; line-height:1.4; opacity:0; transition:opacity .25s ease, transform .25s ease; pointer-events:none; }
#ac-toast.show { opacity:1; transform:translateX(-50%) translateY(0); }

/* ═══ v15.3 — End-of-section card (a card in the deck, like the ad) ═══════ */
.se-end { display:none; position:absolute; inset:0; z-index:20; flex-direction:column; align-items:center; justify-content:center;
  padding:40px 32px calc(40px + env(safe-area-inset-bottom,0px)); text-align:center;
  background:
    radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--sec,#E8520A) 22%, transparent), transparent 60%),
    #0d0d12; }
.se-end.show { display:flex; }
body.light-mode .se-end { background:
    radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--sec,#E8520A) 16%, transparent), transparent 60%),
    #F5F0E8; }
.se-end-inner { display:flex; flex-direction:column; align-items:center; gap:14px; max-width:340px; }
.se-end-mark { width:44px; height:4px; border-radius:2px; background:var(--sec,#E8520A); margin-bottom:8px; }
.se-end-kicker { font-family:'DM Sans',sans-serif; font-size:11px; letter-spacing:3.5px; font-weight:700; color:var(--sec,#E8520A); }
.se-end-title { font-family:'Playfair Display',Georgia,serif; font-size:34px; font-weight:700; line-height:1.1; color:#F5F0E8; }
body.light-mode .se-end-title { color:#0E0E12; }
.se-end-sub { font-family:'Libre Baskerville',Georgia,serif; font-size:15px; line-height:1.55; color:rgba(245,240,232,0.7); }
body.light-mode .se-end-sub { color:rgba(14,14,18,0.7); }
.se-end-next { margin-top:18px; width:100%; height:50px; border:0; border-radius:10px; background:var(--sec,#E8520A); color:#fff;
  font-family:'DM Sans',sans-serif; font-size:13px; font-weight:700; letter-spacing:1.5px; text-transform:uppercase; cursor:pointer; }
.se-end-next:active { transform:scale(.98); }
.se-end-break { background:none; border:0; font-family:'DM Sans',sans-serif; font-size:12px; letter-spacing:.5px; color:rgba(245,240,232,0.5); cursor:pointer; padding:8px; }
body.light-mode .se-end-break { color:rgba(14,14,18,0.5); }

/* ═══ v15.4 — In-app story reader: the page carries its own header AND back
   button (sent as a message to the app), so the app-side bar is hidden. ═══ */
#prem-reader { background:#101012; }
body.light-mode #prem-reader { background:#F5F0E8; }
#prem-reader .pr-bar { display:none; }
/* a frame can't see the status bar, so the app leaves room for it. (A frame
   ignores `bottom` and falls back to 150px tall unless given an explicit height.) */
#prem-reader #pr-frame { position:absolute; left:0; right:0; top:env(safe-area-inset-top,0px); height:calc(100% - env(safe-area-inset-top,0px)); }
/* while the story is on its way: a thin bar sweeping under the status bar */
#prem-reader.loading::after { content:''; position:absolute; left:0; top:env(safe-area-inset-top,0px); height:3px; width:40%; border-radius:2px;
  background:#E8520A; animation:pr-sweep 1s ease-in-out infinite; }
@keyframes pr-sweep { 0%{ transform:translateX(-100%);} 100%{ transform:translateX(260%);} }
