/* ========================================================================== 
   KEDAI IBU & ANAK — Customer account, dashboard and eBook reader
   Extends the site's soft-premium postpartum visual language.
   ========================================================================== */

:root {
  --account-bg: #F7F1EA;
  --account-paper: #FFFCF8;
  --account-paper-2: #FDF8F2;
  --account-text: #34312F;
  --account-muted: #706A66;
  --account-muted-2: #817A75;
  --account-ink: #2E4636;
  --account-ink-2: #3F5A47;
  --account-gold: #B08D53;
  --account-line: rgba(110, 96, 83, .14);
  --account-blush: #F3DCDD;
  --account-sage: #DDE9E0;
  --account-lav: #EAE4F3;
  --account-peach: #F6E2D4;
  --account-danger: #A75E59;
  --account-success: #386447;
  --account-radius-sm: 14px;
  --account-radius-md: 22px;
  --account-radius-lg: 32px;
  --account-radius-xl: 42px;
  --account-pill: 999px;
  --account-shadow: 0 2px 6px rgba(52, 49, 47, .035), 0 22px 50px -28px rgba(52, 49, 47, .30);
  --account-shadow-lift: 0 4px 12px rgba(52, 49, 47, .05), 0 38px 72px -34px rgba(52, 49, 47, .38);
  --account-ease: cubic-bezier(.22, .61, .36, 1);
  --account-sans: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --account-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}

