/* Front-end tokens (sizes only; colours live in base.css) */
:root { --chip-w: 92px; --sort-w: 132px; }

/* =====================================================================
   DigitalMart — storefront pages
   Page-specific rules only; tokens and components live in base.css.
   Colours only through var(--…) tokens.
   ===================================================================== */

.btn-deep { color: var(--white); background: var(--brand-deep); box-shadow: var(--shadow-brand); }
.crown-icon { color: var(--c-gold); }
.bolt-icon { color: var(--c-amber); }
.key-icon { color: var(--c-amber); }
.trophy-icon { color: var(--c-gold); }

/* ---------- home layout ---------- */
.home-grid { display: grid; grid-template-columns: 270px minmax(0, 1fr) 300px; gap: var(--gap); align-items: start; }
.home-left, .home-center, .home-right { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }

.cat-menu { display: flex; flex-direction: column; gap: 2px; padding: 14px; }
.cat-link { display: flex; align-items: center; gap: 14px; height: 48px; padding: 0 14px; border-radius: var(--radius); font-weight: 600; color: var(--text); transition: background .2s; }
.cat-link:hover { background: var(--surface-2); }
.cat-link.is-active { font-weight: 800; background: color-mix(in srgb, var(--brand) 12%, var(--surface)); }
.cat-link.is-active .icon { color: var(--brand-deep); }
.cat-icon { color: var(--tone, var(--brand)); width: 22px; height: 22px; }

/* offer card (Special Offer / Bundle Offer) */
.offer-card { gap: 6px; padding: 24px 20px; }
.offer-art { width: 150px; height: auto; margin: -6px auto 4px; }
.offer-card .promo-title { font-size: 24px; }
.offer-card .promo-big { font-size: 32px; }
.offer-card .btn { margin-top: 10px; }

/* hero */
.hero { padding: 0; min-height: 268px; }
.hero-slide { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: 10px; min-height: 268px; padding: 30px 0 30px 44px; }
.hero-copy { display: flex; flex-direction: column; gap: 10px; position: relative; z-index: 1; }
.hero-text { max-width: 440px; }
.hero .promo-actions { margin-top: 10px; }
.hero-art { width: 100%; max-height: 250px; object-fit: contain; align-self: end; }
.hero-dots { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 2; }
/* All slides share one grid cell, so the slider is always as tall as its tallest
   slide (no height jump between slides); the active one fades in. */
.hero { display: grid; }
.hero > [data-slide] { display: grid; grid-area: 1 / 1; visibility: hidden; opacity: 0; transition: opacity .45s var(--ease), visibility .45s; }
.hero > [data-slide].is-active { visibility: visible; opacity: 1; }

/* trending */
.trending { display: flex; flex-direction: column; gap: 18px; }
.trending-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 12px 14px 12px 20px; }
.trending-head .tabs { margin-left: auto; background: transparent; border: 0; }
.view-all { height: 38px; padding: 0 16px; border-radius: var(--radius); background: color-mix(in srgb, var(--brand) 8%, var(--surface)); }

/* right column */
.side-cta { display: flex; flex-direction: column; gap: 14px; padding: 26px 22px; }
.side-cta-title { max-width: 70%; font-size: 24px; }
.side-cta-art { position: absolute; top: 10px; right: 8px; width: 96px; height: auto; z-index: -1; }
.side-cta .promo-points li { font-size: 15px; }
.side-cta .btn { margin-top: 6px; }

.top-authors .card-body { padding-top: 6px; }
.rank-badge { position: relative; display: grid; place-items: center; width: 32px; height: 32px; color: var(--c-gold); }
.rank-badge .icon { width: 30px; height: 30px; fill: color-mix(in srgb, currentColor 30%, transparent); }
.rank-2 { color: var(--c-silver); }
.rank-3 { color: var(--c-bronze); }
.rank-num { position: absolute; top: 11px; font-size: 11px; font-weight: 800; color: var(--text); }

/* "Why Buy From Us" (home right sidebar) */
.why-us .card-title { display: flex; align-items: center; gap: 8px; }
.why-us-list { display: flex; flex-direction: column; gap: 14px; margin: 16px 0 0; padding: 0; list-style: none; }
.why-us-point { display: flex; align-items: flex-start; gap: 12px; }
.why-us-point > span:last-child { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.why-us-figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); text-align: center; }
.why-us-figure { display: flex; flex-direction: column; gap: 2px; }
.why-us-figure strong { font-size: 20px; font-weight: 800; color: var(--brand); }
.why-us-figure span { font-size: 12px; color: var(--muted); }
.newsletter { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 20px; text-align: center; }
.newsletter-icon { width: 46px; height: 46px; color: var(--brand); }
.newsletter-title { font-size: 22px; font-weight: 800; }
.newsletter-form { display: flex; gap: 8px; width: 100%; margin-top: 8px; padding: 5px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.newsletter-form .input { border: 0; height: 42px; }
.newsletter-form .input:focus { box-shadow: none; }
.newsletter-form .btn { height: 42px; width: 46px; flex: none; }

/* ---------- product page ---------- */
.product-page { display: grid; grid-template-columns: 240px minmax(0, 1fr) 290px; gap: var(--gap); align-items: start; }
.product-aside, .product-center, .product-side { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }

.cat-pill { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px; border-radius: var(--radius); font-weight: 700; color: var(--brand-deep); background: color-mix(in srgb, var(--brand) 12%, var(--surface)); }
[data-theme="dark"] .cat-pill { color: var(--text); }
.cat-pill-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--brand); }
.highlight-list { display: flex; flex-direction: column; gap: 12px; }
.highlight-list li { display: flex; align-items: center; gap: 12px; font-weight: 600; }

