/* ==========================================================================
   Civixplorer — Theme & Component Layer
   Complements Tailwind CSS with design tokens and specialized components.
   Brand colour variables are injected per-request from admin settings
   (see inc/header.php); the values below are only the fallbacks.
   ========================================================================== */

:root {
    --brand: #6c5ce7;
    --brand-rgb: 108, 92, 231;
    --brand-soft: #8b7cf6;
    --brand-accent: #9d8bff;
    --brand-accent-rgb: 157, 139, 255;
    --brand-contrast: #ffffff;

    --ring: 0 0 0 3px rgba(var(--brand-rgb), .28);
    --elev-1: 0 1px 2px rgba(0, 0, 0, .06), 0 1px 3px rgba(0, 0, 0, .08);
    --elev-2: 0 4px 12px rgba(0, 0, 0, .08), 0 2px 4px rgba(0, 0, 0, .06);
    --elev-3: 0 18px 40px -12px rgba(0, 0, 0, .35);

    --line: rgba(120, 120, 130, .18);
    --line-strong: rgba(120, 120, 130, .32);
}

/* ── Brand utilities ─────────────────────────────────────────────────────── */
.bg-primary {
    background-color: var(--brand) !important;
    color: var(--brand-contrast) !important;
}

.text-primary { color: var(--brand) !important; }
.border-primary { border-color: var(--brand) !important; }
.text-accent { color: var(--brand-accent) !important; }

.bg-accent {
    background-color: var(--brand-accent) !important;
    color: #12101c !important;
}

.bg-primary\/5   { background-color: rgba(var(--brand-rgb), .05) !important; }
.bg-primary\/10  { background-color: rgba(var(--brand-rgb), .10) !important; }
.bg-primary\/20  { background-color: rgba(var(--brand-rgb), .20) !important; }
.bg-primary\/25  { background-color: rgba(var(--brand-rgb), .25) !important; }
.bg-primary\/30  { background-color: rgba(var(--brand-rgb), .30) !important; }
.border-primary\/20 { border-color: rgba(var(--brand-rgb), .20) !important; }
.border-primary\/30 { border-color: rgba(var(--brand-rgb), .30) !important; }
.text-primary\/40 { color: rgba(var(--brand-rgb), .40) !important; }
.bg-accent\/10 { background-color: rgba(var(--brand-accent-rgb), .10) !important; }
.bg-accent\/20 { background-color: rgba(var(--brand-accent-rgb), .20) !important; }

.hover\:bg-primary:hover {
    background-color: var(--brand) !important;
    color: var(--brand-contrast) !important;
}

.hover\:text-primary:hover { color: var(--brand) !important; }
.hover\:border-primary:hover { border-color: var(--brand) !important; }
.focus\:border-primary:focus { border-color: var(--brand) !important; }

/* Tailwind-ish shadow tokens the framework build does not ship */
.shadow-primary\/20 { box-shadow: 0 10px 30px -10px rgba(var(--brand-rgb), .45) !important; }
.shadow-primary\/25 { box-shadow: 0 10px 30px -10px rgba(var(--brand-rgb), .5) !important; }
.hover\:shadow-primary\/20:hover { box-shadow: 0 14px 34px -12px rgba(var(--brand-rgb), .5) !important; }
.hover\:shadow-primary\/25:hover { box-shadow: 0 14px 34px -12px rgba(var(--brand-rgb), .55) !important; }

/* `text-background` is used for label text on brand buttons */
.bg-primary.text-background,
.text-background { color: var(--brand-contrast) !important; }

.bg-white.text-black,
.bg-neutral-200.text-black { color: #111 !important; }

/* ── Focus visibility ────────────────────────────────────────────────────── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: none;
    box-shadow: var(--ring);
    border-radius: 8px;
}

/* ── Header ──────────────────────────────────────────────────────────────── */
.site-header {
    background: rgba(9, 9, 12, .82) !important;
    backdrop-filter: saturate(150%) blur(14px);
    -webkit-backdrop-filter: saturate(150%) blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, .07) !important;
}

