@font-face {
    font-family: "Vazirmatn";
    src: url("/static/fonts/Vazirmatn-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Vazirmatn";
    src: url("/static/fonts/Vazirmatn-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-a: #f6eeff;
    --bg-b: #ebfdff;
    --ink: #1f1238;
    --muted: #665a80;
    --primary: #7932dd;
    --primary-dark: #4d20ad;
    --accent: #43e6df;
    --line: rgba(108, 70, 165, 0.24);
    --line-strong: rgba(93, 53, 152, 0.36);
    --card: rgba(255, 255, 255, 0.62);
    --card-strong: rgba(255, 255, 255, 0.84);
    --shadow: 0 14px 32px rgba(43, 20, 85, 0.15);
    --shadow-soft: 0 8px 18px rgba(43, 20, 85, 0.09);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 12px;
    --toast-offset: calc(env(safe-area-inset-top, 0px) + 14px);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

body {
    font-family: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(74vw 52vw at -10% -20%, rgba(143, 74, 221, 0.18), transparent 58%),
        radial-gradient(64vw 52vw at 112% 0, rgba(67, 230, 223, 0.16), transparent 58%),
        linear-gradient(160deg, var(--bg-a), var(--bg-b));
    overflow-x: hidden;
    overscroll-behavior-x: none;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.bg-orb {
    position: fixed;
    pointer-events: none;
    border-radius: 999px;
    filter: blur(30px);
    z-index: -1;
    opacity: 0.6;
}

.orb-one {
    width: 280px;
    height: 280px;
    left: -80px;
    top: 120px;
    background: rgba(121, 58, 204, 0.24);
}

.orb-two {
    width: 260px;
    height: 260px;
    right: -90px;
    top: 340px;
    background: rgba(66, 227, 219, 0.22);
}

.container {
    width: min(1160px, calc(100% - 1.8rem));
    max-width: 100%;
    margin-inline: auto;
}

.topbar-main,
.topbar-actions,
.section-block,
.app-card,
.panel,
.page-body {
    min-width: 0;
}

.glass-shell {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.54);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-soft);
}

.glass-card {
    border: 1px solid var(--line);
    background: var(--card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-soft);
}

.topbar {
    position: sticky;
    top: 0.8rem;
    z-index: 30;
    border-radius: 20px;
    margin: 0.8rem auto 0;
    width: min(1160px, calc(100% - 1.2rem));
    isolation: isolate;
}

.topbar-main {
    display: grid;
    grid-template-columns: auto minmax(280px, 1fr) auto;
    align-items: center;
    gap: 0.62rem;
    padding: 0.7rem 0.74rem;
}

.topbar-main > * {
    min-width: 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    object-fit: cover;
    box-shadow: 0 8px 18px rgba(76, 34, 157, 0.24);
}

.brand-title {
    font-size: 1rem;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 0.38rem;
    border-radius: 12px;
    padding: 0.22rem;
}

.search-bar input,
.filter-bar input,
.filter-bar select,
.form-field input,
.form-field textarea,
.form-field select,
.qty-row input,
.inline-form input {
    width: 100%;
    border: 1px solid transparent;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.92);
    padding: 0.7rem 0.8rem;
    font: inherit;
    color: var(--ink);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.search-bar input:focus,
.filter-bar input:focus,
.filter-bar select:focus,
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus,
.qty-row input:focus,
.inline-form input:focus {
    outline: none;
    border-color: rgba(80, 33, 173, 0.55);
    box-shadow: 0 0 0 3px rgba(80, 33, 173, 0.14);
}

.search-bar button {
    width: 42px;
    height: 40px;
    border: 0;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(130deg, var(--primary-dark), var(--primary), var(--accent));
    cursor: pointer;
}

.search-bar button svg {
    width: 18px;
    height: 18px;
    fill: #fff;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.44rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.topbar-actions .btn {
    max-width: 100%;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    border: 1px solid transparent;
    padding: 0.6rem 0.88rem;
    font-weight: 700;
    line-height: 1.35;
    white-space: normal;
    text-align: center;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0) scale(0.985);
}

.btn-solid {
    color: #fff;
    background: linear-gradient(130deg, var(--primary-dark), var(--primary), var(--accent));
    box-shadow: 0 8px 18px rgba(80, 34, 172, 0.3);
}

.btn-vivid {
    color: #241443;
    border-color: rgba(47, 190, 182, 0.5);
    background: linear-gradient(130deg, #a5fbf7, #48e7e1);
    box-shadow: 0 8px 16px rgba(59, 219, 212, 0.24);
}

.btn-soft {
    border-color: var(--line);
    color: #2d1d53;
    background: rgba(255, 255, 255, 0.86);
}

.btn-ghost {
    border-color: var(--line);
    color: #47346f;
    background: rgba(255, 255, 255, 0.48);
}

.btn-disabled {
    border-color: var(--line);
    color: #8d95a8;
    background: #e8ebf3;
    cursor: not-allowed;
}

.btn-block {
    width: 100%;
}

.btn.is-loading {
    opacity: 0.78;
    pointer-events: none;
}

.cart-button {
    gap: 0.44rem;
    position: relative;
}

.cart-count {
    min-width: 1.45rem;
    height: 1.45rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.34rem;
    background: linear-gradient(130deg, var(--primary-dark), var(--primary));
    color: #fff;
    font-size: 0.76rem;
    box-shadow: 0 6px 14px rgba(81, 34, 173, 0.3);
}

.cart-button.is-bump {
    animation: cartBump .45s ease;
}

@keyframes cartBump {
    0% { transform: scale(1); }
    35% { transform: scale(1.09); }
    70% { transform: scale(0.97); }
    100% { transform: scale(1); }
}

.hide-mobile {
    display: inline-flex;
}

.nav-groups {
    display: grid;
    gap: 0.42rem;
    padding: 0 0 0.68rem;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    padding: 0 0.74rem;
}

.primary-nav::-webkit-scrollbar,
.category-nav::-webkit-scrollbar,
.app-dock::-webkit-scrollbar,
.campaign-layout::-webkit-scrollbar {
    display: none;
}

.nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.82);
    padding: 0.38rem 0.78rem;
    white-space: nowrap;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.28;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease;
}