.gallery-card { padding: 0; overflow: hidden; }
.gallery-stage { position: relative; aspect-ratio: var(--product-ratio); overflow: hidden; background: var(--hero-grad); }
/* the slide is locked to the 16:9 frame; images of any shape are shown whole, never spilling over the thumbnails */
.gallery-slide { position: absolute; inset: 0; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; overflow: hidden; }
.gallery-slide img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.gallery-badge { position: absolute; top: 16px; left: 16px; }
.gallery-expand, .gallery-nav { position: absolute; display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius); color: var(--brand-deep); background: var(--white); }
.gallery-expand { top: 16px; right: 16px; }
.gallery-nav { top: 50%; transform: translateY(-50%); border-radius: 50%; }
.gallery-nav.prev { left: 16px; }
.gallery-nav.next { right: 16px; }
.gallery-zoom { cursor: zoom-in; }
/* related products (bottom of the product page) — single list like kodecraft.io */
.related-card { padding: 0; overflow: hidden; }
.related-head { margin: 0; padding: 22px 24px 18px; font-size: 20px; border-bottom: 1px solid var(--border); }
.related-list { display: flex; flex-direction: column; }
.related-row { display: flex; align-items: center; gap: 18px; padding: 18px 24px; border-bottom: 1px solid var(--border); min-width: 0; transition: background-color .15s ease; }
.related-row:hover { background: var(--surface-2); }
.related-thumb { flex: none; width: 64px; height: 64px; overflow: hidden; border-radius: 16px; background: var(--surface-2); }
.related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-info { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.related-title { font-size: 17px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.related-title:hover { color: var(--brand); }
.related-rating { display: inline-flex; align-items: center; gap: 6px; }
.related-end { display: flex; align-items: center; gap: 14px; flex: none; }
.related-price { font-size: 20px; font-weight: 800; }
.related-cart { width: 48px; height: 40px; padding: 0; justify-content: center; }
.related-more { display: inline-flex; align-items: center; gap: 6px; padding: 18px 24px 20px; font-weight: 700; color: var(--brand); }
.related-more:hover { gap: 10px; }
@media (max-width: 640px) {
    .related-head { padding: 16px; font-size: 17px; }
    .related-row { gap: 12px; padding: 14px 16px; }
    .related-thumb { width: 52px; height: 52px; border-radius: 12px; }
    .related-title { font-size: 15px; }
    .related-end { gap: 10px; }
    .related-price { font-size: 16px; }
    .related-cart { width: 40px; height: 36px; }
    .related-more { padding: 14px 16px 16px; }
}

/* full-screen image viewer */
.lightbox { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; color: var(--white); background: transparent; overflow: hidden; }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.lightbox::backdrop { background: color-mix(in srgb, color-mix(in srgb, var(--brand-deep) 25%, var(--black)) 94%, transparent); }
.lightbox-bar { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 16px 20px; }
.lightbox-count { margin-right: auto; font-weight: 700; font-size: 15px; letter-spacing: .04em; }
.lightbox-stage { display: grid; place-items: center; min-height: 0; margin: 0; padding: 0 84px 28px; touch-action: pan-y; }
.lightbox-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--radius); box-shadow: var(--shadow-lg); user-select: none; -webkit-user-drag: none; }
.lightbox-btn { display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; color: var(--white); background: color-mix(in srgb, var(--white) 14%, transparent); cursor: pointer; transition: background .15s ease; }
.lightbox-btn:hover, .lightbox-btn:focus-visible { background: color-mix(in srgb, var(--white) 26%, transparent); }
.lightbox-btn .icon { color: var(--white); }
.lightbox-nav { position: fixed; top: 50%; transform: translateY(-50%); width: 54px; height: 54px; }
.lightbox-nav.prev { left: 18px; }
.lightbox-nav.next { right: 18px; }
@media (max-width: 640px) {
    .lightbox-stage { padding: 0 10px 84px; }
    .lightbox-nav { top: auto; bottom: 18px; transform: none; }
    .lightbox-nav.prev { left: calc(50% - 64px); }
    .lightbox-nav.next { right: calc(50% - 64px); }
}
.gallery-thumbs { display: flex; gap: 10px; padding: 12px; overflow-x: auto; }
.gallery-thumb { flex: none; width: 104px; aspect-ratio: 16 / 10; padding: 0; overflow: hidden; border-radius: 10px; border: 2px solid var(--border); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.is-active { border-color: var(--brand); }

.product-summary { display: flex; flex-direction: column; gap: 12px; }
.product-heading { font-size: 30px; }
.product-stats { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; color: var(--text-2); font-weight: 600; }
.stat-sep { width: 1px; height: 18px; background: var(--border-strong); }
.product-lead { font-size: 16px; line-height: 1.6; }
.buy-form { display: flex; flex-direction: column; gap: 16px; margin-top: 6px; }
.price-row { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.price-xl { font-size: 38px; }
.buy-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.buy-demo { grid-column: 1 / -1; }
/* desktop: the buttons live in the right sidebar's License card */
@media (min-width: 1025px) {
    .buy-form-main { display: none; }
}
.side-buy { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--border); }
.side-price { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.side-price .price { font-size: 24px; }
.side-price-amount { display: inline-flex; align-items: baseline; gap: 8px; }
.side-discount { align-self: flex-end; }
.side-qty { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.qty { display: inline-flex; align-items: center; height: 44px; border: 1.5px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.qty button { display: grid; place-items: center; width: 40px; height: 100%; color: var(--text); }
.qty button:hover { background: var(--surface-3); }
.qty input { width: 44px; height: 100%; border: 0; text-align: center; font-weight: 700; background: transparent; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus { outline: none; }

.product-tabs .tab { height: 42px; }
.product-panels { display: flex; flex-direction: column; gap: 12px; }
.panel-toggle { display: none; width: 100%; align-items: center; gap: 12px; height: 54px; padding: 0 18px; font-weight: 700; }
.panel-toggle > .icon:first-child { color: var(--brand); }
.panel-body { padding: 22px; }
.panel-title { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 18px; font-weight: 800; }
.panel-title .icon { color: var(--brand); }
.feature-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.check-list { display: flex; flex-direction: column; gap: 10px; }
.check-list li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--text-2); }
.check-list .icon { color: var(--brand); stroke-width: 2.6; }
.demo-box { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px; border-radius: var(--radius); background: var(--surface-2); }

.review-summary { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.review-score { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 120px; padding: 16px; border-radius: var(--radius); background: var(--surface-2); }
.review-score strong { font-size: 40px; font-weight: 800; line-height: 1; }
.review-form { display: flex; flex-direction: column; gap: 12px; }
.review-item { align-items: flex-start; }
.review-reply { margin-top: 10px; padding: 10px 14px; border-left: 3px solid var(--brand); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--surface-2); }

.side-label { font-weight: 800; font-size: 17px; margin-bottom: 14px; }
.author-mini { display: flex; align-items: center; gap: 14px; }
.author-name { gap: 6px; font-size: 18px; }
.author-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; text-align: center; }
.author-stats > div { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.author-stats strong { font-size: 18px; font-weight: 800; }
.author-stats span { font-size: 13px; color: var(--text-2); }

/* ---------- browse ---------- */
.browse-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 176px; padding: 26px 40px 26px 72px; margin-bottom: var(--gap); }
.browse-hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.browse-hero .promo-title-xl { font-size: 40px; }
.hero-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 8px; font-size: 15px; font-weight: 700; background: color-mix(in srgb, var(--white) 16%, transparent); }
.browse-hero-art { width: 300px; max-height: 190px; object-fit: contain; margin: -18px 0; }
.browse-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) repeat(3, auto); gap: 14px; margin-bottom: var(--gap); }
.browse-search { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 14px; }
.browse-search .input { border-color: transparent; background: var(--surface-2); }
.browse-stat { display: flex; align-items: center; gap: 12px; padding: 12px 18px; }
.browse-stat strong { display: block; font-size: 17px; font-weight: 800; }
.browse-stat span { font-size: 13px; color: var(--text-2); }
.browse-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: var(--gap); align-items: start; }
.browse-filters { position: sticky; top: calc(var(--header-h) + 20px); padding: 4px 0 16px; max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; }
.filters-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.filters-title { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 800; }
.filters-title .icon { color: var(--brand); }
.filter-group { padding: 12px 18px; border-bottom: 1px solid var(--border); }
.filter-group > summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; font-size: 15px; font-weight: 800; }
.filter-group > summary::-webkit-details-marker { display: none; }
.filter-group > summary .icon { transition: transform .2s var(--ease); }
.filter-group[open] > summary .icon { transform: rotate(180deg); }
.filter-options { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.filter-option { display: flex; align-items: center; gap: 10px; padding: 4px 0; font-size: 14px; color: var(--text-2); cursor: pointer; }
.filter-option input { width: 17px; height: 17px; accent-color: var(--brand); flex: none; }
.filter-option .stars .icon { width: 15px; height: 15px; }
.filter-count { font-size: 13px; color: var(--muted); }
.filter-more > summary { list-style: none; cursor: pointer; padding: 4px 0; font-size: 13px; }
.filter-more > summary::-webkit-details-marker { display: none; }
.filter-more[open] > summary { display: none; }
.filters-apply { margin: 14px 18px 0; width: calc(100% - 36px); }

/* dual range slider */
.range-slider { position: relative; height: 24px; margin: 4px 6px 10px; }
.range-track { position: absolute; left: 0; right: 0; top: 50%; height: 4px; transform: translateY(-50%); border-radius: var(--radius-pill); background: var(--btn-grad); }
.range-slider input[type="range"] { position: absolute; inset: 0; width: 100%; margin: 0; appearance: none; -webkit-appearance: none; background: none; pointer-events: none; }
.range-slider input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--brand); border: 3px solid var(--surface); pointer-events: auto; cursor: pointer; }
.range-slider input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--brand); border: 3px solid var(--surface); pointer-events: auto; cursor: pointer; }
.price-inputs { display: flex; align-items: center; gap: 8px; }
.price-box { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; height: 40px; padding: 0 10px; border: 1.5px solid var(--border-strong); border-radius: 10px; font-weight: 700; color: var(--text-2); }
.price-box input { width: 100%; min-width: 0; border: 0; outline: 0; background: none; font-weight: 700; color: var(--text); }

