/* =========================================================================
   store.css — The Clark Technique members' store
   Design system: characterful grotesque display + technical body + mono data.
   The signature is the dual-currency price: cash and credits are both
   first-class, typed as distinct mono tokens so members read the real cost
   of each payment path before committing.
   ========================================================================= */

:root {
    /* Palette — grounded clinical-evergreen, not the cream/terracotta default */
    --paper:   #F3F4F1;   /* cool porcelain page */
    --card:    #FFFFFF;
    --ink:     #14181A;   /* near-black, cool cast */
    --ink-60:  #55605C;
    --ink-40:  #8A938E;
    --pine:    #1F4D3D;   /* brand evergreen — calm, precise */
    --pine-90: #24594700;
    --pine-tint:#E7EEE9;
    --sage:    #8BA79A;
    --amber:   #C98A15;   /* credits currency accent */
    --amber-tint:#F6ECD4;
    --line:    #DCE1DC;
    --danger:  #A23A2E;
    --ok:      #2C6E49;

    --radius:  14px;
    --radius-sm: 9px;
    --shadow:  0 1px 2px rgba(20,24,26,.05), 0 8px 30px rgba(20,24,26,.06);
    --shadow-lg: 0 24px 60px rgba(20,24,26,.18);

    --font-display: "Bricolage Grotesque", system-ui, sans-serif;
    --font-body: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
    --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;

    --maxw: 1180px;
}

* { box-sizing: border-box; }

/* The `hidden` attribute must win over class-level display rules (e.g. the
   modal host's display:flex), otherwise "hidden" overlays still paint. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; margin: 0; }

button { font-family: inherit; cursor: pointer; }

.skip-link {
    position: absolute; left: -999px; top: 0;
    background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 0 0 8px 0; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---- Top bar ----------------------------------------------------------- */
.store-topbar {
    position: sticky; top: 0; z-index: 40;
    background: color-mix(in srgb, var(--paper) 82%, transparent);
    backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--line);
}
.topbar-inner {
    max-width: var(--maxw); margin: 0 auto; padding: 12px 22px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark {
    width: 12px; height: 22px; border-radius: 3px; align-self: center;
    background: linear-gradient(var(--pine), #123528);
    box-shadow: inset 0 0 0 3px rgba(255,255,255,.35);
}
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; }
.brand-sub {
    font-family: var(--font-mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .18em;
    color: var(--pine); border: 1px solid var(--line); padding: 2px 6px; border-radius: 5px;
}
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.library-link {
    color: var(--ink-60); text-decoration: none; font-size: .9rem; font-weight: 500;
    padding: 6px 10px; border-radius: 8px;
}
.library-link:hover { color: var(--pine); background: var(--pine-tint); }

.wallet-chip {
    display: inline-flex; align-items: baseline; gap: 6px;
    background: var(--amber-tint); border: 1px solid color-mix(in srgb, var(--amber) 30%, var(--line));
    padding: 6px 11px; border-radius: 999px;
}
.wallet-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); align-self: center; }
.wallet-amount { font-family: var(--font-mono); font-weight: 600; font-size: .9rem; color: #6b4a06; }
.wallet-label { font-size: .72rem; color: #8a6712; text-transform: uppercase; letter-spacing: .08em; }

.cart-button {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--ink); color: #fff; border: 0; padding: 9px 15px; border-radius: 999px;
    font-weight: 500; position: relative; transition: transform .12s ease, background .2s ease;
}
.cart-button:hover { background: #000; }
.cart-button.pulse { animation: pulse .38s ease; }
.cart-icon { font-size: 1rem; }
.cart-count {
    background: var(--amber); color: #221803; font-family: var(--font-mono); font-weight: 600;
    font-size: .74rem; min-width: 20px; height: 20px; border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center; padding: 0 5px;
}
@keyframes pulse { 0%{transform:scale(1)} 40%{transform:scale(1.09)} 100%{transform:scale(1)} }

/* ---- Intro ------------------------------------------------------------- */
.store-main { max-width: var(--maxw); margin: 0 auto; padding: 40px 22px 90px; }
.store-intro { max-width: 720px; margin-bottom: 30px; }
.eyebrow {
    font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .2em; font-size: .72rem;
    color: var(--pine); margin: 0 0 14px;
}
.store-title { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 800; line-height: 1.02; }
.store-title .hl { color: var(--pine); }
.store-lede { font-size: 1.06rem; color: var(--ink-60); margin: 14px 0 0; max-width: 60ch; }

/* ---- Category rail ----------------------------------------------------- */
.cat-rail {
    display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 26px;
    border-bottom: 1px solid var(--line); padding-bottom: 18px;
}
.cat-pill {
    background: transparent; border: 1px solid var(--line); color: var(--ink-60);
    padding: 7px 14px; border-radius: 999px; font-size: .88rem; transition: all .16s ease;
}
.cat-pill:hover { border-color: var(--pine); color: var(--pine); }
.cat-pill.active { background: var(--pine); border-color: var(--pine); color: #fff; }

/* ---- Catalog ----------------------------------------------------------- */
.catalog-loading, .catalog-empty { padding: 60px 0; text-align: center; color: var(--ink-40); }
.catalog-empty h2 { font-size: 1.4rem; margin-bottom: 8px; color: var(--ink); }
.spinner {
    display: inline-block; width: 15px; height: 15px; border: 2px solid var(--line);
    border-top-color: var(--pine); border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -2px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.catalog-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 20px;
}

.product-card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; display: flex; flex-direction: column;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--pine) 30%, var(--line)); }

