/* Base layout + components. Rang aur spacing tokens.css se. */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-bg);
}

img, svg { display: block; max-width: 100%; }
a { color: var(--c-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 var(--s3); color: var(--c-ink); }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 var(--s3); }
ul.plain { list-style: none; margin: 0; padding: 0; }
ul.plain li { margin: 0 0 var(--s2); }

:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--c-ink); color: #fff; padding: var(--s2) var(--s3); border-radius: var(--radius-sm);
}
.skip-link:focus { left: 8px; }

.container { width: min(100% - 2 * var(--s5), var(--maxw)); margin-inline: auto; }
.section { padding-block: var(--s7); }
.center { text-align: center; }
.muted { color: var(--c-muted); }
.small { font-size: .9rem; }
.eyebrow { font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-primary); margin-bottom: var(--s3); }
.lead { font-size: 1.125rem; color: var(--c-ink-2); max-width: 60ch; }

/* Icons */
.ic { width: 20px; height: 20px; flex: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--c-line);
}
.bar { display: flex; align-items: center; gap: var(--s5); min-height: 66px; flex-wrap: wrap; padding-block: var(--s2); }

.brand { display: inline-flex; align-items: center; gap: var(--s2); color: var(--c-ink); font-weight: 800; font-size: 1.15rem; }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--c-primary), #7c3aed); color: #fff; font-weight: 800;
}