.browse-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.browse-head-icon { color: var(--brand); width: 26px; height: 26px; }
.sort-box { display: flex; align-items: center; gap: 8px; }
.sort-label { font-size: 14px; color: var(--text-2); white-space: nowrap; }
.sort-select { height: 42px; min-width: 150px; font-weight: 700; }
.page-step { gap: 6px; padding: 0 14px; }

/* mobile browse header + chips */
.browse-mobile-hero { display: flex; flex-direction: column; gap: 14px; padding: 18px; margin: -14px -14px 14px; border-radius: 0 0 var(--radius-xl) var(--radius-xl); }
.browse-mobile-icon { color: var(--white); background: color-mix(in srgb, var(--white) 18%, transparent); }
.browse-mobile-search { display: flex; gap: 10px; }
.browse-mobile-search .input { border-color: transparent; }
.browse-chips { display: grid; grid-auto-flow: column; grid-auto-columns: var(--chip-w); gap: 8px; overflow-x: auto; margin-bottom: 16px; scrollbar-width: none; }
.browse-chip { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; padding: 10px 6px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); font-size: 12px; font-weight: 700; color: var(--text); }
.browse-chip .icon { width: 22px; height: 22px; color: var(--brand); }
.browse-chip .chip-label { max-width: 100%; }
.browse-chip.is-active { color: var(--white); background: var(--btn-grad); border-color: transparent; }
.browse-chip.is-active .icon { color: var(--white); }

/* ---------- all categories page ---------- */
.cats-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 200px; padding: 26px 40px; margin-bottom: var(--gap); }
.cats-hero-copy { display: flex; flex-direction: column; gap: 10px; max-width: 620px; }
.cats-hero-art { width: 380px; max-height: 210px; object-fit: contain; margin: -20px 0; }
.cats-stats { display: flex; gap: 0; margin-top: 8px; }
.cats-stat { display: flex; align-items: center; gap: 12px; padding: 0 22px; border-left: 1px solid color-mix(in srgb, var(--white) 25%, transparent); }
.cats-stat:first-child { padding-left: 0; border-left: 0; }
.cats-stat strong { display: block; font-size: 20px; font-weight: 800; }
.cats-stat span { font-size: 14px; color: color-mix(in srgb, var(--white) 85%, transparent); }
.cats-stat-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: color-mix(in srgb, var(--white) 16%, transparent); }
.cats-stat-icon .icon { width: 26px; height: 26px; }
.cats-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr) 260px; gap: var(--gap); align-items: start; }
.cats-card-title { font-size: 18px; }
.cats-card-title .icon { color: var(--brand); }
.cats-list-card { padding: 18px 14px; }
.cats-list-card .cats-card-title { padding: 0 6px 12px; }
.cats-list { display: flex; flex-direction: column; gap: 2px; }
.cats-list-item { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 8px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.cats-list-item:hover { background: var(--surface-2); color: var(--text); }
.cats-list-item.is-active { color: var(--brand-deep); background: color-mix(in srgb, var(--brand) 12%, var(--surface)); font-weight: 800; }
.cats-list-item.is-active .icon { color: var(--brand); }
/* product page sidebar: full names, wrapping when long instead of "…" */
.product-aside .cats-list-item { height: auto; min-height: 38px; padding: 6px 8px; line-height: 1.3; }
.product-aside .cats-list-item .truncate { white-space: normal; overflow: visible; }
.cats-list-all { margin-top: 6px; border-top: 1px solid var(--border); border-radius: 0 0 10px 10px; color: var(--brand); }
.cats-list-all .icon { color: var(--brand); }
[data-theme="dark"] .cats-list-item.is-active { color: var(--text); }
.cats-list-item .icon-tile.sm { width: 26px; height: 26px; border-radius: 7px; }
.cats-promo { padding: 22px 18px; }
.cats-promo-art { width: 120px; height: auto; margin: -6px auto 0; }
.cats-main { padding: 18px; }
.cats-main-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 0 4px 14px; margin-bottom: 14px; border-bottom: 1px solid var(--border); }
.cats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cat-card {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 14px 16px;
    border-radius: var(--radius-lg); border: 1px solid var(--tone-line);
    background: linear-gradient(160deg, color-mix(in srgb, var(--tone) 16%, var(--surface)) 0%, var(--surface) 100%);
    text-align: center; transition: transform .2s var(--ease), box-shadow .2s;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cat-card-icon { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 16px; color: var(--white); background: linear-gradient(135deg, color-mix(in srgb, var(--tone) 70%, var(--white)), var(--tone)); }
.cat-card-icon .icon { width: 30px; height: 30px; }
.cat-card-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cat-card-text strong { font-size: 15px; font-weight: 800; color: var(--text); }
.cat-card-text span { font-size: 13px; color: var(--text-2); }
.cat-card-go { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--text); background: var(--surface); }
.cats-popular { padding: 18px 16px; }
.cats-popular .cats-card-title { margin-bottom: 10px; }
.cats-fire { color: var(--c-orange); }
.cats-popular-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 600; }
.cats-popular-row:last-child { border-bottom: 0; }
.cats-popular-thumb { width: 38px; height: 30px; border-radius: 7px; object-fit: cover; flex: none; }
.cats-popular-count { font-weight: 700; color: var(--text-2); }
.cats-search { margin-bottom: 14px; }
.cats-search .input { height: 48px; border-radius: var(--radius-pill); }

/* ---------- shared collection page ---------- */
.col-public-hero { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: var(--gap); padding: 28px 36px; }

/* ---------- authors ---------- */
.authors-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 220px; padding: 28px 44px; margin-bottom: var(--gap); }
.authors-hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; max-width: 520px; }
.authors-hero-art { width: 470px; max-height: 240px; object-fit: contain; margin: -28px -10px -28px 0; align-self: flex-end; }
.authors-hero-crown { width: 120px; height: auto; }
.authors-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: var(--gap); align-items: start; }
.authors-filters { position: static; max-height: none; }
.tag-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tag-chip input { position: absolute; opacity: 0; pointer-events: none; }
.tag-chip span { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); font-size: 13px; font-weight: 600; color: var(--text-2); cursor: pointer; }
.tag-chip input:checked + span { color: var(--white); background: var(--btn-grad); border-color: transparent; }
.tag-chip input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.tag-more { width: 100%; }
.tag-more[open] { display: contents; }
.author-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.author-tile { overflow: hidden; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s; }
.author-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.author-tile-top { position: relative; display: flex; align-items: center; gap: 16px; padding: 18px 18px 16px; background: linear-gradient(135deg, color-mix(in srgb, var(--tone) 16%, var(--surface)) 0%, var(--surface) 100%); }
.author-tile-top::after { content: ""; position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; background: color-mix(in srgb, var(--tone) 14%, transparent); }
.author-tile-avatar { position: relative; flex: none; }
.author-tile-avatar .avatar { width: 84px; height: 84px; font-size: 28px; border-width: 3px; }
.author-verified { position: absolute; right: 2px; bottom: 4px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: var(--white); background: var(--c-teal); border: 2px solid var(--surface); }
.author-tile-id { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; position: relative; z-index: 1; }
.author-tile-name { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; font-size: 17px; font-weight: 800; color: var(--text); }
.author-check { color: var(--white); fill: var(--brand); flex: none; }
.author-tile-level { font-size: 14px; color: var(--text-2); }
.author-tile-btn { margin-top: 6px; height: 32px; }
.author-tile-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 12px 8px 14px; border-top: 1px solid var(--border); }
.author-tile-stats > div { display: flex; flex-direction: column; align-items: center; gap: 2px; border-left: 1px solid var(--border); }
.author-tile-stats > div:first-child { border-left: 0; }
.author-tile-stats strong { font-size: 16px; font-weight: 800; }
.author-tile-stats span { font-size: 12px; color: var(--text-2); }
.author-grid.is-list { grid-template-columns: 1fr; }
.author-grid.is-list .author-tile { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); }
.author-grid.is-list .author-tile-stats { border-top: 0; border-left: 1px solid var(--border); align-items: center; }

