/* BuddyMarket Design System — Brand palette derived from official logo (#0B0516 / #6D28D9 -> #DB2777)
   100% self-hosted CSS, zero external CDN/font dependencies, mobile-first (70%+ Direct traffic). */

:root {
  --bg: #f5f5fa;
  --surface: #ffffff;
  --surface-soft: #f3effe;
  --surface-ink: #120926;
  --text: #151026;
  --text-secondary: #5f5978;
  --text-muted: #8c86a3;
  --border: #e8e5f2;
  --brand-violet: #6d28d9;
  --brand-magenta: #db2777;
  --brand-gradient: linear-gradient(135deg, #6d28d9 0%, #db2777 100%);
  --brand-gradient-hover: linear-gradient(135deg, #5b21b6 0%, #be185d 100%);
  --success: #0f9f6e;
  --warning: #d97706;
  --danger: #dc2626;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(21, 16, 38, 0.045);
  --shadow-md: 0 10px 28px rgba(21, 16, 38, 0.09);
  --container: 1320px;
  --font-sans: "Onest", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.48;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-bottom: 64px; /* Mobile bottom tab bar clearance */
}
@media (min-width: 900px) { body { padding-bottom: 0; } }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select { font-family: inherit; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 14px; }
@media (min-width: 768px) { .container { padding-inline: 24px; } }
.tabular { font-variant-numeric: tabular-nums; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Deferred rendering strictly below initial fold (Modern Web Guidance) */
.deferred-section {
  content-visibility: auto;
  contain-intrinsic-size: auto none auto 520px;
}

/* ---------- HEADER ---------- */
.top-strip {
  background: var(--surface-ink);
  color: rgba(255, 255, 255, 0.88);
  font-size: 12.5px;
  padding: 6px 0;
}
.top-strip__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.top-strip__links { display: flex; gap: 16px; flex-wrap: wrap; }
.top-strip__links a:hover { color: #fff; text-decoration: underline; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 0;
}
.brand-link {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.brand-logo {
  width: 40px; height: 40px; border-radius: 12px; object-fit: cover;
  box-shadow: 0 4px 12px rgba(109, 40, 217, 0.25);
}
.brand-wordmark {
  font-weight: 800; font-size: 19px; letter-spacing: -0.03em; line-height: 1.05;
  display: none;
}
@media (min-width: 640px) { .brand-wordmark { display: block; } }
.brand-wordmark span {
  background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-sub { font-size: 10.5px; color: var(--text-muted); font-weight: 500; display: block; }

.btn-catalog-nav {
  display: none; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 12px; border: 0;
  background: var(--brand-gradient); color: #fff;
  font-weight: 700; font-size: 14px; cursor: pointer; flex-shrink: 0;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn-catalog-nav:hover { background: var(--brand-gradient-hover); }
@media (min-width: 900px) { .btn-catalog-nav { display: inline-flex; } }

/* Smart Search Box */
.search-wrap { position: relative; flex: 1; min-width: 0; }
.search-form {
  display: flex; align-items: center;
  background: var(--bg); border: 2px solid transparent; border-radius: 14px;
  padding: 3px 4px 3px 14px; transition: border-color 0.15s, background 0.15s;
}
.search-form:focus-within { background: #fff; border-color: var(--brand-violet); box-shadow: 0 0 0 4px rgba(109, 40, 217, 0.1); }
.search-input {
  flex: 1; border: 0; background: transparent; outline: none;
  font-size: 14.5px; color: var(--text); padding: 7px 0; min-width: 0;
}
.search-submit {
  border: 0; background: var(--brand-gradient); color: #fff;
  border-radius: 10px; padding: 8px 16px; font-weight: 700; font-size: 13.5px; cursor: pointer;
}
.search-dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60;
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow-md); padding: 10px; display: none;
}
.search-dropdown.is-open { display: block; }
.suggest-cat {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
  background: var(--surface-soft); border-radius: 999px; font-size: 13px; font-weight: 600;
  margin: 0 6px 8px 0; color: var(--brand-violet);
}
.suggest-item {
  display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px;
}
.suggest-item:hover { background: var(--bg); }
.suggest-item img { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: var(--bg); }
.suggest-item__title { font-size: 13.5px; font-weight: 500; line-height: 1.25; }
.suggest-item__price { font-weight: 700; font-size: 13.5px; color: var(--brand-violet); margin-left: auto; white-space: nowrap; }

/* Header actions */
.header-actions { display: none; align-items: center; gap: 6px; flex-shrink: 0; }
@media (min-width: 900px) { .header-actions { display: flex; } }
.icon-action {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 11px; border-radius: 12px; border: 0; background: transparent;
  color: var(--text); cursor: pointer; font-size: 11.5px; font-weight: 600;
}
.icon-action:hover { background: var(--surface-soft); color: var(--brand-violet); }
.badge-count {
  position: absolute; top: 2px; right: 5px;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--brand-magenta); color: #fff; font-size: 11px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.badge-count:empty, .badge-count[data-count="0"] { display: none; }

/* Category ribbon */
.cat-ribbon {
  display: flex; gap: 8px; overflow-x: auto; padding: 6px 0 10px; scrollbar-width: none;
}
.cat-ribbon::-webkit-scrollbar { display: none; }
.cat-pill {
  white-space: nowrap; padding: 6px 13px; border-radius: 999px;
  background: var(--bg); font-size: 13px; font-weight: 600; color: var(--text-secondary);
  transition: background 0.15s, color 0.15s;
}
.cat-pill:hover, .cat-pill.is-active { background: var(--surface-soft); color: var(--brand-violet); }

/* ---------- BUTTONS & CHIPS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 12px; border: 0;
  font-weight: 700; font-size: 14.5px; cursor: pointer; transition: transform 0.12s, opacity 0.15s, background 0.15s;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--brand-gradient); color: #fff; }
.btn-primary:hover { background: var(--brand-gradient-hover); }
.btn-soft { background: var(--surface-soft); color: var(--brand-violet); }
.btn-soft:hover { background: #e8ddff; }
.btn-outline { background: #fff; border: 1.5px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--brand-violet); color: var(--brand-violet); }
.btn-sm { padding: 8px 13px; font-size: 13px; border-radius: 10px; }
.btn-block { width: 100%; }

/* ---------- HERO & BANNERS ---------- */
.hero-grid {
  display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 16px;
}
@media (min-width: 960px) { .hero-grid { grid-template-columns: 2fr 1fr; } }
.hero-card {
  border-radius: var(--radius-lg); padding: 26px 24px; color: #fff;
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
  min-height: 220px; box-shadow: var(--shadow-md);
}
.hero-card h1, .hero-card h2 {
  margin: 10px 0 8px; font-size: clamp(22px, 3vw, 32px); line-height: 1.15; letter-spacing: -0.025em; max-width: 18ch;
}
.hero-card p { margin: 0 0 18px; font-size: 14.5px; color: rgba(255, 255, 255, 0.88); max-width: 48ch; }
.hero-badge {
  display: inline-flex; width: fit-content; padding: 5px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.18); backdrop-filter: blur(8px);
  font-size: 12.5px; font-weight: 700;
}
.hero-cta {
  display: inline-flex; width: fit-content; align-items: center; gap: 6px;
  background: #fff; color: var(--surface-ink); padding: 11px 20px;
  border-radius: 12px; font-weight: 800; font-size: 14px;
}
.hero-cta:hover { background: var(--surface-soft); }
.ad-erid-mark {
  margin-top: 10px; font-size: 11px; opacity: 0.78;
}

.promo-strip {
  margin-top: 14px; border-radius: var(--radius-md); padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  border: 1px solid #eadcf8;
}

/* ---------- SECTIONS & PRODUCT GRID ---------- */
.section { margin-top: 28px; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap;
}
.section-title { margin: 0; font-size: clamp(19px, 2.4vw, 24px); font-weight: 800; letter-spacing: -0.02em; }
.section-sub { font-size: 13px; color: var(--text-secondary); }
.section-link { font-size: 14px; font-weight: 700; color: var(--brand-violet); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (min-width: 680px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1280px) { .product-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.pcard {
  background: var(--surface); border-radius: var(--radius-md);
  border: 1px solid var(--border); overflow: hidden;
  display: flex; flex-direction: column; position: relative;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.pcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #d8cef5; }
.pcard__media {
  position: relative; aspect-ratio: 4 / 4; background: #faf9fe; overflow: hidden;
}
.pcard__media img {
  width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s ease;
}
.pcard:hover .pcard__media img { transform: scale(1.03); }
.pcard__badges {
  position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 4px; pointer-events: none;
}
.pbadge {
  display: inline-block; padding: 3px 8px; border-radius: 7px; font-size: 11.5px; font-weight: 800; width: fit-content;
}
.pbadge--disc { background: var(--brand-magenta); color: #fff; }
.pbadge--kit { background: var(--surface-ink); color: #fff; }
.pbadge--rec { background: rgba(109, 40, 217, 0.9); color: #fff; }

.pcard__fav {
  position: absolute; top: 8px; right: 8px; width: 34px; height: 34px;
  border-radius: 999px; border: 0; background: rgba(255, 255, 255, 0.92);
  display: grid; place-items: center; cursor: pointer; font-size: 16px; color: var(--text-muted);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.pcard__fav.is-active { color: var(--brand-magenta); }

.pcard__body {
  padding: 11px 12px 12px; display: flex; flex-direction: column; flex: 1; gap: 6px;
}
.pcard__price-row { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.pcard__price { font-size: 18px; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.pcard__old { font-size: 13px; color: var(--text-muted); text-decoration: line-through; }
.pcard__cat { font-size: 11.5px; color: var(--text-muted); }
.pcard__title {
  font-size: 13.5px; font-weight: 500; line-height: 1.32; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.64em;
}
.pcard__meta { font-size: 11.5px; color: var(--success); font-weight: 600; }
.pcard__cta { margin-top: auto; padding-top: 6px; }

/* Quick category tiles */
.cat-tiles {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
}
@media (min-width: 768px) { .cat-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cat-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.cat-tile {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 14px; display: flex; align-items: center; gap: 10px; transition: border-color 0.15s, transform 0.15s;
}
.cat-tile:hover { border-color: var(--brand-violet); transform: translateY(-2px); }
.cat-tile__icon {
  width: 40px; height: 40px; border-radius: 12px; background: var(--surface-soft);
  display: grid; place-items: center; font-size: 20px; flex-shrink: 0;
}
.cat-tile__name { font-size: 13.5px; font-weight: 700; line-height: 1.2; }
.cat-tile__cnt { font-size: 11.5px; color: var(--text-muted); }

/* ---------- CATALOG LAYOUT & FACETS ---------- */
.catalog-layout { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 16px; }
@media (min-width: 960px) { .catalog-layout { grid-template-columns: 268px minmax(0, 1fr); align-items: start; } }
.filter-panel {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px;
}
.filter-group { padding: 12px 0; border-bottom: 1px solid var(--border); }
.filter-group:first-child { padding-top: 0; }
.filter-group:last-child { border-bottom: 0; padding-bottom: 0; }
.filter-group__title { font-size: 13.5px; font-weight: 800; margin: 0 0 9px; }
.price-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.input {
  width: 100%; padding: 9px 11px; border: 1.5px solid var(--border); border-radius: 10px;
  font-size: 14px; color: var(--text); background: #fff; outline: none;
}
.input:focus { border-color: var(--brand-violet); }
.facet-list { display: flex; flex-direction: column; gap: 6px; max-height: 200px; overflow-y: auto; }
.facet-link {
  display: flex; justify-content: space-between; font-size: 13px; padding: 4px 8px; border-radius: 8px;
  color: var(--text-secondary);
}
.facet-link:hover, .facet-link.is-active { background: var(--surface-soft); color: var(--brand-violet); font-weight: 700; }

/* ---------- PDP (PRODUCT DETAIL PAGE) ---------- */
.breadcrumbs {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-muted); margin: 14px 0 12px;
}
.breadcrumbs a:hover { color: var(--brand-violet); }

.pdp-grid {
  display: grid; grid-template-columns: 1fr; gap: 22px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px;
}
@media (min-width: 960px) {
  .pdp-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); padding: 26px; gap: 32px; }
}
.pdp-gallery { display: flex; flex-direction: column; gap: 10px; }
.pdp-main-img-wrap {
  aspect-ratio: 1 / 1; background: #faf9fe; border-radius: var(--radius-md); overflow: hidden;
  border: 1px solid var(--border); cursor: zoom-in; position: relative;
}
.pdp-main-img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.pdp-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.pdp-thumb {
  width: 66px; height: 66px; border-radius: 10px; border: 2px solid transparent; padding: 0;
  overflow: hidden; background: #fff; cursor: pointer; flex-shrink: 0;
}
.pdp-thumb.is-active { border-color: var(--brand-violet); }
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; }

.pdp-title { margin: 6px 0 10px; font-size: clamp(20px, 2.4vw, 27px); font-weight: 800; line-height: 1.2; }
.pdp-price-box {
  background: var(--bg); border-radius: var(--radius-md); padding: 16px; margin: 14px 0;
}
.pdp-price-main { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
.pdp-price-old { font-size: 16px; color: var(--text-muted); text-decoration: line-through; margin-left: 10px; }
.pdp-actions { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 14px; }
@media (min-width: 540px) { .pdp-actions { grid-template-columns: 1.4fr 1fr; } }

.trust-list { display: grid; gap: 10px; margin-top: 16px; font-size: 13.5px; }
.trust-item {
  display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px;
  border-radius: 12px; background: #faf9fe; border: 1px solid var(--border);
}

.specs-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 14px; }
.specs-table tr { border-bottom: 1px solid var(--border); }
.specs-table th { text-align: left; color: var(--text-secondary); font-weight: 500; padding: 8px 10px 8px 0; width: 44%; }
.specs-table td { padding: 8px 0; font-weight: 600; }

/* ---------- CHECKOUT & FORMS ---------- */
.checkout-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 16px; }
@media (min-width: 960px) { .checkout-grid { grid-template-columns: minmax(0, 1.4fr) 390px; align-items: start; } }
.card-box {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px 20px;
}
.form-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 5px; color: var(--text-secondary); }
.consent-check {
  display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.4;
  padding: 10px 12px; border-radius: 10px; background: var(--bg); cursor: pointer;
}
.consent-check input { width: 18px; height: 18px; accent-color: var(--brand-violet); margin-top: 2px; flex-shrink: 0; }
.alert-error {
  background: #fef2f2; border: 1px solid #fecaca; color: #991b1b;
  padding: 12px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; margin-bottom: 14px;
}
.alert-ok {
  background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46;
  padding: 12px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; margin-bottom: 14px;
}

/* ---------- NATIVE DIALOGS (Modern Web Guidance: overscroll-behavior + light-dismiss) ---------- */
dialog:modal {
  overscroll-behavior: contain;
  border: 0;
  padding: 0;
  background: #fff;
  color: var(--text);
  box-shadow: 0 24px 60px rgba(14, 7, 32, 0.28);
}
dialog::backdrop {
  background: rgba(14, 7, 32, 0.56);
  backdrop-filter: blur(3px);
  overflow: hidden;
  overscroll-behavior: contain;
}
dialog.drawer-dialog {
  margin: 0 0 0 auto;
  height: 100dvh;
  max-height: 100dvh;
  width: min(440px, 100vw);
  border-radius: 20px 0 0 20px;
}
dialog.modal-dialog {
  width: min(480px, calc(100vw - 24px));
  border-radius: 20px;
  padding: 22px;
}
.dialog-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.dialog-close {
  width: 34px; height: 34px; border-radius: 10px; border: 0; background: var(--bg);
  cursor: pointer; font-size: 18px; line-height: 1;
}

/* ---------- TOAST NOTIFICATIONS (Modern Web Guidance: popover="manual") ---------- */
.toast-region {
  position: fixed; bottom: 78px; right: 16px; z-index: 90;
  display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
@media (min-width: 900px) { .toast-region { bottom: 20px; } }
[popover].bm-toast {
  position: fixed; inset: auto 16px 80px auto; margin: 0;
  border: 0; border-radius: 14px; padding: 12px 16px;
  background: var(--surface-ink); color: #fff; font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow-md); max-width: min(360px, calc(100vw - 32px));
  display: flex; align-items: center; gap: 12px;
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, display 0.2s, overlay 0.2s;
  transition-behavior: allow-discrete;
}
[popover].bm-toast:is(:popover-open, .\:popover-open) {
  opacity: 1; transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [popover].bm-toast { transition: none; transform: none; }
}

/* ---------- COOKIE BANNER & FOOTER ---------- */
.cookie-banner {
  position: fixed; bottom: 72px; left: 12px; right: 12px; z-index: 50;
  max-width: 680px; margin-inline: auto;
  background: var(--surface-ink); color: #fff; border-radius: 16px; padding: 14px 18px;
  box-shadow: var(--shadow-md); display: none; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: 13px;
}
@media (min-width: 900px) { .cookie-banner { bottom: 18px; } }
.cookie-banner.is-visible { display: flex; }

.site-footer {
  margin-top: auto; padding: 36px 0 26px; background: var(--surface-ink); color: rgba(255, 255, 255, 0.85);
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 24px; }
.footer-col h4 { margin: 0 0 10px; font-size: 14.5px; color: #fff; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; font-size: 13.5px; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 12.5px; color: rgba(255, 255, 255, 0.72);
}
.rec-law-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
  background: rgba(124, 58, 237, 0.28); border: 1px solid rgba(219, 39, 119, 0.45);
  color: #fff; font-size: 12px; font-weight: 600;
}

/* Mobile bottom tab bar */
.mobile-tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 45;
  background: rgba(255, 255, 255, 0.98); border-top: 1px solid var(--border);
  display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 4px;
}
@media (min-width: 900px) { .mobile-tabbar { display: none; } }
.mobile-tab {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 10.5px; font-weight: 700; color: var(--text-secondary); position: relative;
  border: 0; background: transparent; padding: 4px 0; cursor: pointer;
}
.mobile-tab.is-active { color: var(--brand-violet); }

/* Pagination & RSYA placeholder */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 22px; flex-wrap: wrap; }
.page-btn {
  padding: 8px 13px; border-radius: 10px; background: #fff; border: 1px solid var(--border); font-weight: 700; font-size: 13.5px;
}
.page-btn.is-active { background: var(--brand-gradient); color: #fff; border-color: transparent; }

.rsya-slot {
  margin: 20px 0; border-radius: 14px; border: 1px dashed var(--border); background: #fff;
  display: grid; place-items: center; color: var(--text-muted); font-size: 12.5px; padding: 12px;
}

/* Newsletter box */
.newsletter-box {
  background: linear-gradient(135deg, #160a2e 0%, #3b1475 65%, #7e1658 100%);
  color: #fff; border-radius: var(--radius-lg); padding: 24px; margin-top: 32px;
}
.newsletter-box .consent-check { background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.92); }
.newsletter-box a { text-decoration: underline; }