.nav-pill-strong {
    border-color: rgba(90, 40, 178, 0.38);
    background: linear-gradient(120deg, rgba(131, 66, 208, 0.14), rgba(66, 231, 223, 0.12));
}

.nav-pill.is-active {
    color: #fff;
    border-color: rgba(53, 208, 199, 0.52);
    background: linear-gradient(130deg, rgba(89, 35, 181, 0.95), rgba(54, 219, 209, 0.95));
    box-shadow: 0 8px 16px rgba(81, 34, 173, 0.25);
    transform: translateY(-1px);
}

.category-nav {
    display: flex;
    align-items: center;
    gap: 0.38rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    padding: 0 0.74rem;
}

.cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.26rem;
    border-radius: 999px;
    border: 1px solid rgba(103, 63, 165, 0.24);
    background: rgba(255, 255, 255, 0.72);
    padding: 0.32rem 0.66rem;
    white-space: nowrap;
    font-size: 0.8rem;
    font-weight: 600;
    color: #402468;
}

.messages {
    margin-top: 1rem;
}

.toast-stack {
    position: fixed;
    top: var(--toast-offset);
    left: 50%;
    transform: translateX(-50%);
    width: min(520px, calc(100% - 1.2rem));
    max-width: 100%;
    display: grid;
    gap: 0.5rem;
    z-index: 999;
    pointer-events: none;
}

.toast-item {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 0.68rem 0.72rem;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: var(--shadow-soft);
    font-size: 0.86rem;
    line-height: 1.65;
    opacity: 0;
    transform: translateY(-9px) scale(0.985);
    transition: opacity .22s ease, transform .22s ease;
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 0.62rem;
    align-items: start;
    position: relative;
    overflow: hidden;
}

.toast-item.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.toast-icon {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(113, 70, 175, 0.24);
}

.toast-body {
    display: grid;
    gap: 0.12rem;
}