/* ---------- blog & pages ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.post-card { display: flex; flex-direction: column; overflow: hidden; }
.post-cover { display: grid; place-items: center; aspect-ratio: 16 / 9; color: var(--tone); background: var(--tone-soft); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-body { display: flex; flex-direction: column; gap: 8px; padding: 18px; }
.post-title { font-size: 18px; font-weight: 800; line-height: 1.3; }
.post-title:hover { color: var(--brand); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--gap); align-items: start; }
.article { overflow: hidden; }
.article.narrow { max-width: 860px; margin: 0 auto; }
.article-cover { width: 100%; max-height: 420px; object-fit: cover; }
.article-body { display: flex; flex-direction: column; gap: 14px; padding: 28px; }

/* ---------- support ---------- */

.support-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--gap); }
.support-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 24px; }

/* ---------- contact ---------- */
.contact-hero { display: flex; align-items: center; justify-content: space-between; gap: var(--gap); margin-bottom: var(--gap); }
.contact-hero-text { display: flex; flex-direction: column; gap: 8px; }
.contact-hero-art { width: 150px; flex: none; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--gap); align-items: start; }
.contact-form { margin-top: 14px; }
.contact-info { display: flex; align-items: flex-start; gap: 14px; }
.contact-info .icon-tile { flex: none; }
.contact-info-title { margin: 0 0 4px; font-size: 15px; }
.contact-info p { margin: 0 0 6px; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 900px) {
    .contact-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
    .contact-hero-art { display: none; }
}

/* ---------- plans ---------- */
.plans-head { display: flex; flex-direction: column; gap: 4px; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--gap); max-width: 1100px; margin: 0 auto; }
.plan-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px; }
.plan-card.is-featured { border-color: var(--brand); box-shadow: var(--shadow-lg); }
.plan-flag { position: absolute; top: -14px; right: 20px; }
.plan-price { font-size: 36px; font-weight: 800; letter-spacing: -.02em; }
.plan-price span { font-size: 14px; font-weight: 600; color: var(--muted); }
.plan-action { margin-top: auto; }

/* ---------- cart & checkout ---------- */
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: var(--gap); align-items: start; }
.checkout-aside { position: sticky; top: calc(var(--header-h) + 20px); }
.cart-line { flex-wrap: wrap; }
.cart-line .meta { display: block; }
.cart-line-total { min-width: 80px; text-align: right; }
.row-thumb.small { width: 64px; height: 42px; }
.coupon-form { display: flex; gap: 8px; }
.coupon-applied { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.total-row { font-size: 18px; }
.total-row dt { color: var(--text); font-weight: 800; }

.done-card { max-width: 640px; margin: 0 auto; padding: 36px 28px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.done-instructions { text-align: left; width: 100%; }
.done-summary { width: 100%; text-align: left; }
.done-actions { justify-content: center; margin-top: 8px; }

/* Razorpay payment page: one message at a time, chosen by the state class razorpay.js sets */
.pay-state { display: none; width: 100%; text-align: left; margin: 0; }
.pay-state-paying { text-align: center; align-items: center; justify-content: center; gap: 6px; }
.pay-card.is-dismissed .pay-state-dismissed,
.pay-card.is-unavailable .pay-state-unavailable { display: flex; }
.pay-card.is-paying .pay-state-paying { display: inline-flex; }
.pay-card.is-paying [data-razorpay-open] { opacity: .6; pointer-events: none; }
.done-charged { color: var(--text-2); font-size: 13px; }

/* ---------- author application ---------- */
.apply-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--gap); align-items: start; }
.apply-intro .side-cta-art { width: 120px; }
.terms-box { padding: 14px; border-radius: var(--radius); background: var(--surface-2); }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1280px) {
    .author-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .authors-hero-art { width: 360px; }
    .cats-layout { grid-template-columns: 230px minmax(0, 1fr); }
    .cats-layout > aside:last-child { display: none; }
    .cats-hero-art { width: 300px; }
    .browse-toolbar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .browse-search { grid-column: 1 / -1; }
    .browse-hero { padding-left: 40px; }
    .home-grid { grid-template-columns: 240px minmax(0, 1fr); }
    .home-right { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
    .product-page { grid-template-columns: minmax(0, 1fr) 290px; }
    .product-aside { display: none; }
    .hero-slide { padding-left: 32px; }
}

@media (max-width: 1024px) {
    .authors-layout { grid-template-columns: 1fr; }
    .authors-layout > aside { order: 2; }
    .authors-filters { display: none; }
    .authors-filters.is-open { display: block; }
    .authors-layout > aside:has(.authors-filters.is-open) { order: 0; }
    .authors-hero { padding: 22px 20px; min-height: 0; }
    .authors-hero .promo-title-xl { font-size: 28px; }
    .authors-hero-copy { gap: 10px; padding-right: 96px; max-width: none; }
    .authors-hero-crown { position: absolute; right: 12px; top: 16px; width: 110px; }
    .author-grid, .author-grid.is-list { grid-template-columns: 1fr; gap: 14px; }
    .author-grid.is-list .author-tile { display: block; }
    .author-grid.is-list .author-tile-stats { border-left: 0; border-top: 1px solid var(--border); }
    .author-tile-avatar .avatar { width: 76px; height: 76px; }
    .cats-layout { grid-template-columns: 1fr; }
    .cats-hero { flex-direction: column; align-items: stretch; padding: 22px 20px 0; overflow: hidden; }
    .cats-hero-art { position: absolute; right: 8px; top: 8px; width: 130px; margin: 0; }
    .cats-hero-copy { max-width: none; }
    .cats-hero-copy .promo-title-xl, .cats-hero-copy .promo-text { padding-right: 120px; }
    .cats-hero .promo-title-xl { font-size: 28px; }
    .cats-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 14px -20px 0; padding: 14px 8px; border-radius: 0 0 var(--radius-lg) var(--radius-lg); background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
    .cats-stat { justify-content: center; padding: 0 6px; gap: 8px; border-left-color: var(--border); }
    .cats-stat strong { font-size: 15px; }
    .cats-stat span { font-size: 12px; color: var(--text-2); }
    .cats-stat-icon { width: 30px; height: 30px; flex: none; background: none; color: var(--brand); }
    .cats-stat-icon .icon { width: 24px; height: 24px; }
    .cats-stats .cats-stat-icon { color: var(--brand); }
    .cats-main { padding: 0; background: none; border: 0; box-shadow: none; }
    .cats-main-head { border-bottom: 0; padding: 0 0 10px; margin: 0; }
    .cats-grid { grid-template-columns: 1fr; gap: 10px; }
    .cat-card { flex-direction: row; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; text-align: left; background: var(--surface); border-color: var(--border); }
    .cat-card-icon { width: 54px; height: 54px; }
    .cat-card-text { flex: 1; }
    .cat-card-go { position: static; background: var(--surface-2); }
    .home-grid { grid-template-columns: 1fr; }
    .home-right { grid-template-columns: 1fr 1fr; }
    .cat-chips { display: grid; grid-auto-flow: column; grid-auto-columns: var(--chip-w); gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 2px; }
    .cat-chips::-webkit-scrollbar { display: none; }
    .cat-chip { scroll-snap-align: start; }
    .cat-chip { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 6px; font-size: 13px; font-weight: 700; text-align: center; min-width: 0; max-width: 100%; }
    .cat-chip .chip-label { max-width: 100%; }
    .home-mobile-promo { display: block; }

    .product-page { grid-template-columns: 1fr; }
    .product-side { display: none; }
    .product-panel.hide { display: block !important; }
    .panel-toggle { display: flex; }
    .panel-body { display: none; padding-top: 0; }
    .product-panel.is-open .panel-body { display: block; }
    .product-panel.is-open .panel-chevron { transform: rotate(180deg); }

    .browse-layout { grid-template-columns: 1fr; }
    .browse-filters { position: static; display: none; max-height: none; }
    .browse-filters.is-open { display: block; }
    .browse-head { flex-wrap: nowrap; gap: 8px; }
    .browse-head > .flex { flex: none; gap: 6px; }
    .browse-head .sort-label { display: none; }
    .sort-select { min-width: 0; width: var(--sort-w); height: 38px; }
    .view-btn { width: 38px; height: 38px; }
    .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .article-layout, .checkout-layout, .apply-layout { grid-template-columns: 1fr; }
    .checkout-aside { position: static; }
}

@media (max-width: 640px) {
    .hero, .hero-slide { min-height: 0; }
    .hero-slide { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); padding: 22px 0 34px 20px; gap: 0; }
    .hero .promo-eyebrow { font-size: 17px; }
    .hero .promo-title-xl { font-size: 30px; }
    .hero-text { font-size: 13px; }
    .hero-art { max-height: 170px; }
    .hero .btn { height: 40px; padding: 0 16px; }

    .cat-chips { gap: 8px; }
    .cat-chip { padding: 10px 4px; font-size: 12px; }
    .cat-chip .icon-tile.lg { width: 44px; height: 44px; }

    .trending-head { padding: 0; background: transparent; border: 0; box-shadow: none; }
    .view-all { background: transparent; padding: 0; }
    .home-right { grid-template-columns: 1fr; }

    /* product rows on phones (mirrors .product-list in base.css) */
    .list-on-mobile { display: flex; flex-direction: column; gap: 12px; }
    .list-on-mobile .product-card { flex-direction: row; padding: 8px; gap: 4px; }
    .list-on-mobile .product-media { width: 44%; max-width: 260px; aspect-ratio: var(--product-ratio); border-radius: var(--radius); flex: none; }
    .list-on-mobile .product-media .badge { top: 8px; left: 8px; height: 24px; font-size: 12px; padding: 0 9px; }
    .list-on-mobile .product-body { padding: 2px 4px 2px 12px; gap: 4px; min-width: 0; }
    .list-on-mobile .product-tags { flex-wrap: nowrap; overflow: hidden; white-space: nowrap; }
    .list-on-mobile .product-head .product-title { min-width: 0; }
    .list-on-mobile .product-head { display: flex; justify-content: space-between; gap: 8px; }
    .list-on-mobile .product-title { font-size: 15px; }
    .list-on-mobile .product-meta { gap: 10px; font-size: 12px; }
    .list-on-mobile .fav-btn { position: static; width: 28px; height: 28px; background: none; box-shadow: none; flex: none; }
    .list-on-mobile .price { font-size: 20px; }

    .product-heading { font-size: 24px; }
    .price-xl { font-size: 30px; }
    .buy-actions { grid-template-columns: 1fr; }
    .gallery-thumbs { display: none; }
    .gallery-nav { width: 34px; height: 34px; }
    .feature-columns { grid-template-columns: 1fr; }

    .author-grid, .post-grid { grid-template-columns: 1fr; }
    .article-body { padding: 18px; }
    .cart-line-total { min-width: 0; }
    .side-cta-title { font-size: 22px; }
}