.account-body,
.reader-body {
  margin: 0;
  background: var(--account-bg);
  color: var(--account-text);
  font-family: var(--account-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.account-body { min-height: 100vh; min-height: 100dvh; padding: 0; }
.account-body *, .account-body *::before, .account-body *::after,
.reader-body *, .reader-body *::before, .reader-body *::after { box-sizing: border-box; }
.account-body button, .account-body input,
.reader-body button, .reader-body input { font: inherit; }
.account-body button, .reader-body button { cursor: pointer; }
.account-body svg, .reader-body svg { display: block; }
.account-body :focus-visible, .reader-body :focus-visible {
  outline: 2px solid var(--account-ink);
  outline-offset: 3px;
}
.account-body a { color: inherit; text-decoration: none; }
.account-body p, .account-body h1, .account-body h2, .account-body h3 { margin: 0; }

.glass-panel {
  background: rgba(255, 252, 248, .76);
  border: 1px solid rgba(255, 255, 255, .86);
  box-shadow: var(--account-shadow), inset 0 1px 0 rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: blur(24px) saturate(165%);
  backdrop-filter: blur(24px) saturate(165%);
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .glass-panel { background: rgba(255, 252, 248, .97); }
}

.account-kicker {
  color: var(--account-ink-2);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.account-btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  padding: .78rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--account-pill);
  font-weight: 700;
  color: var(--account-text);
  background: rgba(255, 255, 255, .72);
  transition: transform .24s var(--account-ease), box-shadow .24s var(--account-ease), background-color .24s var(--account-ease);
}
.account-btn svg { width: 19px; height: 19px; }
.account-btn:hover { transform: translateY(-2px); box-shadow: var(--account-shadow); }
.account-btn:active { transform: translateY(0) scale(.985); }
.account-btn--primary { background: var(--account-ink); color: #FFFDF8; box-shadow: 0 18px 32px -20px rgba(46, 70, 54, .72); }
.account-btn--primary:hover { background: var(--account-ink-2); }
.account-btn--ghost { border-color: var(--account-line); background: rgba(255, 255, 255, .56); color: var(--account-ink); }
.account-btn--full { width: 100%; }

.account-form { display: grid; gap: 1.05rem; }
.account-field label { display: block; margin-bottom: .5rem; font-size: .84rem; font-weight: 700; color: var(--account-text); }
.account-input-wrap {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 0 1rem;
  border: 1px solid var(--account-line);
  border-radius: var(--account-radius-sm);
  background: rgba(255, 255, 255, .64);
  transition: border-color .22s ease, box-shadow .22s ease, background-color .22s ease;
}
.account-input-wrap:focus-within { border-color: rgba(46, 70, 54, .56); background: #fff; box-shadow: 0 0 0 4px rgba(46, 70, 54, .09); }
.account-input-wrap > svg { width: 19px; height: 19px; color: var(--account-muted-2); flex: none; }
.account-input-wrap input {
  width: 100%;
  min-width: 0;
  height: 50px;
  padding: 0;
  color: var(--account-text);
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 1rem;
}
.account-input-wrap input::placeholder { color: #9A938E; }
.account-field.has-error .account-input-wrap { border-color: rgba(167, 94, 89, .72); background: #FFF8F7; }
.account-field__error { display: none; margin-top: .4rem !important; color: var(--account-danger); font-size: .78rem; line-height: 1.4; }
.account-field.has-error .account-field__error { display: block; }
.account-form__success { display: none; padding: .75rem 1rem; border-radius: var(--account-radius-sm); color: var(--account-success); background: rgba(221, 233, 224, .74); font-size: .84rem; }
.account-form__success.is-shown { display: block; }

/* --------------------------------------------------------------------------
   LOGIN
   -------------------------------------------------------------------------- */
.account-body--login { padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px)); overflow-x: hidden; }
.login-stage {
  position: relative;
  min-height: calc(100vh - 92px);
  min-height: calc(100dvh - 92px);
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(2rem, 4vw, 5rem) clamp(1rem, 4vw, 3rem);
  background:
    radial-gradient(90% 90% at 8% 0%, rgba(243, 220, 221, .64), transparent 58%),
    radial-gradient(90% 90% at 96% 100%, rgba(201, 217, 205, .58), transparent 58%),
    linear-gradient(140deg, #FAF6F1 0%, #FFF9F6 52%, #F4EDE5 100%);
}
.account-orb { position: fixed; width: 390px; height: 390px; border-radius: 50%; filter: blur(90px); opacity: .55; pointer-events: none; }
.account-orb--blush { top: -170px; left: -120px; background: var(--account-blush); }
.account-orb--sage { right: -140px; bottom: -170px; background: var(--account-sage); }
.account-orb--lav { top: 32%; right: 15%; background: var(--account-lav); opacity: .34; }
.account-botanical { position: absolute; left: 4%; bottom: 8%; width: 86px; color: rgba(176, 141, 83, .36); pointer-events: none; }

.login-shell { position: relative; z-index: 1; width: min(100%, 1120px); display: grid; gap: clamp(2rem, 5vw, 6rem); align-items: center; }
.login-intro { max-width: 580px; }
.account-brand { display: inline-flex; align-items: center; gap: .8rem; margin-bottom: clamp(2.5rem, 6vw, 5rem); }
.account-brand img { width: 56px; height: 56px; object-fit: contain; }
.account-brand span, .account-brand strong, .account-brand small { display: block; }
.account-brand strong { color: var(--account-ink); font-family: var(--account-serif); font-size: 1.05rem; font-weight: 500; }
.account-brand small { margin-top: .2rem; color: var(--account-muted); font-size: .67rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.login-title { margin-top: .85rem !important; max-width: 17ch; font-size: clamp(2.15rem, 4.8vw, 4.35rem); line-height: 1.03; letter-spacing: -.038em; }
.login-title em { font-family: var(--account-serif); font-weight: 400; color: var(--account-ink); }
.login-lede { margin-top: 1.45rem !important; max-width: 50ch; color: var(--account-muted); font-size: clamp(1rem, 1.25vw, 1.12rem); line-height: 1.68; }
.login-card { width: min(100%, 460px); justify-self: end; padding: clamp(1.35rem, 3vw, 2.4rem); border-radius: var(--account-radius-xl); }
.login-card__head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.7rem; }
.login-card__head h2 { margin-top: .35rem; font-size: clamp(1.35rem, 2vw, 1.75rem); }
.login-card__icon { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 17px; background: var(--account-sage); color: var(--account-ink); box-shadow: inset 0 1px 0 rgba(255,255,255,.85); }
.login-card__icon svg { width: 25px; height: 25px; }
.password-toggle { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border: 0; border-radius: 12px; color: var(--account-muted); background: transparent; }
.password-toggle:hover { background: rgba(46, 70, 54, .07); color: var(--account-ink); }
.password-toggle svg { width: 20px; height: 20px; }
.password-toggle .eye-closed { display: none; }
.password-toggle[aria-pressed="true"] .eye-open { display: none; }
.password-toggle[aria-pressed="true"] .eye-closed { display: block; }
.login-form__meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.account-check { display: inline-flex !important; align-items: center; gap: .55rem; margin: 0 !important; cursor: pointer; }
.account-check input { width: 18px; height: 18px; accent-color: var(--account-ink); }
.login-help { max-width: 21ch; text-align: right; color: var(--account-muted-2); font-size: .72rem; line-height: 1.45; }
.login-alert { display: none; padding: .75rem 1rem; border: 1px solid rgba(167, 94, 89, .2); border-radius: var(--account-radius-sm); background: #FFF7F6; color: var(--account-danger); font-size: .82rem; }
.login-alert.is-shown { display: block; }
.login-card__note { margin-top: 1.15rem !important; text-align: center; color: var(--account-muted); font-size: .78rem; }
.login-card__note a { color: var(--account-ink); text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 900px) { .login-shell { grid-template-columns: 1.08fr .92fr; } }
@media (max-width: 899px) {
  .login-shell { max-width: 560px; }
  .login-intro { text-align: center; }
  .account-brand { margin-bottom: 2.25rem; }
  .login-title, .login-lede { margin-inline: auto !important; }
  .login-card { justify-self: center; }
  .account-botanical { display: none; }
}
@media (max-width: 520px) {
  .login-stage { place-items: start center; padding-top: 1.25rem; }
  .account-brand { margin-bottom: 1.5rem; }
  .account-brand img { width: 48px; height: 48px; }
  .login-title { font-size: clamp(2rem, 10vw, 2.8rem); }
  .login-card { padding: 1.2rem; border-radius: 28px; }
  .login-card__head { margin-bottom: 1.25rem; }
  .login-form__meta { align-items: center; }
  .login-help { font-size: .67rem; }
}

/* --------------------------------------------------------------------------
   DASHBOARD SHELL + NAVIGATION
   -------------------------------------------------------------------------- */
.account-body--dashboard { min-height: 100dvh; overflow-x: hidden; background: linear-gradient(135deg, #F4EDE5 0%, #FAF6F1 45%, #F0EEE8 100%); }
.dashboard-atmosphere { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
.dashboard-atmosphere .account-orb { position: absolute; }
.dashboard-shell { position: relative; z-index: 1; width: min(100%, 1540px); min-height: 100dvh; margin-inline: auto; display: grid; gap: 1.1rem; padding: 1rem; }
.account-rail { position: sticky; top: 1rem; height: calc(100dvh - 2rem); display: flex; flex-direction: column; padding: 1.15rem; border-radius: 30px; }
.account-rail__brand { display: flex; align-items: center; gap: .75rem; min-height: 58px; }
.account-rail__brand img { width: 48px; height: 48px; object-fit: contain; }
.account-rail__brand strong, .account-rail__brand small { display: block; }
.account-rail__brand strong { color: var(--account-ink); font-family: var(--account-serif); font-size: .93rem; font-weight: 500; }
.account-rail__brand small { margin-top: .15rem; color: var(--account-muted-2); font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.account-rail__profile { display: flex; align-items: center; gap: .75rem; margin-top: 1.7rem; padding: .8rem; border-radius: 18px; background: rgba(255,255,255,.48); border: 1px solid rgba(255,255,255,.72); }
.account-rail__profile > span:last-child { min-width: 0; }
.account-rail__profile strong, .account-rail__profile small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-rail__profile strong { font-size: .8rem; }
.account-rail__profile small { margin-top: .15rem; color: var(--account-muted); font-size: .68rem; }
.account-avatar { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(145deg, var(--account-blush), var(--account-lav)); color: var(--account-ink); font-family: var(--account-serif); font-size: .85rem; font-weight: 600; box-shadow: inset 0 1px 0 rgba(255,255,255,.82); }
.account-avatar--large { width: 60px; height: 60px; font-size: 1.15rem; }
.account-tabs { display: grid; gap: .4rem; margin-top: 1.6rem; }
.account-tab { width: 100%; min-height: 48px; display: flex; align-items: center; gap: .8rem; padding: .65rem .8rem; border: 0; border-radius: 14px; color: var(--account-muted); background: transparent; font-size: .81rem; font-weight: 700; text-align: left; transition: background .22s ease, color .22s ease, transform .22s ease; }
.account-tab svg { width: 20px; height: 20px; flex: none; }
.account-tab:hover { color: var(--account-ink); background: rgba(255,255,255,.48); transform: translateX(2px); }
.account-tab.is-active { color: #fff; background: var(--account-ink); box-shadow: 0 16px 24px -18px rgba(46,70,54,.7); }
.account-logout { min-height: 46px; display: flex; align-items: center; gap: .7rem; margin-top: auto; padding: .6rem .8rem; border: 0; border-radius: 14px; color: var(--account-danger); background: transparent; font-size: .8rem; font-weight: 700; }
.account-logout:hover { background: rgba(167,94,89,.08); }
.account-logout svg { width: 20px; height: 20px; }
.account-content { min-width: 0; padding-bottom: 2rem; }
.account-topline { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1rem .8rem 1.25rem; border-radius: 24px; }
.account-topline > span, .account-topline strong, .account-topline small { display: block; }
.account-topline strong { font-size: .86rem; }
.account-topline small { margin-top: .2rem; color: var(--account-muted); font-size: .69rem; }
.account-topline__avatar { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.82); border-radius: 50%; color: var(--account-ink); background: linear-gradient(145deg, var(--account-blush), var(--account-lav)); font-family: var(--account-serif); font-weight: 600; }
.account-panel { padding: clamp(1.4rem, 3vw, 2.6rem) clamp(.15rem, 1vw, 1rem); animation: accountPanelIn .32s var(--account-ease) both; }
.account-panel[hidden] { display: none; }
@keyframes accountPanelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.account-mobile-nav { display: none; }

@media (min-width: 980px) { .dashboard-shell { grid-template-columns: 228px minmax(0, 1fr); } }
@media (max-width: 979px) {
  .dashboard-shell { display: block; padding: .75rem .75rem calc(94px + env(safe-area-inset-bottom, 0px)); }
  .account-rail { display: none; }
  .account-mobile-nav { position: fixed; z-index: 100; left: 50%; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); width: min(calc(100% - 1.5rem), 520px); min-height: 68px; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; padding: .35rem; border-radius: var(--account-pill); }
  .account-mobile-nav button { min-width: 0; min-height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .22rem; border: 0; border-radius: 18px; color: var(--account-muted); background: transparent; font-size: .65rem; font-weight: 700; }
  .account-mobile-nav button svg { width: 21px; height: 21px; }
  .account-mobile-nav button.is-active { color: #fff; background: var(--account-ink); }
}

/* --------------------------------------------------------------------------
   DASHBOARD CONTENT
   -------------------------------------------------------------------------- */
.account-hero {
  position: relative;
  min-height: 330px;
  display: grid;
  align-items: center;
  gap: 2rem;
  overflow: hidden;
  padding: clamp(1.65rem, 4vw, 3.4rem);
  border: 1px solid rgba(255,255,255,.82);
  border-radius: var(--account-radius-xl);
  background:
    radial-gradient(70% 90% at 92% 18%, rgba(243,220,221,.78), transparent 65%),
    linear-gradient(135deg, rgba(255,252,248,.92), rgba(237,243,238,.78));
  box-shadow: var(--account-shadow-lift), inset 0 1px 0 rgba(255,255,255,.92);
}
.account-hero > div:first-child { position: relative; z-index: 2; }
.account-hero h1 { margin-top: .65rem; max-width: 16ch; font-size: clamp(2.1rem, 4.4vw, 4rem); line-height: 1.02; letter-spacing: -.04em; }
.account-hero h1 em { font-family: var(--account-serif); font-weight: 400; color: var(--account-ink); }
.account-hero > div:first-child > p:not(.account-kicker) { max-width: 48ch; margin-top: 1rem; color: var(--account-muted); line-height: 1.62; }
.account-hero .account-btn { margin-top: 1.6rem; }
.account-hero__books { position: relative; min-height: 260px; align-self: stretch; }
.account-hero__book { position: absolute; object-fit: contain; filter: drop-shadow(0 20px 26px rgba(52,49,47,.22)); }
.account-hero__book--main { z-index: 2; width: min(66%, 260px); right: 8%; bottom: -19%; }
.account-hero__book--bonus { z-index: 1; width: min(47%, 175px); right: 50%; bottom: -7%; border-radius: 10px; transform: rotate(-6deg); }
.account-hero__status { position: absolute; z-index: 3; right: 0; top: 12%; min-height: 40px; display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .8rem; border: 1px solid rgba(255,255,255,.9); border-radius: var(--account-pill); background: rgba(255,255,255,.74); color: var(--account-ink); font-size: .72rem; font-weight: 800; box-shadow: var(--account-shadow); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.account-hero__status i { width: 7px; height: 7px; border-radius: 50%; background: #5E9B70; box-shadow: 0 0 0 4px rgba(94,155,112,.12); }

.account-stats { display: grid; gap: .8rem; margin-top: .9rem; }
.account-stat { min-height: 104px; display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border-radius: 24px; }
.account-stat__icon { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 16px; color: var(--account-ink); }
.account-stat__icon svg { width: 23px; height: 23px; }
.account-stat__icon--sage { background: var(--account-sage); }
.account-stat__icon--blush { background: var(--account-blush); color: #88575C; }
.account-stat__icon--lav { background: var(--account-lav); color: #66597D; }
.account-stat small, .account-stat strong { display: block; }
.account-stat small { color: var(--account-muted); font-size: .7rem; }
.account-stat strong { margin-top: .2rem; color: var(--account-ink); font-family: var(--account-serif); font-size: 1.65rem; font-weight: 500; line-height: 1; }
.account-stat strong.account-stat__word { font-family: var(--account-sans); font-size: 1rem; font-weight: 800; }

.dashboard-section { margin-top: clamp(2rem, 4vw, 3.4rem); }
.dashboard-section__head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.dashboard-section__head h2 { margin-top: .35rem; font-size: clamp(1.35rem, 2vw, 1.75rem); }
.account-text-btn { min-height: 44px; padding: .5rem .8rem; border: 0; border-radius: 12px; color: var(--account-ink); background: transparent; font-size: .78rem; font-weight: 800; }
.account-text-btn:hover { background: rgba(255,255,255,.56); }

.continue-grid { display: grid; gap: .9rem; }
.continue-card { min-width: 0; display: grid; grid-template-columns: 110px minmax(0,1fr); gap: 1.1rem; padding: 1rem; overflow: hidden; border: 1px solid rgba(255,255,255,.84); border-radius: 26px; background: rgba(255,252,248,.74); box-shadow: var(--account-shadow); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); transition: transform .28s var(--account-ease), box-shadow .28s var(--account-ease); }
.continue-card:hover { transform: translateY(-3px); box-shadow: var(--account-shadow-lift); }
.continue-card__media { min-height: 150px; display: grid; place-items: center; overflow: hidden; border-radius: 19px; background: linear-gradient(155deg, #FFFDF9, var(--account-sage)); }
.continue-card--bonus .continue-card__media { background: linear-gradient(155deg, #FFFDF9, var(--account-lav)); }
.continue-card__media img { max-width: 92%; max-height: 145px; object-fit: contain; filter: drop-shadow(0 12px 15px rgba(52,49,47,.18)); }
.continue-card--bonus .continue-card__media img { max-width: 74%; border-radius: 7px; }
.continue-card__body { min-width: 0; display: flex; flex-direction: column; padding: .35rem .2rem; }
.continue-card__body small { color: var(--account-ink-2); font-size: .66rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.continue-card__body h3 { margin-top: .42rem; overflow: hidden; font-size: 1.05rem; text-overflow: ellipsis; white-space: nowrap; }
.continue-card__body p { margin-top: .45rem; color: var(--account-muted); font-size: .76rem; line-height: 1.5; }
.continue-card__body .account-btn { align-self: flex-start; min-height: 44px; margin-top: auto; padding: .5rem .9rem; font-size: .73rem; }

.purchase-preview { min-height: 82px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border-radius: 22px; }
.purchase-preview__icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; color: var(--account-ink); background: var(--account-sage); }
.purchase-preview__icon svg { width: 21px; height: 21px; }
.purchase-preview strong, .purchase-preview small { display: block; }
.purchase-preview strong { font-size: .84rem; }
.purchase-preview small { margin-top: .2rem; color: var(--account-muted); font-size: .7rem; }
.purchase-preview__price { color: var(--account-ink); font-family: var(--account-serif); font-size: 1.35rem; }

.panel-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; padding: .8rem 0 clamp(1.8rem, 4vw, 3rem); }
.panel-heading h1 { margin-top: .55rem; font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -.035em; }
.panel-heading > div > p:last-child { max-width: 54ch; margin-top: .8rem; color: var(--account-muted); line-height: 1.6; }
.panel-heading__count { min-width: 112px; padding: .75rem 1rem; border: 1px solid rgba(255,255,255,.8); border-radius: 18px; background: rgba(255,255,255,.52); color: var(--account-muted); font-size: .7rem; text-align: center; box-shadow: var(--account-shadow); }
.panel-heading__count strong { display: block; margin-bottom: .12rem; color: var(--account-ink); font-family: var(--account-serif); font-size: 1.6rem; font-weight: 500; }

.purchase-list { display: grid; gap: .9rem; }
.purchase-card { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(180px,.7fr) auto; align-items: center; gap: 1.25rem; padding: 1.15rem 1.25rem; border: 1px solid rgba(255,255,255,.84); border-radius: 25px; background: rgba(255,252,248,.74); box-shadow: var(--account-shadow); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); }
.purchase-card__product { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.purchase-card__cover { width: 58px; height: 72px; flex: none; display: grid; place-items: center; overflow: hidden; border-radius: 13px; background: linear-gradient(150deg,#fff,var(--account-sage)); }
.purchase-card--bonus .purchase-card__cover { background: linear-gradient(150deg,#fff,var(--account-lav)); }
.purchase-card__cover img { max-width: 86%; max-height: 68px; object-fit: contain; }
.purchase-card--bonus .purchase-card__cover img { max-width: 74%; border-radius: 4px; }
.purchase-card__product strong, .purchase-card__product small, .purchase-card__date strong, .purchase-card__date small { display: block; }
.purchase-card__product strong { overflow: hidden; font-size: .88rem; text-overflow: ellipsis; white-space: nowrap; }
.purchase-card__product small, .purchase-card__date small { margin-top: .25rem; color: var(--account-muted); font-size: .69rem; }
.purchase-card__date strong { font-size: .78rem; }
.purchase-card__actions { display: flex; align-items: center; gap: .7rem; }
.purchase-card__price { min-width: 58px; color: var(--account-ink); font-family: var(--account-serif); font-size: 1.3rem; text-align: right; }
.purchase-card__actions .account-btn { min-height: 44px; padding: .5rem .9rem; font-size: .72rem; }

.library-grid { display: grid; gap: 1rem; }
.library-card { position: relative; min-height: 360px; display: grid; grid-template-columns: minmax(180px,.8fr) minmax(0,1.2fr); align-items: center; gap: 1.5rem; overflow: hidden; padding: clamp(1.2rem, 3vw, 2rem); border: 1px solid rgba(255,255,255,.88); border-radius: var(--account-radius-xl); background: linear-gradient(145deg,rgba(255,252,248,.92),rgba(221,233,224,.7)); box-shadow: var(--account-shadow-lift); }
.library-card--bonus { background: linear-gradient(145deg,rgba(255,252,248,.92),rgba(234,228,243,.76)); }
.library-card::after { content:""; position:absolute; width:250px; height:250px; right:-110px; top:-100px; border-radius:50%; background:rgba(243,220,221,.48); filter:blur(12px); pointer-events:none; }
.library-card__media { position: relative; z-index: 1; min-height: 290px; display: grid; place-items: center; }
.library-card__media img { max-width: 100%; max-height: 300px; object-fit: contain; filter: drop-shadow(0 24px 28px rgba(52,49,47,.23)); }
.library-card--bonus .library-card__media img { max-width: 78%; border-radius: 10px; }
.library-card__body { position: relative; z-index: 1; }
.library-card__owned { display: inline-flex; align-items: center; gap: .42rem; padding: .38rem .65rem; border-radius: var(--account-pill); background: rgba(255,255,255,.7); color: var(--account-success); font-size: .68rem; font-weight: 800; }
.library-card__owned i { width: 6px; height: 6px; border-radius: 50%; background: #5E9B70; }
.library-card h2 { margin-top: .85rem; max-width: 15ch; font-size: clamp(1.55rem, 3vw, 2.35rem); letter-spacing: -.025em; }
.library-card p { margin-top: .75rem; color: var(--account-muted); font-size: .86rem; line-height: 1.58; }
.library-card__meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.library-card__meta span { padding: .4rem .65rem; border-radius: var(--account-pill); background: rgba(255,255,255,.6); color: var(--account-muted); font-size: .68rem; font-weight: 700; }
.library-card .account-btn { margin-top: 1.35rem; }
.library-card a.account-btn--primary,
.library-card a.account-btn--primary:hover,
.library-card a.account-btn--primary:focus-visible { color: #fff; }
.library-note { display: flex; align-items: flex-start; gap: .9rem; margin-top: 1rem; padding: 1rem 1.15rem; border-radius: 21px; }
.library-note svg { width: 22px; height: 22px; flex: none; color: var(--account-ink); }
.library-note p { color: var(--account-muted); font-size: .8rem; line-height: 1.55; }
.library-note strong { color: var(--account-text); }

.profile-layout { display: grid; gap: 1rem; align-items: start; }
.profile-card { padding: clamp(1.2rem, 3vw, 2rem); border-radius: 28px; }
.profile-card__head { display: flex; align-items: center; gap: 1rem; margin-bottom: .55rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--account-line); }
.profile-card__head h2 { font-size: 1.2rem; }
.profile-card__head p { margin-top: .3rem; color: var(--account-muted); font-size: .75rem; line-height: 1.45; }
.profile-card__security { width: 60px; height: 60px; flex: none; display: grid; place-items: center; border-radius: 20px; background: var(--account-sage); color: var(--account-ink); }
.profile-card__security svg { width: 29px; height: 29px; }
.profile-signout { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; border-radius: 22px; }
.profile-signout strong, .profile-signout small { display: block; }
.profile-signout strong { font-size: .88rem; }
.profile-signout small { margin-top: .25rem; color: var(--account-muted); font-size: .72rem; line-height: 1.45; }
.profile-signout .account-btn { flex: none; }

.receipt-dialog { width: min(calc(100% - 2rem), 620px); max-height: min(88dvh, 820px); padding: 0; overflow: auto; border: 1px solid rgba(255,255,255,.88); border-radius: 30px; color: var(--account-text); background: rgba(255,252,248,.96); box-shadow: 0 36px 90px -30px rgba(28,33,29,.52); -webkit-backdrop-filter: blur(28px) saturate(160%); backdrop-filter: blur(28px) saturate(160%); }
.receipt-dialog::backdrop { background: rgba(39,43,40,.34); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); }
.receipt-dialog__head { position: sticky; z-index: 2; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.4rem; border-bottom: 1px solid var(--account-line); background: rgba(255,252,248,.9); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.receipt-dialog__head h2 { margin-top: .3rem; font-size: 1.3rem; }
.receipt-dialog__head button { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 14px; color: var(--account-muted); background: rgba(255,255,255,.68); }
.receipt-dialog__head button svg { width: 20px; height: 20px; }
.receipt { padding: 1.4rem; }
.receipt__brand { display: flex; align-items: center; gap: .75rem; padding-bottom: 1.2rem; border-bottom: 1px dashed var(--account-line); }
.receipt__brand img { width: 44px; height: 44px; object-fit: contain; }
.receipt__brand strong, .receipt__brand small { display: block; }
.receipt__brand strong { color: var(--account-ink); font-family: var(--account-serif); font-size: 1rem; font-weight: 500; }
.receipt__brand small { margin-top: .15rem; color: var(--account-muted); font-size: .68rem; }
.receipt__grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; margin-top: 1.2rem; }
.receipt__item small, .receipt__item strong { display: block; }
.receipt__item small { color: var(--account-muted); font-size: .68rem; }
.receipt__item strong { margin-top: .25rem; font-size: .8rem; line-height: 1.45; overflow-wrap: anywhere; }
.receipt__product { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.3rem; padding: 1rem; border-radius: 18px; background: var(--account-sage); }
.receipt__product strong, .receipt__product small { display: block; }
.receipt__product small { margin-top: .2rem; color: var(--account-muted); font-size: .68rem; }
.receipt__total { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.2rem; padding-top: 1rem; border-top: 1px dashed var(--account-line); color: var(--account-ink); font-weight: 800; }
.receipt__note { margin-top: 1.2rem; color: var(--account-muted); font-size: .72rem; line-height: 1.5; }
.receipt-dialog__actions { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: .65rem; padding: 1rem 1.4rem; border-top: 1px solid var(--account-line); background: rgba(255,252,248,.92); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.receipt-dialog__actions .account-btn { min-height: 44px; font-size: .76rem; }
.account-toast { position: fixed; z-index: 150; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom,0px)); transform: translate(-50%, 140%); max-width: calc(100% - 2rem); padding: .8rem 1.05rem; border: 1px solid rgba(255,255,255,.85); border-radius: var(--account-pill); color: #fff; background: rgba(46,70,54,.94); box-shadow: 0 22px 44px -20px rgba(46,70,54,.72); font-size: .8rem; font-weight: 700; opacity: 0; visibility: hidden; transition: transform .32s var(--account-ease), opacity .28s ease, visibility .28s; }
.account-toast.is-shown { transform: translate(-50%,0); opacity:1; visibility:visible; }

@media (min-width: 700px) {
  .account-stats { grid-template-columns: repeat(3,1fr); }
  .continue-grid, .library-grid, .profile-layout { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (min-width: 840px) { .account-hero { grid-template-columns: minmax(0,1.15fr) minmax(310px,.85fr); } }
@media (max-width: 839px) {
  .account-hero { min-height: 560px; align-items: start; }
  .account-hero__books { min-height: 260px; }
  .account-hero__book--main { right: 12%; }
  .account-hero__book--bonus { right: auto; left: 6%; }
}
@media (max-width: 699px) {
  .account-topline { position: sticky; z-index: 60; top: .75rem; }
  .account-panel { padding-top: 1.25rem; }
  .panel-heading { align-items: flex-start; }
  .panel-heading__count { display: none; }
  .continue-card { grid-template-columns: 92px minmax(0,1fr); }
  .continue-card__media { min-height: 132px; }
  .continue-card__media img { max-height: 128px; }
  .purchase-preview { grid-template-columns: auto minmax(0,1fr); }
  .purchase-preview__price { grid-column: 2; text-align: left; }
  .purchase-card { grid-template-columns: 1fr; }
  .purchase-card__date { padding-left: 74px; }
  .purchase-card__actions { justify-content: space-between; padding-left: 74px; }
  .library-card { min-height: 0; grid-template-columns: 120px minmax(0,1fr); gap: .8rem; padding: 1rem; border-radius: 28px; }
  .library-card__media { min-height: 210px; }
  .library-card__media img { max-height: 210px; }
  .library-card h2 { font-size: 1.25rem; }
  .library-card p { font-size: .76rem; }
  .library-card__meta { display: none; }
  .library-card .account-btn { min-height: 44px; padding: .5rem .85rem; font-size: .72rem; }
}
@media (max-width: 430px) {
  .account-hero { min-height: 590px; padding: 1.35rem; }
  .account-hero h1 { font-size: 2.2rem; }
  .account-hero__book--main { width: 210px; right: -2%; }
  .account-hero__book--bonus { width: 136px; left: -2%; }
  .account-hero__status { top: 8%; right: -4%; }
  .account-stat { min-height: 88px; }
  .dashboard-section__head { align-items: center; }
  .continue-card { grid-template-columns: 78px minmax(0,1fr); gap: .8rem; }
  .continue-card__media { min-height: 116px; }
  .continue-card__media img { max-height: 112px; }
  .continue-card__body p { display: none; }
  .purchase-card__date, .purchase-card__actions { padding-left: 0; }
  .library-card { grid-template-columns: 92px minmax(0,1fr); }
  .library-card__media { min-height: 170px; }
  .library-card__media img { max-height: 170px; }
  .library-card__owned { font-size: .6rem; }
  .profile-signout { align-items: stretch; flex-direction: column; }
  .profile-signout .account-btn { width: 100%; }
  .receipt__grid { grid-template-columns: 1fr; }
  .receipt-dialog__actions { display: grid; grid-template-columns: 1fr 1fr; }
}

@media print {
  body.account-body--dashboard > *:not(.receipt-dialog) { display: none !important; }
  .receipt-dialog[open] { position: static; width: 100%; max-height: none; display: block; border: 0; box-shadow: none; }
  .receipt-dialog__head button, .receipt-dialog__actions { display: none !important; }
}

/* --------------------------------------------------------------------------
   FULL-VIEWPORT EBOOK READER
   -------------------------------------------------------------------------- */
.reader-body { height: 100vh; height: 100dvh; overflow: hidden; }
.reader { --toolbar-h: 88px; position: relative; width: 100%; height: 100vh; height: 100dvh; overflow: hidden; padding: calc(var(--toolbar-h) + 18px) clamp(10px,2vw,28px) 17px; background: linear-gradient(135deg,#E9E1D8 0%,#F6EFE8 48%,#E8ECE6 100%); }
.reader-atmosphere { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.reader-atmosphere i { position: absolute; width: 38vw; height: 38vw; min-width: 260px; min-height: 260px; border-radius: 50%; filter: blur(95px); opacity: .58; }
.reader-atmosphere i:nth-child(1) { left: -12%; top: -20%; background: var(--account-blush); }
.reader-atmosphere i:nth-child(2) { right: -8%; bottom: -22%; background: var(--account-sage); }
.reader-atmosphere i:nth-child(3) { left: 46%; top: 28%; background: var(--account-lav); opacity: .34; }
.reader-toolbar { position: fixed; z-index: 90; top: max(10px, env(safe-area-inset-top,0px)); left: 50%; transform: translateX(-50%); width: min(calc(100% - 20px), 1380px); min-height: 72px; display: grid; grid-template-columns: auto minmax(130px,1fr) auto minmax(190px,280px) auto; align-items: center; gap: .8rem; padding: .65rem .75rem; border-radius: var(--account-pill); }
.reader-control { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .55rem .8rem; border: 1px solid rgba(255,255,255,.72); border-radius: var(--account-pill); color: var(--account-ink); background: rgba(255,255,255,.46); font-size: .74rem; font-weight: 800; text-decoration: none; transition: background .22s ease, transform .22s var(--account-ease); }
.reader-control:hover:not(:disabled) { background: rgba(255,255,255,.88); transform: translateY(-1px); }
.reader-control:active:not(:disabled) { transform: translateY(0) scale(.97); }
.reader-control:disabled { opacity: .36; cursor: not-allowed; }
.reader-control svg { width: 18px; height: 18px; }
.reader-control--dashboard { justify-self: start; }
.reader-book-meta { min-width: 0; }
.reader-book-meta small, .reader-book-meta strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reader-book-meta small { color: var(--account-muted-2); font-size: .58rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.reader-book-meta strong { margin-top: .14rem; font-family: var(--account-serif); font-size: clamp(.85rem,1.4vw,1.08rem); font-weight: 600; color: var(--account-ink); }
.reader-pagination { display: flex; align-items: center; gap: .45rem; }
.reader-page-count { min-width: 64px; text-align: center; color: var(--account-muted); font-size: .73rem; }
.reader-page-count strong { color: var(--account-ink); font-family: var(--account-serif); font-size: 1.12rem; }
.reader-page-count i { margin: 0 .25rem; font-style: normal; opacity: .55; }
.reader-topic-jump { min-width: 0; display: flex; align-items: center; gap: .5rem; padding: .27rem .3rem .27rem .7rem; border: 1px solid rgba(255,255,255,.72); border-radius: var(--account-pill); background: rgba(255,255,255,.4); }
.reader-topic-jump label { flex: none; color: var(--account-muted); font-size: .64rem; font-weight: 700; white-space: nowrap; }
.reader-topic-select { position: relative; min-width: 0; flex: 1; }
.reader-topic-select select { width: 100%; min-width: 0; height: 44px; padding: 0 2.3rem 0 .75rem; overflow: hidden; border: 0; border-radius: 13px; outline: 0; -webkit-appearance: none; appearance: none; color: var(--account-ink); background: rgba(255,255,255,.78); font: inherit; font-size: .7rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.reader-topic-select select:focus { box-shadow: inset 0 0 0 2px rgba(46,70,54,.36); }
.reader-topic-select svg { position: absolute; right: .7rem; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); color: var(--account-ink); pointer-events: none; }
.reader-skip { display: flex; align-items: center; gap: .55rem; padding: .27rem .3rem .27rem .75rem; border: 1px solid rgba(255,255,255,.72); border-radius: var(--account-pill); background: rgba(255,255,255,.4); }
.reader-skip label { color: var(--account-muted); font-size: .66rem; font-weight: 700; white-space: nowrap; }
.reader-skip > div { display: flex; align-items: center; }
.reader-skip input { width: 54px; height: 44px; padding: 0 .35rem; border: 0; border-radius: 12px 0 0 12px; outline: 0; background: rgba(255,255,255,.78); color: var(--account-ink); font-weight: 800; text-align: center; }
.reader-skip input:focus { box-shadow: inset 0 0 0 2px rgba(46,70,54,.36); }
.reader-skip button { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 0 12px 12px 0; color: #fff; background: var(--account-ink); }
.reader-skip button svg { width: 17px; height: 17px; }
.reader-control, .reader-topic-jump select, .reader-skip button { touch-action:manipulation; }
.reader-stage { position: relative; z-index: 2; width: min(100%, 1220px); height: 100%; margin-inline: auto; perspective: 1400px; }
.ebook-page { position: relative; width: 100%; height: 100%; overflow: hidden; border: 1px solid rgba(255,255,255,.9); border-radius: clamp(24px,3vw,42px); background: var(--account-paper); box-shadow: 0 3px 8px rgba(52,49,47,.05), 0 38px 80px -34px rgba(52,49,47,.42), inset 0 1px 0 rgba(255,255,255,.9); isolation: isolate; touch-action: pan-y; transform-origin: center; }
.ebook-page::before { content:""; position:absolute; z-index:-1; inset:0; background: radial-gradient(60% 80% at 98% 2%,rgba(243,220,221,.5),transparent 64%), radial-gradient(50% 70% at 0% 100%,rgba(221,233,224,.56),transparent 65%); }
.ebook-page__folio { position:absolute; z-index:4; right: clamp(18px,3vw,42px); top: clamp(18px,3vw,34px); color:rgba(46,70,54,.42); font-family:var(--account-serif); font-size:.74rem; letter-spacing:.12em; }
.ebook-page__content { width:100%; height:100%; overflow-y:auto; overscroll-behavior:contain; padding: clamp(2rem,5vw,5rem) clamp(1.4rem,6vw,6.5rem) clamp(5rem,8vw,6.5rem); scrollbar-width:thin; scrollbar-color:rgba(46,70,54,.22) transparent; }
.ebook-page__content::-webkit-scrollbar { width:7px; }
.ebook-page__content::-webkit-scrollbar-thumb { background:rgba(46,70,54,.18); border-radius:99px; }
.ebook-watermark { position:absolute; z-index:6; right:clamp(16px,2.5vw,32px); bottom:clamp(14px,2vw,24px); max-width:min(48%,390px); padding:.42rem .65rem; border:1px solid rgba(46,70,54,.12); border-radius:10px; color:rgba(46,70,54,.45); background:rgba(255,255,255,.58); font-size:clamp(.52rem,.9vw,.66rem); font-weight:700; line-height:1.35; text-align:right; pointer-events:none; user-select:none; -webkit-backdrop-filter:blur(9px); backdrop-filter:blur(9px); }
.swipe-hint { position:absolute; z-index:5; left:clamp(16px,2.5vw,32px); bottom:clamp(14px,2vw,24px); display:inline-flex; align-items:center; gap:.4rem; color:rgba(112,106,102,.58); font-size:.62rem; font-weight:700; pointer-events:none; }
.swipe-hint svg { width:18px; height:18px; }
.reader-progress { position:fixed; z-index:95; left:0; bottom:0; width:100%; height:4px; background:rgba(255,255,255,.3); }
.reader-progress span { display:block; width:0; height:100%; border-radius:0 99px 99px 0; background:linear-gradient(90deg,var(--account-ink),var(--account-gold)); transition:width .3s var(--account-ease); }

/* eBook typography and reusable page layouts */
.book-kicker { color:var(--account-gold); font-size:clamp(.68rem,1vw,.82rem); font-weight:800; letter-spacing:.16em; text-transform:uppercase; }
.book-title { margin:.75rem 0 0; max-width:19ch; color:var(--account-ink); font-family:var(--account-serif); font-size:clamp(2.5rem,6vw,6.4rem); font-weight:400; line-height:.96; letter-spacing:-.04em; }
.book-title em { color:var(--account-text); font-style:italic; }
.book-lede { max-width:62ch; margin:1.2rem 0 0; color:var(--account-muted); font-size:clamp(.95rem,1.55vw,1.18rem); line-height:1.65; }
.book-cover-layout { min-height:100%; display:grid; grid-template-columns:minmax(0,1.1fr) minmax(260px,.9fr); align-items:center; gap:clamp(2rem,5vw,5rem); }
.book-cover-art { position:relative; min-height:min(58vh,520px); display:grid; place-items:center; }
.book-cover-art img { max-width:100%; max-height:min(62vh,560px); object-fit:contain; filter:drop-shadow(0 28px 35px rgba(52,49,47,.26)); }
.book-cover-layout--bonus .book-cover-art img { max-width:78%; border-radius:16px; }
.book-badges { display:flex; flex-wrap:wrap; gap:.55rem; margin-top:1.5rem; }
.book-badges span { padding:.48rem .75rem; border:1px solid rgba(255,255,255,.85); border-radius:var(--account-pill); background:rgba(255,255,255,.58); color:var(--account-muted); font-size:.7rem; font-weight:700; box-shadow:var(--account-shadow); }
.book-section-head { max-width:760px; }
.book-section-head h2 { margin:.6rem 0 0; color:var(--account-ink); font-family:var(--account-serif); font-size:clamp(2rem,4vw,4rem); font-weight:400; line-height:1.05; letter-spacing:-.035em; }
.book-section-head p { margin:.85rem 0 0; color:var(--account-muted); line-height:1.62; }
.book-toc { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.55rem 1.2rem; margin-top:clamp(1.5rem,3vw,2.4rem); }
.book-toc li { display:flex; align-items:center; gap:.7rem; min-height:44px; padding:.45rem .65rem; border-bottom:1px solid var(--account-line); color:var(--account-muted); font-size:clamp(.74rem,1.1vw,.88rem); }
.book-toc strong { min-width:28px; color:var(--account-gold); font-family:var(--account-serif); font-size:1rem; }
.recipe-layout { min-height:100%; display:grid; grid-template-columns:minmax(250px,.76fr) minmax(0,1.24fr); gap:clamp(2rem,5vw,5rem); align-items:start; }
.recipe-intro { position:sticky; top:0; padding:clamp(1.2rem,2.5vw,2rem); border-radius:28px; background:linear-gradient(145deg,rgba(237,243,238,.9),rgba(255,255,255,.72)); border:1px solid rgba(255,255,255,.9); }
.recipe-day { color:var(--account-gold); font-family:var(--account-serif); font-size:clamp(2.4rem,5vw,5rem); line-height:1; }
.recipe-intro h1 { margin:.7rem 0 0; color:var(--account-ink); font-family:var(--account-serif); font-size:clamp(1.9rem,3.5vw,3.6rem); font-weight:400; line-height:1.02; }
.recipe-intro > p { margin:.8rem 0 0; color:var(--account-muted); font-size:.86rem; line-height:1.55; }
.recipe-meta { display:grid; grid-template-columns:repeat(3,1fr); gap:.5rem; margin-top:1.25rem; }
.recipe-meta span { padding:.65rem .45rem; border-radius:14px; background:rgba(255,255,255,.66); text-align:center; }
.recipe-meta small,.recipe-meta strong { display:block; }
.recipe-meta small { color:var(--account-muted-2); font-size:.56rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.recipe-meta strong { margin-top:.2rem; color:var(--account-ink); font-size:.72rem; }
.recipe-content { display:grid; gap:1.25rem; }
.recipe-block { padding:clamp(1.1rem,2vw,1.6rem); border:1px solid var(--account-line); border-radius:24px; background:rgba(255,255,255,.58); }
.recipe-block h2 { display:flex; align-items:center; gap:.6rem; margin:0 0 .8rem; color:var(--account-ink); font-size:1rem; }
.recipe-block h2 span { width:28px; height:28px; display:grid; place-items:center; border-radius:9px; background:var(--account-sage); font-family:var(--account-serif); font-weight:500; }
.recipe-block ul,.recipe-block ol { margin:0; padding:0; list-style:none; display:grid; gap:.48rem; }
.recipe-block li { position:relative; padding-left:1.25rem; color:var(--account-muted); font-size:clamp(.76rem,1.15vw,.9rem); line-height:1.55; }
.recipe-block ul li::before { content:""; position:absolute; left:.1rem; top:.65em; width:5px; height:5px; border-radius:50%; background:var(--account-gold); }
.recipe-block ol { counter-reset:method; }
.recipe-block ol li { counter-increment:method; padding-left:2rem; }
.recipe-block ol li::before { content:counter(method); position:absolute; left:0; top:.05rem; width:1.3rem; height:1.3rem; display:grid; place-items:center; border-radius:50%; background:var(--account-ink); color:#fff; font-size:.62rem; font-weight:800; }
.recipe-tip { padding:.9rem 1rem; border-left:3px solid var(--account-gold); border-radius:0 14px 14px 0; background:rgba(246,226,212,.52); color:var(--account-muted); font-size:.78rem; line-height:1.52; }
.module-layout { min-height:100%; display:grid; grid-template-columns:minmax(210px,.65fr) minmax(0,1.35fr); gap:clamp(2rem,5vw,5rem); align-items:start; }
.module-marker { position:sticky; top:0; }
.module-marker__num { color:rgba(176,141,83,.36); font-family:var(--account-serif); font-size:clamp(4rem,11vw,10rem); line-height:.75; }
.module-marker h1 { margin:1.1rem 0 0; color:var(--account-ink); font-family:var(--account-serif); font-size:clamp(1.8rem,3.5vw,3.5rem); font-weight:400; line-height:1.03; }
.module-marker p { margin:.8rem 0 0; color:var(--account-muted); font-size:.84rem; line-height:1.58; }
.module-content { display:grid; gap:.85rem; }
.module-card { padding:clamp(1rem,2vw,1.5rem); border:1px solid var(--account-line); border-radius:22px; background:rgba(255,255,255,.6); }
.module-card h2 { margin:0; color:var(--account-ink); font-size:clamp(.96rem,1.5vw,1.14rem); }
.module-card p { margin:.55rem 0 0; color:var(--account-muted); font-size:clamp(.75rem,1.1vw,.88rem); line-height:1.58; }
.module-card ul { display:grid; gap:.45rem; margin:.65rem 0 0; padding:0; list-style:none; }
.module-card li { position:relative; padding-left:1.1rem; color:var(--account-muted); font-size:clamp(.74rem,1.08vw,.86rem); line-height:1.5; }
.module-card li::before { content:""; position:absolute; left:0; top:.62em; width:5px; height:5px; border-radius:50%; background:var(--account-gold); }
.module-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.85rem; }
.book-callout { padding:1rem 1.15rem; border-radius:18px; background:var(--account-ink); color:rgba(255,255,255,.78); font-size:.8rem; line-height:1.58; }
.book-callout strong { color:#fff; }
.source-list { display:grid; gap:.65rem; margin-top:1.5rem; padding:0; list-style:none; }
.source-list a { display:block; padding:.85rem 1rem; border:1px solid var(--account-line); border-radius:16px; color:var(--account-ink); background:rgba(255,255,255,.58); font-size:.78rem; line-height:1.45; text-decoration:none; overflow-wrap:anywhere; }

/* Client-authored eBook content, normalised from the supplied standalone HTML. */
.source-rich { width:min(100%,1120px); min-height:100%; margin-inline:auto; color:var(--account-text); }
.source-rich h1,.source-rich h2,.source-rich h3,.source-rich h4 { color:var(--account-ink); }
.source-rich h1,.source-rich h2 { font-family:var(--account-serif); font-weight:400; letter-spacing:-.035em; }
.source-rich h1 { margin:.55rem 0 0; font-size:clamp(2.2rem,5vw,5.2rem); line-height:.98; }
.source-rich h2 { margin:.45rem 0 0; font-size:clamp(2rem,4vw,3.8rem); line-height:1.02; }
.source-rich h3 { margin:0; font-size:clamp(1rem,1.8vw,1.3rem); line-height:1.22; }
.source-rich h4 { margin:1.2rem 0 .6rem; font-size:.78rem; letter-spacing:.06em; text-transform:uppercase; }
.source-rich .section-title { max-width:22ch; line-height:1.12; text-wrap:balance; }
.source-rich .section-title + .section-kicker { max-width:72ch; margin-top:clamp(.8rem,1.6vw,1.15rem); margin-bottom:.75rem; line-height:1.55; }
.source-rich p { color:var(--account-muted); line-height:1.65; }
.source-rich .eyebrow,.source-rich .section-kicker,.source-rich .kicker { display:block; margin:0 0 .55rem; color:var(--account-gold); font-size:.68rem; font-weight:850; letter-spacing:.15em; text-transform:uppercase; }
.source-rich .lead { max-width:68ch; margin:.85rem 0 0; font-size:clamp(.9rem,1.35vw,1.08rem); }
.source-rich img { display:block; max-width:100%; height:auto; object-fit:contain; }
.source-rich .hero-grid,.source-rich .split { display:grid; grid-template-columns:minmax(0,1.08fr) minmax(270px,.92fr); align-items:center; gap:clamp(1.5rem,4vw,4rem); }
.source-rich .hero-img img,.source-rich .hero-art img,.source-rich .banner-img img,.source-rich .section-img img { width:100%; max-height:min(42vh,390px); border-radius:26px; object-fit:contain; }
.source-rich .hero-img,.source-rich .hero-art,.source-rich .banner-img,.source-rich .section-img { display:grid; place-items:center; overflow:hidden; border:1px solid rgba(255,255,255,.86); border-radius:28px; background:rgba(255,255,255,.48); }
.source-rich .banner-img,.source-rich .section-img { margin:1.2rem 0; }
.source-rich .pillrow,.source-rich .book-badges { display:flex; flex-wrap:wrap; gap:.5rem; margin-top:1.15rem; }
.source-rich .pillrow > *,.source-rich .pill { display:inline-flex; align-items:center; min-height:34px; padding:.38rem .65rem; border:1px solid rgba(46,70,54,.1); border-radius:99px; background:rgba(255,255,255,.68); color:var(--account-muted); font-size:.68rem; font-weight:750; }
.source-rich .notice,.source-rich .note,.source-rich .warning,.source-rich .quote,.source-rich .reuse,.source-rich .tipbox { margin-top:1rem; padding:1rem 1.1rem; border-radius:18px; color:var(--account-muted); font-size:clamp(.76rem,1.1vw,.88rem); line-height:1.6; }
.source-rich .notice,.source-rich .note,.source-rich .tipbox { border:1px solid rgba(46,70,54,.12); background:rgba(221,233,224,.58); }
.source-rich .warning { border:1px solid rgba(154,105,76,.17); background:rgba(246,226,212,.68); }
.source-rich .quote { border-left:4px solid var(--account-gold); background:rgba(255,255,255,.66); }
.source-rich .reuse { border-left:3px solid var(--account-gold); border-radius:0 15px 15px 0; background:rgba(246,226,212,.5); }
.source-rich .info-grid,.source-rich .category-grid,.source-rich .grid,.source-rich .grid3 { display:grid; gap:.85rem; margin-top:1.15rem; }
.source-rich .info-grid,.source-rich .grid3 { grid-template-columns:repeat(3,minmax(0,1fr)); }
.source-rich .category-grid,.source-rich .grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.source-rich .info-card,.source-rich .category,.source-rich .card,.source-rich .step { min-width:0; padding:clamp(1rem,2vw,1.4rem); border:1px solid var(--account-line); border-radius:22px; background:rgba(255,255,255,.62); }
.source-rich .info-card p,.source-rich .category p,.source-rich .card p,.source-rich .step p { margin:.55rem 0 0; font-size:clamp(.76rem,1.05vw,.88rem); }
.source-rich ul,.source-rich ol { margin:.65rem 0 0; padding-left:1.25rem; color:var(--account-muted); }
.source-rich li { margin:.38rem 0; padding-left:.15rem; font-size:clamp(.76rem,1.06vw,.9rem); line-height:1.52; }
.source-rich .clean { padding:0; list-style:none; }
.source-rich .clean li { position:relative; padding-left:1rem; }
.source-rich .clean li::before { content:""; position:absolute; left:0; top:.68em; width:5px; height:5px; border-radius:50%; background:var(--account-gold); }
.source-rich .tip { padding:.75rem .85rem; border-radius:14px; background:rgba(255,255,255,.55); color:var(--account-muted); font-size:.76rem; line-height:1.5; }

.source-rich--intro .hero-grid,.source-rich--module-cover .hero-grid { min-height:calc(100% - 1rem); }
.source-rich--module-cover .hero-grid > div:first-child { max-width:660px; }
.source-rich--module-cover .hero-img { min-height:min(45vh,410px); }

.source-rich .week-card { position:relative; }
.source-rich .week-head { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding-bottom:.7rem; border-bottom:1px solid var(--account-line); }
.source-rich .week-head .eyebrow { margin-bottom:.25rem; }
.source-rich .reset-week,.source-rich .source-reset { min-height:44px; padding:.55rem .85rem; border:1px solid rgba(46,70,54,.14); border-radius:99px; color:var(--account-ink); background:rgba(255,255,255,.8); font-size:.7rem; font-weight:800; cursor:pointer; touch-action:manipulation; }
.source-rich .source-reset { margin-top:1rem; }
.source-rich .check-grid,.source-rich .checklist { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.55rem; }
.source-rich .check-item,.source-rich label.check,.source-rich .check { position:relative; min-height:48px; display:flex; align-items:center; gap:.65rem; padding:.65rem .75rem; border:1px solid var(--account-line); border-radius:15px; background:rgba(255,255,255,.62); color:var(--account-text); font-size:.76rem; line-height:1.35; cursor:pointer; transition:background .18s ease,border-color .18s ease; }
.source-rich .check-item input,.source-rich label.check input { position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; }
.source-rich .check input { width:20px; height:20px; flex:0 0 auto; accent-color:var(--account-ink); }
.source-rich .fakecheck,.source-rich label.check::before { width:20px; height:20px; flex:0 0 auto; display:grid; place-items:center; border:1.5px solid rgba(46,70,54,.34); border-radius:6px; background:#fff; content:""; }
.source-rich .check-item.is-checked,.source-rich label.check.is-checked,.source-rich .check.is-checked { border-color:rgba(46,70,54,.22); background:rgba(221,233,224,.62); }
.source-rich .check-item.is-checked .fakecheck,.source-rich label.check.is-checked::before { border-color:var(--account-ink); background:var(--account-ink); box-shadow:inset 0 0 0 4px #fff; }
.source-rich .check-item.is-checked .item-name,.source-rich label.check.is-checked { color:var(--account-muted); text-decoration:line-through; text-decoration-thickness:1px; }
.source-rich .item-name { min-width:0; flex:1; font-weight:700; }
.source-rich .qty { flex:none; color:var(--account-muted-2); font-size:.68rem; font-weight:700; text-align:right; }

.source-rich .recipe-card { display:grid; grid-template-columns:90px minmax(0,1fr); gap:clamp(1rem,3vw,2.4rem); }
.source-rich .recipe-number { color:rgba(176,141,83,.48); font-family:var(--account-serif); font-size:clamp(4rem,8vw,7rem); line-height:.85; }
.source-rich .recipe-title-row { display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; }
.source-rich .recipe-title-row h3 { font-family:var(--account-serif); font-size:clamp(1.8rem,3.6vw,3.2rem); font-weight:400; letter-spacing:-.03em; }
.source-rich .recipe-cols { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; margin-top:1rem; }
.source-rich .recipe-cols > div { padding:1rem 1.1rem; border:1px solid var(--account-line); border-radius:20px; background:rgba(255,255,255,.6); }
.source-rich .recipe-cols h4 { margin-top:0; }

.source-day-head { display:grid; grid-template-columns:auto minmax(0,1fr); align-items:end; column-gap:1.2rem; padding-bottom:1rem; border-bottom:1px solid var(--account-line); }
.source-day-head .eyebrow { position:static; grid-column:1 / -1; margin:0 0 .7rem; }
.source-day-number { grid-column:1; color:rgba(176,141,83,.48); font-family:var(--account-serif); font-size:clamp(4rem,9vw,8rem); line-height:.72; }
.source-day-head h1 { grid-column:2; min-width:0; margin:0; }
.source-meal-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.7rem; margin-top:1.2rem; }
.source-meal { min-height:80px; display:flex; flex-direction:column; justify-content:center; padding:.8rem 1rem; border:1px solid var(--account-line); border-radius:18px; background:rgba(255,255,255,.63); }
.source-meal span { color:var(--account-gold); font-size:.62rem; font-weight:850; letter-spacing:.08em; text-transform:uppercase; }
.source-meal strong { margin-top:.3rem; color:var(--account-ink); font-size:clamp(.78rem,1.15vw,.94rem); line-height:1.38; }
.source-rich--flex-days { max-width:760px; display:grid; align-content:center; text-align:center; }
.source-rich--flex-days .eyebrow,.source-rich--flex-days .lead { margin-inline:auto; }
.source-flex-numbers { display:flex; align-items:center; justify-content:center; gap:1rem; margin-top:1rem; color:rgba(176,141,83,.55); font-family:var(--account-serif); font-size:clamp(4rem,10vw,8.5rem); line-height:1; }
.source-flex-numbers i { color:var(--account-muted-2); font-family:var(--account-sans); font-size:1.4rem; font-style:normal; }

.source-rich .exercise { display:grid; grid-template-columns:minmax(190px,.72fr) minmax(0,1.28fr); align-items:center; gap:clamp(1.1rem,3vw,2.6rem); }
.source-rich .exercise > img { width:100%; max-height:min(46vh,430px); border-radius:24px; background:rgba(255,255,255,.56); }
.source-rich .exercise > div { min-width:0; }
.source-rich .exercise h3 { font-family:var(--account-serif); font-size:clamp(1.75rem,3.4vw,3rem); font-weight:400; letter-spacing:-.03em; }
.source-rich .meta { color:var(--account-gold); font-size:.66rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.source-rich .tag { display:inline-flex; margin-top:.65rem; padding:.42rem .65rem; border-radius:99px; background:rgba(221,233,224,.7); color:var(--account-ink); font-size:.7rem; font-weight:750; }
.source-rich .arabic { direction:rtl; margin:.8rem 0; color:var(--account-ink); font-family:"Times New Roman",serif; font-size:clamp(1.45rem,3vw,2.2rem); line-height:1.9; text-align:right; }
.source-rich .steps { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.8rem; margin-top:1rem; }
.source-rich--references .refs ol { display:grid; gap:.6rem; }
.source-rich--references .refs li { padding:.75rem .9rem; border:1px solid var(--account-line); border-radius:15px; background:rgba(255,255,255,.6); overflow-wrap:anywhere; }

@media (max-width: 1100px) {
  .reader { --toolbar-h: 136px; padding-top:calc(var(--toolbar-h) + 14px); }
  .reader-toolbar { grid-template-columns:auto minmax(100px,1fr) auto; border-radius:28px; }
  .reader-pagination { grid-column:1; grid-row:2; }
  .reader-topic-jump { grid-column:2; grid-row:2; }
  .reader-skip { grid-column:3; grid-row:2; }
}
@media (max-width: 900px) {
  .reader-pagination .reader-control { min-width:44px; padding:.5rem .62rem; }
  .reader-pagination .reader-control span { display:none; }
  .reader-skip { padding-left:.35rem; }
  .reader-skip label { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
  .source-rich .info-grid,.source-rich .grid3 { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 700px) {
  .reader { --toolbar-h: 202px; padding-inline:8px; padding-bottom:8px; }
  .reader-toolbar { top:max(6px,env(safe-area-inset-top,0px)); width:calc(100% - 12px); min-height:186px; grid-template-columns:auto minmax(0,1fr) auto; gap:.45rem; padding:.48rem; border-radius:24px; }
  .reader-control { min-width:44px; padding:.5rem .62rem; }
  .reader-control--dashboard span, .reader-pagination .reader-control span { display:none; }
  .reader-book-meta { text-align:center; }
  .reader-book-meta small { display:none; }
  .reader-pagination { grid-column:1 / 3; gap:.3rem; }
  .reader-page-count { min-width:56px; }
  .reader-skip { grid-column:3; padding-left:.35rem; }
  .reader-skip label { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
  .reader-skip input { width:48px; }
  .reader-topic-jump { grid-column:1 / -1; grid-row:3; width:100%; padding-left:.35rem; }
  .reader-topic-jump label { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
  .reader-topic-select select { font-size:.72rem; }
  .ebook-page { border-radius:22px; }
  .ebook-page__content { padding:2.8rem 1.2rem 5rem; }
  .ebook-watermark { max-width:68%; }
  .book-cover-layout { min-height:auto; grid-template-columns:1fr; text-align:center; }
  .book-cover-layout .book-title,.book-cover-layout .book-lede { margin-inline:auto; }
  .book-badges { justify-content:center; }
  .book-cover-art { min-height:240px; }
  .book-cover-art img { max-height:270px; }
  .book-toc { grid-template-columns:1fr; }
  .recipe-layout,.module-layout { min-height:auto; grid-template-columns:1fr; gap:1.2rem; }
  .recipe-intro,.module-marker { position:static; }
  .recipe-day { font-size:3.2rem; }
  .module-marker__num { font-size:4.5rem; }
  .module-grid { grid-template-columns:1fr; }
  .swipe-hint { display:none; }
  .source-rich h1 { font-size:clamp(2rem,11vw,3.25rem); }
  .source-rich h2 { font-size:clamp(1.8rem,9vw,2.8rem); }
  .source-rich .section-title { max-width:100%; line-height:1.14; }
  .source-rich .section-title + .section-kicker { margin-top:.85rem; line-height:1.58; }
  .source-rich .hero-grid,.source-rich .split,.source-rich .info-grid,.source-rich .category-grid,.source-rich .grid,.source-rich .grid3,.source-rich .recipe-cols,.source-rich .exercise,.source-rich .steps { grid-template-columns:1fr; }
  .source-rich .hero-img,.source-rich .hero-art,.source-rich .banner-img,.source-rich .section-img { border-radius:20px; }
  .source-rich .hero-img img,.source-rich .hero-art img,.source-rich .banner-img img,.source-rich .section-img img { max-height:240px; border-radius:18px; }
  .source-rich--module-cover .hero-img { min-height:210px; }
  .source-rich .check-grid,.source-rich .checklist { grid-template-columns:1fr; }
  .source-rich .week-head { align-items:flex-start; }
  .source-rich .week-head h3 { font-size:1.35rem; }
  .source-rich .recipe-card { grid-template-columns:1fr; gap:.45rem; }
  .source-rich .recipe-number { font-size:3.4rem; }
  .source-rich .recipe-title-row { align-items:flex-start; flex-direction:column; gap:.55rem; }
  .source-rich .recipe-title-row h3 { font-size:2rem; }
  .source-day-head { align-items:center; column-gap:.75rem; }
  .source-day-number { font-size:4.2rem; }
  .source-day-head h1 { font-size:2.25rem; }
  .source-meal-grid { grid-template-columns:1fr; }
  .source-meal { min-height:68px; }
  .source-rich .exercise > img { max-height:260px; }
  .source-rich .arabic { font-size:1.45rem; }
}
@media (max-width: 380px) {
  .reader-control { padding:.45rem .5rem; }
  .reader-skip { grid-column:3; }
  .reader-skip input { width:44px; }
  .reader-skip button { width:44px; }
  .reader-page-count { min-width:48px; }
  .ebook-page__content { padding-inline:1rem; }
}

/* Mobile performance mode: retain the premium palette without expensive GPU layers. */
@media (max-width: 700px), (hover: none) and (pointer: coarse) {
  .reader { background: linear-gradient(145deg,#EEE7DF 0%,#F8F4EF 52%,#E9EEE8 100%); }
  .reader-atmosphere { background: linear-gradient(145deg,rgba(243,220,221,.3),rgba(221,233,224,.24)); }
  .reader-atmosphere i { display:none; }
  .reader-toolbar {
    background:rgba(255,252,248,.97);
    box-shadow:0 12px 28px -22px rgba(52,49,47,.48), inset 0 1px 0 rgba(255,255,255,.92);
    -webkit-backdrop-filter:none;
    backdrop-filter:none;
  }
  .reader-stage { perspective:none; }
  .ebook-page {
    contain:layout paint style;
    box-shadow:0 12px 30px -24px rgba(52,49,47,.45), inset 0 1px 0 rgba(255,255,255,.9);
  }
  .ebook-page::before { background:linear-gradient(145deg,rgba(243,220,221,.24),transparent 46%,rgba(221,233,224,.2)); }
  .ebook-watermark {
    background:rgba(255,255,255,.92);
    -webkit-backdrop-filter:none;
    backdrop-filter:none;
  }
  .book-cover-art img { filter:none; }
}

@media (prefers-reduced-motion: reduce) {
  .account-body *, .account-body *::before, .account-body *::after,
  .reader-body *, .reader-body *::before, .reader-body *::after { animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
}