.toast-title {
    font-size: 0.83rem;
    line-height: 1.4;
}

.toast-text {
    font-size: 0.86rem;
    color: #3e2a67;
}

.toast-progress {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 3px;
    transform-origin: right center;
    animation: toastLife var(--toast-life, 3000ms) linear forwards;
}

@keyframes toastLife {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

.toast-success {
    border-color: rgba(47, 193, 167, 0.42);
    background: linear-gradient(145deg, rgba(237, 255, 249, 0.92), rgba(255, 255, 255, 0.9));
}

.toast-success .toast-progress {
    background: linear-gradient(90deg, rgba(58, 215, 177, 0.9), rgba(71, 231, 223, 0.92));
}

.toast-error {
    border-color: rgba(228, 75, 68, 0.4);
    background: linear-gradient(145deg, rgba(255, 238, 237, 0.94), rgba(255, 255, 255, 0.9));
}

.toast-error .toast-progress {
    background: linear-gradient(90deg, rgba(232, 89, 80, 0.9), rgba(247, 156, 84, 0.92));
}

.toast-info {
    border-color: rgba(112, 72, 185, 0.34);
    background: linear-gradient(145deg, rgba(244, 238, 255, 0.92), rgba(255, 255, 255, 0.9));
}

.toast-info .toast-progress {
    background: linear-gradient(90deg, rgba(119, 74, 202, 0.9), rgba(73, 221, 212, 0.92));
}

.cart-fly-dot {
    position: fixed;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    pointer-events: none;
    z-index: 1000;
    background: radial-gradient(circle at 30% 30%, #b6fffb, #43e6df 65%, #4d20ad);
    box-shadow: 0 0 0 4px rgba(67, 230, 223, 0.16);
}

.alert {
    border-radius: 12px;
    padding: 0.72rem 0.9rem;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.86);
    margin-bottom: 0.5rem;
}

.alert-success {
    border-color: rgba(54, 199, 190, 0.4);
    background: rgba(227, 255, 252, 0.9);
}

.alert-error {
    border-color: rgba(231, 76, 60, 0.34);
    background: rgba(255, 238, 236, 0.9);
}

.alert-warning {
    border-color: rgba(255, 168, 36, 0.38);
    background: rgba(255, 248, 233, 0.9);
}

.page-body {
    padding: 1.2rem 0 2.2rem;
}

.hero-shell {
    border-radius: var(--radius-xl);
    padding: 1.25rem 1.15rem;
    background:
        radial-gradient(circle at 12% 0%, rgba(144, 82, 226, 0.24), transparent 44%),
        radial-gradient(circle at 88% 100%, rgba(66, 233, 224, 0.18), transparent 36%),
        rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    max-width: 980px;
    margin-inline: auto;
}

.hero-centered {
    text-align: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.28rem 0.66rem;
    font-size: 0.8rem;
    color: #f5f0ff;
    background: linear-gradient(130deg, var(--primary-dark), var(--primary));
}

.hero-shell h1 {
    margin: 0.6rem 0 0.6rem;
    font-size: clamp(1.35rem, 2.9vw, 2.1rem);
    line-height: 1.5;
}

.hero-shell p {
    margin: 0;
    color: var(--muted);
    line-height: 1.9;
}

.hero-actions {
    margin-top: 0.95rem;
    display: flex;
    gap: 0.52rem;
    flex-wrap: wrap;
    align-items: center;
}

.hero-actions-centered {
    justify-content: center;
}

.section-block {
    margin-top: 1rem;
    border-radius: var(--radius-lg);
    padding: 1.02rem;
    border: 1px solid var(--line);
    background: var(--card);
}

.page-body > .section-block:first-child {
    margin-top: 0;
}

.page-body > section[id] {
    scroll-margin-top: 138px;
}

.section-block.tight {
    padding: 1rem 1.12rem;
}

@supports (content-visibility: auto) {
    .defer-render {
        content-visibility: auto;
        contain-intrinsic-size: 560px;
    }
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 0.8rem;
}

.section-head > * {
    min-width: 0;
}

.section-head h1,
.section-head h2,
.section-head h3,
.section-block h1,
.section-block h2 {
    margin: 0;
}

.section-head a {
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 0.9rem;
}

.muted-section,
.faq-area-soft {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(111, 71, 168, 0.2);
}

.campaign-layout {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 0.7rem;
    align-items: stretch;
}

.campaign-card {
    grid-column: span 4;
    min-height: 220px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.88);
    overflow: hidden;
    display: grid;
    grid-template-rows: 128px auto;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.campaign-card-featured {
    grid-column: span 8;
}

.campaign-card:hover {
    transform: translateY(-2px);
    border-color: rgba(92, 46, 176, 0.36);
    box-shadow: var(--shadow-soft);
}

.campaign-media {
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
    background-size: cover;
    background-position: center;
}

.campaign-content {
    padding: 0.78rem 0.82rem 0.86rem;
    display: grid;
    gap: 0.42rem;
    color: var(--ink);
}

.campaign-kicker {
    justify-self: start;
    border-radius: 999px;
    padding: 0.22rem 0.54rem;
    font-size: 0.72rem;
    color: #fff;
    background: linear-gradient(130deg, rgba(72, 31, 152, 0.95), rgba(67, 217, 210, 0.95));
}

.campaign-card h3 {
    margin: 0;
    font-size: 1rem;
}

.campaign-card p {
    margin: 0;
    line-height: 1.72;
    color: var(--muted);
    font-size: 0.85rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.banner-cta {
    justify-self: start;
    border-radius: 999px;
    padding: 0.28rem 0.64rem;
    background: rgba(122, 52, 220, 0.12);
    border: 1px solid rgba(122, 52, 220, 0.2);
    color: var(--primary-dark);
    font-size: 0.81rem;
    font-weight: 700;
}

.app-dock {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(128px, 1fr);
    overflow-x: auto;
    gap: 0.56rem;
}

.dock-item {
    border: 1px solid var(--line);
    background: var(--card-strong);
    border-radius: 16px;
    padding: 0.7rem;
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 0.3rem;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.dock-item:hover {
    transform: translateY(-2px);
    border-color: rgba(88, 42, 168, 0.34);
    box-shadow: var(--shadow-soft);
}

.dock-item strong {
    font-size: 0.82rem;
    line-height: 1.45;
}

.dock-item small {
    color: var(--muted);
    font-size: 0.74rem;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(214px, 1fr));
    gap: 0.78rem;
    align-items: stretch;
}

.app-card {
    border-radius: 16px;
    padding: 0.88rem;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 0.58rem;
    border: 1px solid var(--line);
    background: var(--card-strong);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
    min-height: 100%;
}

.app-card:hover {
    transform: translateY(-2px);
    border-color: rgba(89, 44, 170, 0.33);
    box-shadow: 0 12px 24px rgba(64, 26, 129, 0.1);
}

.app-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(145deg, #ffffff, #eef0ff);
    border: 1px solid rgba(123, 92, 173, 0.32);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.app-icon span {
    font-weight: 800;
    color: #4e268f;
    font-size: 1.28rem;
}

.app-icon img {
    width: 72%;
    height: 72%;
    object-fit: contain;
}

.dock-icon {
    width: 58px;
    height: 58px;
}

.app-content h3 {
    margin: 0;
    font-size: 0.96rem;
    overflow-wrap: anywhere;
}

.app-content p {
    margin: 0.3rem 0;
    font-size: 0.86rem;
    line-height: 1.72;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.app-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.45rem;
}

.pill {
    border-radius: 999px;
    background: rgba(121, 51, 219, 0.12);
    border: 1px solid rgba(121, 51, 219, 0.2);
    color: var(--primary-dark);
    padding: 0.18rem 0.5rem;
    font-size: 0.74rem;
    white-space: nowrap;
}

.quick-add-form {
    margin-top: auto;
}

.trust-grid {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.74rem;
}

.trust-item {
    border-radius: 16px;
    padding: 0.9rem;
    background: rgba(255, 255, 255, 0.58);
}

.trust-item h3 {
    margin: 0 0 0.36rem;
    font-size: 0.95rem;
}

.trust-item p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.request-shell {
    padding: 0.95rem;
}

.request-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.72rem;
    align-items: stretch;
}

.request-centered .request-panel,
.request-centered .request-assistant .ai-helper-box {
    text-align: center;
}

.request-centered .form-grid {
    max-width: 620px;
    margin-inline: auto;
}

.request-centered .form-field label {
    text-align: right;
}

.request-lead {
    margin: 0 0 0.36rem;
    font-weight: 700;
    color: #2f1b53;
    line-height: 1.9;
}

.faq-accordion {
    display: grid;
    gap: 0.62rem;
}

.faq-accordion-item {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.8);
    overflow: hidden;
}

.faq-toggle {
    width: 100%;
    border: 0;
    border-bottom: 1px solid transparent;
    padding: 0.84rem 0.9rem;
    background: transparent;
    text-align: right;
    font: inherit;
    font-weight: 700;
    font-size: 0.96rem;
    color: var(--ink);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.faq-toggle-label {
    font-size: 0.84rem;
    color: var(--primary-dark);
    white-space: nowrap;
}

.faq-answer {
    padding: 0 0.9rem 0.88rem;
}

.faq-answer p {
    margin: 0;
    color: var(--muted);
    line-height: 1.9;
    font-size: 0.93rem;
}

.faq-accordion-item.is-open .faq-toggle {
    border-bottom-color: var(--line);
}

.faq-theme-payment {
    border-color: rgba(121, 62, 210, 0.34);
    background: linear-gradient(145deg, rgba(246, 238, 255, 0.86), rgba(255, 255, 255, 0.86));
}

.faq-theme-delivery {
    border-color: rgba(49, 187, 179, 0.34);
    background: linear-gradient(145deg, rgba(229, 255, 252, 0.84), rgba(255, 255, 255, 0.84));
}

.faq-theme-region {
    border-color: rgba(86, 53, 173, 0.34);
    background: linear-gradient(145deg, rgba(241, 235, 255, 0.84), rgba(255, 255, 255, 0.85));
}

.ai-helper-box .section-head {
    margin-bottom: 0.3rem;
    justify-content: center;
}

.ai-helper-form {
    display: grid;
    gap: 0.44rem;
    margin-top: 0.64rem;
}

.ai-helper-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.58rem;
}

.ai-status {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid rgba(88, 44, 168, 0.28);
    background: rgba(255, 255, 255, 0.82);
    padding: 0.18rem 0.56rem;
    font-size: 0.78rem;
    color: #43246d;
}

.ai-clear-btn {
    padding: 0.38rem 0.66rem;
    font-size: 0.78rem;
}

.ai-helper-output {
    margin-top: 0.66rem;
    display: grid;
    gap: 0.42rem;
}

.ai-quick-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.38rem;
    margin-top: 0.5rem;
}

