/* Flytec.Box / Amazon-палети — публічна сторінка */

@font-face {
    font-family: 'e-Ukraine';
    src: url('../fonts/e-ukraine/e-Ukraine-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'e-Ukraine';
    src: url('../fonts/e-ukraine/e-Ukraine-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'e-Ukraine Head';
    src: url('../fonts/e-ukraine/e-UkraineHead-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'e-Ukraine Head';
    src: url('../fonts/e-ukraine/e-UkraineHead-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Шапка сайту */
:root {
    --fancybox-scrollbar-compensate: 15px;
    --bg-elevated: rgba(24, 28, 36, 0.68);
    --bg-elevated-strong: rgba(18, 22, 30, 0.86);
    --border-soft: rgba(255, 255, 255, 0.12);
    --text-main: #f4f7ff;
    --text-muted: #aab3c5;
    --accent-yellow: #FAFF00;
    --accent-orange: #ff9900;
    --accent-blue: #36b7ff;
    /* Ціна за глибиною знижки (price_old → price_new); на темному фоні — світліші + легке світіння */
    --price-tone-base: #f4f7ff;
    --price-tone-mid: rgb(255, 158, 72);
    --price-tone-hot: rgb(255, 95, 110);
}

.price-display {
    font-weight: 700;
}
.price-tone--base {
    color: var(--price-tone-base);
}
.price-tone--mid {
    color: var(--price-tone-mid);
    text-shadow:
        0 0 10px rgba(255, 150, 70, 0.28),
        0 0 16px rgba(255, 120, 40, 0.12),
        0 1px 1px rgba(0, 0, 0, 0.22);
}
.price-tone--hot {
    color: var(--price-tone-hot);
    text-shadow:
        0 0 11px rgba(255, 80, 95, 0.3),
        0 0 18px rgba(255, 40, 60, 0.14),
        0 1px 1px rgba(0, 0, 0, 0.22);
}
.product-price-hero {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
}

.site-header {
    background: linear-gradient(110deg, rgba(13, 15, 20, 0.78), rgba(16, 19, 28, 0.82));
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.32);
    padding: 12px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    /* чтобы popover/drawer позиционировались корректно */
    box-sizing: border-box;
    overflow: visible;
}
.site-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 12px;
}
.site-logo {
    font-size: 20px;
    font-weight: 700;
    font-family: 'e-Ukraine Head', 'e-Ukraine', 'Segoe UI', Arial, sans-serif;
    color: var(--accent-yellow);
    text-shadow: 0 0 16px rgba(250,255,0,0.24);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.site-logo:hover {
    color: #fff;
}
.site-nav {
    display: flex;
    gap: 20px;
    align-items: center;
}
.site-header-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 220px;
    width: min(400px, 36vw);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.14);
    background: linear-gradient(145deg, rgba(18,22,30,0.86), rgba(11,14,22,0.9));
    box-sizing: border-box;
}
.site-header-search input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: #e5ebfa;
    font-size: 13px;
    padding: 7px 10px;
}
.site-header-search input::placeholder {
    color: #8f9ab1;
}
.site-header-search button {
    border: 0;
    border-radius: 9px;
    padding: 7px 10px;
    background: linear-gradient(120deg, var(--accent-yellow), #ffd75e 58%, var(--accent-orange));
    color: #0f1117;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    letter-spacing: 0.04em;
}
.site-burger {
    display: none;
    width: 44px;
    height: 40px;
    appearance: none;
    -webkit-appearance: none;
    background: linear-gradient(145deg, rgba(23,28,40,0.9), rgba(14,17,25,0.94));
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 12px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    padding: 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
.site-profile-btn {
    display: inline-flex;
    min-width: 44px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.16);
    background: linear-gradient(145deg, rgba(23,28,40,0.9), rgba(14,17,25,0.94));
    cursor: pointer;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 0 10px 0 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
.site-profile-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 20%, #FAFF00 0, #f2c500 35%, #161616 75%);
    border: 2px solid #FAFF00;
    box-shadow: 0 0 18px rgba(250,255,0,0.35);
    display: block;
    flex: 0 0 auto;
}
.site-profile-name {
    color: #dbe5fb;
    font-size: 12px;
    font-weight: 700;
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.site-profile-caret {
    color: #95a3c7;
    font-size: 11px;
    line-height: 1;
}
.site-burger span {
    display: block;
    width: 18px;
    height: 2px;
    background: linear-gradient(90deg, #FAFF00, #ffb703);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.site-burger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.site-burger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.site-burger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}
/* Лише верхня навігація: інакше той самий клас у drawer дає жовтий текст на жовтому фоні */
.site-nav a.active-nav {
    color: var(--accent-yellow) !important;
    font-weight: 700;
}
.site-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
}
.site-nav a:hover {
    color: var(--accent-blue);
}
.site-live-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 75, 101, 0.88);
    background: linear-gradient(120deg, rgba(255, 57, 93, 0.92), rgba(255, 16, 112, 0.95));
    color: #fff !important;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 0 8px rgba(255, 0, 76, 0.68), 0 0 20px rgba(255, 0, 98, 0.48), inset 0 0 12px rgba(255, 255, 255, 0.22);
    animation: livePulse 1.2s ease-in-out infinite;
}
.site-live-badge:hover { filter: brightness(1.08); }
.site-live-badge--drawer {
    margin-top: 6px;
    width: fit-content;
}
.site-live-strip-wrap {
    max-width: 1200px;
    margin: 8px auto 0;
    padding: 0 12px;
    box-sizing: border-box;
}
.site-live-strip {
    width: 100%;
    min-height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(255, 75, 101, 0.88);
    background: linear-gradient(120deg, rgba(255, 57, 93, 0.9), rgba(255, 16, 112, 0.92));
    box-shadow: 0 0 12px rgba(255, 0, 76, 0.55), 0 0 24px rgba(255, 0, 98, 0.34);
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 12px;
    box-sizing: border-box;
}
.site-live-strip-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 10px rgba(255,255,255,0.95);
    animation: liveDotBlink 1s steps(2, start) infinite;
}
.site-live-strip-text {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
}
.site-live-strip-cta {
    font-size: 12px;
    font-weight: 800;
    border: 1px solid rgba(255,255,255,0.45);
    border-radius: 999px;
    padding: 4px 9px;
    line-height: 1;
    white-space: nowrap;
}
@keyframes livePulse {
    0%, 100% {
        box-shadow: 0 0 8px rgba(255, 0, 76, 0.68), 0 0 20px rgba(255, 0, 98, 0.48), inset 0 0 12px rgba(255, 255, 255, 0.22);
        transform: translateY(0);
    }
    50% {
        box-shadow: 0 0 12px rgba(255, 24, 98, 0.88), 0 0 30px rgba(255, 33, 117, 0.65), inset 0 0 14px rgba(255, 255, 255, 0.3);
        transform: translateY(-1px);
    }
}

/* Підвал сайту */
.site-footer {
    background: linear-gradient(110deg, rgba(11, 13, 18, 0.78), rgba(16, 19, 28, 0.82));
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 24px 20px 20px;
    margin-top: 40px;
}
.site-footer-brands {
    max-width: 1200px;
    margin: 0 auto 14px;
    padding: 0 0 14px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-footer-brands-title {
    font-size: 11px;
    color: #9eb8ff;
    margin-bottom: 8px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.site-footer-brands-title::before {
    content: '';
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #36b7ff, #FAFF00);
}
.site-footer-brands-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}
.site-footer-brand-link {
    display: inline-flex;
    align-items: center;
    padding: 6px 11px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(18,22,32,0.9);
    color: #b9c6df;
    text-decoration: none;
    font-size: 12px;
    line-height: 1;
    transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.site-footer-brand-link:hover {
    color: #fff;
    border-color: rgba(54,183,255,0.55);
    transform: translateY(-1px);
}
.site-footer-brands-empty {
    color: #8690a5;
    font-size: 12px;
}
.site-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: #888;
}
.site-footer-grid {
    align-items: flex-start;
    gap: 14px;
}
.site-footer-col {
    min-width: 190px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(15,18,26,0.55);
    border: 1px solid rgba(255,255,255,0.08);
}
.site-footer-col--right {
    margin-left: auto;
    background: transparent;
    border-color: transparent;
    padding-right: 0;
}
.site-footer-col-title {
    font-size: 11px;
    color: #9eb8ff;
    margin-bottom: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.site-footer-col-title::before {
    content: '';
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #36b7ff, #FAFF00);
}
.site-footer-copy {
    color: #95a1bb;
}
.site-footer-links {
    display: grid;
    gap: 7px;
}
.site-footer-links a {
    color: #b9c6df;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.25;
}
.site-footer-links a:hover {
    color: #fff;
}
.site-footer-socials {
    display: flex;
    gap: 8px;
}
.site-footer-social {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #0d1017;
    border: 1px solid rgba(255,255,255,0.24);
    transition: transform 0.16s ease, filter 0.16s ease;
}
.site-footer-social:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
}
.site-footer-social--tt {
    background: linear-gradient(135deg, #7cf8ff, #6ca8ff);
}
.site-footer-social--ig {
    background: linear-gradient(135deg, #ffd15a, #ff5da2);
}
.site-footer-social--tg {
    background: linear-gradient(135deg, #7ad7ff, #4e8dff);
}
.site-footer-top {
    color: #FAFF00;
    text-decoration: none;
}
.site-footer-top:hover {
    color: #fff;
}

body {
    margin: 0;
    padding: 0;
    background:
        radial-gradient(1200px 500px at 12% -8%, rgba(54,183,255,0.14), transparent 55%),
        radial-gradient(1000px 460px at 88% -14%, rgba(255,153,0,0.16), transparent 58%),
        linear-gradient(180deg, #0d1016 0%, #0b0d10 45%, #090b0f 100%);
    color: var(--text-main);
    font-family: 'e-Ukraine', 'Segoe UI', Arial, sans-serif;
    background-size: 120% 120%, 120% 120%, 100% 100%;
    animation: bodyFlow 16s ease-in-out infinite alternate;
}
.page {
    min-height: 50vh;
    padding: 30px 20px 80px;
    box-sizing: border-box;
}
.page-title {
    text-align: center;
    font-size: clamp(20px, 2.1vw, 28px);
    font-family: 'e-Ukraine Head', 'e-Ukraine', 'Segoe UI', Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff8a6;
    text-shadow: 0 0 16px rgba(250,255,0,0.22);
    margin: 0 auto 10px;
    max-width: 980px;
    line-height: 1.25;
    text-wrap: balance;
}
.page-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin: 0 auto 24px;
    max-width: 960px;
    font-size: clamp(13px, 1.25vw, 15px);
    line-height: 1.5;
    text-wrap: pretty;
}
.layout {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    align-items: flex-start;
    justify-content: center;
}

/* 3-колоночный mobile-first layout */
.page-grid {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 12px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr) 280px;
    gap: 24px;
    align-items: start;
}
.page-col-left,
.page-col-right {
    position: sticky;
    top: 90px;
}
.page-col-center {
    min-width: 0;
}

.mobile-only {
    display: none;
}

@media (max-width: 820px) {
    .page-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 10px;
    }
    .page-col-left,
    .page-col-right {
        position: static;
        display: none;
    }
    .site-burger {
        display: inline-flex;
    }
    .site-nav {
        display: none;
    }
    .site-header-inner {
        position: relative;
        display: grid;
        grid-template-columns: 1fr auto auto;
        align-items: center;
        gap: 10px;
    }
    .site-logo {
        min-width: 0;
        font-size: 18px;
        letter-spacing: 0.05em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .site-header-search {
        display: none;
    }
    .site-profile-btn {
        width: 44px;
        min-width: 44px;
        padding: 0;
        justify-content: center;
    }
    .site-profile-name,
    .site-profile-caret {
        display: none;
    }
    .site-live-strip-wrap {
        margin-top: 6px;
        padding: 0 8px;
    }
    .site-live-strip {
        min-height: 46px;
        border-radius: 10px;
        gap: 8px;
        justify-content: center;
    }
    .site-live-strip-text {
        font-size: 11px;
        letter-spacing: 0.06em;
    }
    .site-live-strip-cta {
        font-size: 11px;
        padding: 4px 8px;
    }

    .mobile-only {
        display: block;
    }
}

@media (max-width: 1080px) {
    .site-header-search {
        width: min(320px, 30vw);
        min-width: 180px;
    }
    .site-nav {
        gap: 14px;
    }
    .site-nav a {
        font-size: 13px;
    }
}

/* Mobile off-canvas: левое меню (drawer) */
.site-drawer-overlay {
    position: fixed !important;
    inset: 0;
    background: rgba(0,0,0,0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, visibility 0.18s ease;
    z-index: 10040;
}
.site-drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}
.site-drawer {
    position: fixed !important;
    top: 0;
    left: 0;
    height: 100%;
    width: min(320px, 92vw);
    max-width: 92vw;
    background: linear-gradient(160deg, rgba(13,16,24,0.96), rgba(10,13,20,0.96));
    border-right: 1px solid rgba(255,255,255,0.16);
    transform: translateX(calc(-100% - 12px));
    transition: transform 0.22s ease;
    z-index: 10050;
    padding: 16px;
    box-sizing: border-box;
    overflow: auto;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 10px 0 34px rgba(0,0,0,0.42);
}
.site-drawer.open {
    transform: translateX(0);
}
.site-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}
.site-drawer-title {
    color: #FAFF00;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 13px;
}
.site-drawer-close {
    width: 36px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid #333;
    background: #111;
    color: #FAFF00;
    font-size: 22px;
    line-height: 0;
    cursor: pointer;
}
.site-drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.site-drawer-nav a {
    display: block;
    padding: 12px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(18,22,32,0.88);
    color: #d2daea;
    text-decoration: none;
    font-size: 15px;
}
.site-drawer-nav a.active-nav {
    border-color: #FAFF00;
    color: #121212 !important; /* контраст на жовтому; не перекривати глобальними .active-nav */
    background: linear-gradient(180deg, #fffef0 0%, #FAFF00 45%, #e6e200 100%);
    font-weight: 800;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.site-drawer-divider {
    height: 1px;
    background: #222;
    margin: 14px 0;
}
.site-drawer-section-title {
    color: #888;
    font-size: 12px;
    margin-bottom: 10px;
}
.site-drawer-actions {
    display: grid;
    gap: 10px;
}
.site-drawer-search {
    position: relative;
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}
.site-search-suggest {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    z-index: 12000;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(12,16,24,0.98);
    box-shadow: 0 16px 34px rgba(0,0,0,0.42);
    overflow: hidden;
}
.site-search-item {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 8px 10px;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-search-item:last-child {
    border-bottom: 0;
}
.site-search-item:hover {
    background: rgba(255,255,255,0.06);
}
.site-search-item-img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
    flex: 0 0 auto;
}
.site-search-item-text {
    min-width: 0;
    display: grid;
}
.site-search-item-title {
    color: #dfe6f7;
    font-size: 12px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.site-search-item-price {
    font-size: 11px;
    font-weight: 800;
}
.site-drawer-search input {
    flex: 1 1 auto;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(18,22,32,0.9);
    color: #e5ebfa;
    font-size: 14px;
    padding: 9px 10px;
}
.site-drawer-search button {
    border: 0;
    border-radius: 10px;
    padding: 9px 12px;
    background: linear-gradient(120deg, var(--accent-yellow), #ffd75e 58%, var(--accent-orange));
    color: #0f1117;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}
.site-drawer-action {
    display: block;
    padding: 12px 12px;
    border-radius: 12px;
    border: 1px solid #333;
    background: #111;
    color: #FAFF00;
    text-decoration: none;
    text-align: center;
    font-weight: 800;
}

@media (max-width: 820px) {
    .site-header {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    .site-drawer {
        width: min(360px, 88vw);
        max-width: 88vw;
        transform: translateX(calc(-100% - 10px));
        border-right: 1px solid rgba(255,255,255,0.16);
        border-radius: 0 16px 16px 0;
        padding: 18px 14px 20px;
    }
    .site-drawer.open {
        transform: translateX(0);
    }
    .site-drawer-nav a {
        font-size: 16px;
        padding: 14px 12px;
    }
    .site-drawer-actions {
        margin-top: 4px;
    }
    .site-drawer-overlay {
        background: rgba(4,7,12,0.68);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
    }
    body.drawer-open .site-profile-btn {
        visibility: hidden;
        pointer-events: none;
    }
}

/* Mobile popover: профиль (справа) */
.site-profile-popover {
    position: absolute;
    right: 14px;
    top: 66px;
    width: 240px;
    max-width: calc(100vw - 28px);
    background: #0d0d0d;
    border: 1px solid #333;
    border-radius: 16px;
    z-index: 2100;
    box-shadow: 0 18px 40px rgba(0,0,0,0.7);
    display: none;
    padding: 10px;
    box-sizing: border-box;
}
.site-profile-popover.open {
    display: block;
}
.site-profile-popover-link {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid transparent;
    color: #bbb;
    text-decoration: none;
    font-size: 14px;
}
.site-profile-popover-link:hover {
    border-color: #333;
    background: #111;
    color: #FAFF00;
}

/* Marketplace-подобный блок (каталог) */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 14px;
    align-items: stretch;
}
.shop-grid > div {
    display: flex;
}
.shop-card {
    background: linear-gradient(145deg, rgba(26,31,42,0.72), rgba(17,20,29,0.8));
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    overflow: visible;
    min-height: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 14px 32px rgba(0,0,0,0.28);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.shop-card.has-old-price-tip-open {
    z-index: 120;
}
.shop-card:hover {
    transform: translateY(-2px);
    border-color: rgba(54,183,255,0.45);
    box-shadow: 0 18px 36px rgba(0,0,0,0.35), 0 0 0 1px rgba(54,183,255,0.18) inset;
}
.pallet-item-card:hover {
    transform: translateY(-3px) scale(1.01);
}
.shop-card-media {
    height: 150px;
    background: linear-gradient(160deg, #131722, #0d0f16);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-radius: 14px 14px 0 0;
}
.shop-card-content {
    box-sizing: border-box;
    padding: 10px 10px 12px;
    display: grid;
    grid-template-rows: minmax(34px, auto) minmax(24px, auto) auto;
    row-gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
}
.shop-card-title {
    font-size: 13px;
    line-height: 1.25;
    min-height: 34px;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.shop-card-brand {
    margin-top: 2px;
    min-height: 16px;
}
.shop-card-brand a,
.shop-card-brand-link {
    color: #9eb8ff;
    font-size: 11px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.shop-card-brand a:hover,
.shop-card-brand-link:hover {
    color: #d8e4ff;
    text-decoration: underline;
}
/* Додатковий рядок під ціною (стан тощо) — адаптивний шрифт, без накладання */
.shop-card-meta {
    margin-top: 8px;
    color: #999;
    font-size: clamp(10px, calc(0.28rem + 1.6vw), 12px);
    line-height: 1.35;
    word-break: break-word;
    overflow-wrap: anywhere;
}
.shop-card-meta strong {
    color: #ddd;
    font-weight: 600;
}
.shop-price-row {
    margin-top: 0;
    display: flex;
    gap: 8px;
    align-items: baseline;
    flex-wrap: wrap;
    min-height: 24px;
}
/* У картках каталогу: поточна + перекреслена ціна в один ряд, адаптивний розмір */
.shop-card .shop-price-row {
    flex-wrap: nowrap;
    align-items: center;
    gap: clamp(4px, 1.2vw, 8px);
    min-width: 0;
    align-self: stretch;
}
.shop-card .shop-price-row .price-display {
    font-size: clamp(12px, calc(0.35rem + 2.2vw), 15px);
    line-height: 1.2;
    flex: 0 1 auto;
    min-width: 0;
    white-space: nowrap;
}
.shop-card .shop-price-row .old-price-wrap {
    flex: 0 1 auto;
    min-width: 0;
}
.shop-card .shop-price-row .old-price-value {
    font-size: clamp(10px, calc(0.28rem + 1.8vw), 12px);
}
.shop-card .shop-price-row .old-price-tip {
    flex-shrink: 0;
}
@media (max-width: 340px) {
    .shop-card .shop-price-row {
        flex-wrap: wrap;
        row-gap: 4px;
    }
    .shop-card .shop-price-row .price-display {
        white-space: normal;
    }
}
.shop-badge-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    max-width: 140px;
    pointer-events: none;
}
.shop-badge-overlay span {
    animation: badgePulse 2.2s ease-in-out infinite;
}

/* Підбір товарів за бонусом (partner_catalog) */
.partner-catalog-lead {
    max-width: 920px;
    margin: 0 auto 18px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(250, 255, 0, 0.2);
    background: rgba(250, 255, 0, 0.06);
    color: #c8d0e0;
    font-size: 14px;
    line-height: 1.55;
    text-align: center;
}
.partner-ref-badge {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 999px;
    background: linear-gradient(120deg, #2a5f2a, #3d8f3d);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.02em;
    pointer-events: auto;
}
.partner-ref-badge--boost {
    background: linear-gradient(120deg, #8a4a00, #c97812);
}
.shop-card--partner .shop-badge-overlay {
    max-width: 180px;
}
.partner-est-bonus {
    margin: 6px 0 4px;
    font-size: 13px;
    font-weight: 700;
    color: #9ed49e;
}
.partner-catalog-empty {
    margin: 24px 8px;
    padding: 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: #aaa;
    line-height: 1.5;
}
.partner-catalog-empty a {
    color: var(--accent-yellow, #faff00);
}
.partner-catalog-reset {
    display: block;
    text-align: center;
    font-size: 13px;
    color: #888;
    margin-top: 4px;
}
.partner-catalog-checkbox-row {
    padding: 6px 0;
}
.partner-catalog-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #bbb;
    line-height: 1.4;
    cursor: pointer;
}
.partner-catalog-checkbox input {
    margin-top: 3px;
    flex-shrink: 0;
}

/* Публичная палета: карточки товарів снизу */
.pallet-item-card {
    cursor: pointer;
}
.pallet-item-card:hover {
    border-color: #FAFF00;
    box-shadow: 0 0 20px rgba(250,255,0,0.20);
}

/* Точечное выравнивание кнопки в нижнем списке палеты */
.pallet-bottom-card .shop-card-content {
    display: block;
    padding: 10px 10px 8px;
}
.pallet-bottom-card .shop-card-actions {
    margin-top: 8px;
    padding-top: 0;
}
.pallet-bottom-card .shop-card-actions .btn-add {
    padding: 6px 10px;
}

/* Промо/категории чипсы */
.market-chips {
    max-width: 1200px;
    margin: 0 auto 14px;
    padding: 0 6px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.market-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.14);
    background: linear-gradient(145deg, rgba(23,28,40,0.78), rgba(14,17,25,0.8));
    color: #c6cfdf;
    text-decoration: none;
    font-size: 13px;
}
.market-chip.active {
    background: linear-gradient(120deg, var(--accent-yellow), #ffd75e 58%, var(--accent-orange));
    border-color: transparent;
    color: #11151e;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(255,153,0,0.26);
    animation: chipShine 2.8s linear infinite;
}

/* Чипсы только верхнего уровня — при большом числе разделов не тянут страницу */
.market-chips--cats {
    max-height: 120px;
    overflow-y: auto;
    overflow-x: hidden;
    align-content: flex-start;
    scrollbar-width: thin;
}

/* Каскад категорий в фильтре магазина */
.shop-cat-filter {
    font-size: 13px;
    color: var(--text-muted, #9aa4b5);
}
.shop-cat-filter .shop-cat-search {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid var(--border-soft, rgba(255, 255, 255, 0.12));
    background: rgba(14, 17, 25, 0.85);
    color: #e8edf5;
    margin-bottom: 8px;
}
.shop-cat-filter .shop-cat-suggest {
    position: relative;
    margin-bottom: 10px;
    max-height: 220px;
    overflow-y: auto;
    border-radius: 8px;
    border: 1px solid var(--border-soft, rgba(255, 255, 255, 0.12));
    background: rgba(18, 22, 32, 0.98);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}
.shop-cat-filter .shop-cat-suggest button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 8px 12px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: transparent;
    color: #e8edf5;
    font-size: 13px;
    cursor: pointer;
}
.shop-cat-filter .shop-cat-suggest button:last-child {
    border-bottom: 0;
}
.shop-cat-filter .shop-cat-suggest button:hover,
.shop-cat-filter .shop-cat-suggest button:focus {
    background: rgba(255, 153, 0, 0.12);
    outline: none;
}
.shop-cat-filter .shop-cat-breadcrumb {
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 8px;
    color: #b8c2d4;
    word-break: break-word;
}
.shop-cat-filter select {
    width: 100%;
    margin-bottom: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid var(--border-soft, rgba(255, 255, 255, 0.12));
    background: rgba(14, 17, 25, 0.85);
    color: #e8edf5;
    font-size: 13px;
}
.shop-cat-filter .shop-cat-hint {
    font-size: 11px;
    color: #8a93a5;
    margin-top: 6px;
    line-height: 1.45;
}

/* Категории в хештег-формате (вертикально, без обрезки) */
.category-hashtag-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
}
.category-hashtag {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.14);
    background: linear-gradient(145deg, rgba(23,28,40,0.78), rgba(14,17,25,0.8));
    color: #c6cfdf;
    text-decoration: none;
    font-size: 13px;
    white-space: nowrap;
}
.category-hashtag.active {
    background: linear-gradient(120deg, var(--accent-yellow), #ffd75e 58%, var(--accent-orange));
    border-color: transparent;
    color: #11151e;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(255,153,0,0.26);
    animation: chipShine 2.8s linear infinite;
}

/* Галерея товара на product.php */
.product-main-media {
    background: linear-gradient(160deg, #141a25, #0d1017);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border-soft);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 320px;
    position: relative;
}
.product-media-box {
    position: relative;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    border-radius: 18px;
    padding: 14px;
    overflow-x: clip;
    border: 1px solid rgba(255,255,255,0.14);
    background:
        radial-gradient(circle at 12% 12%, rgba(54,183,255,0.14), transparent 36%),
        radial-gradient(circle at 88% 6%, rgba(255,153,0,0.14), transparent 34%),
        linear-gradient(145deg, rgba(21,26,38,0.9), rgba(11,14,21,0.94));
    box-shadow: 0 18px 40px rgba(0,0,0,0.34);
}
.product-media-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    max-width: 220px;
    pointer-events: none;
}
.product-ref-pin-overlay {
    position: absolute;
    right: 12px;
    bottom: 10px;
    pointer-events: none;
    z-index: 4;
}
.product-ref-pin-overlay span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(10, 14, 22, 0.24);
    color: rgba(220, 232, 255, 0.5);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    backdrop-filter: blur(1px);
}
@media (max-width: 820px) {
    .product-ref-pin-overlay {
        right: 8px;
        bottom: 8px;
    }
    .product-ref-pin-overlay span {
        font-size: 10px;
        padding: 3px 7px;
    }
}
.product-section-wrap {
    max-width: 1200px;
    margin: 20px auto 0;
    padding: 0 20px;
    box-sizing: border-box;
}
.product-watch-strip-wrap {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) 30px;
    gap: 8px;
    align-items: center;
}
.product-watch-nav {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(17,20,28,0.9);
    color: #d7e2ff;
    cursor: pointer;
    font-size: 17px;
    line-height: 1;
}
.product-watch-nav:disabled {
    opacity: 0.35;
    cursor: default;
}
.product-watch-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 2px;
    scrollbar-width: none;
}
.product-watch-strip::-webkit-scrollbar {
    display: none;
}
.product-watch-item {
    min-width: calc((100% - 8px) / 2);
    max-width: calc((100% - 8px) / 2);
    padding: 8px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(16,20,30,0.86);
    text-decoration: none;
    color: inherit;
    box-sizing: border-box;
}
.product-watch-item-media {
    height: 52px;
    border-radius: 8px;
    overflow: hidden;
    background: #0f131c;
}
.product-watch-item-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.product-watch-item-title {
    margin-top: 6px;
    font-size: 11px;
    color: #d2daec;
    line-height: 1.25;
    min-height: 28px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-watch-item-price {
    margin-top: 5px;
    font-size: 12px;
    font-weight: 800;
}
.product-watch-item-meta {
    margin-top: 4px;
    font-size: 11px;
    color: #9eb8ff;
}
.product-watch-empty {
    color: #97a3bf;
    font-size: 12px;
    padding: 4px 0;
}
.product-status-timeline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.product-status-timeline::-webkit-scrollbar {
    display: none;
}
.timeline-step {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 999px;
    padding: clamp(5px, 0.8vw, 7px) clamp(6px, 1vw, 10px);
    font-size: clamp(9px, 1vw, 11px);
    color: #9fb0cf;
    text-align: center;
    background: rgba(14,18,27,0.55);
    white-space: nowrap;
    box-sizing: border-box;
}
.timeline-step:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -11px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: rgba(180,195,225,0.7);
    z-index: 2;
}
.timeline-step.is-done {
    color: #fff;
    border-color: rgba(250,255,0,0.58);
    background: linear-gradient(120deg, rgba(250,255,0,0.16), rgba(255,183,3,0.12));
    box-shadow: inset 0 0 0 1px rgba(250,255,0,0.22);
}
.timeline-step.is-current {
    color: #dff0ff;
    border-color: rgba(54,183,255,0.56);
    background: linear-gradient(120deg, rgba(54,183,255,0.14), rgba(80,145,255,0.1));
    box-shadow: inset 0 0 0 1px rgba(54,183,255,0.2);
}
.product-trust-grid {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}
.product-trust-item {
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 10px;
    padding: 9px 10px;
    background: rgba(15,18,27,0.78);
}
.product-trust-label {
    font-size: 11px;
    color: #9eb0d8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.product-trust-value {
    margin-top: 4px;
    font-size: 18px;
    font-weight: 800;
    color: #FAFF00;
}
.product-micro-reviews {
    margin-top: 10px;
    display: grid;
    gap: 8px;
}
.product-micro-review {
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 9px 10px;
    color: #dce4f8;
    font-size: 12px;
    line-height: 1.45;
    background: rgba(14,18,28,0.72);
}
.product-micro-review span {
    display: inline-block;
    margin-left: 6px;
    color: #8bb7ff;
    font-size: 11px;
}
.product-tabs-nav {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.product-tab-btn {
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(17,22,32,0.84);
    color: #c2cee6;
    padding: 8px 11px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.product-tab-btn.is-active {
    color: #0f1117;
    border-color: rgba(250,255,0,0.88);
    background: linear-gradient(120deg, var(--accent-yellow), #ffd75e 58%, var(--accent-orange));
}
.product-tabs-body {
    margin-top: 12px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    background: rgba(13,16,25,0.72);
    padding: 12px;
}
.product-tab-pane {
    display: none;
    color: #dbe5fb;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
}
.product-tab-pane.is-active { display: block; }
/* Опис товару з дозволеним HTML (жирний, списки…) */
.product-description-html {
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}
/* Текст без HTML: зберігаємо пробіли та переноси рядків як у джерелі */
.product-description-html .product-description-plain {
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    font-family: inherit;
    margin: 0;
}
.product-description-html p {
    margin: 0 0 12px;
}
.product-description-html p:last-child {
    margin-bottom: 0;
}
.product-description-html ul,
.product-description-html ol {
    margin: 0 0 12px;
    padding-left: 1.35em;
}
.product-description-html li {
    margin-bottom: 6px;
}
.product-description-html h2,
.product-description-html h3,
.product-description-html h4 {
    margin: 16px 0 8px;
    font-size: 1.05em;
    color: #f0f4ff;
}
.product-description-html h2:first-child,
.product-description-html h3:first-child,
.product-description-html h4:first-child {
    margin-top: 0;
}
.product-description-html blockquote {
    margin: 10px 0;
    padding: 8px 12px;
    border-left: 3px solid rgba(250, 255, 0, 0.45);
    background: rgba(0, 0, 0, 0.15);
    color: #c9d4ea;
}
.product-description-html hr {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin: 14px 0;
}
.product-description-html strong,
.product-description-html b {
    color: #fff;
    font-weight: 700;
}
.live-now-box {
    margin-top: 14px;
    border: 1px solid rgba(255, 78, 117, 0.45);
    background: linear-gradient(140deg, rgba(33, 13, 29, 0.92), rgba(30, 18, 45, 0.88));
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 0 24px rgba(255, 31, 111, 0.2);
}
.live-now-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    color: #ffd7ec;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.live-now-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff336d;
    box-shadow: 0 0 10px rgba(255, 51, 109, 0.95);
    animation: liveDotBlink 1s steps(2, start) infinite;
}
.live-now-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}
.live-now-item {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    gap: 8px;
    align-items: center;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(13, 16, 26, 0.72);
    border-radius: 10px;
    padding: 6px;
}
.live-now-item:hover { border-color: rgba(255, 77, 142, 0.64); }
.live-now-item-img {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    overflow: hidden;
    background: #101521;
    display: flex;
    align-items: center;
    justify-content: center;
}
.live-now-item-img img { width: 100%; height: 100%; object-fit: cover; }
.live-now-item-title { color: #e8edff; font-size: 12px; line-height: 1.3; }
.live-now-item-price { font-size: 12px; font-weight: 800; white-space: nowrap; }
@keyframes liveDotBlink { 50% { opacity: 0.35; } }
.shop-card-media--similar {
    height: 118px;
}
.page--product .page-title {
    margin-bottom: 8px;
}
.page--product .page-subtitle {
    margin-bottom: 20px;
}
.page--product .page-grid {
    max-width: 1180px;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 20px;
}
.page--product .page-col-left {
    display: none;
}
.page--product .page-col-right {
    top: 88px;
}
.page--product .page-col-right .aside {
    max-height: calc(100vh - 106px);
    overflow: auto;
    padding: 10px 4px 0 0;
    box-sizing: border-box;
}
.page--product .page-col-right .aside::-webkit-scrollbar {
    width: 6px;
}
.page--product .page-col-right .aside::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.18);
    border-radius: 999px;
}
.page--product .product-watch-strip-wrap {
    grid-template-columns: minmax(0, 1fr);
}
.page--product .product-watch-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
    scrollbar-width: thin;
}
.page--product .product-watch-row .product-watch-item {
    flex: 0 0 170px;
    min-width: 170px;
    max-width: 170px;
}
.product-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.page--product .aside-card {
    border-color: rgba(255,255,255,0.16);
    box-shadow: 0 16px 34px rgba(0,0,0,0.34);
    /* Глобальний .aside-card має overflow:hidden — обрізає кнопку «i» та підказку біля ціни */
    overflow: visible;
}
/* Коли відкрита підказка — картка над наступною, щоб балун не ховався під «Поділитися» */
.page--product .aside-card:has(.old-price-tip[open]) {
    z-index: 25;
}
.page--product .product-price-aside-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: baseline;
    min-width: 0;
    /* Якір для підказки: overflow:auto у .aside обрізає балун зверху — показуємо його під рядком */
    position: relative;
    z-index: 1;
}
.page--product .aside-card:has(.old-price-tip[open]) .product-price-aside-row {
    margin-bottom: clamp(88px, 28vw, 132px);
}
.page--product .product-price-aside-row .product-price-hero {
    min-width: 0;
    flex: 0 1 auto;
}
.page--product .aside-card .old-price-wrap {
    flex: 0 1 auto;
    min-width: 0;
}
.page--product .aside-card .old-price-tip {
    flex-shrink: 0;
    position: static;
}
.page--product .aside-card .old-price-tip-text {
    /* Позиціонування від .product-price-aside-row (вище), не «над» кнопкою — інакше ріже overflow у .aside */
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    bottom: auto;
    transform: none;
    width: auto;
    max-width: none;
    margin: 0;
    z-index: 90;
    box-sizing: border-box;
}
.page--product .aside-card .old-price-tip-text::after {
    /* Стрілка вгору до рядка цін */
    left: 50%;
    top: -12px;
    margin-left: -6px;
    transform: none;
    border: 6px solid transparent;
    border-top-color: transparent;
    border-bottom-color: rgba(13, 16, 24, 0.96);
}

@media (max-width: 1100px) {
    .page--product .page-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .page--product .page-col-right {
        position: static;
        display: block;
    }
    .page--product .page-col-right .aside {
        max-height: none;
        overflow: visible;
        padding: 0;
    }
    .product-meta-grid {
        grid-template-columns: 1fr;
    }
    .product-media-box {
        max-width: min(96vw, 760px);
    }
    .product-section-wrap {
        padding: 0 10px;
        margin-top: 14px;
    }
    .product-watch-item {
        min-width: calc((100% - 8px) / 2);
        max-width: calc((100% - 8px) / 2);
    }
    .product-status-timeline {
        gap: 8px;
    }
    .timeline-step {
        font-size: 9px;
        padding: 5px 6px;
    }
    .timeline-step:not(:last-child)::after {
        right: -9px;
        font-size: 10px;
    }
}
@media (max-width: 820px) {
    .timeline-step {
        font-size: 8px;
        letter-spacing: 0.01em;
        padding: 4px 5px;
    }
    .timeline-step:not(:last-child)::after {
        display: none;
    }
}

.shop-no-photo {
    width: 100%;
    height: 100%;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #141b29 0, #0d111a 100%);
}
.shop-no-photo img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}
.shop-no-photo--large {
    min-height: 320px;
}
.page--product .shop-no-photo--large {
    min-height: 240px;
}
.page--product .shop-no-photo--large img {
    width: min(74%, 300px);
    height: auto;
    max-height: 220px;
}

/* Галерея мініатюр: горизонтальний скрол, усі фото доступні свайпом/коліщатком */
.product-gallery-thumbs {
    margin-top: 12px;
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    padding: 4px 2px 10px;
    margin-left: -2px;
    margin-right: -2px;
    scrollbar-width: thin;
    scrollbar-color: rgba(250, 255, 0, 0.35) rgba(0, 0, 0, 0.2);
}
.product-gallery-thumbs::-webkit-scrollbar {
    height: 6px;
}
.product-gallery-thumbs::-webkit-scrollbar-thumb {
    background: rgba(250, 255, 0, 0.35);
    border-radius: 999px;
}
.product-thumb-link {
    position: relative;
    display: block;
    flex: 0 0 auto;
    width: 72px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #333;
    background: #000;
    text-decoration: none;
    scroll-snap-align: start;
}
.product-thumb-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
@media (max-width: 520px) {
    .product-thumb-link {
        width: 64px;
        height: 64px;
    }
}
.product-thumb-link .product-thumb-num {
    position: absolute;
    right: 6px;
    top: 6px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 11px;
    padding: 3px 6px;
    border-radius: 999px;
    font-weight: 800;
}
.product-thumb-link .product-thumb-kind {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 3px 4px;
    font-size: 9px;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
    color: #eaf0ff;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.75));
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.product-thumb-link--promo .product-thumb-kind {
    color: #ffd6a8;
    background: linear-gradient(180deg, transparent, rgba(120, 60, 20, 0.85));
}
.product-thumb-link--real .product-thumb-kind {
    color: #b8f5c8;
    background: linear-gradient(180deg, transparent, rgba(20, 80, 50, 0.85));
}

/* Lightbox галерея на product.php (без Fancybox CDN) */
.pg-modal-open {
    overflow: hidden;
    padding-right: var(--fancybox-scrollbar-compensate, 15px);
}

.product-gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: none;
}
.product-gallery-modal.is-open {
    display: block;
}

.product-gallery-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.72);
}

.product-gallery-modal__panel {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(980px, calc(100vw - 40px));
    max-height: min(92vh, calc(100vh - 24px));
    background: linear-gradient(145deg, rgba(19,24,35,0.9), rgba(11,14,22,0.92));
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.85);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}
.product-gallery-modal__stage {
    position: relative;
    flex: 1 1 auto;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-gallery-modal__close {
    position: absolute;
    right: 12px;
    top: 10px;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid #333;
    background: #111;
    color: #FAFF00;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

.product-gallery-modal__img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px 52px 12px;
    min-height: 0;
    flex: 1 1 auto;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}
.product-gallery-modal__img-wrap img {
    max-width: 100%;
    max-height: min(62vh, calc(92vh - 200px));
    object-fit: contain;
    display: block;
}

@media (max-width: 820px) {
    .product-gallery-modal__panel {
        width: calc(100vw - 16px);
        max-height: min(94vh, calc(100vh - 12px));
        padding: 10px;
        border-radius: 14px;
    }
    .product-gallery-modal__img-wrap {
        padding: 32px 44px 8px;
    }
    .product-gallery-modal__img-wrap img {
        max-height: min(48vh, calc(94vh - 220px));
    }
}

.product-gallery-modal__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid #333;
    background: rgba(17,17,17,0.92);
    color: #FAFF00;
    cursor: pointer;
    font-size: 24px;
    line-height: 44px;
    text-align: center;
    box-shadow: 0 4px 14px rgba(0,0,0,0.45);
}
.product-gallery-modal__nav[data-pg-nav="prev"] { left: 4px; }
.product-gallery-modal__nav[data-pg-nav="next"] { right: 4px; }

@media (max-width: 520px) {
    .product-gallery-modal__nav {
        width: 38px;
        height: 38px;
        line-height: 38px;
        font-size: 20px;
        border-radius: 12px;
    }
    .product-gallery-modal__nav[data-pg-nav="prev"] { left: 2px; }
    .product-gallery-modal__nav[data-pg-nav="next"] { right: 2px; }
}

.product-gallery-modal-thumbs-wrap {
    flex: 0 0 auto;
    min-height: 0;
    width: 100%;
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.product-gallery-modal-thumbs {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 6px 4px 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(250, 255, 0, 0.35) rgba(0, 0, 0, 0.2);
}
.product-gallery-modal-thumbs::-webkit-scrollbar {
    height: 6px;
}
.product-gallery-modal-thumbs::-webkit-scrollbar-thumb {
    background: rgba(250, 255, 0, 0.35);
    border-radius: 999px;
}
.product-gallery-modal-thumbs button {
    flex: 0 0 auto;
    border: 1px solid #333;
    background: #000;
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    cursor: pointer;
    outline: none;
}
.product-gallery-modal-thumbs button img {
    width: 72px;
    height: 52px;
    object-fit: cover;
    display: block;
}
@media (max-width: 520px) {
    .product-gallery-modal-thumbs button img {
        width: 64px;
        height: 46px;
    }
}
.product-gallery-modal-thumbs button.is-active {
    border-color: #FAFF00;
    box-shadow: 0 0 16px rgba(250,255,0,0.25);
}
body.pallet-fullscreen-on {
    overflow: hidden;
}
.pallet-fs-open {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 25;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 10px;
    background: rgba(10, 12, 18, 0.82);
    color: #f2f5ff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(250, 255, 0, 0.35);
    transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease;
}
.pallet-fs-open:hover {
    background: rgba(250, 255, 0, 0.95);
    color: #121212;
    transform: scale(1.04);
}
.pallet-fs-open:focus-visible {
    outline: 2px solid #FAFF00;
    outline-offset: 2px;
}
.pallet-fs-open-icon {
    display: block;
    flex-shrink: 0;
}
.pallet-fullscreen-root {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10020;
    flex-direction: column;
    background: rgba(6, 8, 12, 0.96);
}
.pallet-fullscreen-root.is-open {
    display: flex;
}
.pallet-fullscreen-bar {
    flex-shrink: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    background: linear-gradient(180deg, #141820 0%, #0c0e14 100%);
    border-bottom: 1px solid rgba(250, 255, 0, 0.15);
}
.pallet-fullscreen-hint {
    font-size: 12px;
    color: #9aa3b5;
    line-height: 1.35;
    max-width: 420px;
}
.pallet-fullscreen-bar-right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}
.pallet-fs-tabs-host .pallet-tabs-public {
    padding: 6px 8px;
    border-bottom: none;
    background: transparent;
}
.pallet-fs-close {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(250, 255, 0, 0.45);
    background: rgba(250, 255, 0, 0.12);
    color: #f4f6ff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.pallet-fs-close:hover {
    background: rgba(250, 255, 0, 0.92);
    color: #121212;
}
.pallet-fullscreen-stage {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow: auto;
}
.pallet-fullscreen-stage .pallet-inner {
    flex-shrink: 0;
    margin: auto;
}
.pallet-box {
    position: relative;
    max-width: 680px;
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    background:
        radial-gradient(circle at 15% 8%, rgba(54,183,255,0.2) 0, transparent 35%),
        radial-gradient(circle at 90% 0%, rgba(255,153,0,0.18) 0, transparent 33%),
        radial-gradient(circle at top, #1a1f2c 0, #0a0d13 58%);
    box-shadow: 0 0 40px rgba(0,0,0,0.7);
}

/* Точечная адаптация главной палеты */
.page--pallet .page-grid {
    grid-template-columns: 240px minmax(0, 1fr) 250px;
    gap: 18px;
}
.page--pallet .pallet-box {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 1400px) {
    .page--pallet .page-grid {
        grid-template-columns: 220px minmax(0, 1fr) 235px;
        gap: 16px;
    }
    .page--pallet .pallet-box {
        max-width: 560px;
    }
}

@media (max-width: 1150px) {
    .page--pallet .page-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .page--pallet .page-col-left,
    .page--pallet .page-col-right {
        display: none;
        position: static;
    }
    .page--pallet .pallet-box {
        max-width: min(92vw, 620px);
    }
}

/* Головна палета: швидкі посилання та блок повного каталогу */
.home-quick-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}
.home-quick-nav a {
    display: block;
    padding: 9px 11px;
    border-radius: 10px;
    text-decoration: none;
    color: #d4dced;
    font-size: 13px;
    line-height: 1.35;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(8,10,16,0.45);
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.home-quick-nav a:hover {
    border-color: rgba(250,255,0,0.38);
    color: #fff;
    background: rgba(250,255,0,0.06);
}
.home-quick-nav--mobile {
    margin-top: 14px;
}
.home-catalog-lead {
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.55;
    color: #aeb9d4;
}
.home-catalog-actions {
    margin-top: 12px;
}
.home-catalog-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}
.home-catalog-empty {
    margin-top: 14px;
    font-size: 14px;
    color: #8893a8;
    line-height: 1.5;
}
.home-catalog-empty a {
    color: #9eb8ff;
}
.home-catalog-footnote {
    margin: 14px 0 0;
    font-size: 12px;
    color: #6b7488;
    line-height: 1.45;
}
.home-catalog-wide .aside-card {
    overflow: visible;
}

/* У контейнерах з товарними картками дозволяємо тултіпам виходити за межі */
.pallet-box:has(.shop-grid) {
    overflow: visible;
}
.aside-card:has(.shop-grid) {
    overflow: visible;
}
.pallet-tabs-public {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    background: #111;
    border-bottom: 1px solid #333;
}
.pallet-tab-public {
    padding: 6px 12px;
    border: 1px solid #444;
    border-radius: 6px;
    background: #1a1a1a;
    color: #aaa;
    cursor: pointer;
    font-size: 13px;
}
.pallet-tab-public:hover {
    background: #252525;
    color: #fff;
}
.pallet-tab-public.active {
    background: #FAFF00;
    color: #121212;
    border-color: #FAFF00;
}
.pallet-inner {
    position: relative;
    width: 100%;
}
.pallet-inner img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: saturate(1.1);
    background: #000;
}
.pallet-item-area {
    position: absolute;
    border: 2px solid rgba(250,255,0,0.0);
    box-shadow: 0 0 0 0 rgba(250,255,0,0.0);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.18s ease-out;
}
.pallet-item-area[data-active="1"] {
    border-color: rgba(250,255,0,1);
    box-shadow: 0 0 18px rgba(250,255,0,0.90);
    background-color: rgba(250,255,0,0.10);
    animation: zonePulseArea 1.7s ease-in-out infinite;
}
.pallet-poly-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.pallet-item-poly {
    fill: rgba(0,0,0,0.08);
    stroke: rgba(250,255,0,0.0);
    stroke-width: 0.9;
    vector-effect: non-scaling-stroke;
    pointer-events: auto;
    cursor: pointer;
    transition: all 0.18s ease-out;
}
.pallet-item-poly[data-active="1"] {
    stroke: rgba(250,255,0,1) !important;
    fill: rgba(250,255,0,0.10) !important;
    filter: drop-shadow(0 0 14px rgba(250,255,0,0.90));
    animation: zonePulsePoly 1.7s ease-in-out infinite;
}
/* 0=Не доступний — сірий, 1=В наявності — зелений, 2=Заброньований — помаранчевий, 3=Проданий — червоний */
.pallet-item-area.item-status-0,
.pallet-item-poly.item-status-0 { border-color: #555 !important; stroke: #555 !important; }
.pallet-item-area.item-status-1,
.pallet-item-poly.item-status-1 { border-color: #2d8a2d !important; stroke: #2d8a2d !important; }
.pallet-item-area.item-status-2,
.pallet-item-poly.item-status-2 { border-color: #d4842c !important; stroke: #d4842c !important; }
.pallet-item-area.item-status-3,
.pallet-item-poly.item-status-3 { border-color: #c0392b !important; stroke: #c0392b !important; }

/* Fill по статусам (чтобы зона выглядела “живой”) */
.pallet-item-poly.item-status-0 { fill: rgba(85,85,85,0.10) !important; }
.pallet-item-poly.item-status-1 { fill: rgba(45,138,45,0.16) !important; }
.pallet-item-poly.item-status-2 { fill: rgba(212,132,44,0.18) !important; }
.pallet-item-poly.item-status-3 { fill: rgba(192,57,43,0.18) !important; }

/* Подсветка при наведении (цвет статуса, без “перекрашивания” в золото) */
.pallet-item-area.item-status-0:hover { box-shadow: 0 0 16px rgba(85,85,85,0.45); background-color: rgba(85,85,85,0.08); }
.pallet-item-area.item-status-1:hover { box-shadow: 0 0 16px rgba(45,138,45,0.45); background-color: rgba(45,138,45,0.08); }
.pallet-item-area.item-status-2:hover { box-shadow: 0 0 16px rgba(212,132,44,0.48); background-color: rgba(212,132,44,0.10); }
.pallet-item-area.item-status-3:hover { box-shadow: 0 0 16px rgba(192,57,43,0.45); background-color: rgba(192,57,43,0.10); }

.pallet-item-poly.item-status-0:hover { filter: drop-shadow(0 0 10px rgba(85,85,85,0.35)); }
.pallet-item-poly.item-status-1:hover { filter: drop-shadow(0 0 10px rgba(45,138,45,0.45)); }
.pallet-item-poly.item-status-2:hover { filter: drop-shadow(0 0 10px rgba(212,132,44,0.50)); }
.pallet-item-poly.item-status-3:hover { filter: drop-shadow(0 0 10px rgba(192,57,43,0.45)); }

@keyframes zonePulseArea {
    0%, 100% { box-shadow: 0 0 18px rgba(250,255,0,0.85); background-color: rgba(250,255,0,0.10); }
    50% { box-shadow: 0 0 28px rgba(250,255,0,0.98); background-color: rgba(250,255,0,0.14); }
}

@keyframes zonePulsePoly {
    0%, 100% { filter: drop-shadow(0 0 12px rgba(250,255,0,0.85)); }
    50% { filter: drop-shadow(0 0 22px rgba(250,255,0,0.98)); }
}

.tooltip {
    position: absolute;
    min-width: 210px;
    max-width: 260px;
    background: linear-gradient(180deg, #1c1c1c 0, #121212 100%);
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.75);
    z-index: 10;
    display: none;
    border: 1px solid rgba(250,255,0,0.18);
}
.tooltip::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: rgba(250,255,0,0.8);
    border-radius: 999px;
}
.tooltip-title, .tooltip-prices, .tooltip-meta { position: relative; padding-left: 10px; }
.tooltip-title { font-size: 15px; margin-bottom: 6px; }
.tooltip-prices {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.price-old { text-decoration: line-through; color: #777; }
.price-new { font-weight: 600; font-size: 16px; }
.old-price-value {
    color: #777;
    text-decoration: line-through;
    font-size: 12px;
    line-height: 1.15;
}
.old-price-value--lg {
    font-size: 14px;
}
.old-price-wrap {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
}
.old-price-tip {
    position: relative;
    display: inline-block;
}
.old-price-tip > summary {
    list-style: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.38);
    color: #d7deed;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
    background: rgba(15, 18, 26, 0.85);
}
.old-price-tip > summary::-webkit-details-marker {
    display: none;
}
.old-price-tip-text {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    width: min(280px, 78vw);
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(13, 16, 24, 0.96);
    color: #d4dced;
    font-size: 12px;
    line-height: 1.45;
    box-shadow: 0 12px 28px rgba(0,0,0,0.4);
    z-index: 30;
}
.old-price-tip:not([open]) .old-price-tip-text {
    display: none;
}
.old-price-tip-text::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 100%;
    margin-left: -6px;
    border: 6px solid transparent;
    border-top-color: rgba(13, 16, 24, 0.96);
}

/* У товарних картках підказка плаває поверх, без зміни висоти */
.shop-card .old-price-wrap {
    flex-wrap: nowrap;
}
.shop-card .old-price-tip {
    position: relative;
}
.shop-card .old-price-tip-text {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    width: min(260px, 70vw);
    font-size: 12px;
    line-height: 1.4;
    z-index: 60;
}
.btn-add {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(120deg, var(--accent-yellow), #ffd75e 58%, var(--accent-orange));
    color: #11151e;
    box-sizing: border-box;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(255,153,0,0.28);
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}
.btn-add:hover {
    opacity: 0.98;
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(255,153,0,0.35);
}
.btn-add:active {
    transform: translateY(0) scale(0.98);
}
.aside { width: 360px; max-width: 100%; }
.aside-card {
    background: linear-gradient(145deg, var(--bg-elevated), var(--bg-elevated-strong));
    border-radius: 18px;
    padding: 18px;
    border: 1px solid var(--border-soft);
    box-shadow: 0 14px 34px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.aside-title {
    text-transform: uppercase;
    font-family: 'e-Ukraine Head', 'e-Ukraine', 'Segoe UI', Arial, sans-serif;
    letter-spacing: 0.14em;
    font-size: 14px;
    color: #fff4a0;
    margin-bottom: 4px;
}
.aside-text { font-size: 14px; color: #d6dced; margin-bottom: 16px; }
.mini-list { font-size: 13px; color: #b8c1d3; margin-bottom: 18px; }
.mini-list li { margin-bottom: 4px; }
.aside-note { font-size: 12px; color: #777; line-height: 1.5; margin-top: 12px; }
.auth-wrap {
    max-width: 520px;
    margin: 0 auto;
}
.auth-card {
    padding: 18px;
}
.auth-subtitle {
    margin-top: 6px;
    color: #98a7c7;
    font-size: 13px;
    line-height: 1.5;
}
.auth-form {
    margin-top: 12px;
    display: grid;
    gap: 10px;
}
.auth-label {
    display: grid;
    gap: 6px;
    color: #dce6ff;
    font-size: 12px;
    font-weight: 700;
}
.auth-label input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(14,18,28,0.82);
    color: #eef3ff;
    outline: none;
}
.auth-label input:focus {
    border-color: rgba(54,183,255,0.65);
    box-shadow: 0 0 0 3px rgba(54,183,255,0.16);
}
.auth-actions {
    margin-top: 4px;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.auth-switch {
    margin-top: 10px;
    color: #b3c1df;
    font-size: 13px;
}
.auth-switch a {
    color: #91c4ff;
    text-decoration: none;
}
.auth-switch a:hover { color: #cce4ff; }
.font-test-head {
    display: grid;
    gap: 8px;
}
.font-test-note {
    color: #98a7c7;
    font-size: 13px;
    line-height: 1.5;
}
.font-eukraine-demo {
    margin-top: 12px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 14px;
    background: rgba(13,17,26,0.75);
}
.font-eukraine-demo h3 {
    margin: 0 0 8px;
    font-size: 13px;
    color: #b7c7eb;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.font-eukraine {
    font-family: 'e-Ukraine', 'Segoe UI', Arial, sans-serif;
}
.font-eukraine-head {
    font-family: 'e-Ukraine Head', 'e-Ukraine', 'Segoe UI', Arial, sans-serif;
}
.agent-widget { position: fixed; right: 20px; bottom: 20px; z-index: 50; }
.agent-button {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 20%, #FAFF00 0, #f2c500 35%, #161616 75%);
    border: 2px solid #FAFF00;
    box-shadow: 0 0 22px rgba(250,255,0,0.8);
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: krenzelPulse 1.8s ease-in-out infinite;
}
.agent-button::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid #121212;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.4);
}

/* Mobile-first адаптация */
@media (max-width: 820px) {
    .layout {
        flex-direction: column;
        gap: 16px;
    }
    .aside {
        width: 100%;
    }
    .aside-card {
        padding: 14px;
    }
    .page {
        padding: 20px 12px 80px;
    }
    .site-footer-col {
        min-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    .site-footer-col--right {
        margin-left: 0;
        padding-top: 2px;
        justify-content: flex-start;
        display: flex;
    }
    .site-footer-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .site-footer-brands-title {
        margin-bottom: 10px;
    }
    .site-footer-brands-list {
        gap: 8px;
    }
    .site-footer-brand-link {
        font-size: 11px;
    }
    .page-title {
        font-size: 18px;
        letter-spacing: 0.04em;
        max-width: 100%;
        margin-bottom: 8px;
        text-wrap: pretty;
    }
    .page-subtitle {
        font-size: 13px;
        line-height: 1.45;
        margin-bottom: 14px;
        max-width: 100%;
    }
    .partner-catalog-lead {
        font-size: 12px;
        line-height: 1.4;
        padding: 10px 11px;
        margin-bottom: 12px;
    }
    .shop-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }
    .shop-card-media {
        height: 140px;
    }

    .agent-widget {
        right: 14px;
        bottom: 14px;
    }
    .agent-window {
        right: 12px;
        left: 12px;
        width: auto;
        bottom: 92px;
    }
}

.shop-card-actions {
    margin-top: 0;
    padding-top: 2px;
    align-self: end;
}

.shop-card-actions .btn-add {
    width: 100%;
    display: flex;
    justify-content: center;
    white-space: nowrap;
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}
.brand-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.14);
    background: linear-gradient(145deg, rgba(23,28,40,0.78), rgba(14,17,25,0.8));
    text-decoration: none;
}
.brand-card-name {
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.brand-card-count {
    color: #aab3c5;
    font-size: 12px;
}

@keyframes bodyFlow {
    0% {
        background-position: 0% 0%, 100% 0%, 0% 0%;
    }
    100% {
        background-position: 8% 6%, 92% 8%, 0% 0%;
    }
}

@keyframes badgePulse {
    0%, 100% {
        transform: translateY(0);
        filter: brightness(1);
    }
    50% {
        transform: translateY(-1px);
        filter: brightness(1.08);
    }
}

@keyframes chipShine {
    0%, 100% {
        box-shadow: 0 8px 20px rgba(255,153,0,0.22);
    }
    50% {
        box-shadow: 0 10px 24px rgba(250,255,0,0.28);
    }
}

@keyframes krenzelPulse {
    0%, 100% {
        box-shadow: 0 0 22px rgba(250,255,0,0.8);
    }
    50% {
        box-shadow: 0 0 30px rgba(255,153,0,0.95);
    }
}

.agent-button span {
    position: relative;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #121212;
}
.agent-hint {
    position: absolute;
    right: 80px;
    bottom: 20px;
    background: #181818;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    color: #f5f5f5;
    border: 1px solid rgba(250,255,0,0.6);
    display: none;
}
.agent-window {
    position: fixed;
    right: 20px;
    bottom: 100px;
    width: 320px;
    max-width: 100%;
    background: #181818;
    border-radius: 18px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.85);
    display: none;
    overflow: hidden;
    border: 1px solid rgba(250,255,0,0.4);
}
.agent-header {
    padding: 10px 14px;
    background: linear-gradient(90deg, #FAFF00 0, #f2c500 60%, #181818 100%);
    color: #121212;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.agent-header span { text-transform: uppercase; letter-spacing: 0.12em; }
.agent-close { cursor: pointer; font-size: 16px; }
.agent-body {
    max-height: 340px;
    padding: 10px 12px;
    overflow-y: auto;
    font-size: 13px;
}
.msg { margin-bottom: 10px; display: flex; }
.msg.agent { justify-content: flex-start; }
.msg.user { justify-content: flex-end; }
.msg-bubble {
    max-width: 80%;
    padding: 8px 10px;
    border-radius: 14px;
    line-height: 1.3;
}
.msg.agent .msg-bubble {
    background: #222222;
    border: 1px solid rgba(250,255,0,0.5);
}
.msg.user .msg-bubble { background: #303030; }
.agent-footer {
    padding: 8px;
    border-top: 1px solid #262626;
    display: flex;
    gap: 6px;
}
.agent-footer input {
    flex: 1;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #333333;
    background: #111111;
    color: #f5f5f5;
    font-size: 13px;
}
.agent-footer button {
    padding: 6px 10px;
    border-radius: 999px;
    border: none;
    background: #FAFF00;
    color: #121212;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
}
@media (max-width: 768px) {
    .page { padding: 16px 10px 80px; }
    .pallet-inner { padding-bottom: 80%; }
    .aside-card { padding-bottom: 18px; }
}

/* ——— Особистий кабінет /account.php ——— */
.page--account {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 12px;
    padding-right: 12px;
    box-sizing: border-box;
}
.page--account .account-header {
    text-align: left;
    margin-bottom: 20px;
}
.page--account .account-header__title {
    text-align: left;
    margin-bottom: 8px;
}
.page--account .account-header__lead {
    margin: 0;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.5;
    max-width: 640px;
}

.account-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}
.account-stat-card {
    background: var(--bg-elevated-strong);
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.account-stat-card__label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.account-stat-card__value {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
    word-break: break-word;
}
.account-stat-card__value--sm {
    font-size: 18px;
}
.account-stat-card__value--mono {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 17px;
    color: var(--accent-yellow);
}
.account-stat-card__unit {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
}

.account-mobile-bar {
    display: none;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
}
.account-mobile-bar__label {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
}
.account-mobile-bar__select {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: #111520;
    color: var(--text-main);
    font-size: 15px;
}

.account-shell {
    display: grid;
    grid-template-columns: 272px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.account-sidebar {
    position: sticky;
    top: 96px;
    background: var(--bg-elevated-strong);
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.account-user-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-soft);
}
.account-user-card__avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(250, 255, 0, 0.25), rgba(54, 183, 255, 0.35));
    color: #fff;
    font-weight: 800;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.account-user-card__name {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-main);
    line-height: 1.3;
}
.account-user-card__email {
    font-size: 12px;
    color: var(--text-muted);
    word-break: break-all;
    margin-top: 4px;
}
.account-user-card__meta {
    font-size: 11px;
    color: #8a93a8;
    margin-top: 6px;
}

.account-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.account-nav__link {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-muted);
    border: 1px solid transparent;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.account-nav__link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
}
.account-nav__link.is-active {
    background: rgba(250, 255, 0, 0.1);
    border-color: rgba(250, 255, 0, 0.35);
    color: var(--text-main);
}
.account-nav__label {
    display: block;
    font-weight: 600;
    font-size: 14px;
}
.account-nav__hint {
    display: block;
    font-size: 11px;
    color: #8a93a8;
    margin-top: 2px;
    line-height: 1.35;
}
.account-nav__link.is-active .account-nav__hint {
    color: rgba(255, 255, 255, 0.55);
}

.account-sidebar__foot {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border-soft);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.account-sidebar__link {
    font-size: 13px;
    color: var(--accent-blue);
    text-decoration: none;
}
.account-sidebar__link:hover {
    text-decoration: underline;
}
.account-sidebar__link--muted {
    color: var(--text-muted);
}

.account-main {
    min-width: 0;
}
.account-main__head {
    margin-bottom: 18px;
}
.account-main__title {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-main);
}
.account-main__desc {
    margin: 0;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.45;
}

.account-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 16px;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.18);
}
.account-card--hint {
    background: rgba(54, 183, 255, 0.06);
    border-color: rgba(54, 183, 255, 0.22);
}
.account-card__title {
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
}
.account-card__text {
    margin: 0 0 12px;
    font-size: 14px;
    color: #cdd7ec;
    line-height: 1.55;
}
.account-card__muted {
    margin: 0 0 12px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.45;
}
.account-card__fine {
    margin: 12px 0 0;
    font-size: 12px;
    color: #8a93a8;
}

.account-invite-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: stretch;
    margin-bottom: 12px;
}
.account-input {
    flex: 1 1 280px;
    min-width: 0;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: #0d1018;
    color: var(--text-main);
    font-size: 14px;
}
.account-input:focus {
    outline: none;
    border-color: rgba(250, 255, 0, 0.45);
}
.account-input--readonly {
    opacity: 0.95;
    cursor: text;
}
.account-btn-copy {
    flex: 0 0 auto;
}

.account-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.account-chip {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #dde4f0;
}
.account-chip--ok {
    background: rgba(31, 122, 31, 0.35);
    color: #d8ffd8;
}
.account-chip--muted {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}
.account-chip--accent {
    background: rgba(250, 255, 0, 0.18);
    color: var(--accent-yellow);
    font-weight: 700;
}

.account-progress {
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    margin: 12px 0;
}
.account-progress__fill {
    height: 100%;
    background: linear-gradient(90deg, #FAFF00, #ffb703, #36b7ff);
    border-radius: inherit;
    transition: width 0.35s ease;
}

.account-phone-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}
.account-field {
    flex: 1 1 240px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.account-field__label {
    font-size: 12px;
    color: var(--text-muted);
}
.account-msg {
    margin-bottom: 12px;
}

.account-empty {
    margin: 0;
    padding: 14px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    font-size: 14px;
}

.account-table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 4px;
}
.account-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    font-size: 13px;
}
.account-table th,
.account-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    vertical-align: top;
}
.account-table th {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #8a93a8;
    background: rgba(0, 0, 0, 0.15);
}
.account-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}
.account-table__link {
    color: var(--accent-blue);
    text-decoration: none;
}
.account-table__link:hover {
    text-decoration: underline;
}
.account-table__num {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.account-amount--plus {
    color: #7dffb3;
    font-weight: 600;
}
.account-amount--minus {
    color: #ff8a8a;
    font-weight: 600;
}
.account-amount--zero {
    color: rgba(255, 255, 255, 0.55);
}
.account-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.08);
}
.account-table-row--me {
    background: rgba(250, 255, 0, 0.08) !important;
    outline: 1px solid rgba(250, 255, 0, 0.25);
}
.account-you {
    color: var(--accent-yellow);
    font-weight: 700;
    font-size: 12px;
}
.account-list {
    margin: 0;
    padding-left: 18px;
    color: #d7e2f7;
    font-size: 14px;
    line-height: 1.6;
}

.help-steps {
    margin: 8px 0 0;
    padding-left: 18px;
    line-height: 1.7;
    color: #d7e2f7;
}
.help-faq-item {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    margin-top: 10px;
    overflow: hidden;
}
.help-faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 14px 16px;
    font-weight: 700;
    color: #f0f5ff;
}
.help-faq-item summary::-webkit-details-marker {
    display: none;
}
.help-faq-item summary::after {
    content: '▾';
    float: right;
    color: #8ea6d5;
}
.help-faq-item[open] summary::after {
    content: '▴';
}
.help-faq-body {
    padding: 0 16px 14px;
    color: #d3def2;
    line-height: 1.7;
}
.help-faq-body ul {
    margin: 6px 0 0;
    padding-left: 18px;
}
.help-marketing-block {
    border: 1px solid rgba(74, 143, 255, 0.35);
    border-radius: 12px;
    background: rgba(33, 53, 88, 0.35);
    padding: 12px;
    margin-top: 10px;
}
.help-marketing-title {
    color: #d8e6ff;
    font-weight: 700;
    margin-bottom: 8px;
}
.help-marketing-pre {
    margin: 0;
    white-space: pre-wrap;
    font-family: inherit;
    color: #eaf0ff;
    line-height: 1.6;
}