.nav-link {
    position: relative;
    color: rgba(255, 255, 255, .72);
    font-weight: 500;
    transition: color .2s ease, background-color .2s ease;
}

.nav-link:hover { color: #fff; background: rgba(255, 255, 255, .07); }

.nav-link.is-active {
    color: #fff;
    background: rgba(var(--brand-rgb), .18);
    font-weight: 600;
}

.nav-link.is-active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -2px;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    transform: translateX(-50%);
    background: var(--brand-accent);
}

.icon-btn {
    color: rgba(255, 255, 255, .7);
    transition: background-color .2s ease, color .2s ease;
}

.icon-btn:hover { color: #fff; background: rgba(255, 255, 255, .09); }

/* ── Responsive nav visibility — hand-written, NOT Tailwind-generated ────────
   The header/mobile-menu toggle used to rely entirely on Tailwind's `md:hidden`
   / `hidden md:flex` utilities, which only exist once the Tailwind CDN script
   has run client-side. On a slow or flaky mobile connection (exactly where
   this was reported — Android) there's a real window, or in the worst case a
   permanent failure if that script errors, where those classes have no CSS
   behind them at all: the hamburger button and mobile menu can end up
   invisible with nothing to show them, while the desktop nav — designed for
   a wide screen — silently fails to hide. These rules are plain, always-on
   CSS loaded from a normal stylesheet, so the nav renders correctly the
   instant the page paints, with zero dependency on any script executing. */
.nav-desktop { display: none; }
.mobile-menu-btn { display: flex; }
.mobile-only { display: flex; }

@media (min-width: 768px) {
    .nav-desktop { display: flex; }
    .mobile-menu-btn { display: none; }
    .mobile-only { display: none; }
}

.mobile-menu-panel {
    position: fixed;
    left: 0;
    right: 0;
    top: 64px;
    z-index: 99999;
    background-color: rgba(13, 13, 18, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

@media (min-width: 640px) {
    .mobile-menu-panel { top: 80px; }
}

/* ── Mini-cart dropdown (hover on desktop, click on touch) ───────────────── */
.cart-page { min-height: 680px; }
.cart-layout { align-items: start; }
.delivery-field label { display:block; font-size:11px; color:var(--muted,#92929c); margin:0 0 5px 2px; }
.delivery-field label span { opacity:.75; }
.delivery-field input,
.delivery-field select,
.delivery-field textarea { width:100%; min-height:44px; padding:10px 12px; border:1px solid rgba(255,255,255,.14); border-radius:12px; background:rgba(255,255,255,.025); color:var(--foreground,#fff); outline:none; font-size:13px; }
.delivery-field textarea { resize:vertical; min-height:70px; }
.delivery-field input:focus,
.delivery-field select:focus,
.delivery-field textarea:focus { border-color:var(--brand); box-shadow:0 0 0 3px rgba(var(--brand-rgb),.12); }
.delivery-field select option { background:#15151a; color:#fff; }
.cart-item-card,
.cart-aside-card {
    background: rgba(20, 20, 24, .82);
    border-color: rgba(255, 255, 255, .10) !important;
}
.cart-item-card:hover,
.cart-aside-card:hover { border-color: rgba(var(--brand-rgb), .38) !important; }
.cart-item-card .line-total { color: #fff; }
.cart-payment-option { background: rgba(255, 255, 255, .015); }
.cart-payment-option:has(input:checked) { box-shadow: inset 0 0 0 1px rgba(var(--brand-rgb), .35); }
.saved-cards-panel { background: rgba(255, 255, 255, .015); }
.cart-payment-cards { min-height: 190px; }
.cart-add-card-btn { min-height: 44px; }
.cart-checkout-heading h2 { color: var(--foreground, #fff); }
.cart-checkout-btn { min-height: 52px; }

@media (max-width: 639px) {
    .cart-item-card { align-items: flex-start; flex-wrap: wrap; }
    .cart-item-card > .flex-1 { min-width: 0; }
    .cart-item-card > .flex.flex-col { margin-left: auto; }
    .cart-add-card-btn { padding-left: 10px; padding-right: 10px; font-size: 12px; }
}

@media (min-width: 1024px) {
    /* The product/cart preview belongs on the right; checkout details stay left. */
    .cart-layout { grid-template-columns: minmax(0, 1fr) minmax(400px, 560px) !important; }
    .cart-layout > #cart-items-list { order: 2; }
    .cart-layout > .cart-aside { order: 1; position: static; }
}

.cart-wrap { position: relative; }

.cart-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 340px;
    max-width: calc(100vw - 24px);
    background: var(--card, #17171b);
    color: var(--fg, #fff);
    border: 1px solid var(--line-strong);
    border-radius: 18px;
    box-shadow: var(--elev-3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    z-index: 1200;
    overflow: hidden;
}

/* Invisible bridge so the pointer can travel from icon to panel */
.cart-dropdown::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}

.cart-wrap:hover .cart-dropdown,
.cart-wrap:focus-within .cart-dropdown,
.cart-dropdown.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cart-dropdown__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    font-weight: 700;
    font-size: 14px;
}

.cart-dropdown__body {
    max-height: 300px;
    overflow-y: auto;
    padding: 8px;
}

.cart-dropdown__foot {
    padding: 14px 16px;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, .03);
}

.mini-cart-item {
    display: flex;
    gap: 12px;
    padding: 10px;
    border-radius: 12px;
    transition: background-color .15s ease;
}

.mini-cart-item:hover { background: rgba(255, 255, 255, .05); }

.mini-cart-item img {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    object-fit: cover;
    background: #fff;
    flex-shrink: 0;
}

.mini-cart-empty {
    text-align: center;
    padding: 34px 16px;
    color: var(--muted, #9a9aa2);
    font-size: 14px;
}

/* ── Post tags — readable in both themes (was near-invisible) ────────────── */
.post-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    background: rgba(var(--brand-rgb), .12);
    color: var(--brand-accent);
    border: 1px solid rgba(var(--brand-rgb), .3);
    transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.post-tag:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    transform: translateY(-1px);
}

[data-theme="light"] .post-tag {
    background: rgba(var(--brand-rgb), .08);
    color: #4b3fb8;
    border-color: rgba(var(--brand-rgb), .22);
}

/* ── Star rating ─────────────────────────────────────────────────────────── */
.stars { display: inline-flex; gap: 2px; color: #f5a524; }
.stars .fa-star.is-empty { color: rgba(150, 150, 160, .35); }

.star-input {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 4px;
}

.star-input input { position: absolute; opacity: 0; width: 0; height: 0; }

.star-input label {
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: rgba(150, 150, 160, .35);
    transition: color .12s ease, transform .12s ease;
}

.star-input label:hover,
.star-input label:hover ~ label,
.star-input input:checked ~ label {
    color: #f5a524;
}

.star-input label:hover { transform: scale(1.12); }

.rating-bar {
    height: 8px;
    border-radius: 999px;
    background: rgba(150, 150, 160, .2);
    overflow: hidden;
}

.rating-bar > span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: #f5a524;
}

/* ── Product page ────────────────────────────────────────────────────────── */
.product-gallery {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #fff;
}

[data-theme="dark"] .product-gallery { background: #15151a; }

/* Equal-height slides with a properly centred, fully visible photo.
   This removes the dead strip that used to sit under the image. */
.product-gallery .swiper,
.product-gallery .swiper-wrapper { height: 100%; }

.product-gallery .swiper-slide {
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 12px;
    box-sizing: border-box;
}

.product-gallery .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.product-gallery .swiper-button-next,
.product-gallery .swiper-button-prev {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(20, 20, 26, .55);
    color: #fff;
    backdrop-filter: blur(6px);
    transition: background-color .2s ease, transform .2s ease;
}

.product-gallery .swiper-button-next:hover,
.product-gallery .swiper-button-prev:hover {
    background: var(--brand);
    transform: scale(1.06);
}

.product-gallery .swiper-button-next::after,
.product-gallery .swiper-button-prev::after { font-size: 15px; font-weight: 800; }

.gallery-thumbs .swiper-slide {
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid transparent;
    opacity: .55;
    cursor: pointer;
    transition: opacity .2s ease, border-color .2s ease;
}

.gallery-thumbs .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    border-color: var(--brand);
}

.gallery-thumbs .swiper-slide:hover { opacity: 1; }

/* Variation pills */
.variation-btn {
    border: 1px solid var(--line-strong);
    padding: 9px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    background: transparent;
    transition: all .18s ease;
}

.variation-btn:hover { border-color: var(--brand); color: var(--brand-accent); }

.variation-btn.is-selected {
    border-color: var(--brand);
    background: rgba(var(--brand-rgb), .14);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(var(--brand-rgb), .5);
}

[data-theme="light"] .variation-btn.is-selected { color: #3b2fa8; }

.variation-btn.is-unavailable {
    opacity: .38;
    text-decoration: line-through;
    cursor: not-allowed;
}

/* Sticky buy box keeps the right column full on tall pages */
@media (min-width: 1024px) {
    .buybox-sticky {
        position: sticky;
        top: 96px;
        align-self: start;
    }
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .03);
}

[data-theme="light"] .trust-badge { background: rgba(0, 0, 0, .02); }

.trust-badge__icon {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

/* Accordion */
.faq-item { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.faq-item + .faq-item { margin-top: 12px; }

.faq-item__q {
    width: 100%;
    text-align: left;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-weight: 700;
    background: transparent;
    transition: background-color .18s ease;
}

.faq-item__q:hover { background: rgba(255, 255, 255, .04); }
[data-theme="light"] .faq-item__q:hover { background: rgba(0, 0, 0, .03); }
.faq-item__a { padding: 0 20px 18px; line-height: 1.7; opacity: .82; font-size: 14px; }
.faq-item.is-open .faq-item__chevron { transform: rotate(180deg); }
.faq-item__chevron { transition: transform .2s ease; }

/* ── Cards / product grid ────────────────────────────────────────────────── */
.product-card {
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    background: var(--card, #17171b);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--brand-rgb), .45);
    box-shadow: var(--elev-3);
}

.product-card__media {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f3f3f5;
}

[data-theme="dark"] .product-card__media { background: #1d1d23; }

.product-card__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.product-card:hover .product-card__media img { transform: scale(1.06); }

.badge-sale {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    background: #e11d48;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    padding: 4px 10px;
    border-radius: 999px;
}

.wish-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .92);
    color: #9a9aa2;
    box-shadow: var(--elev-2);
    opacity: 0;
    transform: translateY(-4px);
    transition: all .2s ease;
}

.product-card:hover .wish-btn { opacity: 1; transform: translateY(0); }
.wish-btn:hover { color: #e11d48; }
.wish-btn.is-active { opacity: 1; transform: none; color: #e11d48; }

@media (hover: none) {
    .wish-btn { opacity: 1; transform: none; }
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
    border-top: 1px solid var(--line);
    background: var(--surface, #101014);
    padding-top: 80px;
    padding-bottom: 16px;
}

.footer-grid {
    display: grid;
    gap: 40px;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }

@media (min-width: 1024px) {
    .site-footer > .container {
        width: calc(100% - 224px);
        max-width: none;
        padding-left: 0;
        padding-right: 0;
    }

    .footer-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 32px;
    }
}

.footer-heading {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    opacity: .55;
    margin-bottom: 16px;
}

.footer-link {
    font-size: 14px;
    opacity: .7;
    transition: opacity .18s ease, color .18s ease, transform .18s ease;
    display: inline-block;
}

.footer-link:hover { opacity: 1; color: var(--brand-accent); transform: translateX(2px); }

.social-dot {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-strong);
    font-size: 14px;
    transition: all .2s ease;
}

.social-dot:hover {
    transform: translateY(-2px);
    border-color: var(--brand);
    color: var(--brand-accent);
}

/* Footer social icons: exactly five per row at every breakpoint. */
.footer-social {
    /* The utility stylesheet's `.flex` rule uses !important. Keep the
       five-column footer layout authoritative even when that class remains
       in cached or older rendered markup. */
    display: grid !important;
    grid-template-columns: repeat(5, 34px);
    gap: 8px;
    justify-content: start;
}

.footer-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    border: 1px solid transparent;
    transition: all .2s ease;
}

.footer-btn--primary {
    background: var(--brand);
    color: var(--brand-contrast);
}

.footer-btn--primary:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -10px rgba(var(--brand-rgb), .7);
}

.footer-btn--ghost {
    border-color: var(--line-strong);
    background: transparent;
}

.footer-btn--ghost:hover { border-color: var(--brand); color: var(--brand-accent); }

.footer-btn--donate {
    background: linear-gradient(135deg, #ffb703, #fb8500);
    color: #241a00;
}

.footer-btn--donate:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -10px rgba(251, 133, 0, .7);
}

/* ── Modal (z-index no longer depends on arbitrary-value class support) ──── */
.civix-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.civix-modal[hidden] { display: none !important; }
.civix-modal__backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .66); backdrop-filter: blur(4px); }

.civix-modal__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 400px;
    margin: auto;
    border-radius: 24px;
    overflow: hidden;
    background: var(--card, #17171b);
    box-shadow: var(--elev-3);
    border: 1px solid var(--line-strong);
}

.civix-modal__bar {
    height: 5px;
    background: linear-gradient(90deg, var(--brand), var(--brand-accent), var(--brand));
    background-size: 200% 100%;
    animation: shimmer 2.4s linear infinite;
}

/* Locks the page without the scroll jump the old overflow-hidden caused */
body.scroll-locked {
    position: fixed;
    width: 100%;
    overflow-y: scroll;
}

/* ── Homepage ────────────────────────────────────────────────────────────── */
.hero-section {
    position: relative;
    isolation: isolate;
}

.hero-section::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(1000px 460px at 12% -10%, rgba(var(--brand-rgb), .38), transparent 62%),
        linear-gradient(180deg, rgba(6, 8, 20, .5) 0%, rgba(6, 8, 20, .86) 78%, var(--bg, #0a0a0a) 100%);
}

.hero-section > * { position: relative; z-index: 1; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .16);
    color: #fff;
    backdrop-filter: blur(6px);
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.section-title {
    font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0;
}

.section-sub { font-size: 14px; opacity: .6; margin: 6px 0 0; }

.nav-round {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-strong);
    transition: all .2s ease;
    flex-shrink: 0;
}

.nav-round:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

.cta-banner {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    padding: clamp(2.5rem, 1rem + 6vw, 5rem) 1.5rem;
    text-align: center;
    background:
        radial-gradient(700px 320px at 20% 0%, rgba(255, 255, 255, .16), transparent 60%),
        linear-gradient(135deg, #2a1e6b 0%, var(--brand) 55%, var(--brand-accent) 130%);
    box-shadow: var(--elev-3);
}

.cta-banner__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: #17132e;
    padding: 15px 34px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 16px;
    transition: transform .18s ease, box-shadow .18s ease;
}

.cta-banner__btn:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .6); }

/* ── Skeleton shimmer ────────────────────────────────────────────────────── */
@keyframes shimmer {
    0%   { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* ── Admin panel ─────────────────────────────────────────────────────────── */
.admin-shell { background: var(--surface, #f6f7fb); }

.admin-sidebar {
    background: var(--card);
    border-right: 1px solid var(--line);
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color .18s ease, color .18s ease;
}

.admin-nav-link:hover { background: rgba(var(--brand-rgb), .1); color: var(--brand); }

.admin-nav-link.is-active {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 8px 20px -10px rgba(var(--brand-rgb), .9);
}

.admin-nav-link.is-active i { color: #fff; }

.admin-section-label {
    padding: 0 14px;
    margin: 22px 0 8px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    opacity: .45;
}

.admin-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 24px;
    box-shadow: var(--elev-1);
}

.admin-card__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 4px;
}

.admin-card__hint { font-size: 13px; opacity: .6; margin: 0 0 18px; }

.admin-field { margin-bottom: 16px; }

.admin-field > label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    opacity: .6;
    margin-bottom: 7px;
}

.admin-input,
.admin-card input[type="text"],
.admin-card input[type="url"],
.admin-card input[type="email"],
.admin-card input[type="number"],
.admin-card input[type="password"],
.admin-card select,
.admin-card textarea {
    width: 100%;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--line-strong);
    background: var(--bg);
    color: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.admin-input:focus,
.admin-card input:focus,
.admin-card select:focus,
.admin-card textarea:focus {
    border-color: var(--brand);
    box-shadow: var(--ring);
}

.admin-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 22px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    transition: all .18s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.admin-btn--primary { background: var(--brand); color: #fff; }
.admin-btn--primary:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 12px 26px -12px rgba(var(--brand-rgb), .9); }
.admin-btn--ghost { border-color: var(--line-strong); }
.admin-btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.admin-btn--danger { background: rgba(225, 29, 72, .12); color: #e11d48; }
.admin-btn--danger:hover { background: #e11d48; color: #fff; }

.admin-stat {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: var(--card);
    padding: 20px 22px;
    box-shadow: var(--elev-1);
    transition: transform .2s ease, box-shadow .2s ease;
}

.admin-stat:hover { transform: translateY(-2px); box-shadow: var(--elev-2); }

.admin-stat__label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    opacity: .5;
}

.admin-stat__value { font-size: 30px; font-weight: 800; line-height: 1.1; margin-top: 6px; }

.admin-stat__icon {
    position: absolute;
    right: 18px;
    top: 18px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    background: rgba(var(--brand-rgb), .12);
    color: var(--brand);
}

.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--line);
}

.admin-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    opacity: .6;
    transition: all .18s ease;
}

.admin-tab:hover { opacity: 1; border-bottom-color: var(--line-strong); }
.admin-tab.is-active { opacity: 1; color: var(--brand); border-bottom-color: var(--brand); }

.admin-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }

.admin-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .55;
    border-bottom: 1px solid var(--line-strong);
    white-space: nowrap;
}

.admin-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr { transition: background-color .15s ease; }
.admin-table tbody tr:hover { background: rgba(var(--brand-rgb), .05); }

.pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .03em;
}

.pill--ok    { background: rgba(34, 197, 94, .14); color: #22c55e; }
.pill--warn  { background: rgba(245, 158, 11, .14); color: #f59e0b; }
.pill--muted { background: rgba(150, 150, 160, .16); color: #9a9aa2; }
.pill--danger{ background: rgba(225, 29, 72, .14); color: #e11d48; }
.pill--brand { background: rgba(var(--brand-rgb), .14); color: var(--brand); }

.toggle-switch { position: relative; display: inline-block; width: 44px; height: 25px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }

.toggle-switch .slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: rgba(150, 150, 160, .35);
    border-radius: 999px;
    transition: background-color .2s ease;
}

.toggle-switch .slider::before {
    content: "";
    position: absolute;
    height: 19px;
    width: 19px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform .2s ease;
}

.toggle-switch input:checked + .slider { background: var(--brand); }
.toggle-switch input:checked + .slider::before { transform: translateX(19px); }

.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--bg);
}

.toggle-row + .toggle-row { margin-top: 10px; }
.toggle-row__title { font-weight: 700; font-size: 14px; }
.toggle-row__hint { font-size: 12px; opacity: .55; margin-top: 2px; }

.sortable-row {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--bg);
}

.sortable-row + .sortable-row { margin-top: 10px; }
.sortable-row .drag { cursor: grab; opacity: .4; }
.sortable-row .drag:active { cursor: grabbing; }

/* ── Small helpers ───────────────────────────────────────────────────────── */
.line-clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.empty-state {
    text-align: center;
    padding: 56px 24px;
    border: 1px dashed var(--line-strong);
    border-radius: 20px;
}

.empty-state i { font-size: 34px; opacity: .3; margin-bottom: 14px; display: block; }
.empty-state p { opacity: .6; font-size: 14px; margin: 0; }

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}