.ai-quick-btn {
    border: 1px solid rgba(100, 61, 165, 0.24);
    background: rgba(255, 255, 255, 0.82);
    color: #39235f;
    border-radius: 999px;
    padding: 0.28rem 0.62rem;
    font: inherit;
    font-size: 0.78rem;
    cursor: pointer;
}

.ai-chat-log {
    display: grid;
    gap: 0.42rem;
    max-height: 290px;
    overflow-y: auto;
    padding-inline-end: 0.2rem;
}

.ai-message {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.6rem 0.68rem;
    font-size: 0.87rem;
    line-height: 1.8;
    background: rgba(255, 255, 255, 0.76);
    white-space: pre-line;
    animation: popIn .22s ease;
}

.ai-message.user {
    border-color: rgba(94, 44, 176, 0.35);
    background: rgba(246, 237, 255, 0.72);
}

.ai-message.bot {
    border-color: rgba(45, 197, 190, 0.34);
    background: rgba(232, 255, 252, 0.72);
}

.ai-message.error-state {
    border-color: rgba(224, 84, 75, 0.35);
}

.ai-message.is-typing::after {
    content: "";
    display: inline-block;
    width: 0.42rem;
    height: 0.92rem;
    margin-right: 0.2rem;
    background: rgba(69, 41, 125, 0.7);
    animation: aiCursor .7s steps(1, end) infinite;
    vertical-align: text-bottom;
}

