:root {
    --orange: #ff5a36;
    --orange-dark: #e84120;
    --orange-soft: #fff1ec;
    --ink: #20221f;
    --muted: #777b74;
    --line: #e8e9e5;
    --paper: #ffffff;
    --canvas: #f7f7f4;
    --green: #168a59;
    --radius: 18px;
    --shadow: 0 18px 55px rgba(32, 34, 31, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--canvas);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.narrow-page { max-width: 1080px; }
.page-space { padding-top: 42px; padding-bottom: 90px; }
.eyebrow {
    display: block;
    margin-bottom: 10px;
    color: rgba(255,255,255,.7);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .18em;
}
.eyebrow.dark { color: var(--orange); }
.topbar { color: #cfd2cb; background: #262824; font-size: 12px; }
.topbar-inner { height: 34px; display: flex; align-items: center; justify-content: space-between; }
.topbar-links { display: flex; gap: 24px; }
.topbar a:hover { color: #fff; }
.site-header {
    position: sticky;
    z-index: 50;
    top: 0;
    border-bottom: 1px solid rgba(0,0,0,.05);
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(16px);
}
.header-main { min-height: 78px; display: flex; align-items: center; gap: 36px; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; gap: 10px; }
.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    color: #fff;
    border-radius: 13px 4px 13px 13px;
    background: var(--orange);
    box-shadow: 0 8px 20px rgba(255,90,54,.24);
    font-size: 21px;
    font-weight: 900;
}
.brand strong { display: block; font-size: 21px; line-height: 1.1; letter-spacing: .06em; }
.brand small { display: block; margin-top: 4px; color: #a1a39f; font-size: 10px; letter-spacing: .08em; }
.header-search {
    height: 46px;
    display: flex;
    flex: 1 1 420px;
    max-width: 520px;
    margin-left: auto;
    padding: 3px;
    border: 2px solid var(--orange);
    border-radius: 24px;
    background: #fff;
}
.header-search input {
    min-width: 0;
    flex: 1;
    padding: 0 17px;
    border: 0;
    outline: 0;
    background: transparent;
}
.header-search button {
    width: 78px;
    color: #fff;
    border: 0;
    border-radius: 19px;
    background: var(--orange);
    font-weight: 700;
}
.header-search button:hover { background: var(--orange-dark); }
.header-actions { display: flex; align-items: center; gap: 18px; white-space: nowrap; font-size: 13px; }
.header-actions a:hover, .link-button:hover { color: var(--orange); }
.header-actions form { display: inline; margin: 0; }
.link-button { padding: 0; color: var(--ink); border: 0; background: none; }
.user-greeting { display: flex; align-items: center; gap: 8px; }
.user-greeting .avatar {
    width: 32px; height: 32px; display: grid; place-items: center;
    color: var(--orange); border-radius: 50%; background: var(--orange-soft); font-weight: 800;
}
.user-greeting span:last-child { display: grid; line-height: 1.15; font-weight: 700; }
.user-greeting small { color: #aaa; font-size: 10px; font-weight: 400; }
.cart-link { padding: 9px 13px; border-radius: 10px; background: #f5f5f2; }
.cart-link b {
    min-width: 19px; height: 19px; display: inline-grid; place-items: center; margin-left: 4px;
    color: #fff; border-radius: 10px; background: var(--orange); font-size: 10px;
}
.flash-wrap { position: relative; z-index: 60; }
.flash {
    position: absolute;
    top: 16px;
    right: 0;
    max-width: 520px;
    padding: 13px 18px;
    border: 1px solid;
    border-radius: 12px;
    box-shadow: var(--shadow);
    background: #fff;
    font-weight: 650;
}
.flash-success { color: #116c46; border-color: #b8e4d0; }
.flash-error { color: #b62c1b; border-color: #f1b8af; }

.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 8% 10%, rgba(255,255,255,.10), transparent 27%),
        linear-gradient(128deg, #2b2d28 0%, #20221f 58%, #35372f 100%);
}
.hero::after {
    content: "";
    position: absolute;
    right: -180px;
    bottom: -260px;
    width: 560px;
    height: 560px;
    border-radius: 50%;
    background: rgba(255,90,54,.12);
}
.hero-inner { min-height: 530px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; }
.hero-copy { position: relative; z-index: 2; padding: 70px 0 78px; }
.hero h1 { margin: 0 0 20px; font-size: clamp(44px, 5vw, 68px); line-height: 1.12; letter-spacing: -.06em; }
.hero h1 em { color: #ff7657; font-style: normal; }
.hero-copy > p { max-width: 520px; margin: 0; color: #bcc0b8; font-size: 18px; }
.hero-actions { display: flex; gap: 12px; margin-top: 34px; }
.button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-weight: 750;
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; border-color: var(--orange); background: var(--orange); box-shadow: 0 10px 24px rgba(255,90,54,.18); }
.button-primary:hover { border-color: var(--orange-dark); background: var(--orange-dark); }
.button-primary:disabled { cursor: not-allowed; opacity: .45; transform: none; }
.button-light { color: var(--ink); border-color: #e7e8e4; background: #fff; }
.button-light:hover { border-color: #d4d6d0; background: #fafaf8; }
.button-outline { color: var(--orange); border-color: #ffc5b7; background: #fff; }
.button-white { color: var(--orange); background: #fff; }
.button-large { min-height: 52px; padding: 0 28px; border-radius: 12px; }
.button-block { width: 100%; }
.hero .button-light { color: #fff; border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.07); }
.hero-trust { display: flex; gap: 28px; margin-top: 40px; color: #aeb2aa; font-size: 12px; }
.hero-trust b { color: #ff7657; }
.hero-showcase { position: relative; z-index: 2; height: 430px; }
.showcase-orbit { position: absolute; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; }
.orbit-one { width: 390px; height: 390px; top: 16px; left: 62px; }
.orbit-two { width: 280px; height: 280px; top: 72px; left: 116px; }
.showcase-card {
    position: absolute;
    top: 86px;
    left: 135px;
    width: 240px;
    height: 280px;
    padding: 32px;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 30px 8px 30px 30px;
    background: linear-gradient(145deg, #ff7454, #e94321);
    box-shadow: 0 36px 70px rgba(0,0,0,.3);
    transform: rotate(-4deg);
}
.showcase-card > span { padding: 5px 9px; border: 1px solid rgba(255,255,255,.3); border-radius: 15px; font-size: 11px; }
.showcase-card strong { display: block; margin-top: 34px; font-size: 34px; line-height: 1.2; letter-spacing: -.06em; }
.showcase-card small { position: absolute; bottom: 28px; left: 32px; color: rgba(255,255,255,.7); }
.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 16px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px;
    background: rgba(255,255,255,.1);
    box-shadow: 0 16px 40px rgba(0,0,0,.18);
    backdrop-filter: blur(12px);
    font-size: 12px;
    line-height: 1.25;
}
.floating-card i { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: rgba(255,255,255,.14); font-style: normal; font-weight: 800; }
.floating-card b { color: #ff8a70; }
.float-one { left: 18px; bottom: 58px; }
.float-two { top: 30px; right: 0; }
.floating-dot { position: absolute; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 8px rgba(255,90,54,.1); }
.dot-one { width: 13px; height: 13px; top: 52px; left: 68px; }
.dot-two { width: 8px; height: 8px; right: 35px; bottom: 72px; }

.hero-order-showcase { display: grid; place-items: center; }
.hero-order-showcase .orbit-one { left: 42px; opacity: .6; }
.hero-order-showcase .orbit-two { left: 98px; opacity: .55; }
.hero-live-orders {
    position: relative;
    z-index: 3;
    width: min(100%,390px);
    padding: 18px;
    overflow: hidden;
    color: #fff;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 22px;
    background:
        radial-gradient(circle at 100% 0, rgba(255,90,54,.2), transparent 36%),
        rgba(19,21,18,.78);
    box-shadow: 0 30px 70px rgba(0,0,0,.28);
    backdrop-filter: blur(16px);
}
.hero-live-orders::after {
    content: "";
    position: absolute;
    right: -74px;
    bottom: -92px;
    width: 190px;
    height: 190px;
    border: 1px solid rgba(255,255,255,.05);
    border-radius: 50%;
    box-shadow: 0 0 0 34px rgba(255,255,255,.018);
    pointer-events: none;
}
.hero-live-orders-header,
.hero-live-orders-footer {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.hero-live-orders-header { padding: 2px 2px 14px; border-bottom: 1px solid rgba(255,255,255,.09); }
.hero-live-orders-header > div > span { display: block; margin-bottom: 5px; color: #ff8165; font-size: 8px; font-weight: 850; letter-spacing: .2em; }
.hero-live-orders-header h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 20px; letter-spacing: -.035em; }
.hero-live-orders-header h2 i {
    width: 8px;
    height: 8px;
    display: inline-block;
    border-radius: 50%;
    background: #35c17c;
    box-shadow: 0 0 0 0 rgba(53,193,124,.38);
    animation: livePulse 1.8s infinite;
}
.hero-live-orders-header > small {
    padding: 7px 9px;
    color: #a7aba2;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 9px;
    background: rgba(255,255,255,.04);
    font-size: 9px;
    white-space: nowrap;
}
.hero-live-orders-viewport {
    position: relative;
    z-index: 2;
    height: 274px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 12px 0;
    overflow: hidden;
}
.hero-live-order-row {
    position: relative;
    z-index: 1;
    min-width: 0;
    height: 50px;
    min-height: 50px;
    flex: 0 0 50px;
    display: grid;
    grid-template-columns: 6px minmax(0,1fr) auto;
    align-items: center;
    gap: 9px;
    padding: 7px 10px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 11px;
    background: rgba(255,255,255,.055);
    opacity: 1;
    transform: translateY(0);
    transition:
        height .42s cubic-bezier(.22,.8,.32,1),
        min-height .42s cubic-bezier(.22,.8,.32,1),
        flex-basis .42s cubic-bezier(.22,.8,.32,1),
        padding .42s cubic-bezier(.22,.8,.32,1),
        opacity .32s ease,
        transform .42s cubic-bezier(.22,.8,.32,1),
        border-color .32s ease;
}
.hero-live-order-row.is-entering {
    height: 0;
    min-height: 0;
    flex-basis: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-color: transparent;
    opacity: 0;
    transform: translateY(-14px);
}
.hero-live-order-row.is-buffered { display: none; }
.hero-live-order-dot {
    width: 5px;
    height: 5px;
    display: block;
    border-radius: 50%;
    background: #35c17c;
    box-shadow: 0 0 0 3px rgba(53,193,124,.08);
}
.hero-live-order-copy,
.hero-live-order-side { min-width: 0; display: grid; }
.hero-live-order-copy { gap: 2px; }
.hero-live-order-copy strong {
    overflow: hidden;
    color: #f5f6f3;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    line-height: 1.2;
}
.hero-live-order-copy small {
    overflow: hidden;
    color: #777c73;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 8px;
    font-variant-numeric: tabular-nums;
}
.hero-live-order-side { justify-items: end; gap: 2px; }
.hero-live-order-side b { color: #ff795b; font-size: 14px; line-height: 1.1; white-space: nowrap; }
.hero-live-order-side time { color: #7f847b; font-size: 8px; white-space: nowrap; }
.hero-live-order-empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    border: 1px dashed rgba(255,255,255,.11);
    border-radius: 15px;
    color: #dfe2da;
    background: rgba(255,255,255,.025);
    opacity: 1;
}
.hero-live-order-empty > span { position: relative; width: 46px; height: 46px; display: grid; place-items: center; }
.hero-live-order-empty > span i { position: absolute; inset: 0; border: 1px solid rgba(255,121,91,.22); border-radius: 50%; animation: liveRadar 2s infinite; }
.hero-live-order-empty > span b { position: relative; z-index: 1; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 10px 4px 10px 10px; background: var(--orange); font-size: 11px; }
.hero-live-order-empty > div { display: grid; gap: 3px; }
.hero-live-order-empty strong { font-size: 14px; }
.hero-live-order-empty small { color: #7f837b; font-size: 9px; }
.hero-live-orders-footer { color: #737870; font-size: 9px; }
.hero-live-orders-footer > span b { color: #b9bdb5; font-weight: 800; }
.hero-live-orders-footer small { color: #8f948b; }
.hero-live-orders-footer small b { display: inline-block; margin-left: 3px; color: #ff795b; animation: liveArrow 1.4s ease infinite; }
@keyframes livePulse {
    70% { box-shadow: 0 0 0 8px rgba(37,168,108,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,168,108,0); }
}
@keyframes liveRadar { 70%,100% { opacity: 0; transform: scale(1.35); } }
@keyframes liveArrow { 50% { transform: translateY(3px); } }

.category-section { padding-top: 62px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 26px; }
.section-heading.compact { margin-bottom: 20px; }
.section-heading h2, .page-heading h1 { margin: 0; font-size: 30px; line-height: 1.2; letter-spacing: -.035em; }
.section-heading p, .section-heading a { margin: 0; color: var(--muted); font-size: 13px; }
.category-list { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.category-list a {
    min-height: 105px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 9px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fff;
    transition: .2s ease;
}
.category-list a:hover, .category-list a.active { color: var(--orange); border-color: #ffc5b7; box-shadow: 0 12px 30px rgba(47,48,44,.07); transform: translateY(-2px); }
.category-list span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; background: #f5f5f1; font-size: 17px; font-weight: 800; }
.category-list a.active span { color: #fff; background: var(--orange); }
.category-list b { font-size: 13px; }
.products-section { padding-top: 72px; padding-bottom: 100px; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: .22s ease; }
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.product-image { position: relative; height: 250px; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; }
.product-image > span, .product-detail-image > span { font-size: 64px; font-weight: 900; opacity: .75; text-shadow: 0 10px 30px rgba(0,0,0,.08); }
.product-image > small, .product-detail-image > small { margin-top: 5px; padding: 4px 10px; border: 1px solid rgba(0,0,0,.06); border-radius: 14px; font-size: 10px; letter-spacing: .13em; }
.product-image img, .product-detail-image img { width: 100%; height: 100%; object-fit: cover; }
.sale-tag { position: absolute; top: 14px; left: 14px; padding: 4px 9px; color: #fff; border-radius: 5px; background: var(--orange); font-size: 10px; }
.tone-1 { color: #67543a; background: linear-gradient(145deg, #eee6d8, #ddd0bb); }
.tone-2 { color: #31596b; background: linear-gradient(145deg, #e0edf0, #c5dfe3); }
.tone-3 { color: #855550; background: linear-gradient(145deg, #f2e0dc, #e8c8c1); }
.tone-4 { color: #5b673c; background: linear-gradient(145deg, #e6ead8, #d3dbbd); }
.tone-5 { color: #725172; background: linear-gradient(145deg, #ede1ed, #dac7da); }
.tone-6 { color: #696239; background: linear-gradient(145deg, #f0ebd4, #e5dba9); }
.product-info { padding: 17px 18px 18px; }
.product-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; font-weight: 720; }
.product-name:hover { color: var(--orange); }
.product-shop { margin-top: 8px; color: #8f928c; font-size: 12px; }
.product-shop span { color: var(--orange); }
.product-meta { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 14px; }
.product-meta .price { color: var(--orange); font-size: 23px; font-weight: 850; line-height: 1; }
.product-meta .price small { font-size: 13px; }
.product-meta > span { color: #a2a49f; font-size: 11px; }
.merchant-banner { color: #fff; background: var(--orange); }
.merchant-banner-inner { min-height: 230px; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.merchant-banner h2 { margin: 0 0 10px; font-size: 34px; letter-spacing: -.04em; }
.merchant-banner p { margin: 0; color: rgba(255,255,255,.78); }
.empty-state { padding: 70px 24px; text-align: center; }
.empty-state.large { padding: 110px 24px; border: 1px dashed #dadbd6; border-radius: var(--radius); background: #fff; }
.empty-state > span { min-width: 70px; height: 70px; display: inline-grid; place-items: center; color: var(--orange); border-radius: 22px; background: var(--orange-soft); font-size: 25px; font-weight: 850; }
.empty-state h3 { margin: 18px 0 4px; font-size: 22px; }
.empty-state p { margin: 0 0 24px; color: var(--muted); }
.error-state > span { min-width: 112px; padding: 0 18px; }

.breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 22px; color: #999c95; font-size: 12px; }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb em { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #5d605a; font-style: normal; }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: #fff; }
.product-detail-image { min-height: 510px; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; border-radius: 18px; }
.product-detail-image > span { font-size: 120px; }
.product-detail-info { padding: 22px 24px 20px 0; }
.detail-shop { color: #5e625b; font-size: 13px; font-weight: 650; }
.detail-shop span { margin-left: 8px; padding: 3px 7px; color: var(--green); border-radius: 5px; background: #e8f6ef; font-size: 10px; }
.product-detail h1 { margin: 18px 0 12px; font-size: 34px; line-height: 1.3; letter-spacing: -.035em; }
.detail-description { margin: 0; color: var(--muted); font-size: 16px; }
.detail-price-panel { display: flex; align-items: baseline; gap: 14px; margin-top: 30px; padding: 20px; border-radius: 13px; background: #fff4ef; }
.detail-price-panel > span { color: #888; font-size: 12px; }
.detail-price-panel strong { color: var(--orange); font-size: 34px; line-height: 1; }
.detail-price-panel strong small { font-size: 15px; }
.detail-price-panel del { color: #aaa; font-size: 12px; }
.detail-stats { display: grid; grid-template-columns: repeat(3,1fr); margin: 24px 0; border-block: 1px solid var(--line); }
.detail-stats span { padding: 13px 0; color: #999; text-align: center; font-size: 12px; }
.detail-stats span + span { border-left: 1px solid var(--line); }
.detail-stats b { margin-left: 4px; color: #555; }
.buy-panel { display: flex; align-items: center; gap: 18px; margin-top: 30px; }
.buy-panel label { display: flex; align-items: center; gap: 10px; color: #777; font-size: 13px; }
.buy-panel input { width: 75px; height: 48px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; text-align: center; }
.detail-promise { display: flex; gap: 18px; margin-top: 24px; color: #7a7d77; font-size: 11px; }
.detail-body { display: grid; grid-template-columns: 1.6fr .75fr; gap: 24px; margin-top: 26px; }
.detail-body > div, .detail-body aside { padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.detail-body h2, .detail-body h3 { margin: 0 0 12px; }
.detail-body p { color: var(--muted); line-height: 2; }
.detail-body aside { background: #292b27; color: #fff; }
.detail-body aside > span { color: #ff8064; font-size: 11px; }
.detail-body aside p { color: #afb2ab; line-height: 1.7; }

.auth-page { min-height: calc(100vh - 112px); display: grid; grid-template-columns: 1fr 1fr; background: #fff; }
.auth-panel { min-height: 680px; padding: 64px clamp(40px, 7vw, 100px); }
.auth-art {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
    background: linear-gradient(145deg, #292b27, #1f211e);
}
.auth-art-register { background: linear-gradient(145deg, #ec4a27, #ff6846); }
.brand-light .brand-mark { color: var(--orange); background: #fff; }
.brand-light strong { color: #fff; }
.auth-art h1 { margin: 10px 0 20px; font-size: clamp(45px,5vw,66px); line-height: 1.15; letter-spacing: -.06em; }
.auth-art p { max-width: 450px; color: rgba(255,255,255,.65); font-size: 16px; }
.auth-art-shape {
    position: absolute;
    right: -60px;
    bottom: -90px;
    width: 310px;
    height: 310px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%;
}
.auth-art-shape::before { content:""; position: absolute; width: 210px; height: 210px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; }
.auth-art-shape span { color: rgba(255,255,255,.1); font-size: 110px; font-weight: 900; }
.auth-form-wrap { display: grid; place-items: center; }
.auth-form { width: min(430px, 100%); }
.form-heading { margin-bottom: 32px; }
.form-heading > span { color: var(--orange); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.form-heading h2 { margin: 5px 0; font-size: 32px; letter-spacing: -.04em; }
.form-heading p { margin: 0; color: var(--muted); }
.form-heading a { color: var(--orange); font-weight: 700; }
label { display: block; margin-bottom: 18px; color: #51544f; font-size: 13px; font-weight: 650; }
input, textarea, select {
    width: 100%;
    margin-top: 7px;
    padding: 12px 14px;
    color: var(--ink);
    border: 1px solid #ddded9;
    border-radius: 10px;
    outline: 0;
    background: #fff;
    transition: border-color .18s, box-shadow .18s;
}
input:focus, textarea:focus, select:focus { border-color: #ff9c86; box-shadow: 0 0 0 4px rgba(255,90,54,.08); }
textarea { resize: vertical; }
label > small { display: block; margin-top: 6px; color: #999; font-weight: 400; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; }
.page-heading p { margin: 7px 0 0; color: var(--muted); }
.page-heading > a, .dashboard-heading > a:not(.button) { color: var(--orange); font-size: 13px; font-weight: 700; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.cart-layout, .checkout-layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 24px; align-items: start; }
.cart-items { padding: 0 24px; }
.cart-item { display: grid; grid-template-columns: 76px minmax(170px,1fr) 100px 86px 100px; gap: 18px; align-items: center; padding: 23px 0; border-bottom: 1px solid var(--line); }
.cart-thumb { width: 76px; height: 76px; display: grid; place-items: center; overflow: hidden; border-radius: 12px; font-size: 26px; font-weight: 850; }
.cart-thumb img { width:100%; height:100%; object-fit:cover; }
.cart-product { display: grid; }
.cart-product small { color: #999; }
.cart-product a { font-weight: 750; }
.cart-product a:hover { color: var(--orange); }
.cart-product span { color: #aaa; font-size: 11px; }
.cart-unit-price { color: #686b65; }
.quantity-input { margin: 0; color: transparent; font-size: 0; }
.quantity-input input { height: 40px; margin: 0; padding: 0 8px; text-align: center; }
.cart-subtotal { color: var(--orange); text-align: right; }
.cart-update { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.cart-update span { color: #aaa; font-size: 11px; }
.cart-summary { position: sticky; top: 104px; padding: 24px; }
.cart-summary h2 { margin: 0 0 22px; font-size: 20px; }
.cart-summary > div { display: flex; justify-content: space-between; margin: 13px 0; color: #70736d; }
.cart-summary b { color: var(--ink); }
.cart-summary .free { color: var(--green); }
.cart-summary hr { margin: 22px 0; border: 0; border-top: 1px solid var(--line); }
.cart-summary .summary-total { align-items: flex-end; }
.summary-total strong { color: var(--orange); font-size: 25px; }
.cart-summary > p { margin: 12px 0 0; color: #aaa; text-align: center; font-size: 10px; }
.checkout-section { margin-bottom: 20px; padding: 28px; }
.panel-heading, .form-section-title { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.panel-heading > span, .form-section-title > span {
    width: 35px; height: 35px; display: grid; place-items: center; flex: 0 0 auto;
    color: var(--orange); border-radius: 11px; background: var(--orange-soft); font-weight: 850;
}
.panel-heading h2, .form-section-title h2 { margin: 0; font-size: 19px; }
.panel-heading p, .form-section-title p { margin: 2px 0 0; color: #999; font-size: 11px; }
.checkout-item { display: grid; grid-template-columns: 52px minmax(0,1fr) 120px 100px; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.checkout-thumb { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 10px; font-size: 18px; font-weight: 850; }
.checkout-item div:nth-child(2) { display: grid; }
.checkout-item small { color: #aaa; font-size: 10px; }
.checkout-item b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.checkout-item > span { color: #777; text-align: right; font-size: 12px; }
.checkout-item > strong { color: var(--orange); text-align: right; }
.order-list { display: grid; gap: 14px; }
.order-row { display: grid; grid-template-columns: 2fr .6fr .7fr .8fr; align-items: center; padding: 22px 26px; transition: .18s; }
.order-row:hover { border-color: #ffc4b5; box-shadow: 0 10px 30px rgba(0,0,0,.05); }
.order-row > div { display: grid; gap: 3px; }
.order-row small { color: #aaa; font-size: 10px; }
.order-row span { color: #999; font-size: 11px; }
.order-row strong { color: var(--orange); font-size: 17px; }
.order-row > div:last-child { justify-items: end; }
.order-row em { color: var(--orange); font-size: 11px; font-style: normal; }
.status { display: inline-flex; width: fit-content; align-items: center; padding: 4px 9px; border-radius: 14px; font-size: 10px !important; font-weight: 750; }
.status-pending { color: #a36a16 !important; background: #fff2d9; }
.status-paid { color: #b54c27 !important; background: #fff0e9; }
.status-shipped { color: #326fa5 !important; background: #eaf4ff; }
.status-completed { color: #14744a !important; background: #e7f6ed; }
.status-cancelled { color: #777 !important; background: #eeeeeb; }
.order-hero { display: flex; align-items: center; justify-content: space-between; padding: 38px 42px; color: #fff; border-radius: 20px; background: linear-gradient(125deg,#2b2d29,#383a34); }
.order-hero h1 { margin: 12px 0 4px; font-size: 30px; }
.order-hero p { margin: 0; color: #aeb2aa; }
.order-detail-grid { display: grid; grid-template-columns: 1.5fr .65fr; gap: 22px; margin-top: 22px; }
.order-detail-grid > .panel { padding: 26px; }
.panel-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.panel-title h2 { margin: 0; font-size: 20px; }
.panel-title p { margin: 2px 0 0; color: #999; font-size: 12px; }
.panel-title > span { color: #999; font-size: 11px; }
.order-item { display: grid; grid-template-columns: 52px 1fr 130px; gap: 14px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.order-item > div:nth-child(2), .order-item > div:last-child { display: grid; gap: 2px; }
.order-item small, .order-item span { color: #999; font-size: 11px; }
.order-item > div:last-child { justify-items: end; }
.order-item .fulfillment { color: var(--green); }
.order-total { display: flex; justify-content: flex-end; align-items: baseline; gap: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.order-total strong { color: var(--orange); font-size: 24px; }
.order-address h2 { margin-top: 0; font-size: 20px; }
.order-address dl { margin: 0; }
.order-address dt { margin-top: 15px; color: #aaa; font-size: 10px; }
.order-address dd { margin: 2px 0 0; color: #51544f; }
.order-address hr { margin: 22px 0; border: 0; border-top: 1px solid var(--line); }
.order-address > span { display: block; color: #aaa; font-size: 10px; }

.dashboard-shell { min-height: calc(100vh - 112px); display: grid; grid-template-columns: 250px minmax(0,1fr); }
.dashboard-sidebar { position: sticky; top: 78px; height: calc(100vh - 78px); padding: 30px 22px; border-right: 1px solid var(--line); background: #fff; }
.dashboard-brand { padding: 0 10px; }
.dashboard-brand small { color: #999; }
.dashboard-sidebar nav { display: grid; gap: 6px; margin-top: 38px; }
.dashboard-sidebar nav a { display: flex; align-items: center; gap: 12px; padding: 11px 13px; color: #6e716b; border-radius: 10px; font-weight: 650; }
.dashboard-sidebar nav a:hover, .dashboard-sidebar nav a.active { color: var(--orange); background: var(--orange-soft); }
.dashboard-sidebar nav i { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; background: #f1f2ee; font-size: 11px; font-style: normal; }
.dashboard-sidebar nav a.active i { color: #fff; background: var(--orange); }
.sidebar-help { position: absolute; right: 22px; bottom: 25px; left: 22px; padding: 16px; border-radius: 12px; background: #f5f5f2; }
.sidebar-help b { font-size: 12px; }
.sidebar-help p { margin: 5px 0 0; color: #8a8d87; font-size: 10px; }
.dashboard-main { min-width: 0; padding: 42px clamp(28px,4vw,64px) 80px; }
.dashboard-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; }
.dashboard-heading h1 { margin: 0; font-size: 31px; letter-spacing: -.04em; }
.dashboard-heading p { margin: 5px 0 0; color: var(--muted); }
.onboarding-card { display: grid; grid-template-columns: repeat(3,1fr); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.onboarding-card > div { min-height: 300px; padding: 35px; border-right: 1px solid var(--line); }
.onboarding-card > div:first-child { color: #fff; background: #2a2c28; }
.onboarding-card > div:last-child { border: 0; }
.onboarding-card span { color: var(--orange); font-size: 11px; font-weight: 800; letter-spacing: .15em; }
.onboarding-card h2 { margin: 55px 0 8px; font-size: 21px; }
.onboarding-card p { min-height: 52px; margin: 0 0 24px; color: #92958e; }
.onboarding-card > div:first-child p { color: #b7bab3; }
.review-state { padding: 100px 30px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-align: center; }
.review-icon { width: 78px; height: 78px; display: inline-grid; place-items: center; color: var(--orange); border-radius: 25px; background: var(--orange-soft); font-size: 25px; font-weight: 850; }
.review-state h2 { margin: 22px 0 5px; }
.review-state p { max-width: 520px; margin: 0 auto 20px; color: var(--muted); }
.review-state > a:not(.button) { color: var(--orange); font-weight: 700; }
.metric-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.metric-grid article { min-height: 160px; display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.metric-grid article > span { color: #777; font-size: 12px; }
.metric-grid article strong { margin-top: 18px; font-size: 31px; line-height: 1; letter-spacing: -.04em; }
.metric-grid article small { margin-top: auto; color: #aaa; font-size: 10px; }
.metric-grid article a { color: var(--orange); }
.metric-grid .metric-highlight { color: #fff; border-color: var(--orange); background: var(--orange); }
.metric-grid .metric-highlight > span, .metric-grid .metric-highlight small { color: rgba(255,255,255,.7); }
.admin-metrics { grid-template-columns: repeat(5,1fr); }
.dashboard-welcome { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin-top: 20px; padding: 32px; }
.dashboard-welcome h2 { margin: 0; }
.dashboard-welcome p { color: var(--muted); }
.quick-actions { display: grid; }
.quick-actions a { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); font-weight: 700; }
.quick-actions span { color: var(--orange); }
.form-page { max-width: 900px; }
.application-form, .product-form { padding: 34px; }
.form-section-title:not(:first-of-type) { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line); }
.form-notice { margin-bottom: 28px; padding: 12px 15px; color: #8a5d18; border-radius: 9px; background: #fff2d9; font-size: 12px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.table-panel { overflow: hidden; }
.table-panel > .panel-title { padding: 24px 26px 8px; }
.data-table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th { padding: 14px 18px; color: #92958e; border-bottom: 1px solid var(--line); background: #fafaf8; text-align: left; font-size: 10px; letter-spacing: .05em; }
.data-table td { padding: 17px 18px; border-bottom: 1px solid #f0f0ed; white-space: nowrap; }
.data-table tbody tr:hover { background: #fffdfb; }
.table-product { display: flex; align-items: center; gap: 12px; min-width: 220px; }
.table-product > span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; font-weight: 850; }
.table-product > div { display: grid; }
.table-product small { color: #aaa; font-size: 9px; }
.table-actions { display: flex; gap: 10px; }
.table-actions a, .table-actions button, .table-button { padding: 0; color: var(--orange); border: 0; background: none; font-size: 12px; }
.category-admin-layout { display: grid; grid-template-columns: 330px minmax(0,1fr); gap: 18px; align-items: start; }
.category-create-panel { padding: 26px; }
.category-create-panel .settings-section-heading { margin-bottom: 22px; }
.category-create-panel .button { width: 100%; }
.category-table-panel .panel-title h2 { margin: 0; font-size: 18px; }
.category-table-panel .panel-title p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.category-data-table input, .category-data-table select { height: 38px; margin: 0; padding: 8px 10px; border-radius: 8px; font-size: 12px; }
.category-name-input { min-width: 150px; }
.category-icon-input { width: 82px; text-align: center; }
.category-sort-input { width: 82px; }
.category-status-select { width: 88px; }
.category-table-actions { align-items: center; }
.category-table-actions form { display: inline-flex; margin: 0; }
.table-empty { padding: 32px; color: var(--muted); text-align: center; }
.admin-order-sections { display: grid; gap: 18px; }
.admin-order-sections .panel-title { display: flex; align-items: center; justify-content: space-between; padding-bottom: 20px; }
.admin-order-sections .panel-title h2 { margin: 0; font-size: 18px; }
.admin-order-sections .panel-title p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.admin-order-sections .panel-title > span { color: var(--orange); font-size: 12px; font-weight: 750; }
.external-product-cell { max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.merchant-orders, .application-list { display: grid; gap: 16px; }
.merchant-order { overflow: hidden; }
.merchant-order header, .merchant-order footer { display: flex; align-items: center; justify-content: space-between; padding: 17px 22px; background: #fafaf8; }
.merchant-order header > div { display: flex; gap: 15px; align-items: baseline; }
.merchant-order header span { color: #999; font-size: 11px; }
.merchant-order-item { display: flex; justify-content: space-between; align-items: center; padding: 15px 22px; border-top: 1px solid var(--line); }
.merchant-order-item > div { display: grid; }
.merchant-order-item span { color: #999; font-size: 11px; }
.merchant-order footer > div { display: grid; }
.merchant-order footer small { color: #999; }
.complete-text { color: var(--green); font-size: 12px; font-weight: 750; }
.muted { color: #999; }
.admin-sidebar { background: #252723; border: 0; }
.admin-sidebar .brand strong { color: #fff; }
.admin-sidebar .brand small { color: #888b84; }
.admin-sidebar nav a { color: #b2b5ae; }
.admin-sidebar nav a:hover, .admin-sidebar nav a.active { color: #fff; background: rgba(255,255,255,.08); }
.admin-sidebar .sidebar-help { color: #fff; background: rgba(255,255,255,.07); }
.admin-sidebar .sidebar-help p { color: #8e918b; }
.application-card { overflow: hidden; }
.application-card header { display: flex; justify-content: space-between; align-items: center; padding: 23px 26px; background: #fafaf8; }
.application-card header > div { display: flex; align-items: center; gap: 14px; }
.shop-avatar { width: 48px; height: 48px; display: grid; place-items: center; color: #fff; border-radius: 13px; background: var(--orange); font-size: 18px; font-weight: 850; }
.application-card h2 { margin: 0; font-size: 18px; }
.application-card header p { margin: 2px 0 0; color: #999; font-size: 11px; }
.application-details { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; padding: 24px 26px; }
.application-details dl { display: grid; grid-template-columns: 90px 1fr; gap: 8px 12px; margin: 0; }
.application-details dt { color: #999; font-size: 11px; }
.application-details dd { margin: 0; font-size: 13px; }
.application-details p { margin: 0; color: #686b65; }
.application-details p b { display: block; margin-bottom: 5px; color: #999; font-size: 11px; }
.application-card footer { display: flex; justify-content: flex-end; align-items: center; gap: 12px; padding: 16px 26px; border-top: 1px solid var(--line); }
.reject-form { display: flex; gap: 8px; }
.reject-form input { width: 260px; margin: 0; }
.super-badge { padding: 6px 11px; color: #fff; border-radius: 20px; background: #252723; font-size: 10px; font-weight: 850; letter-spacing: .13em; }
.settings-status-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 18px; }
.setting-status { display: flex; align-items: center; gap: 14px; padding: 18px 20px; }
.setting-status > span {
    width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto;
    color: #777; border-radius: 11px; background: #f0f1ed; font-size: 13px; font-weight: 850;
}
.setting-status.ready > span { color: #14744a; background: #e7f6ed; }
.setting-status.warning > span { color: #a36a16; background: #fff2d9; }
.setting-status > div { display: grid; }
.setting-status small { color: #999; font-size: 10px; }
.settings-warning { margin-bottom: 18px; padding: 13px 17px; color: #8d5a0e; border: 1px solid #efdbb0; border-radius: 11px; background: #fff9e9; font-size: 12px; }
.settings-form { display: grid; gap: 18px; }
.settings-section { padding: 28px; }
.settings-section-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.settings-section-heading > span {
    width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto;
    color: var(--orange); border-radius: 12px; background: var(--orange-soft); font-size: 11px; font-weight: 850;
}
.settings-section-heading h2 { margin: 0; font-size: 20px; }
.settings-section-heading p { margin: 2px 0 0; color: #999; font-size: 11px; }
.settings-section input[readonly] { color: #999; background: #f6f6f3; }
.settings-field-note { margin: 5px 0 0; color: #999; font-size: 11px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 0; padding: 16px 18px; border-radius: 11px; background: #f7f7f4; }
.switch-row > span { display: grid; }
.switch-row small { color: #999; font-size: 10px; font-weight: 400; }
.switch-row input[type="checkbox"] { width: 44px; height: 24px; margin: 0; accent-color: var(--orange); }
.callback-grid { display: grid; gap: 10px; margin-top: 8px; padding: 17px 18px; border-radius: 11px; background: #292b27; }
.callback-grid > div { min-width: 0; display: grid; grid-template-columns: 110px minmax(0,1fr); align-items: center; gap: 12px; }
.callback-grid span { color: #959991; font-size: 10px; }
.callback-grid code { overflow: hidden; color: #e3e6df; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.settings-submit { position: sticky; z-index: 5; bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 18px 16px 22px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.96); box-shadow: var(--shadow); backdrop-filter: blur(14px); }
.settings-submit > span { color: #8b8e87; font-size: 11px; }
.external-ingest-config { display: grid; gap: 10px; }
.external-ingest-config > div { display: grid; grid-template-columns: 150px minmax(0,1fr); gap: 14px; align-items: center; padding: 14px 16px; border-radius: 10px; background: #f7f7f4; }
.external-ingest-config span { color: #777; font-size: 12px; }
.external-ingest-config code { overflow-wrap: anywhere; color: #343631; font-size: 12px; }
.external-ingest-config em { color: #999; font-size: 12px; font-style: normal; }
.external-ingest-config .secret-code { color: var(--orange); }
.external-token-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 18px; }
.external-token-actions p { margin: 0; color: #999; font-size: 11px; }
.worker-command { display: grid; gap: 7px; margin-top: 16px; padding: 16px 18px; border-radius: 11px; background: #272925; }
.worker-command span { color: #bfc2ba; font-size: 11px; }
.worker-command code { overflow-wrap: anywhere; color: #ff8b70; font-size: 11px; }
.payment-redirect { max-width: 620px; margin: 50px auto; padding: 65px 40px; text-align: center; }
.payment-loader {
    width: 76px; height: 76px; display: inline-grid; place-items: center;
    color: #fff; border-radius: 24px; background: var(--orange); box-shadow: 0 18px 45px rgba(255,90,54,.25);
    font-size: 26px; font-weight: 850; animation: payment-pulse 1.2s ease-in-out infinite alternate;
}
.payment-redirect h1 { margin: 24px 0 5px; }
.payment-redirect p { margin: 0 0 26px; color: var(--muted); }
.payment-redirect small { display: block; margin-top: 17px; color: #aaa; }
.payment-provider { display: block; margin-top: 5px; color: #999; font-size: 10px; word-break: break-all; }
@keyframes payment-pulse { to { transform: translateY(-4px); box-shadow: 0 24px 55px rgba(255,90,54,.35); } }
.wallet-balance-grid { display: grid; grid-template-columns: 1.25fr repeat(3,1fr); gap: 16px; margin-bottom: 22px; }
.wallet-primary-card {
    min-height: 165px; display: flex; flex-direction: column; padding: 25px;
    color: #fff; border-radius: 17px; background: linear-gradient(135deg,#ef4d2b,#ff785a);
    box-shadow: 0 18px 45px rgba(255,90,54,.2);
}
.wallet-primary-card > span, .wallet-stat > span { font-size: 12px; opacity: .8; }
.wallet-primary-card strong, .wallet-stat strong { margin-top: 17px; font-size: 30px; line-height: 1; letter-spacing: -.04em; }
.wallet-primary-card small, .wallet-stat small { margin-top: auto; font-size: 10px; opacity: .72; }
.wallet-stat { min-height: 165px; display: flex; flex-direction: column; padding: 25px; }
.wallet-stat > span, .wallet-stat small { color: #999; }
.wallet-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 22px; }
.wallet-account, .wallet-rules { padding: 26px; }
.wallet-account dl { display: grid; grid-template-columns: 90px 1fr; gap: 8px 14px; }
.wallet-account dt { color: #999; font-size: 11px; }
.wallet-account dd { margin: 0; font-weight: 650; }
.wallet-account > p { margin: 18px 0 0; color: #999; font-size: 10px; }
.wallet-rules ol { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; }
.wallet-rules li { display: grid; grid-template-columns: 95px 1fr; padding: 11px 13px; border-radius: 10px; background: #f7f7f4; }
.wallet-rules li b { color: var(--orange); font-size: 12px; }
.wallet-rules li span { color: #747770; font-size: 12px; }
.money-positive { color: var(--green); }
.money-negative { color: #bf3e29; }
.merchant-admin-grid { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(300px,.7fr); gap: 18px; margin-bottom: 22px; align-items: start; }
.merchant-profile-form { display: block; }
.merchant-finance-column { display: grid; gap: 18px; }
.stack-form + .stack-form { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.table-subline { display: block; color: #aaa; font-size: 9px; font-weight: 400; }
.table-order-link { color: var(--orange); font-weight: 750; }
.panel-title > a { color: var(--orange); font-size: 11px; font-weight: 700; }
.order-control-summary { display: grid; grid-template-columns: repeat(4,1fr); gap: 15px; margin-bottom: 20px; }
.order-control-summary article { min-height: 115px; display: flex; flex-direction: column; padding: 20px; }
.order-control-summary span { color: #999; font-size: 11px; }
.order-control-summary strong { margin-top: auto; font-size: 18px; }
.order-admin-grid { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(280px,.55fr); gap: 18px; margin-bottom: 20px; align-items: start; }
.order-admin-address { padding: 25px; }
.order-admin-address h2 { margin: 0 0 18px; font-size: 19px; }
.order-admin-address dl { margin: 0; }
.order-admin-address dt { margin-top: 12px; color: #aaa; font-size: 10px; }
.order-admin-address dd { margin: 2px 0 0; color: #555; }
.order-admin-address small { color: #999; }

.site-footer { color: #a9aca5; background: #252723; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3,1fr); gap: 50px; padding: 55px 0 40px; }
.brand-footer .brand-mark { width: 36px; height: 36px; font-size: 17px; }
.brand-footer strong { color: #fff; }
.footer-grid p { max-width: 320px; color: #797c76; }
.footer-grid h4 { margin: 0 0 12px; color: #fff; font-size: 13px; }
.footer-grid > div:not(:first-child) { display: flex; flex-direction: column; gap: 7px; font-size: 12px; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { display: flex; flex-direction: column; gap: 8px; padding: 20px 0; border-top: 1px solid rgba(255,255,255,.07); font-size: 11px; }
.footer-licenses { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.footer-licenses a { transition: color .2s ease; }
.footer-licenses a:hover { color: #fff; }
.footer-licenses .footer-separator { color: #5d605a; }
.footer-license-text { color: #a9aca5; }

@media (max-width: 1100px) {
    .header-actions .user-greeting { display: none; }
    .hero-inner { grid-template-columns: 1fr .8fr; }
    .hero-live-orders { width: min(100%,360px); }
    .product-grid { grid-template-columns: repeat(3,1fr); }
    .category-list { grid-template-columns: repeat(4,1fr); }
    .cart-item { grid-template-columns: 70px minmax(150px,1fr) 80px 76px; }
    .cart-unit-price { display: none; }
    .admin-metrics { grid-template-columns: repeat(3,1fr); }
}

@media (max-width: 860px) {
    .topbar { display: none; }
    .header-main { min-height: 68px; gap: 14px; flex-wrap: wrap; padding: 12px 0; }
    .brand small, .header-actions > a:not(.cart-link), .header-actions form, .user-greeting { display: none; }
    .header-search { order: 3; flex-basis: 100%; max-width: none; height: 42px; }
    .site-header { position: relative; }
    .hero-inner { grid-template-columns: 1fr; }
    .hero-copy { padding: 64px 0 32px; }
    .hero-showcase:not(.hero-order-showcase) { display: none; }
    .hero-order-showcase { height: auto; min-height: 420px; padding: 0 0 48px; }
    .hero-live-orders { width: min(100%,520px); }
    .product-grid { grid-template-columns: repeat(2,1fr); }
    .merchant-banner-inner { min-height: 260px; align-items: flex-start; flex-direction: column; justify-content: center; }
    .product-detail { grid-template-columns: 1fr; gap: 26px; }
    .product-detail-image { min-height: 400px; }
    .product-detail-info { padding: 5px; }
    .detail-body { grid-template-columns: 1fr; }
    .auth-page { grid-template-columns: 1fr; }
    .auth-art { display: none; }
    .auth-panel { min-height: auto; padding: 60px 28px; }
    .cart-layout, .checkout-layout, .order-detail-grid { grid-template-columns: 1fr; }
    .cart-summary { position: static; }
    .order-row { grid-template-columns: 1.6fr .6fr .8fr; }
    .order-row > div:nth-child(2) { display: none; }
    .dashboard-shell { grid-template-columns: 1fr; }
    .dashboard-sidebar { position: static; height: auto; padding: 14px 20px; border-right: 0; border-bottom: 1px solid var(--line); }
    .dashboard-brand, .sidebar-help { display: none; }
    .dashboard-sidebar nav { display: flex; overflow-x: auto; margin: 0; }
    .dashboard-sidebar nav a { flex: 0 0 auto; }
    .dashboard-main { padding: 34px 20px 70px; }
    .metric-grid, .admin-metrics { grid-template-columns: repeat(2,1fr); }
    .wallet-balance-grid { grid-template-columns: 1fr 1fr; }
    .merchant-admin-grid { grid-template-columns: 1fr; }
    .order-control-summary { grid-template-columns: 1fr 1fr; }
    .order-admin-grid { grid-template-columns: 1fr; }
    .onboarding-card { grid-template-columns: 1fr; }
    .onboarding-card > div { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
    .onboarding-card h2 { margin-top: 20px; }
    .dashboard-welcome { grid-template-columns: 1fr; }
    .category-admin-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 580px) {
    .container { width: min(100% - 24px,1180px); }
    .brand strong { font-size: 18px; }
    .brand-mark { width: 37px; height: 37px; }
    .hero h1 { font-size: 40px; }
    .hero-copy > p { font-size: 15px; }
    .hero-trust { gap: 12px; flex-wrap: wrap; }
    .hero-order-showcase { min-height: 392px; padding-bottom: 38px; }
    .hero-live-orders { width: 100%; padding: 15px; border-radius: 18px; }
    .hero-live-orders-header h2 { font-size: 18px; }
    .hero-live-orders-header > small { padding: 6px 8px; font-size: 8px; }
    .hero-live-orders-viewport { height: 254px; }
    .hero-live-order-row { height: 46px; min-height: 46px; flex-basis: 46px; padding: 6px 9px; }
    .hero-live-order-row.is-entering { height: 0; min-height: 0; flex-basis: 0; padding-top: 0; padding-bottom: 0; }
    .hero-live-order-copy strong { font-size: 11px; }
    .hero-live-order-side b { font-size: 13px; }
    .category-list { display: flex; overflow-x: auto; padding-bottom: 8px; }
    .category-list a { min-width: 105px; }
    .product-grid { gap: 12px; }
    .product-image { height: 175px; }
    .product-image > span { font-size: 46px; }
    .product-info { padding: 13px; }
    .product-name { font-size: 14px; }
    .product-meta .price { font-size: 19px; }
    .merchant-banner h2 { font-size: 28px; }
    .page-heading, .dashboard-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
    .product-detail { padding: 13px; }
    .product-detail-image { min-height: 330px; }
    .product-detail h1 { font-size: 27px; }
    .detail-price-panel { flex-wrap: wrap; }
    .buy-panel { align-items: stretch; flex-direction: column; }
    .detail-promise { flex-wrap: wrap; }
    .form-grid { grid-template-columns: 1fr; gap: 0; }
    .cart-items { padding: 0 15px; }
    .cart-item { grid-template-columns: 60px minmax(0,1fr) 70px; gap: 12px; }
    .cart-thumb { width: 60px; height: 60px; }
    .cart-subtotal { display: none; }
    .cart-update { gap: 12px; }
    .checkout-section { padding: 20px; }
    .checkout-item { grid-template-columns: 45px minmax(0,1fr) 85px; }
    .checkout-item > span { display: none; }
    .order-row { grid-template-columns: 1fr .7fr; gap: 10px; }
    .order-row > div:nth-child(3) { display: none; }
    .order-hero { align-items: flex-start; flex-direction: column; gap: 22px; padding: 28px; }
    .order-item { grid-template-columns: 45px minmax(0,1fr); }
    .order-item > div:last-child { grid-column: 2; justify-items: start; }
    .metric-grid, .admin-metrics { grid-template-columns: 1fr 1fr; gap: 10px; }
    .metric-grid article { min-height: 135px; padding: 18px; }
    .metric-grid article strong { font-size: 25px; }
    .application-form, .product-form { padding: 22px; }
    .application-details { grid-template-columns: 1fr; gap: 22px; }
    .application-card footer, .reject-form { align-items: stretch; flex-direction: column; }
    .reject-form input { width: 100%; }
    .settings-status-grid { grid-template-columns: 1fr; }
    .wallet-balance-grid, .wallet-info-grid { grid-template-columns: 1fr; }
    .settings-section { padding: 20px; }
    .callback-grid > div { grid-template-columns: 1fr; gap: 2px; }
    .external-ingest-config > div { grid-template-columns: 1fr; gap: 4px; }
    .external-token-actions { align-items: stretch; flex-direction: column; }
    .settings-submit { align-items: stretch; flex-direction: column; }
    .merchant-order footer { align-items: stretch; flex-direction: column; gap: 15px; }
    .footer-grid { grid-template-columns: 1fr; gap: 25px; }
    .footer-licenses { align-items: flex-start; flex-direction: column; }
    .footer-licenses .footer-separator { display: none; }
}
