/* ==========================================================================
   MiniCube components & layout. Uses only variables from minicube-theme.css.
   ========================================================================== */

html { scroll-padding-top: 88px; }
body { font-family: var(--mc-font); background: var(--mc-paper); color: var(--mc-ink); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, .h1, .h2, .h3, .h4, .display-title { font-weight: 900; letter-spacing: -.01em; color: var(--mc-ink); }
h1 { font-size: clamp(2rem, 5vw, 2.5rem); line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 3.5vw, 1.75rem); line-height: 1.2; font-weight: 800; }
h3 { font-size: 1.25rem; line-height: 1.3; font-weight: 800; }
.text-muted, .text-body-secondary { color: var(--mc-ink-muted) !important; }
a { text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--mc-focus); outline-offset: 3px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 2000; }
.skip-link:focus { left: 8px; }
.section { padding-block: 48px; }
@media (min-width: 992px) { .section { padding-block: 64px; } }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-head h2 { margin: 0; }

/* ---------- Test-mode ribbon ---------- */
.test-ribbon { background: var(--mc-pop); color: var(--mc-on-pop); border-bottom: var(--mc-stroke-2) solid #221E1F; font-size: .8125rem; font-weight: 700; text-align: center; padding: 4px 12px; }

/* ---------- Buttons (sticker) ---------- */
.btn {
  --bs-btn-font-weight: 700;
  --bs-btn-padding-x: 1.5rem;
  --bs-btn-padding-y: .65rem;
  --bs-btn-border-width: var(--mc-stroke-2);
  --bs-btn-border-color: var(--mc-outline);
  --bs-btn-hover-border-color: var(--mc-outline);
  --bs-btn-active-border-color: var(--mc-outline);
  --bs-btn-disabled-border-color: var(--mc-outline);
  --bs-btn-border-radius: var(--mc-radius-md);
  --bs-btn-focus-box-shadow: 0 0 0 .25rem var(--bs-focus-ring-color);
  min-height: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background-image: none; text-shadow: none;
  box-shadow: var(--mc-sticker-sm);
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.btn:hover { transform: translate(-1px, -1px); }
.btn:active, .btn.active { transform: translate(3px, 3px); box-shadow: none !important; }
.btn:disabled, .btn.disabled { opacity: .45; box-shadow: none; transform: none; }
.btn-sm { --bs-btn-padding-x: 1rem; --bs-btn-padding-y: .35rem; --bs-btn-border-width: var(--mc-stroke-1); --bs-btn-font-size: .875rem; min-height: 36px; }
.btn-lg { --bs-btn-padding-x: 2rem; min-height: 56px; --bs-btn-font-size: 1.0625rem; }
.btn-primary {
  --bs-btn-color: var(--mc-on-primary); --bs-btn-bg: var(--mc-primary);
  --bs-btn-hover-color: var(--mc-on-primary); --bs-btn-hover-bg: var(--mc-primary);
  --bs-btn-active-color: var(--mc-on-primary); --bs-btn-active-bg: var(--mc-primary);
  --bs-btn-disabled-color: var(--mc-on-primary); --bs-btn-disabled-bg: var(--mc-primary);
}
.btn-sky, .btn-info {
  --bs-btn-color: var(--mc-on-sky); --bs-btn-bg: var(--mc-sky);
  --bs-btn-hover-color: var(--mc-on-sky); --bs-btn-hover-bg: var(--mc-sky);
  --bs-btn-active-color: var(--mc-on-sky); --bs-btn-active-bg: var(--mc-sky);
  --bs-btn-disabled-color: var(--mc-on-sky); --bs-btn-disabled-bg: var(--mc-sky);
  border-color: #221E1F;
}
.btn-pop, .btn-warning {
  --bs-btn-color: var(--mc-on-pop); --bs-btn-bg: var(--mc-pop);
  --bs-btn-hover-color: var(--mc-on-pop); --bs-btn-hover-bg: var(--mc-pop);
  --bs-btn-active-color: var(--mc-on-pop); --bs-btn-active-bg: var(--mc-pop);
  border-color: #221E1F;
}
.btn-outline, .btn-outline-dark, .btn-light {
  --bs-btn-color: var(--mc-ink); --bs-btn-bg: var(--mc-surface);
  --bs-btn-hover-color: var(--mc-ink); --bs-btn-hover-bg: var(--mc-surface);
  --bs-btn-active-color: var(--mc-ink); --bs-btn-active-bg: var(--mc-surface-raised);
}
.btn-ghost {
  --bs-btn-color: var(--mc-ink); --bs-btn-bg: transparent; --bs-btn-border-color: transparent;
  --bs-btn-hover-bg: var(--mc-surface-raised); --bs-btn-hover-border-color: transparent; --bs-btn-hover-color: var(--mc-ink);
  box-shadow: none; text-decoration: underline;
}
.btn-ghost:hover { transform: none; }
.btn-icon { --bs-btn-padding-x: 0; width: 44px; min-height: 44px; height: 44px; }

/* ---------- Cards ---------- */
.card {
  --bs-card-bg: var(--mc-surface);
  --bs-card-border-width: var(--mc-stroke-2);
  --bs-card-border-color: var(--mc-outline);
  --bs-card-border-radius: var(--mc-radius-lg);
  --bs-card-inner-border-radius: calc(var(--mc-radius-lg) - var(--mc-stroke-2));
  --bs-card-spacer-x: 1rem; --bs-card-spacer-y: 1rem;
  box-shadow: var(--mc-sticker-md);
  overflow: hidden;
}
@media (min-width: 768px) { .card { --bs-card-spacer-x: 1.5rem; --bs-card-spacer-y: 1.5rem; } }
.card-flat { box-shadow: none; }
.card-sky { --bs-card-bg: var(--mc-sky); color: var(--mc-on-sky); }
.card-sky h2, .card-sky h3 { color: var(--mc-on-sky); }
.card-soft { --bs-card-bg: var(--mc-sky-soft); }

.product-card { height: 100%; transition: transform .15s ease; }
.product-card:hover { transform: translate(-2px, -2px); }
.product-card .media { position: relative; aspect-ratio: 1 / 1; background: var(--mc-surface-raised); border-bottom: var(--mc-stroke-2) solid var(--mc-outline); display: grid; place-items: center; }
.product-card .media img { width: 52%; height: auto; transition: transform .25s ease; }
.product-card:hover .media img { transform: rotate(-8deg) scale(1.05); }
.product-card .badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.product-card .title { font-size: 1rem; line-height: 1.35; font-weight: 800; margin: 0; }
.product-card .title a { color: inherit; text-decoration: none; }
.product-card .title a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.product-card .card-body { position: relative; display: flex; flex-direction: column; gap: .35rem; }
.product-card .card-body .btn { position: relative; z-index: 1; }
.price { font-size: 1.25rem; font-weight: 900; }
.price-old { font-size: .875rem; color: var(--mc-ink-muted); text-decoration: line-through; font-weight: 500; margin-left: .5rem; }

/* ---------- Badges ---------- */
.mc-badge { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; line-height: 1rem; font-weight: 700; letter-spacing: .02em; padding: 4px 8px; border-radius: var(--mc-radius-sm); border: var(--mc-stroke-1) solid var(--mc-outline); background: var(--mc-surface); color: var(--mc-ink); white-space: nowrap; }
.mc-badge-sky { background: var(--mc-sky); color: var(--mc-on-sky); border-color: #221E1F; }
.mc-badge-pop { background: var(--mc-pop); color: var(--mc-on-pop); border-color: #221E1F; }
.mc-badge-dark { background: var(--mc-primary); color: var(--mc-on-primary); }
.mc-badge-success { color: var(--mc-success); border-color: currentColor; }
.mc-badge-danger { color: var(--mc-danger); border-color: currentColor; }
.mc-badge-muted { color: var(--mc-ink-muted); border-color: currentColor; }

.tier-cube { width: 56px; height: 56px; flex: none; }
.tier-cube .top { fill: #FFFFFF; }
.tier-cube .edge { fill: none; stroke: #221E1F; stroke-width: 3.5; stroke-linejoin: round; }
.tier-cube.bronze .side { fill: var(--mc-tier-bronze); }
.tier-cube.silver .side { fill: var(--mc-tier-silver); }
.tier-cube.gold .side { fill: var(--mc-tier-gold); }

/* ---------- Forms ---------- */
.form-label { font-weight: 700; font-size: .9375rem; margin-bottom: .35rem; }
.form-control, .form-select {
  min-height: 48px; font-size: 1rem; border: var(--mc-stroke-1) solid var(--mc-outline);
  border-radius: var(--mc-radius-md); background-color: var(--mc-surface); color: var(--mc-ink);
}
.form-control::placeholder { color: var(--mc-ink-muted); }
.form-control:focus, .form-select:focus { border-color: var(--mc-outline); box-shadow: 0 0 0 .25rem var(--bs-focus-ring-color); background-color: var(--mc-surface); color: var(--mc-ink); }
.form-control.input-validation-error, .form-control.is-invalid { border-color: var(--mc-danger); border-width: var(--mc-stroke-2); }
.field-validation-error, .text-danger { color: var(--mc-danger) !important; font-size: .875rem; font-weight: 600; }
.validation-summary-errors ul { list-style: none; padding: 12px 16px; margin: 0 0 16px; border: var(--mc-stroke-2) solid var(--mc-danger); border-radius: var(--mc-radius-md); color: var(--mc-danger); font-weight: 600; }
.form-check-input { width: 1.375em; height: 1.375em; margin-top: .05em; border: var(--mc-stroke-1) solid var(--mc-outline); background-color: var(--mc-surface); }
.form-check-input:checked { background-color: var(--mc-sky); border-color: #221E1F; --bs-form-check-bg-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23221E1F' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e"); }
.form-check-label { padding-left: .25rem; }
.form-text { color: var(--mc-ink-muted); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 1030; background: var(--mc-surface); border-bottom: var(--mc-stroke-2) solid var(--mc-outline); }
.site-header .navbar { padding-block: .5rem; }
.brand-full { height: 52px; width: auto; }
.brand-icon { height: 44px; width: 44px; }
/* theme-specific images (logo on light vs on dark) */
.only-dark { display: none !important; }
[data-bs-theme="dark"] .only-light { display: none !important; }
[data-bs-theme="dark"] .only-dark { display: inline-block !important; }
.site-header .nav-link { font-weight: 700; color: var(--mc-ink); padding: .5rem 0 !important; border-bottom: 3px solid transparent; }
.site-header .nav-link:hover { color: var(--mc-ink); border-bottom-color: var(--mc-hairline); }
.site-header .nav-link.active { color: var(--mc-ink); border-bottom-color: var(--mc-sky); }
@media (min-width: 992px) { .site-header .navbar-nav { gap: 1.5rem; } }
.navbar-toggler { border: var(--mc-stroke-1) solid var(--mc-outline); border-radius: var(--mc-radius-md); width: 44px; height: 44px; padding: 0; }
.navbar-toggler-icon { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23221E1F' stroke-linecap='round' stroke-width='3' d='M5 8h20M5 15h20M5 22h20'/%3e%3c/svg%3e"); }
[data-bs-theme="dark"] .navbar-toggler-icon { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23FFFFFF' stroke-linecap='round' stroke-width='3' d='M5 8h20M5 15h20M5 22h20'/%3e%3c/svg%3e"); }
.lang-switch .btn { min-width: 44px; }
.dropdown-menu { border: var(--mc-stroke-2) solid var(--mc-outline); border-radius: var(--mc-radius-md); box-shadow: var(--mc-sticker-sm); padding: .5rem; --bs-dropdown-bg: var(--mc-surface); --bs-dropdown-link-color: var(--mc-ink); --bs-dropdown-link-hover-bg: var(--mc-surface-raised); --bs-dropdown-link-active-bg: var(--mc-sky); --bs-dropdown-link-active-color: #221E1F; }
.dropdown-item { border-radius: var(--mc-radius-sm); font-weight: 600; }
.avatar { width: 36px; height: 36px; border-radius: 10px; border: var(--mc-stroke-1) solid var(--mc-outline); object-fit: cover; background: var(--mc-sky-soft); display: inline-grid; place-items: center; font-weight: 900; font-size: .875rem; color: var(--mc-ink); }
.avatar-lg { width: 96px; height: 96px; border-radius: 22px; border-width: var(--mc-stroke-2); font-size: 2rem; box-shadow: var(--mc-sticker-sm); }

/* ---------- Hero ---------- */
.hero { padding-block: 32px 48px; }
@media (min-width: 992px) { .hero { padding-block: 56px 72px; } }
.hero-title { font-size: clamp(2.5rem, 7vw, 3.5rem); line-height: 1.05; font-weight: 900; letter-spacing: -.02em; }
.hero-title .hl { background: var(--mc-sky); color: #221E1F; padding: 0 .2em; border: var(--mc-stroke-2) solid #221E1F; border-radius: var(--mc-radius-md); box-shadow: var(--mc-sticker-sm); display: inline-block; transform: rotate(-2deg); }
.hero-lead { font-size: 1.125rem; line-height: 1.6; color: var(--mc-ink-muted); max-width: 34rem; }
.hero-art { position: relative; background: var(--mc-sky-soft); border: var(--mc-stroke-2) solid var(--mc-outline); border-radius: 32px; box-shadow: var(--mc-sticker-md); aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden; }
@media (min-width: 992px) { .hero-art { aspect-ratio: 5 / 4; } }
.hero-art .hero-logo { width: 70%; position: relative; z-index: 1; animation: bob 4s ease-in-out infinite; }
.hero-art .deco { position: absolute; border: var(--mc-stroke-2) solid #221E1F; border-radius: 10px; background: var(--mc-surface); }
[data-bs-theme="dark"] .hero-art .deco { border-color: var(--mc-outline); }
.hero-art .d1 { width: 56px; height: 56px; top: 10%; left: 8%; transform: rotate(-20deg); background: var(--mc-sky); }
.hero-art .d2 { width: 36px; height: 36px; bottom: 12%; left: 14%; transform: rotate(14deg); background: var(--mc-pop); }
.hero-art .d3 { width: 44px; height: 44px; top: 14%; right: 9%; transform: rotate(24deg); }
.hero-art .d4 { width: 28px; height: 28px; bottom: 16%; right: 12%; transform: rotate(-12deg); background: var(--mc-sky); }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-8px) rotate(-1deg); } }

/* ---------- Promotions & news ---------- */
.promo-card .media, .news-card .media { aspect-ratio: 16 / 9; background: var(--mc-sky-soft); border-bottom: var(--mc-stroke-2) solid var(--mc-outline); display: grid; place-items: center; position: relative; }
.promo-card .media img, .news-card .media img { height: auto; width: auto; max-height: 120px; max-width: 40%; }
.promo-card .discount { position: absolute; top: 12px; right: 12px; font-size: 1.5rem; font-weight: 900; background: var(--mc-pop); color: #221E1F; border: var(--mc-stroke-2) solid #221E1F; border-radius: var(--mc-radius-md); padding: 2px 12px; transform: rotate(6deg); box-shadow: 3px 3px 0 #221E1F; }
.news-card time, .promo-card .ends { font-size: .875rem; color: var(--mc-ink-muted); font-weight: 600; }
.news-card a.stretched-link { color: inherit; text-decoration: none; }

/* ---------- Club banner ---------- */
.club-banner { background: var(--mc-sky); color: #221E1F; border: var(--mc-stroke-2) solid #221E1F; border-radius: 32px; box-shadow: var(--mc-sticker-md); padding: 32px 24px; position: relative; overflow: hidden; }
@media (min-width: 992px) { .club-banner { padding: 48px; } }
.club-banner h2, .club-banner p { color: #221E1F; }
.club-banner .tiers { display: flex; gap: 20px; align-items: end; }
.club-banner .tiers .tier { display: flex; flex-direction: column; align-items: center; gap: 4px; font-weight: 800; font-size: .875rem; }
.club-banner .tiers .tier:nth-child(2) .tier-cube { width: 72px; height: 72px; }
.club-banner .tiers .tier:nth-child(3) .tier-cube { width: 88px; height: 88px; }
.club-banner .btn-primary { --bs-btn-bg: #221E1F; --bs-btn-color: #FFFFFF; --bs-btn-hover-bg: #221E1F; --bs-btn-hover-color: #FFFFFF; --bs-btn-active-bg: #221E1F; --bs-btn-active-color: #FFFFFF; border-color: #221E1F; box-shadow: 3px 3px 0 #FFFFFF; }

/* ---------- Progress ---------- */
.mc-progress { height: 16px; border: var(--mc-stroke-1) solid var(--mc-outline); border-radius: var(--mc-radius-pill); background: var(--mc-surface-raised); overflow: hidden; }
.mc-progress > span { display: block; height: 100%; background: var(--mc-sky); border-right: var(--mc-stroke-1) solid #221E1F; }

/* ---------- Auth pages ---------- */
.auth-wrap { max-width: 480px; margin: 32px auto 64px; }
.auth-wrap .card-body { padding: 24px; }
@media (min-width: 576px) { .auth-wrap .card-body { padding: 40px; } }
.auth-cube { width: 64px; height: 64px; margin-bottom: 12px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--mc-ink-muted); font-size: .875rem; font-weight: 600; margin: 20px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 2px; background: var(--mc-hairline); }

/* ---------- Profile ---------- */
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat .value { font-size: 1.75rem; font-weight: 900; line-height: 1.1; }
.stat .label { font-size: .875rem; color: var(--mc-ink-muted); font-weight: 600; }
.table { --bs-table-bg: transparent; --bs-table-color: var(--mc-ink); --bs-table-border-color: var(--mc-hairline); }
.table thead th { font-size: .8125rem; color: var(--mc-ink-muted); font-weight: 700; }

/* ---------- Loader ---------- */
.mc-loader { width: 40px; height: 40px; position: relative; display: inline-block; }
.mc-loader::before { content: ""; position: absolute; inset: 0; background: var(--mc-surface); border: var(--mc-stroke-2) solid var(--mc-outline); border-radius: 9px; box-shadow: inset 0 -8px 0 var(--mc-sky); transform-origin: 100% 100%; animation: mc-tip 1.1s cubic-bezier(.6, 0, .4, 1) infinite; }
.mc-loader::after { content: ""; position: absolute; left: -6px; right: -6px; bottom: -8px; height: 4px; border-radius: 4px; background: var(--mc-hairline); }
@keyframes mc-tip { 0% { transform: rotate(0); } 60%, 100% { transform: rotate(90deg); } }

/* ---------- Toasts ---------- */
.toast-stack { position: fixed; bottom: 16px; right: 16px; left: 16px; z-index: 1090; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; pointer-events: none; }
.mc-toast { pointer-events: auto; max-width: 420px; background: var(--mc-surface); color: var(--mc-ink); border: var(--mc-stroke-2) solid var(--mc-outline); border-radius: var(--mc-radius-md); box-shadow: var(--mc-sticker-sm); padding: 12px 16px; font-weight: 600; display: flex; gap: 12px; align-items: center; animation: toast-in .25s ease; }
.mc-toast.success { border-left: 10px solid var(--mc-success); }
.mc-toast.error { border-left: 10px solid var(--mc-danger); }
.mc-toast .btn-close { margin-left: auto; }
@keyframes toast-in { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Footer ---------- */
.site-footer { background: #221E1F; color: #FFFFFF; border-top: var(--mc-stroke-2) solid #221E1F; margin-top: 48px; padding-block: 48px 24px; }
[data-bs-theme="dark"] .site-footer { background: #0E0C0D; border-top-color: var(--mc-outline); }
.site-footer a { color: #FFFFFF; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer h3 { color: #FFFFFF; font-size: 1rem; }
.site-footer .muted { color: #A9A6A7; }
.site-footer .form-control { --mc-surface: #2F2B2C; --mc-ink: #FFFFFF; --mc-ink-muted: #A9A6A7; --mc-outline: #E9E7E5; }
.site-footer .footer-logo { height: 64px; }

/* ---------- Coming soon / errors ---------- */
.empty-state { text-align: center; max-width: 520px; margin: 48px auto; }
.empty-state img { width: 120px; margin-bottom: 16px; }
.big-code { font-size: clamp(4rem, 14vw, 7rem); font-weight: 900; line-height: 1; letter-spacing: -.03em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ==========================================================================
   Shop (stage 2)
   ========================================================================== */

/* header cart badge */
.cart-count { position: absolute; top: -8px; right: -8px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; background: var(--mc-pop); color: #221E1F; border: var(--mc-stroke-1) solid #221E1F; font-size: .75rem; font-weight: 900; line-height: 18px; text-align: center; }

/* breadcrumbs */
.breadcrumb { --bs-breadcrumb-divider-color: var(--mc-ink-muted); --bs-breadcrumb-item-active-color: var(--mc-ink-muted); }
.breadcrumb a { color: var(--mc-ink); text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }

/* search */
.shop-search { width: 100%; max-width: 440px; }

/* filters */
.filters fieldset { border: 0; padding: 0; margin: 0; }
.filter-title { font-size: .875rem; font-weight: 800; letter-spacing: .02em; margin-bottom: .5rem; float: none; }
.filters .form-check { display: flex; align-items: center; gap: .5rem; padding-left: 0; margin-bottom: .35rem; cursor: pointer; }
.filters .form-check .form-check-input { float: none; margin: 0; flex: none; }
.filters .form-check-input[type=radio] { border-radius: 50%; }
.chip-radio { position: relative; cursor: pointer; }
.chip-radio input { position: absolute; opacity: 0; pointer-events: none; }
.chip-radio span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: var(--mc-radius-pill); border: var(--mc-stroke-1) solid var(--mc-outline); background: var(--mc-surface); font-size: .875rem; font-weight: 700; }
.chip-radio input:checked + span { background: var(--mc-sky); color: #221E1F; border-color: #221E1F; }
.chip-radio input:focus-visible + span { outline: 3px solid var(--mc-focus); outline-offset: 2px; }
@media (min-width: 992px) {
  .offcanvas-lg .offcanvas-header { display: none; }
  .filters { background: var(--mc-surface); border: var(--mc-stroke-2) solid var(--mc-outline); border-radius: var(--mc-radius-lg); padding: 20px; position: sticky; top: 96px; }
}
.offcanvas { --bs-offcanvas-bg: var(--mc-paper); border-right: var(--mc-stroke-2) solid var(--mc-outline) !important; }
.mc-switch { appearance: none; width: 48px; height: 28px; flex: none; border: var(--mc-stroke-1) solid var(--mc-outline); border-radius: var(--mc-radius-pill); background: var(--mc-surface-raised); position: relative; margin: 0; cursor: pointer; }
.mc-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 6px; background: var(--mc-ink); transition: left .15s; }
.mc-switch:checked { background: var(--mc-sky); }
.mc-switch:checked::after { left: 23px; background: #221E1F; }
.mc-switch:focus-visible { outline: 3px solid var(--mc-focus); outline-offset: 2px; }

/* pagination */
.mc-pagination { --bs-pagination-color: var(--mc-ink); --bs-pagination-bg: var(--mc-surface); --bs-pagination-border-color: var(--mc-outline); --bs-pagination-border-width: var(--mc-stroke-1); --bs-pagination-hover-color: var(--mc-ink); --bs-pagination-hover-bg: var(--mc-surface-raised); --bs-pagination-hover-border-color: var(--mc-outline); --bs-pagination-active-bg: var(--mc-sky); --bs-pagination-active-color: #221E1F; --bs-pagination-active-border-color: #221E1F; --bs-pagination-disabled-bg: transparent; --bs-pagination-disabled-border-color: transparent; --bs-pagination-disabled-color: var(--mc-ink-muted); --bs-pagination-focus-box-shadow: 0 0 0 .25rem var(--bs-focus-ring-color); gap: 6px; }
.mc-pagination .page-link { border-radius: var(--mc-radius-md) !important; min-width: 44px; height: 44px; display: grid; place-items: center; font-weight: 700; }

/* product card add button */
.product-card .add-form { position: relative; z-index: 1; }
.product-card .add-form .btn { width: 40px; height: 40px; min-height: 40px; }

/* product page */
.product-gallery .main { position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center; background: var(--mc-surface-raised); }
.product-gallery .main img { width: 60%; height: auto; }
.product-gallery .badges { position: absolute; top: 16px; left: 16px; display: flex; gap: 6px; }
.product-gallery .thumbs { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.product-gallery .thumb { width: 72px; height: 72px; padding: 8px; border-radius: var(--mc-radius-md); border: var(--mc-stroke-1) solid var(--mc-hairline); background: var(--mc-surface-raised); cursor: pointer; }
.product-gallery .thumb.active { border: var(--mc-stroke-2) solid var(--mc-outline); box-shadow: var(--mc-sticker-sm); }
.product-gallery .thumb img { width: 100%; height: 100%; object-fit: contain; }
.display-price { font-size: 2rem; }
.stock { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.stock .dot { width: 12px; height: 12px; border-radius: 4px; border: 2px solid #221E1F; }
.stock.in { color: var(--mc-success); } .stock.in .dot { background: var(--mc-success); }
.stock.out { color: var(--mc-danger); } .stock.out .dot { background: var(--mc-danger); }
.qty { display: inline-flex; align-items: center; gap: 6px; }
.qty .form-control { width: 64px; text-align: center; font-weight: 800; -moz-appearance: textfield; }
.qty .form-control::-webkit-outer-spin-button, .qty .form-control::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty .btn-icon { font-size: 1.25rem; font-weight: 900; }
.qty-sm .form-control { width: 52px; min-height: 40px; }
.qty-sm .btn-icon { width: 36px; height: 36px; min-height: 36px; box-shadow: none; border-width: var(--mc-stroke-1); }
.perks li { position: relative; padding-left: 28px; margin-bottom: 8px; }
.perks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 5px; border: 2px solid #221E1F; background: var(--mc-sky); transform: rotate(-12deg); }
.store-stock li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 2px solid var(--mc-hairline); }

/* cart */
.cart-lines { padding: 8px 16px; }
@media (min-width: 768px) { .cart-lines { padding: 8px 24px; } }
.cart-line { display: grid; grid-template-columns: 72px 1fr auto auto; grid-template-areas: "thumb info info remove" "thumb qty total total"; gap: 8px 16px; align-items: center; padding: 16px 0; border-bottom: 2px solid var(--mc-hairline); }
.cart-line:last-child { border-bottom: 0; }
.cart-line .thumb { grid-area: thumb; width: 72px; height: 72px; border-radius: var(--mc-radius-md); background: var(--mc-surface-raised); border: var(--mc-stroke-1) solid var(--mc-outline); display: grid; place-items: center; padding: 8px; }
.cart-line .thumb img { width: 100%; height: 100%; object-fit: contain; }
.cart-line .info { grid-area: info; display: flex; flex-direction: column; min-width: 0; }
.cart-line .name { font-weight: 800; color: var(--mc-ink); text-decoration: none; }
.cart-line .name:hover { text-decoration: underline; }
.cart-line .qty { grid-area: qty; }
.cart-line .line-total { grid-area: total; text-align: right; font-size: 1.125rem; }
.cart-line > form:last-child { grid-area: remove; justify-self: end; }
@media (min-width: 768px) {
  .cart-line { grid-template-columns: 72px 1fr auto 110px auto; grid-template-areas: "thumb info qty total remove"; }
}
.summary { display: grid; gap: 8px; }
.summary > div { display: flex; justify-content: space-between; gap: 12px; }
.summary dt { font-weight: 600; } .summary dd { margin: 0; font-weight: 700; text-align: right; white-space: nowrap; }
.summary .discount dd { color: var(--mc-success); }
.summary .total { border-top: var(--mc-stroke-2) solid var(--mc-outline); padding-top: 12px; margin-top: 4px; font-size: 1.25rem; }
.summary .total dt, .summary .total dd { font-weight: 900; }
.mini-lines { display: grid; gap: 8px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 2px solid var(--mc-hairline); }
.mini-lines li { display: flex; justify-content: space-between; gap: 12px; }
.mini-lines li > span:last-child { white-space: nowrap; font-weight: 700; }

/* alerts */
.mc-alert { border: var(--mc-stroke-2) solid var(--mc-outline); border-radius: var(--mc-radius-md); padding: 12px 16px; font-weight: 600; background: var(--mc-surface); }
.mc-alert.info { background: var(--mc-sky-soft); }
.mc-alert.warn { background: var(--mc-surface); border-left: 10px solid var(--mc-pop); }

/* checkout */
.step-no { display: inline-grid; place-items: center; width: 32px; height: 32px; margin-right: 10px; border-radius: 9px; background: var(--mc-sky); color: #221E1F; border: var(--mc-stroke-1) solid #221E1F; font-size: 1rem; transform: rotate(-8deg); vertical-align: 2px; }
.choice-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 576px) { .choice-grid { grid-template-columns: 1fr 1fr; } }
.choice { position: relative; cursor: pointer; display: block; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice-body { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 14px 16px 14px 48px; border: var(--mc-stroke-1) solid var(--mc-outline); border-radius: var(--mc-radius-md); background: var(--mc-surface); position: relative; transition: box-shadow .12s, transform .12s; }
.choice-body::before { content: ""; position: absolute; left: 16px; top: 16px; width: 20px; height: 20px; border-radius: 50%; border: var(--mc-stroke-1) solid var(--mc-outline); background: var(--mc-surface); }
.choice input:checked + .choice-body { border-width: var(--mc-stroke-2); padding: 13px 15px 13px 47px; box-shadow: var(--mc-sticker-sm); background: var(--mc-sky-soft); }
.choice input:checked + .choice-body::before { background: var(--mc-sky); box-shadow: inset 0 0 0 4px var(--mc-surface); top: 15px; left: 15px; }
.choice input:focus-visible + .choice-body { outline: 3px solid var(--mc-focus); outline-offset: 2px; }

/* order timeline */
.timeline { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.timeline li { display: flex; flex-direction: column; gap: 4px; padding: 14px; border: var(--mc-stroke-1) solid var(--mc-hairline); border-radius: var(--mc-radius-md); background: var(--mc-surface); }
.timeline li .dot { width: 18px; height: 18px; border-radius: 6px; border: 2px solid var(--mc-outline); background: var(--mc-surface-raised); transform: rotate(-12deg); }
.timeline li.done { border: var(--mc-stroke-2) solid var(--mc-outline); box-shadow: var(--mc-sticker-sm); }
.timeline li.done .dot { background: var(--mc-sky); border-color: #221E1F; }
.timeline .label { font-weight: 800; }

/* admin status chips */
.mc-chip-link { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: var(--mc-radius-pill); border: var(--mc-stroke-1) solid var(--mc-outline); background: var(--mc-surface); color: var(--mc-ink); font-size: .875rem; font-weight: 700; text-decoration: none; }
.mc-chip-link.active { background: var(--mc-sky); color: #221E1F; border-color: #221E1F; }

/* ==========================================================================
   Collection, scan, club (stage 3)
   ========================================================================== */

/* scanner */
.scanner .viewport { position: relative; aspect-ratio: 1 / 1; background: #221E1F; overflow: hidden; }
.scanner #reader { position: absolute; inset: 0; }
.scanner #reader video { width: 100% !important; height: 100% !important; object-fit: cover; }
.scanner #reader img[alt="Info icon"], .scanner #reader #qr-shaded-region { display: none !important; }
.scanner .idle { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; text-align: center; background: var(--mc-sky-soft); z-index: 2; }
.scanner .frame { position: absolute; inset: 15%; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .2s; }
.scanner.live .frame { opacity: 1; }
.scanner .frame span { position: absolute; width: 22%; height: 22%; border: 6px solid var(--mc-sky); }
.scanner .frame span:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-radius: 18px 0 0 0; }
.scanner .frame span:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-radius: 0 18px 0 0; }
.scanner .frame span:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 18px; }
.scanner .frame span:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-radius: 0 0 18px 0; }
.scanner.busy .frame span { border-color: var(--mc-pop); }
.manual summary { cursor: pointer; font-weight: 700; }

.modal-content { background: var(--mc-surface); color: var(--mc-ink); border: var(--mc-stroke-2) solid var(--mc-outline); border-radius: var(--mc-radius-lg); box-shadow: var(--mc-sticker-md); }
.pop-cube { width: 120px; height: 120px; margin: 0 auto 8px; display: grid; place-items: center; }
.pop-cube img { width: 100%; height: auto; }
.pop-cube.pop { animation: cube-pop .6s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes cube-pop { 0% { transform: scale(.2) rotate(-40deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
.scan-result.is-error .pop-cube img, .modal.is-error .pop-cube img { filter: grayscale(1); opacity: .6; }
.points-chip { display: inline-block; background: var(--mc-pop); color: #221E1F; border: var(--mc-stroke-2) solid #221E1F; border-radius: var(--mc-radius-md); padding: 6px 14px; font-weight: 900; box-shadow: 3px 3px 0 #221E1F; transform: rotate(-2deg); }

/* collection */
.series-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 1fr); gap: 16px; overflow-x: auto; padding: 4px 6px 10px 2px; scroll-snap-type: x mandatory; }
.series-card { scroll-snap-align: start; position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px; border: var(--mc-stroke-2) solid var(--mc-outline); border-radius: var(--mc-radius-lg); background: var(--mc-surface); color: var(--mc-ink); text-decoration: none; box-shadow: var(--mc-sticker-sm); transition: transform .12s; }
.series-card:hover { transform: translate(-1px, -1px); color: var(--mc-ink); }
.series-card.active { background: var(--mc-sky-soft); box-shadow: var(--mc-sticker-md); }
.series-card .name { font-weight: 900; font-size: 1.0625rem; }
.series-card .pct { position: absolute; top: 14px; right: 14px; font-weight: 900; }
.series-card .mc-badge { position: absolute; top: 12px; right: 12px; }
.series-card .mc-progress { display: block; height: 12px; }
.cube-tile { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 28px 10px 14px; border-radius: var(--mc-radius-lg); border: var(--mc-stroke-2) solid var(--mc-outline); background: var(--mc-surface); box-shadow: var(--mc-sticker-sm); }
.cube-tile img { width: 64%; height: auto; margin-bottom: 6px; }
.cube-tile .name { font-weight: 800; font-size: .9375rem; line-height: 1.3; }
.cube-tile .meta { font-size: .75rem; color: var(--mc-ink-muted); font-weight: 600; }
.cube-tile .num { position: absolute; top: 8px; left: 10px; font-size: .75rem; font-weight: 900; color: var(--mc-ink-muted); }
.cube-tile .count { position: absolute; top: 6px; right: 8px; font-size: .75rem; font-weight: 900; background: var(--mc-pop); color: #221E1F; border: 2px solid #221E1F; border-radius: 8px; padding: 0 6px; }
.cube-tile.rarity-rare { background: linear-gradient(var(--mc-surface), var(--mc-surface)) padding-box; border-color: var(--mc-sky); }
.cube-tile.rarity-legendary.owned { background: var(--mc-surface); border-color: var(--mc-pop); box-shadow: 3px 3px 0 var(--mc-pop); }
.cube-tile.missing { box-shadow: none; border-style: dashed; border-color: var(--mc-hairline); background: transparent; }
.cube-tile .silhouette { width: 64%; aspect-ratio: 1; display: grid; place-items: center; margin-bottom: 6px; border-radius: 22%; background: var(--mc-surface-raised); color: var(--mc-ink-muted); font-size: 2.25rem; font-weight: 900; transform: rotate(-10deg); }

/* club */
.club-hero { background: var(--mc-surface); border: var(--mc-stroke-2) solid var(--mc-outline); border-radius: 32px; box-shadow: var(--mc-sticker-md); padding: 28px 24px; }
@media (min-width: 992px) { .club-hero { padding: 40px; } }
.club-hero .tier-cube { width: 72px; height: 72px; }
.stat-box { display: flex; flex-direction: column; gap: 2px; padding: 16px; border: var(--mc-stroke-2) solid var(--mc-outline); border-radius: var(--mc-radius-md); background: var(--mc-sky-soft); }
.stat-box .value { font-size: 1.75rem; font-weight: 900; line-height: 1.1; }
.stat-box .label { font-size: .8125rem; font-weight: 700; color: var(--mc-ink-muted); }
.missions li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 2px solid var(--mc-hairline); }
.missions li:last-child { border-bottom: 0; }
.missions li .tier-cube { width: 44px; height: 44px; }
.missions li:not(.done) .tier-cube { opacity: .45; filter: grayscale(1); }
.missions .mc-progress { height: 12px; }
.reward { height: 100%; display: flex; flex-direction: column; padding: 16px; border: var(--mc-stroke-2) solid var(--mc-outline); border-radius: var(--mc-radius-md); background: var(--mc-surface); }
.reward form, .reward > .small.fw-semibold { margin-top: auto; }
.reward.locked { border-style: dashed; border-color: var(--mc-hairline); }
code.promo { font-weight: 900; color: var(--mc-ink); background: var(--mc-pop); border: 2px solid #221E1F; border-radius: 6px; padding: 1px 6px; margin-left: 6px; }
code.promo.used { background: var(--mc-surface-raised); text-decoration: line-through; }
.leaderboard li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 2px solid var(--mc-hairline); }
.leaderboard li:last-child { border-bottom: 0; }
.leaderboard .rank { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; border: 2px solid var(--mc-outline); font-weight: 900; font-size: .875rem; flex: none; }
.leaderboard li:nth-child(1) .rank { background: var(--mc-tier-gold); color: #221E1F; border-color: #221E1F; }
.leaderboard li:nth-child(2) .rank { background: var(--mc-tier-silver); color: #221E1F; border-color: #221E1F; }
.leaderboard li:nth-child(3) .rank { background: var(--mc-tier-bronze); color: #221E1F; border-color: #221E1F; }
.leaderboard li.me { background: var(--mc-sky-soft); border-radius: var(--mc-radius-sm); padding-inline: 8px; }
.club-banner .tiers .tier .small { font-weight: 700; }

/* ==========================================================================
   Stores, requests, reviews, content (stage 4)
   ========================================================================== */
.map-card { overflow: hidden; }
#map { height: 520px; width: 100%; z-index: 0; }
#map.map-sm { height: 300px; }
@media (max-width: 991.98px) { #map { height: 360px; } }
.mc-pin-icon { background: none; border: 0; }
.leaflet-popup-content-wrapper { border: var(--mc-stroke-2) solid #221E1F; border-radius: var(--mc-radius-md); box-shadow: 3px 3px 0 #221E1F; font-family: var(--mc-font); }
.leaflet-popup-content a { color: #176690; font-weight: 700; }
.store-list { display: grid; gap: 12px; max-height: 560px; overflow-y: auto; padding: 2px 6px 6px 2px; }
@media (max-width: 991.98px) { .store-list { max-height: none; } }
.store-item h2 a { color: var(--mc-ink); text-decoration: none; }
.store-item h2 a:hover { text-decoration: underline; }

.stars { display: inline-flex; gap: 2px; vertical-align: -2px; }
.stars .star { width: 15px; height: 15px; background: var(--mc-hairline); -webkit-mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3e%3cpath d='M12 2l3 6.6 7.2.8-5.4 4.9 1.5 7.1L12 17.8 5.7 21.4l1.5-7.1L1.8 9.4 9 8.6z'/%3e%3c/svg%3e") center/contain no-repeat; mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3e%3cpath d='M12 2l3 6.6 7.2.8-5.4 4.9 1.5 7.1L12 17.8 5.7 21.4l1.5-7.1L1.8 9.4 9 8.6z'/%3e%3c/svg%3e") center/contain no-repeat; }
.stars .star.full { background: #E8A900; }
.stars .star.half { background: linear-gradient(90deg, #E8A900 50%, var(--mc-hairline) 50%); }
.dist-row { display: flex; align-items: center; gap: 8px; font-size: .8125rem; font-weight: 700; margin-bottom: 4px; }
.dist-row .mc-progress { height: 10px; }
.dist-row .mc-progress > span { background: var(--mc-pop); }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; border: 0; padding: 0; margin: 0; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label { width: 32px; height: 32px; cursor: pointer; background: var(--mc-hairline); -webkit-mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3e%3cpath d='M12 2l3 6.6 7.2.8-5.4 4.9 1.5 7.1L12 17.8 5.7 21.4l1.5-7.1L1.8 9.4 9 8.6z'/%3e%3c/svg%3e") center/contain no-repeat; mask: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3e%3cpath d='M12 2l3 6.6 7.2.8-5.4 4.9 1.5 7.1L12 17.8 5.7 21.4l1.5-7.1L1.8 9.4 9 8.6z'/%3e%3c/svg%3e") center/contain no-repeat; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { background: #E8A900; }
.star-input input:focus-visible + label { outline: 3px solid var(--mc-focus); outline-offset: 2px; }
.review-list li { padding: 16px 0; border-bottom: 2px solid var(--mc-hairline); }
.review-list li:first-child { padding-top: 0; }
.review-list li.mine { background: var(--mc-sky-soft); border-radius: var(--mc-radius-md); padding: 12px 16px; border: 0; margin-bottom: 8px; }
.review-list .report summary { color: var(--mc-ink-muted); cursor: pointer; width: max-content; }

.notification { display: flex; flex-direction: column; gap: 4px; width: 100%; text-align: left; padding: 14px 16px; border: var(--mc-stroke-1) solid var(--mc-hairline); border-radius: var(--mc-radius-md); background: var(--mc-surface); color: var(--mc-ink); font: inherit; cursor: pointer; }
.notification.unread { border: var(--mc-stroke-2) solid var(--mc-outline); box-shadow: var(--mc-sticker-sm); }
.notification.unread strong::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--mc-sky); border: 2px solid #221E1F; margin-right: 8px; transform: rotate(-12deg); }

.news-hero { aspect-ratio: 16 / 7; display: grid; place-items: center; background: var(--mc-sky-soft); }
.news-hero img { max-height: 70%; max-width: 50%; }
.article-body { font-size: 1.0625rem; line-height: 1.75; }

/* ===================================================== Stage 5 · admin panel */
.admin-nav {
    display: flex; gap: .4rem; overflow-x: auto; padding: .35rem;
    background: var(--mc-surface, #fff); border: 2px solid var(--mc-ink, #221E1F);
    border-radius: 14px; box-shadow: 4px 4px 0 var(--mc-ink, #221E1F);
    scrollbar-width: thin;
}
.admin-nav a {
    flex: 0 0 auto; padding: .4rem .8rem; border-radius: 10px; font-weight: 700; font-size: .875rem;
    color: inherit; text-decoration: none; white-space: nowrap;
}
.admin-nav a:hover { background: rgba(68, 175, 227, .15); }
.admin-nav a.active { background: var(--mc-sky, #44AFE3); color: #fff; }

.admin-rows li + li { border-top: 1px solid rgba(34, 30, 31, .1); }
.admin-rows a {
    display: flex; align-items: center; gap: .85rem; padding: .75rem 1rem;
    color: inherit; text-decoration: none;
}
.admin-rows a:hover { background: rgba(68, 175, 227, .08); }
.admin-rows img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; border: 2px solid var(--mc-ink, #221E1F); flex: 0 0 auto; }
.admin-rows li.inactive { opacity: .55; }
.min-w-0 { min-width: 0; }

.admin-thumb { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; border: 2px solid var(--mc-ink, #221E1F); }
.gallery-item { display: grid; gap: .3rem; justify-items: center; cursor: pointer; }
.gallery-item img { width: 88px; height: 88px; object-fit: cover; border-radius: 10px; border: 2px solid var(--mc-ink, #221E1F); }
.gallery-item:has(input:checked) img { opacity: .35; outline: 3px solid #dc3545; }

.bar-chart { display: flex; align-items: flex-end; gap: .35rem; height: 220px; padding-top: .5rem; }
.bar-chart .bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: .25rem; }
.bar-chart .fill {
    width: 100%; max-width: 34px; background: var(--mc-sky, #44AFE3);
    border: 2px solid var(--mc-ink, #221E1F); border-bottom-width: 0; border-radius: 6px 6px 0 0;
    transition: height .4s ease;
}
.bar-chart .bar:hover .fill { background: var(--mc-ink, #221E1F); }
.bar-chart .day { font-size: .7rem; font-weight: 700; opacity: .7; }

.todo li { display: flex; justify-content: space-between; align-items: center; padding: .45rem 0; }
.todo li + li { border-top: 1px dashed rgba(34, 30, 31, .15); }
.todo a { font-weight: 700; color: inherit; }

[data-bs-theme="dark"] .admin-nav { background: #2b2728; border-color: #f5f5f5; box-shadow: 4px 4px 0 #44AFE3; }
[data-bs-theme="dark"] .admin-rows li + li { border-color: rgba(255, 255, 255, .1); }

/* ===================================================== Stage 6 · integrations */
.btn-social { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; }
.phone-verify { border-top: 2px dashed var(--mc-hairline); }

/* ===================================================== Legal pages */
.legal-nav { display: grid; gap: .25rem; position: sticky; top: 96px; }
.legal-nav a { padding: .5rem .85rem; border-radius: 12px; font-weight: 700; color: inherit; text-decoration: none; border: 2px solid transparent; }
.legal-nav a:hover { background: rgba(68, 175, 227, .12); }
.legal-nav a.active { border-color: var(--mc-ink); background: var(--mc-sky); color: #221E1F; box-shadow: 3px 3px 0 var(--mc-ink); }
@media (max-width: 991.98px) {
    .legal-nav { display: flex; overflow-x: auto; position: static; }
    .legal-nav a { flex: 0 0 auto; }
}
.legal-doc { max-width: 780px; }
.legal-doc h1 { margin-bottom: 1rem; }
.legal-doc h2 { font-size: 1.25rem; margin: 2rem 0 .75rem; }
.legal-doc li { margin-bottom: .4rem; }
.legal-doc .legal-company { margin-bottom: 1rem; }

/* ---------- About page ---------- */
.about-hero { padding-block: 32px 48px; }
.about-frame { border: var(--mc-stroke-2) solid var(--mc-outline); border-radius: var(--mc-radius-lg); box-shadow: var(--mc-sticker-md); overflow: hidden; background: var(--mc-surface); }
.about-frame img { display: block; width: 100%; height: auto; }
.about-frame-coral { background: #E56D5A; }
.about-mission { background: var(--mc-pop); color: #221E1F; }
.about-mission h2 { color: #221E1F; }
.lead-sm { font-size: 1.125rem; font-weight: 600; }
.about-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.about-list li { position: relative; padding-left: 34px; font-weight: 700; }
.about-list li::before { content: ""; position: absolute; left: 0; top: .1em; width: 22px; height: 22px; background: var(--mc-sky); border: var(--mc-stroke-1, 2px) solid #221E1F; border-radius: 6px; transform: rotate(-6deg); }
.about-range { overflow: hidden; }
.about-range-media { border-bottom: var(--mc-stroke-2) solid var(--mc-outline); }
.about-range-media img { display: block; width: 100%; height: auto; }
.about-range-boys { background: #E56D5A; }
.about-range-girls { background: #E070C0; }
.about-marks { display: flex; flex-wrap: wrap; gap: 10px; }
.about-mark { display: inline-flex; align-items: center; justify-content: center; min-width: 72px; padding: 6px 14px; font-weight: 900; letter-spacing: .02em; border: var(--mc-stroke-2) solid var(--mc-outline); border-radius: 999px; background: var(--mc-surface); box-shadow: var(--mc-sticker-sm); }
.about-cert-thumb { flex: 0 0 120px; display: block; border: var(--mc-stroke-2) solid var(--mc-outline); border-radius: var(--mc-radius-md); overflow: hidden; box-shadow: var(--mc-sticker-sm); background: #fff; align-self: flex-start; }
.about-cert-thumb img { display: block; width: 100%; height: auto; }
@media (max-width: 400px) { .about-cert .card-body { flex-direction: column; } .about-cert-thumb { flex-basis: auto; width: 140px; } }