@keyframes aiCursor {
    0%, 48% { opacity: 1; }
    49%, 100% { opacity: 0; }
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-bar {
    display: grid;
    grid-template-columns: 1fr 240px auto;
    gap: 0.55rem;
}

.product-head {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 1rem;
    align-items: start;
}

.product-highlight {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.72);
    border-radius: 16px;
    padding: 0.9rem;
    text-align: center;
    display: grid;
    justify-items: center;
    gap: 0.3rem;
}

.product-highlight strong {
    display: block;
    margin: 0.05rem 0;
    font-size: 1.5rem;
}

.product-logo {
    width: 72px;
    height: 72px;
}

.option-list {
    display: grid;
    gap: 0.7rem;
}

.option-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
    padding: 0.86rem;
    display: grid;
    grid-template-columns: 1fr 250px;
    gap: 0.76rem;
    align-items: center;
}

.option-card h3 {
    margin: 0 0 0.22rem;
}

.option-card p {
    margin: 0.2rem 0;
    color: var(--muted);
}

.option-buy {
    display: grid;
    gap: 0.45rem;
}

.qty-row {
    display: grid;
    grid-template-columns: 50px 1fr;
    align-items: center;
    gap: 0.4rem;
}

.option-disabled {
    opacity: 0.64;
}