.requirements { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; color: var(--text-2); }
.requirements li { display: flex; align-items: center; gap: 10px; }
.requirements .icon { color: var(--success); }

/* Help Center */
.help-hero { display: flex; flex-direction: column; gap: 10px; }
.help-search { max-width: 560px; margin-top: 8px; }
.help-search .input { border-color: transparent; }
.help-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.help-link { padding: 10px 6px; border-radius: 8px; font-weight: 600; font-size: 14px; }
.help-link:hover { color: var(--brand); background: var(--surface-2); }
@media (max-width: 768px) { .help-grid { grid-template-columns: 1fr; } }

/* category chips: equal size, one-line short label (Category::shortLabel), row scrolls when needed */
.chip-label { display: block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.25; font-size: 12px; letter-spacing: -0.01em; }
.cat-chip, .browse-chip { padding-left: 4px; padding-right: 4px; }

.browse-chips::-webkit-scrollbar { display: none; }

/* ---------- single author page ---------- */
.author-page { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: var(--gap); align-items: start; }
.author-hero { display: flex; align-items: center; gap: 26px; min-height: 210px; padding: 28px 32px; }
.author-hero-avatar { position: relative; flex: none; }
.author-hero .avatar.author-avatar { width: 150px; height: 150px; font-size: 48px; border: 5px solid var(--white); box-shadow: var(--shadow-lg); }
.author-verified { position: absolute; right: 6px; bottom: 8px; display: grid; place-items: center; width: 34px; height: 34px; border: 3px solid var(--white); border-radius: 50%; color: var(--white); background: var(--info); }
.author-hero-body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.author-name { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 34px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.author-name-badge { width: 30px; height: 30px; padding: 5px; border-radius: 50%; color: var(--white); background: color-mix(in srgb, var(--white) 22%, transparent); }
.author-level { margin: 0; font-size: 18px; font-weight: 600; opacity: .92; }
.author-hero-bio { max-width: 520px; margin: 4px 0 0; font-size: 14px; line-height: 1.55; opacity: .92; }
.author-hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; opacity: .92; }
.author-hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.author-hero-actions { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.author-follow.is-following { color: var(--success); }
.author-more-btn { display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; color: var(--brand-deep); background: var(--white); cursor: pointer; }
.author-more .dropdown-menu { left: 0; right: auto; }
/* The banner must not clip the ⋮ menu: no overflow clipping here, so the decorative circle is
   painted inside the box (same look as .promo::before) and the banner sits above the tabs below. */
.author-hero { overflow: visible; z-index: 5; }
.author-hero::before { inset: 0; width: auto; aspect-ratio: auto; border-radius: inherit; background: radial-gradient(circle at 92% 118%, color-mix(in srgb, var(--white) 10%, transparent) 0 36%, transparent 36.3%); }
.author-hero-art { position: relative; z-index: 0; }
.author-hero-art { flex: none; width: 250px; max-height: 190px; margin: -10px -6px -10px auto; object-fit: contain; }
.author-tabs { display: flex; gap: 4px; padding: 8px; overflow-x: auto; scrollbar-width: none; }
.author-tabs::-webkit-scrollbar { display: none; }
.author-tab { display: inline-flex; align-items: center; gap: 8px; flex: none; height: 44px; padding: 0 16px; border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; }
.author-tab:hover { color: var(--brand); background: var(--surface-2); }
.author-tab.is-active { color: var(--white); background: var(--btn-grad); box-shadow: var(--shadow-brand); }
.author-section-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.author-section-head .section-title { margin: 0; }
.author-filters { display: flex; align-items: center; gap: 10px; flex: 1 1 auto; justify-content: flex-end; }
.author-search { flex: 0 1 300px; }
.author-search .input, .author-sort .select { height: 42px; font-size: 13px; }
.author-sort { position: relative; display: flex; align-items: center; }
.author-sort-label { position: absolute; left: 14px; z-index: 1; font-size: 13px; font-weight: 600; color: var(--text-2); pointer-events: none; }
.author-sort .select { min-width: 190px; padding-left: 70px; font-weight: 700; }
.author-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card-ribbon { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 700; color: var(--white); }
.ribbon-bestseller { background: var(--c-orange); }
.ribbon-hot { background: var(--c-red); }
.ribbon-new { background: var(--c-green); }
.author-stat-card { display: flex; flex-direction: column; gap: 16px; }
.author-stat-card .card-title { margin: 0; }
.author-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 12px; }
.author-stat { display: flex; align-items: center; gap: 10px; min-width: 0; }
.author-stat-icon { width: 30px; height: 30px; flex: none; color: var(--brand); }
.author-stat-icon.is-star { color: var(--star); }
.author-stat div { display: flex; flex-direction: column; min-width: 0; }
.author-stat strong { font-size: 18px; font-weight: 800; line-height: 1.2; }
.author-stat span { font-size: 12px; color: var(--text-2); white-space: nowrap; }
.author-about, .author-social { display: flex; flex-direction: column; gap: 14px; }
.author-about .card-title, .author-social .card-title { display: flex; align-items: center; gap: 8px; margin: 0; }
.author-bio { margin: 0; font-size: 14px; line-height: 1.6; white-space: pre-line; }
.author-highlights li { font-size: 14px; }
.author-highlights .icon { color: var(--success); }
.author-social-links { display: flex; flex-wrap: wrap; gap: 10px; }
.author-social-links a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 12px; color: var(--text); background: var(--surface); transition: border-color .15s ease, transform .15s ease; }
.author-social-links a:hover { border-color: var(--brand); color: var(--brand); }
.author-social-links .social-youtube { color: var(--c-youtube); }
.author-social-links .social-linkedin { color: var(--c-linkedin); }
.author-review { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.author-review:last-child { border-bottom: 0; }
.author-review-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.author-collections, .author-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.author-collection, .author-person { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); }
a.author-collection:hover, a.author-person:hover { border-color: var(--brand); }
.author-collection .grow, .author-person-text { display: flex; flex-direction: column; min-width: 0; }
.author-about-tab { display: flex; flex-direction: column; gap: var(--gap); }
@media (max-width: 1280px) {
    .author-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
    .author-page { grid-template-columns: minmax(0, 1fr); }
    .author-aside { display: none; }
    .author-hero { gap: 16px; min-height: 0; padding: 20px; }
    .author-hero .avatar.author-avatar { width: 92px; height: 92px; font-size: 30px; border-width: 4px; }
    .author-verified { right: 0; bottom: 2px; width: 26px; height: 26px; border-width: 2px; }
    .author-name { font-size: 24px; }
    .author-level { font-size: 15px; }
    .author-hero-art { display: none; }
    .author-hero-actions { margin-top: 6px; }
    .author-follow { flex: 1; justify-content: center; }
    .author-mobile-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
    .author-mobile-stats .stat-card { align-items: center; gap: 4px; padding: 12px 4px; text-align: center; }
    .author-mobile-stats .icon-tile { background: none; }
    .author-mobile-stats .stat-value { font-size: 17px; }
    .author-mobile-stats .stat-label { font-size: 12px; }
    .author-tabs { padding: 0; background: none; border: 0; box-shadow: none; gap: 8px; }
    .author-tab { height: 40px; padding: 0 16px; border: 1px solid var(--border); background: var(--surface); }
    .author-section-head { flex-wrap: nowrap; }
    .author-filters { justify-content: stretch; }
    .author-search { flex: 1 1 auto; }
    .author-sort { flex: 0 0 auto; }
    .author-sort .select { min-width: 0; width: 140px; padding-left: 14px; }
}

