/* ==========================================================================
   BidBazaar storefront components (header, listing cards, auction panel, account area)
   ========================================================================== */
body.mk { background: var(--bg); }
.mk main { min-height: 60vh; }
.container-xl2 { max-width: 1320px; }

/* ---------- top strip ---------- */
.mk-top { background: #06201a; color: #aeb3dc; font-size: .78rem; }
.mk-top .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 34px; }
.mk-top a { color: #c3ddd0; font-weight: 500; }
.mk-top a:hover { color: #fff; }
.mk-top .sep { opacity: .35; margin: 0 .55rem; }
.mk-top .hi b { color: #fff; }

/* ---------- main header ---------- */
.mk-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1030; }
.mk-header .container { display: flex; align-items: center; gap: 1.1rem; min-height: 72px; }
.mk-logo { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.35rem; letter-spacing: -.03em; color: var(--ink); white-space: nowrap; }
.mk-logo .logo { width: 38px; height: 38px; border-radius: 12px; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 1.15rem; transform: rotate(-8deg); box-shadow: 0 8px 18px -8px rgba(11, 110, 79, .8); }
.mk-logo span b { color: var(--accent); }
.mk-shop { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: .55rem .9rem; font-weight: 600; font-size: .86rem; color: var(--ink); white-space: nowrap; }
.mk-shop:hover { border-color: #bfe0d2; background: var(--accent-soft); }
.mk-search { flex: 1; position: relative; display: flex; border: 2px solid var(--ink); border-radius: 14px; background: #fff; }
.mk-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 .22rem rgba(11, 110, 79, .14); }
.mk-search select { border: 0; border-right: 1px solid var(--line); background: #f6f9f7; border-radius: 12px 0 0 12px; padding: 0 .8rem; font-size: .85rem; font-weight: 600; max-width: 170px; outline: 0; color: var(--ink-2); }
.mk-search input { flex: 1; border: 0; padding: .72rem 1rem; outline: 0; background: transparent; font-size: .95rem; min-width: 0; }
.mk-search button { border: 0; background: var(--accent); color: #fff; font-weight: 700; padding: 0 1.4rem; border-radius: 0 11px 11px 0; }
.mk-search button:hover { background: var(--accent-600); }
.mk-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); z-index: 60; display: none; overflow: hidden; }
.mk-suggest.show { display: block; }
.mk-suggest a { display: flex; align-items: center; gap: .7rem; padding: .6rem 1rem; color: var(--ink); font-size: .9rem; }
.mk-suggest a:hover { background: var(--accent-soft); }
.mk-suggest a i { color: var(--muted); }
.mk-suggest small { margin-left: auto; color: var(--muted); }
.mk-actions { display: flex; align-items: center; gap: .35rem; }
.mk-ic { position: relative; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--ink); font-size: 1.25rem; background: transparent; border: 0; }
.mk-ic:hover { background: var(--accent-soft); color: var(--accent); }
.mk-badge { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--red); color: #fff; font-size: .66rem; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }
.mk-badge:empty, .mk-badge[data-zero] { display: none; }
.mk-sell, .mk-header .btn { white-space: nowrap; }

/* category strip */
.mk-catnav { background: #fff; border-bottom: 1px solid var(--line); }
.mk-catnav .container { display: flex; gap: .15rem; overflow-x: auto; scrollbar-width: none; padding-top: .35rem; padding-bottom: .35rem; }
.mk-catnav .container::-webkit-scrollbar { display: none; }
.mk-catnav a { white-space: nowrap; padding: .5rem .85rem; border-radius: 10px; font-size: .86rem; font-weight: 600; color: var(--ink-2); display: inline-flex; align-items: center; gap: .4rem; }
.mk-catnav a:hover, .mk-catnav a.active { background: var(--accent-soft); color: var(--accent-ink); }
.mk-catnav a.hot { color: #b45309; }
.mk-catnav .divider-v { width: 1px; background: var(--line); margin: .35rem .35rem; flex-shrink: 0; }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; padding: 1.4rem 0; z-index: 70; }
.mega.show { display: block; }
.mk-header .mega .container { display: block; min-height: 0; padding-top: 0; padding-bottom: 0; }
.mega { max-height: 80vh; overflow-y: auto; }
.mega-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1.2rem 1.5rem; }
.mega h6 { font-size: .86rem; margin-bottom: .45rem; display: flex; align-items: center; gap: .5rem; }
.mega h6 i { color: var(--accent); }
.mega a { display: block; font-size: .84rem; color: var(--muted); padding: .15rem 0; }
.mega a:hover { color: var(--accent); }

/* mobile bottom nav */
.mk-bottom { display: none; }
@media (max-width: 991.98px) {
    .mk-header .container { flex-wrap: wrap; min-height: 0; padding-top: .6rem; padding-bottom: .6rem; gap: .6rem; }
    .mk-search { order: 5; flex-basis: 100%; }
    .mk-search select { display: none; }
    .mk-actions { margin-left: auto; }
    .mk-top .d-none-sm { display: none; }
    body.mk { padding-bottom: 68px; }
    .mk-bottom { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 1035; background: #fff; border-top: 1px solid var(--line); padding: .3rem .4rem calc(.3rem + env(safe-area-inset-bottom)); box-shadow: 0 -8px 24px -16px rgba(15, 23, 42, .3); }
    .mk-bottom a { flex: 1; text-align: center; color: var(--muted); font-size: .66rem; font-weight: 600; padding: .3rem 0; border-radius: 12px; position: relative; }
    .mk-bottom a i { display: block; font-size: 1.3rem; line-height: 1.2; }
    .mk-bottom a.active { color: var(--accent); background: var(--accent-soft); }
    .mk-bottom a.sell i { background: var(--grad); color: #fff; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; margin: -20px auto 2px; box-shadow: 0 8px 18px -6px rgba(11, 110, 79, .8); font-size: 1.25rem; }
}
@media (max-width: 575.98px) { .mk-logo { font-size: 1.15rem; } .mk-logo .logo { width: 34px; height: 34px; } .mk-shop { display: none; } }

/* ---------- hero ---------- */
.mk-hero { padding: 1.25rem 0 .5rem; }
.hero-grid { display: grid; grid-template-columns: 2.2fr 1fr; gap: 1rem; }
.hero-slide { position: relative; min-height: 340px; border-radius: 22px; padding: 2.6rem 2.8rem; color: #fff; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.hero-slide::after { content: ''; position: absolute; right: -60px; bottom: -80px; width: 380px; height: 380px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.hero-slide::before { content: ''; position: absolute; right: 120px; top: -90px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .06); }
.hero-slide .art { position: absolute; right: 5%; top: 50%; transform: translateY(-50%) rotate(-8deg); font-size: 11rem; opacity: .22; line-height: 1; }
.hero-slide .eyebrow { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; opacity: .85; }
.hero-slide h1 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.9rem); font-weight: 800; line-height: 1.1; max-width: 520px; margin: .6rem 0; }
.hero-slide p { max-width: 460px; opacity: .88; font-size: 1.02rem; }
.hero-slide .btn { position: relative; z-index: 2; }
.theme-brand, .theme-indigo { background: linear-gradient(135deg, #0a2e25, #0b6e4f 65%, #159a72); }
.theme-amber { background: linear-gradient(135deg, #d9a021, #ea580c); }
.theme-emerald { background: linear-gradient(135deg, #059669, #0d9488 70%, #0891b2); }
.theme-rose { background: linear-gradient(135deg, #e11d48, #be185d 70%, #9333ea); }
.theme-slate { background: linear-gradient(135deg, #1e293b, #334155 70%, #475569); }
.hero-side { display: grid; grid-template-rows: 1fr 1fr; gap: 1rem; }
.hero-mini { border-radius: 20px; padding: 1.3rem 1.4rem; color: #fff; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.hero-mini h5 { color: #fff; margin: .25rem 0; font-size: 1.15rem; }
.hero-mini small { opacity: .85; }
.hero-mini .art { position: absolute; right: -6px; bottom: -14px; font-size: 5.5rem; opacity: .2; }
.hero-mini a { color: #fff; font-weight: 700; font-size: .84rem; margin-top: .4rem; }
.carousel-indicators [data-bs-target] { width: 9px; height: 9px; border-radius: 50%; border: 0; }
.hero-trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; margin-top: 1rem; }
.trust { display: flex; align-items: center; gap: .75rem; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: .85rem 1rem; }
.trust i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 1.15rem; flex-shrink: 0; }
.trust b { display: block; font-size: .88rem; line-height: 1.2; }
.trust span { font-size: .76rem; color: var(--muted); }
@media (max-width: 991.98px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-side { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
    .hero-slide { min-height: 280px; padding: 1.8rem 1.5rem 2.6rem; border-radius: 18px; }
    .hero-slide .art { font-size: 7rem; right: -1rem; }
    .hero-trust { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575.98px) { .hero-side { grid-template-columns: 1fr; } }

/* ---------- sections ---------- */
.mk-sec { padding: 1.6rem 0 .4rem; }
.mk-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.mk-sec-head h2 { font-size: 1.35rem; margin: 0; font-weight: 800; display: flex; align-items: center; gap: .55rem; }
.mk-sec-head h2 i { color: var(--gold); }
.mk-sec-head p { margin: .15rem 0 0; color: var(--muted); font-size: .88rem; }
.mk-sec-head a.more { font-weight: 700; font-size: .88rem; white-space: nowrap; }
.cat-circles { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 1rem .6rem; }
.cat-circle { text-align: center; color: var(--ink); font-size: .8rem; font-weight: 600; }
.cat-circle .c { width: 78px; height: 78px; margin: 0 auto .5rem; border-radius: 50%; display: grid; place-items: center; font-size: 1.9rem; background: #fff; border: 1px solid var(--line); color: var(--accent); transition: all .18s; box-shadow: var(--shadow-sm); }
.cat-circle:hover .c { background: var(--grad); color: #fff; transform: translateY(-3px); border-color: transparent; box-shadow: 0 12px 22px -12px rgba(11, 110, 79, .8); }
.promo-strip { border-radius: 20px; padding: 1.5rem 1.8rem; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; position: relative; overflow: hidden; }
.promo-strip h3 { color: #fff; margin: 0 0 .2rem; font-size: 1.35rem; }
.promo-strip p { margin: 0; opacity: .88; }
.promo-strip .art { position: absolute; right: 20%; top: -20px; font-size: 7rem; opacity: .15; }
.how-step { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.4rem; height: 100%; position: relative; }
.how-step .n { width: 40px; height: 40px; border-radius: 12px; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 800; margin-bottom: .8rem; }
.how-step h6 { font-size: 1rem; }
.how-step p { color: var(--muted); font-size: .88rem; margin: 0; }
.store-card { display: flex; align-items: center; gap: .9rem; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1rem; color: var(--ink); transition: all .15s; height: 100%; }
.store-card:hover { border-color: #bfe0d2; box-shadow: var(--shadow); transform: translateY(-2px); }
.store-card .avatar { width: 52px; height: 52px; font-size: 1.05rem; }

/* ---------- listing cards ---------- */
.l-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(214px, 1fr)); gap: 1rem; }
.h-rail { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x proximity; padding: .3rem .15rem 1rem; margin: 0 -.15rem; scrollbar-width: thin; }
.h-rail .l-card { flex: 0 0 232px; scroll-snap-align: start; }
.l-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; transition: all .18s ease; position: relative; color: var(--ink); }
.l-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: #c3e0d3; color: var(--ink); }
.l-img { position: relative; aspect-ratio: 4 / 3; background: #ecf3ef; overflow: hidden; display: block; }
.l-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.l-card:hover .l-img img { transform: scale(1.05); }
.ph { width: 100%; height: 100%; display: grid; place-items: center; color: rgba(255, 255, 255, .92); font-size: 3.4rem; background: linear-gradient(135deg, hsl(var(--h, 245) 70% 56%), hsl(calc(var(--h, 245) + 40) 75% 46%)); position: relative; }
.ph::after { content: ''; position: absolute; width: 150px; height: 150px; border-radius: 50%; right: -40px; bottom: -50px; background: rgba(255, 255, 255, .12); }
.ph i { position: relative; z-index: 1; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .22)); }
.l-badge { position: absolute; left: .65rem; top: .65rem; z-index: 2; display: inline-flex; gap: .3rem; align-items: center; font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: .28rem .6rem; border-radius: 999px; background: rgba(15, 23, 42, .85); color: #fff; backdrop-filter: blur(4px); }
.l-badge.auction { background: var(--grad); }
.l-badge.bin { background: #0f172a; }
.l-badge.feat { background: var(--grad-gold); left: auto; right: 3.3rem; }
.l-fav { position: absolute; right: .6rem; top: .6rem; z-index: 3; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .95); display: grid; place-items: center; color: var(--ink-2); box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .3); transition: all .15s; }
.l-fav:hover { color: var(--red); transform: scale(1.1); }
.l-fav.on { color: var(--red); }
.l-fav.on i::before { content: "\f415"; }
.l-body { padding: .85rem .95rem 1rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.l-title { font-size: .92rem; font-weight: 600; line-height: 1.35; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.l-cond { font-size: .74rem; color: var(--muted); }
.l-price { font-size: 1.28rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink); line-height: 1.15; margin-top: .15rem; }
.l-price small { font-size: .7rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.l-meta { display: flex; align-items: center; justify-content: space-between; gap: .4rem; font-size: .76rem; color: var(--muted); }
.l-ship { font-size: .76rem; color: #0e7a3c; font-weight: 600; }
.timer { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink-2); display: inline-flex; align-items: center; gap: .3rem; }
.timer.urgent { color: var(--red); }
.timer.ended { color: var(--muted); }
.l-timer { background: var(--gold-soft); color: #92580a; border-radius: 8px; padding: .2rem .5rem; font-size: .74rem; }
.l-timer.urgent { background: #ffeceb; color: var(--red); }

/* ---------- search page ---------- */
.filter-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.1rem; position: sticky; top: 92px; }
.filter-card h6 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 1.1rem 0 .55rem; }
.filter-card h6:first-child { margin-top: 0; }
.filter-card .form-check { margin-bottom: .3rem; }
.filter-card .form-check-label { font-size: .88rem; }
.cat-tree a { display: block; padding: .28rem 0; font-size: .88rem; color: var(--ink-2); }
.cat-tree a.active { color: var(--accent); font-weight: 700; }
.cat-tree a:hover { color: var(--accent); }
.cat-tree .sub { padding-left: .9rem; border-left: 2px solid var(--line); margin-left: .2rem; }
.result-bar { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; margin-bottom: 1rem; }
.active-filters .chip { cursor: pointer; }
.crumbs { font-size: .82rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }

/* ---------- listing detail ---------- */
.gallery-main { background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; position: relative; }
.gallery-main img, .gallery-main video { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.gallery-main .ph { font-size: 7rem; }
.thumbs { display: flex; gap: .6rem; margin-top: .7rem; overflow-x: auto; }
.thumbs button { flex: 0 0 76px; height: 62px; border-radius: 12px; border: 2px solid transparent; overflow: hidden; padding: 0; background: #ecf3ef; }
.thumbs button.on { border-color: var(--accent); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.buy-panel { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 1.4rem; }
.buy-panel h1 { font-size: 1.4rem; line-height: 1.3; font-weight: 800; }
.bid-now { font-size: 2.1rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.bid-lbl { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--muted); }
.countdown-box { display: flex; gap: .5rem; margin: .4rem 0; }
.countdown-box .u { background: var(--ink); color: #fff; border-radius: 12px; padding: .5rem .6rem; text-align: center; min-width: 58px; }
.countdown-box .u b { display: block; font-size: 1.35rem; font-variant-numeric: tabular-nums; line-height: 1.1; }
.countdown-box .u span { font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; opacity: .7; }
.countdown-box.urgent .u { background: var(--red); }
.countdown-box.ended .u { background: #94a3b8; }
.bid-form .input-group-text { font-weight: 700; background: var(--accent-soft); color: var(--accent-ink); border-color: #bfe0d2; }
.bid-form .form-control { font-weight: 700; font-size: 1.1rem; border-color: #bfe0d2; }
.quick-bids { display: flex; gap: .5rem; flex-wrap: wrap; }
.quick-bids button { border: 1px solid #bfe0d2; background: #fff; border-radius: 999px; padding: .28rem .8rem; font-size: .8rem; font-weight: 700; color: var(--accent-ink); }
.quick-bids button:hover { background: var(--accent-soft); }
.res-pill { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 700; padding: .25rem .7rem; border-radius: 999px; }
.res-pill.ok { background: #e6f7ee; color: #0e7a3c; }
.res-pill.no { background: var(--gold-soft); color: #92580a; }
.info-row { display: flex; gap: .9rem; align-items: flex-start; padding: .75rem 0; border-top: 1px solid var(--line); font-size: .88rem; }
.info-row i { color: var(--accent); font-size: 1.15rem; margin-top: 2px; }
.info-row b { display: block; font-size: .86rem; }
.info-row span { color: var(--muted); }
.seller-box { display: flex; gap: .9rem; align-items: center; background: #f6f9f7; border: 1px solid var(--line); border-radius: 16px; padding: .9rem 1rem; }
.stars { color: #d9a021; letter-spacing: 1px; white-space: nowrap; }
.stars .off { color: #d3ddd8; }
.tabs-bb { border-bottom: 1px solid var(--line); gap: .2rem; flex-wrap: nowrap; overflow-x: auto; }
.tabs-bb .nav-link { border: 0; color: var(--muted); font-weight: 700; font-size: .92rem; padding: .8rem 1.1rem; border-bottom: 3px solid transparent; white-space: nowrap; background: none; }
.tabs-bb .nav-link.active { color: var(--accent); border-bottom-color: var(--accent); background: none; }
.spec-table td { padding: .55rem .2rem; font-size: .9rem; border-color: var(--line); }
.spec-table td:first-child { color: var(--muted); width: 38%; }
.bid-row { display: flex; align-items: center; gap: .8rem; padding: .7rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.bid-row:last-child { border: 0; }
.bid-row .amt { margin-left: auto; font-weight: 800; }
.bid-row.top .amt { color: var(--green); }
.sticky-buy { position: sticky; top: 92px; }
@media (max-width: 991.98px) { .sticky-buy { position: static; } .bid-now { font-size: 1.8rem; } }

/* ---------- account / seller area ---------- */
.acc-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 1.4rem; padding: 1.4rem 0 2rem; align-items: start; }
.acc-nav { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: .7rem; position: sticky; top: 92px; }
.acc-nav .who { display: flex; gap: .7rem; align-items: center; padding: .6rem .6rem 1rem; border-bottom: 1px solid var(--line); margin-bottom: .5rem; }
.acc-nav .who b { display: block; font-size: .92rem; line-height: 1.2; }
.acc-nav .who small { color: var(--muted); font-size: .74rem; }
.acc-nav h6 { font-size: .66rem; text-transform: uppercase; letter-spacing: .12em; color: #98a0b9; padding: .8rem .7rem .3rem; margin: 0; }
.acc-nav a { display: flex; align-items: center; gap: .7rem; padding: .55rem .7rem; border-radius: 11px; color: var(--ink-2); font-size: .9rem; font-weight: 500; }
.acc-nav a i { font-size: 1.05rem; width: 1.2rem; text-align: center; color: var(--muted); }
.acc-nav a:hover { background: #f1f6f3; }
.acc-nav a.active { background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; }
.acc-nav a.active i { color: var(--accent); }
.acc-nav .cnt { margin-left: auto; background: var(--red); color: #fff; font-size: .65rem; font-weight: 700; border-radius: 999px; padding: .08rem .45rem; }
.acc-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.acc-title h2 { font-size: 1.5rem; font-weight: 800; margin: 0; }
.acc-title p { margin: .15rem 0 0; color: var(--muted); font-size: .9rem; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.1rem 1.2rem; display: flex; gap: .9rem; align-items: center; height: 100%; color: var(--ink); transition: all .15s; }
a.tile:hover { border-color: #bfe0d2; box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.tile .num { font-size: 1.5rem; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.tile .lbl { font-size: .78rem; color: var(--muted); font-weight: 500; }
.row-item { display: flex; gap: .9rem; align-items: center; padding: .85rem 1.1rem; border-bottom: 1px solid var(--line); }
.row-item:last-child { border: 0; }
.row-item .thumb { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; flex-shrink: 0; background: #ecf3ef; }
.row-item .thumb .ph { font-size: 1.5rem; }
.row-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.row-item .grow { flex: 1; min-width: 0; }
.row-item .t { font-weight: 600; font-size: .92rem; line-height: 1.3; color: var(--ink); }
.row-item .s { font-size: .78rem; color: var(--muted); }
.track { display: flex; justify-content: space-between; position: relative; margin: 1rem 0 .4rem; }
.track::before { content: ''; position: absolute; left: 6%; right: 6%; top: 17px; height: 3px; background: var(--line); }
.track .st { text-align: center; position: relative; flex: 1; font-size: .76rem; color: var(--muted); font-weight: 600; }
.track .st .d { width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 3px solid var(--line); margin: 0 auto .35rem; display: grid; place-items: center; color: #b7bdd2; position: relative; z-index: 1; font-size: .95rem; }
.track .st.done .d { background: var(--accent); border-color: var(--accent); color: #fff; }
.track .st.done { color: var(--ink); }
.track .st.now .d { box-shadow: 0 0 0 5px rgba(11, 110, 79, .18); }
.track .st.bad .d { background: var(--red); border-color: var(--red); color: #fff; }
.chat { display: flex; flex-direction: column; gap: .6rem; padding: 1.1rem; max-height: 460px; overflow-y: auto; background: #f6f9f7; }
.bubble { max-width: 78%; padding: .6rem .9rem; border-radius: 16px; font-size: .9rem; line-height: 1.45; white-space: pre-line; }
.bubble small { display: block; opacity: .65; font-size: .68rem; margin-top: .2rem; }
.bubble.me { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.bubble.them { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bubble.admin { align-self: center; background: var(--gold-soft); border: 1px dashed #f3c46a; max-width: 90%; }
.pay-card { border: 2px solid var(--line); border-radius: 14px; padding: .85rem 1rem; cursor: pointer; display: flex; gap: .8rem; align-items: center; transition: all .15s; margin: 0; }
.pay-card:hover { border-color: #bfe0d2; }
.pay-card:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.pay-card i { font-size: 1.4rem; color: var(--accent); }
.sum-line { display: flex; justify-content: space-between; padding: .35rem 0; font-size: .92rem; }
.sum-line.total { border-top: 1px dashed #cbdcd3; margin-top: .4rem; padding-top: .8rem; font-size: 1.15rem; font-weight: 800; }
.addr-card { border: 2px solid var(--line); border-radius: 14px; padding: .9rem 1rem; display: block; cursor: pointer; height: 100%; margin: 0; }
.addr-card:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.upload-drop { border: 2px dashed #bfe0d2; border-radius: 16px; padding: 1.4rem; text-align: center; background: #fafcfb; color: var(--muted); }
.preview-thumbs { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .7rem; }
.preview-thumbs .pv { width: 84px; height: 70px; border-radius: 10px; overflow: hidden; position: relative; border: 1px solid var(--line); background: #fff; }
.preview-thumbs .pv img { width: 100%; height: 100%; object-fit: cover; }
.fee-box { background: var(--gold-soft); border: 1px solid #f3d38a; border-radius: 14px; padding: .9rem 1rem; font-size: .88rem; }
.format-pick { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.format-pick label { border: 2px solid var(--line); border-radius: 16px; padding: 1rem; cursor: pointer; margin: 0; display: block; background: #fff; }
.format-pick label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.format-pick i { font-size: 1.5rem; color: var(--accent); }
.rating-input { display: inline-flex; flex-direction: row-reverse; gap: .2rem; }
.rating-input input { display: none; }
.rating-input label { font-size: 1.9rem; color: #d3ddd8; cursor: pointer; line-height: 1; }
.rating-input input:checked ~ label, .rating-input label:hover, .rating-input label:hover ~ label { color: #d9a021; }
.toast-bid { position: fixed; right: 1rem; bottom: 1rem; z-index: 2000; max-width: 340px; }
@media (max-width: 991.98px) {
    .acc-shell { grid-template-columns: 1fr; gap: .8rem; padding-top: 1rem; }
    .acc-nav { position: static; padding: .4rem; display: flex; overflow-x: auto; gap: .25rem; scrollbar-width: none; }
    .acc-nav .who, .acc-nav h6 { display: none; }
    .acc-nav a { white-space: nowrap; padding: .5rem .8rem; }
    .acc-nav a i { display: none; }
    .format-pick { grid-template-columns: 1fr; }
    .bubble { max-width: 90%; }
}
@media (max-width: 575.98px) {
    .l-grid { grid-template-columns: repeat(2, 1fr); gap: .65rem; }
    .l-body { padding: .65rem .7rem .8rem; }
    .l-price { font-size: 1.08rem; }
    .h-rail .l-card { flex-basis: 168px; }
    .acc-title h2 { font-size: 1.25rem; }
    .countdown-box .u { min-width: 52px; }
    .track .st { font-size: .66rem; }
    .track .st .d { width: 30px; height: 30px; }
    .track::before { top: 14px; }
}

/* ---------- footer ---------- */
footer.site { background: #06201a; color: #8fb0a3; margin-top: 3rem !important; padding: 3rem 0 1.5rem; }
footer.site h6 { color: #fff; font-size: .9rem; margin-bottom: .9rem; }
footer.site a { display: block; color: #8fb0a3; font-size: .86rem; padding: .22rem 0; }
footer.site hr { border-color: rgba(255, 255, 255, .1); opacity: 1; }
footer.site .mk-logo { color: #fff; }
footer.site .mk-logo span b { color: var(--gold); }
.foot-social a { display: inline-grid !important; width: 36px; height: 36px; border-radius: 10px; background: rgba(255, 255, 255, .08); place-items: center; margin-right: .4rem; color: #fff; }
.foot-social a:hover { background: var(--accent); }
.back-top { position: fixed; right: 1rem; bottom: 5.2rem; z-index: 1000; display: none; }

/* prevent site-wide horizontal scroll: let flex/grid children shrink, clip stray overflow */
html, body { max-width: 100%; overflow-x: clip; }
main, main .row > *, main [class*="col-"] { min-width: 0; }
.h-rail { max-width: 100%; }
.min-w-0 { min-width: 0; }

/* ---------- account dashboard polish ---------- */
.acc-hero { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1.6rem 1.8rem; margin-bottom: 1.2rem; border-radius: 20px; color: #fff; background: radial-gradient(500px 220px at 90% -20%, rgba(255, 255, 255, .18), transparent 60%), linear-gradient(120deg, #312e81, #0b6e4f 60%, #6d5df0); box-shadow: 0 10px 28px -14px rgba(11, 110, 79, .6); }
.acc-hero .eyebrow { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; opacity: .75; font-weight: 600; }
.acc-hero h2 { font-size: 1.55rem; font-weight: 800; margin: .2rem 0 .15rem; letter-spacing: -.01em; }
.acc-hero p { margin: 0; opacity: .85; font-size: .92rem; }
.acc-hero .acts { display: flex; gap: .6rem; flex-wrap: wrap; }
.acc-hero .btn { font-weight: 600; border-radius: 12px; padding: .55rem 1rem; }
.acc-hero .btn-light { color: #064632; }
.acc-shell .tile { box-shadow: 0 1px 2px rgba(16, 24, 40, .04); position: relative; }
.acc-shell .tile .num { font-size: 1.7rem; }
.acc-shell .tile .lbl { text-transform: uppercase; letter-spacing: .06em; font-size: .68rem; font-weight: 600; }
.acc-shell .card-bb { border-radius: 18px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); overflow: hidden; }
.acc-shell .card-head { display: flex; align-items: center; justify-content: space-between; padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); background: #fafcfb; }
.acc-shell .card-head h6 { margin: 0; font-weight: 700; font-size: .95rem; }
.acc-shell .card-head h6 i { color: var(--accent); }
.acc-shell .card-head a { color: var(--accent); }
.acc-shell .card-warn { border-color: #f3d38a; }
.acc-shell .card-warn .card-head { background: var(--gold-soft); border-color: #f3d38a; }
.acc-shell a.row-item:hover, .acc-shell .row-item:hover { background: #fafcfb; }
.acc-shell .mk-sec-head { margin: 1.6rem 0 .8rem; }
.acc-shell .mk-sec-head h2 { font-weight: 700; }
.acc-shell .empty-state { padding: 2rem 1rem; }
@media (max-width: 575.98px) { .acc-hero { padding: 1.2rem; } .acc-hero h2 { font-size: 1.25rem; } .acc-hero .acts { width: 100%; } .acc-hero .acts .btn { flex: 1; } }

/* ---------- integrations (storefront) ---------- */
.wa-float { position: fixed; left: 1rem; bottom: 1.1rem; z-index: 1040; width: 52px; height: 52px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; font-size: 1.6rem; box-shadow: 0 8px 20px -6px rgba(37, 211, 102, .7); }
.wa-float:hover { color: #fff; transform: translateY(-2px); }
.foot-pay { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-size: .76rem; }
.foot-pay span.p { border: 1px solid rgba(255, 255, 255, .18); border-radius: 8px; padding: .15rem .55rem; display: inline-flex; gap: .3rem; align-items: center; }
@media (max-width: 991.98px) { .wa-float { bottom: 4.6rem; } }