.cart-list {
    display: grid;
    gap: 0.7rem;
}

.cart-item {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
    padding: 0.85rem;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 0.8rem;
    align-items: center;
}

.cart-item h3 {
    margin: 0;
}

.cart-item p {
    margin: 0.26rem 0;
    color: var(--muted);
}

.cart-controls {
    display: grid;
    gap: 0.4rem;
}

.inline-form {
    display: flex;
    gap: 0.35rem;
}

.inline-form input {
    width: 90px;
}

.checkout-box {
    margin-top: 0.84rem;
    border-top: 1px dashed var(--line-strong);
    padding-top: 0.84rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.empty-box {
    text-align: center;
    padding: 1.4rem;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 0.8rem;
}

.checkout-grid > aside .section-block {
    margin-top: 0;
}

.panel {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
    padding: 0.9rem;
}

.form-grid {
    display: grid;
    gap: 0.66rem;
}

.form-field {
    display: grid;
    gap: 0.32rem;
}

.auth-box {
    max-width: 520px;
    margin-inline: auto;
    text-align: center;
}

.auth-box .form-grid {
    margin-top: 0.8rem;
    text-align: right;
}

.auth-box .form-field {
    gap: 0.42rem;
}

.auth-box label {
    margin-right: 0.12rem;
    font-size: 0.9rem;
    color: #412a68;
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: 0.9rem 0;
    color: var(--muted);
    font-size: 0.84rem;
}

.auth-divider::before {
    content: "";
    position: absolute;
    inset: 50% 0 auto;
    border-top: 1px solid var(--line);
    z-index: 0;
}

.auth-divider span {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.9);
    padding: 0 0.5rem;
}

.btn-google {
    border-color: rgba(104, 65, 168, 0.38);
    background: rgba(255, 255, 255, 0.93);
    color: #322151;
    font-weight: 700;
}

.orders-table {
    display: grid;
    gap: 0.5rem;
}

.order-row {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
    padding: 0.72rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.36rem;
    font-size: 0.9rem;
}

.ticket-thread {
    display: grid;
    gap: 0.54rem;
}

.ticket-msg {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.76);
    padding: 0.66rem 0.8rem;
}

.ticket-msg header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.46rem;
    margin-bottom: 0.3rem;
    font-size: 0.82rem;
    color: #3e2a67;
}

.ticket-msg p {
    margin: 0;
    line-height: 1.85;
}

.ticket-msg.customer {
    border-color: rgba(121, 52, 219, 0.32);
    background: rgba(242, 233, 255, 0.72);
}