/* ---------- blog listing ---------- */
.blog-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 190px; padding: 26px 36px; }
.blog-hero-text { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; max-width: 620px; }
.blog-hero-badge { display: inline-flex; white-space: nowrap; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--radius-pill); font-size: 14px; font-weight: 700; color: var(--brand-deep); background: var(--white); }
.blog-hero-title { margin: 0; font-size: 34px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.blog-hero-sub { margin: 0; font-size: 16px; line-height: 1.55; opacity: .92; }
.blog-hero-art { flex: none; width: 340px; max-height: 200px; margin: -14px -10px -14px auto; object-fit: contain; }
.blog-tabs { display: flex; gap: 8px; margin-top: var(--gap); padding: 8px; overflow-x: auto; scrollbar-width: none; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.blog-tabs::-webkit-scrollbar { display: none; }
.blog-tab { display: inline-flex; align-items: center; gap: 8px; flex: none; height: 44px; padding: 0 16px; border: 1px solid var(--border); border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--text); background: var(--surface); white-space: nowrap; }
.blog-tab:hover { border-color: var(--brand); }
.blog-tab-icon { color: var(--tone, var(--brand)); }
.blog-tab.is-active { color: var(--white); border-color: transparent; background: var(--btn-grad); box-shadow: var(--shadow-brand); }
.blog-tab.is-active .icon { color: var(--white); }
.blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: var(--gap); align-items: start; margin-top: var(--gap); }
.blog-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.blog-head .section-title { margin: 0; }
.blog-filters { display: flex; align-items: center; gap: 10px; flex: 1 1 auto; justify-content: flex-end; }
.blog-filter-search { flex: 0 1 280px; }
.blog-filter-search .input, .blog-sort .select, .blog-search .input { height: 42px; font-size: 13px; }
.blog-sort { position: relative; display: flex; align-items: center; }
.blog-sort-label { position: absolute; left: 14px; z-index: 1; font-size: 13px; font-weight: 600; color: var(--text-2); pointer-events: none; }
.blog-sort .select { min-width: 170px; padding-left: 70px; font-weight: 700; }
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.blog-card { position: relative; display: flex; flex-direction: column; overflow: hidden; padding: 0; transition: transform .2s ease, box-shadow .2s ease; }
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.blog-cover { display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; color: var(--white); background: linear-gradient(135deg, color-mix(in srgb, var(--tone, var(--brand)) 55%, var(--white)), var(--tone, var(--brand))); }
.blog-cover img { width: 100%; height: 100%; object-fit: cover; }
.blog-cover-icon { display: grid; place-items: center; width: 74px; height: 74px; border-radius: 22px; background: color-mix(in srgb, var(--white) 22%, transparent); }
.blog-cover-icon .icon { width: 38px; height: 38px; }
.blog-chip { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 700; color: var(--tone, var(--brand)); background: var(--white); }
.blog-card-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 14px 16px 16px; }
.blog-card-title { font-size: 17px; font-weight: 800; line-height: 1.3; color: var(--text); }
.blog-card-title:hover { color: var(--brand); }
.blog-card-excerpt { margin: 0; font-size: 13px; line-height: 1.5; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card-meta { display: flex; flex-direction: column; gap: 6px; margin-top: auto; padding-top: 4px; }
.blog-author { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.blog-meta-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 12px; color: var(--muted); }
.blog-meta-row span { display: inline-flex; align-items: center; gap: 5px; }
.blog-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.blog-subscribe { display: flex; flex-direction: column; gap: 14px; }
.blog-subscribe-head { display: flex; gap: 12px; }
.blog-subscribe-head .card-title { margin: 0 0 4px; }
.blog-subscribe-icon { width: 34px; height: 34px; flex: none; color: var(--brand); }
.blog-side-title { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; }
.blog-popular { display: flex; flex-direction: column; gap: 12px; }
.blog-popular-item { display: flex; align-items: center; gap: 12px; color: var(--text); }
.blog-popular-item:hover strong { color: var(--brand); }
.blog-popular-thumb { display: grid; place-items: center; flex: none; width: 60px; height: 48px; overflow: hidden; border-radius: 10px; color: var(--white); background: linear-gradient(135deg, color-mix(in srgb, var(--tone, var(--brand)) 55%, var(--white)), var(--tone, var(--brand))); }
.blog-popular-thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-popular-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.blog-popular-text strong { font-size: 14px; line-height: 1.3; }
.blog-popular-text .text-xs { display: inline-flex; align-items: center; gap: 4px; }
.blog-cat-list { display: flex; flex-direction: column; gap: 2px; }
.blog-cat-item { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--text); }
.blog-cat-item:hover, .blog-cat-item.is-active { background: var(--surface-2); color: var(--brand); }
.blog-cat-count { min-width: 30px; padding: 2px 8px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 700; text-align: center; color: var(--text-2); background: var(--surface-2); }
@media (max-width: 1280px) {
    .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
    .blog-layout { grid-template-columns: minmax(0, 1fr); }
    .blog-aside { display: none; }
    .blog-hero { min-height: 0; padding: 20px; }
    .blog-hero-title { font-size: 21px; }
    .blog-hero-text { min-width: 0; gap: 10px; }
    .blog-hero-sub { font-size: 13px; }
    .blog-hero-badge { font-size: 12px; padding: 4px 10px; }
    .blog-hero-art { width: 140px; margin: -6px -8px -6px 0; }
    .blog-search { margin-top: 12px; }
    .blog-tabs { margin-top: 12px; padding: 0; border: 0; background: none; box-shadow: none; }
    .blog-tab { height: 40px; padding: 0 14px; }
    .blog-layout { margin-top: 12px; }
    .blog-grid { grid-template-columns: 1fr; gap: 12px; }
    .blog-card { flex-direction: row; align-items: stretch; padding: 10px; }
    .blog-card:hover { transform: none; }
    .blog-cover { width: 120px; aspect-ratio: auto; min-height: 96px; flex: none; border-radius: 12px; }
    .blog-cover-icon { width: 52px; height: 52px; border-radius: 16px; }
    .blog-cover-icon .icon { width: 26px; height: 26px; }
    .blog-chip { position: static; justify-self: start; align-self: start; margin: 2px 0 0 12px; padding: 2px 8px; border: 1px solid color-mix(in srgb, var(--tone, var(--brand)) 35%, transparent); }
    .blog-card { display: grid; grid-template-columns: 120px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 0; }
    .blog-cover { grid-row: 1 / 3; }
    .blog-card-body { padding: 6px 4px 2px 12px; gap: 6px; }
    .blog-card-title { font-size: 15px; }
    .blog-meta-row { justify-content: flex-start; }
    .blog-foot { justify-content: center; }
}