.pc-media {
    aspect-ratio: 4 / 3; background: var(--pine-tint) center/cover no-repeat;
    display: flex; align-items: center; justify-content: center; position: relative;
}
.pc-media .pc-placeholder { font-family: var(--font-display); font-weight: 800; font-size: 2rem; color: var(--sage); }
.pc-type-tag {
    position: absolute; top: 10px; left: 10px;
    font-family: var(--font-mono); font-size: .64rem; text-transform: uppercase; letter-spacing: .12em;
    background: rgba(20,24,26,.72); color: #fff; padding: 3px 8px; border-radius: 6px;
}
.pc-body { padding: 15px 16px 17px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.pc-name { font-family: var(--font-display); font-weight: 600; font-size: 1.06rem; line-height: 1.2; }
.pc-desc { font-size: .86rem; color: var(--ink-60); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }

/* Signature: dual-currency price stack */
.price-stack { display: flex; flex-direction: column; gap: 3px; }
.price-token { font-family: var(--font-mono); font-weight: 600; line-height: 1; display: inline-flex; align-items: baseline; gap: 4px; }
.price-cash { font-size: 1.16rem; color: var(--ink); }
.price-cash .cur { font-size: .74rem; color: var(--ink-40); font-weight: 500; }
.price-credits { font-size: .96rem; color: #6b4a06; background: var(--amber-tint); padding: 2px 7px; border-radius: 6px; align-self: flex-start; }
.price-credits .unit { font-size: .66rem; letter-spacing: .05em; text-transform: uppercase; color: #8a6712; }
.price-join { font-family: var(--font-mono); font-size: .7rem; color: var(--ink-40); margin: 1px 0; }
.price-free { font-family: var(--font-mono); font-weight: 600; color: var(--ok); font-size: 1.05rem; }

.pc-add {
    background: var(--pine); color: #fff; border: 0; border-radius: 9px; padding: 9px 13px;
    font-weight: 500; font-size: .9rem; white-space: nowrap; transition: background .15s ease;
}
.pc-add:hover { background: #163a2d; }
.pc-add:disabled { background: var(--ink-40); cursor: not-allowed; }
.pc-variant-note { font-size: .78rem; color: var(--pine); }
.pc-oos { font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--danger); }

/* ---- Orders teaser ----------------------------------------------------- */
.orders-teaser { margin-top: 40px; }
.link-btn { background: none; border: 0; color: var(--pine); font-weight: 500; font-size: .95rem; padding: 4px 0; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: #163a2d; }

/* ---- Cart drawer ------------------------------------------------------- */
.drawer-scrim { position: fixed; inset: 0; background: rgba(20,24,26,.42); z-index: 50; }
.cart-drawer {
    position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 92vw); z-index: 60;
    background: var(--paper); border-left: 1px solid var(--line); box-shadow: var(--shadow-lg);
    transform: translateX(100%); transition: transform .26s cubic-bezier(.2,.7,.2,1);
    display: flex; flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.3rem; font-weight: 800; }
.drawer-close { background: none; border: 0; font-size: 1.8rem; line-height: 1; color: var(--ink-60); padding: 0 4px; }
.drawer-close:hover { color: var(--ink); }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 22px; }
.cart-empty { text-align: center; color: var(--ink-40); padding: 50px 0; }

.cart-lines { list-style: none; margin: 0; padding: 0; }
.cart-line { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cl-thumb { width: 56px; height: 56px; border-radius: 8px; background: var(--pine-tint) center/cover; flex: none; }
.cl-main { flex: 1; min-width: 0; }
.cl-name { font-weight: 500; font-size: .95rem; }
.cl-price { font-family: var(--font-mono); font-size: .82rem; color: var(--ink-60); margin-top: 2px; }
.variant-terms {
    font-family: var(--font-mono); font-size: .72rem; color: var(--pine);
    margin-top: 3px;
}

.pay-toggle {
    display: inline-flex; margin-top: 8px; border: 1px solid var(--line);
    border-radius: 8px; overflow: hidden; background: var(--card);
}
.pay-opt {
    background: transparent; border: 0; padding: 5px 11px;
    font-family: var(--font-mono); font-size: .78rem; color: var(--ink-40);
    transition: background .14s ease, color .14s ease;
}
.pay-opt + .pay-opt { border-left: 1px solid var(--line); }
.pay-opt:hover { color: var(--ink); }
.pay-opt.on { background: var(--pine); color: #fff; }
.pay-opt.on[data-pay="credits"] { background: var(--amber); color: #221803; }

.cl-controls { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.qty-btn { width: 26px; height: 26px; border: 1px solid var(--line); background: var(--card); border-radius: 7px; font-size: 1rem; line-height: 1; color: var(--ink); }
.qty-btn:hover { border-color: var(--pine); color: var(--pine); }
.qty-val { font-family: var(--font-mono); font-weight: 600; min-width: 22px; text-align: center; }
.cl-remove { margin-left: auto; background: none; border: 0; color: var(--ink-40); font-size: .8rem; text-decoration: underline; text-underline-offset: 2px; }
.cl-remove:hover { color: var(--danger); }

.drawer-foot { border-top: 1px solid var(--line); padding: 18px 22px 22px; background: var(--card); }
.totals { margin: 0 0 12px; }
.totals .row { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 0; }
.totals .row dt { color: var(--ink-60); font-size: .9rem; }
.totals .row dd { margin: 0; font-family: var(--font-mono); font-size: .92rem; }
.totals .row.grand dt { font-weight: 600; color: var(--ink); font-size: 1rem; }
.totals .row.grand dd { font-weight: 600; font-size: 1.05rem; }
.totals .credits-line dd { color: #6b4a06; }

.mode-readout {
    font-family: var(--font-mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
    text-align: center; padding: 8px; margin-bottom: 12px; border-radius: 8px;
    background: var(--pine-tint); color: var(--pine); border: 1px dashed color-mix(in srgb, var(--pine) 35%, var(--line));
}
.mode-readout[data-mode="hybrid"] { background: linear-gradient(90deg, var(--pine-tint), var(--amber-tint)); }
.mode-readout[data-mode="credits"] { background: var(--amber-tint); color: #6b4a06; border-color: color-mix(in srgb, var(--amber) 40%, var(--line)); }
.mode-readout[data-mode="free"] { background: #E4F0E9; color: var(--ok); }

/* ---- Buttons ----------------------------------------------------------- */
.btn-primary { background: var(--pine); color: #fff; border: 0; border-radius: 10px; padding: 13px 18px; font-weight: 600; font-size: 1rem; transition: background .15s ease; }
.btn-primary:hover { background: #163a2d; }
.btn-primary:disabled { background: var(--ink-40); cursor: not-allowed; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); border-radius: 10px; padding: 12px 18px; font-weight: 500; }
.btn-ghost:hover { border-color: var(--pine); color: var(--pine); }

/* ---- Modal host (checkout / product / orders) -------------------------- */
.modal-host { position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-start; justify-content: center; padding: 40px 18px; overflow-y: auto; background: rgba(20,24,26,.5); }
.modal-card { background: var(--paper); width: min(560px, 100%); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; margin: auto; }
.modal-card.wide { width: min(720px, 100%); }
.modal-top { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.modal-top h2 { font-size: 1.35rem; font-weight: 800; }
.modal-x { background: none; border: 0; font-size: 1.8rem; line-height: 1; color: var(--ink-60); }
.modal-x:hover { color: var(--ink); }
.modal-inner { padding: 22px 24px 26px; }

/* Checkout specifics */
.co-section { margin-bottom: 22px; }
.co-section h3 { font-family: var(--font-body); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-40); margin-bottom: 10px; }
.co-summary { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: .82rem; color: var(--ink-60); margin-bottom: 5px; }
.field input, .field select, .field textarea {
    width: 100%; font-family: inherit; font-size: .95rem; padding: 10px 12px;
    border: 1px solid var(--line); border-radius: 9px; background: var(--card); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid color-mix(in srgb, var(--pine) 40%, transparent); border-color: var(--pine); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
/* ---- Live shipping rate picker ---------------------------------------- */
.rate-opt {
    display: flex; align-items: center; gap: 11px; padding: 11px 13px;
    border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px;
    background: var(--card); cursor: pointer; transition: border-color .14s ease;
}
.rate-opt:hover { border-color: color-mix(in srgb, var(--pine) 40%, var(--line)); }
.rate-opt.on { border-color: var(--pine); box-shadow: inset 0 0 0 1px var(--pine); }
.rate-opt input { width: auto; margin: 0; flex: none; }
.rate-main { flex: 1; min-width: 0; }
.rate-name { display: block; font-weight: 500; font-size: .93rem; }
.rate-eta { display: block; font-size: .8rem; color: var(--ink-60); margin-top: 2px; }
.rate-price { font-family: var(--font-mono); font-weight: 600; font-size: .95rem; white-space: nowrap; }
.rate-badge {
    display: inline-block; margin-left: 7px; font-family: var(--font-mono);
    font-size: .6rem; text-transform: uppercase; letter-spacing: .1em;
    background: var(--pine-tint); color: var(--pine); padding: 2px 6px; border-radius: 4px;
}
.rate-badge.free { background: #E4F0E9; color: var(--ok); }

#dropin-container { margin: 6px 0 4px; }
.co-note { font-size: .8rem; color: var(--ink-40); margin-top: 6px; }
.co-error { background: #F6E4E1; border: 1px solid color-mix(in srgb, var(--danger) 30%, var(--line)); color: var(--danger); padding: 10px 12px; border-radius: 9px; font-size: .88rem; margin-bottom: 14px; }
.address-choice { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; margin-bottom: 8px; background: var(--card); }
.address-choice input { width: auto; }

/* Order history / detail */
.order-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.order-row:last-child { border-bottom: 0; }
.order-num { font-family: var(--font-mono); font-weight: 600; }
.order-meta { font-size: .82rem; color: var(--ink-60); }
.status-badge { font-family: var(--font-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; padding: 3px 8px; border-radius: 6px; background: var(--pine-tint); color: var(--pine); }
.status-badge.paid, .status-badge.completed, .status-badge.fulfilled { background: #E4F0E9; color: var(--ok); }
.status-badge.pending, .status-badge.processing { background: var(--amber-tint); color: #6b4a06; }
.status-badge.cancelled, .status-badge.refunded { background: #F0E2E0; color: var(--danger); }

/* ---- Toasts ------------------------------------------------------------ */
.toast-host { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 10px; font-size: .9rem; box-shadow: var(--shadow-lg); animation: rise .28s ease; }
.toast.ok { background: var(--ok); }
.toast.err { background: var(--danger); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---- Responsive -------------------------------------------------------- */
@media (max-width: 620px) {
    .brand-name { display: none; }
    .wallet-label { display: none; }
    .field-row { grid-template-columns: 1fr; }
    .store-main { padding: 28px 16px 80px; }
    .topbar-inner { padding: 10px 16px; }
}

/* ---- A11y -------------------------------------------------------------- */
:focus-visible { outline: 2px solid var(--pine); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* =========================================================================
   Store shopper accounts — guest mode, account menu, upgrade strip,
   sign-up prompt. Uses the tokens defined in :root above.
   ========================================================================= */

/* ---- Guest top bar ---------------------------------------------------- */
.guest-signup-link {
    text-decoration: none; font-size: .9rem; font-weight: 600;
    color: var(--pine); border: 1px solid color-mix(in srgb, var(--pine) 45%, var(--line));
    padding: 7px 13px; border-radius: 999px; white-space: nowrap;
    transition: background .15s ease, color .15s ease;
}
.guest-signup-link:hover { background: var(--pine); color: #fff; }

.guest-foot { margin-top: 40px; color: var(--ink-60); font-size: .95rem; }
.guest-foot a { color: var(--pine); font-weight: 500; text-underline-offset: 3px; }

/* ---- Account menu (native <details>, no JS required to open) ---------- */
.account-menu { position: relative; }
.account-menu summary {
    list-style: none; display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
    padding: 5px 11px 5px 5px; border: 1px solid var(--line); border-radius: 999px;
    background: var(--card); font-size: .9rem; font-weight: 500; color: var(--ink);
    user-select: none;
}
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu summary:hover,
.account-menu[open] summary { border-color: var(--pine); }
.account-initial {
    width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: var(--pine-tint); color: var(--pine); font-family: var(--font-display); font-weight: 800; font-size: .85rem;
}
.account-pop {
    position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; z-index: 45;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg); padding: 6px; display: flex; flex-direction: column;
}
.account-hello {
    margin: 4px 10px 6px; font-size: .78rem; color: var(--ink-40);
    font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .08em;
}
.account-pop a,
.account-pop button {
    display: block; width: 100%; text-align: left; background: none; border: 0;
    padding: 9px 10px; border-radius: 7px; font-size: .92rem; color: var(--ink); text-decoration: none;
}
.account-pop a:hover,
.account-pop button:hover { background: var(--pine-tint); color: var(--pine); }
.account-pop .account-signout { border-top: 1px solid var(--line); margin-top: 4px; border-radius: 0 0 7px 7px; color: var(--ink-60); }
.account-pop .account-signout:hover { color: var(--danger); background: #F6E4E1; }

/* ---- Upgrade strip (store-only shoppers) ------------------------------ */
.upgrade-strip {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    background: linear-gradient(90deg, var(--pine-tint), var(--card));
    border: 1px solid color-mix(in srgb, var(--pine) 22%, var(--line));
    border-radius: var(--radius); padding: 12px 14px 12px 18px; margin: -10px 0 28px;
}
.upgrade-strip p { margin: 0; font-size: .92rem; color: var(--ink-60); }
.upgrade-strip p strong { color: var(--ink); font-weight: 600; }
.upgrade-strip-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.upgrade-strip-cta {
    background: var(--pine); color: #fff; text-decoration: none; font-size: .88rem; font-weight: 500;
    padding: 8px 13px; border-radius: 9px; white-space: nowrap;
}
.upgrade-strip-cta:hover { background: #163a2d; }
.upgrade-strip-x { background: none; border: 0; font-size: 1.4rem; line-height: 1; color: var(--ink-40); padding: 2px 6px; }
.upgrade-strip-x:hover { color: var(--ink); }

/* ---- Guest sign-up prompt (inside .modal-card) ------------------------ */
.signup-product {
    display: flex; align-items: center; gap: 12px; padding: 12px; margin-bottom: 16px;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.signup-perks { list-style: none; margin: 0 0 18px; padding: 0; }
.signup-perks li { position: relative; padding: 6px 0 6px 22px; font-size: .93rem; color: var(--ink-60); }
.signup-perks li::before {
    content: ''; position: absolute; left: 2px; top: 12px; width: 9px; height: 9px;
    border-radius: 2px; background: var(--pine); box-shadow: inset 0 0 0 2px rgba(255,255,255,.4);
}
a.btn-primary, a.btn-ghost { display: block; text-align: center; text-decoration: none; }
.signup-signin { margin-top: 10px; }

/* ---- Responsive additions -------------------------------------------- */
@media (max-width: 620px) {
    .account-word { display: none; }
    .account-menu summary { padding: 4px; }
    .guest-signup-link { padding: 6px 10px; font-size: .85rem; }
    .upgrade-strip { flex-direction: column; align-items: flex-start; margin-top: -4px; }
    .upgrade-strip-actions { width: 100%; justify-content: space-between; }
}
@media (max-width: 400px) {
    .cart-word { display: none; }
}
