﻿:root {
    --bg: #f7f4ef;
    --panel: #ffffff;
    --ink: #1d2430;
    --muted: #667085;
    --line: #e2ded7;
    --brand: #0b7a75;
    --brand-dark: #075451;
    --accent: #d84f2a;
    --gold: #d69a27;
    --soft: #f1ede6;
    --shadow: 0 22px 55px rgba(29, 36, 48, .12);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: linear-gradient(180deg, #fbf8f3 0%, var(--bg) 48%, #eef4f2 100%);
    color: var(--ink);
    font-family: Inter, "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    min-height: 100vh;
}

button, input, select { font: inherit; }
button { cursor: pointer; }

.topbar {
    align-items: center;
    background: rgba(255, 255, 255, .86);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 18px;
    grid-template-columns: auto minmax(260px, 1fr) auto;
    padding: 14px max(18px, calc((100vw - 1240px) / 2));
    position: sticky;
    top: 0;
    z-index: 20;
}

.page-breadcrumb {
    align-items: center;
    background: #e9f3f3;
    border-bottom: 1px solid #d7e5e4;
    color: #475569;
    display: flex;
    flex-wrap: wrap;
    font-size: 13px;
    font-weight: 850;
    gap: 9px;
    padding: 13px max(18px, calc((100vw - 1240px) / 2));
}

.page-breadcrumb a {
    color: #31536b;
    text-decoration: none;
}

.page-breadcrumb a:hover {
    color: var(--brand);
}

.page-breadcrumb b {
    color: #94a3b8;
    font-weight: 900;
}

.page-breadcrumb .active {
    color: var(--brand);
    font-weight: 950;
}

.brand, .header-actions, .search, .cart-button, .category-list button, .product-actions { align-items: center; display: flex; }
.brand { color: inherit; gap: 10px; text-decoration: none; font-size: 20px; font-weight: 900; }
.brand-mark { background: linear-gradient(135deg, var(--brand), #16b8a9); border-radius: 14px; color: #fff; display: grid; height: 42px; place-items: center; width: 42px; }
.brand-mark svg { fill: none; height: 24px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; width: 24px; }

.search { background: var(--soft); border: 1px solid var(--line); border-radius: 16px; gap: 10px; min-height: 48px; padding: 0 14px; }
.search input { background: transparent; border: 0; color: var(--ink); outline: 0; width: 100%; }
.header-actions { gap: 10px; justify-content: flex-end; }

.ghost-button, .solid-button, .cart-button, .checkout-button {
    align-items: center;
    border: 0;
    border-radius: 14px;
    display: inline-flex;
    font-weight: 900;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
}
.button-with-icon { gap: 8px; }
.button-with-icon svg {
    fill: none;
    flex: 0 0 auto;
    height: 18px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.2;
    width: 18px;
}
.ghost-button { background: var(--soft); color: var(--ink); }
.solid-button, .checkout-button { background: var(--brand); color: #fff; }
.checkout-button,
.checkout-button span,
.checkout-button svg {
    color: #fff;
}
.checkout-button svg {
    stroke: currentColor;
}
.cart-button { background: #1d2430; color: #fff; gap: 8px; position: relative; }
.cart-button strong { background: var(--accent); border-radius: 999px; display: grid; font-size: 12px; height: 22px; place-items: center; min-width: 22px; padding: 0 6px; }

.shop-shell { display: grid; gap: 24px; grid-template-columns: 290px minmax(0, 1fr); margin: 26px auto 52px; max-width: 1240px; padding: 0 18px; }
.category-panel { align-self: start; background: #173b37; border-radius: 22px; color: #fff; display: grid; gap: 22px; padding: 22px; position: sticky; top: 92px; }
.eyebrow { color: var(--gold); font-size: 12px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.category-panel h1, .catalog h2, .drawer-head h2, .auth-title h2 { margin: 6px 0 0; }
.category-panel h1 { font-size: 30px; line-height: 1.08; }
.category-list { flex-direction: column; gap: 8px; }
.category-list button { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; color: #fff; gap: 10px; justify-content: space-between; min-height: 44px; padding: 0 12px; width: 100%; }
.category-list button.active { background: #fff; color: #173b37; }
.mobile-category-select {
    display: none;
}
.trust-strip { display: grid; gap: 8px; }
.trust-strip span { background: rgba(255,255,255,.08); border-radius: 12px; font-size: 13px; font-weight: 800; padding: 9px 10px; }

.catalog { min-width: 0; }
.catalog-head { align-items: end; display: flex; justify-content: space-between; margin-bottom: 16px; }
.catalog-head h2 { font-size: 32px; }
select { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; color: var(--ink); min-height: 42px; padding: 0 12px; }
.promo-band { align-items: center; background: linear-gradient(135deg, #1d2430, #30433f); border-radius: 22px; box-shadow: var(--shadow); color: #fff; display: flex; justify-content: space-between; margin-bottom: 18px; overflow: hidden; padding: 22px; position: relative; }
.promo-band::after { background: linear-gradient(135deg, rgba(216,79,42,.95), rgba(214,154,39,.85)); border-radius: 30px; content: ""; height: 140px; position: absolute; right: 140px; top: -36px; transform: rotate(18deg); width: 190px; }
.promo-copy { display: grid; gap: 4px; max-width: 100%; position: relative; width: 100%; z-index: 1; }
.promo-copy span { color: #f6c36d; font-size: 13px; font-weight: 900; }
.promo-copy strong { font-size: 22px; max-width: none; }
.promo-band button { position: relative; z-index: 1; }

.product-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-card { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 16px 38px rgba(29,36,48,.08); display: grid; overflow: hidden; }
.product-media { aspect-ratio: 4 / 3; display: grid; overflow: hidden; place-items: center; position: relative; }
.product-media::before { border: 1px solid rgba(255,255,255,.38); border-radius: 28px; content: ""; height: 58%; position: absolute; transform: rotate(-12deg); width: 58%; }
.product-media span { background: rgba(255,255,255,.86); border-radius: 18px; box-shadow: 0 18px 40px rgba(0,0,0,.14); color: var(--ink); display: grid; font-size: 34px; font-weight: 900; height: 92px; place-items: center; width: 92px; z-index: 1; }
.real-logo-tile {
    align-items: center;
    background: rgba(255,255,255,.9);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0,0,0,.14);
    display: grid;
    height: 104px;
    justify-items: center;
    overflow: visible;
    padding: 14px;
    place-items: center;
    width: 104px;
    z-index: 1;
}

.product-media .real-logo-tile {
    height: 104px;
    width: 104px;
}

.real-logo-tile img {
    display: block;
    height: 100%;
    max-height: 74px;
    max-width: 92px;
    object-fit: contain;
    width: 100%;
}

.logo-fallback {
    align-items: center;
    color: var(--ink);
    display: none;
    font-size: 28px;
    font-weight: 950;
    height: 100%;
    justify-content: center;
    width: 100%;
}
.product-body { display: grid; gap: 12px; padding: 16px; }
.product-meta { align-items: flex-start; color: var(--muted); display: flex; font-size: 13px; font-weight: 800; gap: 10px; justify-content: space-between; }
.product-meta > span:first-child { min-width: 0; }
.product-rating { color: #ea580c; flex: 0 0 auto; font-weight: 950; white-space: nowrap; }
.product-card h3 { font-size: 17px; line-height: 1.25; margin: 0; min-height: 42px; }
.product-card h3 a { color: inherit; text-decoration: none; }
.product-actions { justify-content: space-between; gap: 12px; }
.product-actions > span { align-items: center; display: flex; gap: 8px; }
.price { color: var(--brand); font-size: 20px; font-weight: 950; white-space: nowrap; }
.campaign-price {
    align-items: flex-start;
    display: grid !important;
    gap: 4px;
    line-height: 1;
    white-space: normal;
}

.campaign-price small {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 850;
    line-height: 1;
    text-decoration: line-through;
}

.campaign-price strong {
    color: var(--brand);
    font-size: 20px;
    font-weight: 950;
    line-height: 1;
}

.add-button { background: var(--ink); border: 0; border-radius: 12px; color: #fff; font-weight: 900; min-height: 40px; padding: 0 12px; }
.add-button.is-added { background: var(--brand); }
.detail-link { background: #eef7f6; border-radius: 12px; color: var(--brand); font-size: 13px; font-weight: 950; min-height: 40px; padding: 10px 12px; text-decoration: none; }
.icon-only {
    align-items: center;
    display: inline-flex;
    height: 42px;
    justify-content: center;
    min-height: 42px;
    padding: 0;
    width: 42px;
}

.icon-only svg {
    fill: none;
    height: 20px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 20px;
}

.cart-drawer, .auth-modal { inset: 0; opacity: 0; pointer-events: none; position: fixed; transition: opacity .2s ease; z-index: 50; }
.cart-drawer.open, .auth-modal.open { opacity: 1; pointer-events: auto; }
.drawer-backdrop, .modal-backdrop { background: rgba(15, 23, 42, .42); inset: 0; position: absolute; }
.announcement-popup {
    display: grid;
    inset: 0;
    opacity: 0;
    place-items: center;
    pointer-events: none;
    position: fixed;
    transition: opacity .22s ease;
    z-index: 80;
}

.announcement-popup.open {
    opacity: 1;
    pointer-events: auto;
}

.announcement-popup-backdrop {
    background: rgba(15, 23, 42, .5);
    border: 0;
    cursor: pointer;
    inset: 0;
    position: absolute;
}

.announcement-popup-card {
    background: #fff;
    border: 1px solid rgba(203, 213, 225, .9);
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(15, 23, 42, .26);
    display: grid;
    gap: 0;
    grid-template-columns: minmax(240px, .9fr) minmax(0, 1.1fr);
    max-width: min(920px, calc(100vw - 32px));
    overflow: hidden;
    position: relative;
    transform: translateY(16px) scale(.98);
    transition: transform .22s ease;
    width: 100%;
}

.announcement-popup.open .announcement-popup-card {
    transform: translateY(0) scale(1);
}

.announcement-popup-close {
    align-items: center;
    background: #f4efe7;
    border: 0;
    border-radius: 14px;
    color: #0f172a;
    cursor: pointer;
    display: inline-flex;
    font-size: 22px;
    height: 42px;
    justify-content: center;
    position: absolute;
    right: 16px;
    top: 16px;
    width: 42px;
    z-index: 3;
}

.announcement-popup-visual {
    align-items: center;
    background: linear-gradient(135deg, #0f8a80, #1f2937);
    display: grid;
    min-height: 430px;
    overflow: hidden;
    padding: 34px;
    place-items: center;
}

.announcement-popup-visual img {
    border-radius: 24px;
    box-shadow: 0 24px 55px rgba(15, 23, 42, .24);
    max-height: 330px;
    max-width: 100%;
    object-fit: contain;
}

.announcement-popup-visual span {
    align-items: center;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 34px;
    color: #fff;
    display: inline-flex;
    font-size: 72px;
    font-weight: 950;
    height: 180px;
    justify-content: center;
    width: 180px;
}

.announcement-popup-copy {
    align-content: center;
    display: grid;
    gap: 16px;
    padding: 56px 46px 46px;
}

.announcement-popup-copy h2 {
    color: #111827;
    font-size: clamp(30px, 4.2vw, 52px);
    line-height: 1.02;
    margin: 0;
}

.announcement-popup-copy p {
    color: #526078;
    font-size: 17px;
    line-height: 1.65;
    margin: 0;
}

.announcement-popup-button {
    align-items: center;
    background: #0f8a80;
    border-radius: 16px;
    color: #fff;
    display: inline-flex;
    font-weight: 950;
    justify-content: center;
    justify-self: start;
    min-height: 50px;
    padding: 0 22px;
    text-decoration: none;
}

@media (max-width: 720px) {
    .announcement-popup {
        align-items: center;
        justify-items: center;
        padding: 10px;
    }

    .announcement-popup-card {
        border-radius: 24px;
        grid-template-columns: 1fr;
        max-height: calc(100vh - 28px);
        overflow: auto;
    }

    .announcement-popup-visual {
        min-height: 190px;
        padding: 26px;
    }

    .announcement-popup-visual img {
        max-height: 160px;
    }

    .announcement-popup-visual span {
        border-radius: 24px;
        font-size: 42px;
        height: 108px;
        width: 108px;
    }

    .announcement-popup-copy {
        gap: 12px;
        padding: 28px 20px 22px;
    }

    .announcement-popup-copy h2 {
        font-size: 28px;
    }

    .announcement-popup-copy p {
        font-size: 15px;
        line-height: 1.55;
    }

    .announcement-popup-button {
        justify-self: stretch;
    }
}

.drawer-panel { background: var(--panel); box-shadow: -24px 0 60px rgba(0,0,0,.22); display: grid; grid-template-rows: auto 1fr auto; height: 100%; margin-left: auto; max-width: 430px; padding: 20px; position: relative; width: min(430px, 92vw); }
.drawer-head { align-items: center; display: flex; justify-content: space-between; }
.icon-button { background: var(--soft); border: 0; border-radius: 12px; color: var(--ink); font-size: 24px; height: 42px; width: 42px; }
.cart-items { align-content: start; display: grid; gap: 12px; overflow: auto; padding: 18px 0; }
.empty-cart { color: var(--muted); display: grid; gap: 10px; place-items: center; text-align: center; }
.cart-line { align-items: center; background: var(--soft); border: 1px solid var(--line); border-radius: 16px; display: grid; gap: 10px; grid-template-columns: 54px minmax(0, 1fr) auto; padding: 10px; }
.cart-thumb { border-radius: 14px; display: grid; height: 54px; place-items: center; width: 54px; }
a.cart-thumb { color: inherit; text-decoration: none; }
.cart-thumb .real-logo-tile,
.admin-product-logo .real-logo-tile {
    border-radius: 10px;
    box-shadow: none;
    height: 38px;
    padding: 6px;
    width: 38px;
}

.cart-thumb .real-logo-tile img,
.admin-product-logo .real-logo-tile img {
    max-height: 25px;
    max-width: 27px;
}

.cart-thumb .logo-fallback,
.admin-product-logo .logo-fallback {
    font-size: 12px;
}
.cart-line strong, .cart-line small { display: block; }
.cart-line small { color: var(--muted); }
.cart-line-info { min-width: 0; }
.cart-line-info a { color: inherit; text-decoration: none; }
.cart-line-info a:hover strong { color: var(--brand); }
.cart-line-info strong {
    line-height: 1.25;
    overflow: visible;
    overflow-wrap: anywhere;
    white-space: normal;
}

.cart-line-actions {
    align-items: end;
    display: grid;
    gap: 8px;
    justify-items: end;
}
.cart-quantity {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    display: inline-flex;
    gap: 4px;
    padding: 3px;
}
.cart-quantity button,
.cart-remove-button {
    align-items: center;
    border: 0;
    cursor: pointer;
    display: inline-flex;
    font-weight: 950;
    justify-content: center;
}
.cart-quantity button {
    background: #eef7f6;
    border-radius: 50%;
    color: var(--brand);
    height: 26px;
    width: 26px;
}
.cart-quantity span {
    color: var(--ink);
    font-size: 13px;
    font-weight: 950;
    min-width: 20px;
    text-align: center;
}
.cart-remove-button {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-radius: 50%;
    color: #e11d48;
    height: 28px;
    width: 28px;
}
.qty { align-items: center; display: flex; gap: 7px; }
.qty button { background: #fff; border: 1px solid var(--line); border-radius: 9px; height: 30px; width: 30px; }
.cart-summary { border-top: 1px solid var(--line); display: grid; gap: 12px; padding-top: 16px; }
.cart-summary div { display: flex; justify-content: space-between; }
.cart-summary span { color: var(--muted); }
.cart-summary .checkout-button,
.cart-summary .checkout-button span,
.cart-summary .checkout-button svg {
    color: #fff;
    stroke: currentColor;
}
.cart-summary > div:not(.grand):not(.cart-discount-row) {
    display: none;
}
.grand strong { color: var(--brand); font-size: 24px; }
.checkout-button { width: 100%; }

.auth-card { background: var(--panel); border-radius: 22px; box-shadow: var(--shadow); display: grid; gap: 16px; left: 50%; max-width: 430px; padding: 22px; position: absolute; top: 50%; transform: translate(-50%, -50%); width: min(430px, calc(100vw - 32px)); }
.auth-card > .icon-button { justify-self: end; margin-bottom: -8px; }
.auth-tabs { background: var(--soft); border-radius: 14px; display: grid; grid-template-columns: 1fr 1fr; padding: 5px; }
.auth-tabs button { align-items: center; background: transparent; border: 0; border-radius: 11px; color: var(--muted); display: inline-flex; font-weight: 900; gap: 8px; justify-content: center; min-height: 40px; }
.auth-tabs button.active { background: #fff; color: var(--brand); box-shadow: 0 8px 20px rgba(29,36,48,.08); }
.auth-tabs.single-tab { grid-template-columns: 1fr; }
.auth-forgot-link,
.auth-back-link {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--brand);
    cursor: pointer;
    display: inline-flex;
    font-weight: 950;
    gap: 8px;
    justify-self: center;
    padding: 0;
}
.auth-forgot-link {
    background: rgba(15, 138, 128, .08);
    border: 1px solid rgba(15, 138, 128, .18);
    border-radius: 999px;
    justify-content: center;
    margin-top: -6px;
    min-height: 38px;
    padding: 0 16px;
    width: fit-content;
}
.auth-back-link { color: var(--muted); justify-self: start; }
.auth-reset-panel {
    align-items: start;
    background: linear-gradient(135deg, rgba(15, 138, 128, .1), rgba(245, 158, 11, .08));
    border: 1px solid rgba(15, 138, 128, .18);
    border-radius: 18px;
    display: grid;
    gap: 12px;
    grid-template-columns: auto 1fr;
    padding: 14px;
}
.auth-reset-panel p {
    color: var(--muted);
    font-weight: 700;
    line-height: 1.55;
    margin: 0;
}
.auth-reset-icon {
    align-items: center;
    background: var(--brand);
    border-radius: 14px;
    color: #fff;
    display: inline-flex;
    height: 44px;
    justify-content: center;
    width: 44px;
}
.auth-reset-icon svg { fill: currentColor; height: 22px; width: 22px; }
.field { display: grid; gap: 7px; }
.field label, .check-line { color: var(--ink); font-size: 13px; font-weight: 900; }
.field input { background: var(--soft); border: 1px solid var(--line); border-radius: 13px; min-height: 46px; padding: 0 12px; }
.check-line { align-items: start; display: flex; gap: 10px; line-height: 1.35; }
.auth-message { color: var(--brand); font-weight: 800; margin: 0; min-height: 20px; }

@media (max-width: 980px) {
    .topbar { grid-template-columns: 1fr; }
    .header-actions { justify-content: stretch; }
    .header-actions button,
    .header-actions .link-button { flex: 1; }
    .shop-shell { grid-template-columns: 1fr; }
    .category-panel { position: static; }
    .category-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
    .topbar { padding: 12px; }
    .page-breadcrumb {
        flex-wrap: nowrap;
        font-size: clamp(8px, 2.25vw, 10px);
        gap: 4px;
        line-height: 1.2;
        max-width: 100vw;
        overflow: hidden;
        padding: 10px 12px;
        white-space: nowrap;
    }
    .page-breadcrumb a,
    .page-breadcrumb b,
    .page-breadcrumb .active {
        flex: 0 1 auto;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .page-breadcrumb b {
        flex: 0 0 auto;
    }
    .header-actions { display: grid; grid-template-columns: 1fr 1fr 52px; }
    .ghost-button, .solid-button { padding: 0 10px; }
    .shop-shell { margin-top: 14px; padding: 0 12px; }
    .category-list { display: none !important; }
    .mobile-category-select {
        display: grid;
        gap: 7px;
    }
    .mobile-category-select span {
        color: #475569;
        font-size: 13px;
        font-weight: 900;
    }
    .mobile-category-select select {
        background: #f8fafc;
        border: 1px solid #dbe4ee;
        border-left: 4px solid var(--brand);
        border-radius: 10px;
        color: #111827;
        font-weight: 900;
        min-height: 48px;
        width: 100%;
    }
    .product-grid { grid-template-columns: 1fr; }
    .catalog-head, .promo-band { align-items: stretch; flex-direction: column; gap: 14px; }
.catalog-head h1 {
        font-size: clamp(18px, 6.2vw, 24px);
        line-height: 1.08;
        letter-spacing: 0;
        max-width: 100%;
        min-width: 0;
        overflow-wrap: normal;
        white-space: normal;
        width: 100%;
    }
    .catalog-head .eyebrow {
        font-size: 11px;
        letter-spacing: .08em;
    }
    .promo-band {
        min-height: 0;
        padding: 20px 16px;
    }
    .promo-copy {
        max-width: 100%;
        width: 100%;
    }
    .promo-copy span {
        font-size: 12px;
    }
    .promo-copy strong {
        font-size: clamp(15px, 4.25vw, 18px);
        line-height: 1.22;
        max-width: 100%;
        overflow-wrap: normal;
        text-wrap: balance;
    }
    .promo-band::after { right: -60px; top: -42px; }
}

[hidden] { display: none !important; }


/* Logolu kategori menüsü */
.category-panel {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 16px 38px rgba(15, 23, 42, .08);
    color: var(--ink);
    gap: 16px;
    padding: 14px;
}

/* Ürün detay sayfası */
.link-button {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    text-decoration: none;
}

.header-actions .link-button {
    min-height: 44px;
}

.detail-topbar {
    grid-template-columns: auto auto;
}

.detail-actions {
    justify-content: flex-end;
}

.detail-shell {
    display: grid;
    gap: 22px;
    margin: 28px auto 56px;
    max-width: 1180px;
    padding: 0 18px;
}

.detail-hero {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .10);
    display: grid;
    gap: 0;
    grid-template-columns: minmax(280px, clamp(320px, 42vw, 470px)) minmax(0, 1fr);
    overflow: hidden;
}

.detail-visual {
    align-items: center;
    align-self: stretch;
    display: grid;
    min-height: clamp(320px, 36vw, 520px);
    overflow: hidden;
    place-items: center;
    position: relative;
    width: 100%;
}

.detail-visual::before {
    border: 1px solid rgba(255,255,255,.42);
    border-radius: 34px;
    content: "";
    height: 58%;
    position: absolute;
    transform: rotate(-12deg);
    width: 58%;
}

.detail-visual span {
    background: rgba(255,255,255,.88);
    border-radius: 24px;
    box-shadow: 0 22px 54px rgba(0,0,0,.16);
    color: var(--ink);
    display: grid;
    font-size: 48px;
    font-weight: 950;
    height: 140px;
    place-items: center;
    width: 140px;
    z-index: 1;
}

.detail-visual .real-logo-tile {
    border-radius: 20px;
    height: clamp(96px, 18vw, 136px);
    padding: clamp(12px, 2.2vw, 20px);
    width: clamp(96px, 18vw, 136px);
}

.detail-visual .real-logo-tile img {
    max-height: 100%;
    max-width: 100%;
}

.detail-visual .logo-fallback {
    font-size: 44px;
}

.detail-panel {
    align-content: center;
    display: grid;
    gap: 16px;
    padding: 34px 38px;
}

.detail-category {
    align-items: center;
    color: var(--muted);
    display: inline-flex;
    font-size: 13px;
    font-weight: 950;
    gap: 10px;
    text-decoration: none;
    text-transform: uppercase;
}

.detail-panel h1 {
    font-size: 42px;
    line-height: 1.08;
    margin: 0;
}

.detail-panel p {
    color: var(--muted);
    font-size: 16px;
    margin: 0;
}

.viewer-notice {
    align-items: center;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-radius: 10px;
    color: #ef4444;
    display: flex;
    font-size: 13px;
    font-weight: 950;
    gap: 10px;
    min-height: 42px;
    padding: 9px 12px;
}

.viewer-notice span {
    background: #fb7185;
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(251, 113, 133, .16);
    display: inline-flex;
    flex: 0 0 9px;
    height: 9px;
    width: 9px;
}

.viewer-notice strong {
    line-height: 1.25;
}

.order-toast {
    align-items: center;
    background: rgba(255, 255, 255, .96);
    border: 1px solid #dbe6e8;
    border-radius: 18px;
    bottom: 22px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .18);
    display: grid;
    gap: 12px;
    grid-template-columns: 68px minmax(0, 1fr) 28px;
    left: 22px;
    max-width: min(390px, calc(100vw - 28px));
    opacity: 0;
    padding: 12px;
    pointer-events: none;
    position: fixed;
    transform: translateY(22px) scale(.97);
    transition: opacity .28s ease, transform .28s ease;
    width: 390px;
    z-index: 85;
}

.order-toast.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.order-toast::before {
    background: linear-gradient(180deg, var(--brand), #16b8a9);
    border-radius: 999px;
    content: "";
    height: calc(100% - 22px);
    left: 0;
    position: absolute;
    top: 11px;
    width: 4px;
}

.order-toast-media {
    border-radius: 15px;
    display: grid;
    height: 68px;
    overflow: hidden;
    place-items: center;
    position: relative;
    text-decoration: none;
    width: 68px;
}

.order-toast-media img {
    max-height: 48px;
    max-width: 48px;
    object-fit: contain;
}

.order-toast-media span {
    background: rgba(255,255,255,.9);
    border-radius: 12px;
    color: var(--ink);
    display: grid;
    font-size: 18px;
    font-weight: 950;
    height: 48px;
    place-items: center;
    width: 48px;
}

.order-toast-copy {
    color: inherit;
    display: grid;
    gap: 4px;
    min-width: 0;
    text-decoration: none;
}

.order-toast-copy span {
    color: var(--brand);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.order-toast-copy strong {
    color: var(--ink);
    font-size: 14px;
    line-height: 1.25;
}

.order-toast button {
    align-self: start;
    background: #f1f5f9;
    border: 0;
    border-radius: 10px;
    color: #64748b;
    cursor: pointer;
    font-size: 18px;
    height: 28px;
    width: 28px;
}

.live-chat-widget {
    bottom: 22px;
    position: fixed;
    right: 22px;
    z-index: 76;
}

.live-chat-widget.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.live-chat-toggle {
    background: linear-gradient(135deg, #0f8a80, #132033);
    border: 0;
    border-radius: 50%;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .24);
    color: #fff;
    cursor: pointer;
    display: grid;
    height: 64px;
    place-items: center;
    position: relative;
    width: 64px;
}

.live-chat-toggle img,
.live-chat-toggle span,
.live-chat-panel header i img,
.live-chat-panel header i span {
    border-radius: 50%;
    display: grid;
    height: 52px;
    object-fit: cover;
    place-items: center;
    width: 52px;
}

.live-chat-toggle span,
.live-chat-panel header i span {
    background: rgba(255,255,255,.16);
    color: #fff;
    font-weight: 950;
}

.live-chat-toggle strong {
    align-items: center;
    background: #ef4444;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 12px;
    height: 22px;
    justify-content: center;
    min-width: 22px;
    position: absolute;
    right: -2px;
    top: -3px;
}

.live-chat-status-dot {
    background: #22c55e;
    border: 3px solid #fff;
    border-radius: 50%;
    bottom: 5px;
    height: 14px;
    position: absolute;
    right: 5px;
    width: 14px;
}

.live-chat-widget.is-offline .live-chat-status-dot {
    background: #94a3b8;
}

.live-chat-widget.is-offline .live-chat-toggle {
    filter: grayscale(.55);
}

.live-chat-panel {
    background:
        radial-gradient(circle at 18% 8%, rgba(20, 184, 166, .18), transparent 28%),
        linear-gradient(180deg, #10201f 0%, #101923 100%);
    border: 1px solid rgba(20, 184, 166, .22);
    border-radius: 24px;
    bottom: 78px;
    box-shadow: 0 26px 76px rgba(15, 23, 42, .36);
    color: #fff;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    height: min(560px, calc(100vh - 120px));
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    position: absolute;
    right: 0;
    transform: translateY(14px) scale(.98);
    transition: opacity .2s ease, transform .2s ease;
    width: min(368px, calc(100vw - 28px));
}

.live-chat-widget.open .live-chat-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.live-chat-panel header {
    background: linear-gradient(135deg, var(--brand), #173b37);
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.live-chat-panel header > div {
    align-items: center;
    display: flex;
    font-size: 18px;
    font-weight: 950;
    justify-content: space-between;
    min-height: 58px;
    padding: 0 18px;
}

.live-chat-panel header button {
    background: rgba(255,255,255,.13);
    border: 0;
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
    font-size: 22px;
    font-weight: 950;
    height: 34px;
    line-height: 1;
    width: 34px;
}

.live-chat-panel header section {
    align-items: center;
    background: rgba(16, 25, 35, .84);
    display: flex;
    gap: 12px;
    padding: 18px;
}

.live-chat-panel header i {
    display: grid;
    flex: 0 0 auto;
    font-style: normal;
    place-items: center;
}

.live-chat-panel header strong,
.live-chat-panel header small { display: block; }

.live-chat-panel header small {
    color: #d7ebe8;
    font-size: 13px;
    margin-top: 3px;
}

.live-chat-messages {
    align-content: end;
    background:
        linear-gradient(180deg, rgba(16, 25, 35, .24), rgba(16, 25, 35, .02)),
        transparent;
    display: grid;
    gap: 10px;
    overflow: auto;
    padding: 18px;
}

.live-chat-message {
    display: grid;
    gap: 4px;
    max-width: 82%;
}

.live-chat-message p {
    border-radius: 14px;
    color: #fff;
    line-height: 1.45;
    margin: 0;
    padding: 10px 12px;
}

.live-chat-message time {
    color: #94a3b8;
    font-size: 12px;
}

.live-chat-message.is-user { justify-self: end; }
.live-chat-message.is-user p { background: #4b4038; }
.live-chat-message.is-user time { text-align: right; }
.live-chat-message.is-admin { justify-self: start; }
.live-chat-message.is-admin p { background: #143b38; }

.live-chat-empty {
    align-self: end;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 16px;
    color: #d7ebe8;
    font-weight: 900;
    line-height: 1.45;
    margin-bottom: 10px;
    padding: 14px 16px;
    text-align: center;
}

.live-chat-form {
    align-items: center;
    background: rgba(16, 25, 35, .92);
    border-top: 1px solid rgba(255,255,255,.07);
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) 52px;
    padding: 14px 16px 16px;
}

.live-chat-form input,
.live-chat-admin-form textarea {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(215,235,232,.28);
    border-radius: 15px;
    color: #fff;
    font: inherit;
    min-height: 48px;
    padding: 0 14px;
}

.live-chat-form input:focus {
    border-color: rgba(20, 184, 166, .72);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, .12);
    outline: 0;
}

.live-chat-form button {
    background: linear-gradient(135deg, var(--gold), var(--accent));
    border: 0;
    border-radius: 16px;
    color: #fff;
    cursor: pointer;
    display: grid;
    height: 48px;
    place-items: center;
}

.live-chat-form button svg {
    fill: currentColor;
    height: 24px;
    width: 24px;
}

.detail-description-list {
    color: var(--muted);
    display: grid;
    font-size: 16px;
    gap: 7px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.detail-description-list li {
    align-items: start;
    display: grid;
    gap: 8px;
    grid-template-columns: 9px 1fr;
}

.detail-description-list li::before {
    background: var(--brand);
    border-radius: 999px;
    content: "";
    height: 7px;
    margin-top: 8px;
    width: 7px;
}

.detail-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-metrics span {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    color: #334155;
    display: inline-flex;
    font-size: 13px;
    font-weight: 900;
    gap: 7px;
    padding: 10px 12px;
}

.detail-metrics .rating-pill {
    background: #fff7ed;
    border-color: rgba(216, 79, 42, .24);
    color: #ea580c;
}

.detail-metrics svg {
    fill: none;
    height: 16px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.2;
    width: 16px;
}

.detail-metrics .rating-pill svg {
    fill: currentColor;
    stroke: currentColor;
}

.detail-buy-box {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 16px;
}

.detail-buy-box > span {
    display: grid;
    gap: 3px;
}

.detail-buy-box small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.detail-buy-box strong {
    color: var(--brand);
    font-size: 30px;
    font-weight: 950;
}

.detail-buy-box .checkout-button {
    width: auto;
}

.detail-buy-actions {
    align-items: center;
    display: flex;
    gap: 10px;
}

.detail-cart-icon-button {
    align-items: center;
    background: #eef7f6;
    border: 1px solid #b9e7e1;
    border-radius: 14px;
    color: var(--brand);
    cursor: pointer;
    display: inline-flex;
    height: 48px;
    justify-content: center;
    transition: transform .2s ease, box-shadow .2s ease;
    width: 52px;
}

.detail-cart-icon-button:hover {
    box-shadow: 0 12px 26px rgba(13, 142, 132, .16);
    transform: translateY(-1px);
}

.detail-cart-icon-button svg {
    fill: none;
    height: 22px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 22px;
}

.detail-buy-now {
    min-height: 48px;
    min-width: 128px;
}

.duration-pricing {
    display: grid;
    gap: 9px;
}

.duration-pricing > strong {
    font-size: 15px;
}

.duration-options {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
}

.duration-option {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    color: var(--ink);
    display: grid;
    gap: 4px;
    min-height: 58px;
    padding: 9px 10px;
    text-align: left;
}

.duration-option span {
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 900;
    line-height: 1.12;
}

.duration-option b {
    color: var(--ink);
    font-size: 17px;
}

.duration-option.active {
    background: #eef7f6;
    border-color: var(--brand);
    box-shadow: 0 10px 24px rgba(11, 122, 117, .14);
}

.duration-option.active b,
.duration-option.active span {
    color: var(--brand);
}

.detail-info-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-info-grid article,
.detail-empty {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
    padding: 20px;
}

.detail-info-grid article {
    align-content: start;
    display: grid;
    gap: 12px;
}

.related-products {
    display: grid;
    gap: 16px;
}

.related-head {
    align-items: start;
    display: grid;
    gap: 6px;
}

.related-head h2 {
    font-size: 13px;
    font-weight: 950;
    letter-spacing: .08em;
    line-height: 1.25;
    margin: 0;
    text-transform: uppercase;
}

.related-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.detail-info-icon {
    align-items: center;
    background: #eef7f6;
    border: 1px solid rgba(11, 122, 117, .16);
    border-radius: 14px;
    color: var(--brand);
    display: inline-flex;
    height: 44px;
    justify-content: center;
    width: 44px;
}

.detail-info-icon svg {
    fill: none;
    height: 23px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 23px;
}

.detail-info-grid h2,
.detail-info-grid h3 {
    font-size: 18px;
    margin: 0;
}

.detail-info-grid p,
.detail-empty p {
    color: var(--muted);
    margin: 0;
}

.detail-info-grid ul {
    color: var(--muted);
    display: grid;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.detail-info-grid li {
    display: grid;
    gap: 8px;
    grid-template-columns: 8px 1fr;
    line-height: 1.45;
}

.detail-info-grid li::before {
    background: var(--brand);
    border-radius: 999px;
    content: "";
    height: 6px;
    margin-top: 9px;
    width: 6px;
}

.detail-empty {
    display: grid;
    gap: 12px;
    justify-items: start;
}

.detail-empty strong {
    font-size: 24px;
}

.category-page-shell {
    display: grid;
    gap: 22px;
    margin: 28px auto 56px;
    max-width: 1180px;
    padding: 0 18px;
}

.category-with-sidebar {
    align-items: start;
    grid-template-columns: 290px minmax(0, 1fr);
    max-width: 1240px;
}

.category-page-content {
    display: grid;
    gap: 22px;
    min-width: 0;
}

.category-page-hero {
    background:
        radial-gradient(circle at 12% 0%, rgba(79, 70, 229, .16), transparent 32%),
        #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .10);
    display: grid;
    gap: 8px;
    justify-items: start;
    padding: 28px;
}

.category-page-hero .category-logo.large {
    border-radius: 12px;
    font-size: 16px;
    height: 48px;
    width: 48px;
}

.category-page-hero h1 {
    font-size: 38px;
    line-height: 1.08;
    margin: 0;
}

.category-page-hero p {
    color: var(--muted);
    font-weight: 800;
    margin: 0;
}

.category-page-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.category-sort-bar {
    align-items: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 14px 16px;
}

.category-sort-bar strong {
    display: block;
    font-size: 18px;
    line-height: 1.2;
}

.category-sort-bar select {
    min-width: 180px;
}

.content-page-shell {
    display: grid;
    gap: 22px;
    margin: 28px auto 56px;
    max-width: 980px;
    padding: 0 18px;
}

.content-hero {
    background: linear-gradient(135deg, #173b37, #1d2430);
    border-radius: 22px;
    box-shadow: var(--shadow);
    color: #fff;
    display: grid;
    gap: 12px;
    padding: 34px;
}

.content-hero h1 {
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.04;
    margin: 0;
}

.content-hero p {
    color: rgba(255,255,255,.82);
    font-size: 17px;
    line-height: 1.65;
    margin: 0;
    max-width: 760px;
}

.content-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 16px 38px rgba(29,36,48,.08);
    display: grid;
    gap: 20px;
    padding: 28px;
}

.content-section {
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 10px;
    padding-bottom: 20px;
}

.content-section:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.content-section h2 {
    font-size: 22px;
    margin: 0;
}

.content-section ul {
    color: var(--muted);
    display: grid;
    gap: 9px;
    line-height: 1.65;
    list-style: none;
    margin: 0;
    padding: 0;
}

.content-section li {
    display: grid;
    gap: 10px;
    grid-template-columns: 8px 1fr;
}

.content-section li::before {
    background: var(--brand);
    border-radius: 999px;
    content: "";
    height: 6px;
    margin-top: 11px;
    width: 6px;
}

@media (max-width: 860px) {
    .category-with-sidebar {
        grid-template-columns: 1fr;
    }

    .category-with-sidebar .category-panel {
        position: static;
    }

    .detail-topbar {
        grid-template-columns: 1fr;
    }

    .detail-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .detail-hero,
    .detail-info-grid {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .duration-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-visual {
        min-height: 260px;
    }

    .detail-panel {
        padding: 24px;
    }

    .detail-panel h1 {
        font-size: 30px;
    }

    .category-page-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .detail-shell {
        margin-top: 16px;
        padding: 0 14px;
    }

    .detail-hero {
        border-radius: 18px;
    }

    .detail-visual {
        min-height: 220px;
        padding: 28px;
    }

    .detail-visual::before {
        border-radius: 26px;
        height: 54%;
        width: 62%;
    }

    .detail-visual .real-logo-tile,
    .detail-visual span {
        border-radius: 20px;
        height: 112px;
        width: 112px;
    }

    .detail-visual .real-logo-tile {
        padding: 16px;
    }

    .detail-visual .logo-fallback {
        font-size: 34px;
    }

    .detail-panel {
        gap: 14px;
        padding: 22px;
    }

    .detail-panel h1 {
        font-size: 30px;
        line-height: 1.12;
    }

    .detail-buy-box {
        gap: 12px;
        grid-template-columns: 1fr;
        padding: 14px;
    }

    .detail-buy-box > span {
        min-width: 0;
        width: 100%;
    }

    .detail-buy-box small {
        font-size: clamp(8px, 2.65vw, 11px);
        line-height: 1.15;
        max-width: 100%;
        overflow: hidden;
        overflow-wrap: normal;
        text-overflow: clip;
        text-wrap: auto;
        white-space: nowrap;
        word-break: normal;
    }

    .detail-buy-box strong {
        font-size: 26px;
    }

    .detail-buy-actions {
        display: grid;
        grid-template-columns: 52px minmax(0, 1fr);
        width: 100%;
    }

    .detail-buy-now {
        min-width: 0;
        width: 100%;
    }

    .related-head h2 {
        font-size: 12px;
    }

    .related-grid {
        grid-auto-columns: minmax(260px, 82vw);
        grid-auto-flow: column;
        grid-template-columns: none;
        overflow-x: auto;
        padding: 2px 4px 14px 0;
        scroll-snap-type: x mandatory;
        scrollbar-color: rgba(11, 122, 117, .55) transparent;
        scrollbar-width: thin;
    }

    .related-grid .product-card {
        scroll-snap-align: start;
    }

    .category-page-grid {
        grid-template-columns: 1fr;
    }

    .category-page-hero h1 {
        font-size: clamp(11px, 3.7vw, 17px);
        letter-spacing: 0;
        line-height: 1.1;
        max-width: 100%;
        overflow: hidden;
        text-overflow: clip;
        white-space: nowrap;
    }

    .category-page-hero {
        padding: 24px 18px;
    }

    .category-sort-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .category-sort-bar select {
        width: 100%;
    }
}

.category-panel .eyebrow {
    color: var(--accent);
}

.category-panel h1 {
    font-size: 24px;
}

.category-list {
    gap: 9px;
}

.category-list button {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-left: 4px solid var(--logo-color, var(--brand));
    border-radius: 3px;
    color: #111827;
    display: grid;
    gap: 10px;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    justify-content: initial;
    min-height: 54px;
    padding: 8px 10px 8px 8px;
    text-align: left;
}

.category-list button:hover,
.category-list button.active {
    background: #ffffff;
    border-color: color-mix(in srgb, var(--logo-color, var(--brand)) 42%, #e5e7eb);
    box-shadow: 0 10px 22px rgba(15, 23, 42, .08);
    color: #111827;
    transform: translateX(2px);
}

.category-logo {
    align-items: center;
    background: var(--logo-color, var(--brand));
    border-radius: 6px;
    color: #fff;
    display: inline-flex;
    font-size: 11px;
    font-weight: 950;
    height: 32px;
    justify-content: center;
    letter-spacing: 0;
    width: 32px;
}

.category-logo svg {
    fill: none;
    height: 19px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
    width: 19px;
}

.category-logo svg circle {
    fill: currentColor;
    stroke: none;
}

.category-name {
    align-self: center;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.18;
    overflow-wrap: anywhere;
    text-transform: uppercase;
}

.category-list button strong {
    align-self: center;
    background: #eef2f7;
    border-radius: 3px;
    color: #475569;
    font-size: 12px;
    min-width: 26px;
    padding: 4px 6px;
    text-align: center;
}

.category-list button.active strong {
    background: color-mix(in srgb, var(--logo-color, var(--brand)) 14%, #eef2f7);
    color: var(--logo-color, var(--brand));
}

.trust-strip span {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 3px;
    color: #334155;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.trust-icon {
    align-items: center;
    background: #eef7f6;
    border-radius: 8px;
    color: var(--brand);
    display: inline-flex;
    flex: 0 0 30px;
    height: 30px;
    justify-content: center;
    position: relative;
    width: 30px;
}

.trust-icon svg {
    fill: none;
    height: 18px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
    width: 18px;
}

.site-footer {
    background: #13231f;
    color: #f8fafc;
    margin-top: 54px;
}

.footer-inner {
    display: grid;
    gap: 30px;
    grid-template-columns: minmax(240px, 1.3fr) repeat(3, minmax(160px, 1fr));
    margin: 0 auto;
    max-width: 1240px;
    padding: 38px 18px 30px;
}

.footer-brand {
    display: grid;
    gap: 14px;
}

.footer-brand .brand {
    color: #fff;
    width: fit-content;
}

.footer-brand p,
.footer-column a,
.footer-bottom {
    color: rgba(248,250,252,.72);
}

.footer-brand p {
    line-height: 1.65;
    margin: 0;
    max-width: 360px;
}

.footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-badges span {
    align-items: center;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    color: #fff;
    display: inline-flex;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.footer-badges svg {
    fill: none;
    height: 20px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 20px;
}

.footer-column {
    align-content: start;
    display: grid;
    gap: 10px;
}

.footer-column strong {
    color: #fff;
    font-size: 14px;
}

.footer-column a {
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
}

.footer-column a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1240px;
    padding: 16px 18px 20px;
}

.footer-bottom a {
    color: #fff;
    font-weight: 900;
    text-decoration: none;
}

@media (max-width: 980px) {
    .category-list {
        gap: 10px;
    }
}

@media (max-width: 980px) {
    .category-list {
        display: grid;
        grid-template-columns: 1fr;
    }
}

/* Üyelik ve admin paneli */
.guest-actions,
.user-actions {
    align-items: center;
    display: flex;
    gap: 10px;
}

@media (max-width: 820px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 620px) {
    .category-panel {
        border-radius: 18px;
        box-shadow: 0 16px 34px rgba(15, 23, 42, .10);
        gap: 14px;
        padding: 16px;
    }

    .category-panel h1 {
        font-size: 26px;
        line-height: 1.12;
    }

    .mobile-category-select {
        display: none !important;
    }

    .category-panel .category-list {
        display: grid !important;
        gap: 10px;
        grid-template-columns: 1fr;
        max-height: 420px;
        overflow: auto;
        padding-right: 4px;
        scrollbar-color: rgba(11, 122, 117, .55) transparent;
        scrollbar-width: thin;
    }

    .category-panel .category-list::-webkit-scrollbar {
        width: 6px;
    }

    .category-panel .category-list::-webkit-scrollbar-thumb {
        background: rgba(11, 122, 117, .55);
        border-radius: 999px;
    }

    .category-panel .category-list button {
        background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
        border: 1px solid #e2e8f0;
        border-left: 5px solid var(--logo-color, var(--brand));
        border-radius: 12px;
        box-shadow: 0 8px 18px rgba(15, 23, 42, .05);
        min-height: 62px;
        padding: 9px 11px 9px 9px;
    }

    .category-panel .category-list button.active {
        background: color-mix(in srgb, var(--logo-color, var(--brand)) 10%, #ffffff);
        border-color: color-mix(in srgb, var(--logo-color, var(--brand)) 42%, #e2e8f0);
        box-shadow: 0 12px 26px rgba(15, 23, 42, .11);
        transform: none;
    }

    .category-panel .category-logo {
        border-radius: 10px;
        height: 38px;
        width: 38px;
    }

    .category-panel .category-logo svg {
        height: 21px;
        width: 21px;
    }

    .category-panel .category-name,
    .category-list button > strong:first-of-type {
        font-size: 13px;
        line-height: 1.15;
    }

    .category-panel .category-list button > small,
    .category-panel .category-list button > strong:last-child {
        background: color-mix(in srgb, var(--logo-color, var(--brand)) 12%, #eef2f7);
        border-radius: 8px;
        color: #334155;
        font-size: 12px;
        font-weight: 950;
        min-width: 34px;
        padding: 5px 7px;
        text-align: center;
    }
}

.user-pill,
.admin-open-button,
.danger-button {
    align-items: center;
    border: 0;
    border-radius: 14px;
    display: inline-flex;
    font-weight: 900;
    min-height: 44px;
    padding: 0 14px;
    white-space: nowrap;
}

.user-pill {
    background: #eef7f6;
    color: var(--brand);
    display: none !important;
}

.readonly-field,
.modern-field input[readonly] {
    background: #f1f5f9;
    color: #64748b;
    cursor: not-allowed;
}

.admin-open-button {
    background: #1d2430;
    color: #fff;
}

.danger-button {
    background: #fee2e2;
    color: #b91c1c;
}

.ghost-button.compact {
    min-height: 36px;
    padding: 0 12px;
}

.demo-note {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    margin: 8px 0 0;
}

.admin-modal {
    inset: 0;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    transition: opacity .2s ease;
    z-index: 60;
}

.admin-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.admin-page-shell {
    margin: 28px auto 56px;
    max-width: 1240px;
    padding: 0 18px;
}

.admin-page .admin-modal {
    inset: auto;
    opacity: 1;
    pointer-events: auto;
    position: static;
    z-index: auto;
}

.admin-page .admin-modal .modal-backdrop {
    display: none;
}

.admin-page .admin-shell {
    left: auto;
    max-height: none;
    max-width: none;
    overflow: visible;
    position: static;
    top: auto;
    transform: none;
    width: 100%;
}

.admin-shell {
    background: #f8fafc;
    border-radius: 18px;
    box-shadow: 0 28px 70px rgba(15, 23, 42, .28);
    display: grid;
    gap: 18px;
    left: 50%;
    max-height: calc(100vh - 40px);
    max-width: 1120px;
    overflow: auto;
    padding: 20px;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(1120px, calc(100vw - 28px));
}

.admin-head,
.admin-toolbar,
.admin-form-head {
    align-items: center;
    display: flex;
    gap: 14px;
    justify-content: space-between;
}

.admin-head h2 {
    font-size: 30px;
    margin: 4px 0 2px;
}

.admin-head p {
    color: var(--muted);
    margin: 0;
}

.admin-layout {
    align-items: start;
    display: grid;
    gap: 18px;
    grid-template-columns: 380px minmax(0, 1fr);
}

.admin-form,
.admin-products {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
    display: grid;
    gap: 14px;
    padding: 16px;
}

.admin-form input[type="color"] {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    height: 46px;
    padding: 5px;
    width: 100%;
}

.form-grid.compact-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-check {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 10px;
}

.admin-toolbar span {
    color: var(--muted);
    display: block;
    font-size: 13px;
    font-weight: 800;
    margin-top: 2px;
}

.admin-product-list {
    display: grid;
    gap: 10px;
    max-height: 560px;
    overflow: auto;
    padding-right: 4px;
}

.admin-product-row {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    display: grid;
    gap: 12px;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    padding: 10px;
}

.admin-product-row.is-passive {
    opacity: .62;
}

.admin-product-logo {
    border-radius: 12px;
    color: #fff;
    display: grid;
    font-size: 12px;
    font-weight: 950;
    height: 46px;
    place-items: center;
    width: 46px;
}

.admin-product-row strong,
.admin-product-row small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-product-row small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    margin-top: 3px;
}

.admin-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    justify-content: flex-end;
}

.admin-row-actions button {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    color: #111827;
    font-size: 12px;
    font-weight: 900;
    min-height: 34px;
    padding: 0 10px;
}

.admin-row-actions .danger-link {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #be123c;
}

@media (max-width: 980px) {
    .guest-actions,
    .user-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .user-pill,
    .admin-open-button,
    .user-actions .ghost-button {
        justify-content: center;
        width: 100%;
    }

    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-product-row {
        grid-template-columns: 46px minmax(0, 1fr);
    }

    .admin-row-actions {
        grid-column: 1 / -1;
        justify-content: stretch;
    }

    .admin-row-actions button {
        flex: 1;
    }
}

@media (max-width: 620px) {
    .header-actions {
        grid-template-columns: 1fr;
    }

    .cart-button {
        justify-content: center;
        width: 100%;
    }

    .cart-drawer.open {
        overflow: hidden;
    }

    .drawer-panel {
        border-radius: 0;
        box-shadow: none;
        height: 100dvh;
        margin-left: 0;
        max-width: none;
        padding: 18px 14px;
        width: 100vw;
    }

    .drawer-backdrop {
        display: none;
    }

    .cart-items {
        max-width: 100%;
        overflow-x: hidden;
        padding: 14px 0;
    }

    .cart-line {
        align-items: start;
        grid-template-columns: 54px minmax(0, 1fr);
        padding: 10px;
    }

    .cart-line-actions {
        align-items: center;
        display: flex;
        grid-column: 1 / -1;
        justify-content: space-between;
        width: 100%;
    }

    .cart-line-info strong {
        overflow-wrap: anywhere;
    }

    .cart-summary {
        background: var(--panel);
        padding-bottom: env(safe-area-inset-bottom);
    }

    .form-grid.compact-grid,
    .guest-actions,
    .user-actions {
        grid-template-columns: 1fr;
    }

    .admin-head,
    .admin-toolbar,
    .admin-form-head {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .footer-inner {
        justify-items: center;
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand,
    .footer-column {
        justify-items: center;
    }

    .footer-brand .brand {
        margin-inline: auto;
    }

    .footer-brand p {
        margin-inline: auto;
    }

    .footer-badges {
        justify-content: center;
    }

    .footer-bottom {
        align-items: center;
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .duration-options {
        grid-template-columns: 1fr;
    }
}


.seo-article-shell {
    background: #ffffff;
    border: 1px solid #dbe3ea;
    border-radius: 14px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, .07);
    display: grid;
    gap: 14px;
    margin: 0 auto 34px;
    max-width: 1180px;
    padding: 18px;
}

.home-seo-article {
    margin-top: -24px;
}

.seo-article-head {
    border-bottom: 1px solid #e5e7eb;
    display: grid;
    gap: 8px;
    padding-bottom: 14px;
}

.seo-article-head h2 {
    font-size: 24px;
    line-height: 1.2;
    margin: 0;
}

.seo-article-head p {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    margin: 0;
}

.seo-scroll {
    color: #334155;
    display: grid;
    gap: 16px;
    line-height: 1.72;
    max-height: 260px;
    overflow-y: auto;
    padding: 2px 12px 2px 0;
    scrollbar-color: var(--brand) #eef2f7;
    scrollbar-width: thin;
}

.seo-scroll::-webkit-scrollbar {
    width: 8px;
}

.seo-scroll::-webkit-scrollbar-track {
    background: #eef2f7;
    border-radius: 999px;
}

.seo-scroll::-webkit-scrollbar-thumb {
    background: var(--brand);
    border-radius: 999px;
}

.seo-scroll h3 {
    color: #0f172a;
    font-size: 17px;
    line-height: 1.28;
    margin: 0 0 6px;
}

.seo-scroll p,
.seo-scroll ul {
    margin: 0;
}

.seo-scroll ul {
    display: grid;
    gap: 8px;
    list-style: none;
    padding: 0;
}

.seo-scroll li {
    display: grid;
    gap: 8px;
    grid-template-columns: 8px 1fr;
}

.seo-scroll li::before {
    background: var(--brand);
    border-radius: 999px;
    content: "";
    height: 6px;
    margin-top: 12px;
    width: 6px;
}

.catalog-head h1 {
    font-size: 32px;
    line-height: 1.12;
    margin: 6px 0 0;
}

.title-keep {
    white-space: nowrap;
}

.category-panel h2 {
    font-size: 30px;
    line-height: 1.08;
    margin: 6px 0 0;
}

@media (max-width: 760px) {
    .seo-article-shell {
        border-radius: 12px;
        margin-bottom: 24px;
        padding: 14px;
    }

    .home-seo-article {
        margin-top: -12px;
    }

    .seo-scroll {
        max-height: 300px;
    }

    .category-panel h2 {
        font-size: 26px;
    }
}


.checkout-modal {
    inset: 0;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    transition: opacity .2s ease;
    z-index: 80;
}

.checkout-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.checkout-card {
    background: #fff;
    border: 1px solid rgba(226, 222, 215, .9);
    border-radius: 24px;
    box-shadow: 0 28px 70px rgba(15, 23, 42, .28);
    display: grid;
    gap: 18px;
    left: 50%;
    max-height: calc(100vh - 40px);
    max-width: 820px;
    overflow: auto;
    padding: 26px;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(820px, calc(100vw - 28px));
}

.checkout-close {
    justify-self: end;
    margin-bottom: -8px;
}

.checkout-head {
    align-items: center;
    background: linear-gradient(135deg, #eef8f6, #fff7ed);
    border: 1px solid #dfe7ef;
    border-radius: 18px;
    display: flex;
    gap: 14px;
    padding: 16px;
}

.checkout-head-icon {
    align-items: center;
    background: var(--brand);
    border-radius: 16px;
    color: #fff;
    display: inline-flex;
    height: 52px;
    justify-content: center;
    width: 52px;
}

.checkout-head-icon svg {
    fill: none;
    height: 24px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 24px;
}

.checkout-head h2,
.account-hero h1,
.admin-sidebar h1,
.admin-view-head h2 {
    margin: 4px 0;
}

.checkout-head p,
.account-hero p {
    color: var(--muted);
    margin: 0;
}

.checkout-mode {
    background: #f8fafc;
    border: 1px solid #dfe7ef;
    border-radius: 16px;
    display: grid;
    gap: 6px;
    grid-template-columns: 1fr 1fr;
    padding: 5px;
}

.checkout-mode button {
    background: transparent;
    border: 0;
    border-radius: 12px;
    color: #334155;
    font-weight: 950;
    min-height: 44px;
}

.checkout-mode button.active {
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .08);
    color: var(--brand);
}

.checkout-member-note {
    align-items: center;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    border-radius: 16px;
    color: #065f46;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 13px 15px;
}

.checkout-member-note span {
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
}

.checkout-member-note strong {
    font-size: 14px;
}

.checkout-warning {
    align-items: flex-start;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 16px;
    color: #991b1b;
    display: flex;
    gap: 10px;
    padding: 13px 15px;
}

.checkout-warning strong {
    flex: 0 0 auto;
    font-weight: 950;
}

.checkout-warning span {
    font-weight: 850;
    line-height: 1.4;
}

.checkout-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checkout-payment-box {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    display: grid;
    gap: 12px;
    padding: 14px;
}

.checkout-payment-head {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.checkout-payment-head strong {
    color: var(--ink);
}

.checkout-payment-head span {
    background: #eef7f6;
    border-radius: 999px;
    color: var(--brand);
    font-size: 12px;
    font-weight: 950;
    padding: 6px 10px;
}

.checkout-payment-methods {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.checkout-payment-method {
    align-items: center;
    background: #fff;
    border: 1px solid #dbe6e8;
    border-radius: 14px;
    cursor: pointer;
    display: grid;
    gap: 10px;
    grid-template-columns: 18px 42px minmax(0, 1fr);
    padding: 11px;
}

.checkout-payment-method.active {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(13, 142, 132, .1);
}

.checkout-payment-method input {
    accent-color: var(--brand);
}

.checkout-payment-method strong,
.checkout-payment-method small {
    display: block;
}

.checkout-payment-method small {
    color: #64748b;
    font-size: 12px;
    line-height: 1.35;
}

.payment-method-logo.small {
    height: 42px;
    width: 42px;
}

.checkout-bank-notice {
    background: #fffaf0;
    border: 1px solid #fed7aa;
    border-radius: 16px;
    display: grid;
    gap: 12px;
    padding: 14px;
}

.checkout-bank-notice p,
.checkout-bank-notice small {
    color: #64748b;
    margin: 4px 0 0;
}

.checkout-bank-accounts {
    display: grid;
    gap: 10px;
}

.checkout-bank-accounts article {
    background: #fff;
    border: 1px solid #fde2bd;
    border-radius: 12px;
    display: grid;
    gap: 4px;
    padding: 12px;
}

.checkout-bank-accounts span,
.checkout-bank-accounts small {
    color: #64748b;
}

.checkout-bank-accounts .checkout-iban-line {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between;
}

.checkout-iban-line strong {
    color: #0f172a;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.iban-copy-button {
    align-items: center;
    background: #eef7f6;
    border: 1px solid #bde4df;
    border-radius: 999px;
    color: var(--brand);
    cursor: pointer;
    display: inline-flex;
    font-size: 12px;
    font-weight: 950;
    gap: 6px;
    min-height: 32px;
    padding: 0 10px;
}

.iban-copy-button svg {
    fill: none;
    height: 15px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.2;
    width: 15px;
}

.payment-notice-button {
    justify-self: start;
    text-decoration: none;
    width: auto;
}

.checkout-summary-box {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    display: grid;
    gap: 12px;
    overflow: hidden;
    padding: 16px;
}

.checkout-summary-box span,
.checkout-summary-box div {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.checkout-summary-head {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 10px;
}

.checkout-summary-head span {
    background: #eef7f6;
    border-radius: 999px;
    color: var(--brand);
    font-size: 12px;
    font-weight: 950;
    padding: 6px 10px;
}

.checkout-summary-lines {
    display: grid !important;
    gap: 10px;
}

.checkout-summary-row {
    align-items: center;
    display: grid !important;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) minmax(230px, auto);
    min-width: 0;
}

.checkout-summary-product {
    align-items: center;
    display: grid !important;
    gap: 10px;
    grid-template-columns: 46px minmax(0, 1fr);
    justify-content: start !important;
    min-width: 0;
}

.checkout-summary-thumb {
    border-radius: 12px;
    height: 46px;
    min-width: 46px;
    width: 46px;
}

.checkout-summary-title {
    color: inherit;
    display: grid;
    gap: 6px;
    justify-items: start;
    min-width: 0;
    text-decoration: none;
}

.checkout-summary-title:hover b {
    color: var(--brand);
}

.checkout-summary-title b {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
}

.checkout-summary-title .campaign-inline-badge {
    margin-top: 0;
}

.checkout-summary-meta {
    align-items: center;
    display: grid !important;
    gap: 12px;
    grid-template-columns: auto minmax(76px, auto) 32px;
    justify-content: end;
    text-align: right;
}

.checkout-summary-quantity {
    align-items: center !important;
    background: #fff;
    border: 1px solid #dbe6e8;
    border-radius: 999px;
    display: inline-flex !important;
    gap: 5px !important;
    justify-content: center !important;
    padding: 4px;
    white-space: nowrap;
}

.checkout-summary-quantity button,
.checkout-summary-remove {
    align-items: center;
    border: 0;
    cursor: pointer;
    display: inline-flex;
    font-weight: 950;
    justify-content: center;
}

.checkout-summary-quantity button {
    background: #eef7f6;
    border-radius: 50%;
    color: var(--brand);
    height: 24px;
    width: 24px;
}

.checkout-summary-remove {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-radius: 50%;
    color: #e11d48;
    height: 30px;
    width: 30px;
}

.checkout-summary-meta strong {
    color: #64748b;
    font-size: 16px;
    white-space: nowrap;
}

.checkout-summary-total {
    border-top: 1px solid #e5e7eb;
    padding-top: 12px;
}

.checkout-summary-total strong {
    color: var(--brand);
    font-size: 24px;
}

.checkout-summary-box em {
    color: var(--muted);
    font-style: normal;
    font-weight: 800;
    white-space: nowrap;
}

.account-shell,
.admin-dashboard-shell {
    margin: 28px auto 56px;
    max-width: none;
    padding: 0 28px;
    width: 100%;
}

.account-empty,
.account-hero,
.account-card,
.admin-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, .08);
    padding: 20px;
}

.account-empty {
    display: grid;
    gap: 12px;
    justify-items: start;
}

.account-hero,
.admin-view-head {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

.account-stat-grid,
.admin-stat-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 16px 0;
}

.account-stat-grid article,
.admin-stat-grid article {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    display: grid;
    gap: 5px;
    padding: 16px;
}

.account-stat-grid article.metric-card,
.admin-stat-grid article.metric-card {
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #f7fbfa 100%);
    display: grid;
    gap: 12px;
    grid-template-columns: 48px minmax(0, 1fr);
}

.metric-icon {
    align-items: center;
    background: #eef7f6;
    border: 1px solid #cce7e4;
    border-radius: 14px;
    color: var(--brand);
    display: inline-flex;
    height: 48px;
    justify-content: center;
    width: 48px;
}

.metric-icon svg {
    fill: none;
    height: 22px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 22px;
}

.metric-card > div {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.account-stat-grid strong,
.admin-stat-grid strong {
    color: var(--brand);
    font-size: 24px;
}

.account-stat-grid span,
.admin-stat-grid span {
    color: var(--muted);
    font-weight: 800;
}

.dashboard-head {
    align-items: flex-start;
}

.dashboard-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.dashboard-range-tabs {
    background: #eef7f5;
    border: 1px solid #cce7e4;
    border-radius: 999px;
    display: flex;
    gap: 4px;
    padding: 5px;
}

.dashboard-range-tabs button {
    background: transparent;
    border: 0;
    border-radius: 999px;
    color: #0f766e;
    cursor: pointer;
    font-weight: 950;
    padding: 9px 12px;
}

.dashboard-range-tabs button.active {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 10px 20px rgba(13, 148, 136, .2);
}

.dashboard-stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-stat-grid article small {
    color: #64748b;
    font-weight: 850;
    line-height: 1.25;
}

.admin-dashboard-live-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-wide-card {
    grid-column: 1 / -1;
    min-width: 0;
}

.dashboard-wide-card .account-orders-table {
    overflow-x: auto;
}

.dashboard-wide-card .account-orders-row {
    min-width: 1180px;
}

.dashboard-mini-card {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.dashboard-activity-list {
    display: grid;
    gap: 8px;
}

.dashboard-activity-list article {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    display: grid;
    gap: 4px;
    padding: 12px;
}

.dashboard-activity-list b {
    color: var(--ink);
    font-size: 14px;
}

.dashboard-activity-list span,
.dashboard-activity-list small {
    color: #64748b;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.dashboard-signal-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-signal-grid article {
    background: linear-gradient(135deg, #ecfdf5, #f8fafc);
    border: 1px solid #cce7e4;
    border-radius: 14px;
    display: grid;
    gap: 4px;
    padding: 12px;
}

.dashboard-signal-grid b {
    color: var(--brand);
    font-size: 22px;
}

.dashboard-signal-grid span {
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
}

.account-layout,
.admin-two-col {
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, .7fr);
}

.account-dashboard-orders {
    grid-template-columns: minmax(0, 1fr);
}

.profile-form,
.admin-edit-form {
    display: grid;
    gap: 12px;
}

.profile-form label,
.admin-edit-form label {
    color: #111827;
    display: grid;
    font-size: 13px;
    font-weight: 900;
    gap: 7px;
}

.order-list,
.admin-list-grid {
    display: grid;
    gap: 10px;
}

.order-card,
.manage-card {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 12px;
}

.order-card p,
.manage-card small {
    color: var(--muted);
    margin: 0;
}

.account-orders-table {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
}

.account-orders-row {
    align-items: center;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    display: grid;
    gap: 14px;
    grid-template-columns: 105px minmax(160px, .95fr) minmax(220px, 1.15fr) 120px minmax(220px, 1.2fr) minmax(180px, .95fr);
    padding: 14px 16px;
}

.account-orders-row:first-child {
    border-top: 0;
}

.account-orders-head {
    background: #f8fafc;
    color: #52627a;
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
}

.account-orders-row b,
.account-orders-row strong,
.account-orders-row small {
    display: block;
}

.account-orders-row small {
    color: #64748b;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.order-source-pill {
    background: #eef2ff;
    border-radius: 999px;
    color: #4338ca;
    display: inline-flex;
    font-size: 11px;
    font-weight: 950;
    margin-top: 7px;
    padding: 5px 8px;
    white-space: nowrap;
}

.order-source-pill.is-dealer {
    background: #ecfdf5;
    color: #047857;
}

.order-total-cell {
    color: var(--brand);
    font-size: 18px;
}

.delivery-info-cell {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.delivery-info-cell pre {
    background: #f8fafc;
    border: 1px solid #dbe4ee;
    border-radius: 12px;
    color: #0f172a;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.5;
    margin: 0;
    max-height: 130px;
    overflow: auto;
    padding: 10px;
    white-space: pre-wrap;
    word-break: break-word;
}

.delivery-info-block {
    display: grid;
    gap: 6px;
}

.delivery-info-title {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: space-between;
}

.delivery-info-block strong {
    color: var(--ink);
    font-size: 12px;
    letter-spacing: .02em;
}

.delivery-copy-button {
    align-items: center;
    background: #eef7f6;
    border: 1px solid #bde4df;
    border-radius: 999px;
    color: var(--brand);
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 950;
    gap: 6px;
    min-height: 30px;
    padding: 0 10px;
}

.delivery-copy-button svg {
    fill: none;
    height: 15px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.2;
    width: 15px;
}

.delivery-info-editor textarea,
.delivery-info-editor select,
.delivery-editor-section textarea {
    background: #fff;
    border: 1px solid #cfd8e3;
    border-radius: 12px;
    color: #0f172a;
    font: inherit;
    min-height: 92px;
    padding: 12px;
    resize: vertical;
    width: 100%;
}

.delivery-info-editor select {
    min-height: 42px;
    resize: none;
}

.delivery-info-editor span {
    color: var(--muted);
    display: block;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 5px;
}

.delivery-info-cell .ghost-button {
    justify-self: start;
}

.admin-orders-table {
    margin-top: 14px;
}

.payment-notices-table {
    margin-top: 14px;
}

.payment-notices-table .account-orders-row {
    grid-template-columns: 120px minmax(180px, 1fr) minmax(180px, .9fr) minmax(260px, 1.4fr);
}

.seo-guides-panel {
    display: grid;
    gap: 14px;
    margin-bottom: 18px;
}

.seo-guide-create-card {
    display: grid;
    gap: 14px;
    margin-bottom: 18px;
}

.seo-guide-create-form {
    align-items: end;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(180px, .7fr) minmax(220px, 1fr) minmax(260px, 1.2fr) auto;
}

.seo-guide-create-form label {
    color: #0f172a;
    display: grid;
    font-size: 13px;
    font-weight: 900;
    gap: 8px;
}

.seo-guide-create-form select {
    background: #f8fafc;
    border: 1px solid #dbe4ee;
    border-radius: 12px;
    color: #0f172a;
    font: inherit;
    font-weight: 850;
    min-height: 46px;
    padding: 0 12px;
}

.seo-guide-create-form .checkout-button {
    min-height: 46px;
    white-space: nowrap;
}

.seo-guide-card-list {
    display: grid;
    gap: 12px;
}

.seo-guide-card {
    background: #fff;
    border: 1px solid #dbe4ee;
    border-radius: 16px;
    overflow: hidden;
}

.seo-guide-card summary {
    align-items: center;
    cursor: pointer;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    list-style: none;
    padding: 16px 18px;
}

.seo-guide-card summary::-webkit-details-marker {
    display: none;
}

.seo-guide-card summary strong,
.seo-guide-card summary small {
    display: block;
}

.seo-guide-card summary small {
    color: #64748b;
    line-height: 1.45;
    margin-top: 4px;
}

.seo-guide-card summary b {
    background: #eef7f6;
    border-radius: 999px;
    color: var(--brand);
    font-size: 12px;
    padding: 7px 10px;
    white-space: nowrap;
}

.seo-guide-form {
    border-top: 1px solid #e5e7eb;
    display: grid;
    gap: 14px;
    padding: 16px 18px 18px;
}

.seo-guide-form label {
    color: #0f172a;
    display: grid;
    font-weight: 900;
    gap: 8px;
}

.seo-guide-html-input {
    background: #f8fafc;
    border: 1px solid #cfd8e3;
    border-radius: 14px;
    color: #0f172a;
    font-family: Consolas, "Courier New", monospace;
    font-size: 13px;
    line-height: 1.55;
    min-height: 260px;
    padding: 14px;
    resize: vertical;
    width: 100%;
}

.seo-guide-help {
    align-items: center;
    color: #64748b;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
}

.seo-guide-preview {
    border: 1px dashed #b9e7e1;
    border-radius: 16px;
    display: grid;
    gap: 10px;
    padding: 12px;
}

.seo-guide-preview > strong {
    color: var(--brand);
    font-size: 13px;
    text-transform: uppercase;
}

.seo-guide-preview-frame {
    background: #f8fafc;
    border-radius: 12px;
    max-height: 360px;
    overflow: auto;
    padding: 12px;
}

.instruction-form {
    display: grid;
    gap: 14px;
}

.instruction-form label {
    color: var(--ink);
    display: grid;
    font-weight: 950;
    gap: 8px;
}

.instruction-form input,
.instruction-form select,
.instruction-form textarea {
    background: #fff;
    border: 1px solid #d7dee8;
    border-radius: 12px;
    color: var(--ink);
    font: inherit;
    padding: 12px 14px;
    width: 100%;
}

.instruction-preview-text {
    background: #f8fafc;
    border: 1px solid #dbe4ee;
    border-radius: 14px;
    color: var(--ink);
    font-family: inherit;
    font-size: 13px;
    line-height: 1.55;
    margin: 0;
    max-height: 240px;
    overflow: auto;
    padding: 14px;
    white-space: pre-wrap;
}

.dealer-public-page {
    display: grid;
    gap: 28px;
    margin: 0 auto;
    max-width: 1180px;
    padding: 42px 18px 70px;
}

.dealer-hero {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1fr) minmax(360px, .85fr);
}

.dealer-hero > div,
.dealer-application-form,
.dealer-seo-content,
.dealer-application-card {
    background: #fff;
    border: 1px solid #dfe7ef;
    border-radius: 18px;
    box-shadow: 0 20px 42px rgba(15, 23, 42, .08);
    padding: 26px;
}

.dealer-hero h1 {
    font-size: clamp(34px, 5vw, 58px);
    letter-spacing: 0;
    line-height: 1.02;
    margin: 12px 0 16px;
}

.dealer-hero p,
.dealer-seo-content p {
    color: var(--muted);
    line-height: 1.75;
}

.dealer-hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.dealer-hero-points span {
    background: #eef7f6;
    border: 1px solid #b9e7e1;
    border-radius: 999px;
    color: var(--brand);
    font-weight: 950;
    padding: 10px 14px;
}

.dealer-application-form {
    display: grid;
    gap: 14px;
}

.dealer-application-form h2 {
    margin: 0;
}

.dealer-form-grid,
.dealer-admin-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dealer-application-form label,
.dealer-admin-grid label {
    color: var(--ink);
    display: grid;
    font-size: 13px;
    font-weight: 950;
    gap: 7px;
}

.dealer-application-form input,
.dealer-application-form textarea,
.dealer-admin-grid input {
    background: #f8fafc;
    border: 1px solid #dbe3ea;
    border-radius: 12px;
    color: var(--ink);
    font: inherit;
    font-weight: 800;
    padding: 12px 14px;
    width: 100%;
}

.dealer-application-form.is-locked {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border-color: #dbe3ea;
}

.dealer-application-form.is-locked input,
.dealer-application-form.is-locked textarea,
.dealer-application-form.is-locked select,
.dealer-settings-card.is-locked input,
.dealer-settings-card.is-locked textarea,
.dealer-settings-card.is-locked select {
    background: #eef2f7;
    color: #64748b;
    cursor: not-allowed;
}

.dealer-application-form button:disabled,
.dealer-settings-card button:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    opacity: 1;
}

.dealer-seo-content {
    max-height: 360px;
    overflow: auto;
}

.dealer-seo-content h2,
.dealer-seo-content h3 {
    margin: 0 0 10px;
}

.dealer-application-list {
    display: grid;
    gap: 14px;
}

.dealer-application-card {
    box-shadow: none;
    display: grid;
    gap: 14px;
}

.dealer-application-card p {
    color: var(--muted);
    margin: 6px 0 0;
}

.dealer-transaction-list {
    display: grid;
    gap: 10px;
}

.dealer-transaction-list div {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    padding: 12px;
}

.dealer-topup-form {
    display: grid;
    gap: 16px;
    margin-top: 16px;
}

.dealer-topup-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dealer-topup-form .modern-field {
    margin: 0;
}

.dealer-topup-form .field-icon {
    background: linear-gradient(135deg, var(--brand), #14b8a6);
}

.dealer-topup-payments {
    background: #f8fafc;
    border: 1px solid #dfe7ef;
    border-radius: 18px;
    display: grid;
    gap: 12px;
    padding: 14px;
}

.dealer-payment-methods {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.dealer-payment-instruction .checkout-bank-notice {
    background: #fff;
    border-color: #dfe7ef;
}

.dealer-topup-form .checkout-button {
    align-items: center;
    display: inline-flex;
    gap: 8px;
    justify-content: center;
}

.dealer-topup-form .checkout-button svg {
    fill: none;
    height: 18px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 18px;
}

.dealer-price {
    align-items: flex-start;
    display: grid !important;
    gap: 4px;
    white-space: normal;
}

.dealer-price small {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 850;
    line-height: 1;
    text-decoration: line-through;
}

.dealer-price strong {
    color: var(--brand);
    font-size: 20px;
    line-height: 1;
}

.dealer-price em {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    color: #ea580c;
    display: inline-flex;
    font-size: 11px;
    font-style: normal;
    font-weight: 950;
    justify-self: start;
    line-height: 1;
    padding: 5px 8px;
}

.dealer-detail-price-line {
    align-items: center;
    display: inline-flex;
    gap: 8px;
    min-width: 0;
}

.dealer-detail-price-line em {
    flex: 0 0 auto;
    justify-self: auto;
    line-height: 1.05;
}

.detail-buy-box .campaign-price strong {
    font-size: 28px;
}

@media (max-width: 860px) {
    .dealer-hero,
    .dealer-form-grid,
    .dealer-admin-grid,
    .dealer-topup-grid,
    .seo-guide-create-form {
        grid-template-columns: 1fr;
    }
}

.order-status-select {
    background: #eef7f6;
    border: 1px solid #b9e7e1;
    border-radius: 999px;
    color: var(--brand);
    font-size: 13px;
    font-weight: 950;
    min-height: 36px;
    padding: 0 12px;
    width: 100%;
}

@media (max-width: 980px) {
    .account-orders-table {
        border: 0;
        display: grid;
        gap: 12px;
        overflow: visible;
    }

    .account-orders-head {
        display: none;
    }

    .account-orders-row {
        border: 1px solid #e5e7eb;
        border-radius: 14px;
        grid-template-columns: 1fr;
    }
}

.admin-dashboard-shell {
    align-items: start;
    display: grid;
    gap: 18px;
    grid-template-columns: 300px minmax(0, 1fr);
}

.admin-sidebar {
    background: #173b37;
    border-radius: 18px;
    color: #fff;
    display: grid;
    gap: 10px;
    padding: 18px;
    position: sticky;
    top: 92px;
}

.admin-sidebar button {
    align-items: center;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 10px;
    color: #fff;
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    min-height: 44px;
}

.admin-sidebar button.active {
    background: #fff;
    color: #173b37;
}

.admin-sidebar svg {
    fill: none;
    height: 20px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 20px;
}

.admin-menu-badge {
    align-items: center;
    background: #ef4444;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 11px;
    height: 20px;
    justify-content: center;
    margin-left: auto;
    min-width: 20px;
    padding: 0 6px;
}

.live-chat-console {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    overflow: hidden;
    padding: 0;
}

.live-chat-console-list {
    align-content: start;
    align-items: start;
    border-right: 1px solid #dbe6e8;
    display: grid;
    gap: 10px;
    grid-auto-rows: max-content;
    max-height: 640px;
    overflow: auto;
    padding: 18px;
}

.live-chat-console-list h3 {
    font-size: 15px;
    margin: 0 0 4px;
}

.live-chat-conversation {
    align-items: start;
    background: #f8fafc;
    border: 1px solid #dbe6e8;
    border-radius: 13px;
    color: var(--ink);
    cursor: pointer;
    display: grid;
    gap: 9px;
    grid-template-columns: 36px minmax(0, 1fr);
    min-height: 88px;
    padding: 10px 12px;
    position: relative;
    text-align: left;
    width: 100%;
}

.live-chat-conversation.active,
.live-chat-conversation.has-unread {
    background: #eef7f6;
    border-color: #86d7ce;
}

.live-chat-conversation strong,
.live-chat-conversation small,
.live-chat-conversation em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.live-chat-conversation strong {
    font-size: 13px;
    line-height: 1.15;
}

.live-chat-conversation small,
.live-chat-conversation em {
    color: #64748b;
    font-size: 11px;
    font-style: normal;
    font-weight: 850;
    line-height: 1.2;
    margin-top: 4px;
}

.live-chat-conversation em {
    color: var(--brand);
    font-weight: 950;
}

.live-chat-conversation i {
    background: #e7f8f5;
    border-radius: 999px;
    color: var(--brand);
    display: inline-flex;
    font-size: 11px;
    font-style: normal;
    font-weight: 950;
    line-height: 1;
    margin-top: 6px;
    padding: 5px 8px;
}

.live-chat-conversation b {
    align-items: center;
    background: #ef4444;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 12px;
    height: 22px;
    justify-content: center;
    min-width: 22px;
    position: absolute;
    right: 10px;
    top: 10px;
}

.live-chat-conversation .ticket-avatar {
    height: 32px;
    width: 32px;
}

.live-chat-console-main {
    display: grid;
    grid-template-rows: auto minmax(280px, 1fr) auto;
    min-width: 0;
}

.live-chat-console-head {
    align-items: center;
    border-bottom: 1px solid #dbe6e8;
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 18px;
}

.live-chat-console-head h3,
.live-chat-console-head p {
    margin: 0;
}

.live-chat-console-head p,
.live-chat-console-head small {
    color: #0f766e;
    display: block;
    font-weight: 900;
    margin-top: 5px;
}

.live-chat-console-head a {
    color: var(--brand);
}

.live-chat-console-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.live-chat-console-actions select {
    background: #fff;
    border: 1px solid #dbe6e8;
    border-radius: 12px;
    color: var(--ink);
    font: inherit;
    font-weight: 900;
    min-height: 42px;
    padding: 0 12px;
}

.live-chat-admin-switches {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.live-chat-admin-switches button {
    align-items: center;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-radius: 999px;
    color: #be123c;
    display: inline-flex;
    font-weight: 950;
    gap: 8px;
    min-height: 38px;
    padding: 0 12px;
}

.live-chat-admin-switches button span {
    background: currentColor;
    border-radius: 50%;
    height: 9px;
    width: 9px;
}

.live-chat-admin-switches button.active {
    background: #eef7f6;
    border-color: #b9e7e1;
    color: var(--brand);
}

.live-chat-admin-thread {
    background: #10151f;
    border-radius: 0;
    display: grid;
    gap: 10px;
    max-height: 520px;
    overflow: auto;
    padding: 18px;
}

.live-chat-admin-form {
    align-items: center;
    border-top: 1px solid #dbe6e8;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 12px;
}

.live-chat-admin-form textarea {
    background: #f8fafc;
    border: 1px solid #dbe6e8;
    border-radius: 14px;
    color: #0f172a;
    font: inherit;
    min-height: 110px;
    padding: 12px;
}

.live-chat-admin-form .checkout-button {
    min-width: 110px;
}

@media (max-width: 900px) {
    .live-chat-console {
        grid-template-columns: 1fr;
    }

    .live-chat-console-list {
        align-content: start;
        align-items: start;
        border-right: 0;
        border-bottom: 1px solid #dbe6e8;
        grid-auto-flow: column;
        grid-auto-columns: minmax(240px, 1fr);
        grid-auto-rows: max-content;
        overflow-x: auto;
    }

    .live-chat-console-head {
        grid-template-columns: 1fr;
    }

    .live-chat-console-actions {
        justify-content: flex-start;
    }

    .live-chat-admin-form {
        grid-template-columns: 1fr;
    }
}

.admin-workspace {
    display: grid;
    gap: 16px;
    min-width: 0;
}

.manage-card {
    grid-template-columns: 52px minmax(0, 1fr) auto;
}

.manage-card.order-manage {
    grid-template-columns: minmax(0, 1fr) auto 180px;
}

@media (max-width: 900px) {
    .checkout-grid,
    .account-layout,
    .admin-two-col,
    .admin-dashboard-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
    }

    .live-chat-admin-list {
        overflow-x: auto;
    }

    .live-chat-admin-row {
        min-width: 720px;
    }

    .account-shell,
    .admin-dashboard-shell {
        padding: 0 16px;
    }

    .account-stat-grid,
    .admin-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-dashboard-live-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-wide-card {
        grid-column: auto;
    }
}

@media (max-width: 560px) {
    .checkout-mode,
    .account-stat-grid,
    .admin-stat-grid {
        grid-template-columns: 1fr;
    }

    .checkout-card {
        padding: 18px;
    }

    .dashboard-actions {
        align-items: stretch;
        justify-content: stretch;
        width: 100%;
    }

    .dashboard-range-tabs {
        border-radius: 14px;
        overflow-x: auto;
        width: 100%;
    }

    .dashboard-range-tabs button {
        flex: 0 0 auto;
        padding: 9px 10px;
    }

    .dashboard-signal-grid {
        grid-template-columns: 1fr;
    }

    .checkout-head,
    .checkout-member-note,
    .checkout-warning {
        align-items: stretch;
        flex-direction: column;
    }

    .account-hero,
    .admin-view-head,
    .manage-card,
    .manage-card.order-manage {
        align-items: stretch;
        grid-template-columns: 1fr;
    }
}


.admin-products-view {
    align-items: start;
    display: grid;
    gap: 18px;
    grid-template-columns: 360px minmax(0, 1fr);
}

.admin-products-view .admin-edit-form {
    align-self: start;
    gap: 13px;
    position: sticky;
    top: 92px;
}

.admin-products-view .admin-edit-form h3,
.admin-products-panel h3 {
    font-size: 18px;
    line-height: 1.25;
    margin: 0;
}

.admin-products-view .admin-edit-form input,
.admin-products-view .admin-edit-form select,
.admin-products-view .admin-edit-form textarea {
    min-height: 42px;
}

.admin-products-panel {
    align-self: start;
    min-width: 0;
}

.admin-products-panel .admin-list-grid {
    max-height: calc(100vh - 245px);
    overflow: auto;
    padding-right: 4px;
}

.admin-products-panel .manage-card {
    align-items: center;
    background: #fff;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    min-height: 82px;
    padding: 12px;
}

.admin-products-panel .manage-card > div:first-of-type {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.admin-products-panel .manage-card strong {
    color: #0f172a;
    display: block;
    font-size: 15px;
    line-height: 1.25;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-products-panel .manage-card small {
    display: block;
    font-size: 12px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.admin-products-panel .admin-row-actions {
    display: grid;
    gap: 7px;
    grid-template-columns: repeat(3, auto);
    justify-content: end;
    min-width: 190px;
}

.admin-products-panel .admin-row-actions button {
    min-height: 34px;
    padding: 0 11px;
    white-space: nowrap;
}

.admin-products-panel .admin-product-logo {
    height: 48px;
    width: 48px;
}

.admin-products-panel .admin-product-logo .real-logo-tile {
    border-radius: 10px;
    height: 38px;
    padding: 5px;
    width: 38px;
}

.admin-products-panel .admin-product-logo .real-logo-tile img {
    max-height: 28px;
    max-width: 28px;
}

@media (max-width: 1180px) {
    .admin-products-view {
        grid-template-columns: 330px minmax(0, 1fr);
    }

    .admin-products-panel .manage-card {
        grid-template-columns: 54px minmax(0, 1fr);
    }

    .admin-products-panel .admin-row-actions {
        grid-column: 1 / -1;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        justify-content: stretch;
        min-width: 0;
    }
}

@media (max-width: 900px) {
    .admin-products-view {
        grid-template-columns: 1fr;
    }

    .admin-products-view .admin-edit-form {
        position: static;
    }

    .admin-products-panel .admin-list-grid {
        max-height: none;
    }
}


.modern-product-editor {
    overflow: hidden;
}

.editor-title-row,
.products-panel-head {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.editor-title-row h3 {
    margin-top: 3px;
}

.editor-status,
.products-panel-head span {
    background: #eef7f6;
    border: 1px solid rgba(11, 122, 117, .16);
    border-radius: 999px;
    color: var(--brand);
    font-size: 12px;
    font-weight: 900;
    padding: 6px 10px;
    white-space: nowrap;
}

.product-editor-preview {
    align-items: center;
    background:
        linear-gradient(135deg, rgba(11, 122, 117, .08), rgba(214, 154, 39, .10)),
        #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    display: grid;
    gap: 12px;
    grid-template-columns: 58px minmax(0, 1fr);
    padding: 12px;
}

.product-editor-preview strong,
.product-editor-preview small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-editor-preview small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    margin-top: 4px;
}

.editor-preview-logo {
    height: 54px;
    width: 54px;
}

.editor-field-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) 110px;
}

.field-help {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
}

.editor-bullet-preview {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    display: grid;
    gap: 8px;
    padding: 12px;
}

.editor-bullet-preview strong {
    font-size: 13px;
}

.editor-bullet-preview ul,
.product-manage-copy ul {
    display: grid;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.editor-bullet-preview li,
.product-manage-copy li {
    color: #475569;
    display: grid;
    font-size: 12px;
    gap: 7px;
    grid-template-columns: 7px 1fr;
    line-height: 1.35;
}

.editor-bullet-preview li::before,
.product-manage-copy li::before {
    background: var(--brand);
    border-radius: 999px;
    content: "";
    height: 5px;
    margin-top: 6px;
    width: 5px;
}

.product-manage-card {
    grid-template-columns: 58px minmax(0, 1fr) auto;
}

.product-manage-copy {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.product-manage-copy p {
    color: var(--muted);
    font-size: 12px;
    margin: 0;
}

@media (max-width: 620px) {
    .editor-field-grid,
    .product-editor-preview {
        grid-template-columns: 1fr;
    }
}


.admin-products-view.is-compact {
    grid-template-columns: 1fr;
}

.admin-products-view.is-compact .modern-product-editor {
    gap: 14px;
    position: static;
}

.admin-products-view.is-compact .product-editor-preview {
    grid-column: 1 / -1;
}

.admin-products-view.is-compact .editor-form-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr 1fr 1.3fr;
}

.admin-products-view.is-compact .editor-field-grid {
    grid-template-columns: minmax(0, 1fr) 120px;
}

.admin-products-view.is-compact .editor-bullet-preview {
    min-height: 100%;
}

.admin-products-view.is-compact .editor-actions-row {
    align-items: center;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    padding-top: 12px;
}

.admin-products-view.is-compact .editor-actions-row .check-line {
    margin: 0;
}

.admin-products-view.is-compact .editor-actions-row .checkout-button {
    min-width: 180px;
}

.admin-products-view.is-compact .admin-products-panel .admin-list-grid {
    max-height: calc(100vh - 430px);
}

.admin-products-view.is-compact .product-manage-card {
    grid-template-columns: 58px minmax(240px, 1fr) auto;
}

@media (max-width: 1180px) {
    .admin-products-view.is-compact .editor-form-grid {
        grid-template-columns: 1fr 1fr;
    }

    .admin-products-view.is-compact .editor-form-grid .editor-bullet-preview {
        grid-column: 1 / -1;
    }

    .admin-products-view.is-compact .product-manage-card {
        grid-template-columns: 58px minmax(0, 1fr);
    }
}

@media (max-width: 720px) {
    .admin-products-view.is-compact .editor-form-grid,
    .admin-products-view.is-compact .editor-field-grid {
        grid-template-columns: 1fr;
    }

    .admin-products-view.is-compact .editor-actions-row {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-products-view.is-compact .editor-actions-row .checkout-button {
        width: 100%;
    }
}


.clean-editor-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, 1fr) minmax(260px, .8fr);
}

.clean-editor-section {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    display: grid;
    gap: 10px;
    padding: 14px;
}

.clean-editor-section strong {
    font-size: 14px;
}

.clean-editor-section label {
    margin: 0;
}

.editor-description-section {
    grid-column: 1 / 2;
}

.clean-editor-grid .editor-bullet-preview {
    align-self: stretch;
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

.file-upload-field {
    align-items: center;
    background: #fff;
    border: 1px dashed #94a3b8;
    border-radius: 12px;
    color: var(--brand);
    cursor: pointer;
    display: flex !important;
    font-weight: 950;
    justify-content: center;
    min-height: 44px;
    padding: 10px;
    text-align: center;
}

.file-upload-field input {
    height: 1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    width: 1px;
}

.file-upload-field:hover {
    background: #eef7f6;
    border-color: var(--brand);
}

.admin-products-view.is-compact .editor-form-grid {
    display: none;
}

.admin-products-view.is-compact .editor-field-grid {
    grid-template-columns: minmax(0, 1fr) 120px;
}

@media (max-width: 980px) {
    .clean-editor-grid {
        grid-template-columns: 1fr;
    }

    .editor-description-section,
    .clean-editor-grid .editor-bullet-preview {
        grid-column: auto;
        grid-row: auto;
    }
}

@media (max-width: 620px) {
    .admin-products-view.is-compact .editor-field-grid {
        grid-template-columns: 1fr;
    }
}


.clean-editor-section .editor-field-grid {
    grid-template-columns: minmax(0, 1fr) minmax(110px, 140px);
}

.clean-editor-section .editor-field-grid input,
.clean-editor-section .editor-field-grid select {
    min-width: 0;
    width: 100%;
}

.status-select-field {
    align-items: center;
    display: flex !important;
    flex-direction: row;
    gap: 10px;
    margin: 0;
    min-width: 190px;
}

.status-select-field select {
    min-height: 40px;
    min-width: 120px;
}

.admin-products-view.is-compact .editor-actions-row {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 12px;
}

@media (max-width: 620px) {
    .clean-editor-section .editor-field-grid {
        grid-template-columns: 1fr;
    }

    .status-select-field {
        align-items: stretch;
        flex-direction: column;
        min-width: 0;
    }

    .status-select-field select {
        width: 100%;
    }
}


.product-options-editor {
    grid-column: 1 / -1;
}

.options-editor-head {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.options-editor-head small {
    color: var(--muted);
    display: block;
    font-size: 12px;
    font-weight: 800;
    margin-top: 3px;
}

.option-editor-list {
    display: grid;
    gap: 10px;
    max-height: 280px;
    overflow: auto;
    padding-right: 4px;
}

.option-empty {
    background: #fff;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    margin: 0;
    padding: 12px;
}

.option-editor-row {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    display: grid;
    gap: 10px;
    padding: 12px;
}

.option-row-grid {
    align-items: end;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) 120px auto;
}

.option-row-grid .danger-button {
    min-height: 40px;
    padding: 0 12px;
}

@media (max-width: 720px) {
    .options-editor-head {
        align-items: stretch;
        flex-direction: column;
    }

    .option-row-grid {
        grid-template-columns: 1fr;
    }
}


.option-editor-row {
    position: relative;
}

.option-editor-row .option-row-grid {
    grid-template-columns: minmax(0, 1fr) 130px;
    padding-right: 34px;
}

.option-remove-button {
    align-items: center;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-radius: 999px;
    color: #be123c;
    display: inline-flex;
    font-size: 20px;
    font-weight: 900;
    height: 30px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    position: absolute;
    right: 10px;
    top: 10px;
    width: 30px;
}

.option-remove-button:hover {
    background: #ffe4e6;
}

.option-bullet-preview {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    display: grid;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 10px;
}

.option-bullet-preview li {
    color: #475569;
    display: grid;
    font-size: 12px;
    gap: 7px;
    grid-template-columns: 7px 1fr;
    line-height: 1.35;
}

.option-bullet-preview li::before {
    background: var(--brand);
    border-radius: 999px;
    content: "";
    height: 5px;
    margin-top: 6px;
    width: 5px;
}

@media (max-width: 720px) {
    .option-editor-row .option-row-grid {
        grid-template-columns: 1fr;
    }
}


.option-row-grid {
    grid-template-columns: minmax(0, 1fr) 120px !important;
    padding-right: 38px;
}

.option-row-grid label {
    min-width: 0;
}

.option-row-grid input {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
    width: 100%;
}

.option-price-input {
    text-align: left;
}

.option-editor-row textarea {
    box-sizing: border-box;
    max-width: 100%;
    width: 100%;
}

@media (max-width: 720px) {
    .option-row-grid {
        grid-template-columns: 1fr !important;
        padding-right: 38px;
    }
}


.users-table-card {
    gap: 16px;
}

.users-table-head {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.users-table-head span,
.users-table-head small {
    color: var(--muted);
    display: block;
    font-size: 13px;
    font-weight: 800;
}

.users-table {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    display: block;
    max-width: 100%;
    overflow: auto hidden;
    scrollbar-color: rgba(11, 122, 117, .55) transparent;
    scrollbar-width: thin;
    width: 100%;
}

.users-table::-webkit-scrollbar {
    height: 7px;
}

.users-table::-webkit-scrollbar-thumb {
    background: rgba(11, 122, 117, .55);
    border-radius: 999px;
}

.users-table-row {
    align-items: center;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    display: grid;
    gap: 12px;
    grid-template-columns: 96px minmax(260px, 1.15fr) 120px 104px 104px 82px minmax(310px, 1fr);
    min-height: 66px;
    min-width: 1080px;
    padding: 12px 14px;
}

.users-table-row:first-child {
    border-top: 0;
}

.users-table-header {
    background: #f8fafc;
    color: #64748b;
    font-size: 12px;
    font-weight: 950;
    min-height: 44px;
    text-transform: uppercase;
}

.users-table-row.is-banned {
    background: #fff7f7;
}

.user-cell-main {
    align-items: center;
    display: flex;
    gap: 10px;
    min-width: 0;
}

.user-avatar {
    align-items: center;
    background: linear-gradient(135deg, var(--brand), #16b8a9);
    border-radius: 12px;
    color: #fff;
    display: inline-flex;
    flex: 0 0 auto;
    font-weight: 950;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.user-cell-main strong,
.user-cell-main small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-cell-main small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    margin-top: 3px;
}

.role-pill,
.status-pill,
.order-count-pill {
    border-radius: 999px;
    display: inline-flex;
    font-size: 12px;
    font-weight: 950;
    justify-content: center;
    padding: 7px 10px;
    white-space: nowrap;
}

.role-pill {
    background: #eef2ff;
    color: #4338ca;
}

.role-pill.is-admin {
    background: #fff7ed;
    color: #c2410c;
}

.role-pill.is-dealer {
    background: #dcfce7;
    color: #15803d;
}

.role-pill.is-dealer-pending {
    background: #fef3c7;
    color: #b45309;
}

.status-pill.is-active {
    background: #dcfce7;
    color: #15803d;
}

.status-pill.is-banned {
    background: #fee2e2;
    color: #b91c1c;
}

.order-count-pill {
    background: #f1f5f9;
    color: #334155;
}

.user-actions-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 7px;
    justify-content: flex-end;
    min-width: 0;
}

.user-actions-row button {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    color: #0f172a;
    font-size: 12px;
    font-weight: 900;
    min-height: 34px;
    padding: 0 10px;
    white-space: nowrap;
}

.user-actions-row .danger-link {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #be123c;
}

.dealer-applications-table .users-table-row {
    grid-template-columns: 70px minmax(230px, 1.25fr) minmax(260px, 1fr) 130px minmax(190px, auto);
}

.dealer-topups-table .users-table-row {
    grid-template-columns: 70px minmax(240px, 1.2fr) 120px 170px minmax(260px, 1fr) minmax(150px, auto);
}

.dealer-accounts-table .users-table-row {
    grid-template-columns: 70px minmax(240px, 1.25fr) 130px minmax(170px, .8fr) minmax(210px, .9fr) minmax(210px, auto);
}

.dealer-compact-info {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.dealer-compact-info strong,
.dealer-compact-info small,
.dealer-compact-info em {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dealer-compact-info small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.dealer-compact-info em {
    color: #64748b;
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
}

.dealer-inline-settings {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr 1fr;
}

.dealer-inline-settings label {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    color: var(--muted);
    display: flex;
    font-size: 12px;
    font-weight: 950;
    gap: 5px;
    padding: 5px 7px;
}

.dealer-inline-settings input {
    background: transparent;
    border: 0;
    color: var(--ink);
    font-weight: 950;
    min-width: 0;
    outline: 0;
    width: 100%;
}

.dealer-actions-row {
    flex-wrap: nowrap;
}

.dealer-money-pill {
    color: var(--brand);
    font-size: 15px;
    font-weight: 950;
    white-space: nowrap;
}

@media (max-width: 1120px) {
    .users-table-row {
        grid-template-columns: minmax(220px, 1fr) 90px 90px 70px;
    }

    .users-table-header span:last-child {
        display: none;
    }

    .user-actions-row {
        grid-column: 1 / -1;
        justify-content: stretch;
    }

    .user-actions-row button {
        flex: 1;
    }
}

@media (max-width: 720px) {
    .users-table-head {
        align-items: stretch;
        flex-direction: column;
    }

    .users-table {
        overflow: auto hidden;
    }

    .users-table-row {
        grid-template-columns: 78px 220px 110px 92px 92px 76px 250px;
        min-width: 918px;
    }

    .role-pill,
    .status-pill,
    .order-count-pill {
        justify-content: flex-start;
    }
}


.users-table:not(.dealer-applications-table):not(.dealer-topups-table):not(.dealer-accounts-table) .users-table-row {
    grid-template-columns: 96px minmax(260px, 1.15fr) 120px 104px 104px 82px minmax(310px, 1fr);
    min-width: 1080px;
}

.user-id-pill,
.date-pill {
    background: #f1f5f9;
    border-radius: 999px;
    color: #334155;
    display: inline-flex;
    font-size: 12px;
    font-weight: 950;
    justify-content: center;
    padding: 7px 10px;
    white-space: nowrap;
}

.date-pill {
    background: #eef7f6;
    color: var(--brand);
}

@media (max-width: 720px) {
    .users-table-card {
        overflow: hidden;
    }

    .users-table {
        -webkit-overflow-scrolling: touch;
        display: block;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .users-table:not(.dealer-applications-table):not(.dealer-topups-table):not(.dealer-accounts-table) .users-table-row {
        grid-template-columns: 78px 220px 110px 92px 92px 76px 250px;
        min-width: 918px;
    }

    .users-table-header span:last-child {
        display: initial;
    }

    .user-actions-row {
        grid-column: auto;
        justify-content: flex-end;
    }

    .user-actions-row button {
        flex: 0 0 auto;
    }

    .dealer-applications-table .users-table-row {
        grid-template-columns: 70px 240px 260px 130px 190px;
        min-width: 890px;
    }

    .dealer-topups-table .users-table-row {
        grid-template-columns: 70px 240px 120px 170px 260px 150px;
        min-width: 1010px;
    }

    .dealer-accounts-table .users-table-row {
        grid-template-columns: 70px 240px 130px 170px 210px 210px;
        min-width: 1030px;
    }

    .dealer-actions-row {
        justify-content: flex-end;
    }
}


.categories-editor-card {
    gap: 16px;
}

.category-editor-list {
    display: grid;
    gap: 10px;
}

.category-editor-row {
    align-items: end;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    display: grid;
    gap: 12px;
    grid-template-columns: 38px 42px minmax(220px, 1fr) 180px 92px 82px auto;
    padding: 12px;
}

.category-editor-row.is-dragging {
    opacity: .55;
}

.category-editor-row label {
    color: #0f172a;
    display: grid;
    font-size: 12px;
    font-weight: 950;
    gap: 6px;
    margin: 0;
}

.category-editor-row input,
.category-editor-row select {
    min-height: 38px;
}

.drag-handle {
    align-self: center;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #475569;
    cursor: grab;
    font-size: 18px;
    height: 38px;
    padding: 0;
    width: 38px;
}

.drag-handle:active {
    cursor: grabbing;
}

@media (max-width: 1120px) {
    .category-editor-row {
        grid-template-columns: 38px 42px minmax(0, 1fr) 160px;
    }

    .category-editor-row label:nth-of-type(3),
    .category-editor-row .order-count-pill,
    .category-editor-row [data-category-save] {
        grid-column: span 2;
    }
}

@media (max-width: 720px) {
    .category-editor-row {
        align-items: stretch;
        grid-template-columns: 38px 1fr;
    }

    .category-editor-row .category-logo {
        grid-column: 2;
        grid-row: 1;
    }

    .category-editor-row label,
    .category-editor-row .order-count-pill,
    .category-editor-row [data-category-save] {
        grid-column: 1 / -1 !important;
    }
}


.brand-mark.has-logo-image {
    background: #fff;
    border: 1px solid #dfe7ef;
    overflow: hidden;
    padding: 6px;
}

.brand-mark.has-logo-image img,
.settings-logo-preview img {
    display: block;
    height: 100%;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    width: 100%;
}

.settings-editor-card {
    display: grid;
    gap: 18px;
}

.settings-brand-preview {
    align-items: center;
    background: linear-gradient(135deg, #eef8f6, #fff7ed);
    border: 1px solid #dfe7ef;
    border-radius: 14px;
    display: flex;
    gap: 14px;
    padding: 16px;
}

.settings-brand-preview strong {
    color: #111827;
    display: block;
    font-size: 24px;
    line-height: 1.1;
}

.settings-brand-preview small {
    color: #64748b;
    display: block;
    font-weight: 700;
    margin-top: 6px;
}

.settings-logo-preview {
    flex: 0 0 auto;
    height: 56px;
    width: 56px;
}

.settings-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
}

.settings-mini-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-panel {
    background: #f8fafc;
    border: 1px solid #dfe7ef;
    border-radius: 14px;
    display: grid;
    gap: 12px;
    padding: 16px;
}

.settings-panel-wide {
    grid-column: 1 / -1;
}

.settings-panel h3 {
    font-size: 16px;
    margin: 0;
}

.settings-section-head {
    align-items: flex-start;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.announcement-settings-panel {
    background: linear-gradient(135deg, #f8fafc, #eef7f6);
}

.compact-upload {
    min-height: 58px;
}

@media (max-width: 900px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }

    .settings-section-head {
        display: grid;
    }
}


.brand-mark b,
.settings-logo-preview b {
    color: #fff;
    font-size: 15px;
    font-weight: 950;
    letter-spacing: 0;
    line-height: 1;
}

.settings-logo-preview b {
    font-size: 18px;
}


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

.account-sidebar {
    background: #123f3b;
}

.account-workspace {
    display: grid;
    gap: 16px;
    min-width: 0;
}

.support-ticket-list,
.support-admin-list {
    display: grid;
    gap: 12px;
}

.support-ticket-card,
.admin-ticket-card {
    background: #f8fafc;
    border: 1px solid #dfe7ef;
    border-radius: 14px;
    display: grid;
    gap: 12px;
    padding: 14px;
}

.ticket-card-head {
    align-items: flex-start;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.ticket-card-head small {
    color: var(--muted);
    display: block;
    font-weight: 800;
    margin-top: 4px;
}

.support-ticket-card p,
.admin-ticket-card p {
    color: #334155;
    margin: 0;
}

.ticket-reply {
    background: #eef7f6;
    border-left: 4px solid var(--brand);
    border-radius: 10px;
    display: grid;
    gap: 5px;
    padding: 10px 12px;
}

.ticket-admin-form {
    display: grid;
    gap: 10px;
    grid-template-columns: 180px minmax(0, 1fr) auto;
}

.ticket-admin-form label {
    display: grid;
    font-size: 13px;
    font-weight: 900;
    gap: 6px;
}

@media (max-width: 900px) {
    .account-dashboard-shell,
    .ticket-admin-form {
        grid-template-columns: 1fr;
    }

    .account-sidebar {
        position: static;
    }
}


.modern-form-card {
    display: grid;
    gap: 18px;
    padding: 22px;
}

.form-card-head {
    align-items: center;
    background: linear-gradient(135deg, #eef8f6, #fff7ed);
    border: 1px solid #dfe7ef;
    border-radius: 16px;
    display: flex;
    gap: 14px;
    padding: 14px;
}

.form-card-head h2,
.form-card-head p {
    margin: 0;
}

.form-card-head p {
    color: #64748b;
    font-weight: 750;
    margin-top: 4px;
}

.form-card-icon,
.field-icon {
    align-items: center;
    background: var(--brand);
    border-radius: 14px;
    color: #fff;
    display: inline-flex;
    flex: 0 0 auto;
    height: 46px;
    justify-content: center;
    width: 46px;
}

.form-card-icon svg,
.field-icon svg {
    fill: none;
    height: 22px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 22px;
}

.modern-form {
    display: grid;
    gap: 14px;
}

.modern-field {
    align-items: flex-start;
    background: #f8fafc;
    border: 1px solid #dfe7ef;
    border-radius: 16px;
    display: grid;
    gap: 14px;
    grid-template-columns: 46px minmax(0, 1fr);
    padding: 14px;
}

.modern-field:focus-within {
    background: #fff;
    border-color: color-mix(in srgb, var(--brand) 55%, #dfe7ef);
    box-shadow: 0 14px 30px rgba(11, 122, 117, .12);
}

.field-body {
    display: grid;
    gap: 7px;
}

.field-body b {
    color: #111827;
    font-size: 14px;
}

.field-body small {
    color: #64748b;
    font-weight: 750;
}

.modern-field input,
.modern-field textarea {
    background: #fff;
    border: 1px solid #dbe3ea;
    border-radius: 12px;
    font: inherit;
    font-weight: 800;
    outline: none;
    padding: 12px 13px;
    width: 100%;
}

.modern-field textarea {
    min-height: 150px;
    resize: vertical;
}

.modern-field input:focus,
.modern-field textarea:focus {
    border-color: var(--brand);
}

.form-action-row {
    align-items: center;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    padding-top: 14px;
}

.form-action-row .checkout-button {
    min-width: 190px;
}

.compact-profile-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compact-profile-form .modern-field:last-of-type,
.compact-profile-form .form-action-row {
    grid-column: 1 / -1;
}

@media (max-width: 760px) {
    .compact-profile-form,
    .modern-field {
        grid-template-columns: 1fr;
    }

    .form-action-row {
        align-items: stretch;
        flex-direction: column;
    }
}


.admin-workspace .admin-card,
.admin-workspace .clean-editor-section,
.admin-workspace .settings-panel,
.admin-workspace .admin-ticket-card,
.admin-workspace .category-editor-row {
    box-shadow: 0 14px 32px rgba(15, 23, 42, .07);
}

.admin-workspace .clean-editor-section,
.admin-workspace .settings-panel {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #dfe7ef;
    border-radius: 16px;
    padding: 16px;
}

.admin-workspace .clean-editor-section > strong,
.admin-workspace .settings-panel h3,
.admin-workspace .options-editor-head strong {
    align-items: center;
    color: #0f172a;
    display: flex;
    font-size: 15px;
    gap: 9px;
    margin: 0;
}

.admin-workspace .clean-editor-section > strong::before,
.admin-workspace .settings-panel h3::before,
.admin-workspace .options-editor-head strong::before {
    background: var(--brand);
    border-radius: 10px;
    color: #fff;
    content: "";
    display: inline-block;
    height: 28px;
    width: 28px;
}

.admin-workspace .admin-edit-form label,
.admin-workspace .ticket-admin-form label,
.admin-workspace .category-editor-row label {
    color: #111827;
    display: grid;
    font-size: 13px;
    font-weight: 950;
    gap: 8px;
}

.admin-workspace .admin-edit-form input,
.admin-workspace .admin-edit-form select,
.admin-workspace .admin-edit-form textarea,
.admin-workspace .ticket-admin-form select,
.admin-workspace .ticket-admin-form textarea,
.admin-workspace .category-editor-row input,
.admin-workspace .category-editor-row select {
    background: #fff;
    border: 1px solid #dbe3ea;
    border-radius: 12px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
    font: inherit;
    font-weight: 800;
    min-height: 44px;
    outline: none;
    padding: 11px 13px;
    width: 100%;
}

.admin-workspace .admin-edit-form textarea,
.admin-workspace .ticket-admin-form textarea {
    line-height: 1.45;
    min-height: 120px;
    resize: vertical;
}

.admin-workspace .admin-edit-form input:focus,
.admin-workspace .admin-edit-form select:focus,
.admin-workspace .admin-edit-form textarea:focus,
.admin-workspace .ticket-admin-form select:focus,
.admin-workspace .ticket-admin-form textarea:focus,
.admin-workspace .category-editor-row input:focus,
.admin-workspace .category-editor-row select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(11, 122, 117, .11);
}

.admin-workspace .editor-title-row,
.admin-workspace .product-editor-preview,
.admin-workspace .settings-brand-preview,
.admin-workspace .users-table-head {
    background: linear-gradient(135deg, #eef8f6, #fff7ed);
    border: 1px solid #dfe7ef;
    border-radius: 16px;
    padding: 14px;
}

.admin-workspace .editor-title-row {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.admin-workspace .editor-status,
.admin-workspace .users-table-head span {
    background: #e6f5f3;
    border: 1px solid #bfe5df;
    border-radius: 999px;
    color: var(--brand);
    font-size: 12px;
    font-weight: 950;
    padding: 7px 11px;
}

.admin-workspace .file-upload-field,
.admin-workspace .upload-drop {
    align-items: center;
    background: #fff;
    border: 1px dashed #95a7b8;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    min-height: 58px;
    padding: 12px;
    text-align: center;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.admin-workspace .file-upload-field:hover,
.admin-workspace .upload-drop:hover {
    background: #eef8f6;
    border-color: var(--brand);
    transform: translateY(-1px);
}

.admin-workspace .file-upload-field input,
.admin-workspace .upload-drop input {
    display: none;
}

.admin-workspace .option-editor-row {
    background: #fff;
    border: 1px solid #dfe7ef;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
    padding: 14px;
}

.admin-workspace .option-row-grid {
    align-items: end;
    gap: 12px;
}

.admin-workspace .ticket-admin-form {
    background: #f8fafc;
    border: 1px solid #dfe7ef;
    border-radius: 16px;
    padding: 14px;
}

.admin-workspace .ticket-admin-form .checkout-button,
.admin-workspace .editor-actions-row .checkout-button,
.admin-workspace #settingsForm > .checkout-button {
    border-radius: 13px;
    min-height: 48px;
}

.admin-workspace .settings-grid {
    align-items: stretch;
}

.admin-workspace .category-editor-row {
    background: #fff;
    border-radius: 16px;
    padding: 14px;
}

@media (max-width: 900px) {
    .admin-workspace .editor-title-row,
    .admin-workspace .ticket-card-head {
        align-items: stretch;
        flex-direction: column;
    }
}


.account-support-grid {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.support-table-card {
    background: #fff;
    border: 1px solid #dfe7ef;
    border-radius: 16px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, .08);
    min-width: 0;
    padding: 16px;
}

.support-table-title {
    align-items: center;
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
}

.support-table-title h2,
.support-table-title p {
    margin: 0;
}

.support-table-title p {
    color: #64748b;
    font-weight: 850;
    margin-top: 4px;
}

.support-title-icon {
    align-items: center;
    background: #d8fbf2;
    border: 1px solid #a8eadc;
    border-radius: 12px;
    color: var(--brand);
    display: inline-flex;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.support-title-icon svg,
.ticket-view-button svg {
    fill: none;
    height: 18px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.2;
    width: 18px;
}

.support-table-wrap {
    border: 1px solid #d8e1ea;
    border-radius: 14px;
    max-width: 100%;
    overflow: auto hidden;
    scrollbar-color: rgba(11, 122, 117, .55) transparent;
    scrollbar-width: thin;
}

.support-table-wrap::-webkit-scrollbar {
    height: 7px;
}

.support-table-wrap::-webkit-scrollbar-thumb {
    background: rgba(11, 122, 117, .55);
    border-radius: 999px;
}

.support-table,
.support-table-row {
    display: grid;
    gap: 14px;
    grid-template-columns: 40px 240px minmax(170px, 1fr) 190px 170px 170px 54px;
}

.support-table-head {
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
    font-weight: 950;
    padding: 13px 14px;
}

.support-table-row {
    align-items: center;
    background: #fff;
    border-top: 1px solid #dfe7ef;
    padding: 16px 14px;
}

.ticket-id,
.ticket-subject {
    color: #0f172a;
    font-weight: 950;
}

.ticket-user-cell {
    align-items: center;
    display: flex;
    gap: 10px;
    min-width: 0;
}

.ticket-user-cell strong,
.ticket-user-cell small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ticket-user-cell small,
.ticket-status-note {
    color: #64748b;
    font-size: 12px;
    font-weight: 850;
    margin-top: 5px;
}

.ticket-avatar {
    align-items: center;
    background: linear-gradient(135deg, #0f766e, #6366f1);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 950;
    height: 36px;
    justify-content: center;
    width: 36px;
}

.ticket-status-badge {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 12px;
    font-weight: 950;
    padding: 7px 11px;
}

.ticket-status-badge::before {
    background: currentColor;
    border-radius: 999px;
    content: "";
    height: 7px;
    margin-right: 6px;
    width: 7px;
}

.ticket-status-badge.is-answered {
    background: #dff8ef;
    color: #047857;
}

.ticket-status-badge.is-open {
    background: #eef2ff;
    color: #4f46e5;
}

.ticket-status-badge.is-closed {
    background: #fee2e2;
    color: #b91c1c;
}

.support-table-row time {
    color: #0f172a;
    font-size: 13px;
    font-weight: 850;
}

.ticket-view-button {
    align-items: center;
    background: #6366f1;
    border: 0;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.ticket-row-detail {
    background: #f8fafc;
    border: 1px solid #dfe7ef;
    border-radius: 14px;
    grid-column: 1 / -1;
    padding: 14px;
}

.support-detail-hero,
.support-detail-card {
    background: #fff;
    border: 1px solid #d8e1ea;
    border-radius: 16px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, .08);
    padding: 18px;
}

.support-detail-hero {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

.support-detail-hero h1,
.support-detail-hero p,
.support-detail-head h2 {
    margin: 0;
}

.support-detail-hero p {
    color: #475569;
    margin-top: 10px;
}

.support-detail-card {
    display: grid;
    gap: 18px;
}

.support-detail-head {
    align-items: flex-start;
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

.ticket-owner-line {
    align-items: center;
    color: #475569;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.ticket-owner-line small {
    font-weight: 850;
}

.support-detail-meta {
    align-items: flex-end;
    display: grid;
    gap: 8px;
    justify-items: end;
}

.support-detail-meta time {
    color: #475569;
    font-size: 12px;
    font-weight: 850;
}

.ticket-thread {
    display: grid;
    gap: 14px;
}

.ticket-thread-messages {
    display: grid;
    gap: 10px;
}

.ticket-message {
    border-radius: 14px;
    display: grid;
    gap: 5px;
    max-width: 76%;
    padding: 12px;
}

.ticket-message.is-user {
    background: #fff;
    border: 1px solid #dfe7ef;
}

.ticket-message.is-admin {
    background: #e6f5f3;
    border: 1px solid #bfe5df;
    margin-left: auto;
}

.ticket-message span,
.ticket-message small {
    color: #334155;
}

.ticket-message small {
    font-size: 11px;
    font-weight: 800;
}

.ticket-reply-form {
    align-items: end;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.ticket-admin-reply-form {
    grid-template-columns: 170px minmax(0, 1fr) auto;
}

.ticket-reply-form label {
    display: grid;
    font-size: 13px;
    font-weight: 950;
    gap: 7px;
}

.ticket-reply-form textarea,
.ticket-reply-form select {
    background: #fff;
    border: 1px solid #dbe3ea;
    border-radius: 12px;
    font: inherit;
    font-weight: 800;
    outline: none;
    padding: 11px 13px;
}

.ticket-muted-note,
.support-empty-row {
    color: #64748b;
    font-weight: 850;
    margin: 0;
    padding: 16px;
}

@media (max-width: 1180px) {
    .support-table-wrap {
        overflow-x: auto;
    }

    .support-table,
    .support-table-row {
        min-width: 1040px;
    }
}

@media (max-width: 760px) {
    .account-support-grid,
    .support-table-card,
    .support-detail-card,
    .support-detail-hero {
        max-width: 100%;
        min-width: 0;
        overflow: hidden;
    }

    .support-table-card {
        padding: 12px;
    }

    .support-table-title {
        align-items: flex-start;
    }

    .support-table,
    .support-table-row {
        min-width: 980px;
    }

    #supportTicketForm,
    #supportTicketForm .modern-field,
    #supportTicketForm .field-body,
    #supportTicketForm input,
    #supportTicketForm textarea {
        min-width: 0;
        width: 100%;
    }

    #supportTicketForm .form-action-row {
        align-items: stretch;
        flex-direction: column;
    }

    .ticket-reply-form,
    .ticket-admin-reply-form {
        grid-template-columns: 1fr;
    }

    .ticket-message {
        max-width: 100%;
    }

    .support-detail-hero,
    .support-detail-head {
        align-items: stretch;
        flex-direction: column;
    }

    .support-detail-meta {
        justify-items: start;
    }
}


.category-add-form {
    align-items: end;
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(220px, 1fr) 110px minmax(160px, .7fr) auto;
}

.category-add-form label,
.category-add-icons,
.category-row-icons {
    display: grid;
    gap: 8px;
}

.category-add-icons strong,
.category-row-icons strong {
    color: #0f172a;
    font-size: 12px;
    font-weight: 950;
}

.category-add-form input {
    background: #fff;
    border: 1px solid #dbe3ea;
    border-radius: 12px;
    font: inherit;
    font-weight: 850;
    min-height: 44px;
    padding: 11px 13px;
}

.category-icon-picker {
    align-items: center;
    display: flex;
    gap: 10px;
}

.icon-library-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(8, 38px);
    max-height: 142px;
    overflow: auto;
    padding-right: 4px;
}

.selected-category-icon {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #dbe3ea;
    border-radius: 12px;
    color: var(--brand);
    display: inline-flex;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.selected-category-icon svg {
    fill: none;
    height: 21px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.2;
    width: 21px;
}

.category-icon-modal[hidden] {
    display: none;
}

.category-icon-modal {
    align-items: center;
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 24px;
    position: fixed;
    z-index: 80;
}

.category-icon-backdrop {
    background: rgba(15, 23, 42, .46);
    inset: 0;
    position: absolute;
}

.category-icon-dialog {
    background: #fff;
    border: 1px solid #dbe3ea;
    border-radius: 18px;
    box-shadow: 0 28px 70px rgba(15, 23, 42, .22);
    display: grid;
    gap: 18px;
    max-height: min(720px, calc(100vh - 48px));
    max-width: 760px;
    overflow: hidden;
    padding: 18px;
    position: relative;
    width: min(100%, 760px);
}

.category-icon-head {
    align-items: flex-start;
    display: flex;
    gap: 14px;
    justify-content: space-between;
}

.category-icon-head h2,
.category-icon-head p {
    margin: 0;
}

.category-icon-head p {
    color: #64748b;
    margin-top: 7px;
}

.modal-icon-grid {
    grid-template-columns: repeat(auto-fill, minmax(94px, 1fr));
    max-height: 460px;
    overflow: auto;
    padding: 2px 6px 2px 2px;
}

.icon-choice {
    align-items: center;
    background: #fff;
    border: 1px solid #dbe3ea;
    border-radius: 11px;
    color: #475569;
    display: inline-flex;
    height: 38px;
    justify-content: center;
    padding: 0;
    width: 38px;
}

.modal-icon-grid .icon-choice {
    flex-direction: column;
    gap: 8px;
    height: 82px;
    width: 100%;
}

.modal-icon-grid .icon-choice span {
    font-size: 11px;
    font-weight: 950;
    line-height: 1.2;
    text-align: center;
}

.icon-choice svg {
    fill: none;
    height: 19px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 19px;
}

.icon-choice:hover,
.icon-choice.active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

@media (max-width: 1180px) {
    .category-add-form {
        grid-template-columns: 1fr 120px;
    }

    .category-add-icons,
    .category-add-form .checkout-button,
    #categoryAddMessage {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .category-add-form {
        grid-template-columns: 1fr;
    }

    .icon-library-grid {
        grid-template-columns: repeat(5, 38px);
    }

    .modal-icon-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}


.admin-dashboard-shell:has(.admin-login-screen) {
    display: grid;
    grid-template-columns: 1fr;
    place-items: center;
}

.account-shell:has(.account-login-screen) {
    display: grid;
    place-items: center;
}

.admin-login-screen {
    display: grid;
    min-height: calc(100vh - 260px);
    padding: 42px 0 72px;
    place-items: center;
    width: 100%;
}

.admin-login-card {
    background:
        linear-gradient(135deg, rgba(14, 132, 119, .08), rgba(255, 255, 255, 0) 44%),
        #fff;
    border: 1px solid #dfe7ef;
    border-radius: 24px;
    box-shadow: 0 28px 70px rgba(15, 23, 42, .12);
    display: grid;
    gap: 16px;
    max-width: 680px;
    overflow: hidden;
    padding: 38px;
    position: relative;
    width: min(100%, 680px);
}

.admin-login-glow {
    background: radial-gradient(circle, rgba(14, 132, 119, .2), transparent 64%);
    height: 220px;
    position: absolute;
    right: -90px;
    top: -110px;
    width: 220px;
}

.admin-login-icon {
    align-items: center;
    background: #0e8477;
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(14, 132, 119, .26);
    color: #fff;
    display: inline-flex;
    height: 58px;
    justify-content: center;
    width: 58px;
}

.admin-login-icon svg {
    height: 28px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    fill: none;
    width: 28px;
}

.admin-login-card h1 {
    font-size: clamp(34px, 4vw, 50px);
    line-height: 1.05;
    margin: 0;
}

.admin-login-card p {
    color: #516078;
    font-size: 16px;
    line-height: 1.65;
    margin: 0;
    max-width: 540px;
}

.admin-login-points {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-login-points span {
    background: #f4f8fb;
    border: 1px solid #dfe7ef;
    border-radius: 999px;
    color: #0f172a;
    font-size: 13px;
    font-weight: 800;
    padding: 9px 12px;
}

.admin-login-button {
    justify-self: start;
    min-width: 160px;
}

@media (max-width: 640px) {
    .admin-login-card {
        border-radius: 18px;
        padding: 24px;
    }

    .admin-login-button {
        width: 100%;
    }
}


@media (max-width: 420px) {
    .cart-line {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .cart-line-actions {
        grid-column: 1 / -1;
        grid-template-columns: 1fr auto auto;
        justify-items: stretch;
    }
}


@media (max-width: 620px) {
    .checkout-summary-row {
        grid-template-columns: 1fr;
    }

    .checkout-summary-meta {
        justify-content: stretch;
        grid-template-columns: minmax(0, 1fr) auto 30px;
        text-align: left;
        width: 100%;
    }

    .checkout-summary-quantity {
        width: 100%;
    }

    .checkout-summary-meta strong {
        font-size: 14px;
    }
}


.checkout-account-create {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid #b9e7e1;
    border-radius: 18px;
    background: linear-gradient(135deg, #f2fbf9, #fffaf2);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}

.checkout-account-create[hidden],
.checkout-password-field[hidden] {
    display: none !important;
}

.checkout-create-toggle {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.checkout-create-toggle input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: #0b8f86;
}

.checkout-create-toggle strong,
.checkout-password-field span {
    display: block;
    color: #111827;
}

.checkout-create-toggle small {
    display: block;
    margin-top: 3px;
    color: #65738a;
    line-height: 1.45;
}

.checkout-password-field {
    display: grid;
    background: #fff;
    border: 1px solid #dbe6e8;
    border-radius: 14px;
    gap: 8px;
    padding: 12px;
}

.checkout-password-field input {
    background: #f8fafc;
    border: 1px solid #d7e0e4;
    border-radius: 12px;
    color: var(--ink);
    min-height: 46px;
    outline: 0;
    padding: 0 14px;
}

.checkout-password-field input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(13, 142, 132, .12);
}

.payment-method-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.payment-method-card {
    align-items: center;
    background: #fff;
    border: 1px solid #dbe6e8;
    border-radius: 18px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .07);
    display: grid;
    gap: 8px;
    min-height: 210px;
    overflow: hidden;
    padding: 24px 0 0;
    text-align: center;
}

.payment-method-card strong {
    font-size: 15px;
}

.payment-method-card small {
    color: #64748b;
    font-size: 12px;
}

.payment-method-card em {
    background: #ffe4e6;
    border-radius: 999px;
    color: #e11d48;
    font-size: 12px;
    font-style: normal;
    font-weight: 950;
    justify-self: center;
    padding: 7px 10px;
}

.payment-method-card em.is-active {
    background: #dcfce7;
    color: #15803d;
}

.payment-method-logo {
    align-items: center;
    background: #dfe3ff;
    border-radius: 50%;
    color: #5b6cf6;
    display: inline-flex;
    height: 54px;
    justify-content: center;
    justify-self: center;
    overflow: hidden;
    width: 54px;
}

.payment-method-logo img {
    height: 100%;
    object-fit: contain;
    padding: 8px;
    width: 100%;
}

.payment-method-card footer {
    align-items: center;
    align-self: end;
    border-top: 1px solid #dbe6e8;
    display: flex;
    justify-content: space-around;
    margin-top: 10px;
    padding: 14px;
    width: 100%;
}

.payment-icon-button {
    align-items: center;
    background: transparent;
    border: 0;
    color: #64748b;
    cursor: pointer;
    display: inline-flex;
    height: 36px;
    justify-content: center;
    width: 36px;
}

.payment-icon-button.is-check {
    color: #16a34a;
}

.payment-icon-button svg {
    fill: none;
    height: 19px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.4;
    width: 19px;
}

.payment-editor-modal {
    inset: 0;
    position: fixed;
    z-index: 80;
}

.payment-modal-backdrop {
    background: rgba(15, 23, 42, .62);
    inset: 0;
    position: absolute;
}

.payment-editor-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 30px 90px rgba(15, 23, 42, .24);
    display: grid;
    gap: 18px;
    left: 50%;
    max-height: min(88vh, 760px);
    max-width: 680px;
    overflow: auto;
    padding: 24px;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(94vw, 680px);
}

.payment-editor-close {
    position: absolute;
    right: 18px;
    top: 18px;
}

.payment-editor-head {
    border-bottom: 1px solid #e5e7eb;
    display: grid;
    gap: 6px;
    padding-bottom: 14px;
}

.payment-editor-head h3 {
    font-size: 24px;
    margin: 0;
}

.payment-form-grid,
.payment-account-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.payment-form-grid .full,
.payment-account-grid .full {
    grid-column: 1 / -1;
}

.payment-form-grid label,
.payment-account-grid label {
    color: #0f172a;
    display: grid;
    font-size: 13px;
    font-weight: 900;
    gap: 8px;
}

.payment-form-grid input,
.payment-account-grid input {
    background: #f8fafc;
    border: 1px solid #d7e0e4;
    border-radius: 10px;
    min-height: 42px;
    padding: 0 12px;
}

.payment-upload-box,
.payment-account-row {
    background: #f8fafc;
    border: 1px dashed #76c9c1;
    border-radius: 16px;
    display: grid;
    gap: 12px;
    padding: 14px;
}

.payment-bank-section,
.payment-account-list {
    display: grid;
    gap: 12px;
}

.payment-api-section {
    background: #f8fafc;
    border: 1px dashed #9bd8d2;
    border-radius: 16px;
    display: grid;
    gap: 14px;
    padding: 14px;
}

.payment-api-section .payment-bank-head small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.payment-bank-head,
.payment-account-row header {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.payment-account-row header label {
    align-items: center;
    color: #0f766e;
    display: inline-flex;
    font-size: 13px;
    font-weight: 900;
    gap: 6px;
    margin-left: auto;
}

.payment-account-remove {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-radius: 999px;
    color: #e11d48;
    cursor: pointer;
    font-weight: 950;
    height: 32px;
    width: 32px;
}

.payment-status-select {
    max-width: 220px;
}

.cart-discount-row,
.campaign-summary-row {
    color: #0f766e;
}

.cart-discount-row {
    align-items: center;
    border-top: 1px solid #e5e7eb;
    display: flex;
    font-size: 14px;
    font-weight: 900;
    justify-content: space-between;
    padding-top: 12px;
}

.coupon-box {
    background: linear-gradient(135deg, #ffffff, #eef7f6);
    border: 1px solid #cfe7e4;
    border-radius: 16px;
    display: grid;
    gap: 8px;
    margin-top: 12px;
    padding: 12px;
}

.checkout-summary-box .coupon-box {
    display: grid !important;
    width: 100%;
}

.coupon-box-head {
    align-items: center !important;
    display: flex !important;
    gap: 8px !important;
    justify-content: flex-start !important;
}

.coupon-icon {
    align-items: center !important;
    background: #0f8a80;
    border-radius: 10px;
    color: #fff;
    display: inline-flex !important;
    height: 32px;
    justify-content: center !important;
    width: 32px;
}

.coupon-icon svg {
    fill: none;
    height: 17px;
    color: #fff;
    stroke: #fff;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.2;
    width: 17px;
}

.coupon-box label {
    color: #0f172a;
    font-size: 13px;
    font-weight: 950;
}

.coupon-box-control {
    background: #fff;
    border: 1px solid #d7e0e4;
    border-radius: 14px;
    display: grid;
    gap: 6px;
    grid-template-columns: minmax(0, 1fr) auto auto;
    padding: 5px;
}

.checkout-summary-box .coupon-box-control {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto auto;
    justify-content: stretch !important;
    width: 100%;
}

.checkout-summary-box .coupon-box-control > input[name="couponCode"] {
    appearance: none !important;
    background: #fff !important;
    border: 0 !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    color: #0f172a !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    min-height: 42px !important;
    min-width: 0 !important;
    outline: 0 !important;
    padding: 0 12px !important;
    width: 100% !important;
}

.checkout-summary-box .coupon-box-control > button[type="submit"] {
    appearance: none !important;
    align-items: center !important;
    background: #0f8a80 !important;
    border: 0 !important;
    border-radius: 10px !important;
    box-shadow: 0 10px 20px rgba(15, 138, 128, .18) !important;
    color: #fff !important;
    display: inline-flex !important;
    font-size: 13px !important;
    font-weight: 950 !important;
    justify-content: center !important;
    min-height: 42px !important;
    padding: 0 16px !important;
    white-space: nowrap !important;
}

.checkout-summary-box .coupon-box-control > .coupon-clear {
    appearance: none !important;
    border: 1px solid #fecdd3 !important;
}

.coupon-box input {
    background: transparent;
    border: 0;
    border-radius: 10px;
    color: #0f172a;
    font-weight: 900;
    min-height: 40px;
    padding: 0 12px;
    text-transform: uppercase;
}

.coupon-box input:focus {
    outline: 2px solid rgba(15, 138, 128, .14);
}

.coupon-box button {
    background: #0f8a80;
    border: 0;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    font-weight: 950;
    min-height: 40px;
    padding: 0 13px;
}

.coupon-box .coupon-clear {
    align-items: center;
    background: #fff1f2;
    color: #e11d48;
    display: inline-flex;
    font-size: 18px;
    justify-content: center;
    min-width: 40px;
    padding: 0;
}

.coupon-box small {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.campaign-summary-badge {
    align-items: center;
    align-self: flex-start;
    background: linear-gradient(135deg, #fff7ed, #ecfeff);
    border: 1px solid #fed7aa;
    border-radius: 999px;
    color: #c2410c;
    display: inline-flex;
    flex-wrap: wrap;
    font-size: 12px;
    font-weight: 950;
    gap: 5px;
    line-height: 1.25;
    margin-top: 12px;
    padding: 7px 10px;
}

.campaign-summary-badge [data-campaign-countdown],
.detail-campaign-note [data-campaign-countdown] {
    color: #0f766e;
    font-style: normal;
}

.campaign-minimum-prompt {
    align-items: center;
    background: linear-gradient(135deg, #fff7ed, #fff1f2);
    border: 1px solid #fed7aa;
    border-radius: 16px;
    color: #9a3412;
    display: grid;
    gap: 3px 10px;
    grid-template-columns: auto minmax(0, 1fr);
    margin-top: 12px;
    padding: 10px 12px;
}

.checkout-summary-box .campaign-minimum-prompt {
    align-items: center !important;
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr);
    justify-content: stretch !important;
    width: 100%;
}

.campaign-minimum-prompt strong {
    color: #ea580c;
    font-size: 14px;
    font-weight: 950;
    white-space: nowrap;
}

.campaign-minimum-prompt span {
    color: #9a3412;
    display: block !important;
    font-size: 13px;
    font-weight: 900;
    min-width: 0;
}

.campaign-minimum-prompt em {
    color: #0f766e;
    display: block !important;
    font-size: 12px;
    font-style: normal;
    font-weight: 850;
    grid-column: 1 / -1;
}

.campaign-editor-card,
.campaign-form,
.campaign-picker-grid,
.campaign-card,
.campaign-form-actions {
    display: grid;
    gap: 16px;
}

.campaign-form-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.campaign-form-grid label,
.campaign-picker-grid section {
    color: #0f172a;
    display: grid;
    font-size: 13px;
    font-weight: 950;
    gap: 8px;
}

.campaign-form-grid input,
.campaign-form-grid select {
    background: #f8fafc;
    border: 1px solid #d7e0e4;
    border-radius: 12px;
    min-height: 44px;
    padding: 0 12px;
}

.bulk-price-card,
.bulk-price-panel {
    display: grid;
    gap: 16px;
}

.bulk-price-panel h3 {
    margin: 0;
}

.bulk-price-preview {
    background: linear-gradient(135deg, #eef7f6, #fff7ed);
    border: 1px solid #b9e7e1;
    border-radius: 16px;
    display: grid;
    gap: 5px;
    padding: 14px;
}

.bulk-price-preview strong {
    color: var(--brand);
    font-size: 18px;
}

.bulk-price-preview span {
    color: #64748b;
    font-weight: 850;
}

.product-check-list label small {
    color: var(--brand);
    font-size: 12px;
    font-weight: 950;
    margin-left: auto;
    white-space: nowrap;
}

.campaign-picker-grid {
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
}

.campaign-picker-grid section {
    background: #f8fafc;
    border: 1px solid #dbe6e8;
    border-radius: 16px;
    padding: 14px;
}

.campaign-picker-head {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.campaign-picker-head button {
    background: #eef7f6;
    border: 1px solid #b9e7e1;
    border-radius: 999px;
    color: var(--brand);
    font-size: 12px;
    font-weight: 950;
    min-height: 32px;
    padding: 0 12px;
    white-space: nowrap;
}

.campaign-picker-head button:hover {
    background: var(--brand);
    color: #fff;
}

.campaign-check-list {
    display: grid;
    gap: 8px;
    max-height: 230px;
    overflow: auto;
    padding-right: 6px;
}

.campaign-check-list label {
    align-items: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    display: flex;
    gap: 8px;
    min-height: 38px;
    padding: 8px 10px;
}

.campaign-card-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.campaign-card header,
.campaign-card footer,
.campaign-card-meta,
.campaign-form-actions {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.campaign-card footer {
    border-top: 1px solid #e5e7eb;
    justify-content: flex-start;
    margin-top: 4px;
    padding-top: 14px;
}

.campaign-form-actions .checkout-button {
    min-width: min(320px, 100%);
}

.campaign-card h3 {
    font-size: 20px;
    margin: 0;
}

.campaign-card-meta {
    align-items: stretch;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.campaign-card-meta span {
    background: #eef7f6;
    border: 1px solid #cfe7e4;
    border-radius: 999px;
    color: #0f766e;
    font-size: 12px;
    font-weight: 950;
    padding: 8px 10px;
}

.campaign-card.is-passive {
    opacity: .72;
}

.campaign-action-button {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #d7e0e4;
    border-radius: 999px;
    color: #0f172a;
    cursor: pointer;
    display: inline-flex;
    font-size: 13px;
    font-weight: 950;
    gap: 7px;
    min-height: 38px;
    padding: 0 13px;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}

.campaign-action-button:hover {
    background: #eef7f6;
    border-color: #9bd8d2;
    color: #0f766e;
    transform: translateY(-1px);
}

.campaign-action-button.danger {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #e11d48;
    margin-left: auto;
}

.campaign-action-button.danger:hover {
    background: #ffe4e6;
    border-color: #fda4af;
    color: #be123c;
}

.campaign-action-button svg {
    fill: none;
    height: 16px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.3;
    width: 16px;
}

.product-media,
.detail-visual {
    position: relative;
}

.campaign-product-badge {
    align-items: center;
    background: linear-gradient(135deg, #f97316, #ef4444);
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 999px;
    box-shadow: 0 14px 30px rgba(239, 68, 68, .22);
    color: #fff;
    display: inline-flex;
    font-size: 12px;
    font-weight: 950;
    left: 14px;
    line-height: 1;
    padding: 9px 11px;
    position: absolute;
    top: 14px;
    white-space: nowrap;
    z-index: 4;
}

.product-media .campaign-product-badge {
    border-radius: 999px;
    box-shadow: 0 10px 22px rgba(239, 68, 68, .2);
    display: inline-flex;
    font-size: 11px;
    height: auto;
    letter-spacing: 0;
    min-height: 0;
    padding: 7px 9px;
    width: auto;
}

.dealer-product-badge,
.product-media .dealer-product-badge {
    align-items: center;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    box-shadow: none;
    color: #ea580c;
    display: inline-flex;
    font-size: 11px;
    font-style: normal;
    font-weight: 950;
    height: auto;
    justify-self: auto;
    left: 12px;
    line-height: 1;
    min-height: 0;
    padding: 5px 8px;
    place-items: initial;
    position: absolute;
    top: 12px;
    white-space: nowrap;
    width: auto;
    z-index: 5;
}

.detail-visual .campaign-product-badge.detail-campaign-badge {
    align-items: center;
    background: linear-gradient(135deg, #f97316, #ef4444);
    border-radius: 999px;
    box-shadow: 0 12px 26px rgba(239, 68, 68, .22);
    display: inline-flex;
    font-size: 12px;
    font-weight: 950;
    height: auto;
    left: 18px;
    letter-spacing: 0;
    line-height: 1;
    min-height: 0;
    padding: 8px 11px;
    place-items: initial;
    position: absolute;
    top: 18px;
    white-space: nowrap;
    width: auto;
    z-index: 4;
}

.campaign-inline-badge {
    align-self: flex-start;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    color: #ea580c;
    display: inline-flex;
    font-size: 12px;
    font-weight: 950;
    margin-top: 6px;
    padding: 6px 9px;
}

.detail-campaign-note {
    align-items: center;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 14px;
    color: #9a3412;
    display: grid;
    gap: 10px;
    grid-column: 1 / -1;
    grid-template-columns: auto minmax(0, 1fr);
    padding: 10px 12px;
}

.detail-campaign-note strong {
    color: #ea580c;
    grid-row: 1 / span 2;
    white-space: nowrap;
}

.detail-campaign-note span {
    color: #9a3412;
    font-size: 13px;
    font-weight: 850;
}

.detail-campaign-note [data-campaign-countdown] {
    display: block;
    font-size: 13px;
    font-weight: 850;
    grid-column: 2;
    margin-top: -4px;
}

@media (max-width: 720px) {
    .payment-form-grid,
    .payment-account-grid,
    .campaign-form-grid,
    .campaign-picker-grid,
    .campaign-card-grid {
        grid-template-columns: 1fr;
    }

    .campaign-product-badge {
        font-size: 11px;
        left: 12px;
        padding: 8px 10px;
        top: 12px;
    }

    .product-media .campaign-product-badge {
        font-size: 10px;
        left: 10px;
        padding: 6px 8px;
        top: 10px;
    }

    .detail-visual .campaign-product-badge.detail-campaign-badge {
        font-size: 11px;
        height: auto;
        left: 12px;
        padding: 7px 9px;
        top: 12px;
        width: auto;
    }

    .detail-campaign-note {
        align-items: flex-start;
        grid-template-columns: 1fr;
    }

    .detail-campaign-note strong,
    .detail-campaign-note [data-campaign-countdown] {
        grid-column: 1;
        grid-row: auto;
    }

    .campaign-card footer {
        align-items: stretch;
        flex-direction: column;
    }

.campaign-action-button,
.campaign-action-button.danger {
        justify-content: center;
        margin-left: 0;
        width: 100%;
    }

    .coupon-box-control {
        grid-template-columns: 1fr;
    }

    .checkout-summary-box .coupon-box-control {
        grid-template-columns: 1fr;
    }

    .checkout-summary-box .coupon-box-control > button[type="submit"] {
        width: 100% !important;
    }

    .campaign-summary-badge {
        border-radius: 14px;
        width: 100%;
    }

    .campaign-minimum-prompt {
        align-items: flex-start;
        grid-template-columns: 1fr;
    }

    .checkout-summary-box .campaign-minimum-prompt {
        align-items: flex-start !important;
        grid-template-columns: 1fr;
    }

    .campaign-minimum-prompt em {
        grid-column: 1;
        white-space: normal;
    }
}

@media (max-width: 620px) {
    .order-toast {
        bottom: 14px;
        border-radius: 16px;
        gap: 8px;
        grid-template-columns: 50px minmax(0, 1fr) 24px;
        left: 8px;
        max-width: calc(100vw - 84px);
        padding: 8px 9px;
        width: calc(100vw - 84px);
    }

    .order-toast-media {
        border-radius: 13px;
        height: 50px;
        width: 50px;
    }

    .order-toast-media img {
        max-height: 36px;
        max-width: 36px;
    }

    .order-toast-media span {
        height: 36px;
        width: 36px;
    }

    .order-toast-copy span {
        font-size: 10px;
    }

    .order-toast-copy strong {
        font-size: 12px;
        line-height: 1.2;
    }

    .order-toast button {
        border-radius: 9px;
        font-size: 16px;
        height: 24px;
        width: 24px;
    }

    .header-actions:has(.guest-actions:not([hidden])) {
        align-items: center;
        display: flex;
        gap: 8px;
        justify-content: center;
    }

    .header-actions:has(.guest-actions:not([hidden])) .guest-actions {
        display: flex;
        flex: 0 0 auto;
        gap: 8px;
        width: auto;
    }

    .header-actions:has(.guest-actions:not([hidden])) .user-actions {
        display: none;
    }

    .header-actions:has(.guest-actions:not([hidden])) .guest-actions a,
    .header-actions:has(.guest-actions:not([hidden])) .guest-actions button,
    .header-actions:has(.guest-actions:not([hidden])) .cart-button,
    .header-actions:has(.user-actions:not([hidden])) {
        align-items: center;
    }

    .header-actions:has(.guest-actions:not([hidden])) .guest-actions a,
    .header-actions:has(.guest-actions:not([hidden])) .guest-actions button,
    .header-actions:has(.guest-actions:not([hidden])) .cart-button {
        border-radius: 14px;
        display: inline-flex;
        flex: 0 0 46px;
        font-size: 0;
        height: 46px;
        justify-content: center;
        min-height: 46px;
        padding: 0;
        width: 46px;
    }

    .header-actions:has(.guest-actions:not([hidden])) .guest-actions a span,
    .header-actions:has(.guest-actions:not([hidden])) .guest-actions button span {
        display: none;
    }

    .header-actions:has(.guest-actions:not([hidden])) .button-with-icon svg,
    .header-actions:has(.guest-actions:not([hidden])) .cart-button svg {
        height: 20px;
        width: 20px;
    }

    .header-actions:has(.guest-actions:not([hidden])) .cart-button {
        position: relative;
    }

    .header-actions:has(.guest-actions:not([hidden])) .cart-button span {
        display: inline-flex;
        font-size: 18px;
    }

    .header-actions:has(.guest-actions:not([hidden])) .cart-button strong {
        font-size: 11px;
        height: 20px;
        min-width: 20px;
        padding: 0 5px;
        position: absolute;
        right: -4px;
        top: -5px;
    }

    .header-actions:has(.user-actions:not([hidden])) {
        align-items: center;
        display: flex;
        gap: 8px;
        justify-content: center;
    }

    .header-actions:has(.user-actions:not([hidden])) .guest-actions {
        display: none;
    }

    .header-actions:has(.user-actions:not([hidden])) .user-actions {
        display: flex;
        flex: 0 0 auto;
        gap: 8px;
        width: auto;
    }

    .header-actions:has(.user-actions:not([hidden])) .user-pill {
        display: none;
    }

    .header-actions:has(.user-actions:not([hidden])) .account-open-button,
    .header-actions:has(.user-actions:not([hidden])) .admin-open-button,
    .header-actions:has(.user-actions:not([hidden])) #logoutButton,
    .header-actions:has(.user-actions:not([hidden])) .cart-button {
        align-items: center;
        border-radius: 14px;
        display: inline-flex;
        flex: 0 0 46px;
        font-size: 0;
        height: 46px;
        justify-content: center;
        min-height: 46px;
        padding: 0;
        width: 46px;
    }

    .header-actions:has(.user-actions:not([hidden])) .account-open-button span,
    .header-actions:has(.user-actions:not([hidden])) .admin-open-button span,
    .header-actions:has(.user-actions:not([hidden])) #logoutButton span {
        display: none;
    }

    .header-actions:has(.user-actions:not([hidden])) .button-with-icon svg,
    .header-actions:has(.user-actions:not([hidden])) .cart-button svg {
        height: 20px;
        width: 20px;
    }

    .header-actions:has(.user-actions:not([hidden])) .cart-button {
        position: relative;
    }

    .header-actions:has(.user-actions:not([hidden])) .cart-button span {
        display: inline-flex;
        font-size: 18px;
    }

    .header-actions:has(.user-actions:not([hidden])) .cart-button strong {
        font-size: 11px;
        height: 20px;
        min-width: 20px;
        padding: 0 5px;
        position: absolute;
        right: -4px;
        top: -5px;
    }

    .header-actions.is-guest,
    .header-actions.is-authenticated {
        align-items: center;
        display: flex;
        gap: 8px;
        justify-content: space-between;
    }

    .header-actions.is-guest .guest-actions,
    .header-actions.is-authenticated .user-actions {
        display: flex;
        flex: 0 0 auto;
        gap: 8px;
        width: auto;
    }

    .header-actions.is-guest .guest-actions,
    .header-actions.is-authenticated .user-actions {
        justify-content: flex-start;
        margin-right: auto;
    }

    .header-actions.is-guest .cart-button,
    .header-actions.is-authenticated .cart-button {
        margin-left: auto;
    }

    .header-actions.is-guest .user-actions,
    .header-actions.is-authenticated .guest-actions,
    .header-actions.is-authenticated .user-pill {
        display: none;
    }

    .header-actions.is-guest .guest-actions a,
    .header-actions.is-guest .guest-actions button,
    .header-actions.is-guest .cart-button,
    .header-actions.is-authenticated .account-open-button,
    .header-actions.is-authenticated .admin-open-button,
    .header-actions.is-authenticated #logoutButton,
    .header-actions.is-authenticated .cart-button {
        align-items: center;
        border-radius: 14px;
        display: inline-flex;
        flex: 0 0 46px;
        font-size: 0;
        height: 46px;
        justify-content: center;
        min-height: 46px;
        padding: 0;
        position: relative;
        width: 46px;
    }

    .header-actions.is-guest .guest-actions a span,
    .header-actions.is-guest .guest-actions button span,
    .header-actions.is-authenticated .account-open-button span,
    .header-actions.is-authenticated .admin-open-button span,
    .header-actions.is-authenticated #logoutButton span {
        display: none;
    }

    .header-actions.is-guest .button-with-icon svg,
    .header-actions.is-authenticated .button-with-icon svg,
    .header-actions.is-guest .cart-button svg,
    .header-actions.is-authenticated .cart-button svg {
        height: 20px;
        width: 20px;
    }

    .header-actions.is-guest .cart-button span,
    .header-actions.is-authenticated .cart-button span {
        display: inline-flex;
        font-size: 18px;
    }

    .header-actions.is-guest .cart-button strong,
    .header-actions.is-authenticated .cart-button strong {
        font-size: 11px;
        height: 20px;
        min-width: 20px;
        padding: 0 5px;
        position: absolute;
        right: -4px;
        top: -5px;
    }

}

@media (max-width: 620px) {
    .catalog-head h1 {
        font-size: clamp(19px, 6.2vw, 24px);
        line-height: 1.08;
        max-width: 100%;
        overflow-wrap: normal;
        white-space: normal;
    }

    .catalog-head h1 .title-keep {
        display: inline-block;
        white-space: nowrap;
    }
}
