* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


html,
body {
    width: 100%;
    min-height: 100%;
}


body {

    font-family:
        Arial,
        "Segoe UI",
        sans-serif;

    background:
        radial-gradient(
            circle at 50% 20%,
            rgba(40, 50, 70, 0.12),
            transparent 35%
        ),
        #090b10;

    color: #ffffff;

    min-height: 100vh;

    overflow-x: hidden;

    cursor: default;
}


/* =====================================================
   HEADER
===================================================== */

.topbar {

    height: 75px;

    background: #10131a;

    border-bottom:
        1px solid #252a35;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding:
        0 30px;

    position: relative;

    z-index: 50;

}


.logo {

    font-size: 22px;

    font-weight: 900;

    letter-spacing: 1px;

}


.header-title {

    font-size: 20px;

    font-weight: 700;

}


.header-actions {

    display: flex;

    align-items: center;

    gap: 8px;

}


.account-btn,
.header-icon-button,
.country-button {

    border:
        1px solid #2a303c;

    background: #181d27;

    color: white;

    cursor: pointer;

    transition:
        0.2s ease;

}


.account-btn:hover,
.header-icon-button:hover,
.country-button:hover {

    background: #222936;

    border-color: #56657c;

    transform:
        translateY(-1px);

}


.account-btn {

    padding:
        10px 15px;

    border-radius: 10px;

    font-size: 13px;

}


.header-icon-button {

    width: 42px;
    height: 42px;

    border-radius: 10px;

    position: relative;

    font-size: 17px;

}


.country-button {

    height: 42px;

    padding:
        0 10px;

    border-radius: 10px;

    display: flex;

    align-items: center;

    gap: 8px;

    font-weight: 800;

    font-size: 12px;

}


.country-flag-svg {

    width: 27px;
    height: 18px;

    display: block;

    border-radius: 2px;

    overflow: hidden;

    box-shadow:
        0 0 0 1px
        rgba(255,255,255,0.15);

}


.cart-count {

    position: absolute;

    top: -6px;

    left: -6px;

    min-width: 18px;

    height: 18px;

    padding:
        0 4px;

    border-radius: 20px;

    background: #ffffff;

    color: #090b10;

    font-size: 10px;

    font-weight: 900;

    display: flex;

    align-items: center;

    justify-content: center;

}


/* =====================================================
   MAIN
===================================================== */

.main-layout {

    max-width: 1600px;

    margin: auto;

    padding: 25px;

    display: grid;

    grid-template-columns:
        300px
        minmax(350px, 1fr)
        300px;

    gap: 25px;

}


/* =====================================================
   PANELS
===================================================== */

.side-panel {

    background: #10131a;

    border:
        1px solid #242936;

    border-radius: 18px;

    padding: 18px;

}


.panel-header {

    margin-bottom: 12px;

}


.panel-header h2 {

    margin-bottom: 12px;

    font-size: 20px;

}


.panel-header select {

    width: 100%;

    margin-bottom: 8px;

}


/* =====================================================
   DEVICE SEARCH
===================================================== */

.device-search-wrapper {

    position: relative;

    width: 100%;

    z-index: 30;

}


.device-search {

    height: 42px;

    display: flex;

    align-items: center;

    gap: 8px;

    background: #181d27;

    border:
        1px solid #303747;

    border-radius: 9px;

    padding:
        0 11px;

    margin-bottom: 8px;

    transition:
        0.18s ease;

}


.device-search:focus-within {

    border-color:
        #64748a;

    box-shadow:
        0 0 0 3px
        rgba(100,140,180,0.08);

}


.device-search span {

    opacity: 0.6;

}


.device-search input {

    width: 100%;

    height: 100%;

    border: none;

    outline: none;

    background: transparent;

    color: white;

    font-family: inherit;

    font-size: 12px;

}


.device-search input::placeholder {

    color: #687284;

}


/* =====================================================
   AUTOCOMPLETE
===================================================== */

.device-suggestions {

    position: absolute;

    top: 47px;

    right: 0;

    left: 0;

    background:
        #141922;

    border:
        1px solid #303847;

    border-radius: 11px;

    overflow: hidden;

    box-shadow:
        0 18px 45px
        rgba(0,0,0,0.42);

    display: none;

    max-height: 280px;

    overflow-y: auto;

}


.device-suggestions.active {

    display: block;

}


.device-suggestion {

    width: 100%;

    border: none;

    border-bottom:
        1px solid #242b37;

    background:
        transparent;

    color: white;

    padding:
        10px 12px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    cursor: pointer;

    text-align: right;

    font-family: inherit;

}


.device-suggestion:last-child {

    border-bottom: none;

}


.device-suggestion:hover,
.device-suggestion.active {

    background:
        #202735;

}


.device-suggestion-name {

    font-size: 12px;

    font-weight: 700;

}


.device-suggestion-family {

    color: #7e899a;

    font-size: 10px;

}


.device-suggestion-match {

    color: #9edfff;

    font-weight: 900;

}


.device-result {

    background: #151922;

    border:
        1px solid #252c38;

    color: #8d97a7;

    border-radius: 9px;

    padding:
        8px 10px;

    margin-bottom: 10px;

    font-size: 11px;

}


#case-model:disabled {

    opacity: 0.55;

    cursor: not-allowed;

}


/* =====================================================
   SELECT
===================================================== */

select {

    background: #181d27;

    color: white;

    border:
        1px solid #303747;

    padding:
        10px 12px;

    border-radius: 9px;

    outline: none;

    cursor: pointer;

}


/* =====================================================
   PRODUCTS
===================================================== */

.product-list {

    display: flex;

    flex-direction: column;

    gap: 10px;

    max-height: 720px;

    overflow-y: auto;

}


.product-card {
    position: relative;

    background: #151922;

    border:
        1px solid #252c38;

    border-radius: 13px;

    padding: 10px;

    display: flex;

    align-items: center;

    gap: 12px;

    cursor: pointer;

    transition:

        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease;

}


.product-card:hover {

    transform:
        translateY(-2px);

    background: #191e29;

}


.product-card.selected {

    border-color: #66748c;

    background: #1c222e;

}


.product-card.hidden-by-filter {

    display: none !important;

}

.product-new-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(59, 130, 246, .95);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(0,0,0,.22);
    pointer-events: none;
}

.preview-nav .nav-arrow:disabled {
    opacity: .28;
    filter: grayscale(1);
    cursor: not-allowed;
    pointer-events: none;
}

/* Products hidden from the admin panel are also removed from the customer catalog. */
.product-card.admin-product-hidden,
.product-card[data-admin-hidden="true"] {
    display: none !important;
}


/* =====================================================
   PRODUCT IMAGE
===================================================== */

.product-image {

    width: 65px;

    height: 65px;

    flex-shrink: 0;

    border-radius: 10px;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

    background: #0d1016;

    font-size: 35px;

}


.product-image img {

    width: 100%;
    height: 100%;

    object-fit: contain;

    display: block;

}


.emoji-product {

    font-size: 34px;

}


.blue-case {

    background:
        linear-gradient(
            145deg,
            #1252b5,
            #061d49
        );

}


.purple-case {

    background:
        linear-gradient(
            145deg,
            #7628bd,
            #27073f
        );

}


.gold-case {

    background:
        linear-gradient(
            145deg,
            #e7b72c,
            #6d4800
        );

}


.red-case {

    background:
        linear-gradient(
            145deg,
            #e52828,
            #530808
        );

}


.pink-case {

    background:
        linear-gradient(
            145deg,
            #e83c9c,
            #641239
        );

}


.cyan-case {

    background:
        linear-gradient(
            145deg,
            #21d9e8,
            #06464e
        );

}


/* =====================================================
   PRODUCT INFO
===================================================== */

.product-info {

    flex: 1;

    min-width: 0;

}


.product-name {

    font-size: 15px;

    font-weight: 700;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

    margin-bottom: 9px;

}


.product-bottom {

    display: flex;

    align-items: center;

    justify-content: space-between;

}


.price {

    font-size: 14px;

    color: #d7dce5;

}


/* =====================================================
   DOTS
===================================================== */

.rarity-dot {

    width: 11px;
    height: 11px;

    border-radius: 50%;

    display: inline-block;

}


.rarity-dot.green {
    background: #35d36b;
}

.rarity-dot.blue {
    background: #3b82f6;
}

.rarity-dot.purple {
    background: #a855f7;
}

.rarity-dot.yellow {
    background: #f5c542;
}

.rarity-dot.red {
    background: #ef4444;
}

.rarity-dot.pink {
    background: #ec4899;
}

.rarity-dot.cyan {
    background: #22d3ee;
}


/* =====================================================
   PREVIEW
===================================================== */

.preview-section {

    background: transparent;

    border: none;

    padding: 5px;

    display: flex;

    flex-direction: column;

    align-items: center;

    min-width: 0;

}


.preview-header {

    width: 100%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 18px;

}


.preview-header h1 {

    font-size: 22px;

}


.device-name {

    font-size: 13px;

    color: #9ca5b5;

    background: #181d27;

    padding:
        8px 12px;

    border-radius: 8px;

}


/* =====================================================
   PURCHASE
===================================================== */

.purchase-type {

    width: 100%;

    margin-bottom: 15px;

}


.purchase-type h2 {

    font-size: 15px;

    color: #aeb6c4;

    margin-bottom: 9px;

}


.purchase-options {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 8px;

}


.purchase-option {

    background: #151922;

    border:
        1px solid #292f3b;

    color: white;

    border-radius: 10px;

    padding:
        10px 6px;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    font-size: 12px;

    transition:
        0.2s ease;

}


.purchase-option:hover {

    background: #1d2330;

}


.purchase-option.active {

    border-color: #76859c;

    background: #202735;

}


/* =====================================================
   PREVIEW STAGE
===================================================== */

.preview-stage {

    width: 100%;

    min-height: 510px;

    display: grid;

    grid-template-columns:
        58px 1fr 58px;

    align-items: center;

    justify-items: center;

}


.preview-nav {

    width: 48px;

    padding:
        8px 5px;

    border:
        1px solid #292f3b;

    background:
        linear-gradient(
            180deg,
            rgba(24,29,39,0.95),
            rgba(15,18,25,0.95)
        );

    border-radius: 18px;

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 8px;

}


/* Compact category filter above each preview navigation arrow */
.nav-category-filter {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 30;
}

.nav-filter-trigger {
    width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 5px;
    border: 1px solid rgba(155,180,220,.2);
    border-radius: 10px;
    background: linear-gradient(145deg, rgba(32,40,55,.96), rgba(18,23,33,.96));
    color: #dfeaff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    font: 800 8px/1.1 inherit;
    transition: .18s ease;
    box-shadow: 0 5px 14px rgba(0,0,0,.18);
}

.nav-filter-trigger:hover,
.nav-filter-trigger[aria-expanded="true"] {
    border-color: rgba(120,180,255,.65);
    background: linear-gradient(145deg, rgba(38,52,76,.98), rgba(18,25,39,.98));
    transform: translateY(-1px);
}

.nav-filter-trigger-icon {
    width: 18px;
    height: 18px;
    display: block;
    border-radius: 50%;
    flex: 0 0 18px;
    background: linear-gradient(145deg,#ffffff,#68758a);
    box-shadow: inset 2px 2px 4px rgba(255,255,255,.48), inset -2px -2px 4px rgba(0,0,0,.22), 0 2px 7px rgba(0,0,0,.22);
}

.nav-filter-selected-dot.all {
    background: conic-gradient(#aeb8c8 0 14%, #39d98a 14% 28%, #43a7ff 28% 42%, #a56bff 42% 57%, #ffd34d 57% 71%, #ff5f6d 71% 85%, #65f5ff 85% 100%);
}
.nav-filter-selected-dot.gray { background: linear-gradient(145deg,#d9e0ea,#7b8798); }
.nav-filter-selected-dot.green { background: linear-gradient(145deg,#72f7a7,#16a66a); }
.nav-filter-selected-dot.blue { background: linear-gradient(145deg,#78c8ff,#2876e8); }
.nav-filter-selected-dot.purple { background: linear-gradient(145deg,#d39bff,#7740d9); }
.nav-filter-selected-dot.gold { background: linear-gradient(145deg,#fff09a,#d79b16); }
.nav-filter-selected-dot.red { background: linear-gradient(145deg,#ff8a94,#d9293d); }
.nav-filter-selected-dot.diamond { background: linear-gradient(145deg,#ffffff,#62f4ff 42%,#b47cff 72%,#ffffff); }

.nav-filter-menu {
    position: absolute;
    top: calc(100% + 7px);
    left: 50%;
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: 34px;
    gap: 5px;
    width: max-content;
    padding: 7px;
    border: 1px solid rgba(150,180,225,.24);
    border-radius: 13px;
    background: rgba(15,20,30,.98);
    box-shadow: 0 16px 34px rgba(0,0,0,.45), inset 0 1px rgba(255,255,255,.05);
    backdrop-filter: blur(14px);
}

.nav-filter-menu[hidden] { display: none !important; }

.nav-filter-chip {
    width: 34px;
    height: 34px;
    padding: 5px;
    border: 1px solid rgba(190,210,240,.14);
    border-radius: 10px;
    background: rgba(255,255,255,.045);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: .16s ease;
}

.nav-filter-chip:hover,
.nav-filter-chip.active {
    border-color: rgba(110,175,255,.72);
    background: rgba(80,145,255,.2);
    transform: scale(1.06);
}

.nav-filter-chip .tier-color-dot {
    width: 19px !important;
    height: 19px !important;
    min-width: 19px !important;
    flex-basis: 19px !important;
    margin: 0 !important;
}

.nav-filter-all-dot {
    width: 19px;
    height: 19px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg,#ffffff,#68758a);
    color: #17202d;
    font: 900 6px/1 Arial,sans-serif;
}

.preview-nav .nav-arrow {
    position: relative;
    z-index: 1;
}


.nav-label {

    font-size: 14px;

    opacity: 0.65;

    user-select: none;

}


.nav-arrow {

    width: 34px;
    height: 34px;

    border:
        1px solid #303747;

    border-radius: 11px;

    background: #181d27;

    color: #dfe7f2;

    font-size: 18px;

    line-height: 1;

    cursor: pointer;

    transition:
        0.18s ease;

    display: flex;

    align-items: center;

    justify-content: center;

}


.nav-arrow:hover {

    background: #252c39;

    border-color: #66778f;

    transform:
        scale(1.05);

}


.nav-arrow:active {

    transform:
        scale(0.94);

}


/* =====================================================
   PHONE
===================================================== */

.phone-area {

    width: 100%;

    min-height: 510px;

    display: flex;

    align-items: center;

    justify-content: center;

}


.phone {

    position: relative;

    width: 310px;

    aspect-ratio:
        524 / 824;

    background: transparent;

    border: none;

    box-shadow: none;

    animation:
        floatingPhone
        4s
        ease-in-out
        infinite;

}


@keyframes floatingPhone {

    0% {
        transform:
            translateY(0);
    }

    50% {
        transform:
            translateY(-7px);
    }

    100% {
        transform:
            translateY(0);
    }

}


#case-canvas {

    width: 100%;

    height: 100%;

    display: block;

    background: transparent;

    border: none;

    outline: none;

    touch-action: none;

    user-select: none;

    cursor: grab;

}


#case-canvas:active {

    cursor: grabbing;

}


/* =====================================================
   INFO
===================================================== */

.nav-hint {

    color: #596375;

    font-size: 10px;

    margin-top: -3px;

    margin-bottom: 4px;

    text-align: center;

}


.rotation-help {

    width: 100%;

    text-align: center;

    color: #7f8999;

    font-size: 12px;

    margin-top: 2px;

    margin-bottom: 10px;

}


.rotation-control {

    width: 100%;

    background: #151922;

    border:
        1px solid #252c38;

    border-radius: 11px;

    padding: 12px;

    margin-bottom: 12px;

}


.rotation-title {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 8px;

    font-size: 13px;

}


.rotation-title span {

    color: #aab2bf;

}




.selected-info {

    width: 100%;

    background: #151922;

    border:
        1px solid #252c38;

    border-radius: 13px;

    padding: 15px;

}


.selected-row {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 7px 0;

    color: #9fa7b5;

}


.selected-row strong {

    color: white;

}


.total-row {

    border-top:
        1px solid #2a303b;

    margin-top: 5px;

    padding-top: 12px;

    font-size: 17px;

}


/* =====================================================
   QUANTITY
===================================================== */

.quantity-section {

    width: 100%;

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-top: 12px;

    background: #151922;

    border:
        1px solid #252c38;

    border-radius: 11px;

    padding:
        11px 14px;

    color: #aeb6c4;

}


.quantity-control {

    display: flex;

    align-items: center;

    gap: 13px;

}


.quantity-control button {

    width: 32px;
    height: 32px;

    border:
        1px solid #343b49;

    border-radius: 8px;

    background: #1d2330;

    color: white;

    font-size: 20px;

    cursor: pointer;

}


/* =====================================================
   PACKAGING
===================================================== */

.packaging-section {

    width: 100%;

    margin-top: 15px;

}


.packaging-section h2 {

    font-size: 18px;

    margin-bottom: 12px;

}


.packaging-options {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 10px;

}


.packaging-option {

    background: #151922;

    border:
        1px solid #282f3c;

    border-radius: 11px;

    padding: 12px;

    cursor: pointer;

    transition:
        0.2s ease;

}


.packaging-option:hover {

    background: #1b202b;

}


.packaging-option.selected {

    border-color: #69778e;

    background: #1d2330;

}


.packaging-option input {

    display: none;

}


.packaging-option div {

    display: flex;

    flex-direction: column;

    gap: 7px;

}


.packaging-option strong {

    font-size: 13px;

}


.packaging-option span {

    font-size: 12px;

    color: #9ca5b5;

}


.gift-message-box {

    display: none;

    margin-top: 12px;

}


.gift-message-box.active {

    display: block;

}


.gift-message-box label {

    display: block;

    margin-bottom: 7px;

    font-size: 13px;

    color: #cbd2dc;

}


.gift-message-box textarea {

    width: 100%;

    min-height: 80px;

    resize: vertical;

    background: #151922;

    border:
        1px solid #2a303c;

    border-radius: 10px;

    color: white;

    padding: 12px;

    outline: none;

    font-family: inherit;

}


.order-button {

    width: 100%;

    margin-top: 18px;

    border: none;

    border-radius: 12px;

    padding: 15px;

    background: white;

    color: #080a0e;

    font-size: 16px;

    font-weight: 800;

    cursor: pointer;

    transition:
        0.2s ease;

}


.order-button:hover {

    transform:
        translateY(-2px);

    box-shadow:
        0 8px 25px
        rgba(255,255,255,0.08);

}


/* =====================================================
   MODALS
===================================================== */

.modal-overlay {

    position: fixed;

    inset: 0;

    z-index: 1000;

    background:
        rgba(3,5,9,0.78);

    /* Keep the overlay cheap while the custom cursor is moving. */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;

    display: none;

    align-items: center;

    justify-content: center;

    padding: 20px;

}


.modal-overlay.active {

    display: flex;

}


.modal-box {

    width: 100%;

    max-width: 560px;

    max-height: 90vh;

    overflow-y: auto;

    position: relative;

    background:
        linear-gradient(
            145deg,
            #151922,
            #0f1219
        );

    border:
        1px solid #303747;

    border-radius: 22px;

    padding: 28px;

    box-shadow:
        0 25px 80px
        rgba(0,0,0,0.55);

}


.modal-close {

    position: absolute;

    top: 14px;

    left: 14px;

    width: 32px;
    height: 32px;

    border-radius: 50%;

    border:
        1px solid #303747;

    background: #1a1f29;

    color: #cdd4df;

    font-size: 20px;

    cursor: pointer;

}


.modal-icon {

    text-align: center;

    font-size: 34px;

    margin-bottom: 8px;

}


.modal-box h2 {

    text-align: center;

    font-size: 22px;

    margin-bottom: 6px;

}


.modal-subtitle {

    text-align: center;

    color: #7f8999;

    font-size: 12px;

    margin-bottom: 20px;

}


.auth-tabs {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 7px;

    margin-bottom: 18px;

}


.auth-tab {

    border:
        1px solid #2b323f;

    background: #151922;

    color: #9da7b6;

    padding: 10px;

    border-radius: 10px;

    cursor: pointer;

}


.auth-tab.active {

    background: #242b38;

    color: white;

    border-color: #68768d;

}


.auth-form {

    display: flex;

    flex-direction: column;

    gap: 8px;

}


.auth-form.hidden {

    display: none;

}


.auth-form label,
.form-field label {

    font-size: 12px;

    color: #aeb6c4;

    margin-top: 5px;

}


.auth-form input,
.form-field input,
.form-field textarea {

    width: 100%;

    background: #0e1117;

    color: white;

    border:
        1px solid #2c3340;

    border-radius: 10px;

    padding: 12px;

    outline: none;

    font-family: inherit;

}


.primary-modal-button {

    border: none;

    background: white;

    color: #080a0e;

    border-radius: 11px;

    padding: 13px;

    margin-top: 8px;

    font-weight: 800;

    cursor: pointer;

}


.form-grid {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 10px;

}


.form-field {

    display: flex;

    flex-direction: column;

    gap: 7px;

    margin-bottom: 10px;

}


.form-field textarea {

    min-height: 90px;

    resize: vertical;

}


.order-preview-summary {

    background: #0e1117;

    border:
        1px solid #282f3b;

    border-radius: 13px;

    padding: 13px;

    display: flex;

    flex-direction: column;

    gap: 8px;

    margin-top: 8px;

}


.order-preview-summary div {

    display: flex;

    align-items: center;

    justify-content: space-between;

}


.order-preview-summary span {

    color: #8993a3;

    font-size: 12px;

}


.order-preview-summary strong {

    color: white;

    font-size: 13px;

}


.modal-actions {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 10px;

    margin-top: 15px;

}


.add-cart-button,
.confirm-order-button {

    border: none;

    border-radius: 11px;

    padding: 13px 10px;

    font-weight: 800;

    cursor: pointer;

}


.add-cart-button {

    background: #1d2634;

    color: white;

    border:
        1px solid #39475a;

}


.confirm-order-button {

    background: white;

    color: #080a0e;

}


/* =====================================================
   CART
===================================================== */

.cart-modal-box {

    max-width: 620px;

}


.cart-items {

    display: flex;

    flex-direction: column;

    gap: 10px;

    max-height: 400px;

    overflow-y: auto;

}


.empty-cart {

    text-align: center;

    padding:
        35px 15px;

    color: #727d8d;

}


.cart-item {

    background: #0f131a;

    border:
        1px solid #292f3c;

    border-radius: 13px;

    padding: 13px;

    display: grid;

    grid-template-columns:
        1fr auto;

    gap: 10px;

}


.cart-item-title {

    font-weight: 800;

    margin-bottom: 6px;

}


.cart-item-details {

    display: flex;

    flex-direction: column;

    gap: 4px;

    color: #858f9f;

    font-size: 11px;

}


.cart-item-price {

    display: flex;

    flex-direction: column;

    align-items: flex-end;

    justify-content: space-between;

    gap: 8px;

}


.cart-item-price strong {

    font-size: 15px;

}


.remove-cart-item {

    border:
        1px solid #3b3035;

    background: #21171b;

    color: #ff9da9;

    border-radius: 8px;

    padding:
        5px 8px;

    font-size: 11px;

    cursor: pointer;

}


.cart-total {

    display: flex;

    justify-content: space-between;

    align-items: center;

    border-top:
        1px solid #2a303b;

    margin-top: 15px;

    padding-top: 15px;

    font-size: 17px;

}


.cart-total strong {

    font-size: 21px;

}


.cart-checkout-button {

    width: 100%;

    margin-top: 15px;

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 1050px) {

    .main-layout {

        grid-template-columns:
            1fr 1fr;

    }


    .preview-section {

        grid-column:
            1 / -1;

        grid-row: 1;

    }


    .stickers-panel {

        grid-column: 1;

        grid-row: 2;

    }


    .cases-panel {

        grid-column: 2;

        grid-row: 2;

    }

}


@media (max-width: 850px) {

    .main-layout {

        display: flex;

        flex-direction: column;

        padding: 15px;

    }


    .preview-section {
        order: 1;
    }


    .stickers-panel {
        order: 2;
    }


    .cases-panel {
        order: 3;
    }


    .preview-stage {

        grid-template-columns:
            48px 1fr 48px;

    }

}


@media (max-width: 520px) {

    .topbar {

        height: auto;

        padding: 12px;

        gap: 8px;

    }


    .logo {

        font-size: 15px;

    }


    .header-title {

        font-size: 13px;

    }


    .header-actions {

        gap: 5px;

    }


    .country-button {

        padding:
            0 7px;

    }


    .country-flag-svg {

        width: 24px;
        height: 16px;

    }


    .country-code {

        display: none;

    }


    .account-btn {

        padding:
            8px 9px;

        font-size: 11px;

    }


    .header-icon-button {

        width: 37px;
        height: 37px;

    }


    .phone {

        width: 250px;

    }


    .phone-area {

        min-height: 450px;

    }


    .preview-stage {

        grid-template-columns:
            43px 1fr 43px;

    }


    .preview-nav {

        width: 39px;

    }


    .nav-arrow {

        width: 29px;
        height: 29px;

        font-size: 15px;

    }


    .purchase-options {

        grid-template-columns:
            1fr;

    }


    .packaging-options {

        grid-template-columns:
            1fr;

    }


    .form-grid {

        grid-template-columns:
            1fr;

    }


    .modal-actions {

        grid-template-columns:
            1fr;

    }


    .modal-box {

        padding:
            22px 17px;

    }

}

/* Random dice feature */
.dice-area{display:flex;flex-direction:column;align-items:center;gap:9px;margin:18px auto 8px;width:min(100%,520px);text-align:center}
.dice-button{position:relative;overflow:hidden;width:100%;border:1px solid #8b5cf6;border-radius:14px;padding:15px 18px;background:linear-gradient(135deg,#6d28d9,#4338ca);color:#fff;font:700 16px inherit;cursor:pointer;box-shadow:0 8px 24px #4f46e533;transition:transform .18s ease,filter .18s ease,box-shadow .18s ease}
.dice-button::after{content:"";position:absolute;inset:-45% -20%;background:linear-gradient(105deg,transparent 35%,rgba(255,255,255,.24) 50%,transparent 65%);transform:translateX(-70%) skewX(-14deg);opacity:0;pointer-events:none}
.dice-button:hover{transform:translateY(-2px);filter:brightness(1.12);box-shadow:0 11px 28px #4f46e555}
.dice-button:active{transform:translateY(1px) scale(.985);filter:brightness(.98);box-shadow:0 4px 12px #4f46e544}
.dice-button:active::after{opacity:1;animation:dicePressSheen .34s ease-out forwards}
.dice-button:focus-visible{outline:2px solid rgba(196,181,253,.95);outline-offset:3px}
@keyframes dicePressSheen{from{transform:translateX(-70%) skewX(-14deg)}to{transform:translateX(70%) skewX(-14deg)}}
.dice-counter{font-size:13px;color:#aab3c3}.dice-counter strong{color:#fff;font-size:16px}
.dice-win-message{display:none;color:#86efac;font-weight:800;font-size:15px;padding:8px}.dice-win-message.show{display:block;animation:dicePop .5s ease}
@keyframes dicePop{0%{transform:scale(.75);opacity:0}70%{transform:scale(1.08)}100%{transform:scale(1);opacity:1}}

/* Seven visible case rarity classifications */
.case-rarity-legend{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 16px;align-items:center}
.case-rarity-legend .rarity-label{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border:1px solid #ffffff20;border-radius:999px;background:#ffffff08;color:var(--text-color,#e5e7eb);font-size:12px}
.case-rarity-legend .rarity-dot{display:inline-block;width:9px;height:9px;border-radius:50%;flex:0 0 9px}
.dice-counter{display:none!important}


/* CASESTUDIO product tiers — appended without removing existing styles */
.case-rarity-legend { display: none !important; }
.case-tier-heading { margin: 12px 0 14px; padding: 12px 14px; border: 1px solid #303747; border-radius: 12px; background: linear-gradient(135deg, #171e2b, #111722); }
.case-tier-heading h3 { font-size: 15px; margin: 0 0 6px; color: #f4f7fb; }
.case-tier-heading p { font-size: 11px; line-height: 1.7; color: #9ba8ba; margin: 0; }
.case-card { align-items: flex-start; min-height: 120px; }
.case-card .product-image { width: 82px; height: 82px; align-self: center; }
.case-card .product-info { display: flex; flex-direction: column; gap: 5px; }
.case-card .product-name { margin-bottom: 0; white-space: normal; line-height: 1.35; }
.case-card .product-description { color: #aab5c5; font-size: 11px; line-height: 1.65; margin: 0 0 4px; overflow-wrap: anywhere; }
.case-card .product-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 3px; }
.case-tier-badge { display: inline-flex; width: fit-content; padding: 4px 8px; border: 1px solid #52617a; border-radius: 999px; background: #222c3b; color: #d8e7ff; font-size: 10px; font-weight: 700; }
.case-card .price { color: #b9f5d0; font-size: 15px; font-weight: 800; white-space: nowrap; }
.dice-counter { display: none !important; }
@media (max-width: 600px) { .case-card .product-image { width: 68px; height: 68px; } .case-card { gap: 10px; padding: 10px; } .case-card .product-description { font-size: 10px; } }

/* CASESTUDIO tier colors, prices over the case tile, and sparkling diamond */
.gray-case { background:linear-gradient(145deg,#aeb7c2,#525d6b)!important; }
.green-case { background:linear-gradient(145deg,#35d879,#075d35)!important; }
.blue-case { background:linear-gradient(145deg,#2687ff,#063b9b)!important; }
.purple-case { background:linear-gradient(145deg,#a855f7,#4c087f)!important; }
.gold-case { background:linear-gradient(145deg,#ffe16b,#a66a00)!important; }
.red-case { background:linear-gradient(145deg,#ff6565,#8c071b)!important; }
.diamond-case { background:linear-gradient(135deg,#a5ffff,#3ce5ed,#f6ffff,#77cfff,#fff)!important; position:relative; animation:diamondGlow 2.2s ease-in-out infinite; box-shadow:0 0 14px rgba(127,255,255,.42),inset 0 0 12px rgba(255,255,255,.7); }
@keyframes diamondGlow {0%,100%{filter:brightness(1);box-shadow:0 0 10px rgba(127,255,255,.35),inset 0 0 8px rgba(255,255,255,.6)}50%{filter:brightness(1.45) saturate(1.2);box-shadow:0 0 25px rgba(180,255,255,.9),inset 0 0 18px rgba(255,255,255,.95)}}
.product-price-overlay{position:absolute;inset:auto 5px 5px;z-index:2;display:flex;justify-content:space-between;align-items:center;gap:4px;padding:4px 6px;border-radius:8px;background:rgba(8,13,25,.8);backdrop-filter:blur(5px)}
.product-price-overlay .price{color:#fff;font-weight:800;font-size:12px;white-space:nowrap}
.case-tier-badge,.sticker-tier-badge{display:inline-flex;align-items:center;justify-content:center;padding:4px 8px;border-radius:999px;border:1px solid rgba(220,240,255,.38);background:rgba(100,150,210,.2);color:#f4f8ff;font-size:11px;font-weight:700;white-space:nowrap}
.product-image{position:relative}
.product-description{font-size:12px;line-height:1.7;color:#c4cfdf;margin:4px 0 8px;white-space:normal}
.sticker-card .product-info{min-width:0}.sticker-card .product-bottom{gap:6px}
@media(prefers-reduced-motion:reduce){.diamond-case{animation:none!important}}


/* Revision: category labels become color dots; metadata sits below descriptions */
.tier-color-dot{display:inline-block;width:20px;height:20px;min-width:20px;border-radius:50%;border:1px solid rgba(255,255,255,.7);box-shadow:0 1px 5px rgba(0,0,0,.35);vertical-align:middle;flex:0 0 20px}
.tier-color-dot.gray{background:linear-gradient(145deg,#e0e4e8,#747e8a)}
.tier-color-dot.green{background:linear-gradient(145deg,#63f59a,#087d40)}
.tier-color-dot.blue{background:linear-gradient(145deg,#6dcaff,#064fe0)}
.tier-color-dot.purple{background:linear-gradient(145deg,#e19bff,#7100d8)}
.tier-color-dot.gold{background:linear-gradient(145deg,#fff0a1,#d49a00)}
.tier-color-dot.red{background:linear-gradient(145deg,#ff9a9a,#b50020)}
.tier-color-dot.diamond{background:linear-gradient(120deg,#fff 0%,#80faff 18%,#fff 30%,#63baff 45%,#fff 60%,#b4fff9 75%,#fff 100%);background-size:220% 220%;animation:diamondDotSparkle 1.4s linear infinite;box-shadow:0 0 7px #9fffff,0 0 16px rgba(125,255,255,.8);border-color:#f5ffff}
@keyframes diamondDotSparkle{0%{background-position:0% 50%;filter:brightness(1)}50%{background-position:100% 50%;filter:brightness(1.65)}100%{background-position:0% 50%;filter:brightness(1)}}
.case-card .product-price-overlay{display:none!important}
.case-card .case-product-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:8px;width:100%;}
.case-card .case-product-bottom .price,.sticker-card .product-bottom .price{font-weight:800;color:#b9f5d0;font-size:15px;white-space:nowrap}
.case-card .case-product-bottom .tier-color-dot,.sticker-card .product-bottom .tier-color-dot{margin-inline-start:auto}
.sticker-card .product-bottom{display:flex;align-items:center;gap:10px;margin-top:8px}
.sticker-card .product-bottom .price{margin-inline-start:0}

/* UI refinement: align case tier price and color marker beneath details */
#case-list .case-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px;
  grid-template-areas: "info image";
  align-items: start;
  column-gap: 12px;
  row-gap: 0;
  min-width: 0;
}
#case-list .case-card > .product-image {
  grid-area: image;
  width: 82px;
  height: 82px;
  align-self: start;
  justify-self: end;
  margin: 0;
}
#case-list .case-card > .product-info {
  grid-area: info;
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}
#case-list .case-card .product-name { overflow-wrap: anywhere; }
#case-list .case-card .product-description { margin: 0; }
#case-list .case-card .case-product-bottom {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  width: 100%;
  margin: 8px 0 0;
  padding-top: 8px;
  border-top: 1px solid rgba(210,225,245,.12);
}
#case-list .case-card .case-product-bottom .tier-color-dot { margin: 0; }
#case-list .case-card .case-product-bottom .price { margin: 0; font-size: 15px; line-height: 1.2; }

/* Slim, soft, low-profile scrollbars for the case and sticker catalogs */
#case-list, #sticker-list, .product-list {
  scrollbar-width: thin;
  scrollbar-color: rgba(157,177,205,.28) transparent;
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
}
#case-list::-webkit-scrollbar, #sticker-list::-webkit-scrollbar, .product-list::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
#case-list::-webkit-scrollbar-track, #sticker-list::-webkit-scrollbar-track, .product-list::-webkit-scrollbar-track {
  background: transparent;
  margin-block: 8px;
}
#case-list::-webkit-scrollbar-thumb, #sticker-list::-webkit-scrollbar-thumb, .product-list::-webkit-scrollbar-thumb {
  background: rgba(157,177,205,.22);
  border-radius: 999px;
  border: 1px solid transparent;
  background-clip: padding-box;
}
#case-list:hover::-webkit-scrollbar-thumb, #sticker-list:hover::-webkit-scrollbar-thumb, .product-list:hover::-webkit-scrollbar-thumb {
  background: rgba(157,177,205,.42);
  background-clip: padding-box;
}
@media (max-width: 600px) {
  #case-list .case-card { grid-template-columns: minmax(0,1fr) 68px; column-gap: 10px; }
  #case-list .case-card > .product-image { width: 68px; height: 68px; }
}

/* FIX: keep each case's tier price and color marker INSIDE its card */
#case-list .case-card {
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) clamp(76px, 29%, 104px) !important;
  grid-template-areas: "info image" !important;
  align-items: stretch !important;
  align-content: start !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 14px !important;
  gap: 0 14px !important;
  overflow: visible !important;
}
#case-list .case-card > .product-info {
  grid-area: info !important;
  box-sizing: border-box !important;
  min-width: 0 !important;
  width: 100% !important;
  height: auto !important;
  align-self: stretch !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 7px !important;
  margin: 0 !important;
  padding: 0 !important;
}
#case-list .case-card > .product-image {
  grid-area: image !important;
  box-sizing: border-box !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  max-width: 104px !important;
  align-self: start !important;
  justify-self: end !important;
  margin: 0 !important;
}
#case-list .case-card .product-name,
#case-list .case-card .product-description {
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}
#case-list .case-card .case-product-bottom {
  position: static !important;
  inset: auto !important;
  float: none !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-wrap: nowrap !important;
  gap: 10px !important;
  width: 100% !important;
  min-height: 30px !important;
  margin: 6px 0 0 !important;
  padding: 9px 0 0 !important;
  border-top: 1px solid rgba(210,225,245,.16) !important;
  order: 99 !important;
}
#case-list .case-card .case-product-bottom .tier-color-dot {
  position: static !important;
  display: inline-block !important;
  margin: 0 !important;
  flex: 0 0 20px !important;
}
#case-list .case-card .case-product-bottom .price {
  position: static !important;
  display: inline-block !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.35 !important;
  white-space: nowrap !important;
}
@media (max-width: 600px) {
  #case-list .case-card { grid-template-columns: minmax(0,1fr) 72px !important; gap: 0 10px !important; padding: 11px !important; }
  #case-list .case-card > .product-image { width: 72px !important; max-width: 72px !important; }
  #case-list .case-card .case-product-bottom { margin-top: 7px !important; padding-top: 7px !important; }
}

/* FINAL CASE CARD LAYOUT FIX: stable two-column card with metadata inside info column */
#case-list .case-card {
  display: flex !important;
  flex-direction: row !important;
  direction: ltr !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 14px !important;
  gap: 14px !important;
  overflow: hidden !important;
}
#case-list .case-card > .product-image {
  order: 0 !important;
  flex: 0 0 clamp(76px, 30%, 112px) !important;
  width: clamp(76px, 30%, 112px) !important;
  max-width: 112px !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  align-self: flex-start !important;
  margin: 0 !important;
  position: relative !important;
}
#case-list .case-card > .product-info {
  order: 1 !important;
  flex: 1 1 0% !important;
  min-width: 0 !important;
  width: auto !important;
  max-width: none !important;
  height: auto !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  direction: rtl !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  align-self: stretch !important;
  gap: 7px !important;
  margin: 0 !important;
  padding: 0 !important;
  position: static !important;
}
#case-list .case-card .product-name,
#case-list .case-card .product-description {
  display: block !important;
  position: static !important;
  float: none !important;
  inset: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  box-sizing: border-box !important;
  text-align: right !important;
  overflow-wrap: anywhere !important;
  white-space: normal !important;
}
#case-list .case-card .product-description {
  margin: 0 !important;
  line-height: 1.7 !important;
}
#case-list .case-card .case-product-bottom {
  display: flex !important;
  position: static !important;
  inset: auto !important;
  float: none !important;
  transform: none !important;
  order: 100 !important;
  direction: rtl !important;
  flex: 0 0 auto !important;
  align-self: stretch !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-wrap: nowrap !important;
  gap: 10px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 32px !important;
  height: auto !important;
  box-sizing: border-box !important;
  margin: 7px 0 0 !important;
  padding: 9px 0 0 !important;
  border-top: 1px solid rgba(210,225,245,.2) !important;
}
#case-list .case-card .case-product-bottom .tier-color-dot {
  display: inline-block !important;
  position: static !important;
  inset: auto !important;
  transform: none !important;
  flex: 0 0 20px !important;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  margin: 0 !important;
}
#case-list .case-card .case-product-bottom .price {
  display: inline-block !important;
  position: static !important;
  inset: auto !important;
  transform: none !important;
  flex: 0 0 auto !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.3 !important;
  white-space: nowrap !important;
}
@media (max-width: 600px) {
  #case-list .case-card { padding: 11px !important; gap: 10px !important; }
  #case-list .case-card > .product-image { flex-basis: 72px !important; width: 72px !important; max-width: 72px !important; }
  #case-list .case-card .case-product-bottom { margin-top: 6px !important; padding-top: 7px !important; }
}

/* CASESTUDIO HOTFIX 2026-09-28: pin case price and tier dot visibly inside card */
#case-list .case-card {
  position: relative !important;
  display: flex !important;
  flex-direction: row !important;
  direction: ltr !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  box-sizing: border-box !important;
  min-height: 154px !important;
  height: auto !important;
  padding: 14px 14px 52px !important;
  gap: 14px !important;
  overflow: visible !important;
}
#case-list .case-card > .product-image {
  position: relative !important;
  order: 0 !important;
  flex: 0 0 clamp(76px, 30%, 112px) !important;
  width: clamp(76px, 30%, 112px) !important;
  max-width: 112px !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  align-self: flex-start !important;
  margin: 0 !important;
}
#case-list .case-card > .product-info {
  position: static !important;
  order: 1 !important;
  flex: 1 1 0% !important;
  min-width: 0 !important;
  width: auto !important;
  height: auto !important;
  padding: 0 0 2px !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 7px !important;
  overflow: visible !important;
}
#case-list .case-card .product-name,
#case-list .case-card .product-description {
  position: static !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  margin: 0 !important;
  text-align: right !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}
#case-list .case-card .case-product-bottom {
  position: absolute !important;
  display: flex !important;
  direction: rtl !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-wrap: nowrap !important;
  gap: 10px !important;
  left: calc(14px + 30% + 14px) !important;
  right: 14px !important;
  bottom: 12px !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 28px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 8px 0 0 !important;
  border-top: 1px solid rgba(210,225,245,.22) !important;
  box-sizing: border-box !important;
  float: none !important;
  transform: none !important;
  z-index: 5 !important;
  visibility: visible !important;
  opacity: 1 !important;
}
#case-list .case-card .case-product-bottom .tier-color-dot {
  display: inline-block !important;
  position: static !important;
  visibility: visible !important;
  opacity: 1 !important;
  flex: 0 0 20px !important;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  margin: 0 !important;
}
#case-list .case-card .case-product-bottom .price {
  display: inline-block !important;
  position: static !important;
  visibility: visible !important;
  opacity: 1 !important;
  flex: 0 0 auto !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #b9f5d0 !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  white-space: nowrap !important;
}
@media (max-width: 600px) {
  #case-list .case-card { min-height: 140px !important; padding: 11px 11px 48px !important; gap: 10px !important; }
  #case-list .case-card > .product-image { flex-basis: 72px !important; width: 72px !important; max-width: 72px !important; }
  #case-list .case-card .case-product-bottom { left: 93px !important; right: 11px !important; bottom: 10px !important; }
}

/* CASESTUDIO final polish 2026-09-28: taller catalogs, spherical tier markers, sticker tier filter */
html, body { min-height: 100%; }
.main-layout { align-items: stretch; min-height: calc(100vh - 76px); }
.side-panel { display: flex; flex-direction: column; min-height: calc(100vh - 120px); height: auto; }
#sticker-list, #case-list { flex: 1 1 auto; min-height: 0; max-height: none !important; height: auto; overflow-y: auto; }
@media (max-width: 850px) {
  .side-panel { min-height: 0; height: auto; }
  #sticker-list, #case-list { max-height: none !important; min-height: 420px; }
}
/* Remove the redundant case family dropdown, result box and explanatory tier panel while keeping JS hooks alive. */
.cases-panel #case-device, .cases-panel #device-result, .cases-panel .case-tier-heading { display: none !important; }
/* Hide unused extra case model category dropdown; the device search remains the functional selector. */
.cases-panel #case-model { display: none !important; }
/* Spherical color category indicators: no outline/stroke, with a soft dimensional highlight. */
.tier-color-dot { border: 0 !important; outline: 0 !important; box-shadow: inset -3px -4px 7px rgba(0,0,0,.25), inset 2px 2px 5px rgba(255,255,255,.42), 0 2px 5px rgba(0,0,0,.25) !important; }
.tier-color-dot.diamond { border: 0 !important; box-shadow: inset -3px -4px 7px rgba(0,0,0,.18), inset 2px 2px 6px rgba(255,255,255,.8), 0 0 9px rgba(130,255,255,.9), 0 0 18px rgba(130,255,255,.6) !important; }
.sticker-tier-filter { display:flex; flex-wrap:wrap; align-items:center; gap:7px; margin:0 0 12px; padding:10px 0 12px; border-bottom:1px solid rgba(190,210,240,.12); }
.sticker-tier-filter-label { flex:0 0 100%; color:#aebbd0; font-size:12px; font-weight:700; }
.sticker-filter-chip { display:inline-flex; align-items:center; justify-content:center; min-width:30px; min-height:30px; padding:4px 8px; border:1px solid rgba(190,210,240,.14); border-radius:999px; background:rgba(255,255,255,.045); color:#eaf2ff; cursor:pointer; transition:background .18s,border-color .18s,transform .18s; }
.sticker-filter-chip .tier-color-dot { width:18px !important; height:18px !important; min-width:18px !important; flex-basis:18px !important; }
.sticker-filter-chip.active { background:rgba(80,145,255,.22); border-color:rgba(110,175,255,.72); box-shadow:0 0 0 2px rgba(90,155,255,.08); }
.sticker-filter-chip:hover { transform:translateY(-1px); }
.hidden-by-filter { display:none !important; }
.arab-country-menu { position:absolute; z-index:10000; top:calc(100% + 8px); inset-inline-end:0; width:min(300px,88vw); max-height:min(65vh,520px); overflow-y:auto; padding:8px; border:1px solid rgba(160,190,230,.28); border-radius:14px; background:#121a29; box-shadow:0 16px 45px rgba(0,0,0,.48); display:grid; grid-template-columns:1fr 1fr; gap:5px; }
.arab-country-menu[hidden] { display:none !important; }
.header-actions { position:relative; }
.arab-country-option { display:flex; align-items:center; gap:7px; min-width:0; padding:9px 7px; border:1px solid transparent; border-radius:9px; background:rgba(255,255,255,.045); color:#edf4ff; text-align:right; cursor:pointer; font:inherit; font-size:12px; }
.arab-country-option:hover { background:rgba(80,145,255,.18); border-color:rgba(120,175,255,.35); }
.arab-country-flag { font-size:20px; line-height:1; }
.arab-country-option small { margin-inline-start:auto; opacity:.55; font-size:10px; }
.country-flag-emoji { display:inline-flex; align-items:center; justify-content:center; font-size:22px; width:36px; height:24px; }

/* CASE tier filter mirrors the sticker category selector */
.case-tier-filter { display:flex; flex-wrap:wrap; align-items:center; gap:7px; margin:0 0 12px; padding:10px 0 12px; border-bottom:1px solid rgba(190,210,240,.12); }
.case-tier-filter .sticker-tier-filter-label { flex:0 0 100%; }
/* Compact, soft country picker with a scrollable list of world flags */
.arab-country-menu { width:min(245px,82vw) !important; max-height:min(48vh,390px) !important; padding:6px !important; grid-template-columns:1fr 1fr !important; gap:4px !important; border-radius:12px !important; }
.arab-country-option { gap:5px !important; padding:6px 5px !important; border-radius:8px !important; font-size:11px !important; line-height:1.25 !important; }
.arab-country-flag { font-size:17px !important; min-width:22px; text-align:center; }
.arab-country-option small { display:none !important; }


/* Country selector polish: actual flag images, single-column alphabetical list, slim scrollbar */
.country-flag-img { display:inline-block; width:27px; height:18px; object-fit:cover; border-radius:3px; flex:0 0 auto; box-shadow:0 1px 4px rgba(0,0,0,.28); }
.country-flag-emoji { display:inline-flex; align-items:center; justify-content:center; width:27px; height:18px; font-size:19px; line-height:1; flex:0 0 auto; }
.arab-country-menu { display:flex !important; flex-direction:column !important; width:min(225px,78vw) !important; max-height:min(43vh,340px) !important; overflow-y:auto !important; overscroll-behavior:contain; padding:5px !important; gap:2px !important; scrollbar-width:thin; scrollbar-color:rgba(150,175,210,.24) transparent; }
.arab-country-menu[hidden] { display:none !important; }
.arab-country-menu::-webkit-scrollbar { width:4px; }
.arab-country-menu::-webkit-scrollbar-track { background:transparent; }
.arab-country-menu::-webkit-scrollbar-thumb { background:rgba(150,175,210,.24); border-radius:20px; }
.arab-country-option { display:flex !important; flex-direction:row !important; align-items:center !important; justify-content:flex-start !important; gap:9px !important; width:100%; min-height:32px; padding:6px 8px !important; border:1px solid transparent !important; border-radius:8px !important; background:transparent !important; color:#edf4ff; text-align:right; font-size:12px !important; line-height:1.3 !important; }
.arab-country-option:hover, .arab-country-option:focus-visible { background:rgba(80,145,255,.16) !important; border-color:rgba(120,175,255,.25) !important; outline:none; }
.arab-country-flag-img { display:block; width:25px; height:17px; object-fit:cover; flex:0 0 25px; border-radius:2px; box-shadow:0 1px 3px rgba(0,0,0,.35); }
.arab-country-flag-fallback { display:inline-flex; align-items:center; justify-content:center; width:25px; flex:0 0 25px; font-size:18px; }
.arab-country-name { flex:1; text-align:right; }
@media(max-width:600px) { .arab-country-menu { width:min(205px,76vw) !important; max-height:38vh !important; } .country-flag-img { width:24px; height:16px; } }

/* Browse-all catalog overlay: roomy product gallery, separate from the compact side lists. */
.catalog-browse-button{display:flex;align-items:center;justify-content:center;width:100%;margin:8px 0 12px;padding:10px 14px;border:1px solid rgba(133,174,255,.32);border-radius:12px;background:linear-gradient(135deg,rgba(61,105,177,.22),rgba(103,76,190,.18));color:#eaf2ff;font:700 13px inherit;cursor:pointer;transition:background .2s,transform .2s,border-color .2s}
.catalog-browse-button:hover{background:rgba(80,130,220,.3);border-color:rgba(133,174,255,.65);transform:translateY(-1px)}
.catalog-gallery-overlay[hidden]{display:none!important}
.catalog-gallery-overlay{position:fixed;inset:0;z-index:10000;display:flex;align-items:center;justify-content:center;padding:18px;background:rgba(3,8,20,.78);backdrop-filter:none}
.catalog-gallery-modal{display:flex;flex-direction:column;width:min(1100px,96vw);max-height:90vh;overflow:hidden;border:1px solid rgba(151,184,235,.3);border-radius:20px;background:linear-gradient(145deg,#17243a,#202e49);box-shadow:0 24px 90px rgba(0,0,0,.55)}
.catalog-gallery-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;border-bottom:1px solid rgba(180,205,245,.14)}
.catalog-gallery-header h2{margin:0;color:#f1f6ff;font-size:18px}
.catalog-gallery-header button{width:36px;height:36px;border:1px solid rgba(200,220,255,.2);border-radius:11px;background:rgba(255,255,255,.07);color:#fff;font-size:18px;cursor:pointer}
.catalog-gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(205px,1fr));gap:14px;padding:18px;overflow:auto;overscroll-behavior:contain}
.catalog-gallery-grid .product-card{display:flex;flex-direction:column;align-items:stretch;gap:10px;margin:0;padding:12px;border:1px solid rgba(160,190,235,.2);border-radius:15px;background:rgba(255,255,255,.045);cursor:pointer;min-width:0;transition:transform .18s,border-color .18s,background .18s}
.catalog-gallery-grid .product-card:hover{transform:translateY(-2px);border-color:rgba(110,170,255,.65);background:rgba(100,145,220,.12)}
.catalog-gallery-grid .product-image{width:100%!important;height:165px!important;min-height:165px!important;max-width:none!important;border-radius:12px;display:flex;align-items:center;justify-content:center;object-fit:contain;font-size:76px}
.catalog-gallery-grid .product-info{width:100%;min-width:0}
.catalog-gallery-grid .product-name{font-size:15px;font-weight:800}
.catalog-gallery-grid .product-description{font-size:12px;line-height:1.65}
.catalog-gallery-grid .product-bottom,.catalog-gallery-grid .case-product-bottom{display:flex;align-items:center;justify-content:space-between;margin-top:10px}
body.gallery-open{overflow:hidden}
@media(max-width:600px){.catalog-gallery-overlay{padding:8px}.catalog-gallery-modal{width:100%;max-height:94vh;border-radius:15px}.catalog-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:10px}.catalog-gallery-grid .product-image{height:120px!important;min-height:120px!important;font-size:56px}.catalog-gallery-grid .product-card{padding:9px}}


/* CASESTUDIO premium free-case celebration */
.dice-celebration{position:fixed;inset:0;z-index:100000;display:grid;place-items:center;padding:22px;pointer-events:none;opacity:0;visibility:hidden;background:radial-gradient(ellipse at 50% 42%,rgba(58,91,178,.26),rgba(5,9,24,.82) 72%);backdrop-filter:blur(9px);transition:opacity .45s ease,visibility .45s ease;overflow:hidden;isolation:isolate}
.dice-celebration.show{opacity:1;visibility:visible}
.celebration-card{position:relative;isolation:isolate;width:min(92vw,560px);padding:30px 28px 32px;text-align:center;border:1px solid rgba(164,210,255,.48);border-radius:30px;background:linear-gradient(145deg,rgba(28,47,91,.94),rgba(17,25,52,.97) 55%,rgba(39,29,91,.94));box-shadow:0 28px 100px rgba(0,0,0,.55),0 0 0 1px rgba(119,184,255,.13) inset,0 0 70px rgba(49,127,255,.23);overflow:hidden;transform:translateY(28px) scale(.86);opacity:0}
.dice-celebration.show .celebration-card{animation:csWinCard .78s cubic-bezier(.16,1,.3,1) forwards}
.celebration-aura{position:absolute;z-index:-2;inset:-45%;background:conic-gradient(from 0deg,transparent,rgba(44,179,255,.18),transparent,rgba(168,85,247,.2),transparent);animation:csAuraSpin 9s linear infinite}
.celebration-emblem{position:relative;width:144px;height:144px;margin:0 auto 17px;display:grid;place-items:center}
.emblem-ring{position:absolute;inset:8px;border:1px solid rgba(144,211,255,.8);border-radius:50%;box-shadow:0 0 24px rgba(56,189,248,.32),inset 0 0 24px rgba(99,102,241,.2);animation:csRingPulse 2s ease-in-out infinite}
.emblem-ring:before,.emblem-ring:after{content:"";position:absolute;inset:-10px;border:1px dashed rgba(192,210,255,.48);border-radius:50%;animation:csOrbit 12s linear infinite}
.emblem-ring:after{inset:18px;border-style:solid;border-color:rgba(168,85,247,.42);animation-direction:reverse;animation-duration:8s}
.emblem-gift{display:grid;place-items:center;width:92px;height:92px;border-radius:27px;font-size:48px;background:linear-gradient(145deg,rgba(59,130,246,.48),rgba(124,58,237,.45));border:1px solid rgba(204,231,255,.5);box-shadow:0 12px 36px rgba(37,99,235,.38),inset 0 1px rgba(255,255,255,.4);animation:csGiftFloat 2.6s ease-in-out infinite}
.emblem-spark{position:absolute;color:#d9f6ff;text-shadow:0 0 14px #60a5fa;font-size:24px;animation:csSpark 1.8s ease-in-out infinite}
.spark-one{top:3px;right:18px}.spark-two{bottom:12px;left:8px;animation-delay:.4s}.spark-three{top:38px;left:0;animation-delay:.8s}
.celebration-kicker{font-size:12px;letter-spacing:2.5px;font-weight:800;color:#9edfff;margin-bottom:10px}
.celebration-banner{position:relative;color:#fff;font-size:clamp(23px,4.5vw,37px);line-height:1.35;font-weight:950;text-shadow:0 3px 24px rgba(96,165,250,.45)}
.celebration-subtitle{max-width:390px;margin:13px auto 0;color:rgba(232,241,255,.82);font-size:clamp(13px,2vw,16px);line-height:1.8}
.celebration-shine{position:absolute;inset:-60% auto -60% -45%;width:35%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.12),transparent);transform:rotate(18deg);animation:csCardShine 3.8s ease-in-out infinite}
.celebration-particles{position:absolute;inset:0;opacity:0;background-image:radial-gradient(circle,rgba(125,211,252,.95) 0 2px,transparent 3px),radial-gradient(circle,rgba(196,181,253,.9) 0 2px,transparent 3px),radial-gradient(circle,rgba(253,224,71,.9) 0 2px,transparent 3px);background-size:83px 101px,127px 139px,173px 117px;background-position:0 0,40px 60px,90px 20px}
.dice-celebration.show .celebration-particles{animation:csParticles 4.8s ease-out forwards}
@keyframes csWinCard{0%{opacity:0;transform:translateY(28px) scale(.82);filter:blur(8px)}65%{opacity:1;transform:translateY(-5px) scale(1.025);filter:blur(0)}100%{opacity:1;transform:translateY(0) scale(1)}}
@keyframes csAuraSpin{to{transform:rotate(360deg)}}@keyframes csOrbit{to{transform:rotate(360deg)}}
@keyframes csRingPulse{0%,100%{transform:scale(.96);opacity:.72}50%{transform:scale(1.05);opacity:1}}
@keyframes csGiftFloat{0%,100%{transform:translateY(0) rotate(-2deg)}50%{transform:translateY(-8px) rotate(2deg)}}
@keyframes csSpark{0%,100%{opacity:.4;transform:scale(.7) rotate(0)}50%{opacity:1;transform:scale(1.25) rotate(18deg)}}
@keyframes csCardShine{0%,35%{left:-50%}75%,100%{left:130%}}
@keyframes csParticles{0%{opacity:0;transform:translateY(-12%)}12%{opacity:.8}75%{opacity:.65}100%{opacity:0;transform:translateY(18%)}}
@media(max-width:520px){.celebration-card{padding:25px 19px 27px;border-radius:25px}.celebration-emblem{width:122px;height:122px}.emblem-gift{width:78px;height:78px;font-size:41px}}
@media(prefers-reduced-motion:reduce){.celebration-card,.celebration-particles,.celebration-aura,.emblem-ring,.emblem-gift,.emblem-spark,.celebration-shine{animation:none!important}.dice-celebration{transition:none}}

/* UX polish: disable text selection throughout the storefront */
html, body, body * { -webkit-user-select: none !important; user-select: none !important; -webkit-touch-callout: none; }
input, textarea, [contenteditable="true"] { -webkit-user-select: text !important; user-select: text !important; }

/* While the prize is pending, freeze catalog/device/purchase controls; preview drag and rotation remain usable. */
body.dice-prize-lock #add-sticker-layer,
body.dice-prize-lock .sticker-layer-controls,
body.dice-prize-lock .nav-category-filter,
body.dice-prize-lock #case-list,
body.dice-prize-lock #sticker-list,
body.dice-prize-lock #case-tier-filter,
body.dice-prize-lock #sticker-tier-filter,
body.dice-prize-lock .device-search-wrapper,
body.dice-prize-lock .device-filters,
body.dice-prize-lock .purchase-options,
body.dice-prize-lock #browse-all-cases,
body.dice-prize-lock #browse-all-stickers,
body.dice-prize-lock #side-browse-cases,
body.dice-prize-lock #side-browse-stickers { pointer-events: none !important; opacity: .42; filter: saturate(.5); cursor: not-allowed !important; }
body.dice-prize-lock #side-browse-cases,
body.dice-prize-lock #side-browse-stickers,
body.dice-prize-lock #sticker-prev,
body.dice-prize-lock #sticker-next,
body.dice-prize-lock #case-prev,
body.dice-prize-lock #case-next { transform: none !important; }
body.dice-prize-lock #sticker-prev,
body.dice-prize-lock #sticker-next,
body.dice-prize-lock #case-prev,
body.dice-prize-lock #case-next { pointer-events:none !important; opacity:.42; filter:saturate(.5); cursor:not-allowed !important; }

/* Cart checkout collects buyer/delivery details only after the cart is ready to order. */
body.cart-checkout-mode #modal-packaging,
body.cart-checkout-mode .modal-packaging-choice { display:none !important; }

/* Free prize cart styling with a vivid red gift ribbon */
.cart-item-prize { position: relative; border: 1px solid rgba(255,65,88,.65) !important; background: linear-gradient(135deg,rgba(100,10,24,.22),rgba(15,19,26,1) 55%) !important; overflow: hidden; }
.cart-gift-ribbon { display:inline-flex; align-items:center; gap:6px; margin-bottom:8px; padding:5px 12px; color:#fff; font-size:11px; font-weight:900; border-radius:4px 12px 12px 4px; background:linear-gradient(100deg,#ff1744,#b5002b); box-shadow:0 3px 12px rgba(255,23,68,.35); }
.cart-prize-breakdown { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:6px; padding:7px 10px; border-radius:9px; background:rgba(255,23,68,.1); color:#ffb5c2; font-size:12px; }
.cart-prize-breakdown strong { color:#ff385d; font-size:15px; font-weight:950; }

/* Refined concealed scrollbar for device search/results and case catalog */
.cases-panel .device-suggestions,
.cases-panel #case-list,
.cases-panel .product-list {
  scrollbar-width: thin;
  scrollbar-color: rgba(148,163,184,.22) transparent;
  scrollbar-gutter: stable;
}
.cases-panel .device-suggestions::-webkit-scrollbar,
.cases-panel #case-list::-webkit-scrollbar,
.cases-panel .product-list::-webkit-scrollbar { width: 5px; }
.cases-panel .device-suggestions::-webkit-scrollbar-track,
.cases-panel #case-list::-webkit-scrollbar-track,
.cases-panel .product-list::-webkit-scrollbar-track { background: transparent; }
.cases-panel .device-suggestions::-webkit-scrollbar-thumb,
.cases-panel #case-list::-webkit-scrollbar-thumb,
.cases-panel .product-list::-webkit-scrollbar-thumb { background: rgba(148,163,184,.2); border-radius: 999px; }
.cases-panel .device-suggestions:hover::-webkit-scrollbar-thumb,
.cases-panel #case-list:hover::-webkit-scrollbar-thumb,
.cases-panel .product-list:hover::-webkit-scrollbar-thumb { background: rgba(148,163,184,.5); }

/* CASESTUDIO — premium dice micro-interaction. The die is a clean isometric SVG so it stays crisp at tiny UI sizes. */
#random-combo-button .dice-icon {
  position:relative;
  display:inline-flex;
  width:22px;
  height:22px;
  flex:0 0 22px;
  align-items:center;
  justify-content:center;
  overflow:visible;
  transform-origin:50% 62%;
  vertical-align:-5px;
  will-change:transform,filter;
}

#random-combo-button .dice-svg {
  display:block;
  width:22px;
  height:22px;
  overflow:visible;
  transform-origin:50% 58%;
}

#random-combo-button .dice-art {
  transform-box:fill-box;
  transform-origin:center;
  transform:scale(1.03);
}

#random-combo-button .dice-roll-animation {
  animation:casePremiumDiceRoll var(--dice-roll-duration,900ms) cubic-bezier(.16,1,.3,1) both;
}

@keyframes casePremiumDiceRoll {
  0% {
    transform:translate3d(0,0,0) rotate(0deg) scale(.94);
    filter:blur(0) drop-shadow(0 1px 1px rgba(0,0,0,.16));
  }
  12% {
    transform:translate3d(-.35px,-1.5px,0) rotate(-10deg) scale(1.02);
    filter:blur(.05px) drop-shadow(1px 2px 1.8px rgba(0,0,0,.17));
  }
  28% {
    transform:translate3d(.25px,-2.45px,0) rotate(22deg) scale(1.07);
    filter:blur(.16px) drop-shadow(1.5px 3px 2.2px rgba(0,0,0,.18));
  }
  46% {
    transform:translate3d(-.2px,-1.25px,0) rotate(-16deg) scale(1.02);
    filter:blur(.22px) drop-shadow(1px 2.5px 2px rgba(0,0,0,.16));
  }
  64% {
    transform:translate3d(.12px,-.45px,0) rotate(10deg) scale(1.005);
    filter:blur(.13px) drop-shadow(.6px 1.7px 1.6px rgba(0,0,0,.14));
  }
  80% {
    transform:translate3d(0,0,0) rotate(-3deg) scale(.99);
    filter:blur(.05px) drop-shadow(0 1.2px 1.3px rgba(0,0,0,.13));
  }
  92% {
    transform:translate3d(0,0,0) rotate(1deg) scale(1.005);
    filter:blur(0) drop-shadow(0 1px 1.1px rgba(0,0,0,.14));
  }
  100% {
    transform:translate3d(0,0,0) rotate(0deg) scale(1);
    filter:blur(0) drop-shadow(0 1px 1px rgba(0,0,0,.15));
  }
}

/* No longer shake the entire preview: the interaction belongs to the die/button. */
.dice-preview-shake { animation:none !important; filter:none !important; }

@media (prefers-reduced-motion: reduce) {
  #random-combo-button .dice-roll-animation { animation-duration:1ms !important; animation-iteration-count:1 !important; }
}

/* Main purchase location selector and compact order summary */
.main-city-picker {
  width: min(100%, 520px); margin: 14px auto 18px; padding: 14px 18px;
  border: 1px solid rgba(126,151,196,.45); border-radius: 16px;
  background: rgba(29,39,61,.72); box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.main-city-picker label { display:block; margin-bottom:8px; color:#f4f6fb; font-weight:700; text-align:center; }
.main-city-picker select { width:100%; min-height:46px; }
.selected-info { display:flex; flex-direction:column; gap:0; }
.selected-row { gap:14px; }
.selected-row > span { flex:0 0 auto; }
.selected-row > strong { text-align:left; }
.selected-detail-value { display:flex; align-items:center; justify-content:flex-end; gap:18px; flex-wrap:wrap; }
.selected-detail-value span:last-child { color:#8ee6ff; white-space:nowrap; }
@media (max-width: 700px) { .main-city-picker { margin:12px auto 16px; padding:12px; } .selected-row { gap:8px; } .selected-detail-value { gap:10px; } }

/* CASESTUDIO: compact location picker and spacious, no-scroll desktop order dialog */
.main-city-picker {
  width: min(100%, 520px);
  margin: 8px auto 10px;
  padding: 8px 14px;
  border-radius: 14px;
}
.main-city-picker label { margin-bottom: 4px; font-size: 13px; }
.main-city-picker select { min-height: 34px; height: 36px; padding: 6px 12px; border-radius: 10px; font-size: 14px; }
#order-modal .modal-box {
  width: min(92vw, 680px);
  max-width: 680px;
  max-height: 92vh;
  overflow: visible;
  padding: 24px 30px 22px;
  background: linear-gradient(145deg, rgba(25,31,47,.98), rgba(12,16,26,.99));
  border: 1px solid rgba(132,158,215,.32);
  box-shadow: 0 28px 90px rgba(0,0,0,.58), inset 0 1px rgba(255,255,255,.06);
}
#order-modal .modal-icon { margin-bottom: 4px; }
#order-modal .modal-box h2 { margin: 4px 0 3px; font-size: 25px; }
#order-modal .modal-subtitle { margin: 0 0 14px; font-size: 13px; }
#order-modal .form-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
#order-modal .compact-pair-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10px; align-items: start; }
#order-modal .compact-pair-grid .form-field { min-width: 0; }
#order-modal .compact-pair-grid label { font-size: 12px; line-height: 1.35; }
#order-modal .compact-pair-grid input,
#order-modal .compact-pair-grid select { width: 100%; min-width: 0; padding-inline: 9px; font-size: 13px; }
#order-modal .delivery-pair-grid small { font-size: 10px; line-height: 1.35; }
#order-modal .form-field { margin-bottom: 9px; gap: 5px; }
#order-modal .form-field input,
#order-modal .form-field select,
#order-modal .form-field textarea { padding: 10px 13px; min-height: 42px; border-radius: 11px; }
#order-modal #buyer-notes { min-height: 54px; height: 54px; resize: none; }
#order-modal .order-preview-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 8px 18px;
  padding: 12px 16px;
  margin-top: 8px;
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(49,62,91,.5), rgba(14,18,29,.85));
  border-color: rgba(133,157,211,.24);
}
#order-modal .order-preview-summary div { min-width: 0; gap: 10px; }
#order-modal .order-preview-summary div:last-child { grid-column: 1 / -1; padding-top: 9px; border-top: 1px solid rgba(255,255,255,.12); }
#order-modal .order-preview-summary div:last-child strong { color: #9ff2c6; font-size: 20px; }
#order-modal .modal-actions { margin-top: 12px; }
#order-modal .modal-actions button { padding: 12px 14px; }
@media (max-width: 700px) {
  #order-modal .modal-box { width: min(94vw, 440px); max-width: 440px; max-height: 90vh; overflow-y: auto; padding: 20px 13px 16px; }
  #order-modal .form-grid:not(.compact-pair-grid) { grid-template-columns: 1fr; gap: 0; }
  #order-modal .compact-pair-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 8px; }
  #order-modal .compact-pair-grid label { font-size: 11px; }
  #order-modal .compact-pair-grid input,
  #order-modal .compact-pair-grid select { font-size: 12px; padding-inline: 7px; }
  #order-modal .order-preview-summary { grid-template-columns: 1fr; }
  #order-modal .order-preview-summary div:last-child { grid-column: auto; }
}


/* Refined compact city / brand bar */
.city-brand-bar{display:flex;align-items:center;gap:7px;flex-wrap:nowrap;padding:4px 8px!important;margin:4px auto!important;width:max-content;max-width:100%;min-height:30px;border:1px solid rgba(255,255,255,.09);border-radius:12px;background:rgba(255,255,255,.025);font-size:12px}
.city-brand-bar .city-brand-name{display:none}
.city-brand-bar label{font-size:12px!important;margin:0!important;white-space:nowrap;opacity:.8}
.city-brand-bar select{width:auto!important;min-width:130px;flex:1;padding:7px 10px!important;border-radius:9px!important;font-size:12px!important;min-height:30px}
.selected-info .selected-row:first-child{display:none!important}
.preview-nav{width:30px!important;padding:5px 2px!important;gap:4px!important;border:1px solid rgba(120,130,150,.12)!important;background:rgba(18,22,30,.20)!important;border-radius:12px!important;opacity:.34;transition:opacity .2s,background .2s;box-shadow:none!important}
.preview-nav:hover,.preview-nav:focus-within{opacity:.9;background:rgba(18,22,30,.75)!important}
.preview-nav .nav-arrow{width:36px!important;height:36px!important;min-height:36px!important;padding:0!important;font-size:20px!important;border-radius:8px!important;background:transparent!important;border-color:rgba(255,255,255,.12)!important}
.preview-nav .nav-label{font-size:10px!important;opacity:.45}
.custom-upload-card{order:-999;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:6px;text-align:center;border:1px dashed rgba(255,255,255,.3)!important;background:rgba(255,255,255,.035)!important;cursor:pointer;min-height:140px}
.custom-upload-icon{width:64px;height:64px;border-radius:12px;display:grid;place-items:center;font-size:36px;background:rgba(255,255,255,.06);overflow:hidden}
.custom-upload-icon img{width:100%;height:100%;object-fit:contain}
.custom-upload-card small{font-size:11px;opacity:.7}
.support-link{display:block;margin:10px auto 0;background:transparent;border:0;color:var(--accent,#a9b8ff);text-decoration:underline;text-underline-offset:3px;font-size:13px;cursor:pointer}
.support-chat-backdrop{display:none;position:fixed;inset:0;z-index:99999;background:rgba(0,0,0,.62);align-items:center;justify-content:center;padding:16px}
.support-chat-backdrop.open{display:flex}
.support-chat{width:min(100%,440px);max-height:min(80vh,650px);display:flex;flex-direction:column;background:#171b25;color:#fff;border:1px solid rgba(255,255,255,.12);border-radius:18px;box-shadow:0 24px 80px #0008;overflow:hidden}
.support-chat header{display:flex;align-items:center;justify-content:space-between;padding:15px 18px;border-bottom:1px solid #ffffff18}
.support-chat header button{font-size:25px;color:inherit;background:transparent;border:0;cursor:pointer}
.support-chat-messages{padding:16px;overflow:auto;display:flex;flex-direction:column;gap:10px;min-height:170px}
.support-chat-messages p{max-width:90%;padding:10px 13px;border-radius:14px;margin:0;font-size:14px;line-height:1.6;white-space:pre-wrap}
.bot-message{align-self:flex-start;background:#ffffff12}.user-message{align-self:flex-end;background:#4656a6}
#support-chat-form{display:flex;gap:8px;padding:12px;border-top:1px solid #ffffff18}
#support-chat-form input{min-width:0;flex:1;background:#ffffff0c;color:#fff;border:1px solid #ffffff20;border-radius:10px;padding:11px}
#support-chat-form button{border:0;border-radius:10px;padding:0 16px;background:#6575d6;color:white;font-weight:700}
.support-chat>small{padding:0 14px 14px;opacity:.55;font-size:11px}
@media(max-width:600px){.city-brand-bar{gap:5px;padding:4px 6px!important;margin:3px auto!important}.city-brand-bar label{font-size:11px!important}.city-brand-bar select{min-width:100px}.preview-nav{width:38px!important;opacity:.9}.preview-nav .nav-arrow{width:34px!important;height:34px!important;min-height:34px!important;font-size:19px!important}}

/* FINAL layout polish: compact centered store selector in the marked upper space */
.preview-section{position:relative}
.preview-section>.city-brand-bar{position:absolute!important;top:-3px!important;left:50%!important;transform:translateX(-50%)!important;z-index:20;width:max-content!important;max-width:calc(100% - 24px)!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;padding:6px 10px!important;margin:0!important;border:1px solid rgba(165,190,235,.24)!important;border-radius:14px!important;background:linear-gradient(135deg,rgba(24,34,52,.92),rgba(42,48,70,.88))!important;box-shadow:0 7px 22px rgba(0,0,0,.18),inset 0 1px rgba(255,255,255,.06)!important;backdrop-filter:blur(10px);min-height:0!important}
.preview-section>.city-brand-bar label{font-size:12px!important;font-weight:600!important;opacity:.9!important}
.preview-section>.city-brand-bar select{width:145px!important;min-width:125px!important;max-width:40vw!important;flex:0 1 auto!important;min-height:32px!important;padding:5px 10px!important;border-radius:9px!important;background-color:rgba(108,133,171,.2)!important;border:1px solid rgba(170,195,235,.28)!important;font-size:12px!important;font-weight:700!important}
.preview-section>.preview-header{padding-top:38px!important}
.preview-nav{width:48px!important;min-width:48px!important;padding:8px 5px!important;gap:9px!important;border:1px solid rgba(155,190,245,.28)!important;background:linear-gradient(180deg,rgba(31,43,64,.92),rgba(13,20,34,.88))!important;border-radius:16px!important;opacity:.88!important;box-shadow:0 5px 18px rgba(0,0,0,.2),inset 0 1px rgba(255,255,255,.07)!important;transition:transform .18s,opacity .18s,background .18s!important}
.preview-nav:hover,.preview-nav:focus-within{opacity:1!important;transform:scale(1.04);background:linear-gradient(180deg,rgba(51,73,110,.98),rgba(22,33,55,.98))!important}
.preview-nav .nav-arrow{display:grid!important;place-items:center!important;width:40px!important;height:43px!important;min-height:43px!important;padding:0!important;border:1px solid rgba(184,210,255,.32)!important;border-radius:11px!important;background:linear-gradient(145deg,rgba(106,139,193,.32),rgba(56,76,115,.24))!important;color:#f4f7ff!important;font-size:25px!important;font-weight:800!important;line-height:1!important;text-shadow:0 1px 5px #0008;box-shadow:inset 0 1px rgba(255,255,255,.1),0 2px 8px #0003!important;cursor:pointer!important}
.preview-nav .nav-arrow:hover{background:rgba(107,151,225,.5)!important;border-color:rgba(205,225,255,.6)!important}
.preview-nav .nav-label{font-size:13px!important;opacity:.78!important}
.catalog-browse-button{position:relative;z-index:3;pointer-events:auto!important;min-height:42px!important;font-size:14px!important}
.catalog-gallery-overlay,.catalog-gallery-modal,.catalog-gallery-grid,.catalog-gallery-grid .product-card{pointer-events:auto!important}
@media(max-width:700px){.preview-section>.city-brand-bar{top:0!important;max-width:calc(100% - 12px)!important;padding:5px 7px!important;gap:5px!important}.preview-section>.preview-header{padding-top:42px!important}.preview-section>.city-brand-bar label{font-size:10px!important}.preview-section>.city-brand-bar select{width:120px!important;min-width:95px!important;font-size:11px!important}.preview-nav{width:42px!important;min-width:42px!important;padding:6px 3px!important;gap:7px!important;opacity:1!important}.preview-nav .nav-arrow{width:36px!important;height:39px!important;min-height:39px!important;font-size:23px!important}}


/* CASESTUDIO — subtle, site-matched city dropdown and scrollbar */
.main-city-picker.city-brand-bar{
  overflow:visible!important;
  scrollbar-width:thin;
  scrollbar-color:rgba(143,177,225,.30) transparent;
}
.main-city-picker.city-brand-bar select#buyer-city{
  color:#f3f6ff!important;
  background:rgba(34,45,66,.78)!important;
  border:1px solid rgba(155,185,230,.24)!important;
  border-radius:10px!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.045),0 3px 10px rgba(0,0,0,.12)!important;
  outline:none!important;
  scrollbar-width:thin!important;
  scrollbar-color:rgba(155,185,230,.42) rgba(20,29,45,.65)!important;
  color-scheme:dark;
  appearance:auto;
}
.main-city-picker.city-brand-bar select#buyer-city:focus{
  border-color:rgba(140,185,255,.48)!important;
  box-shadow:0 0 0 2px rgba(100,150,230,.10),inset 0 1px 0 rgba(255,255,255,.05)!important;
}
.main-city-picker.city-brand-bar select#buyer-city option{
  color:#eef3ff!important;
  background:#202b40!important;
  padding:9px 12px!important;
  font-size:13px!important;
}
.main-city-picker.city-brand-bar select#buyer-city option:checked{
  color:#fff!important;
  background:#425d91!important;
}
/* Native popup scrollbars are browser/OS-rendered; style scrollbars wherever Chromium exposes them */
.main-city-picker.city-brand-bar select#buyer-city::-webkit-scrollbar,
.main-city-picker.city-brand-bar select#buyer-city option::-webkit-scrollbar{
  width:7px!important;height:7px!important;
}
.main-city-picker.city-brand-bar select#buyer-city::-webkit-scrollbar-track{
  background:rgba(20,29,45,.45)!important;border-radius:20px!important;
}
.main-city-picker.city-brand-bar select#buyer-city::-webkit-scrollbar-thumb{
  background:rgba(143,177,225,.35)!important;border:2px solid transparent!important;
  background-clip:padding-box!important;border-radius:20px!important;
}
.main-city-picker.city-brand-bar select#buyer-city::-webkit-scrollbar-thumb:hover{
  background:rgba(164,197,244,.62)!important;background-clip:padding-box!important;
}


/* =========================================================
   CASESTUDIO — GLOBAL GLASS SCROLLBAR (ALL CURRENT + FUTURE LISTS)
   Slim, low-contrast, theme-matched scrollbar as requested.
========================================================= */
:root {
  scrollbar-color: rgba(116, 169, 224, .26) transparent;
  scrollbar-width: thin;
}
html, body, * {
  scrollbar-width: thin !important;
  scrollbar-color: rgba(116, 169, 224, .22) transparent !important;
}
*::-webkit-scrollbar {
  width: 5px !important;
  height: 5px !important;
}
*::-webkit-scrollbar-track {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(115, 190, 255, .28), rgba(111, 130, 205, .22)) !important;
  border: 1px solid rgba(185, 218, 255, .08) !important;
  border-radius: 999px !important;
  box-shadow: 0 0 5px rgba(73, 155, 255, .06) !important;
}
*:hover::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(115, 190, 255, .48), rgba(111, 130, 205, .38)) !important;
  border-color: rgba(185, 218, 255, .16) !important;
  box-shadow: 0 0 7px rgba(73, 155, 255, .13) !important;
}
*::-webkit-scrollbar-corner {
  background: transparent !important;
}
/* Keep native select popups and form controls usable; scrollbar skin applies where the browser exposes it. */


/* CASESTUDIO: cohesive slim scrollbars for custom dropdowns and every scrollable menu */
:root{scrollbar-color:rgba(133,177,255,.28) transparent;scrollbar-width:thin}
*{scrollbar-color:rgba(133,177,255,.25) transparent;scrollbar-width:thin}
.case-custom-select-menu,
.case-custom-select-menu *{scrollbar-width:thin;scrollbar-color:rgba(150,190,255,.38) transparent}
.case-custom-select-menu::-webkit-scrollbar{width:5px;height:5px}
.case-custom-select-menu::-webkit-scrollbar-track{background:transparent;margin:8px;border-radius:999px}
.case-custom-select-menu::-webkit-scrollbar-thumb{background:rgba(150,190,255,.28);border:1px solid rgba(180,210,255,.10);border-radius:999px;box-shadow:0 0 8px rgba(70,150,255,.10)}
.case-custom-select-menu:hover::-webkit-scrollbar-thumb{background:rgba(150,190,255,.55)}
.case-custom-select-menu::-webkit-scrollbar-thumb:active{background:rgba(100,175,255,.75)}
/* Native select popup scrollbars are controlled by the operating system; the city picker below uses a themed custom popup. */
#buyer-city.case-native-select-accessible{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;opacity:0!important}
.city-brand-bar{position:relative}
.case-city-select-trigger{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:42px;padding:10px 14px;border-radius:14px;border:1px solid rgba(142,174,230,.35);background:linear-gradient(135deg,rgba(100,130,190,.20),rgba(37,54,88,.32));color:#f4f7ff;font:inherit;font-weight:700;cursor:pointer;box-shadow:inset 0 1px 0 rgba(255,255,255,.06);transition:border-color .2s,background .2s,box-shadow .2s}
.case-city-select-trigger:hover,.case-city-select-trigger[aria-expanded="true"]{border-color:rgba(116,180,255,.7);background:linear-gradient(135deg,rgba(100,150,230,.25),rgba(37,65,110,.42));box-shadow:0 0 18px rgba(60,140,255,.10),inset 0 1px 0 rgba(255,255,255,.08)}
.case-city-select-chevron{width:8px;height:8px;border-right:2px solid #dceaff;border-bottom:2px solid #dceaff;transform:rotate(45deg) translateY(-2px);flex:0 0 auto;transition:transform .18s}
.case-city-select-trigger[aria-expanded="true"] .case-city-select-chevron{transform:rotate(225deg) translate(-1px,-1px)}
.case-custom-select-menu{position:absolute;z-index:9999;inset-inline:0;top:calc(100% + 8px);max-height:min(48vh,360px);overflow-y:auto;overscroll-behavior:contain;padding:6px;border:1px solid rgba(130,170,235,.35);border-radius:14px;background:linear-gradient(160deg,rgba(24,37,65,.98),rgba(11,18,34,.98));backdrop-filter:blur(18px);box-shadow:0 18px 45px rgba(0,0,0,.42),inset 0 1px 0 rgba(255,255,255,.05)}
.case-custom-select-menu[hidden]{display:none!important}
.case-city-option{width:100%;display:flex;align-items:center;justify-content:flex-start;text-align:right;padding:10px 12px;border:1px solid transparent;border-radius:9px;background:transparent;color:#eaf1ff;font:inherit;font-size:14px;cursor:pointer;transition:background .15s,border-color .15s,color .15s}
.case-city-option:hover,.case-city-option:focus-visible{outline:none;background:linear-gradient(90deg,rgba(78,140,230,.20),rgba(112,185,255,.10));border-color:rgba(130,180,255,.18);color:#fff}
.case-city-option[aria-selected="true"]{background:linear-gradient(90deg,rgba(40,115,235,.42),rgba(85,160,255,.18));border-color:rgba(125,180,255,.28);color:#fff}

/* CASESTUDIO premium preview controls — unified glass treatment */
.preview-stage .preview-nav{
  box-sizing:border-box!important;width:56px!important;min-width:56px!important;padding:8px 6px!important;gap:8px!important;
  display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
  border:1px solid rgba(151,205,255,.30)!important;border-radius:22px!important;
  background:radial-gradient(120% 80% at 50% 0%,rgba(91,166,255,.20),transparent 72%),linear-gradient(160deg,rgba(31,53,83,.88),rgba(13,24,43,.84))!important;
  box-shadow:0 8px 24px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,255,255,.13),inset 0 0 0 1px rgba(122,184,255,.05)!important;
  -webkit-backdrop-filter:blur(14px) saturate(135%)!important;backdrop-filter:blur(14px) saturate(135%)!important;
  opacity:.88!important;transform:translateZ(0);transition:opacity .2s ease,box-shadow .2s ease,border-color .2s ease,background .2s ease!important;
}
.preview-stage .preview-nav:hover,.preview-stage .preview-nav:focus-within{
  opacity:1!important;border-color:rgba(133,211,255,.58)!important;
  background:radial-gradient(120% 80% at 50% 0%,rgba(79,190,255,.24),transparent 72%),linear-gradient(160deg,rgba(38,67,108,.96),rgba(15,29,52,.94))!important;
  box-shadow:0 10px 28px rgba(0,0,0,.30),0 0 18px rgba(70,174,255,.12),inset 0 1px 0 rgba(255,255,255,.17)!important;transform:none!important;
}
.preview-stage .preview-nav .nav-arrow{
  appearance:none!important;-webkit-appearance:none!important;display:grid!important;place-items:center!important;flex:0 0 auto!important;
  width:42px!important;height:46px!important;min-width:42px!important;min-height:46px!important;padding:0!important;
  border:1px solid rgba(165,213,255,.34)!important;border-radius:15px!important;
  background:linear-gradient(145deg,rgba(92,153,225,.28),rgba(49,91,151,.20))!important;color:#eff8ff!important;
  font-family:inherit!important;font-size:24px!important;font-weight:700!important;line-height:1!important;text-shadow:0 1px 4px rgba(0,0,0,.28)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.15),0 3px 9px rgba(0,0,0,.12)!important;cursor:pointer!important;
  transition:background .16s ease,border-color .16s ease,box-shadow .16s ease,transform .16s ease!important;
}
.preview-stage .preview-nav .nav-arrow:hover{background:linear-gradient(145deg,rgba(99,190,255,.48),rgba(67,118,194,.38))!important;border-color:rgba(192,233,255,.7)!important;box-shadow:0 0 14px rgba(77,190,255,.22),inset 0 1px 0 rgba(255,255,255,.2)!important;transform:translateY(-1px)!important}
.preview-stage .preview-nav .nav-arrow:active{transform:scale(.96)!important;box-shadow:inset 0 2px 5px rgba(0,0,0,.18)!important}
.preview-stage .preview-nav .nav-arrow:focus-visible{outline:2px solid rgba(119,224,255,.9)!important;outline-offset:2px!important}
.preview-stage .preview-nav .nav-label{
  display:grid!important;place-items:center!important;width:28px!important;height:28px!important;min-height:28px!important;margin:0!important;
  border:1px solid rgba(160,205,255,.13)!important;border-radius:10px!important;background:rgba(130,174,232,.10)!important;
  color:#cdeaff!important;font-size:14px!important;line-height:1!important;opacity:.8!important;filter:saturate(.9)!important;
}
@media(max-width:700px){
  .preview-stage .preview-nav{width:48px!important;min-width:48px!important;padding:7px 4px!important;gap:6px!important;border-radius:18px!important;opacity:.94!important}
  .preview-stage .preview-nav .nav-arrow{width:38px!important;min-width:38px!important;height:42px!important;min-height:42px!important;border-radius:13px!important;font-size:22px!important}
  .preview-stage .preview-nav .nav-label{width:25px!important;height:25px!important;min-height:25px!important;font-size:13px!important}
}

/* ============================================================
   CASESTUDIO — MOBILE FIRST REPAIR (iPhone / touch screens)
   Keep desktop styling intact; override only touch/narrow layouts.
============================================================ */
@media (hover: none) and (pointer: coarse) {
  html, body, button, a, select, input, textarea { touch-action: manipulation; }
  button, a, .product-card, .case-card, .sticker-card { -webkit-tap-highlight-color: transparent; }
}

@media (max-width: 700px) {
  html { width: 100%; overflow-x: clip; }
  body { width: 100%; overflow-x: clip; min-width: 0; }
  .topbar {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) auto !important;
    grid-template-areas: "brand actions" "title title";
    align-items: center !important;
    gap: 7px 10px !important;
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 12px 14px !important;
  }
  .topbar .logo { grid-area: brand; min-width: 0; font-size: 16px !important; letter-spacing: .7px; }
  .topbar .header-title { grid-area: title; text-align: center; font-size: 13px !important; line-height: 1.35; }
  .topbar .header-actions { grid-area: actions; display: flex !important; align-items: center; gap: 6px !important; min-width: 0; }
  .main-layout {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 auto !important;
    padding: 10px 10px calc(24px + env(safe-area-inset-bottom)) !important;
  }
  .preview-section {
    order: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    gap: 8px !important;
    overflow: visible !important;
  }
  /* The device/country picker must take its own row, not float over text. */
  .preview-section > .city-brand-bar {
    position: relative !important;
    inset: auto !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    width: fit-content !important;
    max-width: 100% !important;
    align-self: center !important;
    flex-wrap: wrap !important;
    margin: 0 auto 4px !important;
    padding: 7px 10px !important;
    gap: 7px !important;
    z-index: 1 !important;
  }
  .preview-section > .city-brand-bar label { font-size: 11px !important; white-space: nowrap; }
  .preview-section > .city-brand-bar select { width: auto !important; min-width: 130px !important; max-width: 58vw !important; min-height: 36px !important; font-size: 12px !important; }
  .preview-section > .preview-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: center !important;
    gap: 7px !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 0 8px !important;
    text-align: center !important;
  }
  .preview-section > .preview-header h1 { font-size: clamp(18px, 5vw, 23px) !important; line-height: 1.3 !important; margin: 0 !important; }
  .preview-section .device-name { display: block !important; align-self: center !important; max-width: 100% !important; overflow-wrap: anywhere; font-size: 12px !important; padding: 7px 11px !important; }
  .purchase-type { margin: 0 0 10px !important; }
  .purchase-options { grid-template-columns: repeat(3,minmax(0,1fr)) !important; gap: 6px !important; }
  .purchase-option { min-width: 0 !important; min-height: 44px !important; padding: 9px 4px !important; font-size: clamp(10px, 2.9vw, 12px) !important; gap: 4px !important; }
  .preview-stage {
    display: grid !important;
    grid-template-columns: 42px minmax(0,1fr) 42px !important;
    align-items: center !important;
    justify-items: center !important;
    gap: 4px !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 auto !important;
    padding: 4px 0 0 !important;
  }
  .preview-stage .preview-nav {
    position: relative !important;
    width: 39px !important;
    min-width: 39px !important;
    max-width: 39px !important;
    padding: 6px 3px !important;
    gap: 6px !important;
    border-radius: 15px !important;
    align-self: center !important;
  }
  .preview-stage .preview-nav .nav-arrow { width: 32px !important; min-width: 32px !important; height: 38px !important; min-height: 38px !important; font-size: 21px !important; }
  .preview-stage .preview-nav .nav-label { width: 23px !important; height: 23px !important; min-height: 23px !important; font-size: 12px !important; }
  .phone-area {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 5px 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
  }
  .phone {
    width: min(100%, 270px, 62vw) !important;
    max-width: 270px !important;
    min-width: 0 !important;
    height: auto !important;
    animation: none !important;
    flex: 0 1 auto !important;
  }
  #case-canvas { display: block !important; width: 100% !important; height: auto !important; max-width: 100% !important; touch-action: none !important; }
  .stickers-panel, .cases-panel { order: 2 !important; width: 100% !important; min-width: 0 !important; max-width: 100% !important; padding: 13px !important; }
  .stickers-panel { order: 2 !important; }
  .cases-panel { order: 3 !important; }
  .product-list, .sticker-list, .case-list { min-width: 0 !important; max-width: 100% !important; }
  .side-panel { border-radius: 16px !important; }
  .modal-box, .modal-content { width: calc(100vw - 24px) !important; max-width: calc(100vw - 24px) !important; max-height: calc(100dvh - 28px - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important; overflow-y: auto !important; }
}

@media (max-width: 390px) {
  .main-layout { padding-left: 7px !important; padding-right: 7px !important; }
  .preview-stage { grid-template-columns: 36px minmax(0,1fr) 36px !important; gap: 2px !important; }
  .preview-stage .preview-nav { width: 34px !important; min-width: 34px !important; max-width: 34px !important; }
  .preview-stage .preview-nav .nav-arrow { width: 28px !important; min-width: 28px !important; height: 35px !important; min-height: 35px !important; }
  .phone { width: min(100%, 250px, 61vw) !important; }
  .purchase-option { font-size: 10px !important; }
}


/* Mobile first-screen composition: show the entire phone preview immediately. */
@media (max-width: 700px) {
  .preview-section {
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
    margin-top: 0 !important;
  }
  /* Put the device selector and compact heading first, then the preview; purchase choices follow it. */
  .preview-section > .preview-header { order: 0 !important; margin: 0 0 2px !important; gap: 4px !important; }
  .preview-section > .city-brand-bar { order: 1 !important; margin: 0 auto 2px !important; padding: 5px 8px !important; }
  .preview-section > .preview-stage { order: 2 !important; padding: 0 !important; margin: 0 auto 4px !important; }
  .preview-section > .purchase-type { order: 3 !important; margin: 2px 0 8px !important; }
  .preview-section > .preview-header h1 { font-size: 18px !important; line-height: 1.2 !important; }
  .preview-section .device-name { font-size: 11px !important; padding: 5px 9px !important; line-height: 1.2 !important; }
  .preview-section > .city-brand-bar label { font-size: 10px !important; }
  .preview-section > .city-brand-bar select { min-height: 30px !important; font-size: 11px !important; }
  .preview-stage {
    grid-template-columns: 36px minmax(0,1fr) 36px !important;
    gap: 3px !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
  }
  .preview-stage .preview-nav { width: 34px !important; min-width: 34px !important; max-width: 34px !important; padding: 5px 2px !important; gap: 5px !important; }
  .preview-stage .preview-nav .nav-arrow { width: 29px !important; min-width: 29px !important; height: 34px !important; min-height: 34px !important; font-size: 19px !important; }
  .preview-stage .preview-nav .nav-label { width: 21px !important; height: 21px !important; min-height: 21px !important; font-size: 11px !important; }
  .phone-area { padding: 0 !important; min-height: 0 !important; height: auto !important; overflow: visible !important; }
  .phone {
    width: min(58vw, 19dvh, 220px) !important;
    max-width: min(58vw, 19dvh, 220px) !important;
    height: auto !important;
    margin: 0 auto !important;
  }
  #case-canvas { width: 100% !important; height: auto !important; max-height: 40dvh !important; object-fit: contain !important; }
  .purchase-type h2 { font-size: 13px !important; margin: 0 0 5px !important; }
  .purchase-options { gap: 5px !important; }
  .purchase-option { min-height: 38px !important; padding: 7px 3px !important; font-size: 10px !important; }
}
@media (max-width: 390px) {
  .phone { width: min(56vw, 18dvh, 190px) !important; max-width: min(56vw, 18dvh, 190px) !important; }
  .preview-stage { grid-template-columns: 32px minmax(0,1fr) 32px !important; gap: 2px !important; }
  .preview-stage .preview-nav { width: 31px !important; min-width: 31px !important; max-width: 31px !important; }
  .preview-stage .preview-nav .nav-arrow { width: 27px !important; min-width: 27px !important; }
}

/* FINAL MOBILE FIRST-VIEW FIX: put the phone preview before purchase controls. */
@media (max-width: 700px) {
  .preview-section {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 4px !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
  }
  .preview-section > .preview-header { order: 1 !important; margin: 0 auto 2px !important; padding: 0 !important; gap: 3px !important; align-items: center !important; }
  .preview-section > .city-brand-bar { order: 2 !important; margin: 0 auto 3px !important; }
  .preview-section > .preview-stage { order: 3 !important; margin: 0 auto 5px !important; padding: 0 !important; }
  .preview-section > .purchase-type { order: 4 !important; margin: 6px 0 10px !important; }
  .preview-section > .preview-header h1 { font-size: 17px !important; line-height: 1.15 !important; }
  .preview-section .device-name { font-size: 11px !important; padding: 4px 9px !important; line-height: 1.15 !important; }
  .preview-section > .city-brand-bar { min-height: 0 !important; padding: 4px 8px !important; gap: 5px !important; }
  .preview-section > .city-brand-bar label { font-size: 10px !important; }
  .preview-section > .city-brand-bar select { min-height: 30px !important; padding: 4px 8px !important; font-size: 11px !important; }
  .preview-stage { grid-template-columns: 31px minmax(0,1fr) 31px !important; gap: 3px !important; width: 100% !important; min-height: 0 !important; height: auto !important; }
  .preview-stage .preview-nav { width: 30px !important; min-width: 30px !important; max-width: 30px !important; padding: 4px 2px !important; gap: 4px !important; }
  .preview-stage .preview-nav .nav-arrow { width: 26px !important; min-width: 26px !important; height: 33px !important; min-height: 33px !important; font-size: 18px !important; }
  .preview-stage .preview-nav .nav-label { width: 20px !important; height: 20px !important; min-height: 20px !important; font-size: 10px !important; }
  .phone-area { padding: 0 !important; min-height: 0 !important; height: auto !important; overflow: visible !important; }
  .phone { width: min(70vw, 25.4svh, 270px) !important; max-width: min(70vw, 25.4svh, 270px) !important; height: auto !important; margin: 0 auto !important; animation: floatingPhone 4s ease-in-out infinite !important; will-change: transform; }
  #case-canvas { display: block !important; width: 100% !important; height: auto !important; max-height: 40svh !important; object-fit: contain !important; }
  .purchase-type h2 { font-size: 13px !important; margin: 0 0 5px !important; }
  .purchase-options { grid-template-columns: repeat(3,minmax(0,1fr)) !important; gap: 5px !important; }
  .purchase-option { min-height: 38px !important; padding: 7px 3px !important; font-size: 10px !important; }
}
@media (max-width: 390px) {
  .preview-stage { grid-template-columns: 29px minmax(0,1fr) 29px !important; gap: 2px !important; }
  .preview-stage .preview-nav { width: 28px !important; min-width: 28px !important; max-width: 28px !important; }
  .preview-stage .preview-nav .nav-arrow { width: 24px !important; min-width: 24px !important; }
  .phone { width: min(70vw, 25.4svh, 250px) !important; max-width: min(70vw, 25.4svh, 250px) !important; }
}

/* CASESTUDIO MOBILE ORDER PATCH — explicit order for EVERY direct child.
   Earlier patches ordered only the header/stage; all other flex children
   kept order:0 and therefore jumped above the preview. */
@media (max-width: 700px) {
  .preview-section { display:flex !important; flex-direction:column !important; }
  .preview-section > .preview-header { order:1 !important; }
  .preview-section > .city-brand-bar { order:2 !important; }
  .preview-section > .preview-stage { order:3 !important; }
  .preview-section > .dice-area { order:4 !important; }
  .preview-section > .nav-hint { order:5 !important; }
  .preview-section > .rotation-help { order:6 !important; }
  .preview-section > .rotation-control { order:7 !important; }
  .preview-section > .purchase-type { order:8 !important; }
  .preview-section > .selected-info { order:9 !important; }
  .preview-section > .quantity-section { order:10 !important; }
  .preview-section > .packaging-section { order:11 !important; }
  .preview-section > #order-button { order:12 !important; }
  .preview-section > #open-support-chat { order:13 !important; }
}

/* CASESTUDIO — larger, clearer mobile preview (requested 2026-09-29) */
@media (max-width: 700px) {
  .preview-section > .preview-stage {
    display: grid !important;
    grid-template-columns: 34px minmax(0, 1fr) 34px !important;
    align-items: center !important;
    gap: 4px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 4px 0 10px !important;
    margin: 0 auto 8px !important;
    overflow: visible !important;
  }
  .preview-stage .phone-area {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }
  .preview-stage .phone {
    width: min(78vw, 360px) !important;
    max-width: min(78vw, 360px) !important;
    min-width: 0 !important;
    height: auto !important;
    margin: 0 auto !important;
  }
  .preview-stage #case-canvas {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: 524 / 824 !important;
    object-fit: contain !important;
    touch-action: none !important;
  }
  .preview-stage .preview-nav {
    position: relative !important;
    z-index: 3 !important;
    width: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    padding: 4px 2px !important;
    gap: 5px !important;
    align-self: center !important;
  }
  .preview-stage .preview-nav .nav-arrow {
    width: 28px !important;
    min-width: 28px !important;
    height: 38px !important;
    min-height: 38px !important;
    font-size: 20px !important;
  }
  .preview-stage .preview-nav .nav-label {
    width: 22px !important;
    height: 22px !important;
    min-height: 22px !important;
    font-size: 11px !important;
  }
}
@media (max-width: 390px) {
  .preview-section > .preview-stage { grid-template-columns: 30px minmax(0,1fr) 30px !important; gap: 3px !important; }
  .preview-stage .preview-nav { width: 29px !important; min-width: 29px !important; max-width: 29px !important; }
  .preview-stage .preview-nav .nav-arrow { width: 25px !important; min-width: 25px !important; }
  .preview-stage .phone { width: min(78vw, 340px) !important; max-width: min(78vw, 340px) !important; }
}

/* Mobile positioning pass based on the marked screenshot (2026-09-29).
   Keep the preview heading and selected-device label on one centered row,
   put the device selector directly beneath, and center the enlarged phone
   with its side controls vertically aligned to the phone body. */
@media (max-width: 700px) {
  .preview-section > .preview-header {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    column-gap: 12px !important;
    row-gap: 5px !important;
    width: 100% !important;
    margin: 0 auto 5px !important;
    padding: 0 4px !important;
    text-align: center !important;
  }
  .preview-section > .preview-header h1 {
    flex: 0 1 auto !important;
    margin: 0 !important;
    font-size: clamp(17px, 4.8vw, 22px) !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
  }
  .preview-section .device-name {
    flex: 0 1 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    max-width: 58vw !important;
    font-size: clamp(11px, 3.2vw, 14px) !important;
    line-height: 1.2 !important;
    padding: 5px 10px !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }
  .preview-section > .city-brand-bar {
    order: 2 !important;
    align-self: center !important;
    margin: 0 auto 8px !important;
  }
  .preview-section > .preview-stage {
    order: 3 !important;
    width: 100% !important;
    max-width: 680px !important;
    grid-template-columns: 42px minmax(0,1fr) 42px !important;
    align-items: center !important;
    justify-items: center !important;
    gap: 6px !important;
    margin: 0 auto 10px !important;
    padding: 0 !important;
  }
  .preview-stage .phone-area {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 0 !important;
    overflow: visible !important;
  }
  .preview-stage .phone {
    width: min(100%, 390px, 78vw) !important;
    max-width: min(390px, 78vw) !important;
    height: auto !important;
    margin: 0 auto !important;
    animation: floatingPhone 4s ease-in-out infinite !important;
    will-change: transform;
  }
  .preview-stage .preview-nav {
    align-self: center !important;
    justify-self: center !important;
    position: relative !important;
  }
}
@media (max-width: 390px) {
  .preview-section > .preview-header { column-gap: 7px !important; }
  .preview-section > .preview-header h1 { font-size: 16px !important; }
  .preview-section .device-name { max-width: 54vw !important; font-size: 10px !important; }
  .preview-section > .preview-stage { grid-template-columns: 31px minmax(0,1fr) 31px !important; gap: 3px !important; }
  .preview-stage .phone { width: min(100%, 340px, 78vw) !important; max-width: min(340px, 78vw) !important; }
}

/* FINAL MOBILE ALIGNMENT — positions from Hani's green annotations (2026-09-29) */
@media (max-width: 700px) {
  /* Lift the slogan to the top of the mobile header. */
  .topbar {
    grid-template-areas: "title title" "brand actions" !important;
    grid-template-columns: minmax(0,1fr) auto !important;
    gap: 4px 10px !important;
    padding-top: 7px !important;
    padding-bottom: 9px !important;
  }
  .topbar .header-title {
    grid-area: title !important;
    margin: 0 0 1px !important;
    align-self: start !important;
    line-height: 1.2 !important;
  }

  /* Right side: preview heading + selected phone name.
     Left side: purchase-origin selector, aligned beside the heading. */
  .preview-section {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    padding-top: 0 !important;
    gap: 0 !important;
  }
  .preview-section > .preview-header {
    order: 1 !important;
    width: 58% !important;
    min-height: 68px !important;
    margin: 0 0 1px auto !important;
    padding: 0 2px 0 0 !important;
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: flex-end !important;
    justify-content: center !important;
    text-align: right !important;
    gap: 4px !important;
  }
  .preview-section > .preview-header h1 {
    width: 100% !important;
    text-align: right !important;
    white-space: normal !important;
    font-size: clamp(16px, 4.4vw, 21px) !important;
    line-height: 1.25 !important;
  }
  .preview-section .device-name {
    align-self: flex-end !important;
    max-width: 100% !important;
    margin: 0 !important;
    text-align: right !important;
    white-space: nowrap !important;
    overflow-wrap: normal !important;
    font-size: clamp(10px, 3vw, 13px) !important;
    padding: 4px 8px !important;
  }
  .preview-section > .city-brand-bar {
    order: 2 !important;
    position: absolute !important;
    top: 7px !important;
    left: 0 !important;
    right: auto !important;
    width: 39% !important;
    max-width: 39% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 3px 0 0 !important;
    align-self: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 5px !important;
    text-align: left !important;
  }
  .preview-section > .city-brand-bar label {
    text-align: left !important;
    font-size: clamp(10px, 2.8vw, 12px) !important;
    line-height: 1.25 !important;
  }
  .preview-section > .city-brand-bar select {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 38px !important;
    padding: 5px 7px !important;
    font-size: clamp(10px, 2.8vw, 12px) !important;
  }

  /* Raise the preview a little and retain its large centered size. */
  .preview-section > .preview-stage {
    order: 3 !important;
    margin-top: -2px !important;
    margin-bottom: 7px !important;
  }
}

@media (max-width: 390px) {
  .preview-section > .preview-header { width: 57% !important; min-height: 64px !important; }
  .preview-section > .city-brand-bar { width: 40% !important; max-width: 40% !important; top: 5px !important; }
  .preview-section > .city-brand-bar select { min-height: 35px !important; }
}


/* Mobile finishing pass: selected phone directly below preview title,
   centered purchase-origin label, and side catalog shortcuts. */
@media (max-width: 700px) {
  .preview-section > .preview-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    justify-content: center !important;
    text-align: right !important;
    gap: 5px !important;
  }
  .preview-section > .preview-header h1 {
    order: 1 !important;
    display: block !important;
    width: 100% !important;
    text-align: right !important;
    margin: 0 !important;
  }
  .preview-section > .preview-header .device-name {
    order: 2 !important;
    display: inline-block !important;
    align-self: flex-end !important;
    margin: 0 !important;
    text-align: right !important;
  }
  .preview-section > .city-brand-bar {
    align-items: center !important;
    text-align: center !important;
  }
  .preview-section > .city-brand-bar label {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
  }
  .preview-section > .city-brand-bar select {
    text-align: center !important;
    text-align-last: center !important;
  }
  .preview-stage .preview-nav {
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    overflow: visible !important;
  }
  .preview-stage .side-catalog-button {
    display: flex !important;
    flex: 0 0 auto !important;
    width: 38px !important;
    min-height: 76px !important;
    padding: 5px 3px !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid #3d5274 !important;
    border-radius: 11px !important;
    background: linear-gradient(160deg, #1d3558, #101827) !important;
    color: #f2f6ff !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 1.45 !important;
    text-align: center !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    box-shadow: 0 3px 10px rgba(0,0,0,.25) !important;
    cursor: pointer !important;
  }
}
@media (max-width: 390px) {
  .preview-stage .side-catalog-button { width: 34px !important; font-size: 9px !important; }
}

/* ============================================================
   CASESTUDIO — unified preview side controls
   Same visual language on desktop and mobile; compact sizing
   adapts only to the available screen width, not the design.
============================================================ */
.preview-stage .preview-nav,
.preview-stage .preview-nav:hover,
.preview-stage .preview-nav:focus-within {
  box-sizing: border-box !important;
  width: 58px !important;
  min-width: 58px !important;
  padding: 8px 6px !important;
  gap: 8px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid rgba(142, 177, 230, .28) !important;
  border-radius: 20px !important;
  background: linear-gradient(165deg, rgba(28, 43, 67, .96), rgba(14, 21, 35, .96)) !important;
  box-shadow: 0 7px 20px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.09) !important;
  opacity: 1 !important;
  transform: none !important;
  -webkit-backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: blur(12px) !important;
}
.preview-stage .preview-nav .nav-arrow,
.preview-stage .preview-nav .nav-arrow:hover,
.preview-stage .preview-nav .nav-arrow:active {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: grid !important;
  place-items: center !important;
  flex: 0 0 auto !important;
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  border: 1px solid rgba(165, 194, 240, .30) !important;
  border-radius: 14px !important;
  background: linear-gradient(155deg, #263e63, #192a45) !important;
  color: #eaf3ff !important;
  font-family: inherit !important;
  font-size: 23px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-shadow: none !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 3px 8px rgba(0,0,0,.18) !important;
  transform: none !important;
  cursor: pointer !important;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease !important;
}
.preview-stage .preview-nav .nav-arrow:hover {
  background: linear-gradient(155deg, #355783, #223b60) !important;
  border-color: rgba(165, 213, 255, .62) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 0 12px rgba(90,160,255,.14) !important;
}
.preview-stage .preview-nav .nav-arrow:active { transform: scale(.97) !important; }
.preview-stage .preview-nav .nav-arrow:focus-visible,
.preview-stage .preview-nav .side-catalog-button:focus-visible {
  outline: 2px solid #8bcaff !important;
  outline-offset: 2px !important;
}
.preview-stage .preview-nav .side-catalog-button {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  box-sizing: border-box !important;
  width: 44px !important;
  min-width: 44px !important;
  min-height: 68px !important;
  padding: 7px 4px !important;
  border: 1px solid rgba(153, 190, 246, .30) !important;
  border-radius: 13px !important;
  background: linear-gradient(160deg, rgba(48, 69, 104, .95), rgba(27, 42, 67, .98)) !important;
  color: #edf4ff !important;
  font-family: inherit !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
  letter-spacing: 0 !important;
  text-align: center !important;
  white-space: normal !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 3px 8px rgba(0,0,0,.16) !important;
  cursor: pointer !important;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease !important;
}
.preview-stage .preview-nav .side-catalog-button:hover {
  background: linear-gradient(160deg, rgba(62, 91, 138, .98), rgba(33, 54, 87, .98)) !important;
  border-color: rgba(165, 213, 255, .58) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 0 12px rgba(90,160,255,.12) !important;
}
.preview-stage .preview-nav .nav-label { display: none !important; }

/* Keep the exact same control styling on touch devices. */
@media (max-width: 700px) {
  .preview-stage .preview-nav,
  .preview-stage .preview-nav:hover,
  .preview-stage .preview-nav:focus-within {
    width: 58px !important;
    min-width: 58px !important;
    padding: 8px 6px !important;
    gap: 8px !important;
    border-radius: 20px !important;
  }
  .preview-stage .preview-nav .nav-arrow,
  .preview-stage .preview-nav .nav-arrow:hover,
  .preview-stage .preview-nav .nav-arrow:active {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    font-size: 23px !important;
    border-radius: 14px !important;
  }
  .preview-stage .preview-nav .side-catalog-button {
    width: 44px !important;
    min-width: 44px !important;
    min-height: 68px !important;
    padding: 7px 4px !important;
    font-size: 10px !important;
    line-height: 1.5 !important;
    border-radius: 13px !important;
  }
}

/* CASESTUDIO mobile side controls: remove the cramped outer rail and give
   each control its own breathing room. This overrides older narrow rules. */
@media (max-width: 700px) {
  .preview-section > .preview-stage {
    grid-template-columns: 68px minmax(0, 1fr) 68px !important;
    column-gap: 8px !important;
    align-items: center !important;
  }

  .preview-stage .preview-nav,
  .preview-stage .preview-nav:hover,
  .preview-stage .preview-nav:focus-within {
    width: 68px !important;
    min-width: 68px !important;
    max-width: 68px !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    gap: 12px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  .preview-stage .preview-nav .nav-arrow,
  .preview-stage .preview-nav .nav-arrow:hover,
  .preview-stage .preview-nav .nav-arrow:active {
    width: 50px !important;
    min-width: 50px !important;
    height: 50px !important;
    min-height: 50px !important;
    padding: 0 !important;
    border: 1px solid rgba(157, 194, 247, .45) !important;
    border-radius: 17px !important;
    background: linear-gradient(145deg, #263f66 0%, #172944 100%) !important;
    color: #f0f6ff !important;
    font-size: 25px !important;
    line-height: 1 !important;
    box-shadow: 0 5px 13px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.13) !important;
  }

  .preview-stage .preview-nav .side-catalog-button,
  .preview-stage .preview-nav .side-catalog-button:hover {
    width: 66px !important;
    min-width: 66px !important;
    max-width: 66px !important;
    height: 72px !important;
    min-height: 72px !important;
    max-height: 72px !important;
    box-sizing: border-box !important;
    padding: 8px 5px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid rgba(157, 194, 247, .42) !important;
    border-radius: 16px !important;
    background: linear-gradient(155deg, #20385b 0%, #15243c 100%) !important;
    color: #f2f6ff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    text-align: center !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
    word-break: keep-all !important;
    box-shadow: 0 5px 13px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.10) !important;
  }

  .preview-stage .preview-nav .nav-arrow:active,
  .preview-stage .preview-nav .side-catalog-button:active {
    transform: scale(.96) !important;
  }
}

@media (max-width: 390px) {
  .preview-section > .preview-stage {
    grid-template-columns: 60px minmax(0, 1fr) 60px !important;
    column-gap: 4px !important;
  }
  .preview-stage .preview-nav,
  .preview-stage .preview-nav:hover,
  .preview-stage .preview-nav:focus-within {
    width: 60px !important;
    min-width: 60px !important;
    max-width: 60px !important;
  }
  .preview-stage .preview-nav .side-catalog-button,
  .preview-stage .preview-nav .side-catalog-button:hover {
    width: 58px !important;
    min-width: 58px !important;
    max-width: 58px !important;
    font-size: 10px !important;
  }
  .preview-stage .preview-nav .nav-arrow,
  .preview-stage .preview-nav .nav-arrow:hover,
  .preview-stage .preview-nav .nav-arrow:active {
    width: 46px !important;
    min-width: 46px !important;
    height: 46px !important;
    min-height: 46px !important;
  }
}

/* CASESTUDIO — slightly larger mobile phone preview (2026-09-29)
   Preserve the established header, ordering, and unified side controls. */
@media (max-width: 700px) {
  .preview-stage .phone {
    width: min(84vw, 390px) !important;
    max-width: min(84vw, 390px) !important;
  }
}
@media (max-width: 390px) {
  .preview-stage .phone {
    width: min(84vw, 365px) !important;
    max-width: min(84vw, 365px) !important;
  }
}


/* CASESTUDIO — enlarge mobile preview while preserving the canvas' native 524:824 ratio.
   Uploaded artwork is drawn proportionally in script.js using a uniform fit scale. */
@media (max-width: 700px) {
  .preview-section > .preview-stage {
    grid-template-columns: 28px minmax(0, 1fr) 28px !important;
    column-gap: 3px !important;
  }
  .preview-stage .phone-area {
    width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
  }
  .preview-stage .phone {
    width: min(100%, 430px) !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 524 / 824 !important;
    flex: 0 1 auto !important;
  }
  .preview-stage #case-canvas {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 524 / 824 !important;
    object-fit: contain !important;
    object-position: center center !important;
  }
}
@media (max-width: 390px) {
  .preview-section > .preview-stage {
    grid-template-columns: 25px minmax(0, 1fr) 25px !important;
    column-gap: 2px !important;
  }
}

/* CASESTUDIO MOBILE EDGE-SAFE SIDE CONTROLS — final override
   Keep both side-control rails inside the viewport on narrow phones. */
@media (max-width: 700px) {
  .preview-section,
  .preview-section > .preview-stage {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .preview-section > .preview-stage {
    grid-template-columns: 54px minmax(0, 1fr) 54px !important;
    column-gap: 4px !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
    overflow: visible !important;
  }
  .preview-stage .preview-nav,
  .preview-stage .preview-nav:hover,
  .preview-stage .preview-nav:focus-within {
    width: 54px !important;
    min-width: 54px !important;
    max-width: 54px !important;
    box-sizing: border-box !important;
  }
  .preview-stage .preview-nav .nav-arrow,
  .preview-stage .preview-nav .nav-arrow:hover,
  .preview-stage .preview-nav .nav-arrow:active {
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 46px !important;
    min-height: 46px !important;
    box-sizing: border-box !important;
  }
  .preview-stage .preview-nav .side-catalog-button,
  .preview-stage .preview-nav .side-catalog-button:hover {
    width: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
    height: 68px !important;
    min-height: 68px !important;
    max-height: 68px !important;
    padding: 6px 3px !important;
    font-size: 10px !important;
    line-height: 1.3 !important;
    overflow-wrap: anywhere !important;
    box-sizing: border-box !important;
  }
  .preview-stage .phone-area {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .preview-stage .phone {
    width: min(100%, 430px) !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 524 / 824 !important;
    box-sizing: border-box !important;
  }
  .preview-stage #case-canvas {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 524 / 824 !important;
    object-fit: contain !important;
  }
}

@media (max-width: 360px) {
  .preview-section > .preview-stage {
    grid-template-columns: 46px minmax(0, 1fr) 46px !important;
    column-gap: 3px !important;
    padding-left: 2px !important;
    padding-right: 2px !important;
  }
  .preview-stage .preview-nav,
  .preview-stage .preview-nav:hover,
  .preview-stage .preview-nav:focus-within {
    width: 46px !important;
    min-width: 46px !important;
    max-width: 46px !important;
  }
  .preview-stage .preview-nav .side-catalog-button,
  .preview-stage .preview-nav .side-catalog-button:hover {
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    font-size: 9px !important;
  }
  .preview-stage .preview-nav .nav-arrow,
  .preview-stage .preview-nav .nav-arrow:hover,
  .preview-stage .preview-nav .nav-arrow:active {
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    height: 42px !important;
    min-height: 42px !important;
  }
}

/* Gallery layout repair + modal filters matching the side-column controls */
.catalog-gallery-modal{min-height:0;min-width:0}
.catalog-gallery-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding:12px 18px;border-bottom:1px solid rgba(180,205,245,.14);background:rgba(5,10,24,.28);overflow:visible;flex:0 0 auto}
.gallery-sort-wrap{display:flex;align-items:center;gap:8px;color:#dce8ff;font-size:13px;font-weight:700;white-space:nowrap}
.gallery-sort{min-width:145px;max-width:100%;padding:9px 12px;border:1px solid rgba(151,184,235,.3);border-radius:10px;background:#17243a;color:#f1f6ff;font:inherit}
.gallery-tier-filter{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin:0;padding:0;border:0;background:transparent;min-width:0}
.gallery-tier-filter .sticker-tier-filter-label{color:#c8d6ee;font-size:13px;margin-inline-end:3px}
.gallery-tier-filter .sticker-filter-chip{flex:0 0 auto}
.catalog-gallery-grid{min-height:0;align-content:start;grid-auto-rows:max-content}
.catalog-gallery-grid .catalog-gallery-card{position:relative!important;inset:auto!important;transform:none!important;float:none!important;width:auto!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:hidden!important;box-sizing:border-box!important;display:flex!important;flex-direction:column!important;align-self:start!important;justify-self:stretch!important;white-space:normal!important}
.catalog-gallery-grid .catalog-gallery-card[hidden]{display:none!important}
.catalog-gallery-grid .catalog-gallery-card .product-image{position:relative!important;inset:auto!important;flex:0 0 165px!important;width:100%!important;height:165px!important;min-height:165px!important;max-height:165px!important;object-fit:contain!important}
.catalog-gallery-grid .catalog-gallery-card .product-info{position:relative!important;inset:auto!important;flex:1 1 auto!important;height:auto!important;min-height:0!important;overflow-wrap:anywhere}
.catalog-gallery-grid .catalog-gallery-card .product-name,.catalog-gallery-grid .catalog-gallery-card .product-description{position:static!important;transform:none!important;white-space:normal!important;overflow-wrap:anywhere}
.catalog-gallery-grid .catalog-gallery-card .gallery-empty{grid-column:1/-1;color:#dbe7ff;text-align:center;padding:20px}
@media(max-width:600px){
 .catalog-gallery-toolbar{padding:10px;gap:10px;align-items:stretch}
 .gallery-sort-wrap{width:100%;justify-content:space-between}
 .gallery-sort{flex:1;min-width:0}
 .gallery-tier-filter{width:100%;justify-content:flex-start;gap:6px}
 .gallery-tier-filter .sticker-tier-filter-label{width:100%}
 .catalog-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
 .catalog-gallery-grid .catalog-gallery-card{min-width:0!important;padding:8px!important;gap:8px!important}
 .catalog-gallery-grid .catalog-gallery-card .product-image{flex-basis:115px!important;height:115px!important;min-height:115px!important;max-height:115px!important;font-size:52px!important}
 .catalog-gallery-grid .catalog-gallery-card .product-info{min-width:0!important}
}


/* Mobile: device name sits directly beneath preview heading */
@media (max-width: 700px) {
  .preview-section .preview-header {
    display:flex !important;
    flex-direction:column !important;
    align-items:flex-end !important;
    justify-content:flex-start !important;
    gap:4px !important;
    text-align:right !important;
  }
  .preview-section .preview-header h1 {
    width:100% !important;
    margin:0 !important;
    text-align:right !important;
  }
  .preview-section .preview-header #device-name-display {
    display:block !important;
    position:static !important;
    inset:auto !important;
    width:100% !important;
    margin:0 !important;
    text-align:right !important;
    align-self:stretch !important;
    transform:none !important;
    order:2 !important;
  }
}
.catalog-gallery-device-search{display:flex;align-items:center;gap:9px;width:100%;min-width:0}
.catalog-gallery-device-search input{width:100%;min-width:0;box-sizing:border-box;padding:12px 14px;border:1px solid rgba(125,164,235,.28);border-radius:13px;background:rgba(17,28,46,.9);color:inherit;font:inherit;outline:none}
.catalog-gallery-device-search input:focus{border-color:rgba(132,181,255,.8);box-shadow:0 0 0 3px rgba(80,140,230,.12)}

/* Prevent iOS Safari focus zoom on all editable controls */
@media (max-width: 900px){
  input, select, textarea, button[contenteditable="true"], [contenteditable="true"]{font-size:16px !important;}
}
.catalog-gallery-device-search{position:relative}
.gallery-device-suggestions{position:absolute;z-index:9999;top:calc(100% + 6px);right:0;left:0;max-height:260px;overflow-y:auto;border:1px solid rgba(125,164,235,.3);border-radius:12px;background:#101b2d;box-shadow:0 12px 30px rgba(0,0,0,.35)}
.gallery-device-suggestions[hidden]{display:none!important}
.gallery-device-suggestions .device-suggestion{width:100%;text-align:right;border:0;border-radius:0;background:transparent;color:inherit;padding:12px 14px;display:flex;justify-content:space-between;gap:12px}
.gallery-device-suggestions .device-suggestion+ .device-suggestion{border-top:1px solid rgba(255,255,255,.08)}


/* Prize state: side catalog buttons stay visibly disabled until the prize is claimed. */
.preview-stage .side-catalog-button:disabled {
  opacity: .38 !important;
  pointer-events: none !important;
  cursor: not-allowed !important;
  filter: grayscale(.65) saturate(.35);
}

@media (max-width: 520px) {
  .nav-filter-trigger { width: 37px; min-height: 29px; font-size: 7px; }
  .nav-filter-trigger-icon { font-size: 10px; }
  .nav-filter-menu { grid-template-columns: repeat(2, 32px); padding: 6px; gap: 4px; }
  .nav-filter-chip { width: 32px; height: 32px; }
}

/* =====================================================
   CART UX REFINEMENT — spacious items + product preview
===================================================== */
.cart-modal-box {
  width: min(94vw, 720px);
  max-width: 720px;
}

.cart-items { gap: 12px; max-height: min(58vh, 520px); padding: 2px 3px 4px; }
.cart-item {
  grid-template-columns: minmax(0,1fr) auto;
  align-items: stretch;
  min-height: 112px;
  padding: 12px;
  gap: 12px;
  overflow: visible;
}
.cart-item-main {
  min-width: 0;
  display: grid;
  grid-template-columns: 70px minmax(0,1fr);
  align-items: center;
  gap: 12px;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  color: inherit;
  text-align: right;
  cursor: pointer;
  border-radius: 11px;
}
.cart-item-main:focus-visible { outline: 2px solid rgba(126,208,255,.75); outline-offset: 3px; }
.cart-item-thumb {
  width: 70px;
  height: 86px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(145deg,rgba(52,66,94,.72),rgba(15,19,28,.95));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: inset 0 1px rgba(255,255,255,.07), 0 7px 18px rgba(0,0,0,.20);
}
.cart-item-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 7px; }
.cart-item-thumb span { font-size: 28px; opacity: .8; }
.cart-item-thumb.is-prize { border-color: rgba(255,102,126,.48); box-shadow: 0 0 0 1px rgba(255,102,126,.08), 0 8px 22px rgba(255,55,84,.10); }
.cart-item-content { min-width: 0; overflow: visible; }
.cart-item-title { white-space: normal; line-height: 1.35; word-break: break-word; }
.cart-item-details { overflow: visible; }
.cart-item-details span { white-space: normal; line-height: 1.35; }
.cart-item-price { min-width: 70px; }
.cart-gift-ribbon { display: inline-flex; margin-bottom: 5px; }

/* Checkout/order modal must sit above the cart modal instead of behind it. */
#cart-modal { z-index: 1000; }
#order-modal { z-index: 1200; }
#cart-product-preview-modal { z-index: 1300; }

/* Product preview modal */
.cart-product-preview-box {
  width: min(94vw, 760px);
  max-width: 760px;
  background: linear-gradient(145deg, rgba(25,31,47,.99), rgba(10,14,23,.99));
  border: 1px solid rgba(126,164,225,.30);
  box-shadow: 0 28px 90px rgba(0,0,0,.62), inset 0 1px rgba(255,255,255,.05);
}
.cart-product-preview-layout {
  display: grid;
  grid-template-columns: minmax(240px, .9fr) minmax(260px, 1.1fr);
  gap: 20px;
  align-items: stretch;
  margin-top: 14px;
}
.cart-product-visual {
  min-height: 310px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.10);
  background: radial-gradient(circle at 50% 25%, rgba(90,117,169,.22), rgba(13,17,27,.96) 68%);
  display: grid;
  place-items: center;
  padding: 22px;
  overflow: hidden;
}
.cart-preview-phone {
  position: relative;
  width: min(190px, 78%);
  aspect-ratio: .52;
  border-radius: 30px;
  padding: 9px;
  background: linear-gradient(145deg,#242a35,#080a0e);
  box-shadow: 0 24px 45px rgba(0,0,0,.40), inset 0 1px 1px rgba(255,255,255,.16);
}
.cart-preview-phone::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 25px;
  border: 1px solid rgba(255,255,255,.06);
  pointer-events: none;
}
.cart-preview-phone img {
  position: absolute;
  inset: 9px;
  width: calc(100% - 18px);
  height: calc(100% - 18px);
  object-fit: contain;
  border-radius: 23px;
}
#cart-preview-canvas {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 23px;
  object-fit: contain;
}
.cart-preview-phone #cart-preview-sticker-image { z-index: 2; padding: 23% 18%; object-fit: contain; filter: drop-shadow(0 7px 7px rgba(0,0,0,.30)); }
.cart-preview-sticker-only { display:none; width: min(190px,78%); aspect-ratio:.52; place-items:center; }
#cart-preview-sticker-only-canvas { display:block; width:100%; height:100%; object-fit:contain; filter: drop-shadow(0 14px 18px rgba(0,0,0,.32)); }
.cart-product-visual.preview-sticker-only .cart-preview-phone { display:none; }
.cart-product-visual.preview-sticker-only .cart-preview-sticker-only { display:grid; }
.cart-product-preview-details {
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap: 8px;
  padding: 8px 0;
}
.cart-preview-detail-row {
  display:grid;
  grid-template-columns: 110px minmax(0,1fr);
  gap:12px;
  align-items:center;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.065);
}
.cart-preview-detail-row span { color:#8f9aac; font-size:12px; }
.cart-preview-detail-row strong { color:#f5f7fb; font-size:13px; text-align:left; word-break:break-word; }

@media (max-width: 700px) {
  .cart-item { grid-template-columns: minmax(0,1fr) 58px; min-height: 105px; }
  .cart-item-main { grid-template-columns: 58px minmax(0,1fr); gap:9px; }
  .cart-item-thumb { width:58px; height:76px; }
  .cart-item-price { min-width:58px; }
  .cart-product-preview-layout { grid-template-columns:1fr; gap:12px; }
  .cart-product-visual { min-height:260px; }
  .cart-product-preview-box { max-height:90vh; overflow-y:auto; }
}


/* Prize cart item — keep the winner badge and all text safely inside the card. */
.cart-item-prize {
  overflow: hidden !important;
  box-sizing: border-box;
  min-width: 0;
}
.cart-item-prize .cart-item-main,
.cart-item-prize .cart-item-content,
.cart-item-prize .cart-item-details,
.cart-item-prize .cart-item-title {
  min-width: 0;
  max-width: 100%;
}
.cart-item-prize .cart-gift-ribbon {
  max-width: 100%;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-item-prize .cart-prize-breakdown {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
@media (max-width: 700px) {
  .cart-item-prize { padding: 10px; gap: 8px; }
  .cart-item-prize .cart-item-main { gap: 8px; }
  .cart-item-prize .cart-item-details span { overflow-wrap: anywhere; }
  .cart-item-prize .cart-item-price { min-width: 56px; }
}

/* Add-to-cart success modal */
.cart-added-overlay{position:fixed;inset:0;z-index:10050;display:grid;place-items:center;padding:18px;background:rgba(3,7,12,.48);backdrop-filter:blur(7px);opacity:0;visibility:hidden;transition:opacity .2s ease,visibility .2s ease}
.cart-added-overlay.show{opacity:1;visibility:visible}
.cart-added-card{width:min(420px,calc(100vw - 32px));background:linear-gradient(180deg,#151b25,#10151d);border:1px solid rgba(255,255,255,.11);border-radius:22px;padding:26px 24px 22px;box-shadow:0 28px 90px rgba(0,0,0,.5);text-align:center;position:relative;transform:translateY(10px) scale(.97);transition:transform .22s ease}
.cart-added-overlay.show .cart-added-card{transform:translateY(0) scale(1)}
.cart-added-close{position:absolute;top:10px;left:10px;width:32px;height:32px;border:0;border-radius:10px;background:rgba(255,255,255,.06);color:#b8c2cf;font-size:22px;line-height:1;cursor:pointer}
.cart-added-icon{width:58px;height:58px;border-radius:50%;display:grid;place-items:center;margin:2px auto 14px;background:rgba(58,211,139,.12);border:1px solid rgba(58,211,139,.35);color:#62e6a5;font-size:30px;font-weight:900;box-shadow:0 8px 28px rgba(58,211,139,.12)}
.cart-added-card h3{margin:0;color:#fff;font-size:18px}
.cart-added-card p{margin:9px 0 20px;color:#9ba7b7;font-size:12px;line-height:1.7}
.cart-added-actions{display:grid;grid-template-columns:1fr 1.25fr;gap:9px}
.cart-added-actions button{border-radius:12px;padding:12px 10px;font:inherit;font-size:12px;font-weight:800;cursor:pointer;border:1px solid rgba(255,255,255,.1)}
.cart-added-continue{background:#171e28;color:#dce4ed}
.cart-added-go-cart{background:linear-gradient(135deg,#64dcff,#7c8cff);color:#071017;border-color:transparent!important}
.cart-added-actions button:hover{filter:brightness(1.08)}
@media(max-width:480px){.cart-added-actions{grid-template-columns:1fr}.cart-added-card{padding:24px 18px 18px}}

/* Lightweight success overlays: no backdrop-filter, so opening them does not repaint the page under the pointer. */
.cart-added-overlay,.purchase-success-overlay{backdrop-filter:none!important;-webkit-backdrop-filter:none!important;background:rgba(3,7,12,.62)!important}
.cart-added-card,.purchase-success-card{will-change:transform;contain:layout paint}
.purchase-success-overlay{position:fixed;inset:0;z-index:10060;display:grid;place-items:center;padding:18px;opacity:0;visibility:hidden;background:rgba(3,7,12,.62);transition:opacity .18s ease,visibility .18s ease}
.purchase-success-overlay.show{opacity:1;visibility:visible}
.purchase-success-card{width:min(430px,calc(100vw - 32px));background:linear-gradient(180deg,#151b25,#10151d);border:1px solid rgba(255,255,255,.11);border-radius:22px;padding:28px 24px 22px;box-shadow:0 28px 90px rgba(0,0,0,.5);text-align:center;position:relative;transform:translateY(8px) scale(.98);transition:transform .18s ease}
.purchase-success-overlay.show .purchase-success-card{transform:translateY(0) scale(1)}
.purchase-success-close{position:absolute;top:10px;left:10px;width:32px;height:32px;border:0;border-radius:10px;background:rgba(255,255,255,.06);color:#b8c2cf;font-size:22px;line-height:1;cursor:pointer}
.purchase-success-icon{width:62px;height:62px;border-radius:50%;display:grid;place-items:center;margin:0 auto 14px;background:rgba(58,211,139,.12);border:1px solid rgba(58,211,139,.35);color:#62e6a5;font-size:32px;font-weight:900}
.purchase-success-card h3{margin:0;color:#fff;font-size:19px}
.purchase-success-card p{margin:9px 0 18px;color:#9ba7b7;font-size:12px;line-height:1.8}
.purchase-success-summary{display:flex;align-items:center;justify-content:center;gap:9px;flex-wrap:wrap;margin:0 auto 18px;padding:10px 12px;border:1px solid rgba(255,255,255,.08);border-radius:12px;background:#0d1219;color:#9da8b7;font-size:11px}
.purchase-success-summary strong{color:#fff}
.purchase-success-order-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:2px}
.purchase-success-copy,.purchase-success-continue{width:100%;border:0;border-radius:12px;padding:13px 12px;font:inherit;font-size:12px;font-weight:900;cursor:pointer}
.purchase-success-copy{background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.1);color:#dce5ef}
.purchase-success-copy:hover{background:rgba(255,255,255,.11)}
.purchase-success-copy:disabled{opacity:.45;cursor:not-allowed}
.purchase-success-continue{background:linear-gradient(135deg,#64dcff,#7c8cff);color:#071017}
.purchase-success-continue:hover{filter:brightness(1.06)}
@media(max-width:480px){.purchase-success-card{padding:25px 18px 18px}.purchase-success-order-actions{grid-template-columns:1fr}.purchase-success-copy,.purchase-success-continue{padding:12px}}

/* Customer accounts */
.account-profile-view{display:flex;flex-direction:column;gap:16px}
.account-profile-card{display:flex;align-items:center;gap:14px;padding:18px;border:1px solid rgba(127,127,127,.18);border-radius:18px;background:rgba(127,127,127,.05)}
.account-avatar{width:54px;height:54px;border-radius:50%;display:grid;place-items:center;font-size:22px;font-weight:800;background:linear-gradient(135deg,#222,#555);color:#fff}
.account-profile-card h3{margin:0 0 4px}.account-profile-card p{margin:2px 0;opacity:.75}
.account-profile-note{padding:14px;border-radius:14px;background:rgba(70,160,255,.08);line-height:1.7}
.secondary-modal-button{width:100%;padding:12px 16px;border-radius:12px;border:1px solid rgba(127,127,127,.3);background:transparent;cursor:pointer}


/* =====================================================
   PRODUCT RATINGS
===================================================== */
.product-bottom{position:relative;}
.product-rating{width:100%;display:flex;align-items:center;justify-content:flex-start;gap:5px;margin-top:7px;direction:ltr;font-size:12px;line-height:1;white-space:nowrap;}
.product-rating .rating-stars{display:inline-flex;gap:1px;letter-spacing:0;}
.product-rating .rating-star{font-size:14px;color:rgba(255,255,255,.25);text-shadow:none;transition:.2s ease;}
.product-rating .rating-star.filled{color:#ffd84d;text-shadow:0 0 4px rgba(255,216,77,.35);}
.product-rating strong{font-size:11px;color:var(--text-primary,#fff);font-weight:800;}
.product-rating small{font-size:10px;color:var(--text-secondary,#9aa0aa);}
.product-rating.rating-neon .rating-star.filled{color:#ffd84d;text-shadow:0 0 3px #fff6b0,0 0 7px #ffd84d,0 0 14px #ffc400;animation:ratingNeonPulse 1.5s ease-in-out infinite alternate;}
.product-rating.rating-neon strong{color:#ffe98a;text-shadow:0 0 6px rgba(255,216,77,.8),0 0 12px rgba(255,180,0,.55);}
@keyframes ratingNeonPulse{from{opacity:.9}to{opacity:1}}
@media(max-width:600px){.product-rating{gap:4px}.product-rating .rating-star{font-size:13px}.product-rating strong{font-size:10px}.product-rating small{font-size:9px}}

.admin-dashboard-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 9px 12px;
    border: 1px solid rgba(103,216,255,.28);
    background: rgba(103,216,255,.08);
    color: #dff8ff;
    border-radius: 10px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}
.admin-dashboard-link:hover { background: rgba(103,216,255,.15); border-color: rgba(103,216,255,.45); }
@media (max-width: 760px) {
  .admin-dashboard-link { padding: 8px 9px; font-size: 10px; }
}

/* =====================================================
   V48 CUSTOMER EXPERIENCE
===================================================== */
.account-btn{display:inline-flex;align-items:center;gap:8px;min-height:42px}
.account-button-avatar{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;overflow:hidden;background:#273140;color:#fff;font-size:13px;font-weight:900;flex:0 0 26px}
.account-button-avatar.account-avatar,.account-button-avatar{width:26px;height:26px}
.account-button-avatar img,.account-button-avatar.account-avatar{object-fit:cover}
.account-box{width:min(560px,calc(100vw - 28px));max-height:min(88vh,760px);overflow:auto;padding:30px 28px 24px}
.account-box .modal-icon{width:58px;height:58px;display:grid;place-items:center;margin:0 auto 12px;border-radius:18px;background:linear-gradient(135deg,rgba(100,220,255,.15),rgba(124,140,255,.14));border:1px solid rgba(120,210,255,.2)}
.account-box>h2{text-align:center;margin:0 0 6px;font-size:23px}
.account-box .auth-form input,.account-field{width:100%;box-sizing:border-box;background:#0e131b;border:1px solid #2b3441;color:#fff;border-radius:12px;padding:12px 13px;outline:none}
.account-box .auth-form input:focus,.account-field:focus{border-color:#5c8fff;box-shadow:0 0 0 3px rgba(92,143,255,.1)}
.account-profile-card-modern{background:linear-gradient(135deg,rgba(100,220,255,.08),rgba(124,140,255,.06));border-color:rgba(130,160,210,.2)}
.account-avatar{width:58px;height:58px;border-radius:50%;display:grid;place-items:center;overflow:hidden;font-size:23px;font-weight:900;background:linear-gradient(135deg,#253247,#52647d);color:#fff;object-fit:cover;flex:0 0 58px}
.avatar-fallback{object-fit:initial}
.member-welcome{margin:12px 30px 0;padding:13px 15px;border:1px solid rgba(120,150,190,.18);border-radius:18px;background:linear-gradient(135deg,rgba(20,28,39,.96),rgba(17,23,33,.94));display:flex;align-items:center;gap:12px;box-shadow:0 12px 35px rgba(0,0,0,.12)}
.member-welcome.hidden{display:none}
.member-welcome-avatar{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;overflow:hidden;background:linear-gradient(135deg,#26364c,#566a86);color:#fff;font-weight:900;font-size:17px;flex:0 0 42px;object-fit:cover}
.member-welcome-copy{display:flex;flex-direction:column;gap:3px;min-width:0}.member-welcome-copy strong{font-size:14px;color:#fff}.member-welcome-copy span{font-size:11px;color:#8996a8}
.member-welcome-actions{margin-inline-start:auto;display:flex;gap:7px}.member-welcome-actions button{border:1px solid rgba(255,255,255,.1);background:#111821;color:#dbe5ef;border-radius:10px;padding:8px 11px;font:inherit;font-size:11px;font-weight:800;cursor:pointer}.member-welcome-actions button:hover{background:#1a2431}
.account-dashboard-view{display:flex;flex-direction:column;gap:13px}.account-hero{display:flex;align-items:center;gap:13px;padding:15px;border-radius:18px;background:linear-gradient(135deg,rgba(100,220,255,.08),rgba(124,140,255,.08));border:1px solid rgba(120,160,220,.18)}.account-hero h3{margin:0 0 4px;font-size:17px}.account-hero p{margin:0;color:#8e9aaa;font-size:11px;word-break:break-word}.account-hero-avatar{width:60px;height:60px;border-radius:50%;display:grid;place-items:center;overflow:hidden;background:linear-gradient(135deg,#253247,#52647d);color:#fff;font-size:24px;font-weight:900;object-fit:cover;flex:0 0 60px}
.account-tabs{display:flex;gap:6px;overflow:auto;padding-bottom:2px}.account-section-tab{flex:0 0 auto;border:1px solid #2b3441;background:#111720;color:#8e99aa;padding:9px 11px;border-radius:11px;cursor:pointer;font:inherit;font-size:11px;font-weight:800}.account-section-tab.active{background:#253247;color:#fff;border-color:#566c89}
.account-dashboard-content{min-height:80px}.account-summary-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:10px}.account-stat{padding:14px 9px;text-align:center;border:1px solid rgba(255,255,255,.08);border-radius:14px;background:#10161f}.account-stat strong{display:block;font-size:20px;color:#fff}.account-stat span{display:block;margin-top:3px;font-size:10px;color:#8792a2}.account-panel{padding:15px;border:1px solid rgba(255,255,255,.08);border-radius:16px;background:#10161f;margin-bottom:10px}.account-panel h3{margin:0 0 12px;font-size:14px}.account-empty{padding:18px 8px;text-align:center;color:#8792a2;font-size:11px;line-height:1.8}
.account-order-row,.account-review-row{display:flex;justify-content:space-between;gap:12px;padding:11px 0;border-top:1px solid rgba(255,255,255,.06)}.account-order-row:first-of-type,.account-review-row:first-of-type{border-top:0}.account-order-row>div:first-child,.account-review-row>div:first-child{min-width:0}.account-order-row strong,.account-review-row strong{display:block;color:#fff;font-size:11px}.account-order-row span,.account-review-row span{display:block;color:#7f8a9b;font-size:10px;margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:310px}.account-order-row>div:last-child{text-align:left}.account-order-row>div:last-child span{color:#62d9a0}.account-review-score{text-align:left;white-space:nowrap;color:#fff;font-weight:900}.account-review-score small{display:block;margin-top:3px}.account-review-score .rating-star-wrap{font-size:10px}
.profile-editor{display:flex;flex-direction:column;gap:11px}.profile-editor>label{display:flex;flex-direction:column;gap:6px;color:#9ba6b6;font-size:11px}.profile-avatar-edit{display:flex;align-items:center;gap:12px}.profile-editor-avatar{width:70px;height:70px;border-radius:50%;display:grid;place-items:center;overflow:hidden;background:linear-gradient(135deg,#253247,#52647d);color:#fff;font-size:27px;font-weight:900;object-fit:cover}.avatar-upload{display:inline-flex;align-items:center;justify-content:center;padding:9px 12px;border-radius:10px;background:#1a2330;border:1px solid #2d3948;color:#dbe4ef;font-size:11px;cursor:pointer}.account-logout{margin-top:2px}
.review-box{width:min(500px,calc(100vw - 28px));padding:28px 24px 22px;text-align:center}.review-product-icon{width:52px;height:52px;border-radius:16px;display:grid;place-items:center;margin:0 auto 10px;background:rgba(255,216,77,.08);border:1px solid rgba(255,216,77,.18);font-size:25px}.review-box h2{margin:0 0 5px}.review-score-display{margin:14px 0 4px;color:#8793a5}.review-score-display strong{font-size:32px;color:#fff}.review-score-display span{font-size:12px}.review-stars-input{direction:ltr;display:flex;justify-content:center;gap:2px;margin:3px 0 10px}.review-stars-input .rating-star-wrap{font-size:30px}.review-box input[type=range]{width:100%;accent-color:#ffd84d}.review-comment-label{display:flex;justify-content:space-between;color:#aeb8c7;font-size:11px;margin:15px 0 6px}.review-comment-label small{opacity:.65}.review-box textarea{width:100%;box-sizing:border-box;resize:vertical;min-height:92px;background:#0e131b;border:1px solid #2b3441;color:#fff;border-radius:12px;padding:11px;outline:none;font:inherit;font-size:12px}.review-auth-message{display:flex;flex-direction:column;gap:9px;padding:18px 12px;border:1px solid rgba(255,255,255,.08);border-radius:15px;background:#10161f;color:#aeb8c7;line-height:1.7;font-size:11px}.review-auth-message strong{color:#fff;font-size:13px}.review-auth-message.hidden{display:none}
.product-rating{cursor:pointer;border:0;background:transparent;padding:0;text-align:inherit}.product-rating:hover .rating-star-fill{filter:brightness(1.12)}.rating-stars{display:inline-flex;gap:1px;direction:ltr;overflow:visible}.rating-star-wrap{position:relative;display:inline-block;line-height:1;font-size:14px;width:1em;height:1em;overflow:visible}.rating-star-bg{position:absolute;inset:0;color:rgba(255,255,255,.22)}.rating-star-fill{position:absolute;inset:0;overflow:hidden;color:#ffd84d;white-space:nowrap;text-shadow:none}.rating-neon .rating-star-fill{color:#ffd84d;text-shadow:none;filter:drop-shadow(0 0 1px rgba(255,248,190,.85)) drop-shadow(0 0 3px rgba(255,216,77,.72)) drop-shadow(0 0 7px rgba(255,180,0,.48));animation:ratingNeonPulse 1.8s ease-in-out infinite alternate}.rating-neon strong{color:#ffe98a;text-shadow:0 0 2px rgba(255,255,220,.75),0 0 5px rgba(255,216,77,.62),0 0 9px rgba(255,180,0,.4);animation:ratingNeonPulse 1.8s ease-in-out infinite alternate}
@media(max-width:700px){.member-welcome{margin:10px 14px 0;padding:11px;flex-wrap:wrap}.member-welcome-actions{display:flex;flex:0 0 100%;margin-inline-start:0;justify-content:flex-start}.member-welcome-actions button{display:inline-flex;align-items:center;justify-content:center;min-height:36px}.account-box{padding:25px 17px 18px}.account-summary-grid{grid-template-columns:1fr 1fr 1fr}.account-tabs{scrollbar-width:none}.account-tabs::-webkit-scrollbar{display:none}}
@media(max-width:480px){.account-btn{padding:8px 10px}.account-btn #account-button-label{max-width:82px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-order-row span,.account-review-row span{max-width:180px}.review-box{padding:24px 16px 18px}.review-stars-input .rating-star-wrap{font-size:27px}}

/* =====================================================
   V49 — ACCOUNT / ORDERS SEPARATION + HEADER UNIFICATION
===================================================== */
.header-actions > .country-button,
.header-actions > .header-icon-button,
.header-actions > .account-btn,
.header-actions > .admin-dashboard-link {
    height: 42px !important;
    min-height: 42px !important;
    box-sizing: border-box !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.header-actions > .country-button { min-width: 66px; }
.header-actions > .header-icon-button { width: 42px; padding-left: 0 !important; padding-right: 0 !important; }
.header-actions > .account-btn { padding-left: 12px !important; padding-right: 12px !important; }
.header-actions > .admin-dashboard-link { padding-left: 12px !important; padding-right: 12px !important; }

.orders-box{width:min(700px,calc(100vw - 28px));max-height:min(88vh,820px);overflow:auto;padding:28px 24px 22px}
.orders-summary-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:2px 0 14px}
.orders-summary-strip>div{padding:11px 7px;text-align:center;border:1px solid rgba(255,255,255,.08);border-radius:13px;background:#10161f}
.orders-summary-strip strong{display:block;color:#fff;font-size:18px}.orders-summary-strip span{display:block;margin-top:3px;color:#8490a2;font-size:10px}
.orders-section{margin-top:12px}.orders-section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:7px;color:#eaf1fb;font-weight:800;font-size:12px}.orders-section-title small{min-width:22px;height:22px;display:grid;place-items:center;border-radius:8px;background:#1b2635;color:#aebbd0}
.customer-order-card{border:1px solid rgba(255,255,255,.08);border-radius:15px;background:#10161f;padding:13px;margin-bottom:8px}.customer-order-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.customer-order-head>div{min-width:0}.customer-order-head strong{display:block;color:#fff;font-size:12px}.customer-order-head span:not(.order-status-pill){display:block;color:#7f8a9b;font-size:9px;margin-top:3px}.order-status-pill{padding:5px 8px;border-radius:8px;font-size:9px;font-weight:900;white-space:nowrap}.order-status-new{background:rgba(255,193,7,.12);color:#ffd86a}.order-status-processing{background:rgba(92,143,255,.12);color:#8db2ff}.order-status-shipped{background:rgba(103,216,255,.12);color:#67d8ff}.order-status-completed{background:rgba(98,217,160,.12);color:#62d9a0}.order-status-cancelled{background:rgba(255,90,110,.12);color:#ff8a99}.order-status-default{background:rgba(255,255,255,.08);color:#b8c3d2}
.customer-order-meta{display:flex;justify-content:space-between;align-items:center;margin-top:10px;color:#7f8a9b;font-size:10px}.customer-order-meta strong{color:#fff;font-size:13px}.customer-order-items{margin-top:9px;border-top:1px solid rgba(255,255,255,.06);padding-top:4px}.order-item-review-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 0;color:#cdd7e5;font-size:10px}.order-item-review-row span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.order-review-button{border:1px solid rgba(255,216,77,.22);background:rgba(255,216,77,.07);color:#ffe58a;border-radius:8px;padding:6px 8px;font:inherit;font-size:9px;font-weight:800;cursor:pointer;white-space:nowrap}.order-review-button:hover{background:rgba(255,216,77,.13)}
.account-settings-hero{display:flex;align-items:center;gap:12px;padding:14px;border-radius:16px;background:linear-gradient(135deg,rgba(100,220,255,.08),rgba(124,140,255,.08));border:1px solid rgba(120,160,220,.18);margin-bottom:14px}.account-settings-hero h3{margin:0 0 4px;font-size:16px}.account-settings-hero p{margin:0;color:#8995a7;font-size:10px}
@media(max-width:760px){.header-actions > .country-button,.header-actions > .header-icon-button,.header-actions > .account-btn,.header-actions > .admin-dashboard-link{height:38px !important;min-height:38px !important}.header-actions > .country-button{min-width:42px}.header-actions > .account-btn{padding-left:8px !important;padding-right:8px !important}.header-actions > .admin-dashboard-link{padding-left:8px !important;padding-right:8px !important}.orders-box{padding:24px 16px 18px}.orders-summary-strip{gap:5px}.customer-order-card{padding:11px}.order-item-review-row{align-items:flex-start;flex-direction:column}.order-review-button{width:100%}}


/* V78 — compact, explicit rating action beside the stars. */
.product-card .product-rating .rating-action-hint,
#case-list .case-card .product-rating .rating-action-hint {
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:2px !important;
  flex:0 0 auto !important;
  margin-left:1px !important;
  padding:2px 5px !important;
  min-height:17px !important;
  border:1px solid rgba(255,216,77,.28) !important;
  border-radius:6px !important;
  background:rgba(255,216,77,.07) !important;
  color:#d7c57c !important;
  font-size:8px !important;
  font-weight:800 !important;
  line-height:1 !important;
  letter-spacing:0 !important;
  white-space:nowrap !important;
  box-shadow:inset 0 1px rgba(255,255,255,.05) !important;
  transition:background .15s ease,border-color .15s ease,color .15s ease,transform .15s ease !important;
}
.product-card .product-rating .rating-action-icon,
#case-list .case-card .product-rating .rating-action-icon {
  font-size:8px !important;
  color:#ffd84d !important;
}
.product-card .product-rating:hover .rating-action-hint,
#case-list .case-card .product-rating:hover .rating-action-hint {
  background:rgba(255,216,77,.13) !important;
  border-color:rgba(255,216,77,.48) !important;
  color:#ffe9a0 !important;
  transform:translateY(-1px);
}
.product-card .product-rating.rating-neon .rating-action-hint,
#case-list .case-card .product-rating.rating-neon .rating-action-hint {
  border-color:rgba(255,216,77,.34) !important;
  color:#e7cf72 !important;
}
@media(max-width:600px){
  .product-card .product-rating .rating-action-hint,
  #case-list .case-card .product-rating .rating-action-hint {
    padding:2px 4px !important;
    min-height:16px !important;
    font-size:7px !important;
  }
  .product-card .product-rating .rating-action-icon,
  #case-list .case-card .product-rating .rating-action-icon {
    font-size:7px !important;
  }
}

/* V76 — keep neon glow free around the star/score shapes; never clip it to the rating row box. */
.product-card .product-rating,
#case-list .case-card .product-rating {
  overflow: visible !important;
}

/* =====================================================
   V52 PRODUCT CARD RATING LAYOUT + MOBILE NAV FILTER
   Keep product metadata and rating in separate, stable rows.
===================================================== */
.product-card .product-info {
  min-width: 0 !important;
}
.product-card .product-bottom {
  width: 100% !important;
  min-width: 0 !important;
  flex-wrap: nowrap !important;
  box-sizing: border-box !important;
}
.product-card .product-rating {
  width: 100% !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-wrap: nowrap !important;
  gap: 5px !important;
  margin: 6px 0 0 !important;
  padding: 6px 0 0 !important;
  border-top: 1px solid rgba(210,225,245,.12) !important;
  box-sizing: border-box !important;
  direction: ltr !important;
  overflow: hidden !important;
}
.product-card .product-rating .rating-stars {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}
.product-card .product-rating strong,
.product-card .product-rating small {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}
/* Case cards: remove the older absolute metadata placement so rating never overlaps it. */
#case-list .case-card {
  min-height: 0 !important;
  height: auto !important;
  overflow: hidden !important;
}
#case-list .case-card > .product-info {
  padding-bottom: 0 !important;
}
#case-list .case-card .case-product-bottom {
  position: static !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  width: 100% !important;
  margin: 7px 0 0 !important;
  padding: 7px 0 0 !important;
  min-height: 30px !important;
  height: auto !important;
  border-top: 1px solid rgba(210,225,245,.16) !important;
  box-sizing: border-box !important;
}
#case-list .case-card .product-rating {
  position: static !important;
  width: 100% !important;
  margin: 5px 0 0 !important;
  padding-top: 5px !important;
}
@media (max-width: 600px) {
  /* The side preview category menu must stay one vertical column on mobile, exactly like desktop. */
  .nav-filter-menu {
    grid-template-columns: 32px !important;
    width: max-content !important;
    max-width: none !important;
  }
  .nav-filter-chip {
    width: 32px !important;
    height: 32px !important;
  }
  .product-card .product-rating {
    gap: 4px !important;
    margin-top: 5px !important;
    padding-top: 5px !important;
  }
  .product-card .product-rating .rating-star-wrap { font-size: 13px !important; }
  .product-card .product-rating strong { font-size: 10px !important; }
  .product-card .product-rating small { font-size: 9px !important; }
  #case-list .case-card {
    padding-bottom: 11px !important;
  }
}


/* V53: compact case cards — remove excessive empty space while keeping rating row */
#case-list .case-card {
  min-height: 0 !important;
  height: auto !important;
  padding: 11px !important;
  gap: 11px !important;
  align-items: flex-start !important;
}
#case-list .case-card > .product-image {
  flex: 0 0 76px !important;
  width: 76px !important;
  max-width: 76px !important;
  height: 76px !important;
  aspect-ratio: 1 / 1 !important;
}
#case-list .case-card > .product-info {
  gap: 4px !important;
  padding: 0 !important;
}
#case-list .case-card .case-product-bottom {
  position: static !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 3px 0 0 !important;
  padding: 5px 0 0 !important;
  border-top: 1px solid rgba(210,225,245,.16) !important;
}
#case-list .case-card .product-rating {
  margin-top: 3px !important;
  min-height: 18px !important;
}
@media (max-width: 600px) {
  #case-list .case-card {
    min-height: 0 !important;
    padding: 9px !important;
    gap: 9px !important;
  }
  #case-list .case-card > .product-image {
    flex-basis: 64px !important;
    width: 64px !important;
    max-width: 64px !important;
    height: 64px !important;
  }
  #case-list .case-card .case-product-bottom {
    margin-top: 2px !important;
    padding-top: 4px !important;
  }
}

/* Multi-sticker control */
.add-sticker-layer{
  width:40px!important;
  min-width:40px!important;
  min-height:40px!important;
  padding:4px 3px!important;
  border:1px solid rgba(119,224,255,.34)!important;
  border-radius:11px!important;
  background:linear-gradient(145deg,rgba(73,145,204,.34),rgba(45,75,120,.28))!important;
  color:#f4f7ff!important;
  font-size:9px!important;
  font-weight:800!important;
  line-height:1.1!important;
  cursor:pointer!important;
  box-shadow:inset 0 1px rgba(255,255,255,.1),0 2px 8px rgba(0,0,0,.18)!important;
}
.add-sticker-layer small{display:block;font-size:8px;opacity:.72;margin-top:2px}
.add-sticker-layer:hover{background:linear-gradient(145deg,rgba(99,190,255,.55),rgba(67,118,194,.4))!important;border-color:rgba(192,233,255,.7)!important}
.add-sticker-layer:disabled{opacity:.45!important;cursor:not-allowed!important;filter:saturate(.5)}
@media(max-width:700px){.add-sticker-layer{width:34px!important;min-width:34px!important;min-height:38px!important;font-size:8px!important}.add-sticker-layer small{font-size:7px}}

/* Multi-sticker layer selector — compact numbered controls */
.sticker-layer-controls{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  margin-top:6px;
  width:40px;
}
.sticker-layer-number,
.add-sticker-layer.add-sticker-plus{
  width:36px!important;
  min-width:36px!important;
  height:36px!important;
  min-height:36px!important;
  padding:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  border:1px solid rgba(119,224,255,.34)!important;
  border-radius:10px!important;
  background:linear-gradient(145deg,rgba(73,145,204,.34),rgba(45,75,120,.28))!important;
  color:#f4f7ff!important;
  font-size:13px!important;
  font-weight:900!important;
  line-height:1!important;
  cursor:pointer!important;
  box-shadow:inset 0 1px rgba(255,255,255,.1),0 2px 8px rgba(0,0,0,.18)!important;
  transition:transform .15s ease,background .15s ease,border-color .15s ease,box-shadow .15s ease!important;
}
.sticker-layer-number:hover,
.add-sticker-layer.add-sticker-plus:hover{
  transform:translateY(-1px);
  background:linear-gradient(145deg,rgba(99,190,255,.55),rgba(67,118,194,.4))!important;
  border-color:rgba(192,233,255,.7)!important;
}
.sticker-layer-number.active{
  background:linear-gradient(145deg,rgba(75,180,255,.75),rgba(56,101,180,.62))!important;
  border-color:rgba(220,247,255,.9)!important;
  box-shadow:0 0 0 2px rgba(100,190,255,.18),0 3px 12px rgba(45,145,220,.24)!important;
}
@media(max-width:700px){
  .sticker-layer-controls{width:34px;gap:5px;margin-top:5px}
  .sticker-layer-number,
  .add-sticker-layer.add-sticker-plus{width:32px!important;min-width:32px!important;height:32px!important;min-height:32px!important;border-radius:9px!important;font-size:12px!important}
}


/* V56 — restore reliable sticker dragging after multi-sticker controls */
#case-canvas {
  pointer-events: auto !important;
  touch-action: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

/* =====================================================
   V57 — CASE CARD PRICE ABOVE RATING
   Case cards only: keep the price/grade row clearly above
   the rating row, with no effect on sticker cards.
===================================================== */
#case-list .case-card > .product-info {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
}
#case-list .case-card .case-product-bottom {
  order: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  margin: 7px 0 0 !important;
  padding: 7px 0 0 !important;
}
#case-list .case-card .product-rating {
  order: 2 !important;
  display: flex !important;
  width: 100% !important;
  margin: 5px 0 0 !important;
  padding: 5px 0 0 !important;
}
#case-list .case-card .case-product-bottom .price {
  order: 2 !important;
}
#case-list .case-card .case-product-bottom .tier-color-dot {
  order: 1 !important;
  margin-inline-start: 0 !important;
}

/* V58 — Match sticker-card info/price separation to case cards */
.sticker-card .product-bottom {
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1px solid #303747;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.sticker-card .product-bottom .price {
    font-size: 15px;
    font-weight: 800;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .sticker-card .product-bottom {
        margin-top: 5px;
        padding-top: 7px;
    }
}

/* V59 — Match sticker price/category spacing to case cards */
.sticker-card .product-bottom {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  box-sizing: border-box !important;
}
.sticker-card .product-bottom .tier-color-dot {
  order: 1 !important;
  margin-inline-start: 0 !important;
  margin-inline-end: auto !important;
  flex: 0 0 auto !important;
}
.sticker-card .product-bottom .price {
  order: 2 !important;
  margin-inline-start: auto !important;
  flex: 0 0 auto !important;
}

/* V60 — Unified customer Orders + animated delivery tracking */
.customer-order-card .order-tracking {
  margin: 13px 0 11px;
  padding: 12px 10px 10px;
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.018));
  border: 1px solid rgba(255,255,255,.06);
}
.order-track-labels {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  color: #7f8a9b;
  font-size: 8px;
  margin-bottom: 11px;
}
.order-track-labels span:last-child { color: #62d9a0; font-weight: 800; }
.order-track { direction: rtl; position: relative; padding: 0 3px; }
.order-track-line { position: relative; height: 6px; border-radius: 999px; background: #293140; overflow: visible; }
.order-track-fill { position: absolute; inset: 0 0 0 auto; width: 0; border-radius: 999px; background: linear-gradient(270deg,#5c8fff,#67d8ff,#62d9a0); transition: width 1.2s cubic-bezier(.22,.8,.2,1); }
.order-track-truck {
  position: absolute;
  top: 50%;
  transform: translate(-50%,-50%);
  font-size: 21px;
  line-height: 1;
  filter: drop-shadow(0 4px 7px rgba(0,0,0,.45));
  transition: right 1.2s cubic-bezier(.22,.8,.2,1);
  z-index: 2;
}
.order-track-status { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:14px; min-height:32px; }
.order-track-status > span:first-child { font-size:10px; font-weight:900; color:#e7edf6; }
.order-received-button { border:0; border-radius:10px; padding:8px 11px; background:linear-gradient(135deg,#62d9a0,#45b982); color:#07130e; font-size:10px; font-weight:900; cursor:pointer; box-shadow:0 5px 16px rgba(98,217,160,.18); }
.order-received-button:disabled { opacity:.55; cursor:wait; }
.order-received-done { color:#62d9a0 !important; font-size:9px !important; font-weight:800 !important; }
.customer-order-cancelled-track { margin:13px 0 11px; padding:11px 12px; border-radius:11px; background:rgba(255,90,110,.06); border:1px solid rgba(255,90,110,.12); color:#ff8a99; font-size:10px; font-weight:800; }

@media (max-width:600px) {
  .customer-order-card .order-tracking { margin-inline: -2px; padding:11px 8px 9px; }
  .order-track-labels { font-size:7px; }
  .order-track-truck { font-size:19px; }
  .order-track-status { align-items:flex-start; flex-direction:column; }
  .order-received-button { width:100%; text-align:center; }
}

/* V62 — RTL order tracking: truck starts on the right and moves left */
.order-track-truck {
  left: auto !important;
  right: 0 !important;
  transform: translate(50%,-50%) scaleX(-1);
  transform-origin: center;
  transition: right 1.2s cubic-bezier(.22,.8,.2,1);
}
.order-track-fill {
  left: auto !important;
  right: 0 !important;
  background: linear-gradient(270deg,#5c8fff,#67d8ff,#62d9a0);
}
.review-later-button {
  width: 100%;
  margin-top: 8px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 10px;
  padding: 8px 11px;
  background: rgba(255,255,255,.045);
  color: #9aa5b7;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}
.review-later-button:hover { background: rgba(255,255,255,.075); color:#fff; }

/* V64 — Truck follows the RTL track from right to left */
.order-track-truck {
  left: auto !important;
  right: 0 !important;
  transform: translate(50%, -50%) scaleX(-1) !important;
  transition: right 1.2s cubic-bezier(.22,.8,.2,1) !important;
}


/* V65 — Exact RTL truck position + visible motion effects */
.order-track-line { overflow: visible !important; }
.order-track-truck {
  left: auto !important;
  transform: translate(50%, -50%) !important;
  transform-origin: 50% 50%;
  will-change: right, transform, filter;
  filter: drop-shadow(0 3px 4px rgba(0,0,0,.45)) drop-shadow(0 0 6px rgba(103,216,255,.35));
  animation: truckDriveIdle .8s ease-in-out infinite;
}
.order-track-truck::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 5px;
  left: 50%;
  bottom: -2px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(103,216,255,.28);
  filter: blur(3px);
  pointer-events: none;
}
@keyframes truckDriveIdle {
  0%,100% { margin-top: 0; filter: drop-shadow(0 3px 4px rgba(0,0,0,.45)) drop-shadow(0 0 5px rgba(103,216,255,.28)); }
  50% { margin-top: -2px; filter: drop-shadow(0 5px 5px rgba(0,0,0,.5)) drop-shadow(0 0 9px rgba(103,216,255,.55)); }
}
.order-track-fill { transition: width 1.2s cubic-bezier(.22,.8,.2,1); }
@media (prefers-reduced-motion: reduce) {
  .order-track-truck, .order-track-fill { animation: none !important; transition: none !important; }
}


/* V67 — Final RTL truck alignment: keep inline right:% as the live position.
   The previous V62-V65 rules forced right:0 and prevented the truck from moving.
   Native 🚚 orientation is kept so its front points left while traveling RTL. */
.order-track-line {
  direction: ltr !important;
  position: relative;
  overflow: visible !important;
}
.order-track-truck {
  left: auto !important;
  transform: translate(50%, -50%) !important;
  transition: right 1.2s cubic-bezier(.22,.8,.2,1) !important;
}


/* V68 — Bind the truck position to the live progress value.
   Earlier !important rules forced right:0, so the inline progress could not move the truck. */
.order-track-truck {
  right: var(--truck-progress, 0%) !important;
  left: auto !important;
  transform: translate(50%, -50%) !important;
  transition: right 1.2s cubic-bezier(.22,.8,.2,1) !important;
  z-index: 3;
}

/* V70 — purchase experience review */
.review-box .review-comment-label{margin-top:12px}.order-item-review-row{justify-content:flex-start}.customer-order-items{opacity:.88}.experience-review{border-color:rgba(98,217,160,.16)}

/* Review modal must always sit above the browse-all catalog gallery. */
#review-modal { z-index: 11000 !important; }

/* V79 — Sticker rating neon: allow the soft shape glow to extend beyond the rating row. */
#sticker-list .sticker-card .product-rating {
  overflow: visible !important;
}
#sticker-list .sticker-card .product-rating .rating-stars,
#sticker-list .sticker-card .product-rating .rating-star-wrap,
#sticker-list .sticker-card .product-rating .rating-star-fill,
#sticker-list .sticker-card .product-rating strong {
  overflow: visible !important;
}
#sticker-list .sticker-card .product-rating.rating-neon .rating-star-fill {
  filter: drop-shadow(0 0 1px rgba(255,248,190,.7)) drop-shadow(0 0 2.5px rgba(255,216,77,.55)) drop-shadow(0 0 5px rgba(255,180,0,.32));
}
#sticker-list .sticker-card .product-rating.rating-neon strong {
  text-shadow: 0 0 2px rgba(255,255,220,.6), 0 0 4px rgba(255,216,77,.45), 0 0 7px rgba(255,180,0,.28);
}

/* V80 — allow rating neon glow to escape gallery card clipping.
   The glow belongs to the star/score shapes only; the gallery card itself must not crop it. */
.catalog-gallery-grid .catalog-gallery-card {
  overflow: visible !important;
}
.catalog-gallery-grid .catalog-gallery-card .product-info,
.catalog-gallery-grid .catalog-gallery-card .product-rating {
  overflow: visible !important;
}
.product-card .product-rating {
  overflow: visible !important;
}

/* V81 — preserve fractional star fill while keeping the neon glow outside the star box.
   The fill layer MUST clip its own star content; only its parent may remain overflow-visible. */
.rating-star-wrap {
  overflow: visible !important;
}
.rating-star-fill {
  overflow: hidden !important;
}
#sticker-list .sticker-card .product-rating .rating-star-fill,
.catalog-gallery-grid .catalog-gallery-card .product-rating .rating-star-fill {
  overflow: hidden !important;
}

/* V100 automatic tier discount presentation */
.price .old-price{display:inline-block;margin-left:7px;color:#87909f;text-decoration:line-through;font-size:.78em}.price .new-price{display:inline-block;color:inherit;font-weight:900}.discount-badge{display:inline-block;margin-right:6px;background:#ef3340;color:#fff;border-radius:999px;padding:2px 6px;font-size:.62em;font-weight:900;vertical-align:middle;line-height:1.5}


/* V132: align the NEW badge to the left side on case cards only. */
#case-list .case-card > .product-new-badge {
    right: auto !important;
    left: 8px !important;
}


/* V135: product descriptions from admin data are shown on dynamically added sticker and case cards. */
#sticker-list .product-description, #case-list .product-description { display:block; white-space:normal; overflow-wrap:anywhere; }

/* V140: restore page scrolling while keeping independent product-list scroll areas and full-size cards. */
html, body { height: auto !important; min-height: 100%; }
body { overflow-x: hidden !important; overflow-y: auto !important; }
.main-layout {
  height: auto !important;
  min-height: calc(100vh - 82px) !important;
  overflow: visible !important;
  align-items: start !important;
}
.side-panel {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  align-self: start !important;
}
#sticker-list, #case-list {
  flex: 0 1 auto !important;
  min-height: 58vh !important;
  height: 72vh !important;
  max-height: calc(100vh - 245px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(148,163,184,.35) transparent;
  padding: 2px 3px 10px 2px !important;
  align-content: start !important;
}
#sticker-list > .product-card, #case-list > .product-card {
  flex: 0 0 auto !important;
  flex-shrink: 0 !important;
  min-height: max-content;
}
#sticker-list::-webkit-scrollbar, #case-list::-webkit-scrollbar { width: 6px; }
#sticker-list::-webkit-scrollbar-track, #case-list::-webkit-scrollbar-track { background: transparent; }
#sticker-list::-webkit-scrollbar-thumb, #case-list::-webkit-scrollbar-thumb { background: rgba(148,163,184,.32); border-radius: 999px; }
#sticker-list:hover::-webkit-scrollbar-thumb, #case-list:hover::-webkit-scrollbar-thumb { background: rgba(148,163,184,.6); }
.stickers-panel .order-button { flex: 0 0 auto; margin-top: 10px !important; }
.stickers-panel .support-link { flex: 0 0 auto; }
@media (max-width: 850px) {
  .main-layout { height: auto !important; min-height: 0 !important; overflow: visible !important; }
  .side-panel { height: auto !important; max-height: none !important; overflow: visible !important; }
  #sticker-list, #case-list { height: auto !important; min-height: 240px !important; max-height: 60vh !important; }
}


/* V142: extend both product columns to the support button / bottom of the purchase panel. */
@media (min-width: 851px) {
  .main-layout {
    align-items: stretch !important;
  }
  .main-layout > .side-panel {
    display: flex !important;
    flex-direction: column !important;
    height: calc(100vh - 112px) !important;
    min-height: 520px !important;
    max-height: none !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }
  #sticker-list, #case-list {
    flex: 1 1 auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-y: auto !important;
  }
  .stickers-panel .order-button { flex: 0 0 auto !important; }
  .stickers-panel .support-link { flex: 0 0 auto !important; margin-bottom: 0 !important; }
}
@media (max-width: 850px) {
  .main-layout > .side-panel { height: auto !important; min-height: 0 !important; max-height: none !important; overflow: visible !important; }
  #sticker-list, #case-list { height: auto !important; min-height: 240px !important; max-height: 60vh !important; flex: 0 1 auto !important; }
}


/* V143: desktop product columns stretch to the full purchase-row height, ending level with the support link. */
@media (min-width: 851px) {
  .main-layout {
    align-items: stretch !important;
    grid-auto-rows: 1fr !important;
  }
  .main-layout > .side-panel {
    align-self: stretch !important;
    height: 100% !important;
    min-height: 100% !important;
    max-height: none !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
  }
  /* Let the center purchase/preview panel determine the row height; both catalogs fill that same row. */
  .main-layout > .stickers-panel,
  .main-layout > .cases-panel {
    height: 100% !important;
    min-height: 0 !important;
  }
  #sticker-list, #case-list {
    flex: 1 1 0% !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow-y: auto !important;
  }
  .stickers-panel .order-button,
  .stickers-panel .support-link { flex: 0 0 auto !important; }
}

/* V146: extend desktop product columns by roughly one more card; remaining products scroll inside each column. */
@media (min-width: 851px) {
  #sticker-list, #case-list {
    flex: 0 0 auto !important;
    height: min(1180px, calc(100vh + 170px)) !important;
    min-height: 0 !important;
    max-height: min(1180px, calc(100vh + 170px)) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }
  .main-layout > .side-panel,
  .main-layout > .stickers-panel,
  .main-layout > .cases-panel {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    align-self: start !important;
  }
}


/* CASESTUDIO V151 — professionally rebuilt light theme for the storefront. */
html[data-theme="light"] { color-scheme: light; }
html[data-theme="light"] body,
body[data-theme="light"] {
  --cs-light-page: #f4f6fc;
  --cs-light-surface: #ffffff;
  --cs-light-surface-soft: #f8faff;
  --cs-light-surface-tint: #eef2ff;
  --cs-light-line: #dce3f0;
  --cs-light-line-strong: #c8d3e5;
  --cs-light-ink: #1d2939;
  --cs-light-ink-soft: #39465c;
  --cs-light-muted: #59677c;
  --cs-light-accent: #4f46e5;
  --cs-light-accent-2: #2563eb;
  color-scheme: light;
  background:
    radial-gradient(ellipse at 8% 0%, rgba(99,102,241,.07), transparent 30%),
    radial-gradient(ellipse at 90% 12%, rgba(56,189,248,.07), transparent 26%),
    var(--cs-light-page) !important;
  color: var(--cs-light-ink) !important;
  transition: background-color 220ms cubic-bezier(.22,.7,.25,1), color 220ms cubic-bezier(.22,.7,.25,1), border-color 220ms cubic-bezier(.22,.7,.25,1);
}
html[data-theme="light"] body *, body[data-theme="light"] * { scrollbar-color: #bdc9dd transparent; }
html[data-theme="light"] body ::selection, body[data-theme="light"] ::selection { background: #c7d2fe; color: #1e1b4b; }

/* Header and global actions */
html[data-theme="light"] .topbar, body[data-theme="light"] .topbar {
  background: rgba(255,255,255,.94) !important;
  color: var(--cs-light-ink) !important;
  border-bottom: 1px solid var(--cs-light-line) !important;
  box-shadow: 0 5px 22px rgba(31,45,78,.055) !important;
  backdrop-filter: blur(16px);
}
html[data-theme="light"] .logo, html[data-theme="light"] .header-title,
html[data-theme="light"] .header-title *, html[data-theme="light"] .logo *,
body[data-theme="light"] .logo, body[data-theme="light"] .header-title { color: var(--cs-light-ink) !important; }
html[data-theme="light"] .account-btn, html[data-theme="light"] .header-icon-button,
html[data-theme="light"] .country-button, body[data-theme="light"] .account-btn,
body[data-theme="light"] .header-icon-button, body[data-theme="light"] .country-button {
  background: linear-gradient(180deg,#fff,#f7f9fe) !important;
  color: #27344b !important;
  border-color: #d5deec !important;
  box-shadow: 0 2px 6px rgba(35,52,87,.035), inset 0 1px rgba(255,255,255,.9);
}
html[data-theme="light"] .account-btn:hover, html[data-theme="light"] .header-icon-button:hover,
html[data-theme="light"] .country-button:hover, body[data-theme="light"] .account-btn:hover,
body[data-theme="light"] .header-icon-button:hover, body[data-theme="light"] .country-button:hover {
  background: #eef2ff !important; border-color: #a5b4fc !important; color: #3730a3 !important;
}
html[data-theme="light"] .cart-count, body[data-theme="light"] .cart-count { background: #4f46e5 !important; color: #fff !important; box-shadow: 0 2px 7px #4f46e544; }
.theme-toggle {
  display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:39px; padding:0 13px;
  border:1px solid rgba(79,70,229,.19); border-radius:12px;
  background:linear-gradient(135deg,#eef2ff,#eff8ff); color:#3730a3 !important;
  font-size:12px; font-weight:800; cursor:pointer; white-space:nowrap;
  box-shadow:inset 0 1px #ffffffd9, 0 3px 10px rgba(56,78,137,.06);
  transition:transform .18s ease,box-shadow .18s ease,background .22s ease,border-color .18s ease;
}
.theme-toggle:hover { transform:translateY(-1px); border-color:#a5b4fc; box-shadow:0 7px 18px rgba(79,70,229,.12); }
.theme-toggle:active { transform:scale(.97); }
html[data-theme="light"] .theme-toggle, body[data-theme="light"] .theme-toggle { color:#3730a3 !important; }

/* Main layout surfaces: eliminate leftover dark columns and preview containers. */
html[data-theme="light"] .main-layout, body[data-theme="light"] .main-layout { color:var(--cs-light-ink) !important; }
/* Keep the two product side panels as cards. The middle preview column is a workspace,
   not a card: do not paint a full-height rectangular surface behind it. */
html[data-theme="light"] .side-panel,
body[data-theme="light"] .side-panel {
  background:linear-gradient(180deg,#ffffff 0%,#fbfcff 100%) !important;
  color:var(--cs-light-ink) !important;
  border:1px solid var(--cs-light-line) !important;
  box-shadow:0 10px 30px rgba(32,48,83,.055), inset 0 1px rgba(255,255,255,.95) !important;
}
html[data-theme="light"] main.main-layout > section.preview-section,
body[data-theme="light"] main.main-layout > section.preview-section {
  background:transparent !important;
  background-color:transparent !important;
  background-image:none !important;
  color:var(--cs-light-ink) !important;
  border:0 !important;
  box-shadow:none !important;
  border-radius:0 !important;
  outline:0 !important;
}
html[data-theme="light"] .panel-header, body[data-theme="light"] .panel-header { color:var(--cs-light-ink) !important; }
html[data-theme="light"] .panel-header h2, html[data-theme="light"] .preview-header h1,
html[data-theme="light"] .preview-header, html[data-theme="light"] .purchase-type,
html[data-theme="light"] .purchase-type h2, html[data-theme="light"] .selected-info,
html[data-theme="light"] .quantity-section, html[data-theme="light"] .packaging-section,
body[data-theme="light"] .panel-header h2, body[data-theme="light"] .preview-header h1,
body[data-theme="light"] .preview-header, body[data-theme="light"] .purchase-type,
body[data-theme="light"] .purchase-type h2, body[data-theme="light"] .selected-info,
body[data-theme="light"] .quantity-section, body[data-theme="light"] .packaging-section {
  color:var(--cs-light-ink) !important;
}
html[data-theme="light"] .preview-header .device-name,
html[data-theme="light"] #device-name-display,
body[data-theme="light"] .preview-header .device-name,
body[data-theme="light"] #device-name-display { color:#4f46e5 !important; }
html[data-theme="light"] .main-city-picker, body[data-theme="light"] .main-city-picker {
  background:linear-gradient(135deg,#f7f9ff,#edf3ff) !important; border-color:#d6e1f4 !important;
  box-shadow:0 7px 22px rgba(31,49,91,.06) !important; color:#25334a !important;
}
html[data-theme="light"] .main-city-picker label, body[data-theme="light"] .main-city-picker label { color:#34435b !important; }

/* Inputs, selectors, search, autocomplete and every filter in the storefront. */
html[data-theme="light"] select, html[data-theme="light"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
html[data-theme="light"] textarea, body[data-theme="light"] select,
body[data-theme="light"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
body[data-theme="light"] textarea {
  background-color:#fff !important; color:#243147 !important; border-color:#cfd9e8 !important;
  caret-color:#4f46e5;
}
html[data-theme="light"] input::placeholder, html[data-theme="light"] textarea::placeholder,
body[data-theme="light"] input::placeholder, body[data-theme="light"] textarea::placeholder { color:#68768b !important; opacity:1 !important; }
html[data-theme="light"] select:focus, html[data-theme="light"] input:focus, html[data-theme="light"] textarea:focus,
body[data-theme="light"] select:focus, body[data-theme="light"] input:focus, body[data-theme="light"] textarea:focus {
  border-color:#818cf8 !important; box-shadow:0 0 0 3px rgba(99,102,241,.12) !important; outline:none;
}
html[data-theme="light"] .device-search, html[data-theme="light"] .device-result,
html[data-theme="light"] .device-suggestions, html[data-theme="light"] .gallery-device-suggestions,
html[data-theme="light"] .case-city-dropdown, html[data-theme="light"] .case-city-options,
body[data-theme="light"] .device-search, body[data-theme="light"] .device-result,
body[data-theme="light"] .device-suggestions, body[data-theme="light"] .gallery-device-suggestions,
body[data-theme="light"] .case-city-dropdown, body[data-theme="light"] .case-city-options {
  background:#fff !important; color:#243147 !important; border-color:#d6e0ee !important;
  box-shadow:0 12px 34px rgba(27,43,74,.12) !important;
}
html[data-theme="light"] .device-search span, html[data-theme="light"] .device-suggestion-family,
html[data-theme="light"] .device-suggestion small, html[data-theme="light"] .device-result,
body[data-theme="light"] .device-search span, body[data-theme="light"] .device-suggestion-family,
body[data-theme="light"] .device-suggestion small { color:#59677c !important; }
html[data-theme="light"] .device-suggestion, html[data-theme="light"] .case-city-option,
html[data-theme="light"] .gallery-device-suggestions .device-suggestion,
body[data-theme="light"] .device-suggestion, body[data-theme="light"] .case-city-option,
body[data-theme="light"] .gallery-device-suggestions .device-suggestion {
  color:#25334a !important; border-color:#e5eaf3 !important;
}
html[data-theme="light"] .device-suggestion:hover, html[data-theme="light"] .device-suggestion.active,
html[data-theme="light"] .case-city-option:hover, html[data-theme="light"] .case-city-option:focus-visible,
html[data-theme="light"] .case-city-option[aria-selected="true"],
body[data-theme="light"] .device-suggestion:hover, body[data-theme="light"] .device-suggestion.active,
body[data-theme="light"] .case-city-option:hover, body[data-theme="light"] .case-city-option:focus-visible,
body[data-theme="light"] .case-city-option[aria-selected="true"] { background:#eef2ff !important; color:#3730a3 !important; }
html[data-theme="light"] .panel-header select, html[data-theme="light"] .gallery-sort,
body[data-theme="light"] .panel-header select, body[data-theme="light"] .gallery-sort { background:#fff !important; color:#243147 !important; border-color:#cfd9e8 !important; }

/* Tier chips, filters and browse buttons. */
html[data-theme="light"] .sticker-tier-filter, html[data-theme="light"] .case-tier-filter,
html[data-theme="light"] .case-tier-heading, html[data-theme="light"] .catalog-gallery-toolbar,
body[data-theme="light"] .sticker-tier-filter, body[data-theme="light"] .case-tier-filter,
body[data-theme="light"] .case-tier-heading, body[data-theme="light"] .catalog-gallery-toolbar {
  color:#3e4b61 !important; border-color:#e0e7f2 !important;
}
html[data-theme="light"] .sticker-tier-filter-label, html[data-theme="light"] .gallery-sort-wrap,
html[data-theme="light"] .gallery-tier-filter .sticker-tier-filter-label,
body[data-theme="light"] .sticker-tier-filter-label, body[data-theme="light"] .gallery-sort-wrap,
body[data-theme="light"] .gallery-tier-filter .sticker-tier-filter-label { color:#4b5a71 !important; }
html[data-theme="light"] .sticker-filter-chip, html[data-theme="light"] .nav-filter-trigger,
html[data-theme="light"] .catalog-browse-button, body[data-theme="light"] .sticker-filter-chip,
body[data-theme="light"] .nav-filter-trigger, body[data-theme="light"] .catalog-browse-button {
  background:linear-gradient(180deg,#fff,#f5f7ff) !important; color:#34435b !important;
  border-color:#d4deef !important; box-shadow:0 2px 5px rgba(38,55,91,.04);
}
html[data-theme="light"] .sticker-filter-chip:hover, html[data-theme="light"] .sticker-filter-chip.active,
html[data-theme="light"] .nav-filter-trigger:hover, html[data-theme="light"] .catalog-browse-button:hover,
body[data-theme="light"] .sticker-filter-chip:hover, body[data-theme="light"] .sticker-filter-chip.active,
body[data-theme="light"] .nav-filter-trigger:hover, body[data-theme="light"] .catalog-browse-button:hover {
  background:linear-gradient(135deg,#eef2ff,#eaf6ff) !important; color:#3730a3 !important; border-color:#a5b4fc !important;
}
html[data-theme="light"] .case-tier-heading p, html[data-theme="light"] .nav-hint,
html[data-theme="light"] .rotation-help, html[data-theme="light"] .rotation-title,
body[data-theme="light"] .case-tier-heading p, body[data-theme="light"] .nav-hint,
body[data-theme="light"] .rotation-help, body[data-theme="light"] .rotation-title { color:#59677c !important; }

/* Product catalog cards — strong text contrast, visible separators, readable ratings. */
html[data-theme="light"] .product-card, body[data-theme="light"] .product-card {
  background:linear-gradient(180deg,#fff 0%,#fcfdff 100%) !important;
  color:#1f2b40 !important; border-color:#dce4f0 !important;
  box-shadow:0 3px 10px rgba(34,51,84,.055), inset 0 1px rgba(255,255,255,.95) !important;
  transition:background .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease;
}
html[data-theme="light"] .product-card:hover, html[data-theme="light"] .product-card.selected,
body[data-theme="light"] .product-card:hover, body[data-theme="light"] .product-card.selected {
  background:linear-gradient(180deg,#f9faff,#f0f4ff) !important; border-color:#9eafff !important;
  box-shadow:0 7px 18px rgba(70,82,170,.10) !important;
}
html[data-theme="light"] .product-name, html[data-theme="light"] .product-info,
html[data-theme="light"] .product-info strong, html[data-theme="light"] .product-card .product-name,
body[data-theme="light"] .product-name, body[data-theme="light"] .product-info,
body[data-theme="light"] .product-info strong, body[data-theme="light"] .product-card .product-name { color:#1f2b40 !important; }
html[data-theme="light"] .product-description, html[data-theme="light"] .product-card small,
html[data-theme="light"] .product-card .muted, html[data-theme="light"] .product-rating small,
body[data-theme="light"] .product-description, body[data-theme="light"] .product-card small,
body[data-theme="light"] .product-card .muted, body[data-theme="light"] .product-rating small { color:#5b687d !important; }
html[data-theme="light"] .product-bottom, html[data-theme="light"] .case-product-bottom,
body[data-theme="light"] .product-bottom, body[data-theme="light"] .case-product-bottom { border-color:#e0e7f1 !important; }
html[data-theme="light"] .product-card .price, html[data-theme="light"] .product-card .product-price,
html[data-theme="light"] #selected-case-price, html[data-theme="light"] #selected-sticker-price,
body[data-theme="light"] .product-card .price, body[data-theme="light"] .product-card .product-price,
body[data-theme="light"] #selected-case-price, body[data-theme="light"] #selected-sticker-price { color:#08784f !important; }
html[data-theme="light"] .product-rating .rating-star, body[data-theme="light"] .product-rating .rating-star { color:#b8c2d2 !important; }
html[data-theme="light"] .product-rating .rating-star.filled, body[data-theme="light"] .product-rating .rating-star.filled { color:#e6a500 !important; text-shadow:0 1px 2px rgba(125,84,0,.12) !important; }
html[data-theme="light"] .product-rating strong, body[data-theme="light"] .product-rating strong { color:#25334a !important; text-shadow:none !important; }
html[data-theme="light"] .product-rating.rating-neon .rating-star.filled,
body[data-theme="light"] .product-rating.rating-neon .rating-star.filled { color:#d99a00 !important; filter:none !important; text-shadow:0 0 3px rgba(245,187,35,.26) !important; }
html[data-theme="light"] .product-rating.rating-neon strong, body[data-theme="light"] .product-rating.rating-neon strong { color:#8a5b00 !important; text-shadow:none !important; }
html[data-theme="light"] .custom-upload-card, body[data-theme="light"] .custom-upload-card { background:linear-gradient(145deg,#f8faff,#edf4ff) !important; border:1px dashed #9eafd0 !important; color:#31415a !important; }
html[data-theme="light"] .custom-upload-icon, body[data-theme="light"] .custom-upload-icon { background:#e5ecff !important; color:#4f46e5 !important; }
html[data-theme="light"] .product-new-badge, body[data-theme="light"] .product-new-badge { color:#fff !important; }
html[data-theme="light"] #sticker-list, html[data-theme="light"] #case-list,
body[data-theme="light"] #sticker-list, body[data-theme="light"] #case-list { scrollbar-color:#b8c5db transparent !important; }
html[data-theme="light"] #sticker-list::-webkit-scrollbar-thumb, html[data-theme="light"] #case-list::-webkit-scrollbar-thumb,
body[data-theme="light"] #sticker-list::-webkit-scrollbar-thumb, body[data-theme="light"] #case-list::-webkit-scrollbar-thumb { background:#c1ccdf !important; }

/* Center design / phone stage and its controls. */
html[data-theme="light"] .preview-section .preview-stage,
html[data-theme="light"] .preview-section > .preview-stage,
body[data-theme="light"] .preview-section .preview-stage,
body[data-theme="light"] .preview-section > .preview-stage {
  border-color:#dce4f0 !important;
}
html[data-theme="light"] .preview-section > .city-brand-bar,
html[data-theme="light"] .city-brand-bar,
body[data-theme="light"] .preview-section > .city-brand-bar,
body[data-theme="light"] .city-brand-bar {
  background:linear-gradient(135deg,rgba(255,255,255,.98),rgba(244,247,255,.98)) !important;
  color:#27354b !important; border-color:#d5deed !important;
  box-shadow:0 5px 20px rgba(36,52,84,.08),inset 0 1px #fff !important;
  backdrop-filter:blur(12px);
}
html[data-theme="light"] .city-brand-bar label, html[data-theme="light"] .city-brand-bar span,
body[data-theme="light"] .city-brand-bar label, body[data-theme="light"] .city-brand-bar span { color:#3e4b61 !important; }
html[data-theme="light"] .preview-section > .city-brand-bar select,
html[data-theme="light"] .city-brand-bar select,
body[data-theme="light"] .preview-section > .city-brand-bar select,
body[data-theme="light"] .city-brand-bar select { background:#fff !important; color:#25334a !important; border-color:#ccd7e8 !important; }
html[data-theme="light"] .preview-nav, html[data-theme="light"] .preview-nav:hover,
body[data-theme="light"] .preview-nav, body[data-theme="light"] .preview-nav:hover {
  background:linear-gradient(180deg,#f8faff,#eaf0fc) !important; border-color:#d4def0 !important;
  box-shadow:0 4px 13px rgba(41,58,96,.08) !important; opacity:1 !important;
}
html[data-theme="light"] .preview-nav .nav-arrow, body[data-theme="light"] .preview-nav .nav-arrow {
  background:linear-gradient(145deg,#fff,#edf2ff) !important; color:#4354b4 !important;
  border-color:#d0daf0 !important; text-shadow:none !important; box-shadow:0 2px 5px rgba(37,55,97,.07) !important;
}
html[data-theme="light"] .preview-nav .nav-arrow:hover, body[data-theme="light"] .preview-nav .nav-arrow:hover { background:#e4eaff !important; border-color:#9eaef4 !important; }
html[data-theme="light"] .preview-nav .nav-label, body[data-theme="light"] .preview-nav .nav-label { color:#56647a !important; }
html[data-theme="light"] .selected-row, html[data-theme="light"] .selected-info,
body[data-theme="light"] .selected-row, body[data-theme="light"] .selected-info { color:#2c3950 !important; }
html[data-theme="light"] .selected-row, body[data-theme="light"] .selected-row { border-color:#e0e6f0 !important; }
html[data-theme="light"] .selected-row span, body[data-theme="light"] .selected-row span { color:#59677c !important; }
html[data-theme="light"] .selected-row strong, html[data-theme="light"] .selected-detail-value span:last-child,
body[data-theme="light"] .selected-row strong, body[data-theme="light"] .selected-detail-value span:last-child { color:#283752 !important; }
html[data-theme="light"] .selected-row.total-row, body[data-theme="light"] .selected-row.total-row { background:#f0f4ff !important; border-color:#d2dcf5 !important; }
html[data-theme="light"] .selected-row.total-row strong, body[data-theme="light"] .selected-row.total-row strong { color:#3730a3 !important; }
html[data-theme="light"] .quantity-control, html[data-theme="light"] .quantity-control button,
body[data-theme="light"] .quantity-control, body[data-theme="light"] .quantity-control button { background:#f5f7fc !important; color:#283752 !important; border-color:#d3ddec !important; }
html[data-theme="light"] .packaging-option, html[data-theme="light"] .purchase-option,
body[data-theme="light"] .packaging-option, body[data-theme="light"] .purchase-option {
  background:#fff !important; color:#34435b !important; border-color:#d8e1ef !important;
  box-shadow:0 2px 6px rgba(34,52,87,.035) !important;
}
html[data-theme="light"] .packaging-option strong, html[data-theme="light"] .purchase-option strong,
html[data-theme="light"] .packaging-option span, html[data-theme="light"] .purchase-option span,
body[data-theme="light"] .packaging-option strong, body[data-theme="light"] .purchase-option strong,
body[data-theme="light"] .packaging-option span, body[data-theme="light"] .purchase-option span { color:inherit !important; }
html[data-theme="light"] .packaging-option.selected, html[data-theme="light"] .purchase-option.active,
body[data-theme="light"] .packaging-option.selected, body[data-theme="light"] .purchase-option.active {
  background:linear-gradient(135deg,#eef2ff,#eef8ff) !important; border-color:#8b9af0 !important;
  color:#312e81 !important; box-shadow:0 4px 12px rgba(79,70,229,.08) !important;
}
html[data-theme="light"] .rotation-control, html[data-theme="light"] .gift-message-box,
body[data-theme="light"] .rotation-control, body[data-theme="light"] .gift-message-box { background:#f8faff !important; border-color:#dce4f0 !important; color:#34435b !important; }
html[data-theme="light"] .rotation-value, html[data-theme="light"] .rotation-title strong,
body[data-theme="light"] .rotation-value, body[data-theme="light"] .rotation-title strong { color:#3730a3 !important; }
html[data-theme="light"] .support-link, body[data-theme="light"] .support-link { color:#4f46e5 !important; }
html[data-theme="light"] .order-button, html[data-theme="light"] #order-button,
body[data-theme="light"] .order-button, body[data-theme="light"] #order-button {
  color:#fff !important; box-shadow:0 8px 20px rgba(79,70,229,.20) !important;
}

/* Gallery overlay and browse-all modal. */
html[data-theme="light"] .catalog-gallery-overlay, body[data-theme="light"] .catalog-gallery-overlay { background:rgba(29,41,63,.42) !important; backdrop-filter:blur(5px) !important; }
html[data-theme="light"] .catalog-gallery-modal, body[data-theme="light"] .catalog-gallery-modal {
  background:#fff !important; color:#202d43 !important; border-color:#dce4f0 !important;
  box-shadow:0 28px 80px rgba(23,39,73,.22) !important;
}
html[data-theme="light"] .catalog-gallery-header, body[data-theme="light"] .catalog-gallery-header { background:#fbfcff !important; color:#202d43 !important; border-color:#e2e8f2 !important; }
html[data-theme="light"] .catalog-gallery-header h2, html[data-theme="light"] .gallery-empty,
html[data-theme="light"] .catalog-gallery-header button,
body[data-theme="light"] .catalog-gallery-header h2, body[data-theme="light"] .gallery-empty,
body[data-theme="light"] .catalog-gallery-header button { color:#202d43 !important; }
html[data-theme="light"] .catalog-gallery-toolbar, body[data-theme="light"] .catalog-gallery-toolbar { background:#f7f9fe !important; border-color:#e2e8f2 !important; }
html[data-theme="light"] .catalog-gallery-grid .product-card, body[data-theme="light"] .catalog-gallery-grid .product-card { background:#fff !important; border-color:#dce4f0 !important; }
html[data-theme="light"] .catalog-gallery-grid .product-card:hover, body[data-theme="light"] .catalog-gallery-grid .product-card:hover { background:#f3f6ff !important; border-color:#a5b4fc !important; }

/* All customer dialogs, cart, order form, review/account panels and success states. */
html[data-theme="light"] .modal-overlay, html[data-theme="light"] .modal-backdrop,
body[data-theme="light"] .modal-overlay, body[data-theme="light"] .modal-backdrop { background:rgba(24,36,59,.42) !important; backdrop-filter:blur(5px); }
html[data-theme="light"] .modal-box, html[data-theme="light"] .modal-content,
html[data-theme="light"] .cart-modal-box, html[data-theme="light"] .cart-item,
html[data-theme="light"] .order-modal, html[data-theme="light"] .order-preview-summary,
html[data-theme="light"] .account-box, html[data-theme="light"] .review-box,
html[data-theme="light"] .cart-added-card, html[data-theme="light"] .purchase-success-card,
body[data-theme="light"] .modal-box, body[data-theme="light"] .modal-content,
body[data-theme="light"] .cart-modal-box, body[data-theme="light"] .cart-item,
body[data-theme="light"] .order-modal, body[data-theme="light"] .order-preview-summary,
body[data-theme="light"] .account-box, body[data-theme="light"] .review-box,
body[data-theme="light"] .cart-added-card, body[data-theme="light"] .purchase-success-card {
  background:linear-gradient(180deg,#fff 0%,#fbfcff 100%) !important; color:#202d43 !important;
  border-color:#dce4f0 !important; box-shadow:0 24px 75px rgba(24,39,73,.19) !important;
}
html[data-theme="light"] .modal-box h2, html[data-theme="light"] .modal-box h3,
html[data-theme="light"] .modal-content h2, html[data-theme="light"] .account-box h2,
html[data-theme="light"] .account-box h3, html[data-theme="light"] .review-box h2,
html[data-theme="light"] .purchase-success-card h3,
body[data-theme="light"] .modal-box h2, body[data-theme="light"] .modal-box h3,
body[data-theme="light"] .modal-content h2, body[data-theme="light"] .account-box h2,
body[data-theme="light"] .account-box h3, body[data-theme="light"] .review-box h2,
body[data-theme="light"] .purchase-success-card h3 { color:#1d2939 !important; }
html[data-theme="light"] .modal-subtitle, html[data-theme="light"] .modal-box p,
html[data-theme="light"] .account-profile-card p, html[data-theme="light"] .account-hero p,
html[data-theme="light"] .account-empty, html[data-theme="light"] .review-comment-label small,
html[data-theme="light"] .purchase-success-card p,
body[data-theme="light"] .modal-subtitle, body[data-theme="light"] .modal-box p,
body[data-theme="light"] .account-profile-card p, body[data-theme="light"] .account-hero p,
body[data-theme="light"] .account-empty, body[data-theme="light"] .review-comment-label small,
body[data-theme="light"] .purchase-success-card p { color:#59677c !important; }
html[data-theme="light"] .modal-box label, html[data-theme="light"] .form-field label,
html[data-theme="light"] .auth-form label, html[data-theme="light"] .review-comment-label,
body[data-theme="light"] .modal-box label, body[data-theme="light"] .form-field label,
body[data-theme="light"] .auth-form label, body[data-theme="light"] .review-comment-label { color:#39475e !important; }
html[data-theme="light"] .order-preview-summary, html[data-theme="light"] .purchase-success-summary,
html[data-theme="light"] .account-stat, html[data-theme="light"] .account-panel,
html[data-theme="light"] .account-profile-card, html[data-theme="light"] .account-hero,
html[data-theme="light"] .member-welcome,
body[data-theme="light"] .order-preview-summary, body[data-theme="light"] .purchase-success-summary,
body[data-theme="light"] .account-stat, body[data-theme="light"] .account-panel,
body[data-theme="light"] .account-profile-card, body[data-theme="light"] .account-hero,
body[data-theme="light"] .member-welcome {
  background:#f7f9fe !important; border-color:#e0e7f2 !important; color:#2b3950 !important;
}
html[data-theme="light"] .selected-row, html[data-theme="light"] .order-preview-summary div,
html[data-theme="light"] .account-order-row, html[data-theme="light"] .account-review-row,
body[data-theme="light"] .selected-row, body[data-theme="light"] .order-preview-summary div,
body[data-theme="light"] .account-order-row, body[data-theme="light"] .account-review-row { border-color:#e4eaf3 !important; }
html[data-theme="light"] .order-preview-summary span, html[data-theme="light"] .purchase-success-summary,
html[data-theme="light"] .account-stat span, html[data-theme="light"] .account-order-row span,
html[data-theme="light"] .account-review-row span,
body[data-theme="light"] .order-preview-summary span, body[data-theme="light"] .purchase-success-summary,
body[data-theme="light"] .account-stat span, body[data-theme="light"] .account-order-row span,
body[data-theme="light"] .account-review-row span { color:#59677c !important; }
html[data-theme="light"] .order-preview-summary strong, html[data-theme="light"] .account-order-row strong,
html[data-theme="light"] .account-review-row strong, html[data-theme="light"] .account-stat strong,
body[data-theme="light"] .order-preview-summary strong, body[data-theme="light"] .account-order-row strong,
body[data-theme="light"] .account-review-row strong, body[data-theme="light"] .account-stat strong { color:#1f2b40 !important; }
html[data-theme="light"] .account-tabs .account-section-tab,
body[data-theme="light"] .account-tabs .account-section-tab { background:#fff !important; border-color:#d8e1ef !important; color:#4b5a71 !important; }
html[data-theme="light"] .account-tabs .account-section-tab.active,
body[data-theme="light"] .account-tabs .account-section-tab.active { background:#eef2ff !important; border-color:#a5b4fc !important; color:#3730a3 !important; }
html[data-theme="light"] .account-box .auth-form input, html[data-theme="light"] .account-field,
html[data-theme="light"] .review-box textarea, html[data-theme="light"] .form-field input,
html[data-theme="light"] .form-field select, html[data-theme="light"] .form-field textarea,
body[data-theme="light"] .account-box .auth-form input, body[data-theme="light"] .account-field,
body[data-theme="light"] .review-box textarea, body[data-theme="light"] .form-field input,
body[data-theme="light"] .form-field select, body[data-theme="light"] .form-field textarea {
  background:#fff !important; color:#202d43 !important; border-color:#ccd7e8 !important;
}
html[data-theme="light"] .secondary-modal-button, html[data-theme="light"] .member-welcome-actions button,
html[data-theme="light"] .purchase-success-copy, html[data-theme="light"] .review-later-button,
body[data-theme="light"] .secondary-modal-button, body[data-theme="light"] .member-welcome-actions button,
body[data-theme="light"] .purchase-success-copy, body[data-theme="light"] .review-later-button {
  background:#f6f8fd !important; color:#36455c !important; border-color:#d5dfed !important;
}
html[data-theme="light"] .purchase-success-summary strong, body[data-theme="light"] .purchase-success-summary strong { color:#1d2939 !important; }
html[data-theme="light"] .purchase-success-close, body[data-theme="light"] .purchase-success-close { background:#eef2f8 !important; color:#475467 !important; }
html[data-theme="light"] .support-chat, body[data-theme="light"] .support-chat { background:#fff !important; color:#202d43 !important; border-color:#dce4f0 !important; box-shadow:0 24px 70px rgba(24,39,73,.2) !important; }
html[data-theme="light"] .support-chat header, html[data-theme="light"] #support-chat-form,
body[data-theme="light"] .support-chat header, body[data-theme="light"] #support-chat-form { background:#f7f9fe !important; color:#243147 !important; border-color:#e1e8f2 !important; }
html[data-theme="light"] .support-chat header button, html[data-theme="light"] .support-chat-messages,
body[data-theme="light"] .support-chat header button, body[data-theme="light"] .support-chat-messages { color:#27354b !important; }
html[data-theme="light"] .bot-message, body[data-theme="light"] .bot-message { background:#edf1f8 !important; color:#26354b !important; }
html[data-theme="light"] .user-message, body[data-theme="light"] .user-message { background:#4f46e5 !important; color:#fff !important; }
html[data-theme="light"] #support-chat-form input, body[data-theme="light"] #support-chat-form input { background:#fff !important; color:#202d43 !important; border-color:#cfd9e8 !important; }
html[data-theme="light"] .toast, body[data-theme="light"] .toast { background:#17243a !important; color:#fff !important; border:1px solid #344767 !important; box-shadow:0 10px 30px rgba(19,33,59,.2) !important; }
html[data-theme="light"] .cart-added-overlay, html[data-theme="light"] .purchase-success-overlay,
body[data-theme="light"] .cart-added-overlay, body[data-theme="light"] .purchase-success-overlay { background:rgba(24,36,59,.42) !important; }

/* Keep brand-colored primary actions saturated; polish neutral controls only. */
html[data-theme="light"] .modal-box button:not(.primary-modal-button):not(.review-later-button):not(.order-button),
body[data-theme="light"] .modal-box button:not(.primary-modal-button):not(.review-later-button):not(.order-button) { transition:background .18s ease,border-color .18s ease,transform .18s ease; }
html[data-theme="light"] .header-actions button:focus-visible, html[data-theme="light"] button:focus-visible,
body[data-theme="light"] .header-actions button:focus-visible, body[data-theme="light"] button:focus-visible { outline:2px solid #818cf8; outline-offset:2px; }
@media(max-width:600px){.theme-toggle{min-height:34px;padding:0 9px;font-size:11px}.theme-toggle span{display:none}}
@media(prefers-reduced-motion:reduce){html[data-theme="light"] *,body[data-theme="light"] *{transition-duration:.01ms!important;animation-duration:.01ms!important}}

/* =====================================================================
   CASESTUDIO V151 — full light-mode consistency pass
   All neutral surfaces use the same clean daylight palette. Product art,
   tier colors, and primary brand actions intentionally retain their identity.
   ===================================================================== */
html[data-theme="light"] {
  --cs-light-page: #f3f6fc;
  --cs-light-surface: #ffffff;
  --cs-light-surface-soft: #f7f9fd;
  --cs-light-surface-tint: #edf2ff;
  --cs-light-line: #d8e1ee;
  --cs-light-line-strong: #c4d0e2;
  --cs-light-ink: #18263a;
  --cs-light-ink-soft: #34445d;
  --cs-light-muted: #52627a;
  --cs-light-accent: #4f46e5;
  --cs-light-accent-2: #2563eb;
}

/* The purchase columns and the details panel use one consistent surface system. */
html[data-theme="light"] .device-name,
body[data-theme="light"] .device-name,
html[data-theme="light"] #device-name-display,
body[data-theme="light"] #device-name-display {
  background:linear-gradient(180deg,#f4f6ff,#eaf0ff) !important;
  color:#3730a3 !important;
  border:1px solid #d6def8 !important;
  box-shadow:0 2px 6px rgba(48,64,120,.05) !important;
}
html[data-theme="light"] .selected-info,
body[data-theme="light"] .selected-info {
  background:linear-gradient(180deg,#fff,#fbfcff) !important;
  color:#26364d !important;
  border:1px solid #d9e2ef !important;
  box-shadow:0 4px 14px rgba(31,48,82,.045) !important;
}
html[data-theme="light"] .quantity-section,
body[data-theme="light"] .quantity-section {
  background:linear-gradient(180deg,#fff,#f8faff) !important;
  border:1px solid #d9e2ef !important;
  color:#26364d !important;
  box-shadow:0 4px 14px rgba(31,48,82,.045) !important;
}
html[data-theme="light"] .rotation-control,
body[data-theme="light"] .rotation-control {
  background:#f7f9fe !important;
  border:1px solid #d9e2ef !important;
  color:#34445d !important;
  box-shadow:inset 0 1px #fff !important;
}
html[data-theme="light"] .selected-row,
body[data-theme="light"] .selected-row { color:#52627a !important; }
html[data-theme="light"] .selected-row strong,
html[data-theme="light"] .selected-detail-value span:last-child,
body[data-theme="light"] .selected-row strong,
body[data-theme="light"] .selected-detail-value span:last-child { color:#1e2c43 !important; }
html[data-theme="light"] .selected-row.total-row,
body[data-theme="light"] .selected-row.total-row {
  border-top-color:#cfd9e9 !important;
  background:linear-gradient(90deg,#f0f4ff,#f7faff) !important;
  border-radius:9px;
  padding-inline:10px;
}
html[data-theme="light"] .rotation-help,
html[data-theme="light"] .rotation-title,
html[data-theme="light"] .rotation-title span,
html[data-theme="light"] .nav-hint,
html[data-theme="light"] .quantity-section label,
body[data-theme="light"] .rotation-help,
body[data-theme="light"] .rotation-title,
body[data-theme="light"] .rotation-title span,
body[data-theme="light"] .nav-hint,
body[data-theme="light"] .quantity-section label { color:#52627a !important; opacity:1 !important; }

/* Filter popovers, native/custom selects, and country menus must not stay dark. */
html[data-theme="light"] .nav-filter-menu,
body[data-theme="light"] .nav-filter-menu {
  background:rgba(255,255,255,.99) !important;
  border:1px solid #d6e0ef !important;
  box-shadow:0 16px 36px rgba(35,51,84,.16),inset 0 1px #fff !important;
  backdrop-filter:blur(16px);
}
html[data-theme="light"] .nav-filter-chip,
body[data-theme="light"] .nav-filter-chip { background:#f6f8fd !important; border-color:#dce4f0 !important; }
html[data-theme="light"] .nav-filter-chip:hover,
html[data-theme="light"] .nav-filter-chip.active,
body[data-theme="light"] .nav-filter-chip:hover,
body[data-theme="light"] .nav-filter-chip.active { background:#e9efff !important; border-color:#8799ed !important; }
html[data-theme="light"] .case-city-select-trigger,
body[data-theme="light"] .case-city-select-trigger {
  background:linear-gradient(180deg,#fff,#f4f7ff) !important;
  color:#25334a !important;
  border:1px solid #ccd8ea !important;
  box-shadow:0 2px 6px rgba(31,48,82,.04),inset 0 1px #fff !important;
}
html[data-theme="light"] .case-city-select-trigger:hover,
html[data-theme="light"] .case-city-select-trigger[aria-expanded="true"],
body[data-theme="light"] .case-city-select-trigger:hover,
body[data-theme="light"] .case-city-select-trigger[aria-expanded="true"] {
  background:#eef3ff !important; border-color:#8d9ce8 !important;
  box-shadow:0 0 0 3px rgba(79,70,229,.08) !important;
}
html[data-theme="light"] .case-city-select-chevron,
body[data-theme="light"] .case-city-select-chevron { border-color:#4f46e5 !important; }
html[data-theme="light"] .case-custom-select-menu,
body[data-theme="light"] .case-custom-select-menu {
  background:#fff !important; color:#25334a !important; border-color:#d7e0ee !important;
  box-shadow:0 18px 42px rgba(25,41,73,.18) !important; backdrop-filter:blur(14px);
}
html[data-theme="light"] .case-city-option,
body[data-theme="light"] .case-city-option { background:transparent !important; color:#2c3a50 !important; border-color:transparent !important; }
html[data-theme="light"] .case-city-option:hover,
html[data-theme="light"] .case-city-option:focus-visible,
body[data-theme="light"] .case-city-option:hover,
body[data-theme="light"] .case-city-option:focus-visible { background:#f1f4ff !important; color:#3730a3 !important; border-color:#dce4ff !important; }
html[data-theme="light"] .case-city-option[aria-selected="true"],
body[data-theme="light"] .case-city-option[aria-selected="true"] { background:#e8edff !important; color:#312e81 !important; border-color:#c7d2fe !important; }
html[data-theme="light"] .arab-country-menu,
body[data-theme="light"] .arab-country-menu {
  background:#fff !important; border-color:#d7e0ee !important;
  box-shadow:0 16px 42px rgba(25,41,73,.18) !important;
}
html[data-theme="light"] .arab-country-option,
body[data-theme="light"] .arab-country-option { background:#fff !important; color:#29384e !important; border-color:transparent !important; }
html[data-theme="light"] .arab-country-option:hover,
html[data-theme="light"] .arab-country-option:focus-visible,
body[data-theme="light"] .arab-country-option:hover,
body[data-theme="light"] .arab-country-option:focus-visible { background:#eef3ff !important; color:#3730a3 !important; border-color:#d7e0ff !important; }
html[data-theme="light"] .arab-country-option small,
body[data-theme="light"] .arab-country-option small { color:#5d6b80 !important; opacity:1 !important; }
html[data-theme="light"] #buyer-city option,
body[data-theme="light"] #buyer-city option { background:#fff !important; color:#243147 !important; }

/* Keep the central preview controls visually belonging to the bright interface. */
html[data-theme="light"] .preview-section > .preview-stage,
body[data-theme="light"] .preview-section > .preview-stage {
  background:linear-gradient(145deg,#f8faff,#edf2fa) !important;
  border:1px solid #dce4f0 !important;
  border-radius:22px !important;
  box-shadow:inset 0 1px #fff,0 5px 18px rgba(29,46,80,.055) !important;
}
html[data-theme="light"] .preview-stage .preview-nav,
body[data-theme="light"] .preview-stage .preview-nav {
  background:linear-gradient(180deg,#f8faff,#e9eff9) !important;
  border-color:#d4deef !important;
  box-shadow:0 5px 16px rgba(43,60,98,.08),inset 0 1px #fff !important;
}
html[data-theme="light"] .preview-stage .preview-nav .nav-arrow,
body[data-theme="light"] .preview-stage .preview-nav .nav-arrow {
  background:linear-gradient(145deg,#fff,#eef2ff) !important;
  border-color:#cdd8eb !important; color:#3447a0 !important; text-shadow:none !important;
}
html[data-theme="light"] .preview-stage .preview-nav .side-catalog-button,
body[data-theme="light"] .preview-stage .preview-nav .side-catalog-button {
  background:linear-gradient(145deg,#eef2ff,#e8f3ff) !important;
  color:#343b91 !important; border-color:#cdd7f2 !important; text-shadow:none !important;
}
html[data-theme="light"] .preview-stage .preview-nav .nav-label,
body[data-theme="light"] .preview-stage .preview-nav .nav-label { color:#52627a !important; }
html[data-theme="light"] .device-search,
body[data-theme="light"] .device-search { background:#fff !important; border-color:#d1dbea !important; }
html[data-theme="light"] .device-search input,
body[data-theme="light"] .device-search input { background:transparent !important; color:#243147 !important; }
html[data-theme="light"] .device-search input::placeholder,
body[data-theme="light"] .device-search input::placeholder { color:#68768b !important; opacity:1 !important; }
html[data-theme="light"] .device-result,
body[data-theme="light"] .device-result { background:#f7f9fe !important; color:#52627a !important; border-color:#dce4f0 !important; }

/* Catalog image overlays remain legible, while labels and empty states follow daylight colors. */
html[data-theme="light"] .case-tier-badge,
html[data-theme="light"] .sticker-tier-badge,
body[data-theme="light"] .case-tier-badge,
body[data-theme="light"] .sticker-tier-badge {
  background:#eef2ff !important; color:#3730a3 !important; border-color:#c7d2fe !important;
  box-shadow:0 1px 3px rgba(55,48,163,.06) !important;
}
html[data-theme="light"] .catalog-gallery-header button,
body[data-theme="light"] .catalog-gallery-header button { background:#f2f5fb !important; color:#334155 !important; border-color:#d9e2ef !important; }
html[data-theme="light"] .catalog-gallery-header button:hover,
body[data-theme="light"] .catalog-gallery-header button:hover { background:#e9efff !important; color:#3730a3 !important; }
html[data-theme="light"] .gallery-sort-wrap,
html[data-theme="light"] .gallery-tier-filter .sticker-tier-filter-label,
html[data-theme="light"] .catalog-gallery-grid .gallery-empty,
body[data-theme="light"] .gallery-sort-wrap,
body[data-theme="light"] .gallery-tier-filter .sticker-tier-filter-label,
body[data-theme="light"] .catalog-gallery-grid .gallery-empty { color:#40516a !important; }
html[data-theme="light"] .catalog-gallery-device-search input,
body[data-theme="light"] .catalog-gallery-device-search input { background:#fff !important; color:#202d43 !important; border-color:#d0dbea !important; }
html[data-theme="light"] .gallery-device-suggestions,
html[data-theme="light"] .gallery-device-suggestions .device-suggestion,
body[data-theme="light"] .gallery-device-suggestions,
body[data-theme="light"] .gallery-device-suggestions .device-suggestion { background:#fff !important; color:#26364c !important; border-color:#dce4f0 !important; }
html[data-theme="light"] .gallery-device-suggestions .device-suggestion:hover,
body[data-theme="light"] .gallery-device-suggestions .device-suggestion:hover { background:#eef2ff !important; color:#312e81 !important; }

/* Cart preview and confirmation cards were a major source of pale text on dark remnants. */
html[data-theme="light"] .cart-product-visual,
body[data-theme="light"] .cart-product-visual {
  background:radial-gradient(circle at 50% 12%,#fff,#edf2fa 78%) !important;
  border-color:#d9e2ef !important;
  box-shadow:inset 0 1px #fff,0 5px 18px rgba(31,48,82,.05) !important;
}
html[data-theme="light"] .cart-preview-detail-row,
body[data-theme="light"] .cart-preview-detail-row { background:#f8faff !important; border-color:#e0e7f2 !important; }
html[data-theme="light"] .cart-preview-detail-row span,
body[data-theme="light"] .cart-preview-detail-row span { color:#52627a !important; }
html[data-theme="light"] .cart-preview-detail-row strong,
body[data-theme="light"] .cart-preview-detail-row strong { color:#1d2939 !important; }
html[data-theme="light"] .cart-added-close,
html[data-theme="light"] .purchase-success-close,
body[data-theme="light"] .cart-added-close,
body[data-theme="light"] .purchase-success-close { background:#f0f3f9 !important; color:#41516a !important; border:1px solid #dce4f0 !important; }
html[data-theme="light"] .cart-added-card h3,
html[data-theme="light"] .purchase-success-card h3,
body[data-theme="light"] .cart-added-card h3,
body[data-theme="light"] .purchase-success-card h3 { color:#18263a !important; }
html[data-theme="light"] .cart-added-card p,
html[data-theme="light"] .purchase-success-card p,
body[data-theme="light"] .cart-added-card p,
body[data-theme="light"] .purchase-success-card p { color:#52627a !important; opacity:1 !important; }
html[data-theme="light"] .cart-added-continue,
body[data-theme="light"] .cart-added-continue { background:#f5f7fc !important; color:#35445b !important; border-color:#d5deeb !important; }
html[data-theme="light"] .cart-added-go-cart,
body[data-theme="light"] .cart-added-go-cart { background:linear-gradient(135deg,#4f46e5,#3478ef) !important; color:#fff !important; border-color:transparent !important; }
html[data-theme="light"] .remove-cart-item,
body[data-theme="light"] .remove-cart-item { background:#fff1f2 !important; color:#a31d32 !important; border-color:#f3c1c8 !important; }
html[data-theme="light"] .empty-cart,
body[data-theme="light"] .empty-cart { color:#52627a !important; }
html[data-theme="light"] .cart-item-prize,
body[data-theme="light"] .cart-item-prize { background:linear-gradient(135deg,#fff8f8,#fff) !important; color:#5f1d2b !important; border-color:#f1bdc4 !important; }
html[data-theme="light"] .cart-item-prize .cart-item-title,
html[data-theme="light"] .cart-item-prize .cart-item-details,
html[data-theme="light"] .cart-item-prize .cart-item-content,
body[data-theme="light"] .cart-item-prize .cart-item-title,
body[data-theme="light"] .cart-item-prize .cart-item-details,
body[data-theme="light"] .cart-item-prize .cart-item-content { color:#6a2430 !important; }
html[data-theme="light"] .cart-prize-breakdown,
body[data-theme="light"] .cart-prize-breakdown { background:#fff0f2 !important; color:#8e2337 !important; border:1px solid #f5c8cf !important; }
html[data-theme="light"] .cart-prize-breakdown strong,
body[data-theme="light"] .cart-prize-breakdown strong { color:#a51f3c !important; }
html[data-theme="light"] .modal-close,
html[data-theme="light"] .auth-tab,
body[data-theme="light"] .modal-close,
body[data-theme="light"] .auth-tab { background:#f6f8fc !important; color:#40516a !important; border-color:#dbe3ef !important; }
html[data-theme="light"] .auth-tab.active,
body[data-theme="light"] .auth-tab.active { background:#e9efff !important; color:#312e81 !important; border-color:#aab8f3 !important; }
html[data-theme="light"] .auth-form label,
body[data-theme="light"] .auth-form label { color:#3e4d63 !important; }
html[data-theme="light"] .account-avatar,
body[data-theme="light"] .account-avatar { background:linear-gradient(135deg,#e0e7ff,#c7d2fe) !important; color:#312e81 !important; }
html[data-theme="light"] .review-score-display,
body[data-theme="light"] .review-score-display { color:#52627a !important; }
html[data-theme="light"] .review-score-display strong,
body[data-theme="light"] .review-score-display strong { color:#1d2939 !important; }
html[data-theme="light"] .review-auth-message,
body[data-theme="light"] .review-auth-message { background:#f7f9fe !important; border-color:#e0e7f2 !important; color:#52627a !important; }
html[data-theme="light"] .review-auth-message strong,
body[data-theme="light"] .review-auth-message strong { color:#243147 !important; }

/* Customer account history: high contrast for order rows, labels, and status chips. */
html[data-theme="light"] .orders-summary-strip>div,
html[data-theme="light"] .customer-order-card,
html[data-theme="light"] .account-stat,
body[data-theme="light"] .orders-summary-strip>div,
body[data-theme="light"] .customer-order-card,
body[data-theme="light"] .account-stat { background:#f8faff !important; border-color:#e0e7f2 !important; color:#34445d !important; }
html[data-theme="light"] .orders-section-title,
html[data-theme="light"] .customer-order-head strong,
html[data-theme="light"] .customer-order-meta strong,
body[data-theme="light"] .orders-section-title,
body[data-theme="light"] .customer-order-head strong,
body[data-theme="light"] .customer-order-meta strong { color:#1d2939 !important; }
html[data-theme="light"] .customer-order-head span:not(.order-status-pill),
html[data-theme="light"] .customer-order-meta,
html[data-theme="light"] .order-item-review-row,
body[data-theme="light"] .customer-order-head span:not(.order-status-pill),
body[data-theme="light"] .customer-order-meta,
body[data-theme="light"] .order-item-review-row { color:#52627a !important; }
html[data-theme="light"] .customer-order-items,
body[data-theme="light"] .customer-order-items { border-top-color:#e0e7f2 !important; }
html[data-theme="light"] .order-status-new, body[data-theme="light"] .order-status-new { background:#fff8e5 !important; color:#805b00 !important; }
html[data-theme="light"] .order-status-processing, body[data-theme="light"] .order-status-processing { background:#eff6ff !important; color:#1d4f91 !important; }
html[data-theme="light"] .order-status-shipped, body[data-theme="light"] .order-status-shipped { background:#ecfeff !important; color:#155e75 !important; }
html[data-theme="light"] .order-status-completed, body[data-theme="light"] .order-status-completed { background:#effaf3 !important; color:#176b3b !important; }
html[data-theme="light"] .order-status-cancelled, body[data-theme="light"] .order-status-cancelled { background:#fff1f2 !important; color:#a31d32 !important; }
html[data-theme="light"] .order-status-default, body[data-theme="light"] .order-status-default { background:#f3f4f6 !important; color:#4b5563 !important; }
html[data-theme="light"] .order-review-button,
body[data-theme="light"] .order-review-button { background:#fff8e5 !important; color:#805b00 !important; border-color:#f0d98e !important; }

/* The celebratory layer is deliberately vibrant, but text and card contrast are tuned for light mode. */
html[data-theme="light"] .dice-counter,
body[data-theme="light"] .dice-counter { color:#52627a !important; }
html[data-theme="light"] .dice-counter strong,
body[data-theme="light"] .dice-counter strong { color:#1d2939 !important; }
html[data-theme="light"] .dice-celebration,
body[data-theme="light"] .dice-celebration { background:radial-gradient(ellipse at 50% 42%,rgba(129,140,248,.25),rgba(22,30,52,.76) 72%) !important; }
html[data-theme="light"] .celebration-card,
body[data-theme="light"] .celebration-card { box-shadow:0 28px 100px rgba(20,30,55,.34),0 0 0 1px rgba(119,184,255,.12) inset,0 0 70px rgba(49,127,255,.15) !important; }

/* Keep theme changes smooth without fading text to low contrast. */
html[data-theme="light"] .product-card,
html[data-theme="light"] .side-panel,
html[data-theme="light"] .preview-section,
html[data-theme="light"] .modal-box,
html[data-theme="light"] .modal-content,
body[data-theme="light"] .product-card,
body[data-theme="light"] .side-panel,
body[data-theme="light"] .preview-section,
body[data-theme="light"] .modal-box,
body[data-theme="light"] .modal-content { transition-property:background-color,color,border-color !important; transition-duration:220ms !important; transition-timing-function:cubic-bezier(.22,.7,.25,1) !important; }

/* V151 final storefront corrections: every secondary surface and edge state. */
html[data-theme="light"] .device-search-wrapper,
body[data-theme="light"] .device-search-wrapper { color:#26364c !important; }
html[data-theme="light"] .main-city-picker.city-brand-bar,
body[data-theme="light"] .main-city-picker.city-brand-bar {
  background:linear-gradient(135deg,#fff,#f2f6ff) !important;
  border-color:#d8e2f0 !important; color:#27364c !important;
  box-shadow:0 7px 22px rgba(31,49,91,.07),inset 0 1px #fff !important;
}
html[data-theme="light"] .main-city-picker.city-brand-bar select#buyer-city,
body[data-theme="light"] .main-city-picker.city-brand-bar select#buyer-city { background:#fff !important; color:#243147 !important; border-color:#cfd9e8 !important; }
html[data-theme="light"] .main-city-picker.city-brand-bar select#buyer-city option,
body[data-theme="light"] .main-city-picker.city-brand-bar select#buyer-city option { background:#fff !important; color:#243147 !important; }
html[data-theme="light"] .gift-message-box label,
body[data-theme="light"] .gift-message-box label { color:#34445d !important; opacity:1 !important; }
html[data-theme="light"] .gift-message-box textarea,
body[data-theme="light"] .gift-message-box textarea { background:#fff !important; color:#25334a !important; border-color:#cfd9e8 !important; }
html[data-theme="light"] .gift-message-box textarea::placeholder,
body[data-theme="light"] .gift-message-box textarea::placeholder { color:#718096 !important; opacity:1 !important; }
html[data-theme="light"] .purchase-type h2,
html[data-theme="light"] .packaging-section h2,
body[data-theme="light"] .purchase-type h2,
body[data-theme="light"] .packaging-section h2 { color:#26364c !important; }
html[data-theme="light"] .purchase-option,
body[data-theme="light"] .purchase-option { background:#fff !important; color:#34445d !important; border-color:#d8e1ef !important; }
html[data-theme="light"] .purchase-option.active,
body[data-theme="light"] .purchase-option.active { background:#eaf0ff !important; color:#312e81 !important; border-color:#98a7ef !important; }
html[data-theme="light"] .purchase-option strong,
html[data-theme="light"] .purchase-option span,
body[data-theme="light"] .purchase-option strong,
body[data-theme="light"] .purchase-option span { color:inherit !important; }
html[data-theme="light"] .packaging-option span,
body[data-theme="light"] .packaging-option span { color:#52627a !important; opacity:1 !important; }
html[data-theme="light"] .packaging-option strong,
body[data-theme="light"] .packaging-option strong { color:#243147 !important; }
html[data-theme="light"] .cart-modal-box .cart-items,
body[data-theme="light"] .cart-modal-box .cart-items { color:#26364c !important; }
html[data-theme="light"] .cart-item-details,
html[data-theme="light"] .cart-item-details span,
body[data-theme="light"] .cart-item-details,
body[data-theme="light"] .cart-item-details span { color:#52627a !important; opacity:1 !important; }
html[data-theme="light"] .cart-item-title,
html[data-theme="light"] .cart-item-price,
html[data-theme="light"] .cart-item-price strong,
body[data-theme="light"] .cart-item-title,
body[data-theme="light"] .cart-item-price,
body[data-theme="light"] .cart-item-price strong { color:#1d2939 !important; }
html[data-theme="light"] .cart-total,
body[data-theme="light"] .cart-total { color:#1d2939 !important; }
html[data-theme="light"] .cart-total span,
body[data-theme="light"] .cart-total span { color:#52627a !important; }
html[data-theme="light"] .cart-preview-phone,
body[data-theme="light"] .cart-preview-phone { box-shadow:0 18px 34px rgba(20,31,49,.25),inset 0 1px 1px rgba(255,255,255,.18) !important; }
html[data-theme="light"] .cart-product-preview-box,
body[data-theme="light"] .cart-product-preview-box { background:#fff !important; color:#26364c !important; border-color:#d9e2ef !important; }
html[data-theme="light"] .cart-product-preview-overlay,
body[data-theme="light"] .cart-product-preview-overlay { background:rgba(28,41,63,.42) !important; }
html[data-theme="light"] .modal-box .modal-subtitle,
html[data-theme="light"] .modal-content .modal-subtitle,
body[data-theme="light"] .modal-box .modal-subtitle,
body[data-theme="light"] .modal-content .modal-subtitle { color:#59677c !important; opacity:1 !important; }
html[data-theme="light"] .cart-checkout-button,
html[data-theme="light"] .confirm-order-button,
html[data-theme="light"] .primary-modal-button,
body[data-theme="light"] .cart-checkout-button,
body[data-theme="light"] .confirm-order-button,
body[data-theme="light"] .primary-modal-button { color:#fff !important; }
html[data-theme="light"] .cart-checkout-button:disabled,
html[data-theme="light"] .confirm-order-button:disabled,
body[data-theme="light"] .cart-checkout-button:disabled,
body[data-theme="light"] .confirm-order-button:disabled { opacity:.55 !important; }
html[data-theme="light"] .case-rarity-legend .rarity-label,
body[data-theme="light"] .case-rarity-legend .rarity-label { background:#f7f9fe !important; border-color:#dce4f0 !important; color:#34445d !important; }
html[data-theme="light"] .product-price-overlay,
body[data-theme="light"] .product-price-overlay { background:rgba(20,31,49,.82) !important; }
html[data-theme="light"] .product-price-overlay .price,
body[data-theme="light"] .product-price-overlay .price { color:#fff !important; }
html[data-theme="light"] .product-card .product-description,
body[data-theme="light"] .product-card .product-description { color:#52627a !important; opacity:1 !important; }
html[data-theme="light"] .tier-auto-preview,
html[data-theme="light"] .discount-preview,
body[data-theme="light"] .tier-auto-preview,
body[data-theme="light"] .discount-preview { opacity:1 !important; }
html[data-theme="light"] .dice-counter,
body[data-theme="light"] .dice-counter { color:#52627a !important; }
html[data-theme="light"] .dice-win-message,
body[data-theme="light"] .dice-win-message { color:#176b3b !important; }

/* CASESTUDIO V151 — final day-theme consistency pass for residual dark surfaces. */
html[data-theme="light"] .side-panel .panel-header,
html[data-theme="light"] .side-panel .sticker-tier-filter,
html[data-theme="light"] .side-panel .case-tier-filter,
html[data-theme="light"] .side-panel .product-list,
body[data-theme="light"] .side-panel .panel-header,
body[data-theme="light"] .side-panel .sticker-tier-filter,
body[data-theme="light"] .side-panel .case-tier-filter,
body[data-theme="light"] .side-panel .product-list {
  background: transparent !important;
  color: #1d2939 !important;
  border-color: #dce4f0 !important;
}
html[data-theme="light"] .sticker-filter-chip,
html[data-theme="light"] .nav-filter-trigger,
body[data-theme="light"] .sticker-filter-chip,
body[data-theme="light"] .nav-filter-trigger {
  background: linear-gradient(180deg,#fff,#f4f7fc) !important;
  color: #334155 !important;
  border-color: #d4deec !important;
  box-shadow: 0 1px 3px rgba(27,43,74,.04) !important;
}
html[data-theme="light"] .sticker-filter-chip.active,
html[data-theme="light"] .nav-filter-trigger[aria-expanded="true"],
body[data-theme="light"] .sticker-filter-chip.active,
body[data-theme="light"] .nav-filter-trigger[aria-expanded="true"] {
  background: linear-gradient(135deg,#e9edff,#edf6ff) !important;
  color: #312e81 !important;
  border-color: #9aa9ee !important;
  box-shadow: 0 0 0 2px rgba(79,70,229,.08) !important;
}
html[data-theme="light"] .product-card,
html[data-theme="light"] #case-list .case-card,
html[data-theme="light"] #sticker-list .sticker-card,
body[data-theme="light"] .product-card,
body[data-theme="light"] #case-list .case-card,
body[data-theme="light"] #sticker-list .sticker-card {
  background: #fff !important;
  color: #1d2939 !important;
  border-color: #dce3ef !important;
  box-shadow: 0 4px 14px rgba(27,43,74,.055), inset 0 1px #fff !important;
}
html[data-theme="light"] .product-card:hover,
html[data-theme="light"] .product-card.selected,
html[data-theme="light"] #case-list .case-card:hover,
html[data-theme="light"] #sticker-list .sticker-card:hover,
body[data-theme="light"] .product-card:hover,
body[data-theme="light"] .product-card.selected,
body[data-theme="light"] #case-list .case-card:hover,
body[data-theme="light"] #sticker-list .sticker-card:hover {
  background: #f7f9ff !important;
  border-color: #9eaff0 !important;
  box-shadow: 0 7px 18px rgba(55,72,138,.10), inset 0 1px #fff !important;
}
/* Product imagery gets a soft neutral canvas; the product itself and rarity colors stay untouched. */
html[data-theme="light"] .product-image,
html[data-theme="light"] .catalog-gallery-grid .product-image,
body[data-theme="light"] .product-image,
body[data-theme="light"] .catalog-gallery-grid .product-image {
  background: linear-gradient(145deg,#f8faff,#edf2fa) !important;
  border-color: #e0e7f2 !important;
}
html[data-theme="light"] .product-name,
html[data-theme="light"] .product-info,
html[data-theme="light"] .product-bottom,
html[data-theme="light"] .product-card .product-description,
body[data-theme="light"] .product-name,
body[data-theme="light"] .product-info,
body[data-theme="light"] .product-bottom,
body[data-theme="light"] .product-card .product-description {
  color: #1f2b40 !important;
  opacity: 1 !important;
}
html[data-theme="light"] .product-card .product-description,
body[data-theme="light"] .product-card .product-description { color: #526176 !important; }
html[data-theme="light"] .add-cart-button,
html[data-theme="light"] .admin-dashboard-link,
body[data-theme="light"] .add-cart-button,
body[data-theme="light"] .admin-dashboard-link {
  background: linear-gradient(135deg,#4f46e5,#3478ed) !important;
  color: #fff !important;
  border: 1px solid transparent !important;
  box-shadow: 0 7px 18px rgba(79,70,229,.18) !important;
}
html[data-theme="light"] .add-cart-button:hover,
html[data-theme="light"] .admin-dashboard-link:hover,
body[data-theme="light"] .add-cart-button:hover,
body[data-theme="light"] .admin-dashboard-link:hover {
  background: linear-gradient(135deg,#4338ca,#2563eb) !important;
  box-shadow: 0 10px 22px rgba(79,70,229,.22) !important;
}
/* The gallery modal must change completely, not just its cards. */
html[data-theme="light"] .catalog-gallery-modal,
body[data-theme="light"] .catalog-gallery-modal {
  background: #fff !important;
  color: #1d2939 !important;
  border-color: #d6e0ef !important;
  box-shadow: 0 24px 80px rgba(25,41,73,.23) !important;
}
html[data-theme="light"] .catalog-gallery-header,
body[data-theme="light"] .catalog-gallery-header {
  background: linear-gradient(180deg,#fff,#f8faff) !important;
  border-bottom-color: #e1e8f2 !important;
}
html[data-theme="light"] .catalog-gallery-header h2,
html[data-theme="light"] .catalog-gallery-grid .product-name,
body[data-theme="light"] .catalog-gallery-header h2,
body[data-theme="light"] .catalog-gallery-grid .product-name { color: #1d2939 !important; }
html[data-theme="light"] .catalog-gallery-header button,
body[data-theme="light"] .catalog-gallery-header button { background:#f1f4fa !important; border-color:#d9e2ee !important; color:#35445a !important; }
html[data-theme="light"] .catalog-gallery-grid .catalog-gallery-card,
html[data-theme="light"] .catalog-gallery-grid .product-card,
body[data-theme="light"] .catalog-gallery-grid .catalog-gallery-card,
body[data-theme="light"] .catalog-gallery-grid .product-card {
  background:#fff !important; border-color:#dce4f0 !important; color:#1d2939 !important;
}
html[data-theme="light"] .catalog-gallery-grid .catalog-gallery-card:hover,
html[data-theme="light"] .catalog-gallery-grid .product-card:hover,
body[data-theme="light"] .catalog-gallery-grid .catalog-gallery-card:hover,
body[data-theme="light"] .catalog-gallery-grid .product-card:hover { background:#f5f7ff !important; border-color:#a5b4fc !important; }
html[data-theme="light"] .catalog-gallery-grid .gallery-empty,
body[data-theme="light"] .catalog-gallery-grid .gallery-empty { color:#526176 !important; }
/* Order progress and account/profile surfaces. */
html[data-theme="light"] .order-track-line,
body[data-theme="light"] .order-track-line { background:#dce4ef !important; box-shadow:inset 0 1px 2px rgba(31,41,55,.08) !important; }
html[data-theme="light"] .order-track-status > span:first-child,
body[data-theme="light"] .order-track-status > span:first-child { color:#34445d !important; }
html[data-theme="light"] .order-track-labels,
body[data-theme="light"] .order-track-labels { color:#526176 !important; }
html[data-theme="light"] .member-welcome-copy strong,
html[data-theme="light"] .account-review-score,
body[data-theme="light"] .member-welcome-copy strong,
body[data-theme="light"] .account-review-score { color:#1d2939 !important; text-shadow:none !important; }
html[data-theme="light"] .member-welcome-copy span,
body[data-theme="light"] .member-welcome-copy span { color:#526176 !important; }
html[data-theme="light"] .member-welcome-actions button,
html[data-theme="light"] .avatar-upload,
body[data-theme="light"] .member-welcome-actions button,
body[data-theme="light"] .avatar-upload {
  background:#f4f7fc !important; color:#35445b !important; border-color:#d6dfed !important;
}
html[data-theme="light"] .member-welcome-actions button:hover,
html[data-theme="light"] .avatar-upload:hover,
body[data-theme="light"] .member-welcome-actions button:hover,
body[data-theme="light"] .avatar-upload:hover { background:#eaf0ff !important; color:#312e81 !important; border-color:#a5b4fc !important; }
html[data-theme="light"] .cart-item-thumb,
body[data-theme="light"] .cart-item-thumb { background:linear-gradient(145deg,#f7f9fe,#edf2fa) !important; border-color:#dce4f0 !important; }
html[data-theme="light"] .rating-star-bg,
body[data-theme="light"] .rating-star-bg { color:#d7deea !important; }
/* The prize moment remains celebratory, but its dialog follows the selected light theme. */
html[data-theme="light"] .celebration-card,
body[data-theme="light"] .celebration-card {
  background:linear-gradient(145deg,#ffffff 0%,#f2f6ff 54%,#f8f2ff 100%) !important;
  border-color:#ccd8fa !important;
  box-shadow:0 28px 90px rgba(25,41,73,.25),inset 0 1px #fff,0 0 42px rgba(79,70,229,.12) !important;
}
html[data-theme="light"] .celebration-kicker,
body[data-theme="light"] .celebration-kicker { color:#3730a3 !important; }
html[data-theme="light"] .celebration-banner,
body[data-theme="light"] .celebration-banner {
  display:table; margin:0 auto; padding:5px 15px; border-radius:12px;
  background:linear-gradient(135deg,#4f46e5,#3478ed) !important;
  color:#fff !important; text-shadow:none !important;
}
html[data-theme="light"] .celebration-subtitle,
body[data-theme="light"] .celebration-subtitle { color:#4b5b72 !important; }
html[data-theme="light"] .emblem-spark,
body[data-theme="light"] .emblem-spark { color:#5547cf !important; text-shadow:0 0 8px rgba(79,70,229,.25) !important; }
html[data-theme="light"] .dice-button,
body[data-theme="light"] .dice-button { color:#fff !important; }
/* Theme transitions are intentionally limited to surfaces to avoid flicker in product artwork. */
html[data-theme="light"] .topbar,
html[data-theme="light"] .side-panel,
html[data-theme="light"] .preview-section,
html[data-theme="light"] .product-card,
html[data-theme="light"] .modal-box,
html[data-theme="light"] .catalog-gallery-modal,
body[data-theme="light"] .topbar,
body[data-theme="light"] .side-panel,
body[data-theme="light"] .preview-section,
body[data-theme="light"] .product-card,
body[data-theme="light"] .modal-box,
body[data-theme="light"] .catalog-gallery-modal {
  transition-property:background-color,color,border-color !important;
  transition-duration:220ms !important;
  transition-timing-function:cubic-bezier(.22,.7,.25,1) !important;
}
html[data-theme="light"] button:focus-visible,
html[data-theme="light"] a:focus-visible,
body[data-theme="light"] button:focus-visible,
body[data-theme="light"] a:focus-visible { outline:2px solid #818cf8; outline-offset:2px; }
@media (prefers-reduced-motion: reduce) {
  html[data-theme="light"] *, body[data-theme="light"] * { transition-duration:0.01ms !important; animation-duration:0.01ms !important; animation-iteration-count:1 !important; scroll-behavior:auto !important; }
}
html:not([data-theme="light"]) .theme-toggle {
  background:linear-gradient(135deg,rgba(103,216,255,.14),rgba(126,122,255,.13)) !important;
  color:#eaf6ff !important;
  border-color:rgba(139,157,190,.35) !important;
  box-shadow:inset 0 1px rgba(255,255,255,.04),0 3px 10px rgba(0,0,0,.10) !important;
}
html[data-theme="light"] .add-sticker-layer,
html[data-theme="light"] .sticker-layer-number,
body[data-theme="light"] .add-sticker-layer,
body[data-theme="light"] .sticker-layer-number {
  background:linear-gradient(145deg,#eef4ff,#e7efff) !important;
  color:#3347a2 !important;
  border-color:#b9c9f4 !important;
  box-shadow:0 3px 9px rgba(56,78,137,.10),inset 0 1px #fff !important;
  text-shadow:none !important;
}
html[data-theme="light"] .add-sticker-layer:hover,
html[data-theme="light"] .sticker-layer-number:hover,
body[data-theme="light"] .add-sticker-layer:hover,
body[data-theme="light"] .sticker-layer-number:hover {
  background:linear-gradient(145deg,#e1eaff,#dce8ff) !important;
  color:#292f87 !important;
  border-color:#91a8ee !important;
}
html[data-theme="light"] .sticker-layer-number.active,
body[data-theme="light"] .sticker-layer-number.active { background:linear-gradient(145deg,#4f46e5,#3478ed) !important; color:#fff !important; border-color:#4f46e5 !important; }


/* CASESTUDIO V152 — refined warm-light palette, heavier copy, deep pricing and accessible controls. */
html[data-theme="light"] body,
body[data-theme="light"] {
  --cs-light-page: #efedf2;
  --cs-light-surface: #faf8f3;
  --cs-light-surface-soft: #f3f1eb;
  --cs-light-surface-tint: #e9e8f4;
  --cs-light-line: #d0d2dc;
  --cs-light-line-strong: #b8bfce;
  --cs-light-ink: #172235;
  --cs-light-ink-soft: #303d52;
  --cs-light-muted: #45536a;
  --cs-light-accent: #4338ca;
  --cs-light-accent-2: #1d4ed8;
  background:
    radial-gradient(ellipse at 8% 0%, rgba(99,102,241,.075), transparent 31%),
    radial-gradient(ellipse at 94% 10%, rgba(180,145,90,.065), transparent 28%),
    var(--cs-light-page) !important;
  color: var(--cs-light-ink) !important;
}
html[data-theme="light"] .topbar,
body[data-theme="light"] .topbar {
  background: rgba(250,248,243,.97) !important;
  border-bottom-color: #cfd1dc !important;
  box-shadow: 0 6px 22px rgba(36,43,67,.085) !important;
}
html[data-theme="light"] .side-panel,
html[data-theme="light"] .preview-section,
body[data-theme="light"] .side-panel,
body[data-theme="light"] .preview-section {
  background: linear-gradient(160deg,#faf8f3 0%,#f2f0eb 100%) !important;
  border-color: #cfd2dc !important;
  box-shadow: 0 10px 28px rgba(36,43,67,.075), inset 0 1px rgba(255,255,255,.72) !important;
}
html[data-theme="light"] .panel-header,
html[data-theme="light"] .panel-header h2,
html[data-theme="light"] .preview-header,
html[data-theme="light"] .preview-header h1,
html[data-theme="light"] .purchase-type,
html[data-theme="light"] .purchase-type h2,
html[data-theme="light"] .selected-info,
html[data-theme="light"] .quantity-section,
html[data-theme="light"] .packaging-section,
body[data-theme="light"] .panel-header,
body[data-theme="light"] .panel-header h2,
body[data-theme="light"] .preview-header,
body[data-theme="light"] .preview-header h1,
body[data-theme="light"] .purchase-type,
body[data-theme="light"] .purchase-type h2,
body[data-theme="light"] .selected-info,
body[data-theme="light"] .quantity-section,
body[data-theme="light"] .packaging-section {
  color: #172235 !important;
  font-weight: 750 !important;
}
html[data-theme="light"] .panel-header p,
html[data-theme="light"] .preview-section p,
html[data-theme="light"] .selected-info small,
html[data-theme="light"] .quantity-section small,
html[data-theme="light"] .packaging-section small,
html[data-theme="light"] .nav-hint,
html[data-theme="light"] .product-card .product-description,
html[data-theme="light"] .product-card .muted,
html[data-theme="light"] .product-card small,
body[data-theme="light"] .panel-header p,
body[data-theme="light"] .preview-section p,
body[data-theme="light"] .selected-info small,
body[data-theme="light"] .quantity-section small,
body[data-theme="light"] .packaging-section small,
body[data-theme="light"] .nav-hint,
body[data-theme="light"] .product-card .product-description,
body[data-theme="light"] .product-card .muted,
body[data-theme="light"] .product-card small {
  color: #455168 !important;
  opacity: 1 !important;
  font-weight: 600 !important;
}
/* A gentle ivory canvas replaces clinical pure white throughout the catalog. */
html[data-theme="light"] .product-card,
html[data-theme="light"] #case-list .case-card,
html[data-theme="light"] #sticker-list .sticker-card,
html[data-theme="light"] .catalog-gallery-grid .catalog-gallery-card,
body[data-theme="light"] .product-card,
body[data-theme="light"] #case-list .case-card,
body[data-theme="light"] #sticker-list .sticker-card,
body[data-theme="light"] .catalog-gallery-grid .catalog-gallery-card {
  background: linear-gradient(180deg,#faf8f2 0%,#f1efe8 100%) !important;
  color: #172235 !important;
  border-color: #cdd0da !important;
  box-shadow: 0 4px 12px rgba(37,43,66,.085), inset 0 1px rgba(255,255,255,.72) !important;
}
html[data-theme="light"] .product-card:hover,
html[data-theme="light"] .product-card.selected,
html[data-theme="light"] #case-list .case-card:hover,
html[data-theme="light"] #sticker-list .sticker-card:hover,
html[data-theme="light"] .catalog-gallery-grid .catalog-gallery-card:hover,
body[data-theme="light"] .product-card:hover,
body[data-theme="light"] .product-card.selected,
body[data-theme="light"] #case-list .case-card:hover,
body[data-theme="light"] #sticker-list .sticker-card:hover,
body[data-theme="light"] .catalog-gallery-grid .catalog-gallery-card:hover {
  background: linear-gradient(180deg,#f7f5ed 0%,#ebeaf4 100%) !important;
  border-color: #969fda !important;
  box-shadow: 0 8px 19px rgba(52,58,106,.14), inset 0 1px rgba(255,255,255,.8) !important;
}
html[data-theme="light"] .product-name,
html[data-theme="light"] .product-info,
html[data-theme="light"] .product-info strong,
html[data-theme="light"] .product-card .product-name,
html[data-theme="light"] .case-card .product-name,
html[data-theme="light"] .sticker-card .product-name,
body[data-theme="light"] .product-name,
body[data-theme="light"] .product-info,
body[data-theme="light"] .product-info strong,
body[data-theme="light"] .product-card .product-name,
body[data-theme="light"] .case-card .product-name,
body[data-theme="light"] .sticker-card .product-name {
  color: #172235 !important;
  font-weight: 850 !important;
  opacity: 1 !important;
}
html[data-theme="light"] .product-description,
html[data-theme="light"] .product-info span,
html[data-theme="light"] .product-info small,
html[data-theme="light"] .product-card .product-description,
html[data-theme="light"] .case-card .product-description,
html[data-theme="light"] .sticker-card .product-description,
body[data-theme="light"] .product-description,
body[data-theme="light"] .product-info span,
body[data-theme="light"] .product-info small,
body[data-theme="light"] .product-card .product-description,
body[data-theme="light"] .case-card .product-description,
body[data-theme="light"] .sticker-card .product-description {
  color: #3f4b60 !important;
  font-weight: 600 !important;
  opacity: 1 !important;
}
html[data-theme="light"] .product-image,
html[data-theme="light"] .catalog-gallery-grid .product-image,
body[data-theme="light"] .product-image,
body[data-theme="light"] .catalog-gallery-grid .product-image {
  background: linear-gradient(145deg,#eeedf0,#e3e4eb) !important;
  border-color: #cfd2dc !important;
}
html[data-theme="light"] .product-bottom,
html[data-theme="light"] .case-product-bottom,
body[data-theme="light"] .product-bottom,
body[data-theme="light"] .case-product-bottom {
  border-color: #cfd2dc !important;
}
/* The case price was inheriting a pale mint from the night theme. Use a deep, readable green. */
html[data-theme="light"] .case-card .price,
html[data-theme="light"] #case-list .case-card .case-product-bottom .price,
html[data-theme="light"] .sticker-card .product-bottom .price,
html[data-theme="light"] .product-card .price,
html[data-theme="light"] .product-card .product-price,
html[data-theme="light"] #selected-case-price,
html[data-theme="light"] #selected-sticker-price,
body[data-theme="light"] .case-card .price,
body[data-theme="light"] #case-list .case-card .case-product-bottom .price,
body[data-theme="light"] .sticker-card .product-bottom .price,
body[data-theme="light"] .product-card .price,
body[data-theme="light"] .product-card .product-price,
body[data-theme="light"] #selected-case-price,
body[data-theme="light"] #selected-sticker-price {
  color: #14532d !important;
  font-weight: 900 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}
html[data-theme="light"] .price .old-price,
body[data-theme="light"] .price .old-price { color: #667085 !important; font-weight: 650 !important; }
html[data-theme="light"] .price .new-price,
body[data-theme="light"] .price .new-price { color: #14532d !important; font-weight: 900 !important; }
/* Accessible gold: darker filled stars and a visible score row, instead of bright yellow glow. */
html[data-theme="light"] .product-card .product-rating,
html[data-theme="light"] #case-list .case-card .product-rating,
html[data-theme="light"] #sticker-list .sticker-card .product-rating,
body[data-theme="light"] .product-card .product-rating,
body[data-theme="light"] #case-list .case-card .product-rating,
body[data-theme="light"] #sticker-list .sticker-card .product-rating {
  background: #f1ead7 !important;
  border: 1px solid #d6c79f !important;
  border-top: 1px solid #d0bf8d !important;
  border-radius: 8px !important;
  color: #28364b !important;
  padding: 6px 7px !important;
  min-height: 29px !important;
  opacity: 1 !important;
}
html[data-theme="light"] .rating-star-bg,
body[data-theme="light"] .rating-star-bg { color: #aeb7c6 !important; }
html[data-theme="light"] .rating-star-fill,
html[data-theme="light"] .product-rating .rating-star-fill,
body[data-theme="light"] .rating-star-fill,
body[data-theme="light"] .product-rating .rating-star-fill {
  color: #925600 !important;
  text-shadow: 0 .35px .35px rgba(74,43,0,.5) !important;
  filter: none !important;
}
html[data-theme="light"] .product-rating strong,
html[data-theme="light"] .product-rating .rating-action-hint,
body[data-theme="light"] .product-rating strong,
body[data-theme="light"] .product-rating .rating-action-hint {
  color: #4a370c !important;
  font-weight: 850 !important;
  text-shadow: none !important;
}
html[data-theme="light"] .product-rating small,
body[data-theme="light"] .product-rating small { color: #4a5260 !important; font-weight: 650 !important; }
html[data-theme="light"] .product-rating .rating-action-hint,
html[data-theme="light"] .product-card .product-rating .rating-action-hint,
html[data-theme="light"] #case-list .case-card .product-rating .rating-action-hint,
body[data-theme="light"] .product-rating .rating-action-hint,
body[data-theme="light"] .product-card .product-rating .rating-action-hint,
body[data-theme="light"] #case-list .case-card .product-rating .rating-action-hint {
  background: #e6d8b2 !important;
  border-color: #c4aa69 !important;
  color: #563b05 !important;
  font-weight: 850 !important;
}
html[data-theme="light"] .product-rating .rating-action-icon,
body[data-theme="light"] .product-rating .rating-action-icon { color: #875000 !important; }
html[data-theme="light"] .product-rating.rating-neon .rating-star-fill,
body[data-theme="light"] .product-rating.rating-neon .rating-star-fill {
  color: #b87900 !important;
  filter: drop-shadow(0 0 2px rgba(255,196,45,.95)) drop-shadow(0 0 6px rgba(255,181,20,.72)) !important;
  text-shadow: 0 0 3px rgba(255,210,70,.95), 0 0 8px rgba(255,174,0,.7) !important;
  animation: lightThemeRatingStarGlow 1.45s ease-in-out infinite alternate !important;
}
html[data-theme="light"] .product-rating.rating-neon strong,
body[data-theme="light"] .product-rating.rating-neon strong {
  color: #713f00 !important;
  text-shadow: 0 0 5px rgba(255,190,30,.48) !important;
  animation: lightThemeRatingScoreGlow 1.6s ease-in-out infinite alternate !important;
}
@keyframes lightThemeRatingStarGlow {
  from { filter: drop-shadow(0 0 1px rgba(255,196,45,.72)) drop-shadow(0 0 3px rgba(255,181,20,.42)); }
  to { filter: drop-shadow(0 0 3px rgba(255,214,80,1)) drop-shadow(0 0 9px rgba(255,174,0,.88)); }
}
@keyframes lightThemeRatingScoreGlow {
  from { text-shadow: 0 0 2px rgba(255,190,30,.28); }
  to { text-shadow: 0 0 7px rgba(255,190,30,.72); }
}
@media (prefers-reduced-motion: reduce) {
  html[data-theme="light"] .product-rating.rating-neon .rating-star-fill,
  body[data-theme="light"] .product-rating.rating-neon .rating-star-fill,
  html[data-theme="light"] .product-rating.rating-neon strong,
  body[data-theme="light"] .product-rating.rating-neon strong { animation: none !important; }
}
/* Stronger separators and filter chips help the two long product columns feel structured. */
html[data-theme="light"] .sticker-filter-chip,
html[data-theme="light"] .nav-filter-trigger,
html[data-theme="light"] .case-tier-filter button,
html[data-theme="light"] .sticker-tier-filter button,
body[data-theme="light"] .sticker-filter-chip,
body[data-theme="light"] .nav-filter-trigger,
body[data-theme="light"] .case-tier-filter button,
body[data-theme="light"] .sticker-tier-filter button {
  background: linear-gradient(180deg,#f5f3ee,#e8e7ef) !important;
  color: #27354b !important;
  border: 1px solid #bfc4d1 !important;
  box-shadow: 0 2px 4px rgba(32,42,67,.075) !important;
  font-weight: 750 !important;
}
html[data-theme="light"] .sticker-filter-chip.active,
html[data-theme="light"] .nav-filter-trigger[aria-expanded="true"],
html[data-theme="light"] .case-tier-filter button.active,
html[data-theme="light"] .sticker-tier-filter button.active,
body[data-theme="light"] .sticker-filter-chip.active,
body[data-theme="light"] .nav-filter-trigger[aria-expanded="true"],
body[data-theme="light"] .case-tier-filter button.active,
body[data-theme="light"] .sticker-tier-filter button.active {
  background: linear-gradient(135deg,#dcdcf7,#dce8fa) !important;
  color: #282568 !important;
  border-color: #8e95cb !important;
  box-shadow: 0 0 0 2px rgba(67,56,202,.09),0 2px 6px rgba(32,42,67,.07) !important;
}
/* Preserve purpose-specific button colors while making neutral buttons feel tactile. */
html[data-theme="light"] button,
body[data-theme="light"] button {
  font-weight: 700;
  transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .16s ease;
}
html[data-theme="light"] .auth-tab,
html[data-theme="light"] .secondary-modal-button,
html[data-theme="light"] .review-later-button,
html[data-theme="light"] .purchase-success-copy,
html[data-theme="light"] .cart-added-continue,
html[data-theme="light"] .cart-item-main,
html[data-theme="light"] .modal-close,
html[data-theme="light"] .cart-added-close,
html[data-theme="light"] .purchase-success-close,
body[data-theme="light"] .auth-tab,
body[data-theme="light"] .secondary-modal-button,
body[data-theme="light"] .review-later-button,
body[data-theme="light"] .purchase-success-copy,
body[data-theme="light"] .cart-added-continue,
body[data-theme="light"] .cart-item-main,
body[data-theme="light"] .modal-close,
body[data-theme="light"] .cart-added-close,
body[data-theme="light"] .purchase-success-close {
  background: linear-gradient(180deg,#f4f2ec,#e4e4ec) !important;
  color: #27354b !important;
  border: 1px solid #bfc4d2 !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 5px rgba(31,42,67,.07), inset 0 1px rgba(255,255,255,.7) !important;
}
html[data-theme="light"] .auth-tab.active,
html[data-theme="light"] .account-tabs .account-section-tab.active,
html[data-theme="light"] .purchase-option.active,
html[data-theme="light"] .packaging-option.selected,
body[data-theme="light"] .auth-tab.active,
body[data-theme="light"] .account-tabs .account-section-tab.active,
body[data-theme="light"] .purchase-option.active,
body[data-theme="light"] .packaging-option.selected {
  background: linear-gradient(135deg,#d9daf3,#d5e5f5) !important;
  color: #25245f !important;
  border-color: #888fc7 !important;
  box-shadow: 0 3px 9px rgba(67,56,202,.13) !important;
  font-weight: 850 !important;
}
html[data-theme="light"] .purchase-option,
html[data-theme="light"] .packaging-option,
html[data-theme="light"] .account-tabs .account-section-tab,
body[data-theme="light"] .purchase-option,
body[data-theme="light"] .packaging-option,
body[data-theme="light"] .account-tabs .account-section-tab {
  background: linear-gradient(180deg,#f9f7f1,#eeece7) !important;
  color: #29374c !important;
  border-color: #c4c8d3 !important;
  font-weight: 750 !important;
}
html[data-theme="light"] .catalog-browse-button,
html[data-theme="light"] .side-catalog-button,
body[data-theme="light"] .catalog-browse-button,
body[data-theme="light"] .side-catalog-button {
  background: linear-gradient(135deg,#4338ca,#2458c8) !important;
  color: #fff !important;
  border: 1px solid #342ba8 !important;
  box-shadow: 0 5px 13px rgba(49,61,153,.22) !important;
  font-weight: 850 !important;
  text-shadow: none !important;
}
html[data-theme="light"] .catalog-browse-button:hover,
html[data-theme="light"] .side-catalog-button:hover,
body[data-theme="light"] .catalog-browse-button:hover,
body[data-theme="light"] .side-catalog-button:hover { background:linear-gradient(135deg,#3730a3,#1d4ed8) !important; }
html[data-theme="light"] .order-button,
html[data-theme="light"] #order-button,
html[data-theme="light"] .cart-checkout-button,
html[data-theme="light"] .confirm-order-button,
html[data-theme="light"] .primary-modal-button,
html[data-theme="light"] .cart-added-go-cart,
html[data-theme="light"] .purchase-success-continue,
html[data-theme="light"] .order-received-button,
body[data-theme="light"] .order-button,
body[data-theme="light"] #order-button,
body[data-theme="light"] .cart-checkout-button,
body[data-theme="light"] .confirm-order-button,
body[data-theme="light"] .primary-modal-button,
body[data-theme="light"] .cart-added-go-cart,
body[data-theme="light"] .purchase-success-continue,
body[data-theme="light"] .order-received-button {
  background: linear-gradient(135deg,#4338ca,#2458c8) !important;
  color: #fff !important;
  border: 1px solid #342ba8 !important;
  font-weight: 850 !important;
  box-shadow: 0 7px 17px rgba(49,61,153,.21) !important;
  text-shadow: none !important;
}
html[data-theme="light"] .order-button:hover,
html[data-theme="light"] #order-button:hover,
html[data-theme="light"] .cart-checkout-button:hover,
html[data-theme="light"] .confirm-order-button:hover,
html[data-theme="light"] .primary-modal-button:hover,
html[data-theme="light"] .cart-added-go-cart:hover,
html[data-theme="light"] .purchase-success-continue:hover,
body[data-theme="light"] .order-button:hover,
body[data-theme="light"] #order-button:hover,
body[data-theme="light"] .cart-checkout-button:hover,
body[data-theme="light"] .confirm-order-button:hover,
body[data-theme="light"] .primary-modal-button:hover,
body[data-theme="light"] .cart-added-go-cart:hover,
body[data-theme="light"] .purchase-success-continue:hover { background:linear-gradient(135deg,#3730a3,#1d4ed8) !important; transform:translateY(-1px); }
html[data-theme="light"] .support-link,
body[data-theme="light"] .support-link {
  display: inline-flex !important; align-items:center; justify-content:center;
  padding:7px 12px !important; border:1px solid #b7c1dd !important; border-radius:10px !important;
  background:#e5e7f3 !important; color:#282767 !important; font-weight:800 !important; text-decoration:none !important;
}
html[data-theme="light"] .preview-stage .preview-nav .nav-arrow,
body[data-theme="light"] .preview-stage .preview-nav .nav-arrow {
  background:linear-gradient(145deg,#f3f1ec,#dfdfeb) !important;
  border:1px solid #b9c1d4 !important; color:#34318b !important; text-shadow:none !important;
  box-shadow:0 3px 8px rgba(31,42,67,.12) !important;
}
html[data-theme="light"] .preview-stage .preview-nav .nav-arrow:hover,
body[data-theme="light"] .preview-stage .preview-nav .nav-arrow:hover { background:#dbdef2 !important; border-color:#888fc7 !important; }
html[data-theme="light"] .order-review-button,
body[data-theme="light"] .order-review-button { background:#f0e4be !important; color:#694300 !important; border-color:#c7a65c !important; font-weight:850 !important; }
html[data-theme="light"] .quantity-control,
html[data-theme="light"] .quantity-control button,
body[data-theme="light"] .quantity-control,
body[data-theme="light"] .quantity-control button { background:#e9e8f0 !important; color:#27354b !important; border-color:#bfc4d2 !important; font-weight:850 !important; }
html[data-theme="light"] .main-city-picker.city-brand-bar,
body[data-theme="light"] .main-city-picker.city-brand-bar { background:linear-gradient(135deg,#f7f5ef,#e9eaf2) !important; border-color:#c8cbd7 !important; }
html[data-theme="light"] .main-city-picker.city-brand-bar select#buyer-city,
html[data-theme="light"] .main-city-picker.city-brand-bar select#buyer-city option,
html[data-theme="light"] .gift-message-box textarea,
html[data-theme="light"] .catalog-gallery-device-search input,
html[data-theme="light"] .device-search,
html[data-theme="light"] .cart-product-preview-box,
body[data-theme="light"] .main-city-picker.city-brand-bar select#buyer-city,
body[data-theme="light"] .main-city-picker.city-brand-bar select#buyer-city option,
body[data-theme="light"] .gift-message-box textarea,
body[data-theme="light"] .catalog-gallery-device-search input,
body[data-theme="light"] .device-search,
body[data-theme="light"] .cart-product-preview-box { background:#f8f6f0 !important; color:#1f2c40 !important; border-color:#c3c8d4 !important; }
html[data-theme="light"] .catalog-gallery-modal,
html[data-theme="light"] .modal-box,
html[data-theme="light"] .modal-content,
html[data-theme="light"] .cart-modal-box,
html[data-theme="light"] .cart-item,
html[data-theme="light"] .order-modal,
html[data-theme="light"] .account-box,
html[data-theme="light"] .review-box,
html[data-theme="light"] .cart-added-card,
html[data-theme="light"] .purchase-success-card,
html[data-theme="light"] .support-chat,
body[data-theme="light"] .catalog-gallery-modal,
body[data-theme="light"] .modal-box,
body[data-theme="light"] .modal-content,
body[data-theme="light"] .cart-modal-box,
body[data-theme="light"] .cart-item,
body[data-theme="light"] .order-modal,
body[data-theme="light"] .account-box,
body[data-theme="light"] .review-box,
body[data-theme="light"] .cart-added-card,
body[data-theme="light"] .purchase-success-card,
body[data-theme="light"] .support-chat {
  background:linear-gradient(155deg,#faf8f3 0%,#f0eee8 100%) !important;
  border-color:#cdd0db !important;
  color:#1c293d !important;
}
html[data-theme="light"] .catalog-gallery-header,
html[data-theme="light"] .catalog-gallery-toolbar,
html[data-theme="light"] .support-chat header,
html[data-theme="light"] #support-chat-form,
html[data-theme="light"] .orders-summary-strip>div,
html[data-theme="light"] .customer-order-card,
html[data-theme="light"] .account-stat,
html[data-theme="light"] .account-panel,
html[data-theme="light"] .account-profile-card,
html[data-theme="light"] .account-hero,
html[data-theme="light"] .member-welcome,
html[data-theme="light"] .review-auth-message,
body[data-theme="light"] .catalog-gallery-header,
body[data-theme="light"] .catalog-gallery-toolbar,
body[data-theme="light"] .support-chat header,
body[data-theme="light"] #support-chat-form,
body[data-theme="light"] .orders-summary-strip>div,
body[data-theme="light"] .customer-order-card,
body[data-theme="light"] .account-stat,
body[data-theme="light"] .account-panel,
body[data-theme="light"] .account-profile-card,
body[data-theme="light"] .account-hero,
body[data-theme="light"] .member-welcome,
body[data-theme="light"] .review-auth-message { background:#ecebf0 !important; border-color:#d0d2dc !important; }
html[data-theme="light"] .catalog-gallery-header h2,
html[data-theme="light"] .catalog-gallery-header button,
html[data-theme="light"] .modal-box h2,
html[data-theme="light"] .modal-box h3,
html[data-theme="light"] .modal-content h2,
html[data-theme="light"] .account-box h2,
html[data-theme="light"] .account-box h3,
html[data-theme="light"] .review-box h2,
html[data-theme="light"] .purchase-success-card h3,
body[data-theme="light"] .catalog-gallery-header h2,
body[data-theme="light"] .catalog-gallery-header button,
body[data-theme="light"] .modal-box h2,
body[data-theme="light"] .modal-box h3,
body[data-theme="light"] .modal-content h2,
body[data-theme="light"] .account-box h2,
body[data-theme="light"] .account-box h3,
body[data-theme="light"] .review-box h2,
body[data-theme="light"] .purchase-success-card h3 { color:#172235 !important; font-weight:850 !important; }
html[data-theme="light"] .modal-subtitle,
html[data-theme="light"] .modal-box p,
html[data-theme="light"] .account-profile-card p,
html[data-theme="light"] .account-hero p,
html[data-theme="light"] .account-empty,
html[data-theme="light"] .purchase-success-card p,
body[data-theme="light"] .modal-subtitle,
body[data-theme="light"] .modal-box p,
body[data-theme="light"] .account-profile-card p,
body[data-theme="light"] .account-hero p,
body[data-theme="light"] .account-empty,
body[data-theme="light"] .purchase-success-card p { color:#455168 !important; font-weight:600 !important; opacity:1 !important; }
html[data-theme="light"] button:focus-visible,
html[data-theme="light"] a:focus-visible,
body[data-theme="light"] button:focus-visible,
body[data-theme="light"] a:focus-visible { outline: 3px solid #6366c8 !important; outline-offset: 2px !important; }

/* V152 final warm-surface pass for secondary dialogs, selection widgets and order details. */
html[data-theme="light"] .preview-section > .preview-stage,
body[data-theme="light"] .preview-section > .preview-stage { background:linear-gradient(145deg,#f0eff0,#e5e6ec) !important; border-color:#c9ccd7 !important; box-shadow:inset 0 1px rgba(255,255,255,.68),0 5px 16px rgba(36,43,67,.08) !important; }
html[data-theme="light"] .catalog-gallery-header,
html[data-theme="light"] .catalog-gallery-toolbar,
html[data-theme="light"] .device-suggestions,
html[data-theme="light"] .device-suggestion,
html[data-theme="light"] .gallery-device-suggestions .device-suggestion,
html[data-theme="light"] .case-city-dropdown,
html[data-theme="light"] .case-city-options,
body[data-theme="light"] .catalog-gallery-header,
body[data-theme="light"] .catalog-gallery-toolbar,
body[data-theme="light"] .device-suggestions,
body[data-theme="light"] .device-suggestion,
body[data-theme="light"] .gallery-device-suggestions .device-suggestion,
body[data-theme="light"] .case-city-dropdown,
body[data-theme="light"] .case-city-options { background:#efedf0 !important; border-color:#d0d1db !important; color:#253247 !important; }
html[data-theme="light"] .catalog-gallery-header h2,
html[data-theme="light"] .gallery-empty,
html[data-theme="light"] .device-suggestion,
html[data-theme="light"] .case-city-option,
body[data-theme="light"] .catalog-gallery-header h2,
body[data-theme="light"] .gallery-empty,
body[data-theme="light"] .device-suggestion,
body[data-theme="light"] .case-city-option { color:#263449 !important; font-weight:700 !important; }
html[data-theme="light"] .device-suggestion:hover,
html[data-theme="light"] .case-city-option:hover,
html[data-theme="light"] .case-city-option[aria-selected="true"],
body[data-theme="light"] .device-suggestion:hover,
body[data-theme="light"] .case-city-option:hover,
body[data-theme="light"] .case-city-option[aria-selected="true"] { background:#dfe2f1 !important; color:#272567 !important; }
html[data-theme="light"] .orders-summary-strip>div,
html[data-theme="light"] .customer-order-card,
html[data-theme="light"] .account-stat,
html[data-theme="light"] .account-panel,
html[data-theme="light"] .account-profile-card,
html[data-theme="light"] .account-hero,
html[data-theme="light"] .member-welcome,
body[data-theme="light"] .orders-summary-strip>div,
body[data-theme="light"] .customer-order-card,
body[data-theme="light"] .account-stat,
body[data-theme="light"] .account-panel,
body[data-theme="light"] .account-profile-card,
body[data-theme="light"] .account-hero,
body[data-theme="light"] .member-welcome { background:#efedf0 !important; border-color:#d0d1dc !important; }
html[data-theme="light"] .selected-row.total-row,
body[data-theme="light"] .selected-row.total-row { background:#e1e3f4 !important; border-color:#b9c0e5 !important; }
html[data-theme="light"] .selected-row.total-row strong,
body[data-theme="light"] .selected-row.total-row strong { color:#29266d !important; font-weight:900 !important; }
html[data-theme="light"] .account-tabs .account-section-tab,
body[data-theme="light"] .account-tabs .account-section-tab { background:linear-gradient(180deg,#f4f2ec,#e6e5ed) !important; border-color:#c1c6d3 !important; color:#303d52 !important; font-weight:800 !important; }
html[data-theme="light"] .account-tabs .account-section-tab.active,
body[data-theme="light"] .account-tabs .account-section-tab.active { background:linear-gradient(135deg,#d9daf3,#d5e5f5) !important; border-color:#888fc7 !important; color:#25245f !important; }
html[data-theme="light"] .cart-item-thumb,
body[data-theme="light"] .cart-item-thumb { background:linear-gradient(145deg,#eeedf0,#e2e3eb) !important; border-color:#cbd0dc !important; }
html[data-theme="light"] .cart-prize-breakdown,
body[data-theme="light"] .cart-prize-breakdown { background:#f3e5e8 !important; border-color:#dbabb6 !important; color:#81273a !important; }
html[data-theme="light"] .order-status-new,
body[data-theme="light"] .order-status-new { background:#efe2be !important; color:#674200 !important; border:1px solid #c9ad69 !important; }
html[data-theme="light"] .order-status-processing,
body[data-theme="light"] .order-status-processing { background:#dfeaf9 !important; color:#174579 !important; border:1px solid #a7c1e5 !important; }
html[data-theme="light"] .order-status-shipped,
body[data-theme="light"] .order-status-shipped { background:#dceef0 !important; color:#165766 !important; border:1px solid #9ccbd0 !important; }
html[data-theme="light"] .order-status-completed,
body[data-theme="light"] .order-status-completed { background:#dcefe2 !important; color:#14532d !important; border:1px solid #9dcdae !important; }
html[data-theme="light"] .order-status-cancelled,
body[data-theme="light"] .order-status-cancelled { background:#f4dfe4 !important; color:#8d1734 !important; border:1px solid #dca8b4 !important; }
html[data-theme="light"] .order-status-default,
body[data-theme="light"] .order-status-default { background:#e7e8ed !important; color:#344054 !important; border:1px solid #c8cbd4 !important; }
html[data-theme="light"] .quantity-control button:hover,
html[data-theme="light"] .secondary-modal-button:hover,
html[data-theme="light"] .review-later-button:hover,
html[data-theme="light"] .purchase-success-copy:hover,
html[data-theme="light"] .cart-added-continue:hover,
html[data-theme="light"] .modal-close:hover,
body[data-theme="light"] .quantity-control button:hover,
body[data-theme="light"] .secondary-modal-button:hover,
body[data-theme="light"] .review-later-button:hover,
body[data-theme="light"] .purchase-success-copy:hover,
body[data-theme="light"] .cart-added-continue:hover,
body[data-theme="light"] .modal-close:hover { background:#dedfee !important; color:#25245f !important; border-color:#8f97c9 !important; }
html[data-theme="light"] .support-chat header button,
html[data-theme="light"] .support-chat .support-chat-close,
body[data-theme="light"] .support-chat header button,
body[data-theme="light"] .support-chat .support-chat-close { background:#e4e4ee !important; color:#263449 !important; border:1px solid #c0c5d3 !important; }

/* V152: polish compact action controls and filter dropdown choices that do not use a primary CTA style. */
html[data-theme="light"] .side-panel button:not(.product-rating):not(.sticker-filter-chip):not(.nav-filter-trigger):not(.nav-filter-chip):not(.add-sticker-layer):not(.sticker-layer-number):not(.add-cart-button):not(.admin-dashboard-link):not(.catalog-browse-button):not(.support-link),
body[data-theme="light"] .side-panel button:not(.product-rating):not(.sticker-filter-chip):not(.nav-filter-trigger):not(.nav-filter-chip):not(.add-sticker-layer):not(.sticker-layer-number):not(.add-cart-button):not(.admin-dashboard-link):not(.catalog-browse-button):not(.support-link) {
  background:linear-gradient(180deg,#f5f3ee,#e6e5ed) !important;
  color:#29374d !important;
  border:1px solid #bdc3d2 !important;
  box-shadow:0 2px 5px rgba(31,42,67,.07) !important;
  font-weight:750 !important;
}
html[data-theme="light"] .side-panel button:not(.product-rating):not(.sticker-filter-chip):not(.nav-filter-trigger):not(.nav-filter-chip):not(.add-sticker-layer):not(.sticker-layer-number):hover,
body[data-theme="light"] .side-panel button:not(.product-rating):not(.sticker-filter-chip):not(.nav-filter-trigger):not(.nav-filter-chip):not(.add-sticker-layer):not(.sticker-layer-number):hover { background:#e1e2ef !important; border-color:#929acb !important; color:#25245f !important; }
html[data-theme="light"] .nav-filter-chip,
body[data-theme="light"] .nav-filter-chip { background:linear-gradient(180deg,#f4f2ec,#e5e4ed) !important; border-color:#bdc3d2 !important; color:#29374d !important; box-shadow:0 2px 5px rgba(31,42,67,.06) !important; }
html[data-theme="light"] .nav-filter-chip:hover,
html[data-theme="light"] .nav-filter-chip.active,
body[data-theme="light"] .nav-filter-chip:hover,
body[data-theme="light"] .nav-filter-chip.active { background:linear-gradient(135deg,#d9daf3,#d5e5f5) !important; border-color:#888fc7 !important; color:#25245f !important; }
html[data-theme="light"] .preview-section button:not(.purchase-option):not(.packaging-option):not(.order-button):not(#order-button):not(.dice-button):not(.side-catalog-button):not(.nav-arrow):not(.product-rating):not(.add-sticker-layer):not(.sticker-layer-number):not(.add-cart-button):not(.admin-dashboard-link):not(.catalog-browse-button):not(.support-link):not(.theme-toggle):not(.confirm-order-button):not(.cart-checkout-button):not(.primary-modal-button),
body[data-theme="light"] .preview-section button:not(.purchase-option):not(.packaging-option):not(.order-button):not(#order-button):not(.dice-button):not(.side-catalog-button):not(.nav-arrow):not(.product-rating):not(.add-sticker-layer):not(.sticker-layer-number):not(.add-cart-button):not(.admin-dashboard-link):not(.catalog-browse-button):not(.support-link):not(.theme-toggle):not(.confirm-order-button):not(.cart-checkout-button):not(.primary-modal-button) {
  background:linear-gradient(180deg,#f5f3ee,#e6e5ed) !important;
  color:#29374d !important;
  border:1px solid #bdc3d2 !important;
  box-shadow:0 2px 5px rgba(31,42,67,.07) !important;
  font-weight:750 !important;
}
html[data-theme="light"] .preview-section button:not(.purchase-option):not(.packaging-option):not(.order-button):not(#order-button):not(.dice-button):not(.side-catalog-button):not(.nav-arrow):not(.product-rating):not(.add-sticker-layer):not(.sticker-layer-number):not(.add-cart-button):not(.admin-dashboard-link):not(.catalog-browse-button):not(.support-link):not(.theme-toggle):not(.confirm-order-button):not(.cart-checkout-button):not(.primary-modal-button):hover,
body[data-theme="light"] .preview-section button:not(.purchase-option):not(.packaging-option):not(.order-button):not(#order-button):not(.dice-button):not(.side-catalog-button):not(.nav-arrow):not(.product-rating):not(.add-sticker-layer):not(.sticker-layer-number):not(.add-cart-button):not(.admin-dashboard-link):not(.catalog-browse-button):not(.support-link):not(.theme-toggle):not(.confirm-order-button):not(.cart-checkout-button):not(.primary-modal-button):hover { background:#e1e2ef !important; border-color:#929acb !important; color:#25245f !important; }
html[data-theme="light"] .support-chat header button,
html[data-theme="light"] .account-tabs button,
html[data-theme="light"] .customer-order-card button:not(.order-received-button):not(.order-review-button),
body[data-theme="light"] .support-chat header button,
body[data-theme="light"] .account-tabs button,
body[data-theme="light"] .customer-order-card button:not(.order-received-button):not(.order-review-button) { background:linear-gradient(180deg,#f5f3ee,#e6e5ed) !important; border:1px solid #bdc3d2 !important; color:#29374d !important; font-weight:800 !important; }
html[data-theme="light"] .account-tabs button.active,
body[data-theme="light"] .account-tabs button.active { background:linear-gradient(135deg,#d9daf3,#d5e5f5) !important; border-color:#888fc7 !important; color:#25245f !important; }

/* V153: remove the oversized card-like backdrop behind the central purchase column.
   Keep the product catalogs as their own panels; the preview, order details,
   packaging choices and checkout button should sit directly on the page canvas. */
html[data-theme="light"] .main-layout > .preview-section,
body[data-theme="light"] .main-layout > .preview-section {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 5px !important;
}


/* V154: refined tier-tinted waves on catalog cards + rating row stays inside card. */
html[data-theme="light"] #case-list .case-card,
html[data-theme="light"] #sticker-list .sticker-card,
body[data-theme="light"] #case-list .case-card,
body[data-theme="light"] #sticker-list .sticker-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  box-sizing: border-box;
  background-color: #f7f5ef !important;
  background-image: linear-gradient(132deg, rgba(255,255,255,.50) 0%, rgba(255,255,255,0) 42%),
    radial-gradient(ellipse at 100% 0%, var(--card-tier-wash, rgba(112,124,150,.15)) 0%, transparent 66%),
    linear-gradient(180deg,#faf8f2 0%,#f0eee7 100%) !important;
  border: 1px solid var(--card-tier-border, #cdd0da) !important;
  transition: background-position .35s ease, border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
html[data-theme="light"] #case-list .case-card::before,
html[data-theme="light"] #sticker-list .sticker-card::before,
body[data-theme="light"] #case-list .case-card::before,
body[data-theme="light"] #sticker-list .sticker-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  inset: 0;
  opacity: .75;
  background: radial-gradient(ellipse at 0% 100%, var(--card-tier-wave, rgba(112,124,150,.10)) 0%, transparent 57%),
              linear-gradient(112deg, transparent 18%, var(--card-tier-wave-soft, rgba(112,124,150,.055)) 48%, transparent 78%);
  background-size: 180% 180%;
  background-position: 0% 50%;
  transition: background-position .5s ease, opacity .25s ease;
}
html[data-theme="light"] #case-list .case-card:hover::before,
html[data-theme="light"] #sticker-list .sticker-card:hover::before,
body[data-theme="light"] #case-list .case-card:hover::before,
body[data-theme="light"] #sticker-list .sticker-card:hover::before { background-position: 100% 50%; opacity: .95; }
html[data-theme="light"] #case-list .case-card[data-tier="green"],
html[data-theme="light"] #sticker-list .sticker-card[data-tier="green"],
body[data-theme="light"] #case-list .case-card[data-tier="green"],
body[data-theme="light"] #sticker-list .sticker-card[data-tier="green"] { --card-tier-wash:rgba(22,163,74,.16); --card-tier-wave:rgba(22,163,74,.12); --card-tier-wave-soft:rgba(22,163,74,.075); --card-tier-border:#b8d4bf; }
html[data-theme="light"] #case-list .case-card[data-tier="blue"],
html[data-theme="light"] #sticker-list .sticker-card[data-tier="blue"],
body[data-theme="light"] #case-list .case-card[data-tier="blue"],
body[data-theme="light"] #sticker-list .sticker-card[data-tier="blue"] { --card-tier-wash:rgba(37,99,235,.16); --card-tier-wave:rgba(37,99,235,.12); --card-tier-wave-soft:rgba(37,99,235,.075); --card-tier-border:#b8cbe9; }
html[data-theme="light"] #case-list .case-card[data-tier="purple"],
html[data-theme="light"] #sticker-list .sticker-card[data-tier="purple"],
body[data-theme="light"] #case-list .case-card[data-tier="purple"],
body[data-theme="light"] #sticker-list .sticker-card[data-tier="purple"] { --card-tier-wash:rgba(126,34,206,.15); --card-tier-wave:rgba(126,34,206,.11); --card-tier-wave-soft:rgba(126,34,206,.07); --card-tier-border:#d1bee5; }
html[data-theme="light"] #case-list .case-card[data-tier="gold"],
html[data-theme="light"] #sticker-list .sticker-card[data-tier="gold"],
body[data-theme="light"] #case-list .case-card[data-tier="gold"],
body[data-theme="light"] #sticker-list .sticker-card[data-tier="gold"] { --card-tier-wash:rgba(180,120,0,.17); --card-tier-wave:rgba(180,120,0,.12); --card-tier-wave-soft:rgba(180,120,0,.07); --card-tier-border:#ddc995; }
html[data-theme="light"] #case-list .case-card[data-tier="red"],
html[data-theme="light"] #sticker-list .sticker-card[data-tier="red"],
body[data-theme="light"] #case-list .case-card[data-tier="red"],
body[data-theme="light"] #sticker-list .sticker-card[data-tier="red"] { --card-tier-wash:rgba(185,28,28,.14); --card-tier-wave:rgba(185,28,28,.10); --card-tier-wave-soft:rgba(185,28,28,.06); --card-tier-border:#e2bcbc; }
html[data-theme="light"] #case-list .case-card[data-tier="diamond"],
html[data-theme="light"] #sticker-list .sticker-card[data-tier="diamond"],
body[data-theme="light"] #case-list .case-card[data-tier="diamond"],
body[data-theme="light"] #sticker-list .sticker-card[data-tier="diamond"] { --card-tier-wash:rgba(8,145,178,.16); --card-tier-wave:rgba(8,145,178,.12); --card-tier-wave-soft:rgba(8,145,178,.07); --card-tier-border:#add8df; }
html[data-theme="light"] #case-list .case-card[data-tier="gray"],
html[data-theme="light"] #sticker-list .sticker-card[data-tier="gray"],
body[data-theme="light"] #case-list .case-card[data-tier="gray"],
body[data-theme="light"] #sticker-list .sticker-card[data-tier="gray"] { --card-tier-wash:rgba(100,116,139,.13); --card-tier-wave:rgba(100,116,139,.10); --card-tier-wave-soft:rgba(100,116,139,.06); --card-tier-border:#c6ccd5; }

/* Keep rating button, stars, score and hint inside narrow product cards without clipping. */
html[data-theme="light"] #case-list .case-card .product-rating,
html[data-theme="light"] #sticker-list .sticker-card .product-rating,
body[data-theme="light"] #case-list .case-card .product-rating,
body[data-theme="light"] #sticker-list .sticker-card .product-rating {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: clamp(2px, .45vw, 6px) !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  margin: 7px 0 0 !important;
  padding: 5px clamp(4px, .55vw, 7px) !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  font-size: clamp(9px, .72vw, 12px) !important;
}
html[data-theme="light"] .product-rating .rating-stars,
body[data-theme="light"] .product-rating .rating-stars { flex: 0 1 auto !important; min-width: 0 !important; gap: 0 !important; }
html[data-theme="light"] .product-rating .rating-star-wrap,
body[data-theme="light"] .product-rating .rating-star-wrap { font-size: clamp(10px, .9vw, 14px) !important; flex: 0 0 auto !important; }
html[data-theme="light"] .product-rating .rating-action-hint,
body[data-theme="light"] .product-rating .rating-action-hint { flex: 0 0 auto !important; margin-inline: 1px !important; padding: 3px 4px !important; font-size: clamp(8px, .62vw, 10px) !important; }
html[data-theme="light"] .product-rating strong,
body[data-theme="light"] .product-rating strong { flex: 0 0 auto !important; font-size: clamp(9px, .68vw, 11px) !important; }
html[data-theme="light"] .product-rating small,
body[data-theme="light"] .product-rating small { flex: 0 1 auto !important; min-width: 0 !important; overflow: hidden !important; text-overflow: ellipsis !important; font-size: clamp(8px, .58vw, 10px) !important; }
@media (max-width: 600px) {
  html[data-theme="light"] #case-list .case-card .product-rating,
  html[data-theme="light"] #sticker-list .sticker-card .product-rating,
  body[data-theme="light"] #case-list .case-card .product-rating,
  body[data-theme="light"] #sticker-list .sticker-card .product-rating { gap: 3px !important; padding: 5px 4px !important; }
  html[data-theme="light"] .product-rating .rating-star-wrap,
  body[data-theme="light"] .product-rating .rating-star-wrap { font-size: 12px !important; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-theme="light"] #case-list .case-card,
  html[data-theme="light"] #sticker-list .sticker-card,
  html[data-theme="light"] #case-list .case-card::before,
  html[data-theme="light"] #sticker-list .sticker-card::before,
  body[data-theme="light"] #case-list .case-card,
  body[data-theme="light"] #sticker-list .sticker-card,
  body[data-theme="light"] #case-list .case-card::before,
  body[data-theme="light"] #sticker-list .sticker-card::before { transition: none !important; }
}

/* V155: extend tier-colour waves to the night theme without washing out the dark UI. */
html:not([data-theme="light"]) #case-list .case-card,
html:not([data-theme="light"]) #sticker-list .sticker-card,
body:not([data-theme="light"]) #case-list .case-card,
body:not([data-theme="light"]) #sticker-list .sticker-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  box-sizing: border-box;
  background-color: #171c29 !important;
  background-image: linear-gradient(132deg, rgba(255,255,255,.035) 0%, transparent 44%),
    radial-gradient(ellipse at 100% 0%, var(--card-tier-wash, rgba(112,124,150,.20)) 0%, transparent 68%),
    linear-gradient(180deg,#1b2130 0%,#141925 100%) !important;
  border: 1px solid var(--card-tier-border, #3b465c) !important;
  transition: background-position .35s ease, border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
html:not([data-theme="light"]) #case-list .case-card::before,
html:not([data-theme="light"]) #sticker-list .sticker-card::before,
body:not([data-theme="light"]) #case-list .case-card::before,
body:not([data-theme="light"]) #sticker-list .sticker-card::before {
  content: ""; position:absolute; z-index:-1; pointer-events:none; inset:0; opacity:.85;
  background: radial-gradient(ellipse at 0% 100%, var(--card-tier-wave, rgba(112,124,150,.17)) 0%, transparent 59%),
              linear-gradient(112deg, transparent 12%, var(--card-tier-wave-soft, rgba(112,124,150,.09)) 48%, transparent 82%);
  background-size:180% 180%; background-position:0% 50%;
  transition:background-position .5s ease,opacity .25s ease;
}
html:not([data-theme="light"]) #case-list .case-card:hover::before,
html:not([data-theme="light"]) #sticker-list .sticker-card:hover::before,
body:not([data-theme="light"]) #case-list .case-card:hover::before,
body:not([data-theme="light"]) #sticker-list .sticker-card:hover::before { background-position:100% 50%; opacity:1; }
html:not([data-theme="light"]) #case-list .case-card[data-tier="green"], html:not([data-theme="light"]) #sticker-list .sticker-card[data-tier="green"], body:not([data-theme="light"]) #case-list .case-card[data-tier="green"], body:not([data-theme="light"]) #sticker-list .sticker-card[data-tier="green"] { --card-tier-wash:rgba(34,197,94,.20); --card-tier-wave:rgba(34,197,94,.19); --card-tier-wave-soft:rgba(34,197,94,.11); --card-tier-border:#286b4b; }
html:not([data-theme="light"]) #case-list .case-card[data-tier="blue"], html:not([data-theme="light"]) #sticker-list .sticker-card[data-tier="blue"], body:not([data-theme="light"]) #case-list .case-card[data-tier="blue"], body:not([data-theme="light"]) #sticker-list .sticker-card[data-tier="blue"] { --card-tier-wash:rgba(59,130,246,.22); --card-tier-wave:rgba(59,130,246,.19); --card-tier-wave-soft:rgba(59,130,246,.11); --card-tier-border:#315b98; }
html:not([data-theme="light"]) #case-list .case-card[data-tier="purple"], html:not([data-theme="light"]) #sticker-list .sticker-card[data-tier="purple"], body:not([data-theme="light"]) #case-list .case-card[data-tier="purple"], body:not([data-theme="light"]) #sticker-list .sticker-card[data-tier="purple"] { --card-tier-wash:rgba(168,85,247,.22); --card-tier-wave:rgba(168,85,247,.18); --card-tier-wave-soft:rgba(168,85,247,.10); --card-tier-border:#69418c; }
html:not([data-theme="light"]) #case-list .case-card[data-tier="gold"], html:not([data-theme="light"]) #sticker-list .sticker-card[data-tier="gold"], body:not([data-theme="light"]) #case-list .case-card[data-tier="gold"], body:not([data-theme="light"]) #sticker-list .sticker-card[data-tier="gold"] { --card-tier-wash:rgba(234,179,8,.20); --card-tier-wave:rgba(234,179,8,.17); --card-tier-wave-soft:rgba(234,179,8,.09); --card-tier-border:#806b31; }
html:not([data-theme="light"]) #case-list .case-card[data-tier="red"], html:not([data-theme="light"]) #sticker-list .sticker-card[data-tier="red"], body:not([data-theme="light"]) #case-list .case-card[data-tier="red"], body:not([data-theme="light"]) #sticker-list .sticker-card[data-tier="red"] { --card-tier-wash:rgba(239,68,68,.19); --card-tier-wave:rgba(239,68,68,.16); --card-tier-wave-soft:rgba(239,68,68,.09); --card-tier-border:#873c4a; }
html:not([data-theme="light"]) #case-list .case-card[data-tier="diamond"], html:not([data-theme="light"]) #sticker-list .sticker-card[data-tier="diamond"], body:not([data-theme="light"]) #case-list .case-card[data-tier="diamond"], body:not([data-theme="light"]) #sticker-list .sticker-card[data-tier="diamond"] { --card-tier-wash:rgba(34,211,238,.19); --card-tier-wave:rgba(34,211,238,.16); --card-tier-wave-soft:rgba(34,211,238,.09); --card-tier-border:#2f737f; }
html:not([data-theme="light"]) #case-list .case-card[data-tier="gray"], html:not([data-theme="light"]) #sticker-list .sticker-card[data-tier="gray"], body:not([data-theme="light"]) #case-list .case-card[data-tier="gray"], body:not([data-theme="light"]) #sticker-list .sticker-card[data-tier="gray"] { --card-tier-wash:rgba(148,163,184,.16); --card-tier-wave:rgba(148,163,184,.14); --card-tier-wave-soft:rgba(148,163,184,.08); --card-tier-border:#505b6e; }

/* V155: rating action has its own protected space; stars cannot collide with it. */
#case-list .case-card .product-rating,
#sticker-list .sticker-card .product-rating {
  display:flex !important; align-items:center !important; justify-content:flex-start !important;
  gap:clamp(3px,.45vw,7px) !important; width:100% !important; max-width:100% !important;
  min-width:0 !important; box-sizing:border-box !important; overflow:hidden !important;
  padding:5px 6px !important; white-space:nowrap !important;
}
#case-list .product-rating .rating-stars,
#sticker-list .product-rating .rating-stars { display:flex !important; align-items:center !important; flex:1 1 auto !important; min-width:0 !important; gap:0 !important; overflow:hidden !important; }
#case-list .product-rating .rating-star-wrap,
#sticker-list .product-rating .rating-star-wrap { flex:0 0 auto !important; font-size:clamp(9px,.82vw,13px) !important; }
#case-list .product-rating .rating-action-hint,
#sticker-list .product-rating .rating-action-hint { flex:0 0 auto !important; margin:0 !important; padding:3px 5px !important; font-size:clamp(8px,.62vw,10px) !important; line-height:1.2 !important; }
#case-list .product-rating strong,
#sticker-list .product-rating strong { flex:0 0 auto !important; font-size:clamp(9px,.68vw,11px) !important; }
#case-list .product-rating small,
#sticker-list .product-rating small { flex:0 1 auto !important; min-width:0 !important; overflow:hidden !important; text-overflow:ellipsis !important; font-size:clamp(8px,.58vw,10px) !important; }

/* Clear minus control for removing the currently selected extra sticker layer. */
.sticker-layer-controls .add-sticker-minus {
  background:linear-gradient(145deg,rgba(190,63,79,.48),rgba(111,36,53,.42)) !important;
  border:1px solid rgba(255,143,158,.68) !important; color:#fff !important;
  font-size:23px !important; font-weight:900 !important; line-height:1 !important;
  box-shadow:inset 0 1px rgba(255,255,255,.12),0 2px 9px rgba(120,25,45,.22) !important;
}
.sticker-layer-controls .add-sticker-minus:hover { background:linear-gradient(145deg,rgba(231,78,96,.75),rgba(151,42,61,.7)) !important; border-color:#ffb0ba !important; transform:translateY(-1px); }
html[data-theme="light"] .sticker-layer-controls .add-sticker-minus,
body[data-theme="light"] .sticker-layer-controls .add-sticker-minus { background:linear-gradient(145deg,#fce7e9,#f4cbd0) !important; border-color:#d78b96 !important; color:#8b1e2d !important; }
@media(prefers-reduced-motion:reduce){
 html:not([data-theme="light"]) #case-list .case-card, html:not([data-theme="light"]) #sticker-list .sticker-card,
 html:not([data-theme="light"]) #case-list .case-card::before, html:not([data-theme="light"]) #sticker-list .sticker-card::before,
 body:not([data-theme="light"]) #case-list .case-card, body:not([data-theme="light"]) #sticker-list .sticker-card,
 body:not([data-theme="light"]) #case-list .case-card::before, body:not([data-theme="light"]) #sticker-list .sticker-card::before { transition:none !important; }
}


/* V157 repair: remove the light-theme slab behind the whole preview and keep navigation controls individually clickable. */
body[data-theme="light"] .preview-section > .preview-stage,
html[data-theme="light"] .preview-section > .preview-stage {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}
body[data-theme="light"] .preview-stage .preview-nav,
html[data-theme="light"] .preview-stage .preview-nav,
body[data-theme="light"] .preview-stage .preview-nav:hover,
html[data-theme="light"] .preview-stage .preview-nav:hover,
body[data-theme="light"] .preview-stage .preview-nav:focus-within,
html[data-theme="light"] .preview-stage .preview-nav:focus-within {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  opacity: 1 !important;
  transform: none !important;
}
.preview-stage .preview-nav { z-index: 3 !important; pointer-events: none !important; }
.preview-stage .preview-nav > *,
.preview-stage .preview-nav button,
.preview-stage .preview-nav .nav-category-filter { pointer-events: auto !important; }
.preview-stage .phone-area, .preview-stage .phone, #case-canvas {
  position: relative !important;
  z-index: 2 !important;
  visibility: visible !important;
}
#case-canvas { display: block !important; max-width: 100% !important; height: auto !important; }
/* Consistent compact buttons without a shared tall panel. */
.preview-stage .preview-nav { width: 48px !important; min-width: 48px !important; max-width: 48px !important; padding: 4px 2px !important; gap: 7px !important; align-self: center !important; }
.preview-stage .preview-nav .nav-arrow { width: 38px !important; min-width: 38px !important; height: 40px !important; min-height: 40px !important; border-radius: 12px !important; font-size: 22px !important; }
.preview-stage .preview-nav .side-catalog-button { width: 44px !important; min-width: 44px !important; min-height: 54px !important; padding: 5px 2px !important; border-radius: 12px !important; font-size: 11px !important; line-height: 1.25 !important; }
.preview-stage .preview-nav .nav-category-filter .nav-filter-trigger { width: 36px !important; min-width: 36px !important; height: 36px !important; min-height: 36px !important; }
.sticker-layer-controls { display:flex !important; flex-direction:column !important; align-items:center !important; gap:8px !important; overflow:visible !important; }
.sticker-layer-item { position:relative !important; width:34px !important; height:34px !important; flex:0 0 34px !important; }
.sticker-layer-item .sticker-layer-number { width:34px !important; min-width:34px !important; height:34px !important; min-height:34px !important; border-radius:11px !important; }
.sticker-layer-remove { top:-4px !important; right:-4px !important; width:15px !important; min-width:15px !important; height:15px !important; min-height:15px !important; font-size:12px !important; }
@media(max-width:700px) {
  .preview-stage .preview-nav { width:38px !important; min-width:38px !important; max-width:38px !important; }
  .preview-stage .preview-nav .nav-arrow { width:31px !important; min-width:31px !important; height:36px !important; min-height:36px !important; font-size:20px !important; }
  .preview-stage .preview-nav .side-catalog-button { width:34px !important; min-width:34px !important; min-height:48px !important; font-size:9px !important; }
  .sticker-layer-item { width:30px !important; height:30px !important; flex-basis:30px !important; }
  .sticker-layer-item .sticker-layer-number { width:30px !important; min-width:30px !important; height:30px !important; min-height:30px !important; }
}


/* V158: place each sticker remove control as a red circular badge above the number's upper-right corner. */
#sticker-layer-controls { overflow: visible !important; }
#sticker-layer-controls .sticker-layer-item {
  position: relative !important;
  overflow: visible !important;
  isolation: isolate !important;
  z-index: 1 !important;
}
#sticker-layer-controls .sticker-layer-item:has(.sticker-layer-remove):hover { z-index: 10 !important; }
#sticker-layer-controls .sticker-layer-number {
  position: relative !important;
  z-index: 1 !important;
}
#sticker-layer-controls .sticker-layer-remove {
  position: absolute !important;
  top: -6px !important;
  right: -6px !important;
  left: auto !important;
  bottom: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 17px !important;
  min-width: 17px !important;
  max-width: 17px !important;
  height: 17px !important;
  min-height: 17px !important;
  max-height: 17px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: #e32645 !important;
  border: 1.5px solid #fff !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-align: center !important;
  box-shadow: 0 2px 7px rgba(90, 0, 20, .38) !important;
  cursor: pointer !important;
  z-index: 30 !important;
  pointer-events: auto !important;
  transform: none !important;
}
#sticker-layer-controls .sticker-layer-remove:hover {
  background: #bd1230 !important;
  border-color: #fff !important;
  transform: scale(1.08) !important;
}
@media (max-width: 700px) {
  #sticker-layer-controls .sticker-layer-remove {
    top: -5px !important; right: -5px !important;
    width: 16px !important; min-width: 16px !important; height: 16px !important; min-height: 16px !important;
    font-size: 12px !important;
  }
}

/* V159: remove the shared dark slab behind the preview navigation controls in BOTH themes. */
html:not([data-theme="light"]) .preview-section .preview-stage > .preview-nav,
body:not([data-theme="light"]) .preview-section .preview-stage > .preview-nav,
html[data-theme="dark"] .preview-section .preview-stage > .preview-nav,
body[data-theme="dark"] .preview-section .preview-stage > .preview-nav,
.preview-section .preview-stage > .preview-nav {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  border-radius: 0 !important;
}
/* Keep each individual control styled and clickable. */
.preview-section .preview-stage > .preview-nav > button,
.preview-section .preview-stage > .preview-nav .nav-category-filter,
.preview-section .preview-stage > .preview-nav .nav-category-filter > button {
  position: relative;
  z-index: 4;
}

/* V160: keep the category chooser above navigation arrows and nearby controls when opened. */
.preview-section .preview-stage {
  overflow: visible !important;
}
.preview-section .preview-stage > .preview-nav {
  overflow: visible !important;
  isolation: auto !important;
}
.preview-section .preview-stage > .preview-nav:has(.nav-filter-trigger[aria-expanded="true"]) {
  z-index: 10000 !important;
  position: relative !important;
}
.preview-section .preview-stage > .preview-nav .nav-category-filter {
  position: relative !important;
  z-index: 10001 !important;
  overflow: visible !important;
}
.preview-section .preview-stage > .preview-nav .nav-filter-menu:not([hidden]) {
  position: absolute !important;
  z-index: 10002 !important;
  isolation: isolate !important;
  pointer-events: auto !important;
}
.preview-section .preview-stage > .preview-nav .nav-filter-menu:not([hidden]) .nav-filter-chip {
  position: relative !important;
  z-index: 10003 !important;
  pointer-events: auto !important;
}


/* V162: carry the same category-colour wave treatment into both catalog galleries. */
.catalog-gallery-grid .catalog-gallery-card {
  position: relative !important;
  isolation: isolate !important;
  overflow: hidden !important;
  --gallery-tier-wash: rgba(120,130,150,.15);
  --gallery-tier-wave: rgba(120,130,150,.12);
  --gallery-tier-soft: rgba(120,130,150,.07);
  --gallery-tier-border: #aab3c3;
  background-image: linear-gradient(132deg,rgba(255,255,255,.045),transparent 46%),
    radial-gradient(ellipse at 100% 0%,var(--gallery-tier-wash),transparent 68%),
    linear-gradient(180deg,#1b2130 0%,#141925 100%) !important;
  border-color: var(--gallery-tier-border) !important;
  transition: background-position .4s ease, border-color .25s ease, box-shadow .25s ease, transform .25s ease !important;
}
.catalog-gallery-grid .catalog-gallery-card::before {
  content: "" !important; position:absolute !important; z-index:-1 !important; pointer-events:none !important; inset:0 !important;
  opacity:.86 !important;
  background: radial-gradient(ellipse at 0% 100%,var(--gallery-tier-wave),transparent 59%),
    linear-gradient(112deg,transparent 12%,var(--gallery-tier-soft) 48%,transparent 82%) !important;
  background-size:180% 180% !important; background-position:0% 50% !important;
  transition:background-position .5s ease,opacity .25s ease !important;
}
.catalog-gallery-grid .catalog-gallery-card:hover::before { background-position:100% 50% !important; opacity:1 !important; }
.catalog-gallery-grid .catalog-gallery-card[data-tier="green"] { --gallery-tier-wash:rgba(34,197,94,.19); --gallery-tier-wave:rgba(34,197,94,.17); --gallery-tier-soft:rgba(34,197,94,.09); --gallery-tier-border:#43865f; }
.catalog-gallery-grid .catalog-gallery-card[data-tier="blue"] { --gallery-tier-wash:rgba(59,130,246,.20); --gallery-tier-wave:rgba(59,130,246,.17); --gallery-tier-soft:rgba(59,130,246,.09); --gallery-tier-border:#4e79b8; }
.catalog-gallery-grid .catalog-gallery-card[data-tier="purple"] { --gallery-tier-wash:rgba(168,85,247,.20); --gallery-tier-wave:rgba(168,85,247,.17); --gallery-tier-soft:rgba(168,85,247,.09); --gallery-tier-border:#8b62b2; }
.catalog-gallery-grid .catalog-gallery-card[data-tier="gold"] { --gallery-tier-wash:rgba(234,179,8,.18); --gallery-tier-wave:rgba(234,179,8,.15); --gallery-tier-soft:rgba(234,179,8,.08); --gallery-tier-border:#a38b4c; }
.catalog-gallery-grid .catalog-gallery-card[data-tier="red"] { --gallery-tier-wash:rgba(239,68,68,.18); --gallery-tier-wave:rgba(239,68,68,.15); --gallery-tier-soft:rgba(239,68,68,.08); --gallery-tier-border:#b05b65; }
.catalog-gallery-grid .catalog-gallery-card[data-tier="diamond"] { --gallery-tier-wash:rgba(34,211,238,.18); --gallery-tier-wave:rgba(34,211,238,.15); --gallery-tier-soft:rgba(34,211,238,.08); --gallery-tier-border:#4a929d; }
.catalog-gallery-grid .catalog-gallery-card[data-tier="gray"] { --gallery-tier-wash:rgba(148,163,184,.14); --gallery-tier-wave:rgba(148,163,184,.12); --gallery-tier-soft:rgba(148,163,184,.07); --gallery-tier-border:#7e899a; }
html[data-theme="light"] .catalog-gallery-grid .catalog-gallery-card,
body[data-theme="light"] .catalog-gallery-grid .catalog-gallery-card {
  background-image: linear-gradient(132deg,rgba(255,255,255,.5),transparent 46%),
    radial-gradient(ellipse at 100% 0%,var(--gallery-tier-wash),transparent 70%),
    linear-gradient(180deg,#faf8f2 0%,#f1efe8 100%) !important;
  border-color:var(--gallery-tier-border) !important;
}
html[data-theme="light"] .catalog-gallery-grid .catalog-gallery-card::before,
body[data-theme="light"] .catalog-gallery-grid .catalog-gallery-card::before {
  background: radial-gradient(ellipse at 0% 100%,var(--gallery-tier-wave),transparent 59%),
    linear-gradient(112deg,transparent 12%,var(--gallery-tier-soft) 48%,transparent 82%) !important;
  opacity:.8 !important;
}
html[data-theme="light"] .catalog-gallery-grid .catalog-gallery-card:hover,
body[data-theme="light"] .catalog-gallery-grid .catalog-gallery-card:hover {
  background-image: linear-gradient(132deg,rgba(255,255,255,.55),transparent 46%),
    radial-gradient(ellipse at 100% 0%,var(--gallery-tier-wash),transparent 70%),
    linear-gradient(180deg,#f7f5ed 0%,#ebeaf4 100%) !important;
  box-shadow:0 8px 19px rgba(52,58,106,.14),inset 0 1px rgba(255,255,255,.8) !important;
}
@media (prefers-reduced-motion: reduce) {
  .catalog-gallery-grid .catalog-gallery-card,
  .catalog-gallery-grid .catalog-gallery-card::before { transition:none !important; }
}

/* V163: unmistakable raised selection state for the active case and sticker. */
#case-list .case-card,
#sticker-list .sticker-card {
  position: relative;
  transform-origin: center center;
  transition: transform .22s cubic-bezier(.2,.8,.2,1),
              border-color .22s ease, box-shadow .22s ease, filter .22s ease;
}
#case-list .case-card.selected,
#sticker-list .sticker-card.selected {
  z-index: 8 !important;
  transform: translateY(-2px) scale(1.035) !important;
  border: 2px solid var(--selected-product-border, #8de6ff) !important;
  outline: 1px solid rgba(255,255,255,.7) !important;
  outline-offset: -5px !important;
  box-shadow: 0 0 0 3px rgba(89,190,255,.18),
              0 9px 22px rgba(0,0,0,.28),
              0 0 18px var(--selected-product-glow, rgba(89,190,255,.38)),
              inset 0 0 0 1px rgba(255,255,255,.22) !important;
  filter: saturate(1.12) brightness(1.045);
}
#case-list .case-card.selected::after,
#sticker-list .sticker-card.selected::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: inherit;
  pointer-events: none;
  z-index: 4;
}
#case-list .case-card[data-tier="green"].selected, #sticker-list .sticker-card[data-tier="green"].selected { --selected-product-border:#54e58b; --selected-product-glow:rgba(52,211,112,.46); }
#case-list .case-card[data-tier="blue"].selected, #sticker-list .sticker-card[data-tier="blue"].selected { --selected-product-border:#69a8ff; --selected-product-glow:rgba(59,130,246,.48); }
#case-list .case-card[data-tier="purple"].selected, #sticker-list .sticker-card[data-tier="purple"].selected { --selected-product-border:#c18aff; --selected-product-glow:rgba(168,85,247,.48); }
#case-list .case-card[data-tier="gold"].selected, #sticker-list .sticker-card[data-tier="gold"].selected { --selected-product-border:#ffd75e; --selected-product-glow:rgba(234,179,8,.45); }
#case-list .case-card[data-tier="red"].selected, #sticker-list .sticker-card[data-tier="red"].selected { --selected-product-border:#ff7d88; --selected-product-glow:rgba(239,68,68,.45); }
#case-list .case-card[data-tier="diamond"].selected, #sticker-list .sticker-card[data-tier="diamond"].selected { --selected-product-border:#77f5ff; --selected-product-glow:rgba(34,211,238,.5); }
#case-list .case-card[data-tier="gray"].selected, #sticker-list .sticker-card[data-tier="gray"].selected { --selected-product-border:#c4d0e1; --selected-product-glow:rgba(148,163,184,.38); }
html[data-theme="light"] #case-list .case-card.selected,
html[data-theme="light"] #sticker-list .sticker-card.selected,
body[data-theme="light"] #case-list .case-card.selected,
body[data-theme="light"] #sticker-list .sticker-card.selected {
  outline-color: rgba(255,255,255,.95) !important;
  box-shadow: 0 0 0 3px rgba(55,115,190,.13),
              0 8px 18px rgba(40,52,72,.16),
              0 0 14px var(--selected-product-glow, rgba(89,190,255,.25)),
              inset 0 0 0 1px rgba(255,255,255,.9) !important;
}
@media (prefers-reduced-motion: reduce) {
  #case-list .case-card, #sticker-list .sticker-card { transition: none !important; }
}


/* V164: keep the raised selected-product treatment visible and tactile on touch/mobile layouts. */
@media (max-width: 900px), (hover: none) and (pointer: coarse) {
  #case-list, #sticker-list { overflow: visible; }
  #case-list .case-card.selected,
  #sticker-list .sticker-card.selected {
    position: relative !important;
    z-index: 20 !important;
    transform: translateY(-3px) scale(1.045) !important;
    border-width: 2px !important;
    outline: 1px solid rgba(255,255,255,.9) !important;
    outline-offset: -4px !important;
    box-shadow: 0 0 0 3px rgba(89,190,255,.24),
                0 8px 17px rgba(0,0,0,.3),
                0 0 15px var(--selected-product-glow, rgba(89,190,255,.42)),
                inset 0 0 0 1px rgba(255,255,255,.3) !important;
    filter: saturate(1.14) brightness(1.06) !important;
    -webkit-tap-highlight-color: transparent;
  }
  html[data-theme="light"] #case-list .case-card.selected,
  html[data-theme="light"] #sticker-list .sticker-card.selected,
  body[data-theme="light"] #case-list .case-card.selected,
  body[data-theme="light"] #sticker-list .sticker-card.selected {
    box-shadow: 0 0 0 3px rgba(55,115,190,.17),
                0 8px 17px rgba(40,52,72,.2),
                0 0 13px var(--selected-product-glow, rgba(89,190,255,.3)),
                inset 0 0 0 1px rgba(255,255,255,.95) !important;
  }
}


/* V165: give both product columns a little more room so the selected-card frame/glow is not cramped on phones. */
@media (min-width: 1051px) {
  .main-layout {
    grid-template-columns: 320px minmax(350px, 1fr) 320px !important;
    column-gap: 22px !important;
  }
}
@media (max-width: 850px) {
  .main-layout {
    padding-left: 4px !important;
    padding-right: 4px !important;
  }
  .main-layout > .stickers-panel,
  .main-layout > .cases-panel {
    width: calc(100% - 2px) !important;
    max-width: none !important;
    box-sizing: border-box !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
    overflow: visible !important;
  }
  #sticker-list, #case-list {
    padding: 4px !important;
    margin: 0 -3px !important;
    overflow-x: visible !important;
  }
  /* V166: prevent selected cards from being clipped at the left/right edges on touch screens. */
  #sticker-list, #case-list {
    padding: 8px 10px 12px !important;
    margin: 0 -1px !important;
    overflow-x: hidden !important;
    scroll-padding-inline: 10px;
  }
  #sticker-list .sticker-card.selected,
  #case-list .case-card.selected {
    transform: translateY(-2px) scale(1) !important;
    transform-origin: center center !important;
    z-index: 25 !important;
    outline-offset: -3px !important;
    box-shadow: 0 0 0 2px rgba(89,190,255,.2),
                0 4px 10px rgba(0,0,0,.22),
                inset 0 0 0 2px var(--selected-product-border, rgba(255,255,255,.9)),
                inset 0 0 13px var(--selected-product-glow, rgba(89,190,255,.24)) !important;
  }
}

/* V167: prevent selected product cards from clipping on desktop too; use an inset raised treatment instead of scaling beyond the column. */
#case-list .case-card.selected,
#sticker-list .sticker-card.selected {
  transform: translateY(-2px) scale(1) !important;
  transform-origin: center center !important;
  outline-offset: -4px !important;
  box-shadow: 0 0 0 2px rgba(89,190,255,.18),
              0 4px 12px rgba(0,0,0,.24),
              inset 0 0 0 2px var(--selected-product-border, rgba(255,255,255,.9)),
              inset 0 0 16px var(--selected-product-glow, rgba(89,190,255,.24)) !important;
}
html[data-theme="light"] #case-list .case-card.selected,
html[data-theme="light"] #sticker-list .sticker-card.selected,
body[data-theme="light"] #case-list .case-card.selected,
body[data-theme="light"] #sticker-list .sticker-card.selected {
  box-shadow: 0 0 0 2px rgba(55,115,190,.12),
              0 4px 12px rgba(40,52,72,.16),
              inset 0 0 0 2px var(--selected-product-border, rgba(255,255,255,.9)),
              inset 0 0 14px var(--selected-product-glow, rgba(89,190,255,.2)) !important;
}

/* V168: desktop rating row layout — keep stars, score and rating action from colliding in either theme. */
@media (min-width: 601px) {
  #case-list .case-card .product-rating,
  #sticker-list .sticker-card .product-rating {
    display:flex !important;
    flex-wrap:wrap !important;
    align-items:center !important;
    justify-content:flex-start !important;
    column-gap:8px !important;
    row-gap:6px !important;
    height:auto !important;
    min-height:32px !important;
    overflow:visible !important;
    white-space:normal !important;
    padding:7px 8px !important;
    line-height:1.25 !important;
  }
  #case-list .case-card .product-rating .rating-stars,
  #sticker-list .sticker-card .product-rating .rating-stars {
    display:inline-flex !important;
    flex:0 0 auto !important;
    align-items:center !important;
    gap:2px !important;
    min-width:max-content !important;
    overflow:visible !important;
    white-space:nowrap !important;
  }
  #case-list .case-card .product-rating .rating-star-wrap,
  #sticker-list .sticker-card .product-rating .rating-star-wrap {
    flex:0 0 auto !important;
    font-size:13px !important;
    line-height:1 !important;
  }
  #case-list .case-card .product-rating .rating-action-hint,
  #sticker-list .sticker-card .product-rating .rating-action-hint {
    flex:0 0 auto !important;
    margin:0 !important;
    white-space:nowrap !important;
    padding:4px 7px !important;
    font-size:10px !important;
    line-height:1.2 !important;
  }
  #case-list .case-card .product-rating strong,
  #sticker-list .sticker-card .product-rating strong {
    flex:0 0 auto !important;
    white-space:nowrap !important;
    font-size:12px !important;
    line-height:1.2 !important;
  }
  #case-list .case-card .product-rating small,
  #sticker-list .sticker-card .product-rating small {
    flex:1 1 70px !important;
    min-width:0 !important;
    max-width:100% !important;
    white-space:normal !important;
    overflow-wrap:anywhere !important;
    line-height:1.2 !important;
    font-size:10px !important;
  }
}


/* V170: minimal animated sun/moon theme switch on storefront */
.theme-toggle { width:42px !important; min-width:42px !important; height:42px !important; min-height:42px !important; padding:0 !important; gap:0 !important; border-radius:50% !important; overflow:hidden; }
.theme-toggle .theme-glyph { display:inline-flex; align-items:center; justify-content:center; width:100%; height:100%; font-family:Arial,sans-serif; font-size:27px; line-height:1; transform:rotate(0deg) scale(1); transition:transform .22s cubic-bezier(.2,.85,.25,1), color .16s ease, text-shadow .16s ease; }
.theme-toggle.theme-transitioning .theme-glyph { transform:rotate(180deg) scale(.78); }
html[data-theme="dark"] .theme-toggle .theme-glyph { color:#ffd166; text-shadow:0 0 9px rgba(255,195,70,.5); }
html[data-theme="light"] .theme-toggle .theme-glyph { color:#4f46e5; text-shadow:0 0 8px rgba(99,102,241,.22); }
@media (prefers-reduced-motion: reduce) { .theme-toggle .theme-glyph { transition:none !important; } }

/* V171: crisp, fast premium theme switch */
.theme-toggle { width:44px !important; min-width:44px !important; height:44px !important; min-height:44px !important; border-radius:15px !important; border:1px solid rgba(148,163,184,.28) !important; background:linear-gradient(145deg,rgba(255,255,255,.96),rgba(226,232,240,.78)) !important; box-shadow:0 4px 12px rgba(15,23,42,.10), inset 0 1px 0 rgba(255,255,255,.95) !important; transition:transform .14s ease, box-shadow .16s ease, background .16s ease !important; }
.theme-toggle:hover { transform:translateY(-1px) !important; box-shadow:0 7px 16px rgba(79,70,229,.16), inset 0 1px 0 rgba(255,255,255,.95) !important; }
.theme-toggle:active { transform:scale(.94) !important; }
.theme-toggle .theme-glyph { font-size:25px !important; transition:transform .22s cubic-bezier(.2,.85,.25,1), color .16s ease, text-shadow .16s ease !important; }
.theme-toggle.theme-transitioning .theme-glyph { transform:rotate(180deg) scale(.78) !important; }
html[data-theme="dark"] .theme-toggle { background:linear-gradient(145deg,#26334b,#182337) !important; border-color:rgba(148,163,184,.22) !important; box-shadow:0 4px 14px rgba(0,0,0,.24), inset 0 1px rgba(255,255,255,.06) !important; }
html[data-theme="dark"] .theme-toggle .theme-glyph { color:#ffd166 !important; text-shadow:0 0 7px rgba(255,209,102,.42) !important; }
html[data-theme="light"] .theme-toggle .theme-glyph { color:#4f46e5 !important; text-shadow:0 0 7px rgba(99,102,241,.20) !important; }


/* V177: storefront theme switch matched to admin for identical styling and snappy response */
.theme-toggle {
  width:44px !important; min-width:44px !important; height:44px !important; min-height:44px !important;
  display:grid !important; place-items:center !important; padding:0 !important; gap:0 !important;
  position:relative !important; box-sizing:border-box !important; vertical-align:middle !important;
  border-radius:15px !important; border:1px solid rgba(148,163,184,.28) !important;
  background:linear-gradient(145deg,rgba(255,255,255,.96),rgba(226,232,240,.78)) !important;
  box-shadow:0 4px 12px rgba(15,23,42,.10),inset 0 1px 0 rgba(255,255,255,.95) !important;
  overflow:hidden; line-height:normal !important; font-size:0 !important;
  transition:transform .14s ease,box-shadow .16s ease,background .16s ease !important;
  -webkit-tap-highlight-color:transparent; touch-action:manipulation; cursor:pointer;
}
.theme-toggle:hover { transform:translateY(-1px) !important; box-shadow:0 7px 16px rgba(79,70,229,.16),inset 0 1px 0 rgba(255,255,255,.95) !important; }
.theme-toggle:active { transform:scale(.94) !important; }
.theme-toggle > svg.theme-glyph {
  display:block !important; position:static !important; inset:auto !important;
  width:23px !important; height:23px !important; min-width:23px !important; min-height:23px !important;
  max-width:23px !important; max-height:23px !important; flex:none !important; margin:0 !important; padding:0 !important;
  box-sizing:border-box !important; transform-origin:50% 50% !important; transform-box:view-box !important;
  transition:transform .14s cubic-bezier(.16,1,.3,1),color .12s ease,filter .12s ease !important;
}
.theme-toggle.theme-transitioning > svg.theme-glyph { transform:translateX(0mm) rotate(180deg) scale(.78) !important; }
.theme-toggle > svg.theme-glyph { transform:translateX(0mm) !important; }
html[data-theme="dark"] .theme-toggle { background:linear-gradient(145deg,#26334b,#182337) !important; border-color:rgba(148,163,184,.22) !important; box-shadow:0 4px 14px rgba(0,0,0,.24),inset 0 1px rgba(255,255,255,.06) !important; }
html[data-theme="dark"] .theme-toggle > svg.theme-glyph { color:#ffd166 !important; filter:drop-shadow(0 0 3px rgba(255,209,102,.24)); }
html[data-theme="light"] .theme-toggle { background:linear-gradient(145deg,#e5e4f6,#dfeaf5) !important; border-color:#afb7d9 !important; box-shadow:0 3px 9px rgba(47,54,111,.1) !important; }
html[data-theme="light"] .theme-toggle > svg.theme-glyph { color:#4f46e5 !important; filter:drop-shadow(0 0 3px rgba(99,102,241,.18)); }
@media (prefers-reduced-motion: reduce) { .theme-toggle, .theme-toggle > svg.theme-glyph { transition:none !important; } }

/* V179: tiny icon correction and smoother, lighter storefront theme transition */
.theme-toggle > svg.theme-glyph { transform:translateX(0mm) !important; will-change:transform; }
.theme-toggle.theme-transitioning > svg.theme-glyph { transform:translateX(0mm) rotate(180deg) scale(.78) !important; }
html[data-theme="light"] .topbar, html[data-theme="light"] .side-panel, html[data-theme="light"] .preview-section,
html[data-theme="light"] .product-card, html[data-theme="light"] .modal-box, html[data-theme="light"] .catalog-gallery-modal,
body[data-theme="light"] .topbar, body[data-theme="light"] .side-panel, body[data-theme="light"] .preview-section,
body[data-theme="light"] .product-card, body[data-theme="light"] .modal-box, body[data-theme="light"] .catalog-gallery-modal {
  transition-property:background-color,color,border-color !important;
  transition-duration:220ms !important;
  transition-timing-function:cubic-bezier(.22,.7,.25,1) !important;
}


/* V181 — direct theme interpolation; no viewport cover or forced transition freeze. */
html, body, .topbar, .top-actions, .header-actions, .side-panel, .preview-section,
.product-card, .case-card, .sticker-card, .modal-box, .modal-content,
.catalog-gallery-modal, .admin-sidebar, .admin-header, .admin-card, .admin-panel,
.admin-theme-toggle, .theme-toggle {
  transition-property: background-color, color, border-color !important;
  transition-duration: 220ms !important;
  transition-timing-function: cubic-bezier(.22,.7,.25,1) !important;
}
.theme-toggle, .admin-theme-toggle { position:relative; isolation:isolate; }
.theme-toggle::after, .admin-theme-toggle::after {
  content:""; position:absolute; inset:3px; border-radius:inherit; pointer-events:none;
  opacity:0; box-shadow:0 0 0 0 rgba(129,140,248,0);
}
.theme-toggle.theme-transitioning::after, .admin-theme-toggle.theme-transitioning::after {
  animation:casestudio-theme-glint 420ms ease-out both;
}
@keyframes casestudio-theme-glint {
  0% { opacity:0; box-shadow:0 0 0 0 rgba(129,140,248,0); }
  35% { opacity:.9; box-shadow:0 0 14px 3px rgba(129,140,248,.28); }
  100% { opacity:0; box-shadow:0 0 2px 0 rgba(129,140,248,0); }
}
@media(prefers-reduced-motion:reduce) {
  .theme-toggle::after, .admin-theme-toggle::after { animation:none !important; }
  html, body, .topbar, .side-panel, .preview-section, .product-card, .case-card,
  .sticker-card, .modal-box, .modal-content, .admin-sidebar, .admin-header,
  .admin-card, .admin-panel { transition-duration:.01ms !important; }
}
/* V183: keep text-color interpolation scoped to meaningful storefront surfaces. */
html[data-theme] body :is(.topbar,.header-actions,.side-panel,.preview-section,.preview-stage,
  .product-card,.case-card,.sticker-card,.panel-header,.product-info,.product-bottom,
  .modal-box,.modal-content,.cart-modal-box,.cart-item,.order-modal,.order-preview-summary,
  .purchase-success-summary,.account-box,.account-panel,.review-box,.cart-added-card,
  .purchase-success-card,.catalog-gallery-modal,.catalog-gallery-toolbar,.sticker-tier-filter,
  .case-tier-filter,.sticker-filter-chip,.nav-filter-trigger,.device-search-wrapper,
  .device-search,.device-result,.device-suggestions,.case-city-dropdown,.case-city-options,
  .case-city-option,.selected-row,.selected-info,.quantity-control,.packaging-option,
  .purchase-option,.rotation-control,.gift-message-box,.toast) :is(h1,h2,h3,h4,p,small,label,a,
  button,input,textarea,select,option,th,td,strong,em,span) {
  transition-property: color !important;
  transition-duration: 240ms !important;
  transition-timing-function: cubic-bezier(.22,.7,.25,1) !important;
}

/* V182 — bring storefront theme interpolation in line with the admin's direct 220ms color transition.
   Only interpolate colors, background colors, and borders; leave shadows, filters, product artwork,
   previews, and unrelated motion out of the theme switch. More-specific selectors intentionally
   override older light-theme transition shorthands above. */
html[data-theme] body,
html[data-theme] body .topbar,
html[data-theme] body .header-actions,
html[data-theme] body .side-panel,
html[data-theme] body .preview-section,
html[data-theme] body .preview-stage,
html[data-theme] body .city-brand-bar,
html[data-theme] body .product-card,
html[data-theme] body .case-card,
html[data-theme] body .sticker-card,
html[data-theme] body .product-bottom,
html[data-theme] body .case-product-bottom,
html[data-theme] body .modal-box,
html[data-theme] body .modal-content,
html[data-theme] body .cart-modal-box,
html[data-theme] body .cart-item,
html[data-theme] body .order-modal,
html[data-theme] body .order-preview-summary,
html[data-theme] body .purchase-success-summary,
html[data-theme] body .account-box,
html[data-theme] body .account-panel,
html[data-theme] body .review-box,
html[data-theme] body .cart-added-card,
html[data-theme] body .purchase-success-card,
html[data-theme] body .catalog-gallery-modal,
html[data-theme] body .catalog-gallery-toolbar,
html[data-theme] body .catalog-gallery-grid .product-card,
html[data-theme] body .sticker-tier-filter,
html[data-theme] body .case-tier-filter,
html[data-theme] body .sticker-filter-chip,
html[data-theme] body .nav-filter-trigger,
html[data-theme] body .device-search-wrapper,
html[data-theme] body .device-search,
html[data-theme] body .device-result,
html[data-theme] body .device-suggestions,
html[data-theme] body .case-city-dropdown,
html[data-theme] body .case-city-options,
html[data-theme] body .case-city-option,
html[data-theme] body .selected-row,
html[data-theme] body .selected-info,
html[data-theme] body .quantity-control,
html[data-theme] body .packaging-option,
html[data-theme] body .purchase-option,
html[data-theme] body .rotation-control,
html[data-theme] body .gift-message-box,
html[data-theme] body .toast {
  transition-property:background-color,color,border-color !important;
  transition-duration:220ms !important;
  transition-timing-function:cubic-bezier(.22,.7,.25,1) !important;
}
/* V183: broad body-wide text transitions removed; scoped transitions are defined above. */


/* V185 — Instant Theme + Focused Motion
   Product/page colors switch immediately (no per-element color interpolation).
   A compact composited ring on the theme button supplies the only deliberate transition cue. */
html { transition-property: none !important; }
html[data-theme="dark"] body {
  background:
    radial-gradient(circle at 50% 20%,rgba(40,50,70,.12),transparent 35%),
    radial-gradient(ellipse at 8% 0%,rgba(0,0,0,0),transparent 31%),
    radial-gradient(ellipse at 94% 10%,rgba(0,0,0,0),transparent 28%),
    #090b10 !important;
}
html[data-theme="light"] body {
  background:
    radial-gradient(circle at 50% 20%,rgba(0,0,0,0),transparent 35%),
    radial-gradient(ellipse at 8% 0%,rgba(99,102,241,.075),transparent 31%),
    radial-gradient(ellipse at 94% 10%,rgba(180,145,90,.065),transparent 28%),
    #efedf2 !important;
}
html[data-theme="dark"] body .topbar { background:#10131a !important; }
html[data-theme="light"] body .topbar { background:rgba(250,248,243,.97) !important; }
html[data-theme="dark"] body .side-panel { background:linear-gradient(160deg,#10131a,#10131a) !important; }
html[data-theme="light"] body .side-panel { background:linear-gradient(160deg,#faf8f3,#f2f0eb) !important; }
html[data-theme="dark"] body .product-card { background:linear-gradient(180deg,#151922,#151922) !important; }
html[data-theme="light"] body .product-card { background:linear-gradient(180deg,#faf8f2,#f1efe8) !important; }
html[data-theme="dark"] body .product-card:hover { background:linear-gradient(180deg,#191e29,#191e29) !important; }
html[data-theme="light"] body .product-card:hover { background:linear-gradient(180deg,#f7f5ed,#ebeaf4) !important; }
html[data-theme="dark"] body .product-card.selected,
html[data-theme="dark"] body .product-card:hover.selected { background:linear-gradient(180deg,#1c222e,#1c222e) !important; }
html[data-theme="light"] body .product-card.selected,
html[data-theme="light"] body .product-card:hover.selected { background:linear-gradient(180deg,#f7f5ed,#ebeaf4) !important; }

/* The short-lived class prevents legacy color transitions from starting during the snap.
   Hover/press transitions are restored immediately afterward. Exclude the theme button so its
   icon and pulse remain animated. */
html.theme-instant-swap,
html.theme-instant-swap body,
html.theme-instant-swap body *:not(.theme-toggle):not(.theme-toggle *),
html.theme-instant-swap body *:not(.theme-toggle):not(.theme-toggle *)::before,
html.theme-instant-swap body *:not(.theme-toggle):not(.theme-toggle *)::after {
  transition-property: none !important;
  transition-duration: 0ms !important;
}
.theme-toggle::after {
  content:"" !important;
  position:absolute !important;
  inset:3px !important;
  border:1px solid rgba(129,140,248,.8) !important;
  border-radius:inherit !important;
  box-shadow:none !important;
  opacity:0;
  transform:scale(.78);
  transform-origin:center;
  pointer-events:none;
}
.theme-toggle.theme-transitioning::after {
  animation:cs-theme-ring-pulse 390ms cubic-bezier(.16,1,.3,1) both !important;
}
@keyframes cs-theme-ring-pulse {
  0% { opacity:0; transform:scale(.78); }
  24% { opacity:.9; transform:scale(.94); }
  100% { opacity:0; transform:scale(1.28); }
}
@media (prefers-reduced-motion: reduce) {
  .theme-toggle::after { animation:none !important; }
}


/* V185: skip offscreen product-card rendering while keeping every product in the DOM.
   This is a progressive rendering optimization for large catalogs; product data and selectors stay intact. */
html[data-theme] body .product-card {
  content-visibility: auto;
  contain-intrinsic-size: auto 145px;
}
html[data-theme] body .case-card { contain-intrinsic-size: auto 150px; }
html[data-theme] body .sticker-card { contain-intrinsic-size: auto 132px; }


/* V186 — avatar-only account button and 20 built-in registration avatars */
.header-actions > .account-btn { width:42px !important; min-width:42px !important; height:42px !important; min-height:42px !important; padding:4px !important; justify-content:center; gap:0 !important; border-radius:50% !important; }
.header-actions > .account-btn #account-button-label { display:none !important; }
.account-button-avatar { width:34px !important; height:34px !important; flex:0 0 34px !important; border-radius:50% !important; font-size:21px !important; }
.account-button-avatar img, img.account-button-avatar { width:34px !important; height:34px !important; object-fit:cover !important; border-radius:50% !important; }
.register-avatar-picker { display:flex; flex-direction:column; gap:10px; margin:2px 0 8px; }
.avatar-picker-hint { margin:-2px 0 4px; color:#8d9aad; font-size:11px; line-height:1.6; }
.avatar-picker-group { display:flex; flex-direction:column; gap:7px; }
.avatar-picker-group > span { color:#9eabc0; font-size:11px; font-weight:800; }
.avatar-picker-options { display:grid; grid-template-columns:repeat(8,minmax(0,1fr)); gap:7px; }
.avatar-choice { min-width:0; aspect-ratio:1; padding:3px; display:grid; place-items:center; border-radius:13px; border:1px solid rgba(140,160,190,.24); background:var(--avatar-bg,#202a39); cursor:pointer; transition:border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.avatar-choice span { font-size:clamp(21px,5vw,29px); line-height:1.2; }
.avatar-choice:hover { transform:translateY(-2px); border-color:#80b8ff; }
.avatar-choice.selected { border:2px solid #6ca8ff; box-shadow:0 0 0 3px rgba(108,168,255,.18); }
@media(max-width:420px) { .avatar-picker-options { grid-template-columns:repeat(5,minmax(0,1fr)); gap:6px; } .header-actions > .account-btn { width:38px !important; min-width:38px !important; height:38px !important; min-height:38px !important; } .account-button-avatar,.account-button-avatar img,img.account-button-avatar { width:30px !important; height:30px !important; flex-basis:30px !important; } }

/* V187 — password visibility controls */
.password-field{position:relative;width:100%;display:flex;align-items:center}
.password-field>input{width:100%;padding-inline-end:48px!important}
.password-visibility-toggle{position:absolute;inset-inline-end:8px;top:50%;transform:translateY(-50%);width:34px;height:34px;display:grid;place-items:center;border:0;border-radius:9px;background:transparent;color:var(--text-muted,#8995a7);cursor:pointer;z-index:2}
.password-visibility-toggle:hover{background:rgba(125,145,170,.14);color:var(--text-color,#e5eaf2)}
.password-visibility-toggle svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.password-visibility-toggle.is-visible{color:#60a5fa}


/* =========================================================
   CASESTUDIO V192 — rebuilt customer profile experience
========================================================= */
.account-box:has(.account-profile-view:not(.hidden)){width:min(680px,calc(100vw - 24px));max-height:min(92dvh,920px);overflow:auto;overscroll-behavior:contain;padding:clamp(18px,3vw,28px);scrollbar-width:thin;scrollbar-color:rgba(140,160,190,.4) transparent}
.account-profile-view{display:flex;flex-direction:column;gap:14px;min-width:0}
.profile-hero-card{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;padding:23px 18px 20px;border:1px solid rgba(130,155,205,.23);border-radius:22px;background:radial-gradient(ellipse at 50% 0%,rgba(117,112,255,.17),transparent 68%),linear-gradient(145deg,rgba(34,43,65,.88),rgba(20,27,41,.94));overflow:hidden}
.profile-hero-card:before{content:"";position:absolute;inset:0 22% auto;height:1px;background:linear-gradient(90deg,transparent,rgba(175,190,255,.5),transparent)}
.profile-avatar-stage{display:flex;align-items:center;flex-direction:column;gap:10px}
.profile-avatar-preview{width:104px;height:104px;display:grid;place-items:center;border-radius:50%;padding:4px;background:linear-gradient(140deg,#91a7ff,#b58dff 48%,#71d6e8);box-shadow:0 9px 28px rgba(92,115,255,.24);overflow:hidden}
.profile-editor-avatar{width:100%;height:100%;border:3px solid rgba(20,25,40,.9);border-radius:50%;display:grid;place-items:center;overflow:hidden;background:linear-gradient(135deg,#253247,#52647d);color:#fff;font-size:30px;font-weight:900;object-fit:cover}
.profile-avatar-action{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid rgba(148,166,218,.3);background:rgba(129,143,224,.1);color:var(--text,#edf1fa);border-radius:999px;padding:9px 14px;font:inherit;font-size:12px;font-weight:800;cursor:pointer;transition:background .2s,border-color .2s,transform .2s}
.profile-avatar-action:hover{background:rgba(129,143,224,.2);border-color:rgba(148,166,255,.65);transform:translateY(-1px)}
.profile-display-name{margin:3px 0 0;font-size:21px;font-weight:900;line-height:1.4;overflow-wrap:anywhere}
.profile-display-email{margin:0;color:var(--muted,#a1aec1);font-size:12px;max-width:100%;overflow-wrap:anywhere;direction:ltr}
.profile-member-tag{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border-radius:999px;background:rgba(85,210,165,.09);border:1px solid rgba(85,210,165,.18);font-size:10px;font-weight:800;color:#8be6c0;margin-top:2px}
.profile-member-tag span{width:6px;height:6px;border-radius:50%;background:#52d5a3;box-shadow:0 0 0 3px rgba(82,213,163,.12)}
.profile-section-card,.profile-avatar-picker-panel{padding:17px;border:1px solid var(--border,rgba(140,160,190,.18));border-radius:18px;background:var(--card-bg,rgba(27,35,51,.62));min-width:0}
.profile-section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:15px}
.profile-section-heading h4{margin:2px 0 0;font-size:15px;font-weight:900}
.profile-section-heading p{margin:5px 0 0;color:var(--muted,#97a4b8);font-size:11px;line-height:1.65}
.profile-eyebrow{display:block;color:#9caeff;font:800 9px/1.4 Arial,sans-serif;letter-spacing:1.5px;direction:ltr;text-align:right}
.profile-section-icon{width:35px;height:35px;flex:0 0 35px;display:grid;place-items:center;border-radius:12px;background:rgba(134,149,255,.12);border:1px solid rgba(134,149,255,.16);font-size:17px;color:#becaff}
.profile-fields-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.profile-field{display:flex;flex-direction:column;gap:7px;min-width:0;color:var(--text,#e7edf7);font-size:12px;font-weight:800}
.profile-field>span{display:flex;align-items:center;gap:5px}.profile-field>span b{color:#f28c9a}
.profile-field>small{font-size:10px;font-weight:500;color:var(--muted,#94a0b3);line-height:1.5}
.profile-field-wide{grid-column:1/-1}
.account-profile-view .account-field{width:100%;max-width:100%;min-width:0;box-sizing:border-box;border:1px solid rgba(135,156,190,.25);border-radius:12px;background:rgba(9,14,24,.4);color:var(--text,#eef2f8);font:inherit;font-size:13px;font-weight:500;padding:12px 13px;outline:none;transition:border-color .18s,box-shadow .18s,background .18s}
.account-profile-view .account-field:focus{border-color:#8c9bff;box-shadow:0 0 0 3px rgba(135,147,255,.12);background:rgba(12,17,29,.7)}
.account-profile-view .account-field:disabled{opacity:.7;cursor:not-allowed}
.profile-textarea{resize:vertical;min-height:84px;line-height:1.7}
.profile-button{width:100%;min-height:45px;display:flex;align-items:center;justify-content:center;gap:9px;border:1px solid transparent;border-radius:13px;padding:11px 15px;color:var(--text,#f3f5fb);font:inherit;font-size:13px;font-weight:900;cursor:pointer;transition:transform .18s,filter .18s,border-color .18s,background .18s;box-sizing:border-box}
.profile-button:not(:disabled):hover{transform:translateY(-1px);filter:brightness(1.07)}
.profile-button:disabled{opacity:.55;cursor:not-allowed}
.profile-button-primary{margin-top:15px;color:#fff;background:linear-gradient(120deg,#5b69e9,#8872f3);box-shadow:0 7px 18px rgba(91,105,233,.18)}
.profile-button-primary.is-loading{opacity:.65}
.profile-button-soft{background:rgba(110,129,255,.1);border-color:rgba(132,146,255,.25);color:var(--text,#e9edff)}
.profile-button-outline{width:auto;min-height:36px;display:inline-flex;cursor:pointer;background:rgba(115,133,185,.09);border-color:rgba(145,160,200,.28);padding:8px 12px;font-size:11px}
.profile-current-email{display:flex;align-items:center;gap:10px;min-width:0;padding:12px;border:1px solid rgba(136,153,188,.18);border-radius:13px;background:rgba(120,142,182,.055);margin-bottom:13px}
.profile-email-symbol{width:37px;height:37px;display:grid;place-items:center;border-radius:11px;background:rgba(130,149,255,.12);flex:0 0 37px}
.profile-current-email>div{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}.profile-current-email small{color:var(--muted,#9ca9bb);font-size:10px}.profile-current-email strong{direction:ltr;text-align:right;overflow-wrap:anywhere;font-size:12px}
.profile-readonly-tag{padding:4px 7px;border-radius:7px;background:rgba(99,215,169,.1);color:#83dfb8;font-size:9px;font-weight:900;white-space:nowrap}
.profile-subform{display:flex;flex-direction:column;gap:7px}.profile-subform label{font-size:11px;font-weight:800;color:var(--text,#e7edf7)}.profile-subform .profile-button{margin-top:3px}
.profile-helper{margin:8px 0 0;color:var(--muted,#9aa7ba);font-size:10px;line-height:1.7}.profile-cooldown{padding:9px 11px;border:1px solid rgba(239,185,91,.18);border-radius:10px;background:rgba(239,185,91,.055);color:#eac88a}
.profile-request-state{display:flex;align-items:center;gap:10px;padding:13px;border-radius:13px}.profile-request-state.pending{border:1px solid rgba(239,185,91,.23);background:rgba(239,185,91,.07)}.profile-state-icon{width:34px;height:34px;flex:0 0 34px;border-radius:10px;display:grid;place-items:center;background:rgba(239,185,91,.13);color:#f0c56e;font-size:19px}.profile-request-state div{display:flex;flex-direction:column;gap:4px;min-width:0}.profile-request-state strong{font-size:12px}.profile-request-state small{font-size:10px;color:var(--muted,#9ca7b7);overflow-wrap:anywhere}
.profile-rating-picker{display:flex;justify-content:center;gap:6px;padding:4px 0 1px;direction:ltr}.profile-rating-star{width:47px;height:47px;border:1px solid rgba(230,181,70,.2);border-radius:13px;background:rgba(220,170,55,.055);color:rgba(246,197,85,.27);font-size:29px;line-height:1;cursor:pointer;transition:color .16s,background .16s,transform .16s,border-color .16s}.profile-rating-star:hover:not(:disabled){transform:translateY(-2px);background:rgba(240,185,56,.12)}.profile-rating-star.is-selected{color:#ffc94f;background:rgba(250,192,54,.13);border-color:rgba(250,192,54,.35);text-shadow:0 0 14px rgba(255,194,48,.22)}.profile-rating-star:disabled{cursor:not-allowed;opacity:.7}
.profile-rating-caption{text-align:center;color:var(--muted,#a2aec0);font-size:10px;min-height:16px;margin-bottom:12px}
.profile-feedback-message{margin-top:5px}.profile-action-stack{display:grid;grid-template-columns:1fr 1fr;gap:10px}.profile-button-orders{background:linear-gradient(125deg,rgba(91,105,233,.18),rgba(135,113,243,.12));border-color:rgba(134,145,255,.24);justify-content:flex-start;text-align:right}.profile-action-arrow{margin-right:auto;font-size:18px;color:#aebaff}.profile-button-logout{background:rgba(240,78,95,.09);border-color:rgba(244,99,112,.34);color:#ff939c}.profile-button-logout:hover:not(:disabled){background:rgba(240,78,95,.16);border-color:rgba(244,99,112,.55)}
.profile-avatar-picker-panel .profile-section-heading{margin-bottom:13px}.profile-icon-button{width:31px;height:31px;border-radius:9px;border:1px solid var(--border,rgba(140,160,190,.22));background:transparent;color:var(--text,#eef2f8);font-size:21px;cursor:pointer}.profile-avatar-options{display:flex;flex-direction:column;gap:15px}.profile-avatar-group{display:flex;flex-direction:column;gap:8px}.profile-avatar-group>span{font-size:11px;font-weight:900;color:var(--muted,#a1aec1)}.profile-avatar-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.profile-avatar-choice{display:flex;align-items:center;flex-direction:column;justify-content:center;gap:5px;min-width:0;min-height:76px;padding:8px 4px;border:1px solid rgba(133,151,188,.2);border-radius:12px;background:var(--avatar-bg,rgba(255,255,255,.06));color:#263044;cursor:pointer;transition:transform .16s,border-color .16s,box-shadow .16s}.profile-avatar-choice>span{font-size:28px;line-height:1.25}.profile-avatar-choice small{font-size:9px;font-weight:800;overflow-wrap:anywhere}.profile-avatar-choice:hover{transform:translateY(-2px)}.profile-avatar-choice.selected{border:2px solid #8f9aff;box-shadow:0 0 0 3px rgba(133,145,255,.18);transform:translateY(-1px)}
.profile-upload-row{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:15px;padding-top:14px;border-top:1px solid var(--border,rgba(140,160,190,.15))}.profile-upload-row small{font-size:9px;color:var(--muted,#9aa7b8)}
html[data-theme="light"] .profile-hero-card,body[data-theme="light"] .profile-hero-card{background:radial-gradient(ellipse at 50% 0%,rgba(117,112,255,.13),transparent 68%),linear-gradient(145deg,#fff,#f4f6ff);border-color:rgba(91,109,167,.2)}
html[data-theme="light"] .profile-section-card,html[data-theme="light"] .profile-avatar-picker-panel,body[data-theme="light"] .profile-section-card,body[data-theme="light"] .profile-avatar-picker-panel{background:rgba(255,255,255,.86);border-color:rgba(89,107,157,.17)}
html[data-theme="light"] .account-profile-view .account-field,body[data-theme="light"] .account-profile-view .account-field{background:#f8f9fd;color:#202838;border-color:rgba(85,101,145,.22)}
html[data-theme="light"] .account-profile-view .account-field:focus,body[data-theme="light"] .account-profile-view .account-field:focus{background:#fff}
html[data-theme="light"] .profile-current-email,body[data-theme="light"] .profile-current-email{background:rgba(104,120,169,.045)}
@media(max-width:560px){.account-box:has(.account-profile-view:not(.hidden)){width:calc(100vw - 12px);max-height:94dvh;padding:14px;border-radius:20px}.profile-hero-card{padding:19px 12px 16px;border-radius:18px}.profile-avatar-preview{width:88px;height:88px}.profile-display-name{font-size:18px}.profile-section-card,.profile-avatar-picker-panel{padding:13px;border-radius:15px}.profile-fields-grid{grid-template-columns:1fr;gap:11px}.profile-field-wide{grid-column:auto}.profile-rating-star{width:42px;height:42px;font-size:26px;border-radius:11px}.profile-avatar-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.profile-avatar-choice{min-height:70px}.profile-action-stack{grid-template-columns:1fr}.profile-current-email{align-items:flex-start}.profile-readonly-tag{margin-top:2px}}
@media(prefers-reduced-motion:reduce){.profile-avatar-action,.profile-button,.profile-rating-star,.profile-avatar-choice{transition:none}}

/* Avatar selection is a true nested modal, not an inline disclosure. */
.profile-avatar-picker-overlay{position:fixed;inset:0;z-index:1200;display:flex;align-items:center;justify-content:center;padding:14px;background:rgba(4,7,15,.78);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);animation:profile-picker-fade-in .16s ease-out}
.profile-avatar-picker-overlay.hidden{display:none!important}
.profile-avatar-picker-dialog{width:min(520px,calc(100vw - 20px));max-height:min(86dvh,760px);overflow:auto;overscroll-behavior:contain;padding:18px;border:1px solid rgba(145,163,213,.24);border-radius:22px;background:var(--modal-bg,#151c2a);color:var(--text,#ecf0f8);box-shadow:0 28px 90px rgba(0,0,0,.4);scrollbar-width:thin;scrollbar-color:rgba(140,160,190,.4) transparent}
.profile-avatar-picker-dialog .profile-section-heading{align-items:flex-start}
.profile-avatar-picker-dialog .profile-section-heading h4{font-size:17px}
.profile-avatar-picker-dialog .profile-section-heading p{font-size:11px}
.profile-avatar-picker-dialog .profile-button-primary{margin-top:15px}
html[data-theme="light"] .profile-avatar-picker-dialog,body[data-theme="light"] .profile-avatar-picker-dialog{background:#fff;color:#202838;border-color:rgba(89,107,157,.24)}
@keyframes profile-picker-fade-in{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:560px){.profile-avatar-picker-overlay{padding:7px}.profile-avatar-picker-dialog{width:calc(100vw - 14px);max-height:90dvh;padding:13px;border-radius:18px}.profile-avatar-picker-dialog .profile-avatar-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}


/* V193: keep pre-login content completely separate from the signed-in profile. */
#account-auth-view.hidden,
#account-profile-view.hidden,
#account-dashboard-view.hidden,
#account-modal-icon.hidden,
#account-modal-title.hidden,
#account-subtitle.hidden { display: none !important; }

/* =========================================================
   CASESTUDIO V194 — profile layout and accessible light theme contrast
========================================================= */
.account-profile-view .profile-fields-grid { grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; }
.account-profile-view .profile-fields-grid > .profile-field { grid-column:auto; }
.account-profile-view #account-edit-city { appearance:auto; -webkit-appearance:menulist; cursor:pointer; }
.account-profile-view #account-edit-city option { background:#fff; color:#1d2939; }

html[data-theme="light"] body,
body[data-theme="light"] { color:#26344b; }
html[data-theme="light"] body :is(.profile-section-heading h4,.profile-field,.profile-display-name,.profile-current-email strong,.profile-request-state strong,.profile-subform label,.profile-rating-caption),
body[data-theme="light"] :is(.profile-section-heading h4,.profile-field,.profile-display-name,.profile-current-email strong,.profile-request-state strong,.profile-subform label,.profile-rating-caption) { color:#1d2939 !important; }
html[data-theme="light"] body :is(.profile-section-heading p,.profile-field>small,.profile-helper,.profile-current-email small,.profile-request-state small,.profile-display-email,.profile-rating-caption),
body[data-theme="light"] :is(.profile-section-heading p,.profile-field>small,.profile-helper,.profile-current-email small,.profile-request-state small,.profile-display-email,.profile-rating-caption) { color:#4b5a70 !important; opacity:1 !important; }
html[data-theme="light"] .profile-section-card,
html[data-theme="light"] .profile-avatar-picker-panel,
body[data-theme="light"] .profile-section-card,
body[data-theme="light"] .profile-avatar-picker-panel { background:#fff !important; border-color:#c5cedd !important; box-shadow:0 5px 18px rgba(29,41,57,.055); }
html[data-theme="light"] .account-profile-view .account-field,
body[data-theme="light"] .account-profile-view .account-field { background:#fff !important; color:#1d2939 !important; border:1px solid #aebbd0 !important; font-weight:600 !important; box-shadow:inset 0 1px 2px rgba(16,24,40,.035); }
html[data-theme="light"] .account-profile-view .account-field::placeholder,
body[data-theme="light"] .account-profile-view .account-field::placeholder { color:#66758b !important; opacity:1 !important; }
html[data-theme="light"] .account-profile-view .account-field:focus,
body[data-theme="light"] .account-profile-view .account-field:focus { background:#fff !important; border-color:#5268d9 !important; box-shadow:0 0 0 3px rgba(82,104,217,.17) !important; }
html[data-theme="light"] .profile-avatar-action,
body[data-theme="light"] .profile-avatar-action { background:#eef1ff !important; border-color:#aeb8ed !important; color:#30378c !important; }
html[data-theme="light"] .profile-button-soft,
html[data-theme="light"] .profile-button-outline,
html[data-theme="light"] .profile-button-orders,
body[data-theme="light"] .profile-button-soft,
body[data-theme="light"] .profile-button-outline,
body[data-theme="light"] .profile-button-orders { background:#edf1ff !important; border:1px solid #acb8df !important; color:#28376f !important; box-shadow:0 2px 6px rgba(40,55,111,.07); }
html[data-theme="light"] .profile-button-soft:hover,
html[data-theme="light"] .profile-button-outline:hover,
html[data-theme="light"] .profile-button-orders:hover,
body[data-theme="light"] .profile-button-soft:hover,
body[data-theme="light"] .profile-button-outline:hover,
body[data-theme="light"] .profile-button-orders:hover { background:#e0e7ff !important; border-color:#8595d3 !important; color:#202b64 !important; }
html[data-theme="light"] .profile-button-logout,
body[data-theme="light"] .profile-button-logout { background:#fff0f1 !important; border-color:#e7a3ab !important; color:#a71932 !important; }
html[data-theme="light"] .profile-button-logout:hover:not(:disabled),
body[data-theme="light"] .profile-button-logout:hover:not(:disabled) { background:#ffe1e4 !important; border-color:#d77d89 !important; color:#8f1028 !important; }
html[data-theme="light"] .profile-icon-button,
body[data-theme="light"] .profile-icon-button { background:#f5f7fb !important; color:#26344b !important; border-color:#bdc8d9 !important; }
html[data-theme="light"] .profile-current-email,
body[data-theme="light"] .profile-current-email { background:#f5f7fb !important; border-color:#cbd4e2 !important; }
html[data-theme="light"] .profile-request-state.pending,
body[data-theme="light"] .profile-request-state.pending { background:#fff8e8 !important; border-color:#e4c77d !important; }

/* Strengthen common secondary-button and supporting-copy contrast across the light storefront. */
html[data-theme="light"] body :is(.topbar,.header-actions,.side-panel,.preview-section,.modal-box,.catalog-gallery-modal,.cart-modal-box,.account-box,.review-box) button:not(.theme-toggle):not(.primary-modal-button):not(.primary-button):not(.profile-button-primary):not(.confirm-order-button):not(.cart-checkout-button):not(.order-button):not(#order-button):not(.add-cart-button):not(.purchase-option):not(.packaging-option):not(.product-rating):not(.dice-button):not(.admin-dashboard-link):not(.catalog-browse-button):not(.support-link):not(.profile-button-logout),
body[data-theme="light"] :is(.topbar,.header-actions,.side-panel,.preview-section,.modal-box,.catalog-gallery-modal,.cart-modal-box,.account-box,.review-box) button:not(.theme-toggle):not(.primary-modal-button):not(.primary-button):not(.profile-button-primary):not(.confirm-order-button):not(.cart-checkout-button):not(.order-button):not(#order-button):not(.add-cart-button):not(.purchase-option):not(.packaging-option):not(.product-rating):not(.dice-button):not(.admin-dashboard-link):not(.catalog-browse-button):not(.support-link):not(.profile-button-logout) { color:#26364e !important; font-weight:700; }
html[data-theme="light"] body :is(.topbar,.side-panel,.preview-section,.modal-box,.catalog-gallery-modal,.cart-modal-box,.account-box,.review-box) :is(.section-subtitle,.panel-subtitle,.field-hint,.form-hint,.help-text,.muted,.text-muted,.empty-message,.empty-state,.avatar-picker-hint),
body[data-theme="light"] :is(.topbar,.side-panel,.preview-section,.modal-box,.catalog-gallery-modal,.cart-modal-box,.account-box,.review-box) :is(.section-subtitle,.panel-subtitle,.field-hint,.form-hint,.help-text,.muted,.text-muted,.empty-message,.empty-state,.avatar-picker-hint) { color:#4b5a70 !important; opacity:1 !important; }
html[data-theme="light"] body :is(.topbar,.side-panel,.preview-section,.modal-box,.catalog-gallery-modal,.cart-modal-box,.account-box,.review-box) :is(input,select,textarea),
body[data-theme="light"] :is(.topbar,.side-panel,.preview-section,.modal-box,.catalog-gallery-modal,.cart-modal-box,.account-box,.review-box) :is(input,select,textarea) { color:#1d2939; }
@media(max-width:560px) {
  .account-profile-view .profile-fields-grid { grid-template-columns:minmax(0,1fr); gap:12px; }
  .account-profile-view .profile-fields-grid > .profile-field { grid-column:1/-1; }
}

/* =========================================================
   CASESTUDIO V195 — registration flow and avatar chooser
========================================================= */
#register-form { gap: 12px; }
.register-field-label { margin-top: 0; color: var(--text-color,#e7edf7); font-size: 12px; font-weight: 850; }
.register-type-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.register-type-option { min-height: 45px; padding: 10px 12px; border: 1px solid rgba(140,160,190,.28); border-radius: 12px; background: rgba(120,140,175,.08); color: #cbd5e1; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; transition: background .18s,border-color .18s,color .18s,transform .18s; }
.register-type-option:hover { border-color: #8193ff; color: #fff; }
.register-type-option.is-active { background: linear-gradient(135deg,rgba(91,105,233,.22),rgba(136,114,243,.17)); color: #fff; border-color: #7f8cff; box-shadow: 0 0 0 2px rgba(110,125,255,.12); }
.register-merchant-intro { padding: 12px 13px; border: 1px solid rgba(83,177,139,.35); border-radius: 12px; background: rgba(48,155,112,.1); color: #a8f0ce; font-size: 12px; font-weight: 650; line-height: 1.8; }
.register-business-name-wrap,.register-field-group { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.register-field-group label,.register-business-name-wrap label { display: block; color: #cbd5e1; font-size: 12px; font-weight: 800; line-height: 1.65; }
.register-name-phone-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10px; }
#register-form .register-name-phone-row input,
#register-form .register-field-group > input,
#register-form .register-business-name-wrap > input { width: 100%; min-width: 0; box-sizing: border-box; background: #101722; color: #f4f7fc; border: 1px solid #46546a; border-radius: 11px; padding: 12px 13px; font: inherit; font-size: 13px; outline: none; transition: border-color .18s,box-shadow .18s,background .18s; }
#register-form .register-name-phone-row input:focus,
#register-form .register-field-group > input:focus,
#register-form .register-business-name-wrap > input:focus { border-color: #8b9cff; box-shadow: 0 0 0 3px rgba(111,130,255,.15); background: #131c2a; }
#register-form input::placeholder { color: #9aa8bb; opacity: 1; }
.register-optional { color: #aab7ca; font-size: 10px; font-weight: 650; }
.register-field-hint { display: block; margin-top: -2px; color: #aab7ca; font-size: 11px; line-height: 1.6; }
.register-avatar-open { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 74px; padding: 10px 12px; text-align: right; border: 1px solid rgba(140,160,190,.3); border-radius: 15px; background: rgba(120,140,175,.075); color: #e7edf7; cursor: pointer; font: inherit; transition: border-color .18s,background .18s,transform .18s; }
.register-avatar-open:hover { border-color: #8997ff; background: rgba(115,130,255,.12); transform: translateY(-1px); }
.register-avatar-preview { width: 48px; height: 48px; flex: 0 0 48px; display: grid; place-items: center; border: 1px solid rgba(145,165,210,.35); border-radius: 50%; background: #e9eefb; color: #27354b; overflow: hidden; font-size: 29px; }
.register-avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.register-avatar-open-copy { display: flex; flex: 1; flex-direction: column; gap: 4px; min-width: 0; }
.register-avatar-open-copy strong { color: inherit; font-size: 12px; font-weight: 850; }
.register-avatar-open-copy small { color: #aab7ca; font-size: 10px; }
.register-avatar-open-arrow { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 32px; border: 1px solid rgba(143,157,255,.48); border-radius: 50%; background: rgba(110,125,255,.15); color: #dfe4ff; font-size: 24px; font-weight: 500; line-height: 1; }
.register-avatar-dialog { position: fixed; z-index: 100500; inset: 0; display: flex; align-items: center; justify-content: center; padding: 18px; background: rgba(7,12,22,.72); backdrop-filter: blur(8px); }
.register-avatar-dialog.hidden { display: none !important; }
.register-avatar-dialog-card { width: min(570px,calc(100vw - 28px)); max-height: min(82dvh,760px); overflow: auto; overscroll-behavior: contain; padding: 18px; border: 1px solid #38465d; border-radius: 20px; background: #151e2c; color: #e9eff9; box-shadow: 0 24px 90px rgba(0,0,0,.46); }
.register-avatar-dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.register-avatar-dialog-heading h3 { margin: 0; color: #f5f7ff; font-size: 16px; font-weight: 900; }
.register-avatar-dialog-heading p { margin: 6px 0 0; color: #b4bfd0; font-size: 11px; line-height: 1.6; }
.register-avatar-dialog-heading > button { width: 34px; height: 34px; flex: 0 0 34px; border: 1px solid #44536b; border-radius: 10px; background: #202b3d; color: #f3f6fb; font-size: 24px; cursor: pointer; }
.register-avatar-upload-row { margin-bottom: 16px; }
.register-avatar-upload-choice { display: flex; align-items: center; gap: 12px; padding: 11px; border: 1px dashed #8292c4; border-radius: 14px; background: rgba(105,122,205,.11); cursor: pointer; }
.register-avatar-upload-preview { position: relative; display: grid; place-items: center; width: 46px; height: 46px; flex: 0 0 46px; border: 1px solid #8495ff; border-radius: 50%; background: #202b4c; color: #fff; font-size: 28px; font-weight: 500; }
.register-avatar-upload-preview::after { content: "+"; position: absolute; right: -3px; bottom: -2px; display: grid; place-items: center; width: 19px; height: 19px; border: 2px solid #151e2c; border-radius: 50%; background: #6d7dff; color: #fff; font-size: 14px; font-weight: 900; line-height: 1; }
.register-avatar-upload-choice > span:last-child { display: flex; flex-direction: column; gap: 4px; }
.register-avatar-upload-choice strong { color: #f1f4fc; font-size: 12px; }
.register-avatar-upload-choice small { color: #acb9cc; font-size: 10px; }
.register-avatar-file-input { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }
.register-avatar-picker { display: flex; flex-direction: column; gap: 13px; margin: 2px 0 0; }
.register-avatar-picker .avatar-picker-group > span { color: #c1cce0; font-size: 11px; font-weight: 850; }
.register-avatar-picker .avatar-choice { min-height: 46px; }
#register-form .password-field > input { padding-inline-end: 48px !important; }
#register-form .primary-modal-button { margin-top: 3px; min-height: 47px; font-weight: 900; }
@media(max-width:480px) {
  .register-name-phone-row { grid-template-columns: minmax(0,1fr); gap: 11px; }
  .register-avatar-dialog { padding: 10px; }
  .register-avatar-dialog-card { width: calc(100vw - 20px); max-height: 86dvh; padding: 14px; border-radius: 17px; }
  .register-avatar-open { min-height: 68px; }
}

/* Strong contrast for the registration dialog in the light theme. */
html[data-theme="light"] #register-form .register-field-label,
body[data-theme="light"] #register-form .register-field-label { color:#202d43 !important; }
html[data-theme="light"] #register-form .register-field-group label,
html[data-theme="light"] #register-form .register-business-name-wrap label,
body[data-theme="light"] #register-form .register-field-group label,
body[data-theme="light"] #register-form .register-business-name-wrap label { color:#27364d !important; font-weight:850 !important; }
html[data-theme="light"] #register-form .register-optional,
body[data-theme="light"] #register-form .register-optional { color:#4b5b72 !important; }
html[data-theme="light"] #register-form .register-field-hint,
body[data-theme="light"] #register-form .register-field-hint { color:#45546b !important; font-weight:600 !important; }
html[data-theme="light"] #register-form input::placeholder,
body[data-theme="light"] #register-form input::placeholder { color:#68768b !important; opacity:1 !important; }
html[data-theme="light"] #register-form .register-name-phone-row input,
html[data-theme="light"] #register-form .register-field-group > input,
html[data-theme="light"] #register-form .register-business-name-wrap > input,
body[data-theme="light"] #register-form .register-name-phone-row input,
body[data-theme="light"] #register-form .register-field-group > input,
body[data-theme="light"] #register-form .register-business-name-wrap > input { background:#fff !important; color:#172338 !important; border-color:#aebbd0 !important; box-shadow:inset 0 1px 2px rgba(22,36,62,.035) !important; }
html[data-theme="light"] #register-form .register-name-phone-row input:focus,
html[data-theme="light"] #register-form .register-field-group > input:focus,
html[data-theme="light"] #register-form .register-business-name-wrap > input:focus,
body[data-theme="light"] #register-form .register-name-phone-row input:focus,
body[data-theme="light"] #register-form .register-field-group > input:focus,
body[data-theme="light"] #register-form .register-business-name-wrap > input:focus { border-color:#4f46e5 !important; box-shadow:0 0 0 3px rgba(79,70,229,.14) !important; }
html[data-theme="light"] #register-form .register-type-option,
body[data-theme="light"] #register-form .register-type-option { background:#f3f5fb !important; color:#334158 !important; border-color:#bdc8db !important; }
html[data-theme="light"] #register-form .register-type-option.is-active,
body[data-theme="light"] #register-form .register-type-option.is-active { background:#e8ebff !important; color:#312e81 !important; border-color:#7778e9 !important; box-shadow:0 0 0 2px rgba(79,70,229,.09) !important; }
html[data-theme="light"] #register-form .register-merchant-intro,
body[data-theme="light"] #register-form .register-merchant-intro { background:#e9f8f0 !important; border-color:#9fd6b9 !important; color:#145b3d !important; }
html[data-theme="light"] #register-form .register-avatar-open,
body[data-theme="light"] #register-form .register-avatar-open { background:#f7f9fe !important; border-color:#bdc8db !important; color:#202d43 !important; }
html[data-theme="light"] #register-form .register-avatar-open-copy small,
body[data-theme="light"] #register-form .register-avatar-open-copy small { color:#53627a !important; }
html[data-theme="light"] .register-avatar-dialog-card,
body[data-theme="light"] .register-avatar-dialog-card { background:#fff !important; color:#202d43 !important; border-color:#d4ddec !important; box-shadow:0 24px 90px rgba(24,39,73,.3) !important; }
html[data-theme="light"] .register-avatar-dialog-heading h3,
body[data-theme="light"] .register-avatar-dialog-heading h3 { color:#172338 !important; }
html[data-theme="light"] .register-avatar-dialog-heading p,
body[data-theme="light"] .register-avatar-dialog-heading p { color:#4e5d74 !important; }
html[data-theme="light"] .register-avatar-dialog-heading > button,
body[data-theme="light"] .register-avatar-dialog-heading > button { background:#f2f5fb !important; color:#27364d !important; border-color:#cbd5e5 !important; }
html[data-theme="light"] .register-avatar-upload-choice,
body[data-theme="light"] .register-avatar-upload-choice { background:#f6f8ff !important; border-color:#a6b2d2 !important; }
html[data-theme="light"] .register-avatar-upload-choice strong,
body[data-theme="light"] .register-avatar-upload-choice strong { color:#202d43 !important; }
html[data-theme="light"] .register-avatar-upload-choice small,
body[data-theme="light"] .register-avatar-upload-choice small { color:#53627a !important; }
html[data-theme="light"] .register-avatar-upload-preview::after,
body[data-theme="light"] .register-avatar-upload-preview::after { border-color:#f6f8ff !important; }
html[data-theme="light"] .register-avatar-picker .avatar-picker-group > span,
body[data-theme="light"] .register-avatar-picker .avatar-picker-group > span { color:#334158 !important; }
html[data-theme="light"] .register-avatar-picker .avatar-choice,
body[data-theme="light"] .register-avatar-picker .avatar-choice { border-color:#c2cde0 !important; }
/* V195 visibility states for role-specific registration fields. */
#register-business-name-wrap.hidden,
#register-merchant-intro.hidden { display:none !important; }

/* V196: merchant registration location fields */
.register-merchant-location-row {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 12px;
  margin-top: 12px;
}
.register-merchant-location-row.hidden { display: none !important; }
#register-merchant-city,
#register-merchant-address {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
html[data-theme="light"] #register-form #register-merchant-city,
html[data-theme="light"] #register-form #register-merchant-address,
body[data-theme="light"] #register-form #register-merchant-city,
body[data-theme="light"] #register-form #register-merchant-address {
  background: #fff !important;
  color: #172338 !important;
  border-color: #aebbd0 !important;
}
@media (max-width: 560px) {
  .register-merchant-location-row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}

/* =========================================================
   CASESTUDIO V197 — premium account window refresh
   Refines login, registration and signed-in profile surfaces.
========================================================= */
#account-modal.modal-overlay {
  padding: clamp(10px, 2.5vw, 24px);
  background: radial-gradient(ellipse at 50% 12%, rgba(87, 101, 224, .18), transparent 50%), rgba(5, 8, 17, .78);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
#account-modal .account-box {
  isolation: isolate;
  width: min(620px, calc(100vw - 24px));
  max-height: min(92dvh, 900px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(20px, 3.3vw, 32px);
  border: 1px solid rgba(146, 160, 217, .24);
  border-radius: 26px;
  color: #edf2fc;
  background:
    radial-gradient(ellipse at 50% -5%, rgba(100, 116, 255, .15), transparent 46%),
    linear-gradient(150deg, #182133 0%, #101725 54%, #111722 100%);
  box-shadow: 0 35px 110px rgba(0, 0, 0, .56), 0 0 0 1px rgba(255,255,255,.025) inset;
  scrollbar-width: thin;
  scrollbar-color: rgba(133, 147, 195, .42) transparent;
  animation: account-window-enter .24s cubic-bezier(.2,.75,.25,1) both;
}
#account-modal .account-box::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 16% auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(156, 172, 255, .85), rgba(99, 217, 255, .55), transparent);
  pointer-events: none;
}
#account-modal .account-box::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -100px;
  right: -95px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: rgba(103, 116, 255, .065);
  filter: blur(24px);
  pointer-events: none;
}
#account-modal .modal-close {
  z-index: 5;
  top: 15px;
  left: 15px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(156, 171, 210, .23);
  border-radius: 13px;
  background: rgba(132, 147, 185, .095);
  color: #dbe4f5;
  font-size: 24px;
  line-height: 1;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
#account-modal .modal-close:hover { transform: rotate(90deg); background: rgba(133, 147, 255, .18); border-color: rgba(153, 164, 255, .55); }
#account-modal #account-modal-icon {
  position: relative;
  width: 66px;
  height: 66px;
  margin: 2px auto 15px;
  border: 1px solid rgba(161, 174, 255, .46);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(116, 132, 255, .25), rgba(83, 204, 230, .13));
  box-shadow: 0 12px 28px rgba(76, 87, 201, .2), inset 0 1px rgba(255,255,255,.12);
  font-size: 31px;
}
#account-modal #account-modal-title {
  margin: 0 0 7px;
  color: #f7f8ff;
  font-size: clamp(23px, 3vw, 28px);
  font-weight: 950;
  letter-spacing: -.45px;
}
#account-modal #account-modal-title::before {
  content: "CASESTUDIO  ·  MEMBER SPACE";
  display: block;
  margin-bottom: 8px;
  color: #9caaff;
  font: 850 9px/1.4 Arial, sans-serif;
  letter-spacing: 1.6px;
  direction: ltr;
}
#account-modal #account-subtitle {
  max-width: 360px;
  margin: 0 auto 22px;
  color: #a8b4c9;
  font-size: 12px;
  line-height: 1.85;
}
#account-modal #account-auth-view { position: relative; }
#account-modal .auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  padding: 5px;
  margin: 0 0 19px;
  border: 1px solid rgba(145, 160, 199, .13);
  border-radius: 15px;
  background: rgba(4, 8, 17, .32);
}
#account-modal .auth-tab {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: #aab6cb;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  transition: color .18s ease, background .18s ease, box-shadow .18s ease, border-color .18s ease, transform .18s ease;
}
#account-modal .auth-tab:hover { color: #fff; background: rgba(133, 147, 255, .08); }
#account-modal .auth-tab.active {
  color: #fff;
  border-color: rgba(163, 172, 255, .3);
  background: linear-gradient(130deg, #5967e9, #7b69e8 62%, #5c9eda);
  box-shadow: 0 5px 16px rgba(74, 87, 207, .24), inset 0 1px rgba(255,255,255,.18);
}
#account-modal .auth-form { gap: 10px; }
#account-modal .auth-form > label,
#account-modal #register-form .register-field-label,
#account-modal #register-form .register-field-group label,
#account-modal #register-form .register-business-name-wrap label {
  margin-top: 3px;
  color: #d2dced;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.65;
}
#account-modal .auth-form input,
#account-modal #register-form input:not([type="file"]),
#account-modal #register-form select {
  min-height: 47px;
  border: 1px solid rgba(143, 160, 197, .24);
  border-radius: 13px;
  background: rgba(5, 10, 20, .5);
  color: #f2f6ff;
  padding: 12px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  outline: none;
  box-shadow: inset 0 1px rgba(255,255,255,.025);
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}
#account-modal .auth-form input:focus,
#account-modal #register-form input:not([type="file"]):focus,
#account-modal #register-form select:focus {
  border-color: #8994ff;
  background: rgba(10, 16, 31, .83);
  box-shadow: 0 0 0 3px rgba(112, 125, 255, .16), 0 7px 20px rgba(0,0,0,.08);
}
#account-modal .auth-form input::placeholder,
#account-modal #register-form input::placeholder { color: #8998b0; opacity: 1; font-weight: 500; }
#account-modal .password-field { margin-bottom: 1px; }
#account-modal .primary-modal-button {
  min-height: 49px;
  margin-top: 10px;
  border: 1px solid rgba(194, 202, 255, .35);
  border-radius: 14px;
  background: linear-gradient(115deg, #5d6bee 0%, #7d69ea 55%, #5c9edf 100%);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .1px;
  box-shadow: 0 10px 22px rgba(78, 87, 212, .25), inset 0 1px rgba(255,255,255,.22);
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}
#account-modal .primary-modal-button:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 13px 25px rgba(78, 87, 212, .32), inset 0 1px rgba(255,255,255,.24); }
#account-modal .primary-modal-button:active { transform: translateY(0); }
#account-modal #register-form { gap: 13px; }
#account-modal #register-form .register-type-switch { gap: 9px; }
#account-modal #register-form .register-type-option { min-height: 49px; border-radius: 14px; }
#account-modal #register-form .register-type-option.is-active { background: linear-gradient(135deg, rgba(100, 114, 246, .28), rgba(94, 162, 222, .16)); color: #f7f8ff; border-color: #8896ff; box-shadow: 0 0 0 2px rgba(118, 130, 255, .1), inset 0 1px rgba(255,255,255,.06); }
#account-modal #register-form .register-name-phone-row { gap: 11px; }
#account-modal #register-form .register-field-group { gap: 7px; }
#account-modal #register-form .register-email-group { padding-top: 2px; }
#account-modal #register-form .register-field-hint { color: #a9b7cb; line-height: 1.65; }
#account-modal #register-form .register-avatar-open { min-height: 72px; border-radius: 16px; border-color: rgba(143, 157, 255, .27); background: linear-gradient(110deg, rgba(118, 131, 255, .12), rgba(77, 194, 220, .055)); }
#account-modal #register-form .register-avatar-open:hover { border-color: rgba(147, 159, 255, .8); background: linear-gradient(110deg, rgba(118, 131, 255, .2), rgba(77, 194, 220, .09)); }
#account-modal #register-form .register-avatar-open-arrow { background: linear-gradient(135deg, #6875f4, #4e9fda); color: #fff; box-shadow: 0 4px 12px rgba(92, 105, 230, .22); }
#account-modal .register-merchant-intro { border-radius: 14px; }
#account-modal .account-profile-view { gap: 15px; }
#account-modal .profile-hero-card {
  padding: 26px 20px 22px;
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(119, 127, 255, .24), transparent 66%),
    linear-gradient(145deg, rgba(35, 47, 72, .94), rgba(17, 25, 41, .98));
  border-color: rgba(141, 157, 229, .29);
  box-shadow: 0 14px 35px rgba(0,0,0,.11), inset 0 1px rgba(255,255,255,.055);
}
#account-modal .profile-avatar-preview { width: 108px; height: 108px; box-shadow: 0 0 0 6px rgba(117, 131, 255, .08), 0 12px 30px rgba(92, 115, 255, .29); }
#account-modal .profile-avatar-action { min-height: 37px; background: rgba(112, 128, 255, .16); border-color: rgba(155, 169, 255, .35); }
#account-modal .profile-display-name { margin-top: 4px; font-size: clamp(20px, 3vw, 24px); letter-spacing: -.25px; }
#account-modal .profile-member-tag { padding: 6px 12px; background: rgba(63, 208, 154, .11); }
#account-modal .profile-section-card { border-radius: 20px; padding: 19px; background: linear-gradient(145deg, rgba(30, 39, 56, .8), rgba(20, 28, 42, .78)); border-color: rgba(137, 153, 190, .2); box-shadow: 0 8px 24px rgba(0,0,0,.07), inset 0 1px rgba(255,255,255,.025); transition: border-color .18s ease, transform .18s ease; }
#account-modal .profile-section-card:hover { border-color: rgba(144, 157, 242, .32); }
#account-modal .profile-section-heading h4 { font-size: 15px; }
#account-modal .profile-section-icon { width: 39px; height: 39px; flex-basis: 39px; border-radius: 13px; background: linear-gradient(145deg, rgba(116, 132, 255, .2), rgba(83, 204, 230, .09)); border-color: rgba(134, 149, 255, .22); }
#account-modal .profile-button { min-height: 47px; border-radius: 14px; }
#account-modal .profile-button-primary { background: linear-gradient(115deg, #5968ea, #7b69eb 58%, #5b9de0); box-shadow: 0 8px 20px rgba(91, 105, 233, .22), inset 0 1px rgba(255,255,255,.14); }
#account-modal .profile-button-orders { background: linear-gradient(125deg, rgba(107, 119, 245, .2), rgba(85, 180, 220, .1)); border-color: rgba(134, 145, 255, .27); }
#account-modal .profile-button-logout { background: rgba(237, 77, 98, .075); border-color: rgba(244, 99, 112, .36); }

html[data-theme="light"] #account-modal.modal-overlay,
body[data-theme="light"] #account-modal.modal-overlay { background: radial-gradient(ellipse at 50% 10%, rgba(107, 119, 230, .16), transparent 52%), rgba(24, 30, 48, .46); }
html[data-theme="light"] #account-modal .account-box,
body[data-theme="light"] #account-modal .account-box {
  color: #202b40;
  border-color: #d7ddef;
  background: radial-gradient(ellipse at 50% -4%, rgba(119, 128, 241, .11), transparent 46%), linear-gradient(150deg, #fff 0%, #fafbff 58%, #f3f6fd 100%);
  box-shadow: 0 32px 95px rgba(28, 39, 72, .25), 0 0 0 1px rgba(255,255,255,.8) inset;
}
html[data-theme="light"] #account-modal .modal-close,
body[data-theme="light"] #account-modal .modal-close { color: #46536d; background: #f0f3fb; border-color: #d7deed; }
html[data-theme="light"] #account-modal #account-modal-title,
body[data-theme="light"] #account-modal #account-modal-title { color: #18243a; }
html[data-theme="light"] #account-modal #account-modal-title::before,
body[data-theme="light"] #account-modal #account-modal-title::before { color: #6269d8; }
html[data-theme="light"] #account-modal #account-subtitle,
body[data-theme="light"] #account-modal #account-subtitle { color: #56647d; }
html[data-theme="light"] #account-modal .auth-tabs,
body[data-theme="light"] #account-modal .auth-tabs { background: #eef1f9; border-color: #e0e5f1; }
html[data-theme="light"] #account-modal .auth-tab,
body[data-theme="light"] #account-modal .auth-tab { color: #53617a; }
html[data-theme="light"] #account-modal .auth-tab:hover,
body[data-theme="light"] #account-modal .auth-tab:hover { color: #302f82; background: #e5e9fb; }
html[data-theme="light"] #account-modal .auth-tab.active,
body[data-theme="light"] #account-modal .auth-tab.active { color: #fff; }
html[data-theme="light"] #account-modal .auth-form > label,
html[data-theme="light"] #account-modal #register-form .register-field-label,
html[data-theme="light"] #account-modal #register-form .register-field-group label,
html[data-theme="light"] #account-modal #register-form .register-business-name-wrap label,
body[data-theme="light"] #account-modal .auth-form > label,
body[data-theme="light"] #account-modal #register-form .register-field-label,
body[data-theme="light"] #account-modal #register-form .register-field-group label,
body[data-theme="light"] #account-modal #register-form .register-business-name-wrap label { color: #26344d !important; }
html[data-theme="light"] #account-modal .auth-form input,
html[data-theme="light"] #account-modal #register-form input:not([type="file"]),
html[data-theme="light"] #account-modal #register-form select,
body[data-theme="light"] #account-modal .auth-form input,
body[data-theme="light"] #account-modal #register-form input:not([type="file"]),
body[data-theme="light"] #account-modal #register-form select { background: #fff !important; color: #19263d !important; border-color: #c4cede !important; box-shadow: 0 2px 5px rgba(34, 48, 79, .035), inset 0 1px rgba(255,255,255,.8); }
html[data-theme="light"] #account-modal .auth-form input::placeholder,
html[data-theme="light"] #account-modal #register-form input::placeholder,
body[data-theme="light"] #account-modal .auth-form input::placeholder,
body[data-theme="light"] #account-modal #register-form input::placeholder { color: #77849a !important; opacity: 1; }
html[data-theme="light"] #account-modal #register-form .register-field-hint,
body[data-theme="light"] #account-modal #register-form .register-field-hint { color: #4c5b73 !important; }
html[data-theme="light"] #account-modal #register-form .register-type-option,
body[data-theme="light"] #account-modal #register-form .register-type-option { background: #f2f4fb; color: #34435a; border-color: #d1d9e8; }
html[data-theme="light"] #account-modal #register-form .register-type-option.is-active,
body[data-theme="light"] #account-modal #register-form .register-type-option.is-active { background: linear-gradient(135deg, #e8eaff, #e5f3fb); color: #312e81; border-color: #9297ed; }
html[data-theme="light"] #account-modal #register-form .register-avatar-open,
body[data-theme="light"] #account-modal #register-form .register-avatar-open { background: linear-gradient(110deg, #f0f1ff, #f0f8fc); border-color: #c7c9f0; color: #273552; }
html[data-theme="light"] #account-modal #register-form .register-avatar-open-copy small,
body[data-theme="light"] #account-modal #register-form .register-avatar-open-copy small { color: #64718a; }
html[data-theme="light"] #account-modal .profile-hero-card,
body[data-theme="light"] #account-modal .profile-hero-card { background: radial-gradient(ellipse at 50% 0%, rgba(117,112,255,.13), transparent 68%), linear-gradient(145deg,#fff,#f1f4ff); border-color: #d6ddf2; box-shadow: 0 10px 28px rgba(47,57,110,.07), inset 0 1px #fff; }
html[data-theme="light"] #account-modal .profile-display-name,
body[data-theme="light"] #account-modal .profile-display-name { color: #17243b !important; }
html[data-theme="light"] #account-modal .profile-display-email,
body[data-theme="light"] #account-modal .profile-display-email { color: #596780 !important; }
html[data-theme="light"] #account-modal .profile-section-card,
body[data-theme="light"] #account-modal .profile-section-card { background: linear-gradient(145deg, #fff, #f8f9fd); border-color: #e0e5f0; box-shadow: 0 6px 20px rgba(35,48,82,.045), inset 0 1px #fff; }
html[data-theme="light"] #account-modal .profile-section-heading h4,
body[data-theme="light"] #account-modal .profile-section-heading h4 { color: #1e2a41 !important; }
html[data-theme="light"] #account-modal .profile-section-heading p,
html[data-theme="light"] #account-modal .profile-field > small,
html[data-theme="light"] #account-modal .profile-helper,
body[data-theme="light"] #account-modal .profile-section-heading p,
body[data-theme="light"] #account-modal .profile-field > small,
body[data-theme="light"] #account-modal .profile-helper { color: #5a6880 !important; }
html[data-theme="light"] #account-modal .profile-button-soft,
body[data-theme="light"] #account-modal .profile-button-soft { background: #edf0ff; color: #343a86 !important; border-color: #cfd4f4; }
html[data-theme="light"] #account-modal .profile-button-orders,
body[data-theme="light"] #account-modal .profile-button-orders { color: #29336d !important; }
html[data-theme="light"] #account-modal .profile-button-logout,
body[data-theme="light"] #account-modal .profile-button-logout { color: #a62438 !important; background: #fff0f2; border-color: #f0c5cd; }

@keyframes account-window-enter {
  from { opacity: 0; transform: translateY(12px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 560px) {
  #account-modal.modal-overlay { padding: 7px; align-items: center; }
  #account-modal .account-box { width: calc(100vw - 14px); max-height: 94dvh; border-radius: 22px; padding: 20px 14px 16px; }
  #account-modal #account-modal-icon { width: 58px; height: 58px; border-radius: 19px; }
  #account-modal #account-modal-title { font-size: 23px; }
  #account-modal #account-subtitle { margin-bottom: 17px; }
  #account-modal .auth-tabs { margin-bottom: 15px; }
  #account-modal .profile-section-card { padding: 14px; border-radius: 17px; }
  #account-modal .profile-hero-card { padding: 20px 12px 18px; border-radius: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  #account-modal .account-box,
  #account-modal .modal-close,
  #account-modal .auth-tab,
  #account-modal .auth-form input,
  #account-modal #register-form input,
  #account-modal .primary-modal-button { animation: none !important; transition: none !important; }
}

/* V198 — live product price and tier cards beside the customization preview */
.preview-stage {
  position: relative !important;
  grid-template-columns: minmax(96px, 0.72fr) 46px minmax(180px, 1.4fr) 46px minmax(96px, 0.72fr) !important;
  column-gap: clamp(3px, .65vw, 10px) !important;
  align-items: center !important;
}
.preview-stage > .sticker-nav { grid-column: 2 !important; grid-row: 1 !important; }
.preview-stage > .phone-area { grid-column: 3 !important; grid-row: 1 !important; min-width: 0 !important; }
.preview-stage > .case-nav { grid-column: 4 !important; grid-row: 1 !important; }
.preview-stage > .sticker-preview-price { grid-column: 1 !important; grid-row: 1 !important; justify-self: stretch !important; }
.preview-stage > .case-preview-price { grid-column: 5 !important; grid-row: 1 !important; justify-self: stretch !important; }
.preview-product-price-card {
  box-sizing: border-box;
  width: 100%; min-width: 0; padding: 15px 12px 13px;
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  text-align: center; direction: rtl; border-radius: 20px;
  border: 1px solid rgba(135, 160, 220, .28);
  background: linear-gradient(155deg, rgba(30, 39, 61, .96), rgba(14, 20, 34, .96));
  box-shadow: 0 14px 34px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, opacity .22s ease;
}
.preview-product-price-card:hover { transform: translateY(-3px); border-color: rgba(126, 176, 255, .58); box-shadow: 0 17px 36px rgba(0,0,0,.28), 0 0 22px rgba(92,145,255,.10), inset 0 1px 0 rgba(255,255,255,.1); }
.preview-price-card-top { width: 100%; display: flex; align-items: center; justify-content: center; gap: 7px; color: #eaf0ff; font-size: 13px; font-weight: 800; white-space: nowrap; }
.preview-price-icon { width: 25px; height: 25px; display: inline-grid; place-items: center; border-radius: 9px; color: #dce7ff; font-size: 16px; background: linear-gradient(145deg, rgba(130,157,255,.3), rgba(78,207,210,.15)); border: 1px solid rgba(177,197,255,.2); }
.preview-product-price { display: block; max-width: 100%; color: #fff; font-size: clamp(21px, 2.2vw, 30px); font-weight: 900; line-height: 1.12; letter-spacing: -.4px; text-shadow: 0 0 20px rgba(109,155,255,.22); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.preview-tier-row { max-width: 100%; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 5px 9px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.08); color: #d8e1f5; font-size: 11px; font-weight: 700; }
.preview-tier-row .tier-color-dot { width: 9px; height: 9px; min-width: 9px; margin: 0; box-shadow: 0 0 9px currentColor; }
.preview-price-product-name { width: 100%; color: #aebbd3; font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
.preview-product-price-card.purchase-item-muted { opacity: .45; filter: saturate(.65); }
.preview-product-price-card.is-unavailable { opacity: .65; }
@media (max-width: 850px) {
  .preview-stage { display: grid !important; position: relative !important; grid-template-columns: 42px minmax(0,1fr) 42px !important; grid-template-rows: auto auto !important; gap: 5px !important; padding-bottom: 106px !important; }
  .preview-stage > .sticker-nav { grid-column: 1 !important; grid-row: 1 !important; }
  .preview-stage > .phone-area { grid-column: 2 !important; grid-row: 1 !important; }
  .preview-stage > .case-nav { grid-column: 3 !important; grid-row: 1 !important; }
  .preview-stage > .sticker-preview-price, .preview-stage > .case-preview-price { position: absolute !important; bottom: 3px !important; top: auto !important; width: calc(50% - 5px) !important; min-height: 91px; padding: 9px 8px 7px !important; gap: 5px !important; border-radius: 15px !important; }
  .preview-stage > .sticker-preview-price { left: 0 !important; right: auto !important; }
  .preview-stage > .case-preview-price { right: 0 !important; left: auto !important; }
  .preview-price-card-top { font-size: 11px; gap: 5px; }
  .preview-price-icon { width: 20px; height: 20px; font-size: 13px; border-radius: 7px; }
  .preview-product-price { font-size: 20px !important; }
  .preview-tier-row { font-size: 10px; padding: 3px 7px; }
  .preview-price-product-name { font-size: 10px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
}
@media (max-width: 380px) {
  .preview-stage { grid-template-columns: 32px minmax(0,1fr) 32px !important; padding-bottom: 100px !important; }
  .preview-stage > .preview-nav { width: 31px !important; min-width: 31px !important; max-width: 31px !important; }
  .preview-product-price-card { padding-left: 5px !important; padding-right: 5px !important; }
  .preview-product-price { font-size: 18px !important; }
}
/* In the light theme keep the live prices crisp and readable. */
body:not(.dark-theme):not([data-theme="dark"]) .preview-product-price-card {
  background: linear-gradient(150deg, rgba(255,255,255,.98), rgba(239,244,255,.98));
  border-color: rgba(81, 105, 151, .22);
  box-shadow: 0 12px 28px rgba(39, 57, 91, .12), inset 0 1px 0 #fff;
}
body:not(.dark-theme):not([data-theme="dark"]) .preview-price-card-top { color: #26344d; }
body:not(.dark-theme):not([data-theme="dark"]) .preview-product-price { color: #17243a; text-shadow: none; }
body:not(.dark-theme):not([data-theme="dark"]) .preview-tier-row { color: #34425b; background: rgba(64, 89, 139, .07); border-color: rgba(64,89,139,.12); }
body:not(.dark-theme):not([data-theme="dark"]) .preview-price-product-name { color: #5a6880; }


/* V199 — ultra-compact mobile-first price pills: only price + tier dot */
.preview-product-price-card {
  width: max-content; max-width: 100%; min-height: 0; padding: 7px 10px;
  flex-direction: row; align-items: center; justify-content: center; gap: 7px;
  border-radius: 999px; border-width: 1px;
  box-shadow: 0 5px 16px rgba(0,0,0,.13), inset 0 1px 0 rgba(255,255,255,.09);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.preview-price-card-top, .preview-price-product-name { display: none !important; }
.preview-product-price { order: 1; font-size: 17px !important; line-height: 1; letter-spacing: -.25px; white-space: nowrap; }
.preview-tier-row { order: 2; width: 11px; height: 11px; min-width: 11px; padding: 0; gap: 0; overflow: hidden; border: 0; background: transparent; font-size: 0; box-shadow: none; }
.preview-tier-row .tier-color-dot { width: 10px; height: 10px; min-width: 10px; border-radius: 50%; box-shadow: 0 0 7px currentColor; }
.preview-stage > .sticker-preview-price { justify-self: center !important; }
.preview-stage > .case-preview-price { justify-self: center !important; }
@media (max-width: 850px) {
  .preview-stage { padding-bottom: 57px !important; }
  .preview-stage > .sticker-preview-price, .preview-stage > .case-preview-price {
    width: auto !important; min-height: 0 !important; bottom: 5px !important;
    padding: 7px 10px !important; gap: 7px !important; border-radius: 999px !important;
  }
  .preview-product-price { font-size: 16px !important; }
}
@media (max-width: 380px) {
  .preview-stage { padding-bottom: 52px !important; }
  .preview-product-price-card { padding: 6px 8px !important; gap: 6px !important; }
  .preview-product-price { font-size: 15px !important; }
}

/* V200 — correct the mobile-only price pill sides: sticker on the sticker controls side, case on the case controls side. Desktop layout stays unchanged. */
@media (max-width: 850px) {
  .preview-stage > .sticker-preview-price {
    left: auto !important;
    right: 5px !important;
  }
  .preview-stage > .case-preview-price {
    right: auto !important;
    left: 5px !important;
  }
}


/* V208 — real-centimeter sticker presets. */
.sticker-size-picker{display:flex;flex-direction:column;gap:7px;width:min(100%,260px);padding:12px 14px;margin:12px auto;border:1px solid rgba(95,184,255,.34);border-radius:14px;background:var(--card-bg,rgba(10,18,30,.92));box-shadow:0 8px 22px rgba(0,0,0,.12);position:relative;z-index:12}
.sticker-size-picker[hidden]{display:none!important}
.sticker-size-picker label{font-size:12px;font-weight:800}
.sticker-size-picker select{width:100%;min-width:0;padding:9px 10px;border-radius:9px;border:1px solid var(--border-color,#d5dce6);background:var(--input-bg,#fff);color:var(--text-color,#1b2430);font:inherit;font-size:12px}
.sticker-size-picker small{font-size:11px;opacity:.75;line-height:1.5}


/* V225: direct access to the logged-in merchant's own store */
.merchant-store-button {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    min-height: 42px; padding: 0 13px; border: 1px solid #3b765f; border-radius: 10px;
    background: linear-gradient(135deg, #183b31, #1d2d2a); color: #e5fff3;
    font-size: 13px; font-weight: 800; text-decoration: none; white-space: nowrap;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.merchant-store-button:hover { background: #245443; border-color: #62b995; transform: translateY(-1px); }
.merchant-store-button.hidden { display: none !important; }
@media (max-width: 480px) { .merchant-store-button { min-height: 38px; padding: 0 9px; gap: 4px; font-size: 12px; } }

/* ============================================================
   CASESTUDIO V290 — Studio Prism storefront palette
   Refined pearl/indigo/mint light theme + midnight/lilac/teal dark theme.
   Visual-only overrides: product data, layout logic and preview sizing unchanged.
   ============================================================ */

html[data-theme="dark"] {
  color-scheme: dark;
  --cs-store-page: #080e1b;
  --cs-store-surface: #101a2b;
  --cs-store-surface-2: #142238;
  --cs-store-surface-3: #1a2a43;
  --cs-store-line: rgba(153, 178, 220, .17);
  --cs-store-line-strong: rgba(163, 181, 255, .34);
  --cs-store-ink: #f1f5ff;
  --cs-store-ink-soft: #c8d4e9;
  --cs-store-muted: #95a8c5;
  --cs-store-primary: #9b91ff;
  --cs-store-primary-strong: #7b6cff;
  --cs-store-secondary: #52ded1;
  --cs-store-focus: rgba(145, 132, 255, .34);
  --cs-store-shadow: 0 16px 42px rgba(0, 0, 0, .24);
}

html[data-theme="light"] {
  color-scheme: light;
  --cs-light-page: #f4f6fc;
  --cs-light-surface: #ffffff;
  --cs-light-surface-soft: #f8faff;
  --cs-light-surface-tint: #eef1ff;
  --cs-light-line: #dce4f2;
  --cs-light-line-strong: #c7d2e7;
  --cs-light-ink: #19243b;
  --cs-light-ink-soft: #3b4964;
  --cs-light-muted: #64728b;
  --cs-light-accent: #5a50d8;
  --cs-light-accent-2: #2879dc;
  --cs-store-page: #f4f6fc;
  --cs-store-surface: #ffffff;
  --cs-store-surface-2: #f9faff;
  --cs-store-surface-3: #f0f3ff;
  --cs-store-line: rgba(77, 96, 142, .16);
  --cs-store-line-strong: rgba(90, 80, 216, .34);
  --cs-store-ink: #19243b;
  --cs-store-ink-soft: #3b4964;
  --cs-store-muted: #64728b;
  --cs-store-primary: #5a50d8;
  --cs-store-primary-strong: #493fc5;
  --cs-store-secondary: #078e91;
  --cs-store-focus: rgba(90, 80, 216, .19);
  --cs-store-shadow: 0 14px 34px rgba(39, 54, 94, .08);
}

/* Page canvas and top navigation */
html[data-theme="dark"] body {
  background:
    radial-gradient(ellipse at 12% -8%, rgba(94, 79, 230, .18), transparent 33%),
    radial-gradient(ellipse at 88% 3%, rgba(37, 189, 186, .09), transparent 29%),
    linear-gradient(180deg, #080e1b 0%, #0a1120 52%, #080e1b 100%) !important;
  color: var(--cs-store-ink) !important;
}
html[data-theme="light"] body {
  background:
    radial-gradient(ellipse at 5% -5%, rgba(110, 97, 244, .10), transparent 32%),
    radial-gradient(ellipse at 96% 6%, rgba(22, 174, 170, .08), transparent 27%),
    linear-gradient(180deg, #f7f8fd 0%, #f2f5fb 100%) !important;
  color: var(--cs-store-ink) !important;
}
html[data-theme="dark"] .topbar {
  background: linear-gradient(100deg, rgba(13, 22, 39, .97), rgba(17, 27, 47, .95)) !important;
  border-bottom: 1px solid rgba(157, 175, 226, .16) !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .20), inset 0 -1px rgba(255,255,255,.025) !important;
  backdrop-filter: blur(18px);
}
html[data-theme="light"] .topbar {
  background: linear-gradient(100deg, rgba(255,255,255,.97), rgba(249,250,255,.96)) !important;
  border-bottom: 1px solid #dce4f2 !important;
  box-shadow: 0 7px 26px rgba(39, 54, 94, .07), inset 0 -1px #ffffff !important;
  backdrop-filter: blur(18px);
}
html[data-theme="dark"] .logo,
html[data-theme="dark"] .header-title,
html[data-theme="dark"] .header-title *,
html[data-theme="dark"] .logo * { color: #f1f5ff !important; }
html[data-theme="light"] .logo,
html[data-theme="light"] .header-title,
html[data-theme="light"] .header-title *,
html[data-theme="light"] .logo * { color: #19243b !important; }
html[data-theme="dark"] .account-btn,
html[data-theme="dark"] .header-icon-button,
html[data-theme="dark"] .country-button {
  background: linear-gradient(145deg, #192740, #111d31) !important;
  color: #e8eeff !important;
  border-color: rgba(151, 174, 224, .23) !important;
  box-shadow: inset 0 1px rgba(255,255,255,.055), 0 4px 12px rgba(0,0,0,.12) !important;
}
html[data-theme="dark"] .account-btn:hover,
html[data-theme="dark"] .header-icon-button:hover,
html[data-theme="dark"] .country-button:hover {
  background: linear-gradient(145deg, #243657, #172943) !important;
  border-color: rgba(160, 148, 255, .58) !important;
  color: #ffffff !important;
}
html[data-theme="light"] .account-btn,
html[data-theme="light"] .header-icon-button,
html[data-theme="light"] .country-button {
  background: linear-gradient(145deg, #ffffff, #f4f6ff) !important;
  color: #27334d !important;
  border-color: #d7e0ef !important;
  box-shadow: inset 0 1px #ffffff, 0 4px 12px rgba(39,54,94,.045) !important;
}
html[data-theme="light"] .account-btn:hover,
html[data-theme="light"] .header-icon-button:hover,
html[data-theme="light"] .country-button:hover {
  background: linear-gradient(145deg, #f0efff, #e8f8f8) !important;
  border-color: #a9a2ee !important;
  color: #4439ba !important;
}
html[data-theme="dark"] .cart-count {
  background: linear-gradient(135deg, #a99fff, #6c60e9) !important;
  color: #101326 !important;
  box-shadow: 0 3px 12px rgba(123,108,255,.34) !important;
}
html[data-theme="light"] .cart-count {
  background: linear-gradient(135deg, #675ce5, #4c67df) !important;
  color: #ffffff !important;
  box-shadow: 0 3px 10px rgba(86,75,207,.28) !important;
}
html[data-theme="dark"] .theme-toggle {
  background: linear-gradient(135deg, rgba(127,113,255,.20), rgba(41,183,180,.12)) !important;
  color: #dbd9ff !important;
  border-color: rgba(160,150,255,.32) !important;
  box-shadow: inset 0 1px rgba(255,255,255,.08), 0 5px 15px rgba(0,0,0,.14) !important;
}
html[data-theme="dark"] .theme-toggle:hover {
  border-color: rgba(82,222,209,.58) !important;
  box-shadow: 0 8px 22px rgba(86,98,225,.18), inset 0 1px rgba(255,255,255,.08) !important;
}
html[data-theme="light"] .theme-toggle {
  background: linear-gradient(135deg, #f0eeff 0%, #eefafa 100%) !important;
  color: #493fbc !important;
  border-color: #d6d4f7 !important;
  box-shadow: inset 0 1px #ffffff, 0 4px 13px rgba(73,63,188,.08) !important;
}
html[data-theme="light"] .theme-toggle:hover {
  border-color: #a9a2ee !important;
  box-shadow: 0 8px 20px rgba(90,80,216,.14) !important;
}

/* Storefront columns and the central live preview */
html[data-theme="dark"] .side-panel,
html[data-theme="dark"] .preview-section {
  background: linear-gradient(155deg, rgba(17, 28, 48, .97), rgba(12, 21, 37, .98)) !important;
  color: var(--cs-store-ink) !important;
  border: 1px solid rgba(148, 170, 218, .16) !important;
  box-shadow: 0 16px 42px rgba(0,0,0,.16), inset 0 1px rgba(255,255,255,.035) !important;
}
html[data-theme="light"] .side-panel,
html[data-theme="light"] .preview-section {
  background: linear-gradient(155deg, rgba(255,255,255,.99), rgba(249,250,255,.98)) !important;
  color: var(--cs-store-ink) !important;
  border: 1px solid #dfe6f2 !important;
  box-shadow: 0 14px 34px rgba(39,54,94,.065), inset 0 1px #ffffff !important;
}
html[data-theme="dark"] .panel-header h2,
html[data-theme="dark"] .preview-header h1,
html[data-theme="dark"] .preview-header,
html[data-theme="dark"] .purchase-type,
html[data-theme="dark"] .purchase-type h2,
html[data-theme="dark"] .selected-info,
html[data-theme="dark"] .quantity-section,
html[data-theme="dark"] .packaging-section { color: #eaf0ff !important; }
html[data-theme="light"] .panel-header h2,
html[data-theme="light"] .preview-header h1,
html[data-theme="light"] .preview-header,
html[data-theme="light"] .purchase-type,
html[data-theme="light"] .purchase-type h2,
html[data-theme="light"] .selected-info,
html[data-theme="light"] .quantity-section,
html[data-theme="light"] .packaging-section { color: #1d2a45 !important; }
html[data-theme="dark"] .preview-header .device-name,
html[data-theme="dark"] #device-name-display {
  color: #c5c0ff !important;
  background: linear-gradient(135deg, rgba(124,108,255,.15), rgba(47,200,194,.07)) !important;
  border: 1px solid rgba(154,145,255,.21) !important;
}
html[data-theme="light"] .preview-header .device-name,
html[data-theme="light"] #device-name-display {
  color: #4d43c4 !important;
  background: linear-gradient(135deg, #f0efff, #eaf9f8) !important;
  border: 1px solid #dedcf8 !important;
}
html[data-theme="dark"] .preview-section .preview-stage,
html[data-theme="dark"] .preview-section > .preview-stage {
  background: radial-gradient(ellipse at 50% 15%, rgba(108,98,226,.11), transparent 51%), linear-gradient(145deg, rgba(8,15,29,.42), rgba(18,31,51,.26)) !important;
  border: 1px solid rgba(147,166,213,.10) !important;
  border-radius: 24px !important;
}
html[data-theme="light"] .preview-section .preview-stage,
html[data-theme="light"] .preview-section > .preview-stage {
  background: radial-gradient(ellipse at 50% 10%, rgba(112,103,229,.07), transparent 52%), linear-gradient(145deg, rgba(245,247,255,.75), rgba(250,252,255,.92)) !important;
  border: 1px solid rgba(130,145,190,.12) !important;
  border-radius: 24px !important;
}

/* Device selector, searches, dropdowns and city / point-of-sale selector */
html[data-theme="dark"] .device-search,
html[data-theme="dark"] .main-city-picker,
html[data-theme="dark"] .city-brand-bar,
html[data-theme="dark"] .case-city-select-trigger {
  background: linear-gradient(140deg, #172740, #101d31) !important;
  color: #e5edff !important;
  border-color: rgba(145,170,220,.22) !important;
  box-shadow: inset 0 1px rgba(255,255,255,.035), 0 5px 14px rgba(0,0,0,.08) !important;
}
html[data-theme="dark"] .main-city-picker label,
html[data-theme="dark"] .city-brand-bar label { color: #b9c8e2 !important; }
html[data-theme="dark"] .device-search input,
html[data-theme="dark"] .main-city-picker select,
html[data-theme="dark"] .city-brand-bar select,
html[data-theme="dark"] .case-city-select-trigger { color: #f0f4ff !important; }
html[data-theme="dark"] .device-search input,
html[data-theme="dark"] .side-panel select,
html[data-theme="dark"] .side-panel input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
html[data-theme="dark"] .preview-section select,
html[data-theme="dark"] .preview-section input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
html[data-theme="dark"] .preview-section textarea {
  background: #0d192b !important;
  color: #eef3ff !important;
  border-color: rgba(145,170,220,.23) !important;
  caret-color: #a79bff !important;
}
html[data-theme="light"] .device-search,
html[data-theme="light"] .main-city-picker,
html[data-theme="light"] .city-brand-bar,
html[data-theme="light"] .case-city-select-trigger {
  background: linear-gradient(135deg, #f6f7ff, #effafa) !important;
  color: #283650 !important;
  border-color: #d9e2f1 !important;
  box-shadow: 0 5px 16px rgba(45,62,105,.05) !important;
}
html[data-theme="light"] .main-city-picker label,
html[data-theme="light"] .city-brand-bar label { color: #4d5c78 !important; }
html[data-theme="light"] .side-panel select,
html[data-theme="light"] .side-panel input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
html[data-theme="light"] .preview-section select,
html[data-theme="light"] .preview-section input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
html[data-theme="light"] .preview-section textarea {
  background: #ffffff !important;
  color: #24324d !important;
  border-color: #d5deee !important;
  caret-color: #5a50d8 !important;
}
html[data-theme="dark"] .side-panel input:focus,
html[data-theme="dark"] .side-panel select:focus,
html[data-theme="dark"] .preview-section input:focus,
html[data-theme="dark"] .preview-section select:focus,
html[data-theme="dark"] .preview-section textarea:focus {
  border-color: #8e83ff !important; box-shadow: 0 0 0 3px rgba(142,131,255,.17) !important; outline: none !important;
}
html[data-theme="light"] .side-panel input:focus,
html[data-theme="light"] .side-panel select:focus,
html[data-theme="light"] .preview-section input:focus,
html[data-theme="light"] .preview-section select:focus,
html[data-theme="light"] .preview-section textarea:focus {
  border-color: #948bec !important; box-shadow: 0 0 0 3px rgba(90,80,216,.12) !important; outline: none !important;
}
html[data-theme="dark"] .case-custom-select-menu,
html[data-theme="dark"] .case-city-dropdown,
html[data-theme="dark"] .case-city-options,
html[data-theme="dark"] .device-suggestions,
html[data-theme="dark"] .gallery-device-suggestions {
  background: linear-gradient(155deg, #172740, #0c1729) !important;
  color: #eaf0ff !important;
  border-color: rgba(145,170,220,.25) !important;
  box-shadow: 0 20px 48px rgba(0,0,0,.38) !important;
}
html[data-theme="light"] .case-custom-select-menu,
html[data-theme="light"] .case-city-dropdown,
html[data-theme="light"] .case-city-options,
html[data-theme="light"] .device-suggestions,
html[data-theme="light"] .gallery-device-suggestions {
  background: linear-gradient(155deg, #ffffff, #f7f9ff) !important;
  color: #24324d !important;
  border-color: #dce3f1 !important;
  box-shadow: 0 18px 42px rgba(36,52,93,.14) !important;
}
html[data-theme="dark"] .device-suggestion:hover,
html[data-theme="dark"] .device-suggestion.active,
html[data-theme="dark"] .case-city-option:hover,
html[data-theme="dark"] .case-city-option[aria-selected="true"] {
  background: linear-gradient(100deg, rgba(123,108,255,.24), rgba(42,197,188,.10)) !important;
  border-color: rgba(158,147,255,.3) !important;
}
html[data-theme="light"] .device-suggestion:hover,
html[data-theme="light"] .device-suggestion.active,
html[data-theme="light"] .case-city-option:hover,
html[data-theme="light"] .case-city-option[aria-selected="true"] {
  background: linear-gradient(100deg, #efedff, #e8f8f7) !important;
  color: #4037b0 !important;
  border-color: #dad6f8 !important;
}

/* Product cards, thumbnails and filter chips. Keep rarity/classification colors intact. */
html[data-theme="dark"] .product-card {
  background: linear-gradient(135deg, rgba(25,39,63,.87), rgba(17,29,48,.92)) !important;
  border-color: rgba(143,165,211,.16) !important;
  box-shadow: inset 0 1px rgba(255,255,255,.025) !important;
}
html[data-theme="dark"] .product-card:hover {
  background: linear-gradient(135deg, rgba(34,51,82,.98), rgba(19,39,62,.98)) !important;
  border-color: rgba(147,136,255,.45) !important;
  box-shadow: 0 9px 20px rgba(0,0,0,.14), inset 0 1px rgba(255,255,255,.04) !important;
}
html[data-theme="dark"] .product-card.selected {
  background: linear-gradient(135deg, rgba(93,80,197,.26), rgba(29,68,91,.30)) !important;
  border-color: rgba(169,157,255,.72) !important;
  box-shadow: 0 0 0 1px rgba(142,129,255,.15), 0 8px 22px rgba(66,65,159,.12) !important;
}
html[data-theme="light"] .product-card {
  background: linear-gradient(135deg, #ffffff, #fafbff) !important;
  border-color: #e1e7f2 !important;
  box-shadow: 0 2px 7px rgba(40,57,97,.025) !important;
}
html[data-theme="light"] .product-card:hover {
  background: linear-gradient(135deg, #ffffff, #f3f3ff) !important;
  border-color: #c5c0f2 !important;
  box-shadow: 0 9px 22px rgba(62,69,139,.09) !important;
}
html[data-theme="light"] .product-card.selected {
  background: linear-gradient(135deg, #f0efff, #eaf8f7) !important;
  border-color: #958ce8 !important;
  box-shadow: 0 0 0 1px rgba(90,80,216,.08), 0 8px 20px rgba(62,69,139,.07) !important;
}
html[data-theme="dark"] .product-image {
  background: linear-gradient(145deg, #0b1525, #13223a) !important;
  border: 1px solid rgba(143,166,215,.10) !important;
}
html[data-theme="light"] .product-image {
  background: linear-gradient(145deg, #f5f7fc, #edf2fb) !important;
  border: 1px solid #e5eaf4 !important;
}
html[data-theme="dark"] .product-name,
html[data-theme="dark"] .product-info,
html[data-theme="dark"] .product-info strong,
html[data-theme="dark"] .product-card .product-name { color: #edf2ff !important; }
html[data-theme="dark"] .product-description,
html[data-theme="dark"] .product-card small,
html[data-theme="dark"] .product-card .muted,
html[data-theme="dark"] .product-rating small { color: #9fb0cc !important; }
html[data-theme="light"] .product-name,
html[data-theme="light"] .product-info,
html[data-theme="light"] .product-info strong,
html[data-theme="light"] .product-card .product-name { color: #1d2a45 !important; }
html[data-theme="light"] .product-description,
html[data-theme="light"] .product-card small,
html[data-theme="light"] .product-card .muted,
html[data-theme="light"] .product-rating small { color: #64728b !important; }
html[data-theme="dark"] .product-card .price,
html[data-theme="dark"] .product-card .product-price,
html[data-theme="dark"] #selected-case-price,
html[data-theme="dark"] #selected-sticker-price { color: #70e0cd !important; }
html[data-theme="light"] .product-card .price,
html[data-theme="light"] .product-card .product-price,
html[data-theme="light"] #selected-case-price,
html[data-theme="light"] #selected-sticker-price { color: #087f73 !important; }
html[data-theme="dark"] .product-bottom,
html[data-theme="dark"] .case-product-bottom { border-color: rgba(147,168,211,.15) !important; }
html[data-theme="light"] .product-bottom,
html[data-theme="light"] .case-product-bottom { border-color: #e3e8f2 !important; }
html[data-theme="dark"] .case-tier-heading {
  background: linear-gradient(135deg, rgba(85,72,182,.22), rgba(19,91,101,.15)) !important;
  border-color: rgba(149,139,255,.24) !important;
}
html[data-theme="light"] .case-tier-heading {
  background: linear-gradient(135deg, #f0efff, #eaf8f6) !important;
  border-color: #dcdaf6 !important;
}
html[data-theme="dark"] .case-tier-heading h3 { color: #e9e6ff !important; }
html[data-theme="dark"] .case-tier-heading p,
html[data-theme="dark"] .sticker-tier-filter-label,
html[data-theme="dark"] .gallery-tier-filter .sticker-tier-filter-label { color: #a9bad4 !important; }
html[data-theme="light"] .case-tier-heading h3 { color: #2c315a !important; }
html[data-theme="light"] .case-tier-heading p,
html[data-theme="light"] .sticker-tier-filter-label,
html[data-theme="light"] .gallery-tier-filter .sticker-tier-filter-label { color: #65728a !important; }
html[data-theme="dark"] .sticker-tier-filter,
html[data-theme="dark"] .case-tier-filter { border-bottom-color: rgba(147,168,211,.15) !important; }
html[data-theme="light"] .sticker-tier-filter,
html[data-theme="light"] .case-tier-filter { border-bottom-color: #e1e7f2 !important; }
html[data-theme="dark"] .sticker-filter-chip,
html[data-theme="dark"] .nav-filter-trigger,
html[data-theme="dark"] .catalog-browse-button {
  background: linear-gradient(135deg, rgba(105,94,219,.18), rgba(29,167,167,.10)) !important;
  color: #d8ddff !important;
  border-color: rgba(153,146,255,.26) !important;
}
html[data-theme="light"] .sticker-filter-chip,
html[data-theme="light"] .nav-filter-trigger,
html[data-theme="light"] .catalog-browse-button {
  background: linear-gradient(135deg, #f0efff, #edfbfa) !important;
  color: #473eb5 !important;
  border-color: #d9d7f5 !important;
}
html[data-theme="dark"] .sticker-filter-chip:hover,
html[data-theme="dark"] .sticker-filter-chip.active,
html[data-theme="dark"] .nav-filter-trigger:hover,
html[data-theme="dark"] .catalog-browse-button:hover {
  background: linear-gradient(135deg, rgba(123,108,255,.33), rgba(41,197,188,.17)) !important;
  border-color: rgba(167,157,255,.62) !important;
}
html[data-theme="light"] .sticker-filter-chip:hover,
html[data-theme="light"] .sticker-filter-chip.active,
html[data-theme="light"] .nav-filter-trigger:hover,
html[data-theme="light"] .catalog-browse-button:hover {
  background: linear-gradient(135deg, #e5e3ff, #dff7f5) !important;
  border-color: #aaa3ef !important;
}

/* Product type, packaging and quantity selection */
html[data-theme="dark"] .purchase-option,
html[data-theme="dark"] .packaging-option {
  background: linear-gradient(145deg, #182740, #111e31) !important;
  color: #cfdbf1 !important;
  border-color: rgba(145,168,216,.20) !important;
  box-shadow: inset 0 1px rgba(255,255,255,.035), 0 3px 8px rgba(0,0,0,.08) !important;
}
html[data-theme="dark"] .purchase-option:hover,
html[data-theme="dark"] .packaging-option:hover {
  background: linear-gradient(145deg, #213554, #172941) !important;
  border-color: rgba(148,137,255,.48) !important;
}
html[data-theme="dark"] .purchase-option.active,
html[data-theme="dark"] .packaging-option.selected {
  background: linear-gradient(135deg, rgba(118,103,242,.31), rgba(35,174,167,.16)) !important;
  color: #ffffff !important;
  border-color: rgba(164,153,255,.70) !important;
  box-shadow: 0 5px 17px rgba(86,77,190,.16), inset 0 1px rgba(255,255,255,.08) !important;
}
html[data-theme="light"] .purchase-option,
html[data-theme="light"] .packaging-option {
  background: linear-gradient(145deg, #ffffff, #f8f9ff) !important;
  color: #45516b !important;
  border-color: #dce4f1 !important;
  box-shadow: 0 3px 9px rgba(39,54,94,.035) !important;
}
html[data-theme="light"] .purchase-option:hover,
html[data-theme="light"] .packaging-option:hover {
  background: linear-gradient(145deg, #f6f4ff, #effbfa) !important;
  border-color: #c1bbee !important;
}
html[data-theme="light"] .purchase-option.active,
html[data-theme="light"] .packaging-option.selected {
  background: linear-gradient(135deg, #e9e7ff, #e5f8f6) !important;
  color: #352d9b !important;
  border-color: #958ce8 !important;
  box-shadow: 0 6px 16px rgba(82,73,190,.09) !important;
}
html[data-theme="dark"] .selected-row { border-color: rgba(146,168,213,.17) !important; }
html[data-theme="dark"] .selected-row > span { color: #aab9d2 !important; }
html[data-theme="dark"] .selected-row strong { color: #edf2ff !important; }
html[data-theme="dark"] .selected-row.total-row {
  background: linear-gradient(135deg, rgba(105,92,222,.22), rgba(28,158,156,.11)) !important;
  border-color: rgba(147,136,255,.28) !important;
}
html[data-theme="dark"] .selected-row.total-row strong { color: #c0fff5 !important; }
html[data-theme="light"] .selected-row { border-color: #e2e8f2 !important; }
html[data-theme="light"] .selected-row > span { color: #64728b !important; }
html[data-theme="light"] .selected-row strong { color: #25324d !important; }
html[data-theme="light"] .selected-row.total-row {
  background: linear-gradient(135deg, #f0efff, #e7f8f6) !important;
  border-color: #d7d6f4 !important;
}
html[data-theme="light"] .selected-row.total-row strong { color: #453bb8 !important; }
html[data-theme="dark"] .quantity-control,
html[data-theme="dark"] .quantity-control button {
  background: linear-gradient(145deg, #192a43, #122037) !important;
  color: #eaf0ff !important; border-color: rgba(145,168,216,.23) !important;
}
html[data-theme="light"] .quantity-control,
html[data-theme="light"] .quantity-control button {
  background: linear-gradient(145deg, #ffffff, #f2f5fc) !important;
  color: #2b3853 !important; border-color: #d7e0ef !important;
}
html[data-theme="dark"] .rotation-control,
html[data-theme="dark"] .gift-message-box {
  background: linear-gradient(145deg, rgba(19,34,55,.88), rgba(13,25,42,.92)) !important;
  border-color: rgba(145,168,216,.18) !important; color: #c8d5ec !important;
}
html[data-theme="light"] .rotation-control,
html[data-theme="light"] .gift-message-box {
  background: linear-gradient(145deg, #fbfcff, #f1f6fc) !important;
  border-color: #dfe6f1 !important; color: #4a5872 !important;
}
html[data-theme="dark"] .rotation-value,
html[data-theme="dark"] .rotation-title strong { color: #b5abff !important; }
html[data-theme="light"] .rotation-value,
html[data-theme="light"] .rotation-title strong { color: #5549ce !important; }

/* High-intent action buttons */
html[data-theme="dark"] .order-button,
html[data-theme="dark"] #order-button {
  background: linear-gradient(115deg, #7968f4 0%, #6959dc 48%, #258fba 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(196,190,255,.40) !important;
  box-shadow: 0 10px 25px rgba(91,77,220,.27), inset 0 1px rgba(255,255,255,.24) !important;
}
html[data-theme="dark"] .order-button:hover,
html[data-theme="dark"] #order-button:hover {
  filter: brightness(1.08) saturate(1.05);
  box-shadow: 0 13px 30px rgba(91,77,220,.36), inset 0 1px rgba(255,255,255,.30) !important;
}
html[data-theme="light"] .order-button,
html[data-theme="light"] #order-button {
  background: linear-gradient(115deg, #5b50d8 0%, #6258df 47%, #168fa8 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(86,76,202,.26) !important;
  box-shadow: 0 9px 22px rgba(84,74,204,.22), inset 0 1px rgba(255,255,255,.24) !important;
}
html[data-theme="light"] .order-button:hover,
html[data-theme="light"] #order-button:hover {
  filter: brightness(1.05) saturate(1.05);
  box-shadow: 0 12px 27px rgba(84,74,204,.27), inset 0 1px rgba(255,255,255,.28) !important;
}
html[data-theme="dark"] .support-link { color: #a9a0ff !important; }
html[data-theme="light"] .support-link { color: #564bc9 !important; }

/* Browse catalog overlay, cart, account and dialogs */
html[data-theme="dark"] .catalog-gallery-overlay,
html[data-theme="dark"] .modal-overlay,
html[data-theme="dark"] .modal-backdrop { background: rgba(3,8,18,.74) !important; backdrop-filter: blur(7px) !important; }
html[data-theme="light"] .catalog-gallery-overlay,
html[data-theme="light"] .modal-overlay,
html[data-theme="light"] .modal-backdrop { background: rgba(29,39,65,.43) !important; backdrop-filter: blur(7px) !important; }
html[data-theme="dark"] .catalog-gallery-modal,
html[data-theme="dark"] .modal-box,
html[data-theme="dark"] .modal-content,
html[data-theme="dark"] .cart-modal-box,
html[data-theme="dark"] .cart-item,
html[data-theme="dark"] .order-modal,
html[data-theme="dark"] .account-box,
html[data-theme="dark"] .review-box,
html[data-theme="dark"] .cart-added-card {
  background: linear-gradient(155deg, #15243b 0%, #0d192b 100%) !important;
  color: #eaf0ff !important;
  border-color: rgba(151,173,222,.21) !important;
  box-shadow: 0 26px 80px rgba(0,0,0,.42), inset 0 1px rgba(255,255,255,.04) !important;
}
html[data-theme="light"] .catalog-gallery-modal,
html[data-theme="light"] .modal-box,
html[data-theme="light"] .modal-content,
html[data-theme="light"] .cart-modal-box,
html[data-theme="light"] .cart-item,
html[data-theme="light"] .order-modal,
html[data-theme="light"] .account-box,
html[data-theme="light"] .review-box,
html[data-theme="light"] .cart-added-card {
  background: linear-gradient(155deg, #ffffff 0%, #f8faff 100%) !important;
  color: #24324d !important;
  border-color: #dce4f1 !important;
  box-shadow: 0 26px 76px rgba(29,45,84,.23), inset 0 1px #ffffff !important;
}
html[data-theme="dark"] .catalog-gallery-header,
html[data-theme="dark"] .catalog-gallery-toolbar {
  background: linear-gradient(100deg, rgba(122,105,242,.11), rgba(30,163,164,.07)) !important;
  border-color: rgba(146,168,215,.16) !important;
}
html[data-theme="dark"] .catalog-gallery-header h2,
html[data-theme="dark"] .modal-box h2,
html[data-theme="dark"] .modal-box h3,
html[data-theme="dark"] .modal-content h2,
html[data-theme="dark"] .account-box h2,
html[data-theme="dark"] .account-box h3,
html[data-theme="dark"] .review-box h2 { color: #f0f3ff !important; }
html[data-theme="light"] .catalog-gallery-header,
html[data-theme="light"] .catalog-gallery-toolbar {
  background: linear-gradient(100deg, #f5f4ff, #effafa) !important;
  border-color: #e0e5f2 !important;
}
html[data-theme="light"] .catalog-gallery-header h2,
html[data-theme="light"] .modal-box h2,
html[data-theme="light"] .modal-box h3,
html[data-theme="light"] .modal-content h2,
html[data-theme="light"] .account-box h2,
html[data-theme="light"] .account-box h3,
html[data-theme="light"] .review-box h2 { color: #1e2b46 !important; }
html[data-theme="dark"] .modal-subtitle,
html[data-theme="dark"] .modal-box p,
html[data-theme="dark"] .account-profile-card p,
html[data-theme="dark"] .account-hero p,
html[data-theme="dark"] .account-empty,
html[data-theme="dark"] .review-comment-label small { color: #9fb0cc !important; }
html[data-theme="light"] .modal-subtitle,
html[data-theme="light"] .modal-box p,
html[data-theme="light"] .account-profile-card p,
html[data-theme="light"] .account-hero p,
html[data-theme="light"] .account-empty,
html[data-theme="light"] .review-comment-label small { color: #64728b !important; }
html[data-theme="dark"] .modal-box label,
html[data-theme="dark"] .form-field label,
html[data-theme="dark"] .auth-form label,
html[data-theme="dark"] .review-comment-label { color: #c5d2e8 !important; }
html[data-theme="light"] .modal-box label,
html[data-theme="light"] .form-field label,
html[data-theme="light"] .auth-form label,
html[data-theme="light"] .review-comment-label { color: #465571 !important; }
html[data-theme="dark"] .modal-box input,
html[data-theme="dark"] .modal-box select,
html[data-theme="dark"] .modal-box textarea,
html[data-theme="dark"] .modal-content input,
html[data-theme="dark"] .modal-content select,
html[data-theme="dark"] .modal-content textarea,
html[data-theme="dark"] .account-box input,
html[data-theme="dark"] .form-field input,
html[data-theme="dark"] .form-field select,
html[data-theme="dark"] .form-field textarea,
html[data-theme="dark"] .review-box textarea {
  background: #0b1728 !important; color: #edf2ff !important; border-color: rgba(145,168,216,.24) !important;
}
html[data-theme="light"] .modal-box input,
html[data-theme="light"] .modal-box select,
html[data-theme="light"] .modal-box textarea,
html[data-theme="light"] .modal-content input,
html[data-theme="light"] .modal-content select,
html[data-theme="light"] .modal-content textarea,
html[data-theme="light"] .account-box input,
html[data-theme="light"] .form-field input,
html[data-theme="light"] .form-field select,
html[data-theme="light"] .form-field textarea,
html[data-theme="light"] .review-box textarea {
  background: #ffffff !important; color: #26344f !important; border-color: #d3deef !important;
}
html[data-theme="dark"] .account-panel,
html[data-theme="dark"] .account-profile-card,
html[data-theme="dark"] .account-hero,
html[data-theme="dark"] .account-stat,
html[data-theme="dark"] .member-welcome,
html[data-theme="dark"] .order-preview-summary,
html[data-theme="dark"] .purchase-success-summary {
  background: linear-gradient(145deg, rgba(25,41,64,.88), rgba(16,30,49,.92)) !important;
  border-color: rgba(145,168,216,.16) !important; color: #d6e1f3 !important;
}
html[data-theme="light"] .account-panel,
html[data-theme="light"] .account-profile-card,
html[data-theme="light"] .account-hero,
html[data-theme="light"] .account-stat,
html[data-theme="light"] .member-welcome,
html[data-theme="light"] .order-preview-summary,
html[data-theme="light"] .purchase-success-summary {
  background: linear-gradient(145deg, #ffffff, #f3f6fc) !important;
  border-color: #e0e7f2 !important; color: #45536d !important;
}
html[data-theme="dark"] .purchase-success-card { background: linear-gradient(155deg, #15243b, #0d192b) !important; border-color: rgba(151,173,222,.22) !important; }
html[data-theme="dark"] .purchase-success-card h3 { color: #f3f5ff !important; }
html[data-theme="dark"] .purchase-success-card p { color: #a9bad4 !important; }
html[data-theme="light"] .purchase-success-card { background: linear-gradient(155deg, #ffffff, #f8faff) !important; border-color: #dce4f1 !important; }
html[data-theme="light"] .purchase-success-card h3 { color: #1d2a45 !important; }
html[data-theme="light"] .purchase-success-card p { color: #64728b !important; }

/* Theme-aware scrollbars and crisp keyboard focus. */
html[data-theme="dark"] body * { scrollbar-color: #35496b transparent; }
html[data-theme="light"] body * { scrollbar-color: #c0cbe0 transparent; }
html[data-theme="dark"] body ::selection { background: rgba(133,119,255,.42); color: #ffffff; }
html[data-theme="light"] body ::selection { background: #dcd9ff; color: #28236f; }
html[data-theme="dark"] :is(button, a, select, input, textarea):focus-visible {
  outline: 2px solid rgba(161,149,255,.85) !important; outline-offset: 2px !important;
}
html[data-theme="light"] :is(button, a, select, input, textarea):focus-visible {
  outline: 2px solid rgba(90,80,216,.7) !important; outline-offset: 2px !important;
}
@media (prefers-reduced-motion: reduce) {
  html[data-theme] .product-card,
  html[data-theme] .purchase-option,
  html[data-theme] .packaging-option,
  html[data-theme] .theme-toggle,
  html[data-theme] .account-btn,
  html[data-theme] .header-icon-button,
  html[data-theme] .country-button {
    transition-duration: .01ms !important;
  }
}


/* V291: remove the long, sharp-cornered dark panel behind the central preview area.
   Keep the preview stage and its controls intact; only the outer center-column panel becomes transparent. */
html[data-theme="dark"] .main-layout > .preview-section,
body[data-theme="dark"] .main-layout > .preview-section {
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}


/* V294 — CASESTUDIO Studio Prism search system: actual store + catalog gallery controls */
:root {
  --cs-search-dark-bg: #111c2e;
  --cs-search-dark-bg-hi: #17263c;
  --cs-search-dark-border: #34445f;
  --cs-search-dark-text: #f2f5ff;
  --cs-search-dark-muted: #93a1bb;
  --cs-search-accent: #9a8cff;
  --cs-search-accent-soft: rgba(154, 140, 255, .15);
  --cs-search-light-bg: #ffffff;
  --cs-search-light-border: #d8e1ef;
  --cs-search-light-text: #24324a;
  --cs-search-light-muted: #8190a8;
}

/* The two storefront inputs are intentionally styled as complete components.
   In the catalog modal, the icon and input now share one unified search shell. */
.device-search,
.catalog-gallery-device-search {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 56px !important;
  min-height: 56px !important;
  box-sizing: border-box !important;
  padding: 7px 12px !important;
  margin: 0 0 12px !important;
  overflow: visible !important;
  border: 1px solid var(--cs-search-dark-border) !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, var(--cs-search-dark-bg-hi), var(--cs-search-dark-bg)) !important;
  color: var(--cs-search-dark-text) !important;
  box-shadow: 0 5px 16px rgba(0, 0, 0, .13), inset 0 1px 0 rgba(255,255,255,.035) !important;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease !important;
}

.device-search:hover,
.catalog-gallery-device-search:hover {
  border-color: #526583 !important;
}

.device-search:focus-within,
.catalog-gallery-device-search:focus-within {
  border-color: var(--cs-search-accent) !important;
  box-shadow: 0 0 0 3px rgba(154, 140, 255, .15), 0 8px 22px rgba(0,0,0,.17) !important;
}

.device-search > span,
.catalog-gallery-device-search > span {
  display: inline-flex !important;
  flex: 0 0 38px !important;
  align-items: center !important;
  justify-content: center !important;
  width: 38px !important;
  height: 38px !important;
  box-sizing: border-box !important;
  border: 1px solid rgba(154, 140, 255, .18) !important;
  border-radius: 12px !important;
  background: var(--cs-search-accent-soft) !important;
  color: #c2baff !important;
  opacity: 1 !important;
  font-size: 0 !important;
  line-height: 1 !important;
}

.device-search > span svg,
.catalog-gallery-device-search > span svg {
  display: block !important;
  width: 19px !important;
  height: 19px !important;
  overflow: visible !important;
  color: currentColor !important;
}

.device-search input,
.device-search input[type="search"],
.catalog-gallery-device-search input,
.catalog-gallery-device-search input[type="search"] {
  display: block !important;
  flex: 1 1 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 0 2px !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  color: var(--cs-search-dark-text) !important;
  box-shadow: none !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  text-align: right !important;
  caret-color: #c2baff !important;
  -webkit-appearance: none;
  appearance: none;
}

.device-search input::placeholder,
.catalog-gallery-device-search input::placeholder {
  color: var(--cs-search-dark-muted) !important;
  opacity: 1 !important;
  font-weight: 400 !important;
}

.device-search input:focus,
.device-search input[type="search"]:focus,
.catalog-gallery-device-search input:focus,
.catalog-gallery-device-search input[type="search"]:focus {
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Keep the autocomplete panel attached to the redesigned gallery search. */
.gallery-device-suggestions,
.device-suggestions {
  z-index: 9999 !important;
  top: calc(100% + 8px) !important;
  border: 1px solid rgba(145, 165, 205, .25) !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  box-shadow: 0 18px 42px rgba(0,0,0,.28) !important;
}
.gallery-device-suggestions .device-suggestion,
.device-suggestions .device-suggestion {
  min-height: 44px;
  padding: 12px 14px !important;
  transition: background .15s ease, color .15s ease !important;
}

html[data-theme="light"] .device-search,
body[data-theme="light"] .device-search,
html[data-theme="light"] .catalog-gallery-device-search,
body[data-theme="light"] .catalog-gallery-device-search {
  background: linear-gradient(135deg, #ffffff, #f7f9ff) !important;
  border-color: var(--cs-search-light-border) !important;
  color: var(--cs-search-light-text) !important;
  box-shadow: 0 5px 18px rgba(37, 55, 91, .065), inset 0 1px 0 #fff !important;
}

html[data-theme="light"] .device-search:hover,
body[data-theme="light"] .device-search:hover,
html[data-theme="light"] .catalog-gallery-device-search:hover,
body[data-theme="light"] .catalog-gallery-device-search:hover {
  border-color: #b8c5dc !important;
}

html[data-theme="light"] .device-search:focus-within,
body[data-theme="light"] .device-search:focus-within,
html[data-theme="light"] .catalog-gallery-device-search:focus-within,
body[data-theme="light"] .catalog-gallery-device-search:focus-within {
  border-color: #8274ec !important;
  box-shadow: 0 0 0 3px rgba(130, 116, 236, .13), 0 8px 22px rgba(40, 50, 96, .08) !important;
}

html[data-theme="light"] .device-search > span,
body[data-theme="light"] .device-search > span,
html[data-theme="light"] .catalog-gallery-device-search > span,
body[data-theme="light"] .catalog-gallery-device-search > span {
  border-color: #e1defd !important;
  background: linear-gradient(145deg, #f0edff, #eaf8f7) !important;
  color: #5f55c9 !important;
}

html[data-theme="light"] .device-search input,
body[data-theme="light"] .device-search input,
html[data-theme="light"] .device-search input[type="search"],
body[data-theme="light"] .device-search input[type="search"],
html[data-theme="light"] .catalog-gallery-device-search input,
body[data-theme="light"] .catalog-gallery-device-search input,
html[data-theme="light"] .catalog-gallery-device-search input[type="search"],
body[data-theme="light"] .catalog-gallery-device-search input[type="search"] {
  background: transparent !important;
  color: var(--cs-search-light-text) !important;
  caret-color: #675de0 !important;
}

html[data-theme="light"] .device-search input::placeholder,
body[data-theme="light"] .device-search input::placeholder,
html[data-theme="light"] .catalog-gallery-device-search input::placeholder,
body[data-theme="light"] .catalog-gallery-device-search input::placeholder {
  color: var(--cs-search-light-muted) !important;
}

html[data-theme="light"] .gallery-device-suggestions,
body[data-theme="light"] .gallery-device-suggestions,
html[data-theme="light"] .device-suggestions,
body[data-theme="light"] .device-suggestions {
  border-color: #dbe3f0 !important;
  background: #fff !important;
  color: #26364c !important;
  box-shadow: 0 18px 42px rgba(31,48,82,.14) !important;
}

@media (max-width: 640px) {
  .device-search,
  .catalog-gallery-device-search {
    height: 54px !important;
    min-height: 54px !important;
    padding: 6px 9px !important;
    gap: 10px !important;
    border-radius: 14px !important;
  }
  .device-search > span,
  .catalog-gallery-device-search > span {
    flex-basis: 36px !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 11px !important;
  }
  .device-search input,
  .device-search input[type="search"],
  .catalog-gallery-device-search input,
  .catalog-gallery-device-search input[type="search"] {
    font-size: 16px !important;
  }
}

/* V294 cascade guard: the legacy side-panel input rules must not paint a second box
   inside the new unified search shell. */
html[data-theme="dark"] body .side-panel .device-search input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
body[data-theme="dark"] .side-panel .device-search input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]) {
  background: transparent !important;
  border: 0 !important;
  color: var(--cs-search-dark-text) !important;
  box-shadow: none !important;
}
html[data-theme="light"] body .side-panel .device-search input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
body[data-theme="light"] .side-panel .device-search input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]) {
  background: transparent !important;
  border: 0 !important;
  color: var(--cs-search-light-text) !important;
  box-shadow: none !important;
}

/* V295 — restore the desktop floating-phone animation on portrait/mobile previews. */
@media (prefers-reduced-motion: reduce) {
  .preview-stage .phone, .phone { animation: none !important; will-change: auto !important; }
}

/* V296 — fix the real cause: older mobile rules used !important transform:none and animation:none
   on .phone, which prevented floatingPhone keyframes from running. Keep layout sizing intact. */
@media (max-width: 700px) {
  .preview-section .preview-stage .phone {
    animation: floatingPhone 4s ease-in-out infinite !important;
    will-change: transform;
  }
}
@media (prefers-reduced-motion: reduce) {
  .preview-section .preview-stage .phone { animation: none !important; will-change: auto !important; }
}

/* V297 — Pearl Contrast: reduce glare and restore depth to the light theme.
   Scope is deliberately limited to the light theme; dark mode and product artwork stay untouched. */
html[data-theme="light"] body,
body[data-theme="light"] {
  --cs-light-page: #edf1f7;
  --cs-light-surface: #fbfcfe;
  --cs-light-surface-soft: #f5f7fb;
  --cs-light-surface-tint: #eef0fb;
  --cs-light-line: #d2dbe9;
  --cs-light-line-strong: #bac7da;
  --cs-light-ink: #202b40;
  --cs-light-ink-soft: #3d4b63;
  --cs-light-muted: #66748a;
  background:
    radial-gradient(ellipse at 9% 0%, rgba(101, 91, 207, .075), transparent 32%),
    radial-gradient(ellipse at 92% 10%, rgba(25, 148, 158, .055), transparent 27%),
    linear-gradient(180deg, #f1f3f8 0%, #e9eef6 100%) !important;
  color: var(--cs-light-ink) !important;
}

/* Floating header: visible against the page, without a harsh white strip. */
html[data-theme="light"] .topbar,
body[data-theme="light"] .topbar {
  background: rgba(248, 250, 253, .94) !important;
  border-bottom: 1px solid #cfd8e7 !important;
  box-shadow: 0 7px 24px rgba(35, 49, 77, .085), 0 1px 0 rgba(255,255,255,.8) inset !important;
}
html[data-theme="light"] .account-btn,
html[data-theme="light"] .header-icon-button,
html[data-theme="light"] .country-button,
body[data-theme="light"] .account-btn,
body[data-theme="light"] .header-icon-button,
body[data-theme="light"] .country-button {
  background: linear-gradient(180deg, #fcfdff 0%, #f0f3f9 100%) !important;
  border-color: #cbd5e5 !important;
  box-shadow: 0 3px 8px rgba(35, 49, 77, .075), inset 0 1px 0 #fff !important;
}

/* Main work zones now have a soft pearl surface with a clear edge and lift. */
html[data-theme="light"] .side-panel,
html[data-theme="light"] .preview-section,
body[data-theme="light"] .side-panel,
body[data-theme="light"] .preview-section {
  background: linear-gradient(155deg, #fbfcfe 0%, #f5f7fb 100%) !important;
  border: 1px solid #d0d9e8 !important;
  box-shadow: 0 12px 30px rgba(34, 48, 76, .09),
              0 2px 5px rgba(34, 48, 76, .035),
              inset 0 1px 0 rgba(255,255,255,.92) !important;
}
html[data-theme="light"] .panel-header,
html[data-theme="light"] .preview-header,
body[data-theme="light"] .panel-header,
body[data-theme="light"] .preview-header {
  background: linear-gradient(100deg, rgba(239, 241, 252, .88), rgba(237, 246, 247, .72)) !important;
  border-color: #d9e0ed !important;
}

/* Product cards: slightly tinted surfaces, clearer separators, layered shadows. */
html[data-theme="light"] .product-card,
body[data-theme="light"] .product-card {
  background: linear-gradient(165deg, #fcfdff 0%, #f7f9fd 100%) !important;
  border-color: #d3dceb !important;
  box-shadow: 0 4px 11px rgba(31, 46, 76, .075),
              0 1px 2px rgba(31, 46, 76, .045),
              inset 0 1px 0 rgba(255,255,255,.96) !important;
}
html[data-theme="light"] .product-card:hover,
html[data-theme="light"] .product-card.selected,
body[data-theme="light"] .product-card:hover,
body[data-theme="light"] .product-card.selected {
  background: linear-gradient(155deg, #f8f8ff 0%, #eef5ff 100%) !important;
  border-color: #9fa9e8 !important;
  box-shadow: 0 9px 23px rgba(70, 78, 154, .13),
              0 2px 5px rgba(31, 46, 76, .045),
              inset 0 1px 0 rgba(255,255,255,.95) !important;
}
html[data-theme="light"] .product-bottom,
html[data-theme="light"] .case-product-bottom,
html[data-theme="light"] .selected-row,
body[data-theme="light"] .product-bottom,
body[data-theme="light"] .case-product-bottom,
body[data-theme="light"] .selected-row {
  border-color: #d8e0ec !important;
}

/* Inputs and filters should read as controls, not disappear into the page. */
html[data-theme="light"] select,
html[data-theme="light"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
html[data-theme="light"] textarea,
body[data-theme="light"] select,
body[data-theme="light"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
body[data-theme="light"] textarea {
  background-color: #f5f7fb !important;
  border-color: #c8d3e3 !important;
  box-shadow: inset 0 1px 2px rgba(33, 48, 76, .045), 0 1px 0 rgba(255,255,255,.7) !important;
}
html[data-theme="light"] select:focus,
html[data-theme="light"] input:focus,
html[data-theme="light"] textarea:focus,
body[data-theme="light"] select:focus,
body[data-theme="light"] input:focus,
body[data-theme="light"] textarea:focus {
  background-color: #fbfcff !important;
  border-color: #8d84e8 !important;
  box-shadow: 0 0 0 3px rgba(100, 91, 205, .15), 0 3px 9px rgba(35, 49, 77, .06) !important;
}
html[data-theme="light"] .device-search,
html[data-theme="light"] .catalog-gallery-device-search,
body[data-theme="light"] .device-search,
body[data-theme="light"] .catalog-gallery-device-search {
  background: linear-gradient(145deg, #fbfcff 0%, #f0f3fa 100%) !important;
  border-color: #c8d3e5 !important;
  box-shadow: 0 5px 14px rgba(34, 48, 76, .09), inset 0 1px 0 rgba(255,255,255,.96) !important;
}

/* The phone preview stage gets an understated studio surface, not a blank white sheet. */
html[data-theme="light"] .preview-section .preview-stage,
html[data-theme="light"] .preview-section > .preview-stage,
body[data-theme="light"] .preview-section .preview-stage,
body[data-theme="light"] .preview-section > .preview-stage {
  background: radial-gradient(ellipse at 50% 20%, #fbfcff 0%, #f1f4fa 72%, #eaedf5 100%) !important;
  border: 1px solid #d0d9e7 !important;
  box-shadow: inset 0 2px 8px rgba(44, 60, 92, .055),
              0 3px 8px rgba(33, 49, 77, .045) !important;
}
html[data-theme="light"] .city-brand-bar,
body[data-theme="light"] .city-brand-bar {
  background: linear-gradient(140deg, #f8f9fd 0%, #edf1f9 100%) !important;
  border-color: #cbd5e5 !important;
  box-shadow: 0 7px 18px rgba(34, 48, 76, .105), inset 0 1px 0 #fff !important;
}

/* Selection, price-summary and small option cards need their own visual layer. */
html[data-theme="light"] .quantity-control,
html[data-theme="light"] .quantity-control button,
html[data-theme="light"] .rotation-control,
html[data-theme="light"] .gift-message-box,
html[data-theme="light"] .purchase-option,
html[data-theme="light"] .packaging-option,
body[data-theme="light"] .quantity-control,
body[data-theme="light"] .quantity-control button,
body[data-theme="light"] .rotation-control,
body[data-theme="light"] .gift-message-box,
body[data-theme="light"] .purchase-option,
body[data-theme="light"] .packaging-option {
  border-color: #d0d9e8 !important;
  box-shadow: 0 3px 9px rgba(34, 48, 76, .065), inset 0 1px 0 rgba(255,255,255,.9) !important;
}
html[data-theme="light"] .selected-row.total-row,
body[data-theme="light"] .selected-row.total-row {
  background: linear-gradient(120deg, #ecebff 0%, #e8f6f5 100%) !important;
  border-color: #c7c9eb !important;
  box-shadow: 0 3px 10px rgba(84, 75, 175, .075), inset 0 1px 0 rgba(255,255,255,.75) !important;
}

/* Modal surfaces and gallery panels use controlled off-white, with a more legible edge. */
html[data-theme="light"] .catalog-gallery-modal,
html[data-theme="light"] .modal-box,
html[data-theme="light"] .modal-content,
html[data-theme="light"] .cart-modal-box,
html[data-theme="light"] .cart-item,
html[data-theme="light"] .order-modal,
html[data-theme="light"] .account-box,
html[data-theme="light"] .review-box,
html[data-theme="light"] .cart-added-card,
body[data-theme="light"] .catalog-gallery-modal,
body[data-theme="light"] .modal-box,
body[data-theme="light"] .modal-content,
body[data-theme="light"] .cart-modal-box,
body[data-theme="light"] .cart-item,
body[data-theme="light"] .order-modal,
body[data-theme="light"] .account-box,
body[data-theme="light"] .review-box,
body[data-theme="light"] .cart-added-card {
  background: linear-gradient(155deg, #fbfcfe 0%, #f3f6fb 100%) !important;
  border-color: #cbd6e6 !important;
  box-shadow: 0 24px 65px rgba(26, 39, 65, .25), 0 3px 10px rgba(26, 39, 65, .08), inset 0 1px 0 #fff !important;
}
html[data-theme="light"] .catalog-gallery-header,
html[data-theme="light"] .catalog-gallery-toolbar,
body[data-theme="light"] .catalog-gallery-header,
body[data-theme="light"] .catalog-gallery-toolbar {
  background: linear-gradient(105deg, #eff1fb 0%, #edf5f5 100%) !important;
  border-color: #d5deeb !important;
}
html[data-theme="light"] .catalog-gallery-grid .product-card,
body[data-theme="light"] .catalog-gallery-grid .product-card {
  background: linear-gradient(165deg, #fcfdff 0%, #f5f7fc 100%) !important;
  border-color: #d2dceb !important;
}

/* Maintain readable contrast on disabled, helper and secondary text. */
html[data-theme="light"] .modal-subtitle,
html[data-theme="light"] .nav-hint,
html[data-theme="light"] .rotation-help,
html[data-theme="light"] .product-description,
html[data-theme="light"] .product-card small,
body[data-theme="light"] .modal-subtitle,
body[data-theme="light"] .nav-hint,
body[data-theme="light"] .rotation-help,
body[data-theme="light"] .product-description,
body[data-theme="light"] .product-card small {
  color: #5e6c82 !important;
}
html[data-theme="light"] :is(button, a, select, input, textarea):focus-visible,
body[data-theme="light"] :is(button, a, select, input, textarea):focus-visible {
  outline: 2px solid #8177df !important;
  outline-offset: 2px !important;
}

@media (max-width: 640px) {
  html[data-theme="light"] .side-panel,
  html[data-theme="light"] .preview-section,
  body[data-theme="light"] .side-panel,
  body[data-theme="light"] .preview-section {
    box-shadow: 0 7px 20px rgba(34, 48, 76, .075), inset 0 1px 0 rgba(255,255,255,.9) !important;
  }
}

/* V300 — final guard: the center workspace is always transparent in the light theme. */
html[data-theme="light"] main.main-layout > section.preview-section,
body[data-theme="light"] main.main-layout > section.preview-section {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  outline: 0 !important;
  filter: none !important;
}
html[data-theme="light"] main.main-layout > section.preview-section::before,
html[data-theme="light"] main.main-layout > section.preview-section::after,
body[data-theme="light"] main.main-layout > section.preview-section::before,
body[data-theme="light"] main.main-layout > section.preview-section::after {
  content: none !important;
  display: none !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
}


/* V301 — Remove the sharp rectangular slab behind the center preview headings.
   Keep the device-name pill, purchase-option buttons, and phone preview surfaces intact. */
html[data-theme="light"] main.main-layout > section.preview-section > .preview-header,
body[data-theme="light"] main.main-layout > section.preview-section > .preview-header,
html[data-theme="light"] main.main-layout > section.preview-section > .purchase-type,
body[data-theme="light"] main.main-layout > section.preview-section > .purchase-type {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
  outline: 0 !important;
  filter: none !important;
  border-radius: 0 !important;
}
html[data-theme="light"] main.main-layout > section.preview-section > .preview-header::before,
html[data-theme="light"] main.main-layout > section.preview-section > .preview-header::after,
body[data-theme="light"] main.main-layout > section.preview-section > .preview-header::before,
body[data-theme="light"] main.main-layout > section.preview-section > .preview-header::after,
html[data-theme="light"] main.main-layout > section.preview-section > .purchase-type::before,
html[data-theme="light"] main.main-layout > section.preview-section > .purchase-type::after,
body[data-theme="light"] main.main-layout > section.preview-section > .purchase-type::before,
body[data-theme="light"] main.main-layout > section.preview-section > .purchase-type::after {
  content: none !important;
  display: none !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
}
/* Some deployments put the theme attribute on the root element while others put it on body. */
:root[data-theme="light"] .preview-header,
:root[data-theme="light"] .purchase-type,
body[data-theme="light"] .preview-header,
body[data-theme="light"] .purchase-type {
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}


/* V304 — Fix city selector overlapping the preview/header. Keep it in normal document flow. */
.preview-section > .city-brand-bar {
  position: relative !important;
  inset: auto !important;
  top: auto !important; left: auto !important; right: auto !important; bottom: auto !important;
  transform: none !important;
  z-index: 1 !important;
  width: min(100%, 520px) !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin: 10px auto 14px !important;
  flex-wrap: wrap !important;
}
.preview-section > .preview-header {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
@media (max-width: 700px) {
  .preview-section > .city-brand-bar {
    width: 100% !important;
    max-width: 100% !important;
    margin: 8px auto 12px !important;
    padding: 8px 10px !important;
    gap: 7px !important;
    justify-content: space-between !important;
  }
  .preview-section > .city-brand-bar label {
    font-size: 12px !important;
    white-space: normal !important;
    flex: 1 1 120px !important;
  }
  .preview-section > .city-brand-bar select {
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    flex: 1 1 145px !important;
  }
  .preview-section > .preview-header { padding-top: 0 !important; }
}


/* V305: Keep the admin dashboard link out of the customer purchase/storefront page. */
.admin-dashboard-link { display: none !important; }


/* V306 — City selector: compact footprint and reliably above the live preview. */
main.main-layout > section.preview-section {
  position: relative !important;
  z-index: 40 !important;
  isolation: isolate !important;
  overflow: visible !important;
}
main.main-layout > section.preview-section > .main-city-picker.city-brand-bar {
  position: relative !important;
  z-index: 10000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px 12px !important;
  width: min(100%, 360px) !important;
  max-width: 100% !important;
  min-height: 0 !important;
  height: auto !important;
  box-sizing: border-box !important;
  padding: 8px 10px !important;
  margin: 8px auto 12px !important;
  border-radius: 12px !important;
  overflow: visible !important;
  flex-wrap: wrap !important;
}
main.main-layout > section.preview-section > .main-city-picker.city-brand-bar > label {
  flex: 1 1 130px !important;
  min-width: 0 !important;
  margin: 0 !important;
  line-height: 1.35 !important;
  font-size: 13px !important;
}
main.main-layout > section.preview-section > .main-city-picker.city-brand-bar > select#buyer-city,
main.main-layout > section.preview-section > .main-city-picker.city-brand-bar > .case-city-select-trigger {
  flex: 0 1 175px !important;
  width: auto !important;
  min-width: 125px !important;
  max-width: 100% !important;
  min-height: 36px !important;
  height: auto !important;
  box-sizing: border-box !important;
  padding: 7px 10px !important;
  font-size: 13px !important;
  border-radius: 10px !important;
}
main.main-layout > section.preview-section > .main-city-picker .case-custom-select-menu {
  position: absolute !important;
  z-index: 2147483000 !important;
  top: calc(100% + 5px) !important;
  inset-inline: 0 !important;
  width: 100% !important;
  max-height: min(48vh, 300px) !important;
  overflow-y: auto !important;
  pointer-events: auto !important;
}
main.main-layout > section.preview-section > .preview-stage {
  position: relative !important;
  z-index: 1 !important;
}
@media (max-width: 700px) {
  main.main-layout > section.preview-section > .main-city-picker.city-brand-bar {
    width: min(100%, 320px) !important;
    gap: 6px 8px !important;
    padding: 7px 8px !important;
    margin: 6px auto 10px !important;
  }
  main.main-layout > section.preview-section > .main-city-picker.city-brand-bar > label {
    flex: 1 1 105px !important;
    font-size: 12px !important;
  }
  main.main-layout > section.preview-section > .main-city-picker.city-brand-bar > select#buyer-city,
  main.main-layout > section.preview-section > .main-city-picker.city-brand-bar > .case-city-select-trigger {
    flex: 1 1 125px !important;
    min-width: 0 !important;
    min-height: 34px !important;
    padding: 6px 8px !important;
    font-size: 12px !important;
  }
}


/* V307: Hide the admin dashboard shortcut on the public storefront only. */
body #admin-dashboard-link,
body a#admin-dashboard-link.admin-dashboard-link {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}


/* V308: genuinely compact city picker in storefront */
.main-city-picker.city-brand-bar {
  box-sizing: border-box !important;
  width: min(100% - 24px, 360px) !important;
  max-width: 360px !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 6px auto 8px !important;
  padding: 5px 10px !important;
  border-radius: 10px !important;
  box-shadow: 0 3px 10px rgba(0,0,0,.09) !important;
  gap: 0 !important;
}
.main-city-picker.city-brand-bar label {
  margin: 0 0 3px !important; padding: 0 !important;
  font-size: 12px !important; line-height: 1.25 !important;
}
.main-city-picker.city-brand-bar select#buyer-city {
  display: block !important; box-sizing: border-box !important;
  width: 100% !important; min-width: 0 !important;
  min-height: 0 !important; height: 30px !important;
  margin: 0 !important; padding: 3px 9px !important;
  line-height: 1.2 !important; font-size: 13px !important;
}
@media (max-width: 700px) {
  .main-city-picker.city-brand-bar { width: min(100% - 20px, 320px) !important; margin: 4px auto 6px !important; padding: 4px 8px !important; }
  .main-city-picker.city-brand-bar label { font-size: 11px !important; margin-bottom: 2px !important; }
  .main-city-picker.city-brand-bar select#buyer-city { height: 28px !important; font-size: 12px !important; }
}


/* V309: force the storefront city picker to a genuinely small, single-column card */
html body main.main-layout > section.preview-section > .main-city-picker.city-brand-bar {
  display: block !important;
  box-sizing: border-box !important;
  width: 210px !important;
  min-width: 0 !important;
  max-width: calc(100% - 24px) !important;
  height: auto !important;
  min-height: 0 !important;
  flex: 0 1 210px !important;
  align-self: center !important;
  margin: 4px auto 6px !important;
  padding: 4px 7px !important;
  gap: 0 !important;
  border-radius: 8px !important;
}
html body main.main-layout > section.preview-section > .main-city-picker.city-brand-bar > label {
  display: block !important;
  width: 100% !important;
  margin: 0 0 2px !important;
  padding: 0 !important;
  font-size: 10px !important;
  line-height: 1.2 !important;
  text-align: center !important;
  flex: none !important;
}
html body main.main-layout > section.preview-section > .main-city-picker.city-brand-bar > select#buyer-city,
html body main.main-layout > section.preview-section > .main-city-picker.city-brand-bar > .case-city-select-trigger {
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 25px !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 2px 6px !important;
  font-size: 11px !important;
  line-height: 1.1 !important;
  flex: none !important;
}
@media (max-width: 700px) {
  html body main.main-layout > section.preview-section > .main-city-picker.city-brand-bar {
    width: 185px !important;
    max-width: calc(100% - 20px) !important;
    margin: 3px auto 5px !important;
    padding: 3px 6px !important;
  }
  html body main.main-layout > section.preview-section > .main-city-picker.city-brand-bar > label { font-size: 9px !important; }
  html body main.main-layout > section.preview-section > .main-city-picker.city-brand-bar > select#buyer-city,
  html body main.main-layout > section.preview-section > .main-city-picker.city-brand-bar > .case-city-select-trigger {
    height: 23px !important;
    font-size: 10px !important;
    padding: 1px 5px !important;
  }
}


/* V310: compact city + point-of-sale selector */
.main-city-picker.city-brand-bar{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:5px!important;width:190px!important;max-width:calc(100% - 16px)!important;min-width:0!important;height:auto!important;min-height:0!important;margin:4px auto 7px!important;padding:6px 7px!important;box-sizing:border-box!important;border-radius:9px!important;}
.main-city-picker.city-brand-bar .city-picker-field{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:2px!important;width:100%!important;min-width:0!important;margin:0!important;padding:0!important;}
.main-city-picker.city-brand-bar .city-picker-field label{display:block!important;margin:0!important;padding:0!important;font-size:10px!important;line-height:1.25!important;text-align:right!important;white-space:nowrap!important;}
.main-city-picker.city-brand-bar .city-picker-field select,.main-city-picker.city-brand-bar .city-picker-field .case-city-select-trigger{width:100%!important;min-width:0!important;max-width:100%!important;height:25px!important;min-height:25px!important;padding:2px 7px!important;margin:0!important;box-sizing:border-box!important;font-size:11px!important;line-height:1.2!important;border-radius:6px!important;}
.main-city-picker.city-brand-bar #buyer-city.case-native-select-accessible{position:absolute!important;width:1px!important;height:1px!important;min-height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;}
.main-city-picker.city-brand-bar .case-custom-select-menu{max-height:180px!important;overflow:auto!important;}
@media(max-width:600px){.main-city-picker.city-brand-bar{width:170px!important;max-width:calc(100% - 12px)!important;padding:5px 6px!important;gap:4px!important;margin:3px auto 6px!important}.main-city-picker.city-brand-bar .city-picker-field label{font-size:9px!important}.main-city-picker.city-brand-bar .city-picker-field select,.main-city-picker.city-brand-bar .city-picker-field .case-city-select-trigger{height:23px!important;min-height:23px!important;font-size:10px!important;padding:2px 6px!important}}


/* V311 — Repair selector card sizing and mobile placement.
   Keep the card in normal flow and override older high-impact storefront rules. */
html body main.main-layout > section.preview-section > .main-city-picker.city-brand-bar {
  position: relative !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;
  float: none !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 6px !important;
  order: 2 !important;
  align-self: center !important;
  flex: 0 0 auto !important;
  width: 204px !important;
  min-width: 0 !important;
  max-width: calc(100vw - 24px) !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 4px auto 7px !important;
  padding: 7px 8px !important;
  box-sizing: border-box !important;
  border-radius: 11px !important;
  overflow: visible !important;
  z-index: 100 !important;
}
html body main.main-layout > section.preview-section > .main-city-picker.city-brand-bar > .city-picker-field {
  position: relative !important;
  display: flex !important;
  flex: 0 0 auto !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 2px !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}
html body main.main-layout > section.preview-section > .main-city-picker.city-brand-bar > .city-picker-field > label {
  display: block !important;
  position: static !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 10px !important;
  font-weight: 650 !important;
  line-height: 1.2 !important;
  text-align: right !important;
  white-space: nowrap !important;
  flex: 0 0 auto !important;
}
html body main.main-layout > section.preview-section > .main-city-picker.city-brand-bar > .city-picker-field > select:not(.case-native-select-accessible),
html body main.main-layout > section.preview-section > .main-city-picker.city-brand-bar > .city-picker-field > .case-city-select-trigger {
  position: relative !important;
  display: flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 28px !important;
  min-height: 28px !important;
  max-height: 28px !important;
  margin: 0 !important;
  padding: 3px 8px !important;
  box-sizing: border-box !important;
  border-radius: 7px !important;
  font-size: 11px !important;
  line-height: 1.15 !important;
  font-weight: 600 !important;
  flex-wrap: nowrap !important;
}
html body main.main-layout > section.preview-section > .main-city-picker.city-brand-bar > .city-picker-field > .case-city-select-trigger {
  cursor: pointer !important;
}
html body main.main-layout > section.preview-section > .main-city-picker.city-brand-bar .case-custom-select-menu {
  position: absolute !important;
  top: calc(100% + 3px) !important;
  inset-inline: 0 !important;
  right: auto !important;
  left: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  max-height: min(42vh, 230px) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  box-sizing: border-box !important;
  z-index: 2147483000 !important;
}
html body main.main-layout > section.preview-section > .preview-header {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
html body main.main-layout > section.preview-section > .preview-stage {
  clear: both !important;
}
@media (max-width: 700px) {
  html body main.main-layout > section.preview-section > .main-city-picker.city-brand-bar {
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    align-self: center !important;
    order: 2 !important;
    width: 188px !important;
    min-width: 0 !important;
    max-width: calc(100vw - 24px) !important;
    margin: 3px auto 5px !important;
    padding: 6px 7px !important;
    gap: 5px !important;
    border-radius: 10px !important;
  }
  html body main.main-layout > section.preview-section > .main-city-picker.city-brand-bar > .city-picker-field > label {
    font-size: 9.5px !important;
    line-height: 1.15 !important;
  }
  html body main.main-layout > section.preview-section > .main-city-picker.city-brand-bar > .city-picker-field > select:not(.case-native-select-accessible),
  html body main.main-layout > section.preview-section > .main-city-picker.city-brand-bar > .city-picker-field > .case-city-select-trigger {
    height: 28px !important;
    min-height: 28px !important;
    max-height: 28px !important;
    font-size: 10.5px !important;
    padding: 3px 7px !important;
  }
  html body main.main-layout > section.preview-section > .main-city-picker.city-brand-bar .case-custom-select-menu {
    max-height: min(36vh, 190px) !important;
  }
}


/* V312 — Stable carousel arrows: no jump, zoom or rail spacing change on hover/touch.
   Keep the side rails and arrow hit areas at their normal-flow dimensions in every state. */
.preview-stage .preview-nav,
.preview-stage .preview-nav:hover,
.preview-stage .preview-nav:focus,
.preview-stage .preview-nav:focus-within,
.preview-stage .preview-nav:active {
  transform: none !important;
  translate: none !important;
  scale: none !important;
  animation: none !important;
}
.preview-stage .preview-nav .nav-arrow,
.preview-stage .preview-nav .nav-arrow:hover,
.preview-stage .preview-nav .nav-arrow:focus,
.preview-stage .preview-nav .nav-arrow:focus-visible,
.preview-stage .preview-nav .nav-arrow:focus-within,
.preview-stage .preview-nav .nav-arrow:active,
.preview-stage .preview-nav .nav-arrow:disabled {
  box-sizing: border-box !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  transform: none !important;
  translate: none !important;
  scale: none !important;
  animation: none !important;
  transition-property: background-color, border-color, box-shadow, color !important;
  transition-duration: .16s !important;
  transition-timing-function: ease !important;
}
.preview-stage .preview-nav .nav-arrow:hover,
.preview-stage .preview-nav .nav-arrow:focus {
  transform: none !important;
}
/* Touch browsers can keep :hover active after a tap; avoid sticky visual states. */
@media (hover: none), (pointer: coarse) {
  .preview-stage .preview-nav,
  .preview-stage .preview-nav:hover,
  .preview-stage .preview-nav:focus-within {
    transform: none !important;
    translate: none !important;
    scale: none !important;
  }
  .preview-stage .preview-nav .nav-arrow:hover,
  .preview-stage .preview-nav .nav-arrow:active {
    transform: none !important;
    translate: none !important;
    scale: none !important;
  }
}


/* V313 — Stabilize EVERY preview-side control on touch devices.
   Targets arrows, browse-all buttons, and category filter triggers together. */
.preview-stage > .preview-nav,
.preview-stage > .preview-nav:hover,
.preview-stage > .preview-nav:focus,
.preview-stage > .preview-nav:focus-within,
.preview-stage > .preview-nav:active {
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
  transform: none !important;
  translate: none !important;
  scale: none !important;
  animation: none !important;
}
.preview-stage > .preview-nav > .nav-arrow,
.preview-stage > .preview-nav > .nav-arrow:hover,
.preview-stage > .preview-nav > .nav-arrow:focus,
.preview-stage > .preview-nav > .nav-arrow:focus-visible,
.preview-stage > .preview-nav > .nav-arrow:active,
.preview-stage > .preview-nav > .side-catalog-button,
.preview-stage > .preview-nav > .side-catalog-button:hover,
.preview-stage > .preview-nav > .side-catalog-button:focus,
.preview-stage > .preview-nav > .side-catalog-button:focus-visible,
.preview-stage > .preview-nav > .side-catalog-button:active,
.preview-stage > .preview-nav .nav-filter-trigger,
.preview-stage > .preview-nav .nav-filter-trigger:hover,
.preview-stage > .preview-nav .nav-filter-trigger:focus,
.preview-stage > .preview-nav .nav-filter-trigger:focus-visible,
.preview-stage > .preview-nav .nav-filter-trigger:active {
  box-sizing: border-box !important;
  flex: 0 0 auto !important;
  align-self: center !important;
  margin: 0 !important;
  transform: none !important;
  translate: none !important;
  scale: none !important;
  animation: none !important;
  transition: background-color .14s ease, border-color .14s ease, color .14s ease, box-shadow .14s ease !important;
  -webkit-tap-highlight-color: transparent !important;
  touch-action: manipulation !important;
}
.preview-stage > .preview-nav > .nav-arrow {
  width: 34px !important;
  min-width: 34px !important;
  max-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  padding: 0 !important;
  line-height: 1 !important;
}
.preview-stage > .preview-nav > .side-catalog-button {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  flex-shrink: 0 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  line-height: 1.2 !important;
}
.preview-stage > .preview-nav .nav-filter-trigger {
  max-width: 100% !important;
  min-width: 0 !important;
  flex-shrink: 0 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}
@media (max-width: 520px) {
  .preview-stage > .preview-nav > .nav-arrow,
  .preview-stage > .preview-nav > .nav-arrow:hover,
  .preview-stage > .preview-nav > .nav-arrow:focus,
  .preview-stage > .preview-nav > .nav-arrow:active {
    width: 29px !important;
    min-width: 29px !important;
    max-width: 29px !important;
    height: 29px !important;
    min-height: 29px !important;
    max-height: 29px !important;
    font-size: 15px !important;
  }
  .preview-stage > .preview-nav,
  .preview-stage > .preview-nav:hover,
  .preview-stage > .preview-nav:focus-within,
  .preview-stage > .preview-nav:active {
    gap: 6px !important;
  }
}
@media (hover: none), (pointer: coarse) {
  .preview-stage > .preview-nav *:hover,
  .preview-stage > .preview-nav *:active {
    transform: none !important;
    translate: none !important;
    scale: none !important;
    animation: none !important;
  }
}


/* V314: Freeze the two catalog-wide buttons on touch devices.
   These are separate from the preview side arrows and need their own override. */
#browse-all-cases,
#browse-all-stickers,
.catalog-browse-button#browse-all-cases,
.catalog-browse-button#browse-all-stickers {
  box-sizing: border-box !important;
  transform: none !important;
  translate: none !important;
  scale: 1 !important;
  transition-property: background-color, color, border-color, box-shadow !important;
  transition-duration: 0.15s !important;
  flex-shrink: 0 !important;
  min-height: 40px !important;
  height: auto !important;
  line-height: 1.25 !important;
  -webkit-tap-highlight-color: transparent !important;
  touch-action: manipulation !important;
}
#browse-all-cases:hover,
#browse-all-cases:focus,
#browse-all-cases:focus-visible,
#browse-all-cases:active,
#browse-all-stickers:hover,
#browse-all-stickers:focus,
#browse-all-stickers:focus-visible,
#browse-all-stickers:active {
  transform: none !important;
  translate: none !important;
  scale: 1 !important;
  margin-inline: inherit !important;
}
@media (hover: none), (pointer: coarse) {
  #browse-all-cases:hover,
  #browse-all-cases:focus,
  #browse-all-cases:focus-visible,
  #browse-all-cases:active,
  #browse-all-stickers:hover,
  #browse-all-stickers:focus,
  #browse-all-stickers:focus-visible,
  #browse-all-stickers:active,
  .catalog-browse-button:hover,
  .catalog-browse-button:focus,
  .catalog-browse-button:focus-visible,
  .catalog-browse-button:active {
    transform: none !important;
    translate: none !important;
    scale: 1 !important;
    letter-spacing: inherit !important;
    padding-inline: inherit !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
}


/* V315 — Fix the actual preview-side browse buttons.
   V314 only froze #browse-all-* in the catalog lists, but the labels next to the
   preview are #side-browse-*. Earlier responsive :hover rules assigned larger
   width/height/font values to .side-catalog-button, so a tap/focus could resize
   these two controls. Keep each state dimensionally identical to its breakpoint. */
#side-browse-cases,
#side-browse-cases:hover,
#side-browse-cases:focus,
#side-browse-cases:focus-visible,
#side-browse-cases:active,
#side-browse-stickers,
#side-browse-stickers:hover,
#side-browse-stickers:focus,
#side-browse-stickers:focus-visible,
#side-browse-stickers:active {
  box-sizing: border-box !important;
  flex: 0 0 auto !important;
  transform: none !important;
  translate: none !important;
  scale: 1 !important;
  animation: none !important;
  letter-spacing: normal !important;
  margin: 0 !important;
  transition-property: background-color, color, border-color, box-shadow !important;
  -webkit-tap-highlight-color: transparent !important;
  touch-action: manipulation !important;
}
/* Desktop baseline */
#side-browse-cases,
#side-browse-cases:hover,
#side-browse-cases:focus,
#side-browse-cases:focus-visible,
#side-browse-cases:active,
#side-browse-stickers,
#side-browse-stickers:hover,
#side-browse-stickers:focus,
#side-browse-stickers:focus-visible,
#side-browse-stickers:active {
  width: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  height: auto !important;
  min-height: 54px !important;
  max-height: none !important;
  padding: 5px 2px !important;
  font-size: 11px !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}
@media (max-width: 700px) {
  #side-browse-cases,
  #side-browse-cases:hover,
  #side-browse-cases:focus,
  #side-browse-cases:focus-visible,
  #side-browse-cases:active,
  #side-browse-stickers,
  #side-browse-stickers:hover,
  #side-browse-stickers:focus,
  #side-browse-stickers:focus-visible,
  #side-browse-stickers:active {
    width: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
    min-height: 68px !important;
    padding: 6px 3px !important;
    font-size: 10px !important;
    line-height: 1.3 !important;
  }
}
@media (max-width: 390px) {
  #side-browse-cases,
  #side-browse-cases:hover,
  #side-browse-cases:focus,
  #side-browse-cases:focus-visible,
  #side-browse-cases:active,
  #side-browse-stickers,
  #side-browse-stickers:hover,
  #side-browse-stickers:focus,
  #side-browse-stickers:focus-visible,
  #side-browse-stickers:active {
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    font-size: 9px !important;
  }
}


/* V316 — Larger preview navigation arrows, without changing browse buttons. */
.preview-stage .preview-nav {
  width: 50px !important;
  min-width: 50px !important;
}
.preview-stage .preview-nav .nav-arrow,
.preview-stage .preview-nav .nav-arrow:hover,
.preview-stage .preview-nav .nav-arrow:focus,
.preview-stage .preview-nav .nav-arrow:focus-visible,
.preview-stage .preview-nav .nav-arrow:active,
.preview-stage .preview-nav .nav-arrow:disabled {
  width: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  padding: 0 !important;
  font-size: 24px !important;
  line-height: 1 !important;
  border-radius: 10px !important;
}
@media (max-width: 850px) {
  .preview-stage .preview-nav {
    width: 46px !important;
    min-width: 46px !important;
  }
  .preview-stage .preview-nav .nav-arrow,
  .preview-stage .preview-nav .nav-arrow:hover,
  .preview-stage .preview-nav .nav-arrow:focus,
  .preview-stage .preview-nav .nav-arrow:focus-visible,
  .preview-stage .preview-nav .nav-arrow:active,
  .preview-stage .preview-nav .nav-arrow:disabled {
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    font-size: 22px !important;
  }
}
@media (max-width: 390px) {
  .preview-stage .preview-nav {
    width: 42px !important;
    min-width: 42px !important;
  }
  .preview-stage .preview-nav .nav-arrow,
  .preview-stage .preview-nav .nav-arrow:hover,
  .preview-stage .preview-nav .nav-arrow:focus,
  .preview-stage .preview-nav .nav-arrow:focus-visible,
  .preview-stage .preview-nav .nav-arrow:active,
  .preview-stage .preview-nav .nav-arrow:disabled {
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    font-size: 20px !important;
  }
}


/* V317 — icon-only sticker-size control; size choices open on demand. */
#sticker-size-toggle {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  width: 30px;
  min-width: 30px;
  max-width: 30px;
  height: 30px;
  min-height: 30px;
  max-height: 30px;
  margin-inline-start: auto;
  padding: 6px;
  border: 1px solid var(--border-color, rgba(125,145,170,.55));
  border-radius: 9px;
  background: var(--card-bg, rgba(100,125,155,.12));
  color: var(--text-color, currentColor);
  cursor: pointer;
  box-sizing: border-box;
  transform: none;
  transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
  touch-action: manipulation;
}
#sticker-size-toggle svg {
  display: block;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#sticker-size-toggle:hover,
#sticker-size-toggle:focus-visible {
  background: rgba(80,170,235,.16);
  border-color: rgba(80,170,235,.75);
  outline: none;
  box-shadow: 0 0 0 2px rgba(80,170,235,.15);
}
#sticker-size-toggle:active { transform: none; }
#sticker-size-toggle[hidden] { display: none !important; }
#sticker-size-picker {
  position: absolute !important;
  top: 62px !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  width: min(260px, calc(100% - 24px)) !important;
  max-width: calc(100% - 24px) !important;
  margin: 0 !important;
  transform: translateX(-50%) !important;
  z-index: 80 !important;
}
#sticker-size-picker select { font-size: 13px; }
#sticker-size-picker[hidden] { display: none !important; }
@media (max-width: 700px) {
  #sticker-size-toggle {
    width: 32px;
    min-width: 32px;
    max-width: 32px;
    height: 32px;
    min-height: 32px;
    max-height: 32px;
  }
  #sticker-size-picker { top: 58px !important; }
}


/* V319 — keep the sticker-size icon outside the hidden title row used by compact price pills. */
.preview-product-price-card > #sticker-size-toggle {
  order: 0 !important;
  display: inline-flex !important;
  flex: 0 0 26px !important;
  width: 26px !important;
  min-width: 26px !important;
  max-width: 26px !important;
  height: 26px !important;
  min-height: 26px !important;
  max-height: 26px !important;
  margin: 0 !important;
  padding: 4px !important;
  align-self: center !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 2 !important;
  border-radius: 50% !important;
  box-shadow: 0 1px 5px rgba(0,0,0,.12) !important;
}
.preview-product-price-card > #sticker-size-toggle[hidden] { display: none !important; }
.preview-product-price-card > #sticker-size-toggle svg { width: 16px !important; height: 16px !important; }
.preview-product-price-card > #sticker-size-toggle:hover,
.preview-product-price-card > #sticker-size-toggle:focus-visible {
  background: rgba(80,170,235,.20) !important;
  border-color: rgba(80,170,235,.85) !important;
}


/* V320 — prominent standalone circular sticker-size button. Keep dimensions stable on interaction. */
#preview-sticker-price-card > #sticker-size-toggle,
#preview-sticker-price-card > #sticker-size-toggle:hover,
#preview-sticker-price-card > #sticker-size-toggle:focus,
#preview-sticker-price-card > #sticker-size-toggle:focus-visible,
#preview-sticker-price-card > #sticker-size-toggle:active {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  flex: 0 0 36px !important;
  width: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  padding: 7px !important;
  margin: 0 !important;
  border: 1px solid rgba(174,232,255,.92) !important;
  border-radius: 12px !important;
  background: linear-gradient(145deg, #5547c7 0%, #2469c8 58%, #1688bd 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 3px 10px rgba(34,76,160,.28), inset 0 1px 0 rgba(255,255,255,.30) !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  cursor: pointer !important;
  touch-action: manipulation;
  transition: box-shadow .16s ease, filter .16s ease !important;
}
#preview-sticker-price-card > #sticker-size-toggle svg {
  display: block !important;
  width: 18px !important;
  height: 18px !important;
  fill: none !important;
  stroke: #ffffff !important;
  stroke-width: 2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}
#preview-sticker-price-card > #sticker-size-toggle:hover {
  filter: brightness(1.08) !important;
  box-shadow: 0 3px 12px rgba(0, 151, 255, .5), 0 0 0 3px rgba(0, 199, 232, .22) !important;
}
#preview-sticker-price-card > #sticker-size-toggle:focus-visible {
  outline: 3px solid rgba(0, 199, 232, .55) !important;
  outline-offset: 2px !important;
}
#preview-sticker-price-card > #sticker-size-toggle[hidden] {
  display: none !important;
}
@media (max-width: 700px) {
  #preview-sticker-price-card > #sticker-size-toggle,
  #preview-sticker-price-card > #sticker-size-toggle:hover,
  #preview-sticker-price-card > #sticker-size-toggle:focus,
  #preview-sticker-price-card > #sticker-size-toggle:focus-visible,
  #preview-sticker-price-card > #sticker-size-toggle:active {
    flex-basis: 36px !important;
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
  }
}


/* V321 — direct manipulation: circular rotate handle replaces the range slider. */
#rotation-control.rotation-control { padding: 8px 12px !important; margin-bottom: 10px !important; }
#rotation-control .rotation-title { margin-bottom: 0 !important; }
#rotation-value { min-width: 3.5em; text-align: end; font-variant-numeric: tabular-nums; }
.rotation-help { line-height: 1.5; }


/* V321 — circular rotation control is a DOM overlay, separate from exported canvas art. */
.phone { position: relative; }
.sticker-rotation-handle {
    position: absolute !important;
    z-index: 40 !important;
    left: 0;
    top: 0;
    transform: translate(-50%, -50%);
    width: var(--rotation-target-w,40px) !important;
    min-width: var(--rotation-target-w,40px) !important;
    max-width: var(--rotation-target-w,40px) !important;
    height: var(--rotation-target-h,40px) !important;
    min-height: var(--rotation-target-h,40px) !important;
    max-height: var(--rotation-target-h,40px) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    margin: 0 !important;
    border:0 !important;
    border-radius: 50% !important;
    background:transparent !important;
    color: #fff !important;
    box-shadow:none !important;
    cursor: grab;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}
.sticker-rotation-handle::before {content:"";position:absolute;width:var(--rotation-visual-w,28px);height:var(--rotation-visual-h,28px);border-radius:50%;box-sizing:border-box;border:2px solid #fff;background:linear-gradient(145deg,#22b8ff,#0675ee);box-shadow:0 3px 10px rgba(0,0,0,.35);pointer-events:none;}
.sticker-rotation-handle[hidden] { display: none !important; }
.sticker-rotation-handle svg { position:relative;width:calc(var(--rotation-visual-w,28px) * .58); height:calc(var(--rotation-visual-h,28px) * .58); display: block; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.sticker-rotation-handle:hover::before { background: linear-gradient(145deg, #4bcbff, #1389ff) !important; box-shadow: 0 4px 16px rgba(0,133,255,.48), 0 0 0 3px rgba(150,225,255,.34) !important; }
.sticker-rotation-handle.is-dragging { cursor: grabbing; transform:translate(-50%,-50%); }
.sticker-rotation-handle:focus-visible { outline: 3px solid #8ae3ff; outline-offset: 3px; }

/* V380-R07: the selected point of sale shares the welcome area's visual style. */
.point-of-sale-card {
    --pos-surface:linear-gradient(145deg,rgba(25,41,64,.88),rgba(16,30,49,.92));
    --pos-border:rgba(145,168,216,.18);
    --pos-text:#edf3ff;
    --pos-muted:#a9bad4;
    --pos-icon:#b9d9ff;
    --pos-icon-surface:rgba(145,168,216,.12);
    margin:12px 30px 0;
    padding:13px 15px;
    display:flex;
    align-items:center;
    gap:12px;
    min-width:0;
    border:1px solid var(--pos-border);
    border-radius:18px;
    background:var(--pos-surface);
    color:var(--pos-text);
    box-shadow:0 12px 35px rgba(0,0,0,.12);
}
.point-of-sale-card[hidden] { display:none; }
html[data-theme="light"] .point-of-sale-card,
body[data-theme="light"] .point-of-sale-card {
    --pos-surface:linear-gradient(145deg,#fff,#f3f6fc);
    --pos-border:#e0e7f2;
    --pos-text:#1d2a45;
    --pos-muted:#526176;
    --pos-icon:#365e91;
    --pos-icon-surface:#e7effb;
}
.point-of-sale-logo {
    display:grid;
    place-items:center;
    width:48px;
    height:48px;
    flex:0 0 48px;
    border:1px solid var(--pos-border);
    border-radius:14px;
    background:var(--pos-icon-surface);
    color:var(--pos-icon);
}
.point-of-sale-logo svg {
    display:block;
    width:27px;
    height:27px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.7;
    stroke-linecap:round;
    stroke-linejoin:round;
}
.point-of-sale-copy { display:flex; flex:1; flex-direction:column; gap:4px; min-width:0; }
.point-of-sale-label { color:var(--pos-muted); font-size:11px; }
.point-of-sale-copy strong { font-size:16px; font-weight:800; line-height:1.5; overflow-wrap:anywhere; }
.point-of-sale-rating { display:flex; align-items:center; gap:6px; color:var(--pos-muted); font-size:12px; line-height:1.5; }
.point-of-sale-rating svg { width:15px; height:15px; flex:0 0 15px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linejoin:round; }
.point-of-sale-card .point-of-sale-visit {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    max-width:100%;
    min-height:40px;
    padding:9px 13px;
    border:1px solid var(--pos-border);
    border-radius:10px;
    background:var(--pos-icon-surface);
    color:var(--pos-icon);
    font-size:13px;
    font-weight:800;
    line-height:1.5;
    overflow-wrap:anywhere;
    text-decoration:none;
    transform:none;
    translate:none;
    scale:1;
    transition:filter .16s ease,box-shadow .16s ease;
}
.point-of-sale-card .point-of-sale-visit[hidden] { display:none; }
.point-of-sale-visit svg { width:20px; height:20px; flex:0 0 20px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.point-of-sale-card .point-of-sale-visit:hover { filter:brightness(1.08); }
.point-of-sale-card .point-of-sale-visit:active { filter:brightness(.94); }
.point-of-sale-card .point-of-sale-visit:focus-visible { outline:2px solid var(--pos-icon); outline-offset:3px; }
@media(max-width:700px) {
    .point-of-sale-card { margin:10px 14px 0; padding:11px; gap:10px; flex-wrap:wrap; }
    .point-of-sale-card .point-of-sale-visit { flex:0 0 100%; text-align:center; }
}

/* R09-B: disclosure beside verified product ratings only. */
.verified-buyer-badge{display:inline-flex;align-items:center;gap:.25em;max-width:100%;padding:.15em .45em;border:1px solid currentColor;border-radius:999px;color:#39cda0;font-size:11px;line-height:1.5;font-weight:700;white-space:normal;}
html[data-theme="light"] .verified-buyer-badge,body[data-theme="light"] .verified-buyer-badge{color:#087453;}

.product-rating.has-verified-rating{flex-wrap:wrap;row-gap:6px;}

.review-box #review-comment[hidden],.review-box .review-comment-label[hidden]{display:none;}


/* R09-B: saved order viewer. No selectors affect the main preview. */
#customer-order-details-modal{padding:12px;}
#customer-order-details-modal .customer-order-details-box{--od-surface:#172237;--od-border:#33415a;--od-muted:#aabbd0;width:min(900px,96vw);max-width:900px;padding:25px;text-align:start;color:var(--text-primary,#edf3ff);}
html[data-theme="light"] #customer-order-details-modal .customer-order-details-box,body[data-theme="light"] #customer-order-details-modal .customer-order-details-box{--od-surface:#f2f6fc;--od-border:#d3deee;--od-muted:#526176;color:#17253d;}
#customer-order-details-modal .customer-order-back{border:0;background:transparent;color:inherit;cursor:pointer;padding:10px 0;font:inherit;}
.customer-order-detail-header{display:flex;justify-content:space-between;gap:14px;align-items:start;margin:15px 0;}
.customer-order-detail-header h3{margin:5px 0;font-size:20px;overflow-wrap:anywhere;}
.customer-order-detail-header small,.customer-order-detail-header span,.customer-order-product-card small{color:var(--od-muted);}
.customer-order-state,.customer-order-receipt{border:1px solid var(--od-border);border-radius:12px;padding:8px 11px;background:var(--od-surface);}
.customer-order-receipt{margin-bottom:20px;font-size:13px;}
.customer-order-detail-items,.customer-order-product-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(270px,100%),1fr));gap:14px;}
.customer-order-detail-items article,.customer-order-product-card{min-width:0;border:1px solid var(--od-border);border-radius:17px;padding:14px;background:var(--od-surface);overflow-wrap:anywhere;}
.customer-order-detail-items h4,.customer-order-product-card h4{margin:5px 0 9px;font-size:16px;}
.customer-order-saved-preview{min-height:100px;display:grid;place-items:center;padding:8px;color:var(--od-muted);}
.customer-order-saved-preview img{display:block;max-width:100%;max-height:350px;object-fit:contain;}
.customer-order-item-meta,.customer-order-total{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;}
.customer-order-product-card{display:grid;grid-template-columns:88px minmax(0,1fr);gap:13px;align-items:start;}
.customer-order-product-image,.customer-order-product-placeholder{width:88px;height:110px;object-fit:contain;display:grid;place-items:center;border-radius:10px;background:rgba(120,145,180,.1);}
.customer-order-product-placeholder{font-size:35px;color:var(--od-muted);}
.customer-order-product-rating,.customer-order-own-rating{display:flex;align-items:center;gap:5px;flex-wrap:wrap;font-size:12px;margin:8px 0;}
.customer-order-own-rating{border-top:1px solid var(--od-border);padding-top:9px;}
.customer-order-stars{display:inline-flex;direction:ltr;color:#f4c957;font-size:15px;}
.customer-order-total{margin:20px 0;border-block:1px solid var(--od-border);font-size:17px;}
.customer-order-total strong{font-size:24px;}
#customer-order-details-modal details{margin:12px 0;color:var(--od-muted);font-size:13px;}
#customer-order-details-modal summary{cursor:pointer;color:inherit;padding:7px 0;font-weight:700;}
#customer-order-details-modal p{overflow-wrap:anywhere;line-height:1.7;}
.order-details-button,.order-product-review-button,.order-experience-review-button{border:1px solid #778ee0;background:#4452a3;color:#fff;border-radius:10px;padding:10px 13px;min-height:42px;font:inherit;cursor:pointer;transform:none;}
.order-details-button:hover,.order-product-review-button:hover,.order-experience-review-button:hover{background:#5264bb;transform:none;}
.order-details-button:active,.order-product-review-button:active,.order-experience-review-button:active{transform:none;filter:brightness(.94);}
.order-product-review-button{width:100%;margin-top:10px;}
.customer-order-eligibility{font-size:13px;color:var(--od-muted);}
@media(max-width:480px){#customer-order-details-modal .customer-order-details-box{padding:20px 13px;}.customer-order-product-card{grid-template-columns:64px minmax(0,1fr);gap:10px;}.customer-order-product-image,.customer-order-product-placeholder{width:64px;height:90px;}.customer-order-total strong{font-size:20px;}}

/* R09-B: prominent actions and a separate purchase-experience section. */
#customer-order-details-modal .customer-order-detail-header{padding:16px;border:1px solid var(--od-border);border-radius:16px;background:var(--od-surface);}
#customer-order-details-modal .customer-order-section-heading{margin:24px 0 14px;}
#customer-order-details-modal .customer-order-section-heading h3{margin-bottom:5px;}
#customer-order-details-modal .customer-order-section-heading p{margin:0;color:var(--od-muted);font-size:13px;}
#customer-order-details-modal .customer-order-saved-preview{min-height:180px;}
#customer-order-details-modal .customer-order-saved-preview img{max-height:430px;}
#customer-order-details-modal .order-product-review-button{grid-column:1/-1;display:flex;align-items:center;justify-content:center;gap:10px;min-height:50px;margin:3px 0 0;padding:12px 15px;border:1px solid #a5a2ff;background:linear-gradient(120deg,#6551c5,#365fb5);color:#fff;font-size:16px;font-weight:800;line-height:1.5;transform:none;box-shadow:0 4px 12px rgba(55,55,140,.18);}
#customer-order-details-modal .order-product-review-button svg{width:23px;height:23px;flex:0 0 23px;fill:#ffdf76;stroke:#ffecaf;stroke-width:1.4;}
#customer-order-details-modal .order-product-review-button:hover:not(:disabled){filter:brightness(1.12);transform:none;}
#customer-order-details-modal .order-product-review-button:active:not(:disabled){filter:brightness(.94);box-shadow:inset 0 2px 6px rgba(0,0,0,.18);transform:none;}
#customer-order-details-modal .order-product-review-button:disabled{background:var(--od-surface);color:var(--od-muted);border-color:var(--od-border);box-shadow:none;cursor:not-allowed;}
#customer-order-details-modal .order-product-review-button:disabled svg{fill:none;stroke:currentColor;}
#customer-order-details-modal .customer-order-eligibility{grid-column:1/-1;margin:0;}
#customer-order-details-modal .customer-order-experience-section{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:15px;border:1px solid var(--od-border);border-radius:16px;background:var(--od-surface);padding:18px;margin-top:22px;}
#customer-order-details-modal .customer-order-experience-section h3{margin:0 0 7px;}
#customer-order-details-modal .customer-order-experience-section p{color:var(--od-muted);margin:0;font-size:13px;}
#customer-order-details-modal .customer-order-product-price{font-size:17px;}

.customer-order-experience-summary{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:12px 0;}
.customer-order-experience-summary small{flex-basis:100%;}

/* Product review identity controls: separate from numeric rating cooldown. */
.review-display-controls{min-width:0;margin:14px 0;padding:12px;border:1px solid var(--border-color,rgba(135,145,185,.35));border-radius:12px;}
.review-display-controls[hidden]{display:none;}
.review-display-controls legend{font-weight:700;font-size:14px;padding:0 5px;}
.review-display-controls label,.review-display-controls small{display:block;margin:6px 0;font-size:12px;}
.review-display-controls select,.review-display-controls input{box-sizing:border-box;width:100%;max-width:100%;min-height:42px;border-radius:9px;padding:8px;color:inherit;background:transparent;border:1px solid currentColor;font:inherit;}
.review-display-controls input[hidden],.review-display-controls label[hidden]{display:none;}
.review-display-controls select option{color:#172033;background:#fff;}

/* R10-C: controls are HTML overlays, never production-canvas pixels. */
.custom-sticker-resize-handle::before{background:linear-gradient(145deg,#a984ff,#6541cf)}
.custom-sticker-resize-handle:hover::before{background:linear-gradient(145deg,#bba0ff,#7b50ec)}
.custom-sticker-measurements{display:grid;gap:6px;max-width:100%;margin:8px auto;padding:10px 12px;border:1px solid var(--border-color,#7884a3);border-radius:12px;background:var(--card-bg,#141d30);color:var(--text-color,#eef2ff);font-size:12px;line-height:1.6;overflow-wrap:anywhere}
.custom-sticker-measurements[hidden]{display:none}
.custom-sticker-measurements label{display:flex;align-items:center;justify-content:center;gap:8px}
.custom-sticker-measurements input{width:95px;max-width:45%;padding:6px;border:1px solid var(--border-color,#7884a3);border-radius:7px;background:var(--input-bg,#fff);color:var(--text-color,#172039);direction:ltr}
.custom-sticker-measurements small{opacity:.8}

html[data-theme="light"] .custom-sticker-measurements,body[data-theme="light"] .custom-sticker-measurements{background:#f4f7ff;color:#23324d;border-color:#c8d4ed}

/* R10-C: catalog presets share the readout but never expose free width editing. */
.custom-sticker-measurements label[hidden]{display:none}
.product-card.hidden-by-scope{display:none!important}