.ticket-msg.staff {
    border-color: rgba(29, 186, 150, 0.3);
    background: rgba(233, 252, 246, 0.76);
}

.ticket-msg.ai {
    border-color: rgba(146, 96, 221, 0.3);
    background: rgba(244, 238, 255, 0.76);
}

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

.note-list {
    margin: 0;
    padding-right: 1.05rem;
    display: grid;
    gap: 0.4rem;
    color: var(--muted);
    line-height: 1.82;
    font-size: 0.87rem;
}

.error {
    color: #cf2738;
    font-size: 0.82rem;
}

.muted {
    color: var(--muted);
}

.site-footer {
    border-radius: 22px;
    margin: 0 auto 1.2rem;
    width: min(1160px, calc(100% - 1.2rem));
    padding: 1.02rem 0 1.18rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr 1fr;
    gap: 0.9rem;
}

.footer-grid h4 {
    margin: 0 0 0.45rem;
}

.footer-grid p {
    margin: 0.3rem 0;
    color: var(--muted);
    line-height: 1.78;
}

.footer-grid a {
    display: block;
    margin-bottom: 0.32rem;
    color: #472a7c;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(110, 68, 176, 0.28);
    background: rgba(255, 255, 255, 0.78);
    padding: 0.26rem 0.64rem;
    margin-left: 0.38rem;
    margin-top: 0.26rem;
    font-size: 0.82rem;
    color: #402866;
}

.support-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.2rem;
}

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

@media (max-width: 1040px) {
    .topbar {
        position: static;
        top: auto;
    }

    .page-body > section[id] {
        scroll-margin-top: 24px;
    }

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

    .topbar-actions {
        grid-column: 1 / -1;
        justify-content: space-between;
    }

    .hide-mobile {
        display: none;
    }

    .campaign-layout,
    .request-grid,
    .checkout-grid,
    .option-card,
    .trust-grid,
    .product-details-grid,
    .product-head,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .campaign-card,
    .campaign-card-featured {
        grid-column: span 12;
    }

    .filter-bar {
        grid-template-columns: 1fr;
    }

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

    .glass-shell,
    .glass-card {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

@media (max-width: 760px) {
    .container {
        width: calc(100% - 1.1rem);
    }

    .topbar {
        position: static;
        width: calc(100% - 0.8rem);
    }

    .topbar-main {
        grid-template-columns: 1fr;
        gap: 0.52rem;
        padding: 0.64rem;
    }

    .brand {
        justify-content: center;
    }

    .topbar-actions {
        grid-column: auto;
        justify-content: stretch;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        gap: 0.44rem;
    }

    .topbar-actions .btn {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 0.82rem;
        padding: 0.55rem 0.45rem;
    }

    .primary-nav {
        padding: 0 0.5rem;
    }

    .category-nav {
        padding: 0 0.5rem;
    }

    .hero-shell {
        padding: 0.92rem;
    }

    .hero-shell h1 {
        font-size: 1.34rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-actions .btn {
        min-width: 154px;
    }

    .support-links {
        justify-content: center;
    }

    .app-grid {
        grid-template-columns: 1fr;
    }

    .toast-stack {
        top: auto;
        bottom: calc(env(safe-area-inset-bottom, 0px) + 0.52rem);
        width: calc(100% - 0.8rem);
    }

    .cart-item {
        grid-template-columns: 1fr;
    }

    .site-footer {
        width: calc(100% - 0.8rem);
        border-radius: 16px;
    }

    .bg-orb {
        display: none;
    }

    .glass-shell,
    .glass-card {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    body {
        background: linear-gradient(180deg, #f6eeff, #ebfdff);
    }

    .btn,
    .app-card,
    .dock-item,
    .campaign-card {
        transition: none;
    }

    .app-card,
    .dock-item,
    .campaign-card,
    .trust-item,
    .panel,
    .topbar,
    .site-footer {
        box-shadow: none;
    }
}

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

    .hero-actions .btn {
        min-width: 0;
        width: 100%;
    }
}