/* ---------- checkout (single card, like kodecraft.io) ---------- */
.checkout-card { max-width: 760px; margin: 8px auto 0; padding: 28px 32px; display: flex; flex-direction: column; gap: 18px; }
.checkout-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.checkout-title { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.checkout-items { display: flex; flex-direction: column; }
.checkout-item { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.checkout-item:first-child { padding-top: 0; }
.checkout-item-icon { flex: none; width: 52px; height: 52px; overflow: hidden; border-radius: 14px; background: var(--surface-2); }
.checkout-item-icon img { width: 100%; height: 100%; object-fit: cover; }
.checkout-item-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.checkout-item-text strong { font-size: 16px; }
.checkout-item-price { font-size: 17px; white-space: nowrap; }
.checkout-total-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-radius: var(--radius); font-weight: 700; background: var(--surface-2); }
.checkout-total-row strong { font-size: 22px; font-weight: 800; color: var(--brand); }
.checkout-form { display: flex; flex-direction: column; gap: 16px; }
.checkout-coupon { display: flex; gap: 10px; }
.checkout-coupon-input { flex: 1; text-transform: uppercase; letter-spacing: .04em; }
.checkout-coupon-input::placeholder { text-transform: none; letter-spacing: 0; }
.checkout-coupon-on { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 14px; border: 1.5px dashed color-mix(in srgb, var(--success) 50%, transparent); border-radius: 10px; font-weight: 700; color: var(--success); background: color-mix(in srgb, var(--success) 8%, var(--surface)); }
.checkout-coupon-on span { display: inline-flex; align-items: center; gap: 8px; }
.checkout-totals { padding-top: 4px; border-top: 1px solid var(--border); }
.checkout-pay { height: 56px; font-size: 17px; }
.checkout-secure { display: flex; align-items: center; justify-content: center; gap: 6px; margin: -4px 0 0; font-size: 12px; text-align: center; color: var(--muted); }
.checkout-guest { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 10px; font-size: 14px; color: var(--text-2); background: var(--surface-2); }
.checkout-guest .link-more { margin-left: auto; }
.currency-choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
@media (max-width: 640px) {
    .checkout-card { padding: 18px 16px; gap: 14px; }
    .checkout-title { font-size: 22px; }
    .checkout-item-icon { width: 44px; height: 44px; border-radius: 12px; }
    .checkout-item-text strong { font-size: 15px; }
    .checkout-total-row strong { font-size: 19px; }
}

/* ---------- help extras: vote / save, popular ---------- */
.article-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 28px; border-top: 1px solid var(--border); }
.helpful-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; }
.help-popular { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: 0; }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; cursor: pointer; font-weight: 700; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] .faq-chev { transform: rotate(180deg); }
.faq-chev { flex: none; color: var(--muted); transition: transform .15s; }
.faq-answer { padding: 0 0 16px; color: var(--text-2); }
.faq-more { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.faq-more p { margin: 0; }

/* ---------- changelog ---------- */
.changelog-hero { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--gap); }
.changelog-subscribe { display: flex; gap: 8px; flex: 1 1 320px; max-width: 460px; }
.changelog-subscribe .input { flex: 1; min-width: 0; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 26px; position: relative; display: flex; flex-direction: column; gap: var(--gap); }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--border); }
.timeline-item { position: relative; }
.timeline-dot { position: absolute; left: -26px; top: 24px; width: 16px; height: 16px; border-radius: 50%; background: var(--tone); box-shadow: 0 0 0 4px var(--bg); }
.timeline-meta { align-items: center; gap: 8px; }
.timeline-title { margin: 10px 0 4px; font-size: 20px; }
.timeline-body { color: var(--text-2); }

/* ---------- video tutorials ---------- */
.tutorial-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.tutorial-card { display: flex; flex-direction: column; overflow: hidden; color: inherit; }
.tutorial-thumb { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; background: var(--hero-grad); overflow: hidden; }
.tutorial-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tutorial-play { position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; color: var(--white); background: color-mix(in srgb, var(--black) 55%, transparent); }
.tutorial-play .icon { width: 24px; height: 24px; fill: currentColor; stroke: none; margin-left: 3px; }
.tutorial-duration { position: absolute; right: 10px; bottom: 10px; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; color: var(--white); background: color-mix(in srgb, var(--black) 70%, transparent); }
.tutorial-text { display: flex; flex-direction: column; gap: 6px; padding: 16px; }
.tutorial-card:hover strong { color: var(--brand); }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: var(--black); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- status page ---------- */
.status-banner { display: flex; align-items: center; gap: 16px; padding: 22px 24px; --tone: var(--success); border-color: var(--tone-line, var(--border)); background: color-mix(in srgb, var(--tone) 9%, var(--surface)); }
.status-banner.is-degraded { --tone: var(--warning); }
.status-banner.is-down { --tone: var(--danger); }
.status-banner-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; color: var(--white); background: var(--tone); flex: none; }
.status-banner-title { margin: 0; font-size: 22px; }
.status-banner p { margin: 2px 0 0; color: var(--text-2); }
.status-list { list-style: none; margin: 0; padding: 0 22px; }
.status-row { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.status-row:last-child { border-bottom: 0; }
.status-row > div { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--radius-pill); font-size: 13px; font-weight: 700; --tone: var(--success); color: var(--tone); background: color-mix(in srgb, var(--tone) 12%, var(--surface)); white-space: nowrap; }
.status-pill.state-degraded { --tone: var(--warning); }
.status-pill.state-down { --tone: var(--danger); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tone); }

/* ---------- search ---------- */
.search-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.search-hit .grow { display: flex; flex-direction: column; gap: 2px; }

