/* ============================================================
   SABON FORMULA LAB — storefront styles (store.html)
   Reuses the landing design tokens from styles.css.
   ============================================================ */

/* ---------- header ---------- */
.store-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 250, 247, .86);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--line-2);
}
.site-nav--store a::after { bottom: 4px; }
.store-main { min-height: 62vh; padding-block: clamp(34px, 5vw, 60px) clamp(60px, 8vw, 110px); }

/* ---------- outlet ---------- */
.shead { margin-bottom: clamp(28px, 4vw, 46px); }
.shead h1 { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.9rem, 4.4vw, 3rem); letter-spacing: -.03em; line-height: 1.08; }
.shead > p:not(.eyebrow) { color: var(--muted); margin-top: 12px; max-width: 600px; }
.link-deco { font-family: var(--f-display); font-weight: 700; color: var(--acc); display: inline-block; margin-top: 22px; }
.link-deco:hover { text-decoration: underline; }

/* ---------- store overview grid ---------- */
.bundle-teaser {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: linear-gradient(120deg, #10150F, #1B241C);
  color: #F2F1EA; border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 30px) clamp(22px, 3.4vw, 34px);
  margin-bottom: clamp(26px, 3.6vw, 40px);
  box-shadow: var(--shadow-2);
  transition: transform .3s, box-shadow .3s;
}
.bundle-teaser:hover { transform: translateY(-3px); box-shadow: var(--shadow-3); }
.bundle-teaser > div { flex: 1 1 260px; }
.bundle-teaser h3 { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.15rem, 2.2vw, 1.6rem); letter-spacing: -.01em; }
.bundle-teaser p { color: rgba(242, 241, 234, .75); margin-top: 6px; font-size: .98rem; }
.bundle-teaser p strong { color: #F1DEAE; font-size: 1.1em; }
.bundle-teaser p s { color: rgba(242, 241, 234, .45); }
.bundle-teaser__cta { font-family: var(--f-display); font-weight: 800; letter-spacing: .04em; white-space: nowrap; color: #2A2007; background: linear-gradient(100deg, #E9D49B, #D3AF62); padding: 13px 20px; border-radius: 999px; box-shadow: 0 12px 24px -12px rgba(198, 161, 91, .7); }
.bundle-teaser:hover .bundle-teaser__cta { transform: translateX(2px); }
.bundle-teaser__cta { transition: transform .25s; display: inline-block; }

.s-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 1.6vw, 22px); }
.s-grid > * { min-width: 0; }
.s-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow-1);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s, border-color .3s;
}
.s-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); border-color: rgba(14, 122, 90, .3); }
.s-card__media {
  background: radial-gradient(120% 90% at 50% 0%, rgba(14, 122, 90, .08), transparent 60%), var(--bg-soft);
  display: grid; place-items: center; padding: 24px 0 14px; min-height: 215px;
  overflow: hidden; /* the 3D book + shadow must never bleed into the text below */
}
.s-card__media .bk { --w: 160px; }
.s-card__body h3 { overflow-wrap: anywhere; }
.s-card:hover .bk__3d { --ry: -34; }
.s-card__body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.s-card__body h3 { font-family: var(--f-display); font-weight: 800; font-size: 1.08rem; line-height: 1.22; margin-top: 7px; }
.s-card__fno { font-size: .76rem; color: var(--acc); font-weight: 700; letter-spacing: .08em; margin-top: 6px; font-family: var(--f-display); }
.s-card__price { margin-top: 12px; font-family: var(--f-display); font-weight: 800; font-size: 1.3rem; }
.s-card__price span { display: block; font-family: var(--f-body); font-weight: 500; font-size: .7rem; color: var(--muted); letter-spacing: .02em; margin-top: 2px; }
.s-card__actions { display: flex; gap: 10px; margin-top: auto; padding-top: 16px; }
.s-card__actions .btn { flex: 1; }