/* --- Help / FAQ full layout --- */
.page--help .help-page-head {
    max-width: 1100px;
    margin: 0 auto 20px;
    padding: 0 16px;
}
.page--help .help-page-title {
    margin-bottom: 8px;
}
.help-page-lead {
    color: #b8c5df;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    max-width: 720px;
}
.help-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px 40px;
    align-items: start;
}
.help-sidebar {
    position: sticky;
    top: 88px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(12, 18, 32, 0.85);
    backdrop-filter: blur(8px);
    padding: 14px 12px;
}
.help-sidebar-inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.help-nav-group {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 12px;
}
.help-nav-group:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.help-nav-section {
    display: block;
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #8fb4ff;
    text-decoration: none;
    margin-bottom: 8px;
}
.help-nav-section:hover {
    color: #c8dcff;
}
.help-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.help-nav-list li {
    margin: 0;
    padding: 0;
}
.help-nav-link {
    display: block;
    padding: 6px 8px 6px 10px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.35;
    color: #d0daf0;
    text-decoration: none;
    border-left: 2px solid transparent;
}
.help-nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}
.help-nav-section.is-active,
.help-nav-link.is-active {
    background: rgba(74, 143, 255, 0.15);
    border-left-color: #4a8fff;
    color: #fff;
}
.help-main {
    min-width: 0;
}
.help-section {
    scroll-margin-top: 88px;
    margin-bottom: 16px;
}
.help-section-title {
    margin: 0 0 16px;
    font-size: 22px;
    color: #f2f6ff;
}
.help-block {
    scroll-margin-top: 88px;
    padding-top: 8px;
    margin-bottom: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.help-block:first-of-type {
    border-top: none;
    padding-top: 0;
}
.help-block-title {
    margin: 0 0 10px;
    font-size: 17px;
    color: #e8eeff;
}
.help-prose {
    color: #c9d4ec;
    font-size: 14px;
    line-height: 1.75;
}
.help-prose p {
    margin: 0 0 12px;
}
.help-prose p:last-child {
    margin-bottom: 0;
}
.help-prose ul {
    margin: 8px 0 12px;
    padding-left: 20px;
}
.help-prose a {
    color: var(--accent-blue, #6ea8ff);
}
.help-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin: 12px 0;
}
.help-table th,
.help-table td {
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}
.help-table th {
    background: rgba(255, 255, 255, 0.05);
    color: #dfe7fb;
    font-weight: 700;
}
.help-table td:first-child {
    font-weight: 600;
    color: #e4ebfb;
    white-space: nowrap;
}
.help-note {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(255, 193, 7, 0.08);
    border: 1px solid rgba(255, 193, 7, 0.25);
    color: #ffe6b0;
    font-size: 13px;
}
.help-faq-accordion {
    margin-top: 8px;
}

@media (max-width: 900px) {
    .help-layout {
        grid-template-columns: 1fr;
    }
    .help-sidebar {
        position: relative;
        top: 0;
        max-height: none;
        order: -1;
    }
}

@media (max-width: 1080px) {
    .account-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .account-shell {
        grid-template-columns: 1fr;
    }
    .account-sidebar {
        display: none;
    }
    .account-mobile-bar {
        display: flex;
    }
}

@media (max-width: 520px) {
    .account-stats {
        grid-template-columns: 1fr;
    }
    .account-stat-card__value {
        font-size: 20px;
    }
}

@media (max-width: 640px) {
    .account-table {
        min-width: 0;
    }
    .account-table thead {
        display: none;
    }
    .account-table tbody tr {
        display: block;
        margin-bottom: 12px;
        border: 1px solid var(--border-soft);
        border-radius: 12px;
        overflow: hidden;
        background: rgba(0, 0, 0, 0.2);
    }
    .account-table tbody td {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        align-items: flex-start;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        padding: 10px 12px;
    }
    .account-table tbody td:last-child {
        border-bottom: none;
    }
    .account-table tbody td::before {
        content: attr(data-label);
        font-weight: 700;
        color: #9aa4b5;
        flex: 0 0 42%;
        min-width: 0;
    }
    .account-table tbody tr.account-table-row--me {
        outline: none;
        border-color: rgba(250, 255, 0, 0.4);
    }
}