/* ---------- bundles ---------- */
.bundle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.bundle-card { display: flex; flex-direction: column; overflow: hidden; }
.bundle-cover { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 8; background: linear-gradient(135deg, var(--tone-soft), color-mix(in srgb, var(--tone) 30%, var(--surface))); }
.bundle-cover > img { width: 100%; height: 100%; object-fit: cover; }
.bundle-icons { display: flex; gap: 10px; }
.bundle-icons img { width: 56px; height: 56px; border-radius: 14px; background: var(--surface); }
.bundle-save { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 800; color: var(--white); background: var(--danger); }
.bundle-body { display: flex; flex-direction: column; gap: 8px; padding: 18px; flex: 1; }
.bundle-body p { margin: 0; }
.bundle-title { font-size: 18px; font-weight: 800; color: var(--text); }
.bundle-price { display: flex; align-items: baseline; gap: 10px; margin-top: auto; }
.bundle-price strong { font-size: 22px; color: var(--brand); }
.bundle-price.big strong { font-size: 32px; }
.bundle-item-icon { width: 44px; height: 44px; border-radius: 12px; flex: none; }
.bundle-buy { display: flex; flex-direction: column; gap: 10px; }
.bundle-buy p { margin: 0; }
.bundle-perks { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.bundle-perks li { display: flex; align-items: center; gap: 8px; }
.side-bundles .list-row { padding: 10px 0; }

/* ---------- product comments ---------- */
.comments { display: flex; flex-direction: column; gap: 18px; }
.comment-form { display: flex; gap: 12px; align-items: flex-start; }
.comment-login { display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.comment { display: flex; gap: 12px; align-items: flex-start; }
.comment-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.comment-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.comment-body { margin: 0; color: var(--text-2); white-space: pre-line; overflow-wrap: anywhere; }
.comment-reply { margin-top: 8px; padding: 12px; border-radius: 12px; background: var(--surface-2); }
.comment-reply-box summary { cursor: pointer; list-style: none; }
.comment-reply-box summary::-webkit-details-marker { display: none; }

@media (max-width: 1024px) {
    .tutorial-grid, .bundle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .search-columns { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .faq-layout, .help-popular { grid-template-columns: 1fr; }
    .tutorial-grid, .bundle-grid { grid-template-columns: 1fr; }
    .changelog-subscribe { max-width: none; }
    .article-foot { padding: 14px 18px; }
    .status-row { flex-wrap: wrap; }
}

/* ---------- homepage builder blocks ---------- */
.home-block { margin-top: var(--gap); }
.home-section { display: flex; flex-direction: column; gap: 14px; }
.home-cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.home-cat { display: flex; align-items: center; gap: 12px; padding: 16px; color: inherit; }
.home-cat strong { display: block; }
.home-stats { padding: 28px; }
.home-stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); text-align: center; }
.home-stat strong { display: block; font-size: 32px; font-weight: 800; }
.home-stat span { opacity: .85; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.testimonial { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.testimonial blockquote { margin: 0; color: var(--text-2); }
.home-post { display: flex; flex-direction: column; gap: 6px; color: inherit; }
.home-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--gap); padding: 32px; }
.support-band { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.support-band-item { display: flex; gap: 12px; align-items: flex-start; }
.support-band-item p { margin: 4px 0 0; }
@media (max-width: 1024px) {
    .home-cat-grid, .support-band, .home-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .testimonial-grid { grid-template-columns: 1fr; }
}

/* ---------- support page ---------- */
.support-hero { display: flex; align-items: center; justify-content: space-between; gap: var(--gap); padding: 26px 34px; }
.support-hero-text { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; flex: 1; min-width: 0; max-width: 600px; }
.support-hero-title { margin: 0; font-size: 38px; line-height: 1.1; color: var(--white); }
.support-hero-highlight { color: var(--brand-glow); }
.support-hero-sub { margin: 0; font-size: 16px; opacity: .92; }
.support-search { width: 100%; }
.support-search .input { height: 50px; border: 0; padding-left: 46px; border-radius: 14px; }
.support-search > .icon { left: 16px; color: var(--text-2); }
.support-hero-art { flex: none; width: 360px; max-width: 42%; margin: -12px 0 -18px; }

.support-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin-top: var(--gap); }
.support-action { position: relative; display: flex; align-items: center; gap: 14px; padding: 18px; text-align: left; color: inherit; font: inherit; cursor: pointer; }
.support-action:hover strong { color: var(--brand); }
.support-action-icon { display: grid; place-items: center; width: 58px; height: 58px; flex: none; border-radius: 50%; color: var(--tone); background: var(--tone-soft); }
.support-action-icon .icon { width: 28px; height: 28px; }
.support-action-text { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; font-size: 14px; color: var(--text-2); }
.support-action-text strong { font-size: 16px; color: var(--text); }
.support-action-arrow { flex: none; color: var(--text-2); }
.support-online { position: absolute; top: -10px; right: 18px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 700; --tone: var(--muted); color: var(--tone); background: color-mix(in srgb, var(--tone) 14%, var(--surface)); }
.support-online.is-online { --tone: var(--success); }

.support-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--gap); margin-top: var(--gap); align-items: start; }
.support-section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.support-section-head .card-title { margin: 0; }
.support-section-head .link-more { flex: none; white-space: nowrap; }
.support-topics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.support-topic { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 12px; border: 1px solid var(--border); border-radius: var(--radius); text-align: center; color: inherit; background: var(--surface); }
.support-topic:hover { border-color: var(--tone-line); background: var(--tone-soft); }
.support-topic-icon { width: 34px; height: 34px; color: var(--tone); }
.support-topic-text { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--text-2); }
.support-topic-text strong { font-size: 15px; color: var(--text); }

.support-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.support-link-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--text); }
.support-link-row:last-child { border-bottom: 0; }
.support-link-row:hover { color: var(--brand); }
.support-link-go { color: var(--brand); padding: 4px; border-radius: 6px; background: var(--surface-3); width: 22px; height: 22px; }
.support-link-icon { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; color: var(--brand); background: var(--surface-3); }

.support-tickets { display: flex; flex-direction: column; gap: 14px; }
.support-tickets .card-title, .support-tickets p { margin: 0; }
.support-ticket-stats { list-style: none; margin: 0; padding: 0; }
.support-ticket-stats li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.support-ticket-icon { color: var(--tone); }
.support-ticket-count { min-width: 26px; padding: 2px 8px; border-radius: 8px; text-align: center; font-weight: 700; background: var(--surface-3); }
.support-cta { gap: 10px; }
.support-cta-art { width: 110px; }

@media (max-width: 1280px) {
    .support-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
    .support-layout, .support-lists { grid-template-columns: 1fr; }
    .support-hero { padding: 20px; }
    .support-hero-title { font-size: 26px; }
    .support-hero-sub { font-size: 14px; }
    .support-hero-art { position: absolute; right: -10px; top: 0; width: 170px; max-width: none; margin: 0; opacity: .95; }
    .support-hero-text { max-width: none; }
    .support-hero-title, .support-hero-sub, .support-hero .blog-hero-badge { position: relative; padding-right: 120px; }
    .support-hero .blog-hero-badge { padding-right: 12px; }
    .support-search { position: relative; z-index: 1; }
    .support-action { flex-direction: column; justify-content: center; gap: 8px; padding: 16px 10px; text-align: center; }
    .support-action-icon { width: auto; height: auto; background: none; }
    .support-online { top: 8px; right: 8px; }
    .support-topics { grid-template-columns: 1fr; gap: 0; }
    .support-topic { flex-direction: row; gap: 14px; padding: 12px 4px; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; text-align: left; background: none; }
    .support-topic:last-child { border-bottom: 0; }
    .support-topic-icon { width: 24px; height: 24px; }
    .support-topic-text { flex: 1; }
    .support-topic-chev { color: var(--brand); }
}