/* ---------- product view ---------- */
.pview { display: grid; grid-template-columns: minmax(240px, 420px) 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.pview__media { display: grid; place-items: center; }
.pview__media .bk { --w: clamp(210px, 26vw, 300px); }
.pview h1 { font-family: var(--f-display); font-weight: 800; font-size: clamp(2rem, 4.6vw, 3.3rem); letter-spacing: -.03em; line-height: 1.05; }
.pview__desc { color: var(--ink-2); font-size: 1.06rem; margin-top: 16px; max-width: 520px; }
.pview__tags { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.pview__price { margin-top: 20px; font-family: var(--f-display); font-weight: 800; font-size: 2.3rem; letter-spacing: -.02em; }
.pview__price span { display: block; font-family: var(--f-body); font-weight: 500; font-size: .82rem; color: var(--muted); margin-top: 3px; }
.pview__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.pview__note { margin-top: 16px; color: var(--muted); font-size: .9rem; }
.pview__included { margin-top: clamp(44px, 6vw, 72px); }
.pview__included h2 { font-family: var(--f-display); font-weight: 800; font-size: 1.6rem; letter-spacing: -.01em; margin-bottom: 20px; }
.pview__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px 24px; max-width: 760px; }
.pview__list li { display: flex; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; font-weight: 600; }
.pview__list em { font-style: normal; color: var(--acc); font-family: var(--f-display); font-weight: 700; margin-left: auto; font-size: .78rem; }

/* bundle view */
.bview { display: grid; grid-template-columns: minmax(240px, 1fr) 1fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.bview__visual { background: radial-gradient(60% 60% at 50% 40%, rgba(14, 122, 90, .12), transparent), var(--bg-soft); border: 1px solid var(--line-2); border-radius: var(--r-xl); padding: clamp(22px, 4vw, 40px); text-align: center; }
.bview__fan { display: flex; justify-content: center; align-items: flex-end; gap: 6px; margin-top: 18px; flex-wrap: wrap; }
.bview__fanbk { transform: translateY(calc(var(--i) % 3 * 8px)); }
.bview__fanbk .bk { --w: clamp(72px, 9vw, 104px); }
.bview__value { color: var(--muted); margin-top: 18px; font-size: 1rem; }
.bview__value s { color: var(--muted); }
.bview__price { font-family: var(--f-display); font-weight: 800; font-size: 3.2rem; letter-spacing: -.03em; margin-top: 6px; }
.bview__price span { font-size: .95rem; font-weight: 600; color: var(--muted); margin-left: 8px; }
.bview__save { display: inline-block; margin-top: 12px; font-family: var(--f-display); font-weight: 800; letter-spacing: .04em; font-size: .86rem; color: #2A2007; background: linear-gradient(100deg, #E9D49B, #D3AF62); padding: 8px 16px; border-radius: 999px; }

/* ---------- checkout ---------- */
.co2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 34px); align-items: start; }
.co2__col { display: flex; flex-direction: column; gap: clamp(18px, 2.6vw, 28px); }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 2.6vw, 28px); box-shadow: var(--shadow-1); }
.panel h2 { font-family: var(--f-display); font-weight: 800; font-size: 1.05rem; letter-spacing: .06em; margin-bottom: 16px; }
.panel__rows { display: flex; flex-direction: column; }
.panel__row { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; font-size: .96rem; color: var(--ink-2); }
.panel__row--total { border-top: 1px dashed var(--line); margin-top: 8px; padding-top: 14px; font-size: 1.05rem; color: var(--ink); }
.panel__row--total b { font-family: var(--f-display); font-size: 1.5rem; }
.field { margin-bottom: 2px; }
.field label { display: block; font-family: var(--f-display); font-weight: 700; font-size: .82rem; margin: 14px 0 7px; }
.field__opt { font-style: normal; font-weight: 500; font-size: .74rem; color: var(--muted); font-family: var(--f-body); }
.field input {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--card); font: inherit; font-size: .98rem; transition: border-color .2s, box-shadow .2s;
}
.field input:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 4px rgba(14, 122, 90, .12); }
.field input[aria-invalid='true'] { border-color: #C0492E; }
.field__err { color: #C0492E; font-size: .8rem; min-height: 1em; margin-top: 4px; }
.field__err:empty { margin: 0; }
.field__hint { font-size: .82rem; color: var(--muted); margin-top: 10px; }
.ck-saved { background: var(--acc-soft); border: 1px solid rgba(14, 122, 90, .3); color: var(--acc-dark); border-radius: 12px; padding: 10px 14px; font-size: .85rem; margin-top: 12px; line-height: 1.45; }

.panel--gcash { border-color: rgba(198, 161, 91, .45); scroll-margin-top: 110px; }
.gcash { display: flex; gap: 18px; align-items: center; }
.gcash__qr { flex: 0 0 auto; text-align: center; }
.gcash__qr img { width: clamp(150px, 24vw, 200px); height: auto; border-radius: 14px; border: 1px solid var(--line); background: #fff; padding: 6px; box-shadow: var(--shadow-1); }
.gcash__qr span { display: block; margin-top: 6px; font-size: .72rem; letter-spacing: .12em; color: var(--muted); font-family: var(--f-display); font-weight: 700; }
.gcash__info { font-size: .95rem; }
.gcash__info p { margin: 4px 0; color: var(--ink-2); }
.gcash__amount strong { font-family: var(--f-display); font-size: 1.35rem; color: var(--ink); }
.howpay { margin-top: 18px; border-top: 1px dashed rgba(198, 161, 91, .5); padding-top: 14px; }
.howpay h3 { font-family: var(--f-display); font-weight: 800; font-size: .8rem; letter-spacing: .12em; color: #7A5A17; }
.howpay ol { margin: 10px 0 0 20px; list-style: decimal; display: flex; flex-direction: column; gap: 5px; font-size: .92rem; color: var(--ink-2); }
.howpay__note { margin-top: 12px; font-size: .9rem; font-weight: 600; color: var(--acc-dark); background: var(--acc-soft); border-radius: 12px; padding: 10px 14px; }

.upload__box {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  border: 1.5px dashed rgba(14, 122, 90, .5); background: var(--acc-soft); color: var(--acc-dark);
  border-radius: 16px; padding: 22px; cursor: pointer; transition: background .2s, border-color .2s; text-align: center;
}
.upload:hover .upload__box, .upload:focus-within .upload__box { background: #d9ece2; border-color: var(--acc); }
.upload__box strong { font-family: var(--f-display); font-weight: 800; }
.upload__box span { font-size: .8rem; opacity: .8; }
.upload__preview img { width: 100%; border-radius: 12px; border: 1px solid var(--line); margin-bottom: 8px; }
.upload__preview { display: flex; flex-direction: column; align-items: flex-start; margin-top: 6px; }

/* ---------- status / order views ---------- */
.panel--status .status-pills { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.pill { font-family: var(--f-display); font-weight: 800; letter-spacing: .1em; font-size: .66rem; padding: 8px 14px; border-radius: 999px; }
.pill--pending { background: rgba(198, 161, 91, .16); color: #7A5A17; border: 1px solid rgba(198, 161, 91, .45); }
.pill--approved { background: var(--acc-soft); color: var(--acc-dark); border: 1px solid rgba(14, 122, 90, .35); }
.pill--rejected { background: #F6E4E1; color: #C0492E; border: 1px solid rgba(192, 73, 46, .3); }
.pill--access { border-style: dashed; }
.pill--locked { background: transparent; color: var(--muted); border-color: var(--line); }
.pill--unlocked { background: var(--acc-soft); color: var(--acc-dark); border-color: rgba(14, 122, 90, .35); }
.status-note { color: var(--muted); font-size: .95rem; }
.status-note--ok { color: var(--acc-dark); font-weight: 600; }
.received { text-align: center; padding: clamp(20px, 4vw, 44px) 16px clamp(16px, 3vw, 28px); }
.received__check { width: 74px; height: 74px; margin-inline: auto; border-radius: 50%; background: linear-gradient(140deg, var(--acc-2), var(--acc)); color: #fff; font-size: 2rem; display: grid; place-items: center; box-shadow: 0 18px 36px -14px rgba(14, 122, 90, .55); }
.received h1 { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.02em; margin-top: 18px; }
.received p { color: var(--muted); margin-top: 8px; }
.received__books { font-size: 1.02rem; color: var(--ink-2); }
.received__books ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 7px; }
.received__books li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.received__books strong { color: var(--ink); }
.received__books em { font-style: normal; font-size: .8rem; color: var(--acc); font-weight: 700; letter-spacing: .04em; }
.received__note { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin-top: 18px; font-size: .95rem; color: var(--ink-2); line-height: 1.55; }
.rejected { background: #FDF1EE; border: 1px solid rgba(192, 73, 46, .3); border-radius: 14px; padding: 16px 18px; margin-top: 4px; }
.rejected h3 { font-family: var(--f-display); font-weight: 800; color: #C0492E; letter-spacing: .04em; }
.rejected p { color: #7A3A2A; margin-top: 6px; font-size: .95rem; }
.shot { width: min(340px, 100%); border-radius: 12px; border: 1px solid var(--line); }
.shot--small { width: min(220px, 100%); }

/* ---------- library ---------- */
.lib-lookup { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 26px; }
.lib-lookup .field { flex: 1 1 260px; }
.lib-lookup .field input { margin-top: 7px; }
.lib-empty { text-align: center; padding: 50px 20px; border: 1px dashed var(--line); border-radius: var(--r-lg); background: var(--card); }
.lib-empty h3 { font-family: var(--f-display); font-weight: 800; font-size: 1.2rem; }
.lib-empty p { color: var(--muted); margin: 8px auto 18px; max-width: 440px; }
.lib-head h2 { font-family: var(--f-display); font-weight: 800; font-size: 1.4rem; margin-bottom: 16px; }
.lib-list { display: flex; flex-direction: column; gap: 12px; }
.lib-row { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; box-shadow: var(--shadow-1); flex-wrap: wrap; }
.lib-row > .check { width: 26px; height: 26px; }
.lib-row__main { flex: 1 1 240px; display: flex; flex-direction: column; }
.lib-row__main strong { font-family: var(--f-display); font-weight: 800; }
.lib-row__main span { font-size: .78rem; letter-spacing: .08em; color: var(--acc-dark); font-weight: 700; }

/* ---------- admin ---------- */
.admin-toolbar { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.admin-list { display: flex; flex-direction: column; gap: 18px; }
.admin-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px; box-shadow: var(--shadow-1); }
.admin-card header { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.admin-card header strong { font-family: var(--f-display); font-weight: 800; letter-spacing: .02em; }
.admin-card header span { display: block; font-size: .8rem; color: var(--muted); margin-top: 2px; }
.admin-card__who { color: var(--ink-2); margin-top: 10px; }
.admin-card ul { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; font-size: .9rem; color: var(--ink-2); }
.admin-card__total { margin-top: 8px; font-family: var(--f-display); font-size: 1.05rem; }
.admin-card__total span { font-family: var(--f-body); font-size: .8rem; color: var(--acc); }
.admin-card__actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.admin-card__contact { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.admin-card__contact .cnt { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--bg); color: var(--ink-2); font-family: var(--f-body); font-weight: 600; font-size: .76rem; letter-spacing: .02em; border-radius: 999px; padding: 6px 12px; cursor: pointer; text-decoration: none; transition: all .18s; }
.admin-card__contact .cnt:hover { border-color: var(--acc); color: var(--acc-dark); background: var(--acc-soft); }
.admin-card__contact .cnt--wa { background: #e9f7ee; border-color: rgba(37, 160, 94, .35); color: #16703e; }
.admin-card__contact .cnt--wa:hover { background: #25D366; border-color: #25D366; color: #fff; }
.admin-card__contact .cnt.is-copied { background: var(--acc); border-color: var(--acc); color: #fff; }
.admin-login { max-width: 420px; }

/* ---------- admin page (admin.html) ---------- */
.admin-body { background: var(--bg); min-height: 100vh; }
.shead-wrap { padding: clamp(28px, 5vw, 56px) clamp(16px, 4vw, 40px) 8px; }
.admin-main { max-width: 980px; margin: 0 auto; padding: 16px clamp(16px, 4vw, 40px) 60px; }
.admin-h2 { font-family: var(--f-display); font-weight: 800; font-size: 1.35rem; letter-spacing: .02em; margin: 34px 0 14px; }
.admin-toolbar { justify-content: flex-end; }
.admin-toolbar__user { margin-right: auto; font-size: .88rem; color: var(--muted); }
.admin-note { color: var(--ink-2); margin: 6px 0 14px; font-size: .95rem; }
.admin-note code { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: .85em; }
.admin-note--err { color: var(--danger, #b3261e); }
.admin-footer { max-width: 980px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px) 40px; display: flex; gap: 12px; flex-wrap: wrap; }
.leads-table { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--card); }
.leads-table__head, .leads-table__row { display: grid; grid-template-columns: 1.2fr 1.4fr 1fr 1.2fr .8fr; gap: 10px; padding: 12px 16px; }
.leads-table__head { background: var(--card-2, var(--bg)); font-family: var(--f-display); font-weight: 800; font-size: .72rem; letter-spacing: .08em; color: var(--muted); border-bottom: 1px solid var(--line); }
.leads-table__row { border-top: 1px solid var(--line); font-size: .9rem; color: var(--ink-2); }
.leads-table__row:first-of-type { border-top: 0; }
.leads-table__row a { color: var(--acc); }
/* ================= admin shell (sidebar layout) ================= */
.admin-body { background: var(--bg); min-height: 100vh; }

/* login */
.alogon { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(1200px 600px at 80% -10%, rgba(46, 125, 50, .18), transparent 60%), radial-gradient(900px 500px at -10% 110%, rgba(201, 138, 46, .12), transparent 60%), var(--bg); }
.alogon__card { width: min(420px, 100%); background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-xl, 22px); padding: 34px 32px; box-shadow: 0 40px 90px -40px rgba(10, 14, 10, .6); }
.alogon__brand { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 800; letter-spacing: .02em; font-size: 1.05rem; }
.alogon__logo { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, #1d6b33, #0e3d1c); color: #f1deae; display: grid; place-items: center; font-size: 1.15rem; box-shadow: 0 8px 18px -8px rgba(14, 61, 28, .7); }
.alogon__brand small { font-size: .62rem; letter-spacing: .18em; color: var(--acc); background: rgba(46, 125, 50, .12); border: 1px solid rgba(46, 125, 50, .25); padding: 2px 8px; border-radius: 999px; }
.alogon__card h1 { font-family: var(--f-display); font-weight: 800; font-size: 1.5rem; margin-top: 22px; letter-spacing: -.01em; }
.alogon__card > p { color: var(--muted); margin-top: 8px; font-size: .95rem; }
.alogon__card .field { margin-top: 16px; }
.alogon__back { display: block; text-align: center; margin-top: 18px; color: var(--muted); font-size: .88rem; text-decoration: none; }
.alogon__back:hover { color: var(--acc); }

/* shell */
.admin-shell { display: flex; min-height: 100vh; }
.sidebar { width: 248px; flex-shrink: 0; background: linear-gradient(180deg, #0d2416, #0a1a10); color: #dceadf; display: flex; flex-direction: column; padding: 22px 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar__brand { font-family: var(--f-display); font-weight: 800; font-size: 1.05rem; line-height: 1.25; padding: 4px 10px 20px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.sidebar__brand span { color: #f1deae; }
.sidebar__brand small { display: block; font-family: var(--f-body); font-weight: 700; font-size: .6rem; letter-spacing: .22em; color: rgba(220, 234, 223, .5); margin-top: 4px; }
.sidebar__nav { display: flex; flex-direction: column; gap: 6px; margin-top: 20px; }
.side-btn { appearance: none; border: 0; background: transparent; color: rgba(220, 234, 223, .72); font-family: var(--f-display); font-weight: 700; font-size: .86rem; letter-spacing: .06em; text-align: left; padding: 12px 14px; border-radius: 12px; cursor: pointer; transition: all .2s; }
.side-btn:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.side-btn.is-active { background: linear-gradient(100deg, rgba(46, 125, 50, .9), rgba(29, 107, 51, .85)); color: #fff; box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .6); }
.sidebar__foot { margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .08); display: grid; gap: 10px; }
.sidebar__user { font-size: .8rem; color: rgba(220, 234, 223, .6); word-break: break-all; }
.sidebar-scrim { display: none; }

.admin-main2 { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-topbar { display: flex; align-items: center; gap: 14px; padding: 16px clamp(18px, 3vw, 34px); border-bottom: 1px solid var(--line); background: rgba(252, 251, 246, .9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 50; }
.admin-topbar h1 { font-family: var(--f-display); font-weight: 800; font-size: 1.25rem; letter-spacing: -.01em; margin-right: auto; }
.admin-topbar__actions { display: flex; gap: 10px; }
.side-toggle { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font-size: 1.1rem; }
.admin-content { padding: clamp(18px, 3vw, 34px); max-width: 1080px; width: 100%; margin: 0 auto; }
.admin-section { margin-top: 26px; }
.admin-section__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.admin-section__head h2 { font-family: var(--f-display); font-weight: 800; font-size: 1.15rem; letter-spacing: .01em; }
.admin-section__head .btn { margin-left: auto; }
.orders-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.admin-list { display: flex; flex-direction: column; gap: 18px; }

/* mobile */
@media (max-width: 860px) {
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; z-index: 300; transform: translateX(-100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); box-shadow: 30px 0 80px -30px rgba(0, 0, 0, .5); }
  .sidebar.is-open { transform: translateX(0); }
  .sidebar-scrim { display: block; position: fixed; inset: 0; background: rgba(10, 14, 10, .55); z-index: 290; opacity: 0; pointer-events: none; transition: opacity .25s; }
  .sidebar-scrim.is-visible { opacity: 1; pointer-events: auto; }
  .side-toggle { display: inline-grid; place-items: center; }
}

/* ================= dashboard design ================= */
.dash-hero { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; background: linear-gradient(120deg, #0e3d1c, #1d6b33 55%, #2a7d3f); border-radius: var(--r-xl, 22px); padding: 26px 28px; color: #f4f3ed; box-shadow: 0 24px 50px -24px rgba(14, 61, 28, .75); margin-bottom: 18px; }
.dash-hero__greet { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.25rem, 2.4vw, 1.7rem); letter-spacing: -.01em; }
.dash-hero__greet strong { color: #f1deae; }
.dash-hero__date { color: rgba(244, 243, 237, .75); margin-top: 6px; font-size: .92rem; }
.dash-hero__stats { display: flex; gap: 10px; flex-wrap: wrap; }
.dash-chip { display: flex; flex-direction: column; gap: 2px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); border-radius: 14px; padding: 10px 16px; min-width: 92px; backdrop-filter: blur(4px); }
.dash-chip em { font-style: normal; font-size: .66rem; font-weight: 700; letter-spacing: .1em; color: rgba(244, 243, 237, .7); }
.dash-chip b { font-family: var(--f-display); font-weight: 800; font-size: 1.05rem; }
.dash-chip--big { background: rgba(241, 222, 174, .14); border-color: rgba(241, 222, 174, .4); }
.dash-chip--big b { color: #f1deae; font-size: 1.25rem; }
.dash-chip--warn { background: rgba(255, 170, 90, .12); border-color: rgba(255, 170, 90, .35); }
.dash-chip--warn b { color: #ffb86b; }

.dash-cols { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; margin-top: 16px; align-items: stretch; }
.dash-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px; box-shadow: var(--shadow-1); }
.dash-card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.dash-card__head h2 { font-family: var(--f-display); font-weight: 800; font-size: .95rem; letter-spacing: .06em; color: var(--ink-2); }

/* 14-day revenue chart */
.chart { display: flex; align-items: flex-end; gap: 6px; height: 150px; padding-top: 6px; }
.chart__col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; min-width: 0; }
.chart__bar { width: 100%; max-width: 34px; border-radius: 7px 7px 3px 3px; background: linear-gradient(180deg, #4c9a5c, #2e7d3f); box-shadow: 0 8px 16px -8px rgba(46, 125, 50, .55); transition: transform .15s; }
.chart__col:hover .chart__bar { transform: scaleY(1.03); transform-origin: bottom; }
.chart__bar--today { background: linear-gradient(180deg, #e9d49b, #c9a44f); box-shadow: 0 8px 16px -8px rgba(201, 164, 79, .6); }
.chart__bar--empty { background: rgba(46, 125, 50, .14); box-shadow: none; }
.chart__day { font-size: .6rem; font-weight: 700; color: var(--muted); white-space: nowrap; overflow: hidden; max-width: 100%; }
.chart__day--today { color: #a8842f; }

/* top sellers */
.sellers { display: flex; flex-direction: column; gap: 14px; }
.seller__head { display: flex; justify-content: space-between; gap: 10px; font-size: .88rem; }
.seller__head span { font-weight: 700; }
.seller__head b { font-family: var(--f-display); font-size: .92rem; }
.seller__bar { height: 8px; background: rgba(46, 125, 50, .1); border-radius: 99px; overflow: hidden; margin-top: 6px; }
.seller__bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #1d6b33, #4c9a5c); }
.seller__sub { font-size: .72rem; color: var(--muted); margin-top: 3px; }

/* best selling book */
.bestseller { display: flex; align-items: center; gap: 24px; margin-top: 16px; flex-wrap: wrap; }
.bestseller__cover { flex: 0 0 auto; }
.bestseller__body { flex: 1; min-width: 200px; }
.bestseller__body h3 { font-family: var(--f-display); font-weight: 800; font-size: 1.3rem; letter-spacing: -.01em; margin-top: 6px; }
.bestseller__stats { color: var(--ink-2); margin-top: 8px; }
.bestseller__stats strong { color: var(--acc); font-family: var(--f-display); }
.bestseller__badge { display: inline-block; margin-top: 12px; font-family: var(--f-display); font-weight: 800; font-size: .68rem; letter-spacing: .12em; color: #7a5c15; background: linear-gradient(100deg, #e9d49b, #d3af62); border-radius: 999px; padding: 6px 14px; box-shadow: 0 8px 18px -8px rgba(198, 161, 91, .8); }

@media (max-width: 900px) {
  .dash-cols { grid-template-columns: 1fr; }
  .dash-hero { padding: 20px; }
}

/* KPI stat cards */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin: 6px 0 8px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; box-shadow: var(--shadow-1); display: flex; flex-direction: column; gap: 5px; min-height: 92px; }
.kpi strong { font-family: var(--f-display); font-weight: 800; font-size: 1.5rem; letter-spacing: -.01em; line-height: 1.1; }
.kpi span { font-size: .68rem; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.kpi em { font-style: normal; font-size: .78rem; color: var(--ink-2); margin-top: auto; }
.kpi--ok strong { color: var(--acc); }
.kpi--warn strong { color: #c98a2e; }

/* status filter tabs */
.admin-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.admin-tab { border: 1px solid var(--line); background: var(--card); color: var(--ink-2); font-family: var(--f-display); font-weight: 700; font-size: .8rem; letter-spacing: .05em; border-radius: 999px; padding: 8px 16px; cursor: pointer; transition: all .2s; }
.admin-tab span { color: var(--muted); font-weight: 600; }
.admin-tab:hover { border-color: var(--acc); }
.admin-tab.is-active { background: var(--acc); border-color: var(--acc); color: #fff; box-shadow: 0 8px 18px -10px rgba(46, 125, 50, .6); }
.admin-tab.is-active span { color: rgba(255, 255, 255, .85); }

/* receipt row + confirm dialog */
.admin-card__receipt { display: flex; align-items: flex-start; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.adlg { position: fixed; inset: 0; z-index: 2600; display: grid; place-items: center; }
.adlg__scrim { position: absolute; inset: 0; background: rgba(13, 17, 14, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: coFade .2s ease both; }
.adlg__box { position: relative; background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: 0 30px 80px -20px rgba(10, 14, 10, .6); width: min(92vw, 440px); padding: 26px 28px; animation: coPop .25s cubic-bezier(.2, .8, .2, 1) both; }
.adlg__box h3 { font-family: var(--f-display); font-weight: 800; font-size: 1.2rem; letter-spacing: .01em; }
.adlg__body { color: var(--ink-2); margin-top: 10px; line-height: 1.55; font-size: .95rem; }
.adlg__actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; flex-wrap: wrap; }

/* notification bell */
.bell-wrap { position: relative; }
.bell { position: relative; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); display: inline-grid; place-items: center; cursor: pointer; transition: all .2s; }
.bell:hover { border-color: var(--acc); }
.bell svg { width: 20px; height: 20px; fill: var(--ink); }
.bell__badge { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #d64541; color: #fff; font-size: .7rem; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--bg); }
.bell__badge--pulse { animation: bellPulse .5s ease; }
@keyframes bellPulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.45); }
  100% { transform: scale(1); }
}
.bell-drop { position: absolute; right: 0; top: 50px; width: min(92vw, 360px); background: var(--bg); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: 0 30px 70px -20px rgba(10, 14, 10, .55); z-index: 400; overflow: hidden; }
.bell-drop header { font-family: var(--f-display); font-weight: 800; font-size: .78rem; letter-spacing: .1em; padding: 14px 16px 10px; color: var(--muted); }
.bell-drop__empty { padding: 4px 16px 16px; color: var(--ink-2); font-size: .9rem; }
.bell-item { width: 100%; display: flex; flex-direction: column; gap: 3px; padding: 11px 16px; border: 0; border-top: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; font-size: .9rem; }
.bell-item:hover { background: rgba(46, 125, 50, .06); }
.bell-item__main { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.bell-item__id { font-family: var(--f-display); font-weight: 700; font-size: .85rem; }
.bell-item__amt { font-weight: 800; color: var(--acc); }
.bell-item__sub { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.bell-item__who { font-size: .8rem; color: var(--ink-2); }
.bell-item__ago { color: var(--muted); font-size: .74rem; white-space: nowrap; }
.bell-drop__all { width: 100%; border: 0; border-top: 1px solid var(--line-2); background: transparent; padding: 12px 16px; font-family: var(--f-display); font-weight: 700; font-size: .8rem; letter-spacing: .04em; color: var(--acc); cursor: pointer; }
.bell-drop__all:hover { background: rgba(46, 125, 50, .08); }

/* email preview modal */
.emodal { position: fixed; inset: 0; z-index: 2600; display: grid; place-items: center; padding: 18px; }
.emodal__scrim { position: absolute; inset: 0; background: rgba(13, 17, 14, .6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: coFade .2s ease both; }
.emodal__box { position: relative; background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r-xl, 20px); box-shadow: 0 40px 90px -30px rgba(10, 14, 10, .7); width: min(94vw, 620px); max-height: 92vh; display: flex; flex-direction: column; overflow: hidden; animation: coPop .25s cubic-bezier(.2, .8, .2, 1) both; }
.emodal__box > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line-2); }
.emodal__box > header h3 { font-family: var(--f-display); font-weight: 800; font-size: 1.05rem; letter-spacing: .02em; }
.emodal__box > header > div { display: flex; align-items: center; gap: 10px; }
.emodal__x { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); font-size: 1.25rem; display: grid; place-items: center; cursor: pointer; }
.emodal__meta { padding: 14px 22px; border-bottom: 1px dashed var(--line-2); font-size: .86rem; color: var(--ink-2); display: grid; gap: 4px; }
.emodal__meta b { color: var(--ink); }
.emodal__body { padding: 20px 22px; overflow-y: auto; background: #f3f2ec; }
.emodal__foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--line-2); flex-wrap: wrap; }

/* rendered email template preview */
.eml { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 10px 26px -18px rgba(10, 14, 10, .4); }
.eml__head { background: linear-gradient(120deg, #0e3d1c, #1d6b33); color: #f4f3ed; padding: 20px 24px; }
.eml__head strong { font-family: var(--f-display); font-weight: 800; letter-spacing: .04em; font-size: .95rem; display: block; }
.eml__head span { color: #dceadf; font-size: .88rem; }
.eml__body { padding: 18px 24px; color: #222; font-size: .92rem; line-height: 1.6; }
.eml__body ul { list-style: none; margin: 10px 0; padding: 0; }
.eml__body li { margin: 6px 0; }
.eml__meta { font-style: normal; font-size: .78rem; color: var(--muted); }
.eml__foot { border-top: 1px solid var(--line); padding: 12px 24px; font-size: .74rem; color: var(--muted); text-align: center; }

/* search + danger button */
.admin-search { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 9px 16px; font-size: .9rem; color: var(--ink); min-width: 200px; }
.admin-search:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px rgba(46, 125, 50, .15); }
.btn--danger { color: #b3261e; border-color: rgba(179, 38, 30, .45); background: transparent; }
.btn--danger:hover { background: rgba(179, 38, 30, .08); border-color: #b3261e; color: #8f1d16; }

#adminToast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 3000; display: grid; gap: 8px; width: min(92vw, 440px); pointer-events: none; }
.admin-toast { background: #14231a; color: #eaf4ec; border: 1px solid rgba(126, 217, 130, .35); border-radius: 14px; padding: 12px 18px; font-size: .92rem; text-align: center; box-shadow: 0 14px 34px -14px rgba(0, 0, 0, .55); transition: opacity .3s, transform .3s; }
.admin-toast--error { border-color: rgba(255, 138, 128, .5); }
.admin-toast.is-out { opacity: 0; transform: translateY(8px); }
@media (max-width: 640px) {
  .leads-table__head, .leads-table__row { grid-template-columns: 1fr 1fr; }
  .leads-table__head span:nth-child(n+3), .leads-table__row span:nth-child(n+3) { display: none; }
}

/* ---------- PDF files manager ---------- */
.files-table { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--card); }
.files-table__head, .files-table__row { display: grid; grid-template-columns: 1.6fr 1.1fr .9fr 1.3fr; gap: 12px; padding: 13px 16px; align-items: center; }
.files-table__head { background: var(--card-2, var(--bg)); font-family: var(--f-display); font-weight: 800; font-size: .7rem; letter-spacing: .08em; color: var(--muted); border-bottom: 1px solid var(--line); }
.files-table__row { border-top: 1px solid var(--line); font-size: .92rem; }
.files-table__row:first-of-type { border-top: 0; }
.files-table__row > span:first-child small { display: block; font-size: .7rem; letter-spacing: .08em; color: var(--acc-dark); font-weight: 700; margin-top: 2px; }
.files-table__path { font-size: .82rem; color: var(--muted); word-break: break-all; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.files-table__acts { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 760px) {
  .files-table__head, .files-table__row { grid-template-columns: 1.4fr 1fr; }
  .files-table__head span:nth-child(2), .files-table__row > span:nth-child(2) { display: none; }
  .files-table__row { padding: 12px 14px; }
}

/* ---------- drawer ---------- */
/* The drawer element persists on the page from load (it is never removed,
   only toggled), so its CLOSED state must be fully inert: invisible and
   non-interactive. Without this, the scrim stays opaque + blurred and
   blocks every click on the storefront below z-index 220. */
.drawer {
  position: fixed; inset: 0; z-index: 220;
  visibility: hidden;
  pointer-events: none;
  transition: visibility .3s;
}
.drawer.is-open { visibility: visible; pointer-events: auto; }
.drawer__scrim {
  position: absolute; inset: 0; background: rgba(13, 17, 14, .55);
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.drawer.is-open .drawer__scrim { opacity: 1; pointer-events: auto; }
.drawer__panel {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(430px, 100%);
  background: var(--bg); border-left: 1px solid var(--line-2);
  box-shadow: -30px 0 80px -30px rgba(10, 14, 10, .5);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .38s cubic-bezier(.2, .8, .2, 1);
  pointer-events: auto;
}
.drawer.is-open .drawer__panel { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 22px clamp(20px, 3vw, 28px); border-bottom: 1px solid var(--line-2); }
.drawer__head h2 { font-family: var(--f-display); font-weight: 800; font-size: 1.15rem; letter-spacing: .04em; }
.drawer__count { color: var(--acc); }
.drawer__x { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); font-size: 1.3rem; line-height: 1; display: grid; place-items: center; }
.drawer__x:hover { border-color: var(--ink); }
.drawer__body { flex: 1; overflow-y: auto; padding: 20px clamp(20px, 3vw, 28px) 26px; display: flex; flex-direction: column; gap: 16px; }
.drawer__empty { text-align: center; padding: 40px 10px; }
.drawer__empty p { margin-bottom: 16px; color: var(--muted); }
.drawer__items { display: flex; flex-direction: column; gap: 10px; }
.cart-row { display: grid; grid-template-columns: auto 1fr auto auto; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.cart-row__thumb { width: 46px; }
.cart-row__thumb .bk { --w: 46px; pointer-events: none; }
.cart-row__thumb-fallback { font-size: 1.6rem; }
.cart-row__info { display: flex; flex-direction: column; min-width: 0; }
.cart-row__info strong { font-family: var(--f-display); font-weight: 800; font-size: .92rem; line-height: 1.3; }
.cart-row__info span { font-size: .76rem; color: var(--muted); }
.cart-row__price { font-family: var(--f-display); font-weight: 800; }
.cart-row__remove { width: 30px; height: 30px; border-radius: 50%; color: var(--muted); border: 1px solid var(--line); font-size: 1.05rem; display: grid; place-items: center; }
.cart-row__remove:hover { color: #C0492E; border-color: #C0492E; }
.drawer__save { font-size: .84rem; color: var(--acc-dark); background: var(--acc-soft); border-radius: 12px; padding: 10px 14px; }
.upsell { border: 1px dashed rgba(198, 161, 91, .6); background: rgba(198, 161, 91, .07); border-radius: var(--r-md); padding: 16px; }
.upsell h4 { font-family: var(--f-display); font-weight: 800; font-size: .92rem; color: #7A5A17; letter-spacing: .02em; }
.upsell p { font-size: .86rem; color: var(--ink-2); margin: 6px 0 12px; }
.drawer__totals { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line); padding-top: 14px; }
.drawer__totals div { display: flex; justify-content: space-between; font-size: .95rem; color: var(--ink-2); }
.drawer__grand { font-size: 1.15rem !important; color: var(--ink); font-weight: 700; }
.drawer__grand b { font-family: var(--f-display); font-size: 1.5rem; }
.drawer__actions { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }

/* ---------- dialog ---------- */
.dlg { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; }
.dlg__scrim { position: absolute; inset: 0; background: rgba(13, 17, 14, .6); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.dlg__box { position: relative; background: var(--bg); border-radius: var(--r-lg); max-width: 480px; width: 100%; padding: clamp(22px, 3.4vw, 34px); box-shadow: var(--shadow-3); animation: pop .28s cubic-bezier(.2, 1.3, .3, 1) both; }
.dlg__box h3 { font-family: var(--f-display); font-weight: 800; font-size: 1.3rem; letter-spacing: -.01em; }
.dlg__body { color: var(--ink-2); margin: 12px 0 22px; font-size: .98rem; }
.dlg__actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.dlg__actions .btn { flex: 1 1 auto; }

/* ---------- toasts ---------- */
.toast-wrap { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 400; display: flex; flex-direction: column; gap: 10px; width: min(420px, calc(100vw - 32px)); }
.toast { display: flex; gap: 12px; align-items: center; background: var(--ink); color: #F4F3ED; border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow-3); animation: toastIn .3s cubic-bezier(.2, 1.3, .3, 1) both; }
.toast--error { background: #7A2518; }
.toast__icon { flex: 0 0 auto; }
.toast__body { flex: 1; }
.toast__body p { font-size: .93rem; line-height: 1.45; }
.toast__act { font-family: var(--f-display); font-weight: 800; font-size: .8rem; color: #F1DEAE; text-decoration: underline; margin-top: 4px; }
.toast.is-out { opacity: 0; transform: translateY(8px); transition: .3s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

/* narrow/mid windows: slightly smaller covers so two cards per row never
   crowd or clip the cover at the card edge */
@media (min-width: 621px) and (max-width: 900px) {
  .s-card__media { min-height: 196px; padding-top: 20px; }
  .s-card__media .bk { --w: 138px; }
}

/* prevent any element (3D transforms, reveals) from pushing a horizontal
   scrollbar or clipping details at the screen edge on phones */
html, body { overflow-x: clip; }

/* ---------- misc ---------- */
.dev-tag { font-size: .74rem; letter-spacing: .1em; color: #7A5A17; background: rgba(198, 161, 91, .14); border: 1px dashed rgba(198, 161, 91, .5); padding: 6px 10px; border-radius: 8px; display: inline-block; }
.dev-tag--line { margin-top: 16px; color: var(--muted); background: transparent; border-color: var(--line); }
.footer__dev p { font-size: .84rem; color: rgba(244, 242, 234, .6); line-height: 1.6; }
.store-footer { padding-bottom: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1120px) {
  .s-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 980px) {
  .s-grid { grid-template-columns: repeat(2, 1fr); }
  .pview, .bview, .co2 { grid-template-columns: 1fr; }
  .co2 { gap: 18px; }
  .bview__visual { order: 2; }
}
@media (max-width: 620px) {
  .s-grid { grid-template-columns: 1fr; }
  .pview h1 { font-size: 1.9rem; }
  .pview__actions .btn { flex: 1 1 100%; justify-content: center; }
  .gcash { flex-direction: column; align-items: flex-start; }
  .gcash__qr img { width: min(230px, 70vw); }
  .howpay ol { margin-left: 18px; }
  .bundle-teaser__cta { width: 100%; text-align: center; }
  .dlg__actions .btn { flex: 1 1 100%; justify-content: center; }
}
@media (max-width: 520px) {
  /* narrow phones: topbar wraps so the actions row (DEMO MODE · bell · REFRESH) drops below instead of overflowing */
  .admin-topbar { flex-wrap: wrap; row-gap: 8px; padding: 12px 14px; }
  .admin-topbar h1 { font-size: 1.1rem; min-width: 0; }
  .admin-topbar__actions { margin-left: auto; }
}

/* ---- QR Ph scan-to-pay screen (store) ---- */
.qrpay {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 18px auto 0;
  padding: 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(15, 40, 25, 0.14);
  max-width: 320px;
}
.qrpay img {
  display: block;
  padding: 10px;
  border: 1px solid #e7e2d6;
  border-radius: 12px;
  background: #fff;
  width: 220px;
  height: 220px;
}
.qrpay__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  font-size: 0.92rem;
  color: var(--ink-2, #4a4a44);
}
.qrpay__meta b {
  color: var(--ink-1, #1d241d);
  letter-spacing: 0.03em;
}

/* ----- payment verification spinner (Scan to Pay) ----- */
.pay-checking { text-align: center; padding: 16px 8px; }
.pay-checking .spinner,
.spinner {
  width: 34px;
  height: 34px;
  border: 4px solid rgba(15, 122, 90, 0.18);
  border-top-color: #0F7A5A;
  border-radius: 50%;
  margin: 0 auto 12px;
  animation: sflspin 0.8s linear infinite;
}
@keyframes sflspin { to { transform: rotate(360deg); } }
.pay-checking__sub { color: var(--ink-2, #4a4a44); font-size: 0.9rem; margin-top: 4px; line-height: 1.5; }
.pay-notyet { text-align: center; color: var(--ink-2, #4a4a44); line-height: 1.6; margin: 4px 0 0; }
#payCheckRetry { display: inline-flex; align-items: center; gap: 8px; }

/* ----- payment log (admin PAYMENT LOG view) ----- */
.logs-scroll { overflow-x: auto; }
.logs-table { min-width: 980px; display: flex; flex-direction: column; gap: 6px; }
.logs-row {
  display: grid;
  grid-template-columns: 132px 156px 148px 104px 72px 1fr 1.4fr;
  gap: 10px;
  align-items: center;
  padding: 9px 12px;
  background: #fff;
  border: 1px solid #eae5d8;
  border-radius: 12px;
  font-size: 0.84rem;
  color: #4a4a44;
}
.logs-row--head {
  background: #f3efe4;
  border-color: transparent;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: #7a7566;
  font-weight: 700;
}
.logs-row__time { white-space: nowrap; color: #6b6657; }
.logs-row__order { white-space: nowrap; }
.logs-row__amt { font-weight: 700; color: #1d241d; }
.logs-row__ref code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.74rem;
  background: #f4f1e8;
  border: 1px solid #e7e2d4;
  border-radius: 6px;
  padding: 2px 6px;
  color: #5a5342;
  white-space: nowrap;
}
.logs-row__detail { color: #6b6657; line-height: 1.45; }
.logs-row em { color: #b3ad9e; }
.link-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: var(--acc, #0f7a5a);
  font-weight: 700;
  font-size: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.link-btn:hover { color: var(--acc-dark, #0a4a36); }