.nav { display: flex; align-items: center; gap: var(--s4); margin-left: auto; flex-wrap: wrap; }
.nav a { display: inline-flex; align-items: center; gap: var(--s2); color: var(--c-ink-2); font-weight: 600; padding: var(--s2) 0; }
.nav a:hover { color: var(--c-primary); text-decoration: none; }
.nav .new-pill { font-size: .62rem; font-weight: 800; letter-spacing: .04em; background: #fde68a; color: #7c2d12; border-radius: 999px; padding: 1px 6px; }

.lang { display: inline-flex; align-items: center; gap: var(--s2); font-weight: 700; font-size: .95rem; color: var(--c-muted); }
.lang a { color: var(--c-muted); padding: 2px 4px; border-radius: 6px; }
.lang a.active { color: var(--c-primary); background: var(--c-primary-soft); text-decoration: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  padding: 12px 20px; border-radius: var(--radius-sm); font-weight: 700; font-size: 1rem;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--c-primary); color: var(--c-primary-ink); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: #1e40af; }
.btn-ghost { background: transparent; color: var(--c-primary); border-color: var(--c-primary); }
.btn-ghost:hover { background: var(--c-primary-soft); }
.actions { display: flex; gap: var(--s3); flex-wrap: wrap; margin-top: var(--s5); }

/* Hero */
.hero {
  background:
    radial-gradient(900px 400px at 85% -10%, #c7d2fe 0%, transparent 60%),
    radial-gradient(700px 360px at -10% 110%, #fde68a 0%, transparent 55%),
    var(--c-surface);
  border-bottom: 1px solid var(--c-line);
}
.hero-inner { padding-block: var(--s8); }

/* Cards */
.cards { display: grid; gap: var(--s5); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: var(--s5); }
.card {
  display: block; background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--radius); padding: var(--s5); box-shadow: var(--shadow-sm);
  color: var(--c-ink); transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.card p { color: var(--c-muted); margin: 0; }
.card-icon {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--c-primary-soft); color: var(--c-primary); margin-bottom: var(--s4);
}
.card-icon.big { width: 72px; height: 72px; margin-inline: auto; margin-bottom: var(--s5); }
.card-icon.big .ic { width: 36px; height: 36px; }

/* Trust row */
.trust { display: grid; gap: var(--s5); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.trust-item { display: flex; gap: var(--s4); align-items: flex-start; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: var(--s5); }
.trust-item .card-icon { margin: 0; flex: none; }
.trust-item p { color: var(--c-muted); margin: 0; font-size: .95rem; }

/* Footer */
.site-footer { margin-top: var(--s8); background: var(--c-ink); color: #cbd5e1; padding-block: var(--s7); }
.site-footer a { color: #e2e8f0; }
.site-footer .brand { color: #fff; }
.site-footer .muted { color: #94a3b8; }
.footer-grid { display: grid; gap: var(--s6); grid-template-columns: 2fr 1fr; }
.footer-title { font-weight: 700; color: #fff; margin-bottom: var(--s3); }

/* Mobile */
@media (max-width: 720px) {
  .bar { gap: var(--s3); }
  .nav { order: 3; width: 100%; justify-content: space-between; margin-left: 0; border-top: 1px solid var(--c-line); padding-top: var(--s2); }
  .nav a span { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding-block: var(--s6); }
  .hero-inner { padding-block: var(--s6); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ---------- R2: catalog ---------- */
.brand-logo { height: 40px; width: auto; display: block; }
.site-footer .brand-logo { height: 48px; }
.site-header .bar { gap: var(--s4); }
.nav-search { display: flex; align-items: center; border: 1px solid var(--c-line); border-radius: 999px; background: var(--c-bg); padding-left: var(--s3); min-width: 0; }
.nav-search input { border: 0; background: transparent; font: inherit; padding: var(--s2) var(--s2); width: 170px; min-width: 0; outline: none; color: var(--c-ink); }
.nav-search button { border: 0; background: transparent; color: var(--c-ink-2); padding: var(--s2) var(--s3); cursor: pointer; display: inline-flex; }
.nav-search .ic { width: 18px; height: 18px; }

.hero { background: linear-gradient(135deg, #eef2ff 0%, #ffffff 60%); border-bottom: 1px solid var(--c-line); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--s7); align-items: center; padding-block: var(--s7); }
.hero-copy .eyebrow { margin-bottom: var(--s3); }
.hero-photo { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 620 / 826; max-height: 520px; justify-self: center; width: 100%; max-width: 380px; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.section-tight { padding-block: var(--s6); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s4); flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head a { font-weight: 700; display: inline-flex; gap: var(--s2); align-items: center; }
.h4 { font-size: 1.1rem; margin-top: var(--s6); }

.crumbs { display: flex; flex-wrap: wrap; gap: var(--s2); font-size: .9rem; color: var(--c-muted); margin-bottom: var(--s4); }
.crumbs a { color: var(--c-muted); }
.crumbs a:hover { color: var(--c-primary); }
.page-head { margin-bottom: var(--s4); }
.page-head h1 { margin-bottom: var(--s2); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s5); }
.chip { border: 1px solid var(--c-line); background: var(--c-surface); border-radius: 999px; padding: var(--s2) var(--s4); color: var(--c-ink-2); font-weight: 600; font-size: .95rem; }
.chip:hover { border-color: var(--c-primary); color: var(--c-primary); text-decoration: none; }

.toolbar { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: var(--s3); box-shadow: var(--shadow-sm); }
.field-search { flex: 1 1 260px; display: flex; align-items: center; gap: var(--s2); border: 1px solid var(--c-line); border-radius: var(--radius-sm); padding: 0 var(--s3); background: var(--c-bg); }
.field-search input { flex: 1; border: 0; background: transparent; font: inherit; padding: var(--s3) 0; outline: none; min-width: 0; }
.field-sort { display: flex; align-items: center; gap: var(--s2); }
.field-sort label { color: var(--c-muted); font-size: .9rem; white-space: nowrap; }
.field-sort select { font: inherit; padding: var(--s2) var(--s3); border: 1px solid var(--c-line); border-radius: var(--radius-sm); background: var(--c-surface); color: var(--c-ink); }
.count { margin: var(--s4) 0 var(--s3); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.grid { display: grid; gap: var(--s5); grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.pcard { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; }
.pcard:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.pcard-media { display: block; aspect-ratio: 1 / 1; background: var(--c-primary-soft); }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard-media .ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--c-primary); }
.pcard-media .ph .ic { width: 56px; height: 56px; }
.pcard-body { padding: var(--s4); display: flex; flex-direction: column; gap: var(--s2); flex: 1; }
.pcard-body h3 { margin: 0; font-size: 1.1rem; }
.pcard-body h3 a { color: var(--c-ink); }
.pcard-body p { margin: 0; }
.pcard-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding-top: var(--s3); }
.price { font-weight: 800; font-size: 1.15rem; color: var(--c-ink); }
.badge { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; align-self: flex-start; }
.badge-lic { background: #fef3c7; color: #92400e; }
.pcard-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.pcard-cat { font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--c-ink-2, #475569); }
.badge-file { background: var(--c-primary-soft); color: var(--c-primary); }
.btn-small { padding: var(--s2) var(--s3); font-size: .9rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.pager { display: flex; align-items: center; justify-content: center; gap: var(--s4); margin-top: var(--s6); }
.empty { text-align: center; padding: var(--s7) var(--s4); background: var(--c-surface); border: 1px dashed var(--c-line); border-radius: var(--radius); color: var(--c-muted); }
.empty .ic { width: 40px; height: 40px; color: var(--c-muted); }

.product { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s7); align-items: start; }
.product-hero { border-radius: var(--radius); overflow: hidden; background: var(--c-primary-soft); aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; }
.product-hero img { width: 100%; height: 100%; object-fit: cover; }
.product-hero .ph { color: var(--c-primary); }
/* Gallery Pro: thumbnail poora dikhe (crop nahi). Sirf is class par. */
.product-hero--full { aspect-ratio: 1200 / 896; }
.product-hero--full img { height: 100%; object-fit: contain; }
.product-hero .ph .ic { width: 96px; height: 96px; }
.product-shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); margin-top: var(--s3); }
.product-shots img { width: 100%; border-radius: var(--radius-sm); border: 1px solid var(--c-line); }
.product-info h1 { margin: var(--s3) 0; }
.product-info .lead { margin-bottom: var(--s5); }
.facts { display: grid; gap: var(--s3); margin: 0 0 var(--s5); border-top: 1px solid var(--c-line); }
.facts > div { display: grid; grid-template-columns: 130px 1fr; gap: var(--s3); padding-top: var(--s3); border-bottom: 1px solid var(--c-line); padding-bottom: var(--s3); }
.facts dt { color: var(--c-muted); font-weight: 600; }
.facts dd { margin: 0; color: var(--c-ink); }
.buybox { display: flex; flex-wrap: wrap; gap: var(--s4); justify-content: space-between; align-items: flex-start; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: var(--s5); box-shadow: var(--shadow-sm); margin-bottom: var(--s5); }
.buybox p { margin: 0; }
.price-big { font-size: 2rem; font-weight: 800; color: var(--c-ink); }
.buy-actions { display: flex; flex-direction: column; gap: var(--s2); min-width: 220px; }
.buy-actions .btn { width: 100%; justify-content: center; }
.checks { list-style: none; padding: 0; margin: 0 0 var(--s3); display: grid; gap: var(--s2); }
.checks li { display: flex; gap: var(--s2); align-items: flex-start; }
.checks .ic { color: var(--c-ok); flex: none; margin-top: 3px; }
.product-body { display: grid; gap: var(--s5); margin-top: var(--s7); }
.block { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: var(--s5); }
.block h2 { font-size: 1.3rem; display: flex; align-items: center; gap: var(--s2); }
.block h2 .ic { color: var(--c-primary); width: 22px; height: 22px; }
.block p { color: var(--c-ink-2); }
.steps { padding-left: 1.25rem; margin: 0; display: grid; gap: var(--s2); color: var(--c-ink-2); }
.showcase-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.showcase-strip img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-sm); }

@media (max-width: 860px) {
  .hero-grid, .product { grid-template-columns: 1fr; gap: var(--s5); }
  .hero-photo { max-width: 300px; }
  .nav-search { order: 4; width: 100%; }
  .nav-search input { flex: 1; width: auto; }
  .facts > div { grid-template-columns: 110px 1fr; }
  .showcase-strip { grid-template-columns: 1fr 1fr; }
  .showcase-strip img:last-child { display: none; }
  .toolbar .btn { width: 100%; justify-content: center; }
}

/* ---------- R3: auth, cart, checkout, orders ---------- */
.narrow { max-width: 460px; margin-inline: auto; }
.center-text { text-align: center; }
.center-actions { justify-content: center; }
.alert { border-radius: var(--radius-sm); padding: var(--s3) var(--s4); margin: var(--s3) 0; border: 1px solid transparent; font-weight: 600; }
.alert p { margin: 0; }
.alert-ok { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.alert-warn { background: #fff7ed; color: #9a3412; border-color: #fed7aa; }
.flash-wrap { padding-top: var(--s4); }
.form { display: grid; gap: var(--s4); }
.card-form { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: var(--s5); box-shadow: var(--shadow-sm); }
.field { display: grid; gap: var(--s2); }
.field label { font-weight: 700; color: var(--c-ink-2); }
.field input { font: inherit; padding: var(--s3); border: 1px solid var(--c-line); border-radius: var(--radius-sm); background: var(--c-bg); color: var(--c-ink); }
.field input:focus, .check input:focus { outline: 2px solid var(--c-primary); outline-offset: 1px; }
.check { display: flex; gap: var(--s2); align-items: flex-start; font-size: .95rem; color: var(--c-ink-2); }
.check input { margin-top: 4px; }
.btn-block { width: 100%; justify-content: center; }
.btn-large { padding: var(--s4) var(--s6); font-size: 1.1rem; }
.inline-form { display: inline; margin: 0; }
.inline-form .btn { margin-top: var(--s2); }
.cart { display: grid; grid-template-columns: 1fr 340px; gap: var(--s5); align-items: start; }
.cart-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.cart-row { display: flex; justify-content: space-between; gap: var(--s4); background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: var(--s4); align-items: center; }
.cart-row.is-off { opacity: .6; }
.cart-info { display: grid; gap: 4px; }
.cart-name { font-weight: 700; color: var(--c-ink); }
.cart-side { display: flex; flex-direction: column; align-items: flex-end; gap: var(--s2); }
.summary { display: grid; gap: var(--s4); position: sticky; top: var(--s4); }
.sum-row { display: flex; justify-content: space-between; margin: 0; font-size: 1.05rem; }
.summary p { margin: 0; }
.badge-ok { background: #dcfce7; color: #166534; }
.badge-off { background: #f1f5f9; color: #475569; }
.notice { margin-top: var(--s5); }
.table { width: 100%; border-collapse: collapse; background: var(--c-surface); margin-top: var(--s5); }
.table th, .table td { text-align: left; padding: var(--s3); border-bottom: 1px solid var(--c-line); }
.table .num { text-align: right; white-space: nowrap; }
.count-dot { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--c-accent); color: #111827; font-size: .75rem; font-weight: 800; margin-left: 2px; }
.logout-form { margin: 0; }
.logout-form button { display: inline-flex; align-items: center; gap: var(--s2); background: none; border: 0; color: var(--c-ink-2); font: inherit; font-weight: 600; cursor: pointer; padding: var(--s2) 0; }
.logout-form button:hover { color: var(--c-primary); }
.invoice { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); padding: var(--s6); max-width: 820px; }
.invoice-head { display: flex; justify-content: space-between; gap: var(--s5); flex-wrap: wrap; }
.invoice-head h1 { font-size: 1.6rem; }
.invoice-seller { text-align: right; }
.invoice-seller p { margin: 2px 0; }
.invoice .block { background: var(--c-bg); border: 0; margin-top: var(--s5); }
@media print {
  .site-header, .site-footer, .flash-wrap, .crumbs { display: none !important; }
  body, .invoice { background: #fff; }
  .invoice { border: 0; box-shadow: none; }
}
@media (max-width: 860px) {
  .cart { grid-template-columns: 1fr; }
  .summary { position: static; }
  .invoice-head { flex-direction: column; }
  .invoice-seller { text-align: left; }
}

/* ---------- R4: customer account ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: var(--s2); margin: 0 0 var(--s5); border-bottom: 1px solid var(--c-line); }
.tab { display: inline-flex; align-items: center; gap: var(--s2); padding: var(--s3) var(--s4); color: var(--c-ink-2); border-bottom: 3px solid transparent; margin-bottom: -1px; font-weight: 600; }
.tab:hover { text-decoration: none; color: var(--c-primary); }
.tab.is-active { color: var(--c-primary); border-bottom-color: var(--c-primary); }
.tab svg { width: 18px; height: 18px; }
.order-card, .activation-card { margin-bottom: var(--s4); }
.order-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s3); }
.order-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-top: var(--s3); padding-top: var(--s3); border-top: 1px solid var(--c-line); }
.plain-list { margin: 0; padding-left: var(--s4); color: var(--c-ink-2); }
.item-actions { display: flex; flex-wrap: wrap; gap: var(--s2); justify-content: flex-end; margin-top: var(--s2); }
.steps { margin: 0; padding-left: var(--s5); color: var(--c-ink-2); display: grid; gap: var(--s2); }
.reset-box { margin-top: var(--s4); border-top: 1px solid var(--c-line); padding-top: var(--s3); }
.reset-box summary { cursor: pointer; font-weight: 600; color: var(--c-primary); }
.reset-box form { margin-top: var(--s3); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5); align-items: start; }
.table-wrap { overflow-x: auto; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: var(--s3) var(--s4); border-bottom: 1px solid var(--c-line); }
.table th { color: var(--c-muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; }
.right-text { text-align: right; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.activation-card code { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .04em; }
@media (max-width: 720px) {
  .grid-2 { grid-template-columns: 1fr; }
  .item-actions { justify-content: flex-start; }
}

/* Product share bar */
.share { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; margin: var(--s4) 0; }
.share [hidden] { display: none !important; }

/* Card footer: price left, Share + View details side by side on the right (wraps under the price on narrow cards) */
.pcard-foot { flex-wrap: wrap; }
.pcard-actions { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; justify-content: flex-end; }
.pcard-actions .btn-small { padding: 8px 12px; font-size: .88rem; white-space: nowrap; }

/* Share popover (card + product page): small menu of apps under the Share button */
.share-wrap { position: relative; display: inline-flex; }
.share-pop {
  position: absolute; z-index: 30; right: 0; bottom: calc(100% + 8px); min-width: 210px; max-height: 320px; overflow-y: auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: var(--s2);
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--radius-sm); box-shadow: var(--shadow);
}
.share-pop[hidden] { display: none; }
.share-pop a, .share-pop button {
  display: block; padding: 8px 10px; border: 0; border-radius: 8px; background: none; text-align: left;
  font: inherit; font-size: .88rem; font-weight: 600; color: var(--c-ink-2); cursor: pointer;
}
.share-pop a:hover, .share-pop button:hover, .share-pop a:focus-visible, .share-pop button:focus-visible { background: var(--c-primary-soft); color: var(--c-primary); text-decoration: none; }
.share-pop button[hidden] { display: none; }
@media (max-width: 560px) { .pcard-actions { width: 100%; justify-content: stretch; } .pcard-actions > * { flex: 1; } .pcard-actions .btn-small { width: 100%; } .share-pop { left: 0; right: auto; } }

/* legal pages (/terms, /privacy, /refund) */
.legal { max-width: 800px; }
.legal h2 { font-size: 1.15rem; margin: var(--s6) 0 var(--s2); }
.legal p { line-height: 1.7; }
.legal-tabs { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s5); }
.legal-tabs a { padding: 6px 14px; border: 1px solid var(--c-line); border-radius: 999px; text-decoration: none; color: var(--c-ink-2); font-weight: 600; font-size: .92rem; }
.legal-tabs a[aria-current="page"] { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }
