:root {
    font-family: system-ui, Arial, sans-serif;
    color: #243832;
    background: #f5f7f6;
    font-size: 15px;
    --primary: #256b57;
    --secondary: #c18845;
    --surface: #fff;
    --muted: #697c74;
    --line: #e2e9e5;
    --background: #f5f7f6;
    --hover: #f3f6f4;
    --soft: #eef3f0
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: var(--background);
    color: inherit
}

button,
input,
select,
textarea {
    font: inherit
}

button,
a,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent
}

button,
a {
    touch-action: manipulation
}

button {
    border: 0;
    border-radius: 10px;
    padding: 11px 18px;
    cursor: pointer;
    background: var(--primary);
    color: white;
    transition: opacity .15s, transform .15s
}

button:hover {
    opacity: .9
}

button:active {
    transform: translateY(1px)
}

button:disabled {
    opacity: .5;
    cursor: wait
}

.secondary {
    background: var(--surface);
    color: var(--primary);
    border: 1px solid var(--line)
}

.danger {
    background: #a23d42
}

.quiet {
    background: transparent;
    color: var(--muted);
    padding: 7px 10px
}

a {
    color: var(--primary);
    text-decoration: none
}

h1,
h2,
h3,
p {
    margin-top: 0
}

h1 {
    font-size: 26px;
    margin-bottom: 8px
}

h2 {
    font-size: 20px
}

h3 {
    font-size: 17px
}

p {
    line-height: 1.75
}

small,
.muted {
    color: var(--muted)
}

.loading {
    padding: 70px;
    text-align: center
}

.shop-boot-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 32px 24px calc(32px + env(safe-area-inset-bottom));
    text-align: center;
    background: #F6F4F1;
    color: #171717;
}

.shop-boot-spinner {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid #e8e4dd;
    border-top-color: var(--primary, #256b57);
    animation: shop-boot-spin .85s linear infinite;
}

.shop-boot-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -.2px;
}

.shop-boot-hint {
    margin: 0;
    max-width: 260px;
    font-size: 13px;
    line-height: 1.5;
    color: #8A837A;
}

@keyframes shop-boot-spin {
    to {
        transform: rotate(360deg);
    }
}

.login {
    max-width: 420px;
    margin: 10vh auto;
    background: var(--surface);
    padding: 36px;
    border: 1px solid var(--line);
    border-radius: 18px
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 750;
    font-size: 20px
}

.brand-mark {
    background: transparent;
    color: var(--primary);
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 22px
}

.brand small {
    display: block;
    font-weight: 400;
    font-size: 12px
}

.shell {
    display: grid;
    grid-template-columns: 230px 1fr;
    min-height: 100vh
}

.sidebar {
    padding: 26px 18px;
    border-left: 1px solid var(--line);
    background: var(--surface);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: auto
}

.sidebar .brand {
    margin-bottom: 32px
}

.nav {
    display: grid;
    gap: 5px
}

.nav button {
    color: var(--muted);
    background: transparent;
    text-align: right;
    border-radius: 9px;
    padding: 11px 13px
}

.nav button.active {
    color: var(--primary);
    background: #256b5710;
    font-weight: 650
}

.nav .sep {
    border-top: 1px solid var(--line);
    margin: 12px 0
}

.main {
    padding: 26px 36px;
    min-width: 0;
    max-width: 1600px
}

.topbar {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    align-items: center;
    margin-bottom: 28px
}

.breadcrumb {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 6px
}

.actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap
}

.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 20px
}

.panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px
}

.panel-heading h2 {
    margin: 0
}

.table-wrap {
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface)
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
    white-space: nowrap
}

th {
    background: var(--background);
    color: var(--muted);
    font-weight: 550;
    font-size: 12px
}

td,
th {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line)
}

tr:last-child td {
    border-bottom: 0
}

td button {
    padding: 7px 11px;
    font-size: 12px
}

.badge {
    display: inline-block;
    border-radius: 6px;
    padding: 4px 9px;
    font-size: 12px;
    background: #edf2ef;
    color: #607468
}

.badge.completed,
.badge.accepted,
.badge.verified,
.badge.active {
    background: #e9f4ee;
    color: #237452
}

.badge.pending,
.badge.review {
    background: #faf2df;
    color: #8b6728
}

.badge.rejected,
.badge.paused {
    background: #faebeb;
    color: #a04349
}

.empty {
    padding: 50px 20px;
    text-align: center;
    color: var(--muted)
}

.summary {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 22px
}

.summary a,
.summary .metric {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 18px 22px;
    flex: 1;
    min-width: 150px
}

.summary strong {
    font-size: 26px;
    display: block;
    color: var(--primary);
    margin-bottom: 4px
}

.form {
    display: grid;
    gap: 16px
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px
}

.field {
    display: grid;
    gap: 7px;
    font-size: 13px
}

.field input,
.field select,
.field textarea,
.search {
    background: var(--surface);
    color: inherit;
    width: 100%;
    border: 1px solid #d5e0d9;
    border-radius: 9px;
    padding: 11px 13px;
    outline: none
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.search:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px #256b5710
}

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

.field .code {
    direction: ltr;
    text-align: left;
    font: 13px monospace;
    min-height: 170px
}

.check {
    display: flex;
    gap: 8px;
    align-items: center
}

.check input {
    width: auto
}

.form-error {
    color: #a23d42;
    min-height: 20px;
    font-size: 13px
}

.hint {
    padding: 12px 15px;
    background: var(--background);
    border: 1px solid var(--line);
    border-radius: 9px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7
}

.tabs {
    display: flex;
    gap: 6px;
    overflow: auto;
    padding: 5px 0 18px
}

.tabs button {
    white-space: nowrap
}

.tabs .active {
    background: var(--primary);
    color: #fff
}

dialog {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    color: inherit;
    padding: 26px;
    width: min(640px, 92vw);
    max-height: 90vh;
    overflow: auto
}

dialog::backdrop {
    background: #152b244d
}

.dialog-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px
}

.dialog-heading h2 {
    margin: 0
}

pre {
    font-size: 12px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    direction: ltr;
    text-align: left;
    background: var(--background);
    padding: 15px;
    border-radius: 9px
}

#toast {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    background: var(--primary);
    color: #fff;
    padding: 12px 20px;
    border-radius: 14px;
    max-width: min(90vw, 360px);
    text-align: center;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.4;
    box-shadow: 0 8px 28px color-mix(in srgb, var(--primary) 32%, transparent);
    display: none
}

.shop-ui #toast {
    bottom: calc(92px + env(safe-area-inset-bottom, 0px));
}

#toast.show {
    display: block
}

dl {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px
}

dt {
    color: var(--muted)
}

dd {
    margin: 0;
    overflow-wrap: anywhere
}

.preview-img {
    max-width: 100%;
    max-height: 500px;
    border-radius: 10px
}

.store {
    max-width: 1120px;
    margin: auto;
    padding: 24px 24px 100px
}

.store-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px
}

.avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover
}

.wallet-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--primary);
    color: #fff;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 22px;
    gap: 15px
}

.wallet-bar small {
    color: #ffffffbd
}

.wallet-bar strong {
    display: block;
    font-size: 29px;
    margin-top: 5px
}

.wallet-bar button {
    color: var(--primary);
    background: #fff
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
    background: var(--surface);
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 10
}

.bottom-nav button {
    min-width: 65px;
    font-size: 12px;
    background: transparent;
    color: var(--muted);
    padding: 9px 14px
}

.bottom-nav button.active {
    color: var(--primary);
    background: #256b570e
}

.bottom-nav span {
    display: block;
    font-size: 20px;
    margin-bottom: 4px
}

.catalog-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px
}

.category-chips {
    display: flex;
    gap: 8px;
    overflow: auto;
    padding-bottom: 5px
}

.category-chips button {
    white-space: nowrap;
    border: 1px solid var(--line);
    color: var(--muted);
    background: var(--surface);
    padding: 9px 17px
}

.category-chips button.active {
    color: var(--primary);
    border-color: var(--primary)
}

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

.product-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: right
}

.product-cover {
    background: #eaf0ed;
    height: 135px;
    display: grid;
    place-items: center;
    color: var(--primary);
    font-size: 40px
}

.product-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.product-copy {
    padding: 17px;
    flex: 1
}

.product-copy h3 {
    margin-bottom: 8px
}

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

.product-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px
}

.product-foot strong {
    color: var(--primary)
}

.product-foot button {
    padding: 8px 13px
}

.store-search {
    margin-bottom: 18px
}

.banner {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    margin-bottom: 20px
}

.banner img {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: 10px
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 22px 0 16px
}

.section-title h2 {
    margin: 0
}

.dark {
    color: #e8efeb;
    --surface: #1c2823;
    --background: #131d18;
    --muted: #9eaea6;
    --line: #324338;
    --hover: #24312a;
    --soft: #1e2b24
}

.dark input,
.dark select,
.dark textarea {
    border-color: var(--line)
}

.dark .product-cover {
    background: #283b30
}

.money {
    direction: ltr;
    display: inline-block
}

.mobile-menu {
    display: none
}

.error-page {
    max-width: 550px;
    margin: 15vh auto;
    text-align: center;
    padding: 25px
}

.notice {
    padding: 14px;
    background: #faf2df;
    color: #8b6728;
    border-radius: 10px;
    margin-bottom: 18px
}

.fields-editor {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 14px
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 8px;
    margin-bottom: 10px
}

.field-row input,
.field-row select {
    min-width: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--surface);
    color: inherit
}

.drag-row {
    cursor: grab
}

.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px
}

@media(max-width:950px) {
    .main {
        padding: 22px
    }

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

    .shell {
        grid-template-columns: 190px 1fr
    }

    .sidebar {
        padding: 22px 12px
    }
}

@media(max-width:650px) {
    .shell {
        display: block
    }

    .sidebar {
        position: fixed;
        z-index: 20;
        width: 245px;
        right: 0;
        transform: translateX(100%);
        transition: transform .2s
    }

    .sidebar.open {
        transform: translateX(0);
        box-shadow: -10px 0 30px #0002
    }

    .mobile-menu {
        display: inline-block
    }

    .main {
        padding: 20px 15px
    }

    .topbar {
        align-items: flex-start;
        margin-bottom: 22px
    }

    .topbar h1 {
        font-size: 22px
    }

    .topbar .actions {
        justify-content: flex-end
    }

    .form-grid,
    .two-columns {
        grid-template-columns: 1fr
    }

    .login {
        margin: 8vh 18px;
        padding: 27px
    }

    .store {
        padding: 18px 15px 100px
    }

    .wallet-bar {
        padding: 19px
    }

    .wallet-bar strong {
        font-size: 25px
    }

    .product-grid {
        gap: 11px
    }

    .product-cover {
        height: 100px
    }

    .product-copy {
        padding: 12px
    }

    .product-copy h3 {
        font-size: 14px
    }

    .product-foot {
        flex-wrap: wrap
    }

    .product-foot button {
        font-size: 12px;
        padding: 7px 12px
    }

    .bottom-nav {
        gap: 0
    }

    .bottom-nav button {
        min-width: 0;
        flex: 1;
        max-width: 110px;
        padding: 7px 8px;
        font-size: 11px
    }

    td,
    th {
        padding: 12px
    }

    .summary {
        gap: 10px
    }

    .summary a,
    .summary .metric {
        padding: 15px;
        min-width: 100px
    }

    .summary strong {
        font-size: 22px
    }

    .panel {
        padding: 17px
    }

    .field-row {
        grid-template-columns: 1fr 1fr
    }

    .brand {
        font-size: 17px
    }
}

@media(prefers-reduced-motion:reduce) {
    * {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto !important
    }
}

.wallet-bar strong {
    white-space: nowrap;
    font-size: clamp(18px, 5vw, 29px)
}

.wallet-bar button {
    white-space: nowrap;
    flex-shrink: 0
}

.wallet-bar>div {
    min-width: 0
}

.wallet-bar .money {
    font-variant-numeric: tabular-nums
}

@media(max-width:650px) {
    .wallet-bar {
        gap: 10px;
        padding: 18px
    }

    .wallet-bar button {
        padding: 11px 13px
    }

    .wallet-bar strong {
        font-size: 20px
    }

    .wallet-bar small {
        font-size: 11px
    }
}

.store table,
.product-card {
    text-align: start
}

.dark .badge {
    background: #33443b;
    color: #d1ded6
}


@font-face {
    font-family: 'Admin Kufi';
    src: url('/admin-arabic-regular.ttf') format('truetype');
    font-style: normal;
    font-weight: 400 500;
    font-display: swap;
}

@font-face {
    font-family: 'Admin Kufi';
    src: url('/admin-arabic-bold.ttf') format('truetype');
    font-style: normal;
    font-weight: 600 900;
    font-display: swap;
}

.admin-ui {
    font-family: 'Admin Kufi', system-ui, sans-serif;
    color-scheme: light;
    font-size: 13px;
    line-height: 1.9;
    color: #3C2359;
    --primary: #7902FB;
    --primary-hover: #6402d4;
    --surface: #fff;
    --background: #FBF7FF;
    --hover: #F7F2FF;
    --soft: #F3E9FF;
    --muted: #826E98;
    --line: #ECE7F0;
    --navy: #7902FB;
    --soft-blue: var(--soft);
    accent-color: var(--primary);
}

.admin-ui .ui-icon { width: 20px; height: 20px; flex: 0 0 auto; vertical-align: middle; }
.admin-ui button { border-radius: 11px; min-height: 42px; padding: 10px 17px; font-size: 12px; font-weight: 600; transition: background .18s, border-color .18s, box-shadow .18s; }
.admin-ui button:hover { opacity: 1; background: var(--primary-hover); box-shadow: 0 4px 12px #7902FB12; }
.admin-ui button:disabled { opacity: .5; }
.admin-ui .secondary { color: var(--navy); background: var(--surface); border-color: #E2D5F1; }
.admin-ui .secondary:hover { background: var(--soft-blue); border-color: #CDB6E6; }
.admin-ui .quiet:hover { color: var(--navy); background: var(--soft-blue); box-shadow: none; }
.admin-ui .danger { background: #a73845; }
.admin-ui .danger:hover { background: #902a36; }
.admin-ui :is(button, a, summary):focus-visible { outline: 3px solid #AD8DD1; outline-offset: 3px; }
.admin-ui .shell { grid-template-columns: 254px minmax(0, 1fr); }

.admin-ui .sidebar {
    display: flex;
    flex-direction: column;
    padding: 28px 17px 18px;
    background: var(--surface);
    color: var(--navy);
    border-left: 1px solid var(--line);
    scrollbar-width: thin;
    scrollbar-color: #DCCEEB transparent;
}

.admin-ui .sidebar .brand { padding: 0 11px 26px; margin-bottom: 18px; border-bottom: 1px solid var(--line); font-size: 18px; color: var(--navy); gap: 12px; }
.admin-ui .brand-mark { background: transparent; color: var(--navy); width: 48px; height: 48px; border-radius: 0; font: 700 22px system-ui; box-shadow: none; object-fit: contain; display: block; flex-shrink: 0; }
.admin-ui img.brand-mark { font: inherit; }
.admin-ui .brand small { font-size: 10px; color: var(--muted); margin-top: 3px; }
.admin-ui .nav { gap: 6px; }
.admin-ui .nav button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 11px 13px; font-size: 12px; color: #71578F; min-height: 46px; font-weight: 400; border: 1px solid transparent; }
.admin-ui .nav button .ui-icon { color: #8469A6; width: 20px; height: 20px; }
.admin-ui .nav button:hover { background: var(--hover); color: var(--navy); box-shadow: none; }
.admin-ui .nav button.active { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 600; box-shadow: 0 5px 13px #7902FB15; }
.admin-ui .nav button.active .ui-icon { color: #fff; }
.admin-ui .nav-section-label, .admin-ui .nav-group summary { font-size: 10px; color: #9681AD; padding: 11px 13px; font-weight: 600; }
.admin-ui .nav-group { margin-bottom: 7px; }
.admin-ui .nav-group summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; }
.admin-ui .nav-group summary:hover { color: var(--navy); }
.admin-ui summary::-webkit-details-marker { display: none; }
.admin-ui .nav-chevron { font: 18px system-ui; transition: transform .18s; }
.admin-ui details[open] > summary .nav-chevron { transform: rotate(180deg); }
.admin-ui .nav .platform-return { margin-bottom: 12px; color: var(--navy); background: var(--hover); border-color: #EDE4F8; font-size: 11px; }
.admin-ui .sidebar-account { margin-top: auto; padding-top: 28px; }
.admin-ui .sidebar-account > details { border-top: 1px solid var(--line); padding-top: 16px; }
.admin-ui .sidebar-account summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 11px; padding: 3px 8px; }
.admin-ui .sidebar-account strong { display: block; color: var(--navy); font: 600 13px system-ui; }
.admin-ui .sidebar-account small { display: block; color: var(--muted); font-size: 9px; margin-top: 4px; }
.admin-ui .sidebar-account .nav-chevron { margin-inline-start: auto; }
.admin-ui .account-avatar { display: grid; place-items: center; width: 38px; height: 38px; color: var(--navy); background: transparent; font: 600 15px system-ui; }
.admin-ui .account-menu { display: grid; gap: 4px; padding-top: 12px; }
.admin-ui .account-menu button { text-align: start; background: var(--surface); color: #71578F; font-size: 10px; }
.admin-ui .account-menu button:hover { color: var(--navy); background: var(--soft-blue); box-shadow: none; }

.admin-ui .main { width: 100%; max-width: 1550px; margin-inline: auto; padding: 28px 38px 50px; }
.admin-ui .topbar { min-height: 82px; padding-bottom: 23px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.admin-ui .page-title { display: flex; align-items: center; gap: 15px; }
.admin-ui .page-glyph { width: 23px; height: 23px; color: var(--navy); margin-inline-end: 2px; }
.admin-ui .breadcrumb { display: flex; gap: 8px; font-size: 9px; color: #9785AC; margin-bottom: 4px; }
.admin-ui .breadcrumb span { color: #C8B8D9; }
.admin-ui h1 { color: var(--navy); font-size: 21px; font-weight: 700; margin: 0; letter-spacing: -.4px; }
.admin-ui h2 { color: var(--navy); font-size: 14px; font-weight: 600; }
.admin-ui h3 { color: var(--navy); font-size: 13px; }
.admin-ui .panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; margin-bottom: 22px; box-shadow: 0 3px 16px #7902FB03; }
.admin-ui .panel-heading { margin-bottom: 12px; }
.admin-ui .panel .brand { font-size: 16px; color: var(--navy); }
.admin-ui .panel .brand small { font-family: system-ui; }
.admin-ui .store-overview { border-inline-start: 1px solid var(--line); }
.admin-ui .summary { gap: 17px; margin-bottom: 24px; }
.admin-ui .summary :is(a, .metric) { position: relative; color: #82689F; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 23px; font-size: 11px; box-shadow: 0 3px 16px #7902FB03; min-width: 160px; }
.admin-ui .summary a:hover { border-color: #CFB9E6; box-shadow: 0 6px 18px #7902FB08; }
.admin-ui .summary strong { color: var(--navy); font: 600 31px system-ui; margin: 12px 0 5px; letter-spacing: -.5px; }
.admin-ui .summary .money { font-size: 21px; }
.admin-ui .summary .metric-glyph { position: absolute; inset-inline-end: 32px; top: 32px; color: #5D3491; width: 20px; height: 20px; }
.admin-ui .platform-summary small { display: block; padding-inline-end: 48px; font-size: 11px; }
.admin-ui .table-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.admin-ui .record-count { background: var(--hover); border: 1px solid #ECE1F7; color: #624589; font-size: 10px; padding: 4px 12px; border-radius: 7px; }
.admin-ui .table-search { width: 260px; display: flex; align-items: center; gap: 10px; padding: 9px 13px; border-radius: 11px; border: 1px solid #E7DCF3; background: var(--surface); color: #9074B2; }
.admin-ui .table-search:focus-within { border-color: #9B74C8; box-shadow: 0 0 0 3px #7902FB08; }
.admin-ui .table-search .ui-icon { width: 17px; height: 17px; }
.admin-ui .table-search input { width: 100%; min-width: 0; border: 0; outline: none; background: transparent; color: var(--navy); font-size: 10px; }
.admin-ui .table-search input::placeholder { color: #9D89B3; }
.admin-ui .table-wrap { border-color: var(--line); border-radius: 14px; scrollbar-width: thin; scrollbar-color: #D4C2E7 white; }
.admin-ui th { background: var(--hover); color: #644689; font-size: 10px; font-weight: 600; }
.admin-ui :is(th, td) { padding: 16px 19px; border-color: #F1E9F8; }
.admin-ui td { font-size: 12px; }
.admin-ui td strong { color: var(--navy); font-weight: 600; }
.admin-ui td small { font-size: 10px; }
.admin-ui tbody tr:hover { background: var(--hover); }
.admin-ui td button { min-height: 32px; padding: 5px 11px; font-size: 10px; border-color: #E8DCF5; background: var(--surface); border-radius: 8px; }
.admin-ui .money { white-space: nowrap; font-family: system-ui, sans-serif; font-variant-numeric: tabular-nums; font-weight: 500; }
.admin-ui .badge { border-radius: 7px; font-size: 9px; padding: 3px 9px; border: 1px solid #EAE0F4; color: #725298; background: var(--hover); }
.admin-ui .badge:is(.active, .verified, .completed, .accepted) { color: var(--navy); background: var(--soft); border-color: #E5D6F6; }
.admin-ui .badge:is(.pending, .review) { background: var(--hover); color: #775D92; border-style: dashed; }
.admin-ui .badge:is(.paused, .rejected) { color: #a13d48; background: #fff4f5; border-color: #f4dce0; }
.admin-ui .empty { display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 55px 20px; color: #937CAB; }
.admin-ui .empty-glyph { width: 27px; height: 27px; margin: 15px 0 24px; color: #6B419D; }
.admin-ui .empty strong { color: var(--navy); font-size: 13px; font-weight: 600; }
.admin-ui .empty > span:last-child { font-size: 10px; }
.admin-ui .filter-empty { color: var(--muted); padding: 20px; text-align: center; }
.admin-ui .field { font-size: 11px; color: #614684; gap: 8px; }
.admin-ui .field :is(input, select, textarea) { font-size: 12px; color: #3c2359; background: var(--hover); border: 0; border-radius: 10px; padding: 11px 13px; min-height: 45px; }
.admin-ui .field :is(input, select, textarea):focus { background: var(--surface); border: 0; box-shadow: 0 0 0 3px #7902FB22; }
.admin-ui .field .code { font-family: monospace; font-size: 13px; }
.admin-ui .form { gap: 18px; }
.admin-ui .form-error:empty { display: none; }
.admin-ui .form > .actions { padding-top: 9px; }
.admin-ui .check { font-size: 11px; color: #6D528D; }
.admin-ui .check input { width: 16px; height: 16px; }
.admin-ui .hint { font-size: 11px; background: var(--soft-blue); border: 0; color: #715296; border-radius: 11px; line-height: 1.45; padding: 8px 10px; }
.admin-ui .hint :is(p, h3) { margin: 0; }
.admin-ui .notice { background: var(--hover); color: var(--navy); border: 0; border-radius: 12px; }
.admin-ui dialog { padding: 27px; background: var(--surface); color: #3C2359; border: 1px solid #EDE4F6; border-radius: 18px; box-shadow: 0 24px 80px #7902FB30; }
.admin-ui dialog::backdrop { background: #7902FB55; backdrop-filter: blur(4px); }
.admin-ui .dialog-heading { border-bottom: 1px solid var(--line); padding-bottom: 17px; margin-bottom: 21px; }
.admin-ui .dialog-heading .quiet { min-height: 32px; padding: 4px 10px; }
.admin-ui .fields-editor { background: var(--hover); border-color: #E8DCF4; border-radius: 12px; }
.admin-ui .field-row :is(input, select) { border: 0; border-radius: 8px; font-size: 11px; }
.admin-ui .optional-fields > summary { color: #71578F; cursor: pointer; font-size: 11px; }
.admin-ui .optional-fields[open] > .form { margin-top: 15px; }
.admin-ui .tabs button { background: var(--surface); color: #705494; border: 1px solid var(--line); }
.admin-ui .tabs button.active { background: var(--primary); color: white; border-color: var(--primary); }
.admin-ui .login { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 36px; width: calc(100% - 36px); max-width: 440px; margin: 12vh auto; box-shadow: 0 15px 55px #7902FB09; }
.admin-ui .login .brand { color: var(--navy); font-size: 21px; }
.admin-ui .login-heading { margin: 30px 0 25px; }
.admin-ui .login-heading p { font-size: 11px; margin: 10px 0 0; }
.admin-ui .login .actions button { width: 100%; }
.sidebar-scrim { display: none; }

@media (max-width: 1050px) {
    .admin-ui .shell { grid-template-columns: 222px minmax(0, 1fr); }
    .admin-ui .main { padding: 25px 24px 40px; }
    .admin-ui .sidebar { padding-inline: 12px; }
}

@media (max-width: 760px) {
    .admin-ui .shell { display: block; --drawer-width: min(280px, calc(100vw - 48px)); }
    .admin-ui .sidebar { position: fixed; inset: 0 0 0 auto; z-index: 30; height: 100dvh; width: var(--drawer-width); visibility: hidden; transform: translateX(100%); transition: transform .2s ease; }
    .admin-ui .sidebar.open { visibility: visible; transform: translateX(0); box-shadow: -10px 0 30px #00000018; }
    .admin-ui .sidebar-scrim.visible { display: block; position: fixed; inset: 0 auto 0 0; width: calc(100% - var(--drawer-width)); z-index: 25; border-radius: 0; background: #00000045; }
    .admin-ui .main { padding: 21px 16px 35px; }
    .admin-ui .mobile-menu { display: grid; place-items: center; width: 40px; min-height: 40px; padding: 8px; }
    .admin-ui .page-glyph { display: none; }
    .admin-ui .topbar { min-height: 70px; flex-wrap: wrap; gap: 16px; padding-bottom: 18px; margin-bottom: 22px; }
    .admin-ui .page-title { gap: 11px; }
    .admin-ui h1 { font-size: 18px; }
    .admin-ui .breadcrumb { font-size: 8px; }
    .admin-ui #page-actions { margin-inline-start: auto; }
    .admin-ui #page-actions button { font-size: 10px; min-height: 38px; }
    .admin-ui .summary { gap: 10px; }
    .admin-ui .summary :is(a, .metric) { min-width: 95px; padding: 14px 11px; font-size: 9px; }
    .admin-ui .summary .metric-glyph { position: static; display: block; width: 17px; height: 17px; margin: 6px 6px 17px; }
    .admin-ui .platform-summary small { padding-inline-end: 0; font-size: 9px; }
    .admin-ui .summary strong { font-size: 25px; margin-top: 6px; }
    .admin-ui .summary .money { font-size: 18px; }
    .admin-ui .table-search { width: min(225px, 72%); }
    .admin-ui :is(th, td) { padding: 14px; }
    .admin-ui .panel { padding: 20px 17px; }
    .admin-ui .form-grid, .admin-ui .two-columns { grid-template-columns: 1fr; }
    .admin-ui .field-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .admin-ui .fields-editor h3 { margin: 0; }
    .admin-ui dialog { width: calc(100vw - 24px); padding: 23px 18px; max-height: calc(100dvh - 32px); }
    .admin-ui .login { margin-top: 9vh; padding: 28px; }
}

@media (prefers-reduced-motion: reduce) {
    .admin-ui *, .admin-ui *::before, .admin-ui *::after { transition: none !important; }
}

.admin-ui .form-intro { color: var(--muted); font-size: 11px; margin: 0 0 3px; }
.admin-ui .form-section { border: 1px solid var(--line); border-radius: 13px; margin: 0; padding: 19px 20px 20px; min-width: 0; background: var(--surface); }
.admin-ui .form-section legend { color: var(--navy); padding: 0 8px; font-size: 12px; font-weight: 600; }
.admin-ui .section-fields { display: grid; gap: 16px; }
.admin-ui .section-note { color: var(--muted); font-size: 10px; margin: 0 0 16px; }
.admin-ui .form-checks { display: flex; flex-wrap: wrap; gap: 12px 24px; padding: 4px 0; }
.admin-ui .form-disclosure { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 0 19px; }
.admin-ui .form-disclosure > summary { padding: 15px 0; color: #56367F; font-size: 11px; font-weight: 600; cursor: pointer; }
.admin-ui .form-disclosure[open] { padding-bottom: 18px; }
.admin-ui .form-disclosure > .data-editor + .data-editor { margin-top: 21px; border-top: 1px solid var(--line); padding-top: 19px; }
.admin-ui .editor-subheading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 13px; }
.admin-ui .editor-subheading strong { font-size: 11px; font-weight: 600; color: #5A3B83; }
.admin-ui .editor-subheading small { color: var(--muted); font-size: 9px; }
.admin-ui .editor-items { display: grid; gap: 13px; }
.admin-ui .editor-items:empty::before { content: 'لم تُضف عناصر بعد'; color: #9983B0; font-size: 10px; padding: 9px 0; }
.admin-ui .editor-row, .admin-ui .request-field-card { position: relative; padding: 17px; border: 1px solid var(--line); border-radius: 11px; background: var(--hover); }
.admin-ui .editor-row > .editor-object { padding-inline-end: 24px; }
.admin-ui .editor-remove { position: absolute; top: 8px; inset-inline-end: 6px; min-height: 28px; padding: 4px 9px; }
.admin-ui .editor-add { margin-top: 13px; font-size: 10px; }
.admin-ui .editor-map-row { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 14px; padding-inline-end: 39px; }
.admin-ui .editor-map-row .editor-object > .form-grid { grid-template-columns: 1fr; }
.admin-ui .editor-leaf { min-width: 0; }
.admin-ui .field-help { color: #9680AD; font-size: 9px; display: block; margin-top: 5px; line-height: 1.9; }
.admin-ui .editor-object .editor-collection { grid-column: 1 / -1; }
.admin-ui [data-object-key]:has(> .editor-collection) { grid-column: 1 / -1; }
.admin-ui .disabled-setting { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 12px 15px; border: 1px dashed #DECDEF; border-radius: 10px; font-size: 11px; color: var(--muted); }
.admin-ui .editor-empty { font-size: 10px; color: var(--muted); margin: 0; }
.admin-ui #field-list { display: grid; gap: 12px; }
.admin-ui .request-field-card { display: grid; gap: 14px; }
.admin-ui .request-field-card .editor-subheading { margin: 0; }
.admin-ui :is(.request-field-card, .editor-row, .fields-editor) :is(input, select, textarea) {
    background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--line);
}
.admin-ui :is(.request-field-card, .editor-row, .fields-editor) :is(input, select, textarea):focus {
    background: var(--surface);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent), inset 0 0 0 1px color-mix(in srgb, var(--primary) 35%, var(--line));
}
.admin-ui.theme-dark :is(.request-field-card, .editor-row, .fields-editor) :is(input, select, textarea) {
    color: #f6f1ff;
}
.admin-ui .permission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.admin-ui .permission-grid .check { padding: 9px 11px; border: 1px solid #EEE6F7; border-radius: 8px; background: var(--hover); font-size: 10px; }
.admin-ui dialog.editor-dialog { width: min(820px, calc(100vw - 36px)); padding: 0; }
.admin-ui .editor-dialog .dialog-heading { position: sticky; top: 0; z-index: 5; margin: 0; padding: 19px 25px; background: var(--surface); border-bottom: 1px solid var(--line); }
.admin-ui .editor-dialog form { padding: 22px 25px 0; }
.admin-ui .editor-dialog .form-footer { position: sticky; bottom: 0; z-index: 4; padding: 17px 25px; margin: 6px -25px 0; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -5px 15px #7902FB03; }
.admin-ui .editor-dialog .form-error:not(:empty) { padding: 10px 14px; border-radius: 9px; background: #fff4f5; }

@media (max-width: 760px) {
    .admin-ui dialog.editor-dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); }
    .admin-ui .editor-dialog .dialog-heading { padding: 16px; }
    .admin-ui .editor-dialog form { padding: 18px 14px 0; }
    .admin-ui .editor-dialog .form-footer { padding: 14px; margin-inline: -14px; }
    .admin-ui .form-section { padding: 15px 13px 17px; }
    .admin-ui .form-disclosure { padding-inline: 13px; }
    .admin-ui .editor-row { padding: 14px; }
    .admin-ui .editor-map-row { grid-template-columns: 1fr; padding-inline-end: 32px; }
    .admin-ui .editor-subheading { align-items: flex-start; flex-wrap: wrap; }
    .admin-ui .editor-object .form-grid { grid-template-columns: 1fr; }
    .admin-ui .permission-grid { grid-template-columns: 1fr; }
    .admin-ui .form-footer { flex-wrap: nowrap; }
    .admin-ui .form-footer button { flex: 1; }
}

.ui-icon {
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
}

.product-glyph { display: block; width: 40px; height: 40px; color: var(--primary); margin: 47.5px auto; flex-shrink: 0; }
.admin-ui .nav-group { display: grid; gap: 4px; margin: 3px 0 14px; }
.admin-ui .nav-section-label { font-size: 9px; padding: 9px 13px 5px; letter-spacing: 0; color: #9383A3; }
.admin-ui .sidebar { padding-top: 23px; }
.admin-ui .sidebar .brand { margin-bottom: 10px; padding-bottom: 21px; }
.admin-ui .nav button { min-height: 41px; padding-block: 9px; font-size: 11px; }
.admin-ui .sidebar .nav { gap: 0; }
.admin-ui .page-count { font: 400 14px system-ui; color: #998BA7; margin-inline-start: 12px; }
.admin-ui .page-count:empty { display: none; }
.admin-ui .topbar { margin-bottom: 22px; padding-bottom: 18px; border-bottom-color: var(--line); }
.admin-ui .table-states { display: flex; gap: 18px; overflow-x: auto; scrollbar-width: thin; border-bottom: 1px solid var(--line); padding-inline: 2px; margin-bottom: 20px; }
.admin-ui .table-states button { flex-shrink: 0; display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 400; border-radius: 0; border-bottom: 2px solid transparent; background: transparent; color: #746186; padding: 10px 3px 13px; min-height: 45px; box-shadow: none; }
.admin-ui .table-states button:hover { color: var(--navy); background: transparent; box-shadow: none; }
.admin-ui .table-states button.selected { color: var(--navy); border-bottom-color: var(--navy); font-weight: 600; }
.admin-ui .table-states button span { font: 500 11px system-ui; color: #79618F; background: var(--soft); border-radius: 7px; padding: 1px 6px; }
.admin-ui .table-states button.selected span { background: var(--primary); color: white; }
.admin-ui .table-toolbar { gap: 18px; margin-bottom: 16px; }
.admin-ui .table-search { width: min(390px, 52%); border-color: #E7E1EC; border-radius: 9px; padding: 10px 13px; }
.admin-ui .table-search input { font-size: 11px; }
.admin-ui .table-controls { display: flex; align-items: center; gap: 9px; }
.admin-ui .table-sort, .admin-ui .table-columns > summary { display: flex; align-items: center; gap: 8px; color: #463360; background: var(--surface); border: 1px solid #E7E1EC; border-radius: 8px; padding: 8px 12px; min-height: 39px; font-size: 11px; cursor: pointer; }
.admin-ui .table-sort .ui-icon, .admin-ui .table-columns .ui-icon { width: 17px; height: 17px; }
.admin-ui .table-sort select { border: 0; padding: 0; background: transparent; color: inherit; outline: none; font-size: 11px; max-width: 125px; }
.admin-ui .table-sort:focus-within { outline: 2px solid #B69ED1; outline-offset: 2px; }
.admin-ui .table-columns { position: relative; }
.admin-ui .table-columns > summary { list-style: none; }
.admin-ui .column-menu { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 15; display: grid; gap: 5px; padding: 11px; width: 205px; max-height: 320px; overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 25px #3C235912; }
.admin-ui .column-menu .check { padding: 6px 7px; font-size: 10px; }
.admin-ui .table-result { display: flex; align-items: center; gap: 20px; margin-top: 13px; }
.admin-ui .table-result .record-count { background: transparent; padding: 0; border: 0; color: #998BA7; font-size: 9px; }
.admin-ui .filter-empty { margin: 0; padding: 0; font-size: 11px; }
.admin-ui th { background: var(--surface); color: #79668B; }
.admin-ui :is(th, td) { border-bottom-color: #F0EDF4; }
.admin-ui .table-empty { border-top: 1px solid var(--line); }
.admin-ui .mobile-menu, .admin-ui .mobile-menu:hover, .admin-ui .dialog-heading .quiet, .admin-ui .dialog-heading .quiet:hover, .admin-ui .editor-remove, .admin-ui .editor-remove:hover { background: transparent; border: 0; box-shadow: none; }

@media(max-width:760px) {
    .admin-ui .table-toolbar { align-items: stretch; flex-wrap: wrap; gap: 11px; }
    .admin-ui .table-search { width: 100%; }
    .admin-ui .table-controls { margin-inline-start: auto; }
    .admin-ui .table-states { gap: 17px; margin-bottom: 16px; }
    .admin-ui .table-states button { font-size: 10px; }
    .admin-ui .page-count { font-size: 12px; }
}

@media(max-width:650px) {
    .product-glyph { margin-block: 30px; }
}

button, button:hover, button:active, .admin-ui button, .admin-ui button:hover, .admin-ui button:active {
    transform: none;
    box-shadow: none;
    transition: none;
    animation: none;
    filter: none;
}
.admin-ui .summary a:hover { border-color: var(--line); box-shadow: none; }
.editor-page { max-width: 1120px; margin-inline: auto; }
.editor-page-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 22px; }
.editor-page-heading h2 { margin: 5px 0 0; font-size: 21px; }
.editor-page-heading p { font-size: 11px; margin: 0; }
.editor-page-heading h2:focus { outline: none; }
.admin-ui .editor-page-content { padding: 26px; }
.editor-page .form-footer { padding-top: 20px; border-top: 1px solid var(--line); justify-content: flex-start; }
.standalone-editor { max-width: 720px; margin: 8vh auto; padding: 24px; }
.settings-intro { margin-bottom: 24px; }
.settings-intro h2 { font-size: 19px; margin-bottom: 5px; }
.settings-intro p { font-size: 12px; }
.settings-layout { display: grid; grid-template-columns: 195px minmax(0, 1fr); gap: 24px; align-items: start; }
.settings-nav { display: grid; gap: 5px; position: sticky; top: 22px; }
.admin-ui .settings-nav button { text-align: start; color: #756386; background: transparent; padding: 12px 16px; border: 1px solid transparent; }
.admin-ui .settings-nav button.selected { color: var(--navy); background: var(--surface); border-color: var(--line); }
.settings-content { padding: 25px; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; min-width: 0; }
.settings-panel > h3 { font-size: 16px; margin: 0 0 22px; }
.settings-panel[hidden] { display: none; }
.settings-content .form-section { margin-bottom: 24px; }
.notification-setting { border-bottom: 1px solid var(--line); padding: 12px 0; }
.notification-setting:last-child { border-bottom: 0; }
.notification-setting .field { margin-top: 14px; }
.record-details { display: grid; grid-template-columns: minmax(110px, 180px) minmax(0,1fr); gap: 12px 24px; font-size: 12px; }
.record-details dt { color: #7B6C8B; }
.record-details dd { margin: 0; overflow-wrap: anywhere; }
.detail-block { border-bottom: 1px solid var(--line); padding: 12px 0; }
select { appearance: none; background-image: var(--select-chevron, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23697c74' stroke-width='1.7'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")); background-repeat: no-repeat; background-position: left 12px center; padding-inline-end: 36px; }
@supports (appearance: base-select) {
    select, select::picker(select) { appearance: base-select; }
    select { background-image: none; padding-inline-end: 12px; align-items: center; }
    select::picker-icon { color: var(--primary); transform: none; transition: none; font-size: 12px; }
    select::picker(select) { border: 1px solid var(--line); border-radius: 10px; padding: 5px; background: var(--surface); color: inherit; box-shadow: 0 10px 28px color-mix(in srgb, var(--primary) 10%, transparent); font-family: inherit; max-height: 280px; overflow-y: auto; }
    select option { padding: 10px 12px; border-radius: 6px; font-family: inherit; font-size: 12px; gap: 9px; }
    select option:hover, select option:focus { background: var(--hover); outline: none; }
    select option:checked { color: var(--primary); background: var(--soft); }
    select option::checkmark { color: var(--primary); }
}
.admin-ui .column-menu { border-color: var(--line); box-shadow: 0 8px 25px color-mix(in srgb, var(--primary) 12%, transparent); }
@media (max-width: 760px) {
    .settings-layout { grid-template-columns: 1fr; gap: 16px; }
    .settings-nav { position: static; display: flex; overflow-x: auto; gap: 4px; padding-bottom: 5px; }
    .settings-nav button { flex-shrink: 0; }
    .settings-content, .admin-ui .editor-page-content { padding: 17px; }
    .editor-page-heading { align-items: flex-start; }
    .editor-page-heading h2 { font-size: 17px; }
}
.image-field { display: grid; gap: 12px; min-width: 0; }
.image-field-label { font-size: 11px; font-weight: 500; color: #66527D; }
.image-preview { display: flex; align-items: center; justify-content: center; min-height: 95px; padding: 12px; background: var(--surface); border: 1px dashed #E2DCE9; border-radius: 10px; }
.image-preview img { max-width: 100%; height: 100px; object-fit: contain; border-radius: 6px; }
.image-controls { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.image-upload-control { display: inline-flex; align-items: center; gap: 8px; position: relative; overflow: hidden; cursor: pointer; min-height: 44px; padding: 10px 16px; border: 1px dashed #D8CFE4; border-radius: 12px; background: color-mix(in srgb, var(--primary) 5%, var(--surface)); color: var(--primary); font-size: 12px; font-weight: 600; transition: border-color .15s, background .15s, box-shadow .15s; }
.image-upload-leading { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; background: color-mix(in srgb, var(--primary) 12%, #fff); }
.image-upload-leading .ui-icon { width: 16px; height: 16px; }
.image-upload-control input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.image-upload-control:hover { border-color: color-mix(in srgb, var(--primary) 45%, #ECE7F0); background: color-mix(in srgb, var(--primary) 9%, var(--surface)); }
.image-upload-control:focus-within { outline: 2px solid var(--primary); outline-offset: 2px; box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 14%, transparent); }
.image-status { color: #88779A; font-size: 10px; }
.image-picker { border-top: 1px solid #ECE7F0; padding-top: 18px; }
.image-picker[hidden] { display: none; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(170px,1fr)); gap: 16px; }
.media-card { padding: 12px; border: 1px solid #ECE7F0; border-radius: 12px; display: grid; gap: 8px; min-width: 0; }
.media-card img { width: 100%; height: 125px; object-fit: contain; background: var(--surface); border-radius: 6px; }
.media-card strong { font-size: 11px; overflow-wrap: anywhere; }
.media-card small { font-size: 10px; color: #88779A; }
.central-providers { margin-top: 24px; }
.admin-ui [data-object-key]:has(.image-field) { grid-column: 1 / -1; }
@media (max-width:600px) { .media-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
.media-table-name { display: flex; align-items: center; gap: 14px; min-width: 180px; }
.media-table-name img { width: 64px; height: 45px; object-fit: contain; border-radius: 5px; }
.media-table-name strong { overflow-wrap: anywhere; }

/* Store overview uses the shared panel, summary, button and table styles. */
.dashboard-view { display: grid; gap: 22px; }
.admin-ui .dashboard-view .panel, .admin-ui .dashboard-view .summary { margin-bottom: 0; }
.dashboard-view h2, .dashboard-view h3, .dashboard-view p { margin: 0; }
.dash-store-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: 10px; }
.admin-ui .dash-refresh { display: inline-flex; align-items: center; gap: 8px; }
.dash-period-row, .dash-section-title { display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.dash-period-row p, .dash-section-title > span { color: var(--muted); font-size: 10px; }
.dash-period-row p { margin-top: 4px; }
.dash-segmented { display: flex; gap: 8px; flex-shrink: 0; }
.admin-ui .dash-segmented button { min-height: 34px; padding: 6px 12px; font-size: 10px; }
.admin-ui .dash-segmented button.selected { color: white; background: var(--primary); border-color: var(--primary); }
.admin-ui .dash-segmented.compact button { color: var(--muted); background: transparent; border-radius: 0; border: 0; border-bottom: 2px solid transparent; padding: 6px 2px; margin-inline: 4px; min-height: 30px; font-weight: 400; box-shadow: none; }
.admin-ui .dash-segmented.compact button.selected { color: var(--navy); border-bottom-color: var(--navy); font-weight: 600; }
.admin-ui .dash-kpis { display: grid; grid-template-columns: repeat(var(--kpi-columns),minmax(0,1fr)); }
.admin-ui .dash-kpis .metric { min-width: 0; }
.dash-money { display: inline-block; white-space: nowrap; font-family: system-ui; font-variant-numeric: tabular-nums; }
.dash-money small { font-size: 10px; color: var(--muted); font-weight: 400; }
.admin-ui .dash-kpis strong .dash-money { font-size: 26px; }
.admin-ui .dash-kpis strong .dash-money small { display: inline; padding: 0; font-size: 10px; }
.dash-kpi-comparison { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; color: var(--muted); font-size: 9px; min-height: 24px; }
.dash-kpi-comparison small { padding: 0 !important; font-size: 9px !important; }
.dash-trend { font-size: 10px; }
.dash-trend.up { color: #715296; }
.dash-trend.down { color: #a13d48; }
.dash-trend.neutral { color: var(--muted); font-size: 9px; }
.dash-chart-grid { display: grid; grid-template-columns: minmax(0,2fr) minmax(250px,1fr); gap: 22px; }
.dash-secondary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.dash-bottom-grid { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); gap: 22px; }
.dash-bottom-grid > :only-child { grid-column: 1 / -1; }
.dash-card { min-width: 0; }
.dash-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
.dash-card-head p { color: var(--muted); font-size: 10px; margin-top: 5px; }
.admin-ui .dash-card-head > button { min-height: 32px; padding: 5px 11px; font-size: 10px; }
.dash-chart-total { display: flex; align-items: center; gap: 18px; margin-bottom: 12px; }
.dash-chart-total > .dash-money, .dash-chart-total > strong { color: var(--navy); font: 600 26px system-ui; }
.dash-chart-total > span:last-child:not(.dash-money), .dash-chart-total > strong small { color: var(--muted); font-size: 10px; font-weight: 400; }
.dash-chart-wrap { position: relative; direction: ltr; }
.dash-chart { width: 100%; display: block; overflow: visible; }
.dash-gridline { stroke: var(--line); stroke-dasharray: 3 5; }
.dash-axis { fill: var(--muted); font: 10px system-ui,'Admin Kufi'; }
.dash-point-dot { opacity: 0; fill: white; stroke: var(--chart-color); stroke-width: 2; }
.dash-chart-point:hover .dash-point-dot, .dash-chart-point:focus .dash-point-dot { opacity: 1; }
.dash-chart-point:focus { outline: none; }
.dash-chart-empty { position: absolute; inset: 15% 8% 20%; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; background: #ffffffed; text-align: center; direction: rtl; font-size: 11px; color: var(--muted); }
.dash-chart-empty span { font-size: 10px; }
.dash-chart-empty strong { font-weight: 500; }
.dash-chart-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; color: var(--muted); font-size: 10px; }
.dash-chart-footer strong { color: var(--navy); font-size: 12px; font-weight: 500; margin-inline-start: 6px; }
.dash-donut { position: relative; max-width: 180px; margin: 8px auto 20px; }
.dash-donut svg { display: block; width: 100%; }
.dash-donut > div { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; pointer-events: none; }
.dash-donut strong { color: var(--navy); font: 600 30px system-ui; }
.dash-donut span { color: var(--muted); font-size: 9px; }
.dash-legend { display: grid; gap: 10px; }
.dash-legend-row { display: grid; grid-template-columns: 1fr 30px 35px; align-items: center; gap: 12px; font-size: 10px; }
.dash-legend-row > span { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.dash-legend-row i { width: 6px; height: 6px; border-radius: 50%; }
.dash-legend-row > strong, .dash-legend-row > small { font-family: system-ui; text-align: end; }
.dash-legend-row > small { color: var(--muted); font-size: 10px; }
.dash-product { display: flex; align-items: flex-start; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.dash-product:last-child { border-bottom: 0; padding-bottom: 0; }
.dash-rank { color: var(--muted); font: 12px system-ui; padding-top: 4px; width: 18px; flex-shrink: 0; }
.dash-product-info { flex: 1; min-width: 0; }
.dash-product-info > div:first-child { display: flex; justify-content: space-between; gap: 12px; align-items: center; font-size: 12px; }
.dash-product-info strong { font-weight: 500; font-size: 11px; overflow-wrap: anywhere; }
.dash-product-info > small { color: var(--muted); font-size: 9px; }
.dash-product-track { height: 3px; background: var(--soft); border-radius: 3px; overflow: hidden; margin: 8px 0 5px; }
.dash-product-track span { display: block; height: 100%; background: #9A7BBD; border-radius: inherit; }
.dash-week-chart { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 12px; margin-top: 24px; }
.dash-weekday { text-align: center; min-width: 0; }
.dash-weekday > span { font: 12px system-ui; color: var(--muted); }
.dash-bar-track { height: 130px; display: flex; align-items: flex-end; justify-content: center; border-bottom: 1px solid var(--line); margin: 10px 0; }
.dash-bar { width: min(28px,80%); background: #C6B4DA; border-radius: 3px 3px 0 0; }
.dash-bar.peak { background: var(--primary); }
.dash-weekday small { font-size: 9px; color: var(--muted); }
.dash-week-footer { color: var(--muted); font-size: 10px; margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--line); }
.dash-week-footer strong { color: var(--navy); font-weight: 500; margin-inline-start: 8px; }
.dash-empty { min-height: 160px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 12px; color: var(--muted); font-size: 11px; }
.dash-section-title { margin-bottom: 13px; }
.dash-queue-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 17px; }
.admin-ui .dash-queue { display: flex; align-items: center; gap: 14px; text-align: start; padding: 18px 20px; border-color: var(--line); }
.dash-queue > .ui-icon { color: #5D3491; }
.dash-queue > span:not(.dash-queue-arrow) { display: flex; flex-direction: column; }
.dash-queue strong { color: var(--navy); font: 600 24px system-ui; }
.dash-queue small { color: var(--muted); font-size: 10px; font-weight: 400; margin-top: 6px; }
.dash-queue-arrow { margin-inline-start: auto; color: var(--muted); }
.dash-recent-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.admin-ui .dash-recent { min-width: 440px; margin: 0; }
.admin-ui .dash-recent td { font-size: 11px; padding: 15px; }
.dash-recent td strong { font-size: 11px; font-weight: 500; display: block; overflow-wrap: anywhere; }
.dash-recent td small { display: block; color: var(--muted); font-size: 9px; }
.dash-recent .dash-money small { display: inline; }
.dash-order-id { color: var(--muted); font: 12px system-ui; }
.dash-store-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; border-bottom: 1px solid var(--line); padding: 8px 0 20px; }
.dash-store-stats > div { display: flex; flex-direction: column; align-items: center; gap: 6px; border-inline-end: 1px solid var(--line); }
.dash-store-stats > div:last-child { border: 0; }
.dash-store-stats .ui-icon { color: #8C6FAF; width: 18px; height: 18px; }
.dash-store-stats strong { color: var(--navy); font: 600 23px system-ui; }
.dash-store-stats small { color: var(--muted); font-size: 9px; }
.dashboard-view .dash-notifications-title { margin: 20px 0 10px; font-size: 11px; font-weight: 500; }
.dash-notification { border-bottom: 1px solid var(--line); padding: 10px 0; }
.dash-notification:last-child { border-bottom: 0; }
.dash-notification p { color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.dash-notification small { color: var(--muted); font-size: 9px; }
.dash-no-notifications { font-size: 11px; }
.dash-shortcuts { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 18px; }
.admin-ui .dash-shortcuts button { min-height: 34px; padding: 6px 12px; font-size: 10px; display: flex; align-items: center; gap: 7px; }
.dash-shortcuts .ui-icon { width: 15px; height: 15px; }
.dash-footnote { font-size: 9px; color: var(--muted); text-align: center; }
@media (max-width: 1180px) {
    .admin-ui .dash-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .dash-chart-grid { grid-template-columns: minmax(0,1.7fr) minmax(240px,1fr); }
}
@media (max-width: 950px) {
    .dash-chart-grid, .dash-bottom-grid { grid-template-columns: 1fr; }
    .dash-chart-grid > :last-child { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
    .dash-chart-grid > :last-child .dash-card-head { grid-column: 1 / -1; }
    .dash-donut { width: 170px; margin: 0 auto; }
    .dash-period-row { flex-wrap: wrap; }
}
@media (max-width: 600px) {
    .dashboard-view { gap: 18px; }
    .dash-secondary-grid, .dash-queue-grid { grid-template-columns: 1fr; }
    .dash-period-row { align-items: flex-start; }
    .dash-card-head { flex-wrap: wrap; }
    .admin-ui .dash-kpis strong .dash-money { font-size: 20px; white-space: normal; }
    .dash-kpi-comparison { gap: 3px; }
    .dash-chart { min-height: 170px; }
    .dash-chart-total > .dash-money { font-size: 23px; }
    .dash-chart-footer { flex-direction: column; }
    .dash-chart-footer > span { display: flex; justify-content: space-between; }
    .dash-chart-grid > :last-child { gap: 10px; }
    .dash-donut { width: min(145px,100%); }
    .dash-donut strong { font-size: 27px; }
    .dash-legend-row { font-size: 9px; grid-template-columns: 1fr 20px 28px; gap: 4px; }
    .dash-week-chart { gap: 7px; }
    .dash-weekday small { font-size: 8px; }
    .dash-section-title { align-items: flex-start; flex-wrap: wrap; gap: 4px; }
    .admin-ui .dash-queue { padding: 16px; }
    .dash-queue > span:not(.dash-queue-arrow) { flex-direction: row; align-items: center; gap: 14px; }
    .dash-queue small { margin-top: 0; }
}

.billing-plans{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}.billing-plan{border:0;border-radius:12px;padding:12px 14px;background:var(--soft-blue,#F5EDFD)}.billing-plan h3,.billing-plan p{margin:0}.billing-plan strong{display:block;margin:4px 0 2px}.invoice-text{white-space:pre-wrap;overflow-wrap:anywhere}.invoice .record-details dd{overflow-wrap:anywhere}
.admin-ui .billing-layout{display:grid;gap:12px}.admin-ui .billing-layout>.panel{margin:0;padding:14px 16px}
.admin-ui .subscription-head p{margin:0 0 10px}
.admin-ui .renewal-preview{display:grid;gap:2px}
.admin-ui .renewal-preview p{margin:0;line-height:1.4}
.admin-ui .renewal-preview>p:first-child{display:flex;flex-wrap:wrap;gap:8px;align-items:baseline}
.admin-ui .renewal-method{font-weight:600;color:var(--navy)}

.admin-ui .topbar-tools { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.admin-ui .theme-toggle { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 8px 12px; }
.admin-ui .login { position: relative; }
.admin-ui .login-tools { display: flex; justify-content: flex-end; margin: -14px -14px 6px; }

.admin-ui.theme-dark {
    color-scheme: dark;
    color: #f6f1ff;
    --primary: #7902FB;
    --primary-hover: #9a4dff;
    --surface: #1b1428;
    --background: #110c18;
    --hover: #2a1d3c;
    --soft: #322248;
    --muted: #cbbbe4;
    --line: #43365c;
    --navy: #eadcff;
    --soft-blue: var(--soft);
    background: var(--background);
}
.admin-ui.theme-dark :is(dialog, .summary :is(a, .metric)) { color: #f6f1ff; border-color: var(--line); }
.admin-ui.theme-dark :is(.sidebar, .table-wrap) { scrollbar-color: #5c467c transparent; }
.admin-ui.theme-dark :is(.nav button:not(.active), .nav-section-label, .nav-group summary, .breadcrumb, .account-menu button, .field, .hint, .check, .empty, .record-count, .table-search, .optional-fields > summary, .form-disclosure > summary, .settings-nav button:not(.selected), .table-states button:not(.selected), .record-details dt, .image-field-label, .image-status, .page-count, .field-help, .editor-subheading strong, .summary :is(a, .metric)) { color: var(--muted); }
.admin-ui.theme-dark .nav button:not(.active) .ui-icon,
.admin-ui.theme-dark .summary .metric-glyph,
.admin-ui.theme-dark .empty-glyph,
.admin-ui.theme-dark .dash-queue > .ui-icon { color: var(--muted); }
.admin-ui.theme-dark .nav button:not(.active):hover,
.admin-ui.theme-dark .account-menu button:hover { color: var(--navy); background: var(--hover); }
.admin-ui.theme-dark .nav button:not(.active):hover .ui-icon { color: var(--navy); }
.admin-ui.theme-dark :is(th, td) { border-color: var(--line); }
.admin-ui.theme-dark th { color: var(--muted); }
.admin-ui.theme-dark .field :is(input, select, textarea),
.admin-ui.theme-dark .table-search input { color: #f6f1ff; border: 0; }
.admin-ui.theme-dark .field :is(input, select, textarea):focus,
.admin-ui.theme-dark .table-search:focus-within { border: 0; box-shadow: 0 0 0 3px #7902FB33; }
.admin-ui.theme-dark :is(.request-field-card, .editor-row, .fields-editor) :is(input, select, textarea):focus {
    box-shadow: 0 0 0 3px #7902FB33, inset 0 0 0 1px var(--line);
}
.admin-ui.theme-dark .table-search input::placeholder { color: #a894c4; }
.admin-ui.theme-dark .badge:not(.paused):not(.rejected) { color: var(--navy); background: var(--soft); border-color: var(--line); }
.admin-ui.theme-dark .badge:is(.paused, .rejected),
.admin-ui.theme-dark .form-error:not(:empty) { color: #ffb7c0; background: #3c2430; border-color: #6a3340; }
.admin-ui.theme-dark .dash-chart-empty { background: #110c18ee; }
.admin-ui.theme-dark .dash-point-dot { fill: var(--surface); }
.admin-ui.theme-dark :is(.secondary, td button, .tabs button:not(.active), .table-sort, .table-columns > summary, .image-upload-control) { border-color: var(--line); }
.admin-ui.theme-dark .platform-return { border-color: transparent; }

/* Keep borders only on field group wrappers (.form-section). */
.admin-ui :is(
    .panel,
    .summary :is(a, .metric),
    .record-count,
    .table-search,
    .badge,
    dialog,
    .login,
    .form-disclosure,
    .editor-row,
    .request-field-card,
    .disabled-setting,
    .permission-grid .check,
    .settings-content,
    .table-sort,
    .table-columns > summary,
    .column-menu,
    .media-card,
    .image-preview,
    .image-upload-control,
    .dash-recent-wrap,
    .table-wrap,
    .fields-editor
) {
    border: 0;
    box-shadow: none;
}

.admin-ui .form-section {
    border: 1px solid var(--line);
}

.admin-ui :is(
    .sidebar .brand,
    .topbar,
    .sidebar-account > details,
    .dialog-heading,
    .editor-dialog .dialog-heading,
    .editor-dialog .form-footer,
    .store-overview,
    .table-states,
    .notification-setting,
    .detail-block,
    .form-disclosure > .data-editor + .data-editor,
    .dash-store-stats > div,
    .dash-product,
    .dash-notification,
    .dash-chart-footer,
    .dash-week-footer,
    .editor-page .form-footer,
    .table-empty
) {
    border-width: 0;
    border-color: transparent;
}

.admin-ui .field :is(input, select, textarea),
.admin-ui .field-row :is(input, select),
.admin-ui .fields-editor :is(input, select, textarea),
.admin-ui .request-field-card :is(input, select, textarea),
.admin-ui .editor-row :is(input, select, textarea),
.admin-ui .image-upload-control,
.admin-ui .secondary,
.admin-ui .theme-toggle,
.admin-ui .tabs button,
.admin-ui td button,
.admin-ui .settings-nav button,
.admin-ui .settings-nav button.selected,
.admin-ui .nav button,
.admin-ui .nav .platform-return {
    border: 0;
}

.admin-ui :is(th, td) {
    border-bottom: 0;
}

.admin-ui .nav button.active {
    border-color: transparent;
}

/* —— Telegram Mini App / storefront —— */
.shop-ui {
    font-family: 'Admin Kufi', system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: var(--shop-text);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    max-width: 100%;
}

#app {
    width: 100%;
    overflow-x: clip;
}

.shop-ui .store {
    width: 100%;
    max-width: 430px;
    margin-inline: auto;
    padding: 10px 18px calc(128px + env(safe-area-inset-bottom));
    overflow-x: clip;
    min-width: 0;
}

.shop-ui .shop-header {
    margin: 4px 0 18px;
}

.shop-ui .shop-greet {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.shop-ui .shop-greet-text {
    min-width: 0;
}

.shop-ui .shop-greet-hi {
    display: block;
    font-size: 13px;
    color: var(--muted);
}

.shop-ui .shop-greet-text strong {
    display: block;
    margin-top: 2px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.4px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shop-ui .shop-notice-btn {
    position: relative;
}

.shop-ui .shop-notice-badge {
    position: absolute;
    top: 2px;
    inset-inline-end: 2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font: 700 9px system-ui, 'Admin Kufi', sans-serif;
    line-height: 16px;
    text-align: center;
    box-shadow: 0 0 0 2px var(--surface);
    pointer-events: none;
}

.shop-ui .shop-greet-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.shop-ui .shop-avatar,
.shop-ui .shop-avatar-fallback {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.shop-ui .shop-avatar-fallback {
    display: grid;
    place-items: center;
    background: var(--surface);
    color: var(--shop-accent, var(--primary));
    font: 700 16px system-ui, 'Admin Kufi', sans-serif;
    box-shadow: 0 2px 10px #14100c0d;
}

.shop-ui .shop-balance-chip {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--surface);
    color: var(--shop-text);
    font: 650 12px system-ui, 'Admin Kufi', sans-serif;
    font-variant-numeric: tabular-nums;
    box-shadow: 0 2px 10px #14100c0d;
}

.shop-ui .shop-icon-btn {
    width: 40px;
    min-height: 40px;
    padding: 0;
    border-radius: 50%;
    background: var(--surface);
    color: var(--shop-text);
    display: grid;
    place-items: center;
    box-shadow: 0 2px 10px #14100c0d;
}

.shop-ui .shop-icon-btn .ui-icon {
    width: 18px;
    height: 18px;
}

.shop-ui .shop-page {
    display: grid;
    gap: 14px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: clip;
}

.shop-ui .shop-page > * {
    min-width: 0;
    max-width: 100%;
}

.shop-ui .shop-alert {
    padding: 12px 14px;
    border-radius: 16px;
    background: var(--surface);
    font-size: 13px;
    box-shadow: 0 2px 10px #14100c0a;
}

.shop-ui .shop-search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0 12px;
    min-height: 44px;
    margin: 0;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
    box-shadow: 0 1px 3px #14100c06;
    transition: border-color .15s, box-shadow .15s;
}

.shop-ui .shop-search-wrap:focus-within {
    border-color: color-mix(in srgb, var(--primary) 55%, var(--line));
    box-shadow: 0 1px 3px #14100c06, inset 0 0 0 1px color-mix(in srgb, var(--primary) 22%, transparent);
}

.shop-ui .shop-search-field {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
}

.shop-ui .shop-search-icon {
    display: inline-flex;
    flex-shrink: 0;
}

.shop-ui .shop-search-icon .ui-icon {
    width: 18px;
    height: 18px;
    color: var(--muted);
    flex-shrink: 0;
}

.shop-ui .shop-search-input {
    flex: 1 1 0;
    width: 0;
    min-width: 0;
    max-width: 100%;
    border: 0;
    padding: 12px 0;
    margin: 0;
    background: transparent;
    box-shadow: none;
    font-size: 14px;
    color: inherit;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.shop-ui .shop-search-input::placeholder {
    color: var(--muted);
}

.shop-ui .shop-search-input::-webkit-search-cancel-button {
    display: none;
}

.shop-ui .shop-search-clear {
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 50%;
    background: var(--shop-subtle);
    color: var(--muted);
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
}

.shop-ui .deposit-method-list {
    display: grid;
    gap: 8px;
}

.shop-ui .deposit-method-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 10px;
    border-radius: 16px;
    background: var(--shop-row);
    text-align: start;
    color: inherit;
}

.shop-ui .deposit-method-row.is-locked {
    opacity: .82;
}

.shop-ui .deposit-method-logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.shop-ui .deposit-method-logo-fallback {
    display: grid;
    place-items: center;
    color: var(--shop-accent, var(--primary));
    background: transparent;
}

.shop-ui .deposit-method-logo-fallback .ui-icon {
    width: 26px;
    height: 26px;
}

.shop-ui .deposit-method-copy {
    flex: 1;
    min-width: 0;
    display: grid;
    gap: 2px;
}

.shop-ui .deposit-method-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 14px;
    font-weight: 650;
}

.shop-ui .deposit-kyc-badge {
    display: inline-flex;
    flex-shrink: 0;
}

.shop-ui .deposit-kyc-icon {
    width: 18px;
    height: 18px;
}

.shop-ui .deposit-kyc-verified {
    color: var(--shop-accent, var(--primary));
}

.shop-ui .deposit-kyc-verified .deposit-kyc-icon circle {
    fill: currentColor;
}

.shop-ui .deposit-kyc-locked {
    color: #a8a29e;
}

.shop-ui .deposit-method-go {
    color: var(--muted);
    flex-shrink: 0;
}

.shop-ui .deposit-method-go .ui-icon {
    width: 18px;
    height: 18px;
}

html[dir="ltr"] .shop-ui .deposit-method-go .ui-icon {
    transform: scaleX(-1);
}

.shop-ui .shop-record-list {
    display: grid;
    gap: 10px;
}

.shop-ui .shop-record-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 14px;
    border-radius: 18px;
    background: var(--shop-row);
    text-align: start;
    color: inherit;
}

.shop-ui .shop-record-main {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.shop-ui .shop-record-top {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.shop-ui .shop-record-id {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--muted);
}

.shop-ui .shop-record-main strong {
    font-size: 14px;
    font-weight: 650;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shop-ui .shop-record-main time {
    font-size: 11px;
    color: var(--muted);
}

.shop-ui .shop-record-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
    color: var(--muted);
}

.shop-ui .shop-record-amount {
    font-size: 13px;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
    color: var(--shop-text);
}

.shop-ui .shop-record-side > .ui-icon {
    width: 16px;
    height: 16px;
}

html[dir="ltr"] .shop-ui .shop-record-side > .ui-icon {
    transform: scaleX(-1);
}

.shop-ui .shop-detail-heading {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 700;
}

.shop-ui .shop-detail-dl {
    margin: 0;
    display: grid;
    gap: 12px;
}

.shop-ui .shop-detail-dl > div {
    display: grid;
    gap: 4px;
}

.shop-ui .shop-detail-dl dt {
    font-size: 11px;
    color: var(--muted);
    font-weight: 500;
}

.shop-ui .shop-detail-dl dd {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

.shop-ui .shop-detail-hero {
    display: grid;
    gap: 14px;
}

.shop-ui .shop-detail-result {
    margin: 0;
    padding: 12px;
    border-radius: 12px;
    background: var(--shop-row);
    font-size: 12px;
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.shop-ui .shop-detail-note p {
    margin: 0;
    font-size: 13px;
    color: #a13d48;
    line-height: 1.45;
}

.shop-ui .shop-instructions p {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--shop-text);
}

.shop-ui .shop-styled-form {
    display: grid;
    gap: 12px;
}

.shop-ui .shop-field {
    margin: 0;
    display: grid;
    gap: 6px;
    font-size: 12px;
    color: var(--muted);
}

.shop-ui .shop-field :is(input, select, textarea) {
    width: 100%;
    border: 0;
    border-radius: 14px;
    padding: 12px 14px;
    background: var(--shop-row);
    color: inherit;
    font-size: 14px;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--line) 70%, transparent);
}

.shop-ui .shop-field :is(input, select, textarea):focus {
    outline: none;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 16%, transparent), inset 0 0 0 1px color-mix(in srgb, var(--primary) 35%, var(--line));
}

.shop-ui .shop-form-footer {
    padding-top: 4px;
}

.shop-ui .shop-form-footer button {
    width: 100%;
    min-height: 46px;
    border-radius: 14px;
    background: var(--primary);
    color: #fff;
    font-weight: 650;
}

.shop-ui .shop-voucher-hint {
    margin: 0 0 12px;
}

.shop-ui .shop-deposit-method-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.shop-ui .shop-deposit-method-head strong {
    display: block;
    font-size: 15px;
}

.shop-ui .shop-deposit-intro {
    padding: 14px 16px;
}

.shop-ui .shop-detail-hero-block {
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 8px;
    padding: 8px 12px 18px;
}

.shop-ui .shop-detail-method-logo {
    width: 64px;
    height: 64px;
    margin-bottom: 4px;
}

.shop-ui .shop-detail-status-line {
    margin-bottom: 2px;
}

.shop-ui .shop-detail-main-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.35px;
    line-height: 1.25;
}

.shop-ui .shop-detail-meta {
    margin: 0;
    font-size: 12px;
    color: var(--muted);
}

.shop-ui .shop-detail-amount {
    margin: 4px 0 0;
    font-size: 26px;
    font-weight: 750;
    letter-spacing: -.4px;
    color: var(--shop-text);
}

.shop-ui .shop-detail-amount-note {
    margin: 0;
    font-size: 12px;
    color: var(--muted);
}

.shop-ui .shop-detail-section .shop-detail-dl {
    margin-top: 4px;
}

.shop-ui .shop-detail-alert {
    padding: 14px 16px;
    border-radius: 16px;
    background: #fff4f5;
}

.shop-ui .shop-detail-alert p {
    margin: 0;
    font-size: 13px;
    color: #a13d48;
    line-height: 1.45;
}

.shop-ui .shop-form-card .form {
    display: grid;
    gap: 12px;
}

.shop-ui .shop-detail-receipt {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--primary) 10%, var(--surface));
    color: var(--shop-accent, var(--primary));
    font-size: 12px;
    font-weight: 600;
}

.shop-ui .shop-detail-receipt .ui-icon {
    width: 16px;
    height: 16px;
}

.shop-ui .shop-voucher-card .form {
    margin-top: 4px;
}

.shop-ui .shop-banner {
    display: grid;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    border-radius: 20px;
    overflow: hidden;
    background: var(--primary);
    color: #fff;
}

.shop-ui .shop-banner.has-image {
    grid-template-columns: 1.15fr .85fr;
}

.shop-ui .shop-banner-copy {
    padding: 20px 18px;
    display: grid;
    align-content: center;
    gap: 8px;
}

.shop-ui .shop-banner h2,
.shop-ui .shop-banner h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.4px;
}

.shop-ui .shop-banner p {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    opacity: .92;
}

.shop-ui .shop-banner-media {
    min-height: 0;
    max-height: 160px;
    background: color-mix(in srgb, #fff 12%, var(--primary));
}

.shop-ui .shop-banner-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-ui .shop-banner-cta {
    justify-self: start;
    margin-top: 6px;
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #171717;
    color: #fff;
    font-size: 12px;
}

.shop-ui .shop-section {
    display: grid;
    gap: 12px;
}

.shop-ui .shop-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.shop-ui .shop-section-head h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -.3px;
}

.shop-ui .category-chips {
    gap: 8px;
    margin: 0;
    scrollbar-width: none;
}

.shop-ui .category-chips::-webkit-scrollbar {
    display: none;
}

.shop-ui .category-chips button {
    border: 0;
    border-radius: 999px;
    padding: 9px 16px;
    font-size: 13px;
    background: var(--shop-subtle);
    color: var(--muted);
}

.shop-ui .category-chips button.active {
    background: var(--primary);
    color: #fff;
    font-weight: 700;
}

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

.shop-ui .catalog-grid {
    display: grid;
    grid-template-columns: repeat(var(--catalog-columns, 2), minmax(0, 1fr));
    gap: 12px 10px;
    width: 100%;
    min-width: 0;
}

.shop-ui .catalog-tile {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
    cursor: pointer;
    font: inherit;
    color: inherit;
    text-align: inherit;
}

.shop-ui .catalog-tile .catalog-media {
    width: 100%;
    min-width: 0;
    border-radius: 18px;
    background: var(--surface, #fff);
    box-shadow: 0 2px 12px #14100c08;
    overflow: hidden;
}

.shop-ui .catalog-tile.selected .catalog-media {
    box-shadow: 0 0 0 2px var(--primary), 0 2px 12px #14100c08;
}

.shop-ui[data-catalog-shape="square"] .catalog-tile .catalog-media {
    aspect-ratio: 1 / 1;
}

.shop-ui[data-catalog-shape="landscape"] .catalog-tile .catalog-media {
    aspect-ratio: 4 / 3;
}

.shop-ui[data-catalog-shape="portrait"] .catalog-tile .catalog-media {
    aspect-ratio: 3 / 4;
}

.shop-ui .catalog-tile .catalog-media .product-media {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: grid;
    place-items: center;
}

.shop-ui .catalog-tile .catalog-media .product-media img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    display: block;
}

.shop-ui .catalog-tile .catalog-media .product-media .product-glyph {
    width: 28px;
    height: 28px;
}

.shop-ui .catalog-title {
    margin: 0;
    padding: 0 2px;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.35;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shop-ui .product-card {
    border: 0;
    border-radius: 20px;
    background: var(--surface);
    box-shadow: 0 2px 12px #14100c08;
    overflow: hidden;
    cursor: pointer;
}

.shop-ui .product-media {
    display: grid;
    place-items: center;
    min-height: 118px;
    background: var(--shop-subtle);
    color: var(--shop-accent, var(--primary));
}

.shop-ui .product-card .product-media img {
    width: 100%;
    height: 118px;
    object-fit: cover;
}

.shop-ui .product-media .product-glyph {
    width: 30px;
    height: 30px;
    margin: 0;
}

.shop-ui .product-copy {
    padding: 12px 12px 14px;
}

.shop-ui .product-copy h3 {
    margin: 0;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-align: center;
}

.shop-ui .product-foot {
    gap: 8px;
}

.shop-ui .product-foot strong {
    color: inherit;
    font-size: 13px;
    font-weight: 700;
}

.shop-ui .product-add {
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
    padding: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--primary);
    color: #fff;
}

.shop-ui .product-add .ui-icon {
    width: 16px;
    height: 16px;
}

.shop-ui .product-tag {
    display: inline-flex;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--shop-subtle);
    color: var(--muted);
}

.shop-ui .shop-card {
    padding: 16px;
    border-radius: 20px;
    background: var(--surface);
    box-shadow: 0 2px 12px #14100c08;
}

.shop-ui .shop-card + .shop-card {
    margin-top: 0;
}

.shop-ui .shop-card h3 {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 700;
}

.shop-ui .shop-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.shop-ui .shop-card-head h3 {
    margin: 0;
}

.shop-ui .shop-page-head h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.3px;
}

.shop-ui .shop-page-head p {
    margin: 6px 0 0;
    font-size: 13px;
    color: var(--muted);
}

.shop-ui .shop-muted {
    margin: 0;
    font-size: 12px;
    color: var(--muted);
}

.shop-ui .shop-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
}

.shop-ui .shop-list-item:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.shop-ui .shop-list-item p {
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--muted);
}

.shop-ui .shop-link {
    font-size: 12px;
    color: var(--shop-accent, var(--primary));
    padding: 4px 6px;
}

.shop-ui .shop-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.shop-ui .shop-actions .secondary {
    border: 0;
    background: var(--shop-subtle);
    color: var(--shop-text);
    min-height: 40px;
    font-size: 12px;
    border-radius: 12px;
}

.shop-ui.shop-profile-view .shop-header {
    display: none;
}

.shop-ui.shop-subpage-view .shop-header {
    display: none;
}

.shop-ui .profile-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 8px 12px 20px;
    gap: 10px;
}

.shop-ui .shop-user-photo.profile-hero-photo,
.shop-ui .shop-user-photo-fallback.profile-hero-photo {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 28px #14100c14;
    border: 4px solid var(--surface);
}

.shop-ui .shop-user-photo-fallback.profile-hero-photo {
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, var(--surface), var(--shop-subtle));
    color: var(--shop-accent, var(--primary));
    font: 700 40px system-ui, 'Admin Kufi', sans-serif;
}

.shop-ui .profile-name-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
    max-width: 100%;
}

.shop-ui .profile-verified {
    display: inline-flex;
    flex-shrink: 0;
    color: var(--shop-accent, var(--primary));
}

.shop-ui .profile-verified-icon {
    width: 22px;
    height: 22px;
}

.shop-ui .profile-verified-icon circle {
    fill: currentColor;
}

.shop-ui .profile-name {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -.4px;
    line-height: 1.2;
}

.shop-ui .profile-handle {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
}

.shop-ui .profile-telegram-line {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 6px 0 0;
    font-size: 13px;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.shop-ui .profile-copy-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    line-height: 0;
}

.shop-ui .profile-copy-icon .ui-icon {
    width: 16px;
    height: 16px;
}

.shop-ui .profile-copy-icon:hover,
.shop-ui .profile-copy-icon:focus-visible {
    color: var(--shop-accent, var(--primary));
}

.shop-ui .profile-settings-card {
    padding-top: 18px;
}

.shop-ui .profile-card-title {
    margin: 0 0 14px;
    font-size: 13px;
    color: var(--muted);
    font-weight: 600;
}

.shop-ui .profile-setting + .profile-setting {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.shop-ui .profile-setting-label {
    display: block;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 600;
}

.shop-ui .profile-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.shop-ui .profile-option {
    flex: 1 1 calc(50% - 4px);
    min-height: 44px;
    padding: 10px 12px;
    border: 0;
    border-radius: 14px;
    background: color-mix(in srgb, var(--primary) 10%, var(--surface, var(--surface)));
    color: inherit;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    transition: background .15s, color .15s, box-shadow .15s;
}

.shop-ui .profile-option.selected {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--primary) 28%, transparent);
}

.shop-ui .profile-settings-note {
    margin: 14px 0 0;
    font-size: 11px;
}

.shop-ui .profile-menu {
    padding: 6px 0;
}

.shop-ui .profile-menu-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    border: 0;
    border-top: 1px solid var(--line);
    background: transparent;
    color: inherit;
    text-align: start;
    font: inherit;
}

.shop-ui .profile-menu-row:first-child {
    border-top: 0;
}

.shop-ui .profile-menu-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    color: var(--shop-accent, var(--primary));
}

.shop-ui .profile-menu-icon .ui-icon {
    width: 22px;
    height: 22px;
}

.shop-ui .profile-menu-copy {
    flex: 1;
    min-width: 0;
}

.shop-ui .profile-menu-copy strong {
    display: block;
    font-size: 14px;
}

.shop-ui .profile-menu-copy small {
    display: block;
    margin-top: 3px;
    font-size: 11px;
    color: var(--muted);
    line-height: 1.35;
}

.shop-ui .profile-menu-chevron {
    color: var(--muted);
    opacity: .7;
    flex-shrink: 0;
}

.shop-ui .profile-menu-chevron .ui-icon {
    width: 18px;
    height: 18px;
}

html[dir="ltr"] .shop-ui .profile-menu-chevron .ui-icon {
    transform: scaleX(-1);
}

.shop-ui .shop-subhead {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
}

.shop-ui .shop-subhead h2 {
    margin: 0;
    font-size: 20px;
}

.shop-ui .shop-subhead p {
    margin: 6px 0 0;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.45;
}

.shop-ui .shop-subback .ui-icon {
    width: 20px;
    height: 20px;
}

html[dir="ltr"] .shop-ui .shop-subback .ui-icon {
    transform: scaleX(-1);
}

.shop-ui .profile-status {
    display: grid;
    gap: 8px;
    font-size: 14px;
}

.shop-ui .profile-status .ui-icon {
    width: 28px;
    height: 28px;
    color: var(--shop-accent, var(--primary));
}

.shop-ui .profile-status-verified {
    text-align: center;
    justify-items: center;
    padding: 8px 4px;
}

.shop-ui .profile-status-verified p,
.shop-ui .profile-status-pending p,
.shop-ui .profile-status-rejected p {
    margin: 0;
    font-size: 12px;
    color: var(--muted);
}

.shop-ui .shop-file-picker,
.shop-ui .profile-upload {
    display: block;
    cursor: pointer;
}

.shop-ui .shop-file-picker + .shop-file-picker,
.shop-ui .profile-upload + .profile-upload,
.shop-ui .shop-file-picker + .profile-upload,
.shop-ui .profile-upload + .shop-file-picker {
    margin-top: 10px;
}

.shop-ui .shop-file-picker-box,
.shop-ui .profile-upload-box {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1.5px dashed color-mix(in srgb, var(--primary) 28%, var(--line));
    border-radius: 16px;
    background: color-mix(in srgb, var(--primary) 4%, var(--shop-row));
    text-align: start;
    transition: border-color .15s, background .15s, box-shadow .15s;
}

.shop-ui .shop-file-picker-box .ui-icon,
.shop-ui .profile-upload-box .ui-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    padding: 7px;
    border-radius: 12px;
    box-sizing: border-box;
    color: var(--shop-accent, var(--primary));
    background: color-mix(in srgb, var(--primary) 12%, var(--surface));
}

.shop-ui .shop-file-picker-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.shop-ui .shop-file-picker-copy strong,
.shop-ui .profile-upload-box strong {
    font-size: 14px;
    line-height: 1.3;
}

.shop-ui .shop-file-picker-hint,
.shop-ui .profile-upload-box small {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.35;
}

.shop-ui .shop-file-picker-name {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--shop-accent, var(--primary));
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shop-ui .shop-file-picker.has-file .shop-file-picker-box,
.shop-ui .profile-upload.has-file .profile-upload-box {
    border-style: solid;
    border-color: color-mix(in srgb, var(--primary) 55%, var(--line));
    background: color-mix(in srgb, var(--primary) 8%, var(--surface));
    box-shadow: 0 2px 12px color-mix(in srgb, var(--primary) 12%, transparent);
}

.shop-ui .shop-file-picker:has(input:focus-visible) .shop-file-picker-box,
.shop-ui .shop-file-picker:hover .shop-file-picker-box,
.shop-ui .profile-upload:has(input:focus-visible) .profile-upload-box,
.shop-ui .profile-upload:hover .profile-upload-box {
    border-color: var(--shop-accent, var(--primary));
    background: color-mix(in srgb, var(--primary) 8%, var(--surface));
}

.shop-ui .shop-form-card .shop-file-picker {
    margin-top: 4px;
}

.shop-ui .profile-identity-form .profile-submit,
.shop-ui .profile-submit {
    width: 100%;
    margin-top: 14px;
    min-height: 48px;
    border-radius: 14px;
}

.shop-ui .profile-form-hint {
    margin: 0 0 12px;
    font-size: 12px;
}

.shop-ui .profile-ledger-card {
    padding: 8px 0;
}

.shop-ui .ledger-list {
    display: grid;
}

.shop-ui .ledger-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-top: 1px solid var(--line);
}

.shop-ui .ledger-item:first-child {
    border-top: 0;
}

.shop-ui .ledger-item-main p {
    margin: 4px 0;
    font-size: 13px;
    line-height: 1.4;
}

.shop-ui .ledger-item-main time {
    font-size: 11px;
    color: var(--muted);
}

.shop-ui .ledger-amount {
    font-size: 15px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.shop-ui .ledger-amount.credit {
    color: var(--shop-accent, var(--primary));
}

.shop-ui .ledger-amount.debit {
    color: #b42318;
}

.shop-ui .ledger-hold {
    flex-shrink: 0;
    font-size: 11px;
    color: var(--muted);
    padding: 4px 8px;
    border-radius: 8px;
    background: var(--shop-subtle);
}

.shop-ui .shop-legal .legal-section + .legal-section {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.shop-ui .shop-legal h3 {
    margin: 0 0 8px;
    font-size: 14px;
}

.shop-ui .shop-legal p {
    margin: 0;
    font-size: 13px;
    line-height: 1.65;
    color: var(--shop-text);
    white-space: pre-wrap;
}

.shop-ui .shop-user-photo {
    border-radius: 50%;
    object-fit: cover;
}

.shop-ui .shop-feed-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
}

.shop-ui .shop-feed-item:first-child {
    border-top: 0;
    padding-top: 0;
}

.shop-ui .shop-feed-item p {
    margin: 0 0 4px;
    font-size: 13px;
}

.shop-ui .shop-feed-item time {
    font-size: 11px;
    color: var(--muted);
}

.shop-ui .shop-empty {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 48px 16px;
    text-align: center;
    color: var(--muted);
}

.shop-ui .shop-empty .ui-icon {
    width: 34px;
    height: 34px;
    color: var(--shop-accent, var(--primary));
}

.shop-ui .shop-empty strong {
    color: inherit;
    font-size: 14px;
}

.shop-ui .shop-empty span {
    font-size: 12px;
}

.shop-ui .shop-copy-field {
    margin-top: 10px;
    border: 0;
    border-radius: 14px;
    background: var(--shop-subtle);
    padding: 12px 13px;
}

.shop-ui .shop-copy-btn {
    width: 100%;
    margin-top: 10px;
    min-height: 48px;
    border-radius: 14px;
}

.shop-ui .shop-table-wrap .table-wrap,
.shop-ui .table-wrap {
    border: 0;
    box-shadow: none;
    background: transparent;
}

.shop-ui .store :is(th, td) {
    border-bottom: 1px solid var(--line);
    font-size: 12px;
    padding: 12px 8px;
}

.shop-ui .store th {
    font-size: 11px;
    color: var(--muted);
    background: transparent;
}

.shop-ui .bottom-nav {
    max-width: 400px;
    margin: 0 auto;
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    width: calc(100% - 24px);
    bottom: calc(12px + env(safe-area-inset-bottom));
    padding: 8px 8px 10px;
    border: 0;
    border-radius: 28px;
    background: var(--surface);
    box-shadow: 0 12px 32px #14100c14;
}

.shop-ui .bottom-nav button {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 4px 2px;
    font-size: 10px;
    border-radius: 18px;
    line-height: 1.15;
    color: var(--muted);
    background: transparent;
}

.shop-ui .bottom-nav span {
    display: block;
    margin: 0;
    font-size: 10px;
}

.shop-ui .bottom-nav .ui-icon {
    width: 18px;
    height: 18px;
}

.shop-ui .bottom-nav button.active {
    color: var(--shop-accent, var(--primary));
    background: transparent;
    font-weight: 700;
}

.shop-ui .bottom-nav button.active .ui-icon {
    width: 36px;
    height: 36px;
    padding: 8px;
    box-sizing: border-box;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
}

.shop-ui.shop-detail .shop-header,
.shop-ui.shop-detail .bottom-nav,
.shop-ui.shop-detail .shop-alert {
    display: none;
}

.shop-ui.shop-detail .store {
    padding-bottom: calc(150px + env(safe-area-inset-bottom));
}

.shop-ui .product-detail {
    display: grid;
    gap: 14px;
}

.shop-ui .catalog-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.shop-ui .catalog-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px 8px 10px;
    border: 0;
    border-radius: 999px;
    background: var(--surface);
    color: var(--shop-text);
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    box-shadow: 0 2px 10px #14100c0a;
    flex-shrink: 0;
}

.shop-ui .catalog-back .ui-icon {
    width: 18px;
    height: 18px;
}

[dir="ltr"] .shop-ui .catalog-back .ui-icon {
    transform: scaleX(-1);
}

.shop-ui .catalog-folder-title {
    margin: 0;
    min-width: 0;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -.3px;
    line-height: 1.25;
}

.shop-ui .shop-catalog {
    display: grid;
    gap: 12px;
}

.shop-ui .detail-top-bar {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.shop-ui .detail-back-inline {
    flex-shrink: 0;
    margin-top: 2px;
}

[dir="ltr"] .shop-ui .detail-back-inline .ui-icon {
    transform: scaleX(-1);
}

.shop-ui .product-detail-compact .detail-intro {
    flex: 1;
    min-width: 0;
    text-align: start;
    padding: 0;
}

.shop-ui .detail-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.4px;
    line-height: 1.25;
}

.shop-ui .detail-price-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.shop-ui .detail-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--shop-accent, var(--primary));
}

.shop-ui .detail-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary) 12%, transparent);
    color: var(--shop-accent, var(--primary));
    font-size: 11px;
    font-weight: 700;
}

.shop-ui .product-buy-form {
    display: grid;
    gap: 16px;
}

.shop-ui .detail-body {
    display: grid;
    gap: 16px;
}

.shop-ui .detail-section {
    display: grid;
    gap: 10px;
}

.shop-ui .detail-section-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: .02em;
}

.shop-ui .detail-desc {
    margin: 0;
    padding: 14px 16px;
    border-radius: 18px;
    background: var(--surface);
    font-size: 13px;
    line-height: 1.65;
    color: var(--shop-text);
    box-shadow: 0 2px 12px #14100c06;
}

.shop-ui .detail-notice {
    padding: 12px 14px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--secondary) 14%, var(--surface));
    color: #5c4a2e;
    font-size: 12px;
    line-height: 1.5;
}

.shop-ui .detail-wallet {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: var(--surface);
    box-shadow: 0 2px 12px #14100c06;
    font-size: 13px;
    color: var(--muted);
}

.shop-ui .detail-wallet strong {
    color: var(--shop-text);
    font-size: 14px;
}

.shop-ui .detail-form-grid {
    display: grid;
    gap: 10px;
}

.shop-ui .detail-form-grid .field-hint {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: var(--muted);
}

.shop-ui .option-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.shop-ui .option-pill {
    position: relative;
}

.shop-ui .option-pill input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.shop-ui .option-pill span {
    display: block;
    min-width: 42px;
    text-align: center;
    padding: 10px 16px;
    border-radius: 14px;
    background: var(--shop-subtle);
    color: var(--shop-text);
    font-size: 13px;
    font-weight: 600;
}

.shop-ui .option-pill input:checked + span {
    background: var(--primary);
    color: #fff;
}

.shop-ui .product-buy-form .field {
    margin: 0;
}

.shop-ui .product-buy-form .field :is(input, select, textarea) {
    width: 100%;
    background: var(--surface);
    border: 0;
    border-radius: 14px;
    padding: 12px 14px;
    box-shadow: 0 2px 10px #14100c0a;
}

.shop-ui .product-buy-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 8;
    display: grid;
    gap: 10px;
    max-width: 430px;
    margin: 0 auto;
    padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
    background: var(--surface, #fff);
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -6px 28px #14100c12;
}

.shop-ui .product-buy-summary {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    color: var(--muted);
}

.shop-ui .product-buy-summary strong {
    font-size: 18px;
    font-weight: 800;
    color: var(--shop-accent, var(--primary));
}

.shop-ui .product-buy-cta {
    width: 100%;
    min-height: 52px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
}

.shop-ui dialog {
    width: min(430px, calc(100% - 24px));
    border: 0;
    border-radius: 24px;
    padding: 0;
    background: var(--surface);
    color: inherit;
    box-shadow: 0 24px 70px #14100c2e;
}

.shop-ui dialog::backdrop {
    background: #14100c55;
}

.shop-ui .dialog-heading {
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
}

.shop-ui .dialog-heading h2 {
    margin: 0;
    font-size: 16px;
}

.shop-ui dialog .form {
    padding: 16px 18px 18px;
}

.shop-ui .field :is(input, select, textarea) {
    border: 0;
    background: var(--surface);
    border-radius: 14px;
}

.shop-ui .field :is(input, select, textarea):focus {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent);
}

.shop-ui .hint,
.shop-ui .notice {
    border: 0;
    border-radius: 14px;
    background: var(--shop-subtle);
    font-size: 12px;
}

.shop-ui .shop-page .form-footer .secondary {
    display: none;
}

.shop-ui.dark {
    color: #f4efe8;
}

.shop-ui.dark .shop-search-wrap,
.shop-ui.dark .shop-card,
.shop-ui.dark .product-card,
.shop-ui.dark .shop-icon-btn,
.shop-ui.dark .shop-balance-chip,
.shop-ui.dark .shop-avatar-fallback,
.shop-ui.dark .bottom-nav,
.shop-ui.dark .product-media.detail-hero {
    background: var(--surface);
    box-shadow: none;
}

.shop-ui.dark .deposit-method-row,
.shop-ui.dark .shop-record-row,
.shop-ui.dark .shop-detail-result,
.shop-ui.dark .shop-search-clear {
    background: #2a2433;
}

.shop-ui.dark .shop-field :is(input, select, textarea) {
    background: #2a2433;
}

.shop-ui.dark .category-chips button,
.shop-ui.dark .shop-actions .secondary,
.shop-ui.dark .option-pill span,
.shop-ui.dark .hint,
.shop-ui.dark .notice,
.shop-ui.dark .shop-copy-field,
.shop-ui.dark .product-media {
    background: #2a2433;
    color: inherit;
}

.shop-ui.dark .category-chips button.active,
.shop-ui.dark .option-pill input:checked + span {
    background: var(--primary);
    color: #fff;
}

@media (max-width: 420px) {
    .shop-ui .store {
        padding-inline: 14px;
    }

    .shop-ui .shop-greet-text strong {
        font-size: 20px;
    }

    .shop-ui .shop-banner.has-image {
        grid-template-columns: 1fr;
    }

    .shop-ui .shop-banner-media {
        min-height: 120px;
    }
}

/* Store identity and customer theme control. */
.shop-ui { color-scheme: light; min-height: 100dvh; }
.shop-ui.dark { color-scheme: dark; }
.shop-ui .shop-brand { display: flex; align-items: center; gap: 9px; min-width: 0; flex: 1; }
.shop-ui .shop-brand-logo { width: 40px; height: 40px; flex-shrink: 0; object-fit: contain; border-radius: 12px; background: var(--surface); }
.shop-ui .shop-brand-name { font-size: 17px; line-height: 1.5; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.shop-ui .shop-greet { gap: 8px; }
.shop-ui .shop-greet-actions { gap: 5px; }
.shop-ui .shop-greet-actions .shop-icon-btn { width: 34px; min-height: 36px; }
.shop-ui .shop-greet-actions .shop-balance-chip { padding-inline: 8px; }
.shop-ui button:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.shop-ui.dark .shop-detail-error { background: #3a202c; }
.shop-ui.dark .shop-detail-error :is(strong, p), .shop-ui.dark .field-error { color: #ffa6b4; }
.shop-ui.dark .detail-notice { color: #ead3ae; }
.shop-ui.dark .ledger-amount.credit { color: #8fddb7; }
.shop-ui.dark .ledger-amount.debit { color: #ffa6b4; }

/* Customer wallet overview. */
.shop-ui .wallet-hero { overflow: hidden; }
.shop-ui .wallet-hero-label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.shop-ui .wallet-hero-amount { display: block; font: 750 clamp(28px, 8vw, 38px)/1.5 system-ui, sans-serif; margin: 8px 0 18px; overflow-wrap: anywhere; color: var(--shop-accent); }
.shop-ui .wallet-balance-details { border-top: 1px solid var(--line); padding-top: 14px; }
.shop-ui .wallet-balance-details > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.shop-ui .wallet-balance-details span { display: block; font-size: 11px; color: var(--muted); }
.shop-ui .wallet-balance-details strong { display: block; margin-top: 5px; font: 650 15px/1.5 system-ui, sans-serif; overflow-wrap: anywhere; }
.shop-ui .wallet-hero button { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 20px; border-radius: 14px; background: var(--primary); color: #fff; font-weight: 700; }
.shop-ui .wallet-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.shop-ui .wallet-stat { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px 8px; padding: 18px 16px; }
.shop-ui .wallet-stat > .ui-icon { grid-column: 2; grid-row: 1; }
.shop-ui .wallet-stat > span { grid-column: 1; grid-row: 1; }
.shop-ui .wallet-stat > strong, .shop-ui .wallet-stat > small { grid-column: 1 / -1; }
.shop-ui .wallet-stat > .ui-icon { color: var(--shop-accent); background: transparent; padding: 0; }
.shop-ui .wallet-stat > span { font-size: 11px; }
.shop-ui .wallet-stat > strong { font: 700 21px/1.4 system-ui, sans-serif; overflow-wrap: anywhere; max-width: 100%; }
.shop-ui .wallet-stat > small { font-size: 10px; line-height: 1.6; }
.shop-ui .wallet-account h3, .shop-ui .wallet-recent h3 { font-size: 14px; margin: 0; }
.shop-ui .wallet-account dl { display: block; margin: 8px 0 0; }
.shop-ui .wallet-account dl > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.shop-ui .wallet-account dt { font-size: 12px; color: var(--muted); }
.shop-ui .wallet-account dd { margin: 0; text-align: end; font-size: 12px; }
.shop-ui .wallet-account > p { font-size: 11px; line-height: 1.9; margin-bottom: 0; }
.shop-ui .wallet-recent .ledger-item:last-child { border-bottom: 0; }
.shop-ui .wallet-hero .ui-icon { width: 20px; height: 20px; flex-shrink: 0; }
.shop-ui .wallet-stat > .ui-icon { width: 20px; height: 20px; flex-shrink: 0; }

.shop-ui .wallet-account dl > div:last-child { border-bottom: 0; }
.shop-ui .wallet-hero { padding: 20px; }

/* Pending states stay distinct from successful states in dark mode. */
.shop-ui.dark .badge:is(.pending, .review, .provider_pending),
.admin-ui.theme-dark .badge:is(.pending, .review, .provider_pending) { color: #f6c76b; background: #3a2d18; border-color: #70572a; }

/* Select a provider category or individual service without losing its tree. */
.admin-ui .provider-selection-tools { position: sticky; top: 0; z-index: 1; background: var(--surface); padding-bottom: 10px; }
.admin-ui .provider-selection-tools .field { margin-bottom: 10px; }
.admin-ui .provider-selection-tools .actions { gap: 8px; }
.admin-ui #provider-selection-count { margin: 10px 0 0; font-size: 12px; }
.admin-ui .provider-tree { max-height: 48vh; overflow: auto; overscroll-behavior: contain; border-block: 1px solid var(--line); padding-block: 8px; margin-bottom: 14px; }
.admin-ui .provider-branch > summary { display: flex; align-items: center; gap: 8px; padding: 12px 8px; cursor: pointer; list-style: none; border-radius: 10px; }
.admin-ui .provider-branch > summary::-webkit-details-marker { display: none; }
.admin-ui .provider-branch > summary:hover { background: var(--hover); }
.admin-ui .provider-expand { width: 28px; min-height: 32px; display: grid; place-items: center; text-align: center; font: 20px system-ui; color: var(--muted); flex-shrink: 0; }
.admin-ui .provider-branch[open] > summary .provider-expand { transform: rotate(-90deg); }
.admin-ui .provider-branch label { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; cursor: pointer; }
.admin-ui .provider-branch summary strong { font-size: 13px; overflow-wrap: anywhere; }
.admin-ui .provider-branch summary small { color: var(--muted); font-size: 10px; flex-shrink: 0; }
.admin-ui .provider-children { margin-inline-start: 14px; border-inline-start: 1px solid var(--line); padding-inline-start: 8px; }
.admin-ui .provider-service { display: flex; align-items: center; gap: 10px; padding: 12px 8px; cursor: pointer; }
.admin-ui .provider-service:hover { background: var(--hover); border-radius: 10px; }
.admin-ui .provider-service span { display: grid; gap: 4px; min-width: 0; }
.admin-ui .provider-service strong { font-size: 12px; font-weight: 500; overflow-wrap: anywhere; }
.admin-ui .provider-service small { color: var(--muted); font: 11px system-ui, sans-serif; }
.admin-ui .provider-tree input[type="checkbox"] { width: 18px; height: 18px; margin: 0; flex-shrink: 0; accent-color: var(--primary); }
.admin-ui .provider-tree [hidden] { display: none; }
.admin-ui .provider-binding-note { margin-block: 12px; font-size: 12px; color: var(--muted); }

.shop-ui .catalog-tile.unavailable .catalog-media { filter: grayscale(1); opacity: .65; }
.shop-ui .catalog-tile.unavailable { cursor: default; }
.shop-ui .catalog-unavailable { display: block; text-align: center; color: var(--muted); font-size: 12px; margin-top: 5px; }
.shop-ui .quantity-limits { display: block; margin: 6px 0 12px; color: var(--shop-text); opacity: .75; }

/* Contact actions stay above the store navigation in both themes. */
.shop-ui .shop-contact-fab { position: fixed; z-index: 50; left: max(16px, calc(50% - 200px)); bottom: calc(98px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.shop-ui .fab-toggle { position: relative; display: grid; place-items: center; width: 54px; height: 54px; padding: 0; border-radius: 50%; color: white; background: var(--primary); box-shadow: 0 6px 20px #0003; transition: transform .25s, background .25s; }
.shop-ui .fab-toggle:hover { transform: translateY(-2px); }
.shop-ui .fab-toggle .ui-icon { width: 25px; height: 25px; transition: opacity .2s, transform .25s; }
.shop-ui .fab-close { position: absolute; font-size: 32px; opacity: 0; transform: rotate(-90deg); transition: opacity .2s, transform .25s; }
.shop-ui .shop-contact-fab[data-open="true"] .fab-toggle .ui-icon { opacity: 0; transform: scale(.5); }
.shop-ui .shop-contact-fab[data-open="true"] .fab-close { opacity: 1; transform: rotate(0); }
.shop-ui .fab-links { display: flex; flex-direction: column; gap: 10px; max-height: min(60vh, 490px); overflow: auto; padding: 8px; margin: -8px; pointer-events: none; }
.shop-ui .fab-contact { display: flex; flex-direction: row-reverse; align-items: center; gap: 10px; text-decoration: none; color: var(--shop-text); opacity: 0; visibility: hidden; transform: translateY(16px) scale(.85); transition: opacity .2s, transform .25s, visibility .2s; transition-delay: 0s; }
.shop-ui .fab-contact span { background: var(--surface); padding: 7px 12px; border-radius: 12px; box-shadow: 0 3px 15px #0002; font-size: 12px; }
.shop-ui .fab-contact i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: white; background: var(--primary); box-shadow: 0 4px 14px #0002; }
.shop-ui .fab-contact .ui-icon { width: 22px; height: 22px; }
.shop-ui .shop-contact-fab[data-open="true"] .fab-links { pointer-events: auto; }
.shop-ui .shop-contact-fab[data-open="true"] .fab-contact { opacity: 1; visibility: visible; transform: translateY(0) scale(1); transition-delay: calc(var(--fab-index) * 35ms); }
.shop-ui .fab-whatsapp i { background: #168b4b; }
.shop-ui .fab-telegram i { background: #1683bb; }
.shop-ui .fab-instagram i { background: linear-gradient(140deg,#8535bd,#ce3269,#d98938); }
.shop-ui .fab-facebook i { background: #2466bf; }
.shop-ui .fab-youtube i { background: #c72828; }
.shop-ui .fab-discord i { background: #5865b9; }
.subscription-gate { text-align: center; padding-top: 36px; }
.subscription-logo { width: 64px; height: 64px; object-fit: contain; border-radius: 18px; }
.shop-ui .subscription-symbol { color: var(--shop-accent); margin: 12px auto; }
.shop-ui .subscription-symbol .ui-icon { width: 36px; height: 36px; }
.shop-ui .subscription-links { display: grid; gap: 10px; margin: 22px 0; }
.shop-ui .subscription-links a { display: flex; gap: 12px; align-items: center; background: var(--shop-subtle); color: var(--shop-text); padding: 14px; border-radius: 14px; text-decoration: none; text-align: start; }
.shop-ui .subscription-links a span { flex: 1; }
.shop-ui .subscription-links small { display: block; margin-top: 4px; opacity: .65; font-size: 11px; }
.shop-ui .subscription-verify { width: 100%; }
.shop-ui .subscription-error { font-size: 12px; color: var(--shop-text); }
.premium-emoji-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(140px,1fr)); gap: 12px; margin-top: 16px; }
.premium-emoji-card { display: grid; justify-items: center; gap: 8px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.premium-emoji-symbol { font-size: 34px; }
.premium-emoji-card > small { color: var(--primary); font-size: 11px; }
.premium-emoji-card > div { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.premium-emoji-card button { padding: 6px 9px; font-size: 11px; min-height: 32px; }
@media (prefers-reduced-motion: reduce) { .shop-ui .shop-contact-fab *, .shop-ui .fab-contact { transition: none; animation: none; } }

.shop-ui .shop-contact-fab { pointer-events: none; }
.shop-ui .fab-toggle { pointer-events: auto; }

.shop-ui .subscription-links .ui-icon { width: 22px; height: 22px; flex: 0 0 22px; }

.shop-ui .shop-contact-fab { direction: ltr; }
.shop-ui .fab-links { visibility: hidden; }
.shop-ui .shop-contact-fab[data-open="true"] .fab-links { visibility: visible; }
.shop-ui .fab-contact span { direction: rtl; }

/* Fixed MasterStore attribution and contact links. */
.nav .master-rights-nav { display:flex; align-items:center; gap:10px; margin:18px 0 8px; border:1px solid var(--primary); border-radius:14px; color:var(--primary); background:var(--surface); }
.master-rights-nav img { width:30px; height:30px; object-fit:contain; }
.master-rights-nav span { flex:1; text-align:start; }
.master-rights-nav small { font-size:20px; }
.master-contact-card { text-align:center; padding:20px 8px; color:inherit; }
.master-contact-card > img { width:80px; height:80px; object-fit:contain; margin:auto; }
.master-contact-card h3 { margin:16px 0 8px; }
.master-contact-card p { line-height:1.8; max-width:360px; margin:0 auto 12px; }
.master-contact-card small { opacity:.7; }
.master-contact-actions { display:flex; justify-content:center; gap:12px; flex-wrap:wrap; }
.master-contact-actions a { display:flex; align-items:center; justify-content:center; gap:8px; text-decoration:none; padding:12px 20px; border-radius:14px; background:#229ed9; color:white; font-weight:700; }
.master-contact-actions a:first-child { background:#128c7e; }
.master-contact-actions .ui-icon { width:22px; height:22px; }
.master-rights-note { text-align:center; line-height:1.8; }
.shop-ui .master-profile-button > img { width:38px; height:38px; object-fit:contain; }
.shop-ui .master-profile-button { color:var(--shop-text); }
