:root {
    --cream-bg-start: #fffaf1;
    --cream-bg-end: #f3e5cf;
    --cream-card: rgba(255, 253, 248, 0.94);
    --cream-border: #eadcc6;
    --cream-text: #3d3328;
    --cream-muted: #8b7d6b;
    --cream-orange: #f47b42;
    --cream-orange-dark: #df6530;
    --cream-shadow: 0 12px 30px rgba(112, 82, 42, 0.09);
}

html body {
    background:
        radial-gradient(circle at 14% 16%, rgba(255, 194, 134, 0.34), transparent 42%),
        radial-gradient(circle at 86% 24%, rgba(168, 186, 245, 0.16), transparent 40%),
        radial-gradient(circle at 78% 76%, rgba(244, 152, 98, 0.24), transparent 45%),
        linear-gradient(155deg, var(--cream-bg-start) 0%, #f9ebd6 52%, #efe0c8 100%) !important;
    background-attachment: fixed !important;
    color: var(--cream-text) !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body.theme-custom-image::before {
    display: none !important;
}

.search-bar-glass input {
    color: var(--cream-text) !important;
}

.search-bar-glass input::placeholder {
    color: var(--cream-muted) !important;
}

.cream-chip,
.period-tab,
.amount-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
}

.staff-level-badge,
.staff-badge,
.profile-badge,
.selected-staff .badge {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    mix-blend-mode: multiply;
}

.tangsen-float {
    position: fixed;
    z-index: 1150;
    right: 14px;
    bottom: calc(108px + env(safe-area-inset-bottom, 0px));
    width: 78px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 0;
    border: 0;
    appearance: none;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: grab;
    touch-action: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    filter: drop-shadow(0 10px 18px rgba(93,67,33,.18));
}

.tangsen-float:focus-visible {
    outline: 3px solid rgba(244, 123, 66, .34);
    outline-offset: 4px;
    border-radius: 18px;
}

.tangsen-float.dragging {
    cursor: grabbing;
    filter: drop-shadow(0 14px 22px rgba(93,67,33,.24));
}

.tangsen-float img {
    width: 66px;
    height: 66px;
    object-fit: contain;
    pointer-events: none;
    animation: tangsenBob 3.2s ease-in-out infinite;
}

.tangsen-float span {
    pointer-events: none;
    background: linear-gradient(135deg, #f47b42, #9a5b82 55%, #5b8def);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: .12em;
    white-space: nowrap;
}

.tangsen-float.dragging img,
.tangsen-float.is-playing img {
    animation: none;
}

.tangsen-float.is-paused img {
    animation-play-state: paused;
}

.tangsen-float.is-playing img {
    animation: tangsenCheer .78s cubic-bezier(.2,.8,.2,1) both;
}

@keyframes tangsenBob {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-7px) rotate(2deg); }
}

@keyframes tangsenCheer {
    0% { transform: translateY(0) rotate(0) scale(1); }
    18% { transform: translateY(4px) rotate(-5deg) scale(1.04,.94); }
    42% { transform: translateY(-20px) rotate(7deg) scale(.96,1.06); }
    62% { transform: translateY(-8px) rotate(-8deg) scale(1.04); }
    82% { transform: translateY(2px) rotate(4deg) scale(.98); }
    100% { transform: translateY(0) rotate(0) scale(1); }
}

@keyframes tangsenAck {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}

@media (prefers-reduced-motion: reduce) {
    .tangsen-float img {
        animation: none;
    }

    .tangsen-float.is-playing img {
        animation: tangsenAck .36s ease-in-out 2 both;
    }
}

.order-broadcast {
    position: fixed;
    top: calc(220px + env(safe-area-inset-top, 0px));
    left: 12px;
    z-index: 1180;
    width: min(270px, calc(100vw - 24px));
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .82);
    border-radius: 16px;
    background: rgba(255, 250, 242, .62);
    box-shadow: 0 18px 42px rgba(61, 51, 40, .18), inset 0 1px 0 rgba(255, 255, 255, .7);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-118%) scale(.96);
    transform-origin: left center;
    pointer-events: none;
    transition: transform .46s cubic-bezier(.22,1,.36,1), opacity .42s ease, visibility 0s linear .46s;
    backdrop-filter: blur(22px) saturate(1.25);
    -webkit-backdrop-filter: blur(22px) saturate(1.25);
}

.order-broadcast.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) scale(1);
    pointer-events: auto;
    transition: transform .46s cubic-bezier(.22,1,.36,1), opacity .42s ease, visibility 0s;
}

.order-broadcast.is-leaving {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-118%) scale(.96);
    transition: transform .28s ease-in, opacity .28s ease-in, visibility 0s linear .28s;
}

.order-broadcast[hidden] {
    display: none !important;
}

.order-broadcast-link {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 76px;
    padding: 10px 32px 10px 10px;
    color: var(--cream-text);
    text-decoration: none;
}

.order-broadcast-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: #fff0e5;
    color: var(--cream-orange-dark);
}

.order-broadcast-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.order-broadcast-content {
    min-width: 0;
    flex: 1;
}

.order-broadcast-head {
    display: flex;
    align-items: center;
    gap: 7px;
}

.order-broadcast-head strong {
    font-size: 13px;
    font-weight: 850;
}

.order-broadcast-hot {
    padding: 2px 5px;
    border-radius: 999px;
    background: #ffe3dc;
    color: #c7472b;
    font-size: 8px;
    font-weight: 850;
    line-height: 1.4;
}

.order-broadcast-line {
    display: block;
    margin-top: 4px;
    overflow: hidden;
    color: #6f6252;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.order-broadcast-line b {
    color: var(--cream-text);
}

.order-broadcast-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    color: #8a7b69;
    font-size: 9px;
}

.order-broadcast-meta i {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #c6b7a4;
}

.order-broadcast-close {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #9a8b77;
    cursor: pointer;
}

.order-broadcast-close:hover {
    background: #f4ece0;
    color: var(--cream-text);
}

.order-broadcast-close svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.order-broadcast-link:focus-visible,
.order-broadcast-close:focus-visible {
    outline: 3px solid rgba(244, 123, 66, .3);
    outline-offset: -3px;
}

@media (prefers-reduced-motion: reduce) {
    .order-broadcast,
    .order-broadcast.is-visible,
    .order-broadcast.is-leaving {
        transform: none;
        transition: opacity .18s ease, visibility 0s;
    }
}

.staff-workbench-page,
body.order-hall-page,
body.staff-profile-page {
    background:
        radial-gradient(circle at 12% 10%, rgba(255, 224, 186, 0.72) 0%, rgba(255, 224, 186, 0) 42%),
        radial-gradient(circle at 88% 24%, rgba(255, 203, 164, 0.56) 0%, rgba(255, 203, 164, 0) 44%),
        radial-gradient(circle at 50% 82%, rgba(255, 236, 208, 0.76) 0%, rgba(255, 236, 208, 0) 50%),
        linear-gradient(160deg, #fffaf1 0%, #f8ebd7 54%, #efe0c8 100%) fixed !important;
    color: var(--cream-text) !important;
}

/* Clear non-yellowing iPhone Liquid Glass across staff workbench, order hall & profile */
.staff-workbench-page .top-nav,
.staff-workbench-page .floating-bottom-nav,
.order-hall-page .top-nav,
.order-hall-page .floating-bottom-nav,
.staff-profile-page .cream-topbar {
    border: 0 !important;
    background: linear-gradient(170deg, rgba(255, 255, 255, 0.56) 0%, rgba(255, 255, 255, 0.24) 48%, rgba(255, 255, 255, 0.42) 100%) !important;
    box-shadow:
        0 12px 28px rgba(96, 68, 36, 0.1),
        0 1px 3px rgba(96, 68, 36, 0.04),
        inset 0 1.5px 2px rgba(255, 255, 255, 0.94),
        inset 0 -2px 6px rgba(176, 138, 96, 0.07) !important;
    backdrop-filter: blur(18px) brightness(1.03) !important;
    -webkit-backdrop-filter: blur(18px) brightness(1.03) !important;
}

.staff-workbench-page .top-nav,
.order-hall-page .top-nav,
.staff-profile-page .cream-topbar {
    border-radius: 0 0 20px 20px;
}

.staff-workbench-page .floating-bottom-nav,
.order-hall-page .floating-bottom-nav {
    border-radius: 24px !important;
}

.staff-workbench-page .staff-info-card,
.staff-workbench-page .edit-profile-btn,
.staff-workbench-page .stat-item,
.staff-workbench-page .panel-tab:not(.active),
.staff-workbench-page .tab-btn:not(.active),
.staff-workbench-page .order-card,
.staff-workbench-page .withdraw-card,
.staff-workbench-page .withdraw-entry-card,
.staff-workbench-page .staff-conv-item,
.staff-workbench-page .empty-state,
.staff-workbench-page .btn-secondary,
.order-hall-page .stat-card,
.order-hall-page .category-card:not(.all-card),
.order-hall-page .order-card,
.order-hall-page .empty-state,
.staff-profile-shell .cream-card {
    position: relative;
    border: 0 !important;
    background: linear-gradient(170deg, rgba(255, 255, 255, 0.36) 0%, rgba(255, 255, 255, 0.08) 46%, rgba(255, 255, 255, 0.22) 100%) !important;
    color: var(--cream-text) !important;
    box-shadow:
        0 12px 28px rgba(96, 68, 36, 0.09),
        0 1px 3px rgba(96, 68, 36, 0.04),
        inset 0 1.5px 2px rgba(255, 255, 255, 0.92),
        inset 0 -2px 6px rgba(176, 138, 96, 0.07) !important;
    backdrop-filter: blur(14px) brightness(1.03) !important;
    -webkit-backdrop-filter: blur(14px) brightness(1.03) !important;
}

/* Highlighted bright frosted glass for wallet & modals */
.staff-workbench-page .commission-box {
    position: relative;
    border: 0 !important;
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.58) 0%, rgba(255, 255, 255, 0.24) 55%, rgba(255, 248, 240, 0.44) 100%) !important;
    color: var(--cream-text) !important;
    box-shadow:
        0 14px 30px rgba(96, 68, 36, 0.1),
        inset 0 1.5px 2px rgba(255, 255, 255, 0.96),
        inset 0 -2px 6px rgba(176, 138, 96, 0.06) !important;
    backdrop-filter: blur(16px) brightness(1.04) !important;
    -webkit-backdrop-filter: blur(16px) brightness(1.04) !important;
}

.staff-workbench-page .modal-overlay {
    z-index: 2500 !important;
    background: rgba(54, 42, 28, 0.36) !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.staff-workbench-page .modal-content {
    position: relative;
    border: 1.2px solid rgba(255, 255, 255, 0.92) !important;
    background: linear-gradient(160deg, rgba(255, 253, 249, 0.88) 0%, rgba(255, 248, 240, 0.78) 100%) !important;
    color: var(--cream-text) !important;
    box-shadow:
        0 20px 44px rgba(54, 40, 24, 0.22),
        inset 0 1.5px 2px rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(20px) brightness(1.03) !important;
    -webkit-backdrop-filter: blur(20px) brightness(1.03) !important;
}

.staff-workbench-page .top-nav::after,
.staff-workbench-page .floating-bottom-nav::after,
.staff-workbench-page .staff-info-card::after,
.staff-workbench-page .edit-profile-btn::after,
.staff-workbench-page .stat-item::after,
.staff-workbench-page .commission-box::after,
.staff-workbench-page .panel-tab:not(.active)::after,
.staff-workbench-page .tab-btn:not(.active)::after,
.staff-workbench-page .order-card::after,
.staff-workbench-page .withdraw-card::after,
.staff-workbench-page .withdraw-entry-card::after,
.staff-workbench-page .staff-conv-item::after,
.staff-workbench-page .empty-state::after,
.staff-workbench-page .btn-secondary::after,
.order-hall-page .top-nav::after,
.order-hall-page .floating-bottom-nav::after,
.order-hall-page .stat-card::after,
.order-hall-page .category-card:not(.all-card)::after,
.order-hall-page .order-card::after,
.order-hall-page .empty-state::after,
.staff-profile-page .cream-topbar::after,
.staff-profile-shell .cream-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.2px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(255, 255, 255, 0.34) 32%,
        rgba(255, 255, 255, 0.08) 56%,
        rgba(255, 255, 255, 0.84) 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    z-index: 4;
}

.staff-workbench-page .nav-back-btn,
.staff-workbench-page .nav-action-btn,
.order-hall-page .nav-back-btn,
.staff-profile-page .cream-icon-btn {
    border: 1px solid rgba(255, 255, 255, 0.88) !important;
    background: rgba(255, 255, 255, 0.56) !important;
    color: var(--cream-text) !important;
    box-shadow: 0 4px 12px rgba(96, 68, 36, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.staff-workbench-page .nav-back-btn:hover,
.staff-workbench-page .nav-action-btn:hover,
.order-hall-page .nav-back-btn:hover {
    background: rgba(255, 245, 235, 0.84) !important;
}

.staff-workbench-page .nav-title,
.staff-workbench-page .stat-value,
.staff-workbench-page .withdraw-title,
.staff-workbench-page .withdraw-info h4,
.staff-workbench-page .withdraw-entry-title,
.staff-workbench-page .order-detail h4,
.staff-workbench-page .staff-conv-name,
.staff-workbench-page .modal-title,
.staff-workbench-page .form-label {
    color: var(--cream-text) !important;
}

.staff-workbench-page .stat-label,
.staff-workbench-page .withdraw-info p,
.staff-workbench-page .withdraw-entry-desc,
.staff-workbench-page .commission-label,
.staff-workbench-page .order-detail p,
.staff-workbench-page .staff-conv-time,
.staff-workbench-page .staff-conv-preview,
.staff-workbench-page .empty-state,
.staff-workbench-page .empty-state p {
    color: var(--cream-muted) !important;
}

.staff-workbench-page .staff-avatar-large {
    background: rgba(255, 244, 230, 0.86) !important;
    border: 2.5px solid rgba(255, 255, 255, 0.92) !important;
    color: var(--cream-orange-dark) !important;
    box-shadow: 0 6px 16px rgba(176, 120, 66, 0.16);
}

.staff-workbench-page .edit-profile-btn {
    color: var(--cream-orange-dark) !important;
    font-weight: 700 !important;
}

.staff-workbench-page .panel-tab:not(.active):hover,
.staff-workbench-page .tab-btn:not(.active):hover {
    background: linear-gradient(170deg, rgba(255, 255, 255, 0.56) 0%, rgba(255, 255, 255, 0.24) 100%) !important;
    color: var(--cream-text) !important;
}

.staff-workbench-page .edit-profile-btn:hover,
.staff-workbench-page .stat-item:hover,
.staff-workbench-page .order-card:hover,
.staff-workbench-page .withdraw-entry-card:hover,
.staff-workbench-page .staff-conv-item:hover {
    transform: translateY(-2px);
    box-shadow:
        0 14px 32px rgba(96, 68, 36, 0.13),
        inset 0 1.5px 2px rgba(255, 255, 255, 0.96) !important;
}

.staff-workbench-page .commission-value,
.staff-workbench-page .order-price {
    color: var(--cream-orange-dark) !important;
}

/* Unify remaining legacy purple controls to cream-orange */
.staff-workbench-page .withdraw-button,
.staff-workbench-page .btn-small,
.staff-workbench-page .btn-primary,
.staff-workbench-page .panel-tab.active,
.staff-workbench-page .tab-btn.active,
.staff-workbench-page .game-item.active {
    background: linear-gradient(135deg, #ff955f, #f47b42) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: 0 6px 18px rgba(244, 123, 66, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
}

.staff-workbench-page .withdraw-button:hover,
.staff-workbench-page .btn-small:hover,
.staff-workbench-page .btn-primary:hover {
    box-shadow: 0 8px 22px rgba(244, 123, 66, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

.staff-workbench-page .withdraw-entry-icon,
.staff-workbench-page .staff-conv-avatar {
    background: linear-gradient(135deg, #ff955f, #f47b42) !important;
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(244, 123, 66, 0.24) !important;
}

.staff-workbench-page .order-id {
    background: rgba(255, 255, 255, 0.62) !important;
    border: 1px solid rgba(255, 255, 255, 0.84);
    color: var(--cream-muted) !important;
}

.staff-workbench-page .order-product-image {
    background: linear-gradient(135deg, #fff4e5, #f1ddc1) !important;
    border-color: rgba(255, 255, 255, 0.88) !important;
    box-shadow: 0 4px 12px rgba(96, 68, 36, 0.08) !important;
}

.staff-workbench-page .order-gameid {
    background: rgba(255, 240, 229, 0.86) !important;
    border: 1px solid rgba(241, 211, 189, 0.78);
    color: var(--cream-orange-dark) !important;
}

.staff-workbench-page .order-remark {
    background: rgba(255, 252, 246, 0.72) !important;
    border: 1px solid rgba(234, 218, 198, 0.75);
    color: #6f6252 !important;
}

.staff-workbench-page .order-footer,
.staff-workbench-page .withdraw-item {
    border-color: rgba(226, 206, 180, 0.62) !important;
}

.staff-workbench-page .glass-input,
.staff-workbench-page .form-select,
.staff-workbench-page .game-item {
    background: rgba(255, 253, 249, 0.9) !important;
    border: 1px solid rgba(226, 206, 180, 0.86) !important;
    color: var(--cream-text) !important;
}

.staff-workbench-page .glass-input:focus,
.staff-workbench-page #withdraw-modal .glass-input:focus,
.staff-workbench-page .form-select:focus {
    border-color: var(--cream-orange) !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(244, 123, 66, 0.16) !important;
}

.staff-workbench-page .modal-close {
    position: relative;
    z-index: 5;
    background: rgba(255, 248, 240, 0.88) !important;
    border: 1px solid rgba(234, 218, 198, 0.85) !important;
    color: var(--cream-muted) !important;
}

.order-hall-page .top-nav {
    max-width: 680px;
}

.order-hall-page .container {
    max-width: 680px;
}

.order-hall-page .nav-title {
    color: var(--cream-text);
}

.order-hall-page .nav-badge {
    background: linear-gradient(135deg, #ff955f, #f47b42);
    box-shadow: 0 6px 16px rgba(244, 123, 66, .22);
}

.order-hall-page .stat-value,
.order-hall-page .order-price {
    color: var(--cream-orange-dark);
}

.order-hall-page .stat-label,
.order-hall-page .category-count,
.order-hall-page .order-meta,
.order-hall-page .order-time,
.order-hall-page .empty-state {
    color: var(--cream-muted);
}

.order-hall-page .category-card .cat-name {
    color: #6f5f4c;
}

.order-hall-page .category-card .cat-icon-wrap {
    background: rgba(255, 240, 229, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.88);
    color: var(--cream-orange-dark);
}

.order-hall-page .category-card.all-card {
    border-color: transparent;
    background: linear-gradient(135deg, #ff955f, #f47b42);
    box-shadow: 0 8px 20px rgba(244, 123, 66, 0.24);
}

.order-hall-page .category-card.all-card .cat-name,
.order-hall-page .category-card.all-card .cat-icon {
    color: #fff;
}

.order-hall-page .category-card.active:not(.all-card) {
    box-shadow:
        0 10px 24px rgba(244, 123, 66, .22),
        inset 0 0 0 1.8px rgba(244, 123, 66, 0.78),
        inset 0 1.5px 2px rgba(255, 255, 255, 0.92) !important;
}

.order-hall-page .category-title {
    color: var(--cream-text);
}

.order-hall-page .category-title::before {
    background: linear-gradient(135deg, #ff955f, #f47b42);
}

.order-hall-page .order-id {
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.84);
    color: var(--cream-muted);
}

.order-hall-page .order-image {
    border-color: rgba(255, 255, 255, 0.88);
    background: linear-gradient(135deg, #fff4e5, #f1ddc1);
    box-shadow: none;
}

.order-hall-page .order-image .placeholder {
    color: var(--cream-orange-dark);
}

.order-hall-page .order-product-name,
.order-hall-page .empty-text {
    color: var(--cream-text);
}

.order-hall-page .order-gameid {
    border: 1px solid rgba(241, 211, 189, 0.78);
    background: rgba(255, 240, 229, 0.86);
    color: var(--cream-orange-dark);
}

.order-hall-page .order-remark {
    border: 1px solid rgba(234, 218, 198, 0.75);
    background: rgba(255, 252, 246, 0.72);
    color: #6f6252;
}

.order-hall-page .order-footer {
    border-top-color: rgba(226, 206, 180, 0.62);
}

.order-hall-page .btn-accept {
    border-radius: 999px;
    background: linear-gradient(135deg, #ff955f, #f47b42);
    box-shadow: 0 6px 18px rgba(244, 123, 66, 0.26);
}

.order-hall-page .floating-bottom-nav {
    max-width: 540px;
}

.order-hall-page .float-nav-item {
    color: var(--cream-muted) !important;
}

.order-hall-page .float-nav-item.active {
    background: transparent;
    color: var(--cream-orange-dark) !important;
}

.order-hall-page .float-nav-item.active svg {
    stroke: var(--cream-orange-dark);
}

.order-hall-page .float-nav-item:hover:not(.active) {
    color: var(--cream-text);
}

.order-hall-page .nav-back-btn:focus-visible,
.order-hall-page .float-nav-item:focus-visible,
.order-hall-page .btn-accept:focus-visible {
    outline: 3px solid rgba(244, 123, 66, .3);
    outline-offset: 3px;
}

@media (max-width: 520px) {
    .order-hall-page .order-card {
        padding: 18px;
    }
}

.cream-shell {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    min-height: 100vh;
    padding-bottom: 120px;
}

.cream-topbar {
    position: sticky;
    top: 0;
    z-index: 900;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 16px;
    background: rgba(255, 250, 241, 0.84);
    border-bottom: 1px solid rgba(234, 220, 198, 0.8);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.cream-topbar-title {
    font-size: 18px;
    font-weight: 750;
    letter-spacing: 0.02em;
}

.cream-icon-btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--cream-border);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.7);
    color: var(--cream-text);
    text-decoration: none;
}

.cream-icon-btn svg,
.cream-inline-icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cream-card {
    background: var(--cream-card);
    border: 1px solid var(--cream-border);
    border-radius: 20px;
    box-shadow: var(--cream-shadow);
    padding: 16px;
}

.cream-section {
    margin: 14px 16px;
}

.cream-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 2px 10px;
    font-size: 17px;
    font-weight: 750;
}

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

.cream-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    border: 1px solid var(--cream-border);
    border-radius: 14px;
    background: #fffaf2;
    color: var(--cream-text);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.cream-btn-primary {
    border-color: transparent;
    background: linear-gradient(135deg, #ff955f, var(--cream-orange));
    color: #fff;
    box-shadow: 0 10px 22px rgba(244, 123, 66, 0.24);
}

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

.cream-input,
.cream-textarea,
.cream-select {
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    border: 1px solid var(--cream-border);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--cream-text);
    outline: none;
}

.cream-textarea {
    min-height: 92px;
    resize: vertical;
}

.cream-input:focus,
.cream-textarea:focus,
.cream-select:focus {
    border-color: var(--cream-orange);
    box-shadow: 0 0 0 3px rgba(244, 123, 66, 0.12);
}

.cream-label {
    display: block;
    margin: 0 0 7px;
    color: var(--cream-muted);
    font-size: 13px;
    font-weight: 650;
}

.cream-bottom-nav {
    position: fixed;
    z-index: 1200;
    left: 50%;
    bottom: max(14px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    width: min(680px, calc(100% - 24px));
    height: 72px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.88);
    border-radius: 24px;
    background: rgba(255, 250, 242, 0.76);
    box-shadow: 0 16px 40px rgba(93, 67, 33, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(22px) saturate(1.25);
    -webkit-backdrop-filter: blur(22px) saturate(1.25);
}

.cream-nav-item {
    position: relative;
    height: 58px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #968774;
    text-decoration: none;
    font-size: 11px;
    font-weight: 650;
}

.cream-nav-icon {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cream-nav-icon svg {
    width: 23px;
    height: 23px;
}

.cream-nav-item.active {
    color: var(--cream-orange-dark);
}

.cream-nav-item.center .cream-nav-icon {
    width: 58px;
    height: 58px;
    margin-top: -30px;
    border: 5px solid rgba(255, 250, 242, 0.96);
    border-radius: 50%;
    background: linear-gradient(145deg, #ff9b66, var(--cream-orange));
    color: #fff;
    box-shadow: 0 10px 24px rgba(244, 123, 66, 0.34);
}

.cream-nav-item.center .cream-nav-icon svg {
    width: 27px;
    height: 27px;
}

.cream-nav-item.center .cream-nav-label {
    margin-top: -2px;
}

.cream-nav-badge {
    position: absolute;
    top: 1px;
    left: calc(50% + 7px);
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border: 2px solid #fffaf2;
    border-radius: 9px;
    background: #ef4d4d;
    color: #fff;
    font-size: 9px;
    line-height: 13px;
    text-align: center;
}

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

.cream-product-card {
    overflow: hidden;
    padding: 0;
    cursor: pointer;
}

.cream-product-card img {
    width: 100%;
    aspect-ratio: 1.25;
    display: block;
    object-fit: cover;
    background: #f2e7d5;
}

.cream-product-body {
    padding: 12px;
}

.cream-product-name {
    min-height: 40px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
}

.cream-price {
    color: var(--cream-orange-dark);
    font-size: 20px;
    font-weight: 800;
}

.cream-chip-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 0 6px;
    scrollbar-width: none;
}

.cream-chip {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 14px;
    border: 1px solid var(--cream-border);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.7);
    color: var(--cream-muted);
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
}

.cream-chip.active {
    border-color: var(--cream-orange);
    background: #fff0e5;
    color: var(--cream-orange-dark);
}

.cream-status-dot {
    width: 7px;
    height: 7px;
    display: inline-block;
    border-radius: 50%;
    background: #ef4d4d;
    box-shadow: 0 0 0 3px rgba(239, 77, 77, 0.12);
}

.vip-card {
    position: relative;
    min-height: 228px;
    overflow: hidden;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 24px;
    background-color: #111a2d;
    background-position: center;
    background-size: cover;
    box-shadow: 0 20px 42px rgba(26, 35, 54, 0.24);
    color: #fff;
}

.vip-card::before {
    display: none;
}

.vip-locked-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(90deg, rgba(8, 14, 27, 0.76), rgba(8, 14, 27, 0.2));
    pointer-events: none;
}

.vip-locked-overlay[hidden] {
    display: none;
}

.vip-card-content {
    position: relative;
    z-index: 1;
}

.vip-state {
    display: inline-flex;
    padding: 5px 11px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 9px 9px 9px 2px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.vip-name {
    margin: 10px 0 2px;
    font-size: 42px;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: 0.04em;
    background: linear-gradient(180deg, #fff 0%, #cfe7ff 45%, #77b7ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 20px rgba(111, 181, 255, 0.22);
}

.vip-jade .vip-name {
    background-image: linear-gradient(180deg, #f2fff8 0%, #9ef0c8 45%, #35c98b 100%);
}

.vip-color .vip-name {
    background-image: linear-gradient(180deg, #fff 0%, #f4c8ff 40%, #b98cff 75%, #74d9ff 100%);
}

.vip-platinum .vip-name {
    background-image: linear-gradient(180deg, #fff 0%, #e7edf4 45%, #9cacbf 100%);
}

.vip-diamond .vip-name {
    background-image: linear-gradient(180deg, #ffffff 0%, #c8f3ff 38%, #77c8ff 68%, #4c8dff 100%);
}

.vip-card.unlocked .vip-name {
    filter: drop-shadow(0 0 12px rgba(125, 195, 255, 0.42));
    text-shadow: 0 0 22px rgba(125, 195, 255, 0.42), 0 5px 18px rgba(0, 0, 0, 0.34);
}

.vip-card.unlocked.vip-jade .vip-name {
    filter: drop-shadow(0 0 12px rgba(89, 255, 190, 0.38));
    text-shadow: 0 0 22px rgba(89, 255, 190, 0.34), 0 5px 18px rgba(0, 0, 0, 0.34);
}

.vip-card.unlocked.vip-color .vip-name {
    filter: drop-shadow(0 0 14px rgba(218, 153, 255, 0.5));
    text-shadow: 0 0 24px rgba(218, 153, 255, 0.45), 0 5px 18px rgba(0, 0, 0, 0.34);
}

.vip-card.unlocked.vip-platinum .vip-name {
    filter: drop-shadow(0 0 12px rgba(230, 241, 255, 0.4));
    text-shadow: 0 0 22px rgba(230, 241, 255, 0.35), 0 5px 18px rgba(0, 0, 0, 0.34);
}

.vip-card.unlocked .vip-link,
.vip-card.unlocked .vip-lock,
.vip-card.unlocked .vip-amount,
.vip-card.unlocked .vip-footer {
    color: rgba(255, 255, 255, 0.86);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}

.vip-card.unlocked .vip-state {
    border-color: rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.vip-card.unlocked .vip-progress {
    background: rgba(255, 255, 255, 0.2);
}

.vip-card.unlocked .vip-progress span {
    background: linear-gradient(90deg, #8fd3ff, #ffffff);
    box-shadow: 0 0 12px rgba(143, 211, 255, 0.6);
}

.vip-card.unlocked .vip-footer {
    border-top-color: rgba(255, 255, 255, 0.2);
}

.mine-vip-card {
    min-height: 168px;
    padding: 14px 16px;
}

.mine-vip-card .vip-state {
    padding: 4px 9px;
    font-size: 11px;
}

.mine-vip-card .vip-name {
    margin: 4px 0 1px;
    font-size: 30px;
}

.mine-vip-card .vip-link {
    font-size: 12px;
}

.mine-vip-card .vip-lock {
    margin-top: 6px;
    font-size: 12px;
}

.mine-vip-card .vip-amount {
    margin-top: 2px;
    font-size: 11px;
}

.mine-vip-card .vip-progress {
    height: 6px;
    margin-top: 5px;
}

.mine-vip-card .vip-footer {
    margin-top: 6px;
    padding-top: 5px;
    font-size: 10px;
}

.vip-link {
    color: rgba(255, 255, 255, 0.76);
    font-size: 13px;
    text-decoration: none;
}

.vip-lock {
    margin-top: 20px;
    font-size: 15px;
    font-weight: 750;
}

.vip-amount {
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
}

.vip-progress {
    height: 8px;
    margin-top: 10px;
    overflow: hidden;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.18);
}

.vip-progress span {
    height: 100%;
    display: block;
    border-radius: inherit;
    background: linear-gradient(90deg, #8fd3ff, #fff);
}

.vip-footer {
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    letter-spacing: 0.16em;
    text-align: center;
}

.cream-more-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px 10px;
}

.cream-more-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 0;
    border: 0;
    appearance: none;
    background: none;
    color: var(--cream-text);
    font: inherit;
    font-size: 12px;
    text-decoration: none;
    cursor: pointer;
}

.cream-more-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--cream-border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.76);
    color: #6f5f4c;
}

.cream-more-icon svg {
    width: 22px;
    height: 22px;
}

.cream-image-modal {
    position: fixed;
    inset: 0;
    z-index: 3200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(61, 51, 40, .58);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.cream-image-modal.active {
    display: flex;
}

.cream-image-modal-card {
    width: min(100%, 520px);
    max-height: 90vh;
    max-height: 90svh;
    overflow: hidden;
    border: 1px solid var(--cream-border);
    border-radius: 24px;
    background: #fffaf2;
    box-shadow: 0 24px 80px rgba(61, 51, 40, .3);
}

.cream-image-modal-head {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--cream-border);
    background: rgba(255, 250, 242, .96);
    backdrop-filter: blur(12px);
}

.cream-image-modal-title {
    margin: 0;
    color: var(--cream-text);
    font-size: 18px;
    font-weight: 850;
}

.cream-image-modal-close {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border: 1px solid var(--cream-border);
    border-radius: 50%;
    background: #fff;
    color: var(--cream-text);
    cursor: pointer;
}

.cream-image-modal-close svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.cream-image-modal-body {
    max-height: calc(90vh - 65px);
    max-height: calc(90svh - 65px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 12px;
}

.cream-image-modal-body img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
}

.cream-image-modal-body img[hidden],
.cream-image-modal-empty[hidden] {
    display: none !important;
}

.cream-image-modal-empty {
    padding: 44px 18px;
    color: var(--cream-muted);
    font-size: 14px;
    line-height: 1.8;
    text-align: center;
}

.cream-more-item:focus-visible,
.cream-image-modal-close:focus-visible {
    outline: 3px solid rgba(244, 123, 66, .3);
    outline-offset: 3px;
}

.cream-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 22px;
    border: 1px solid var(--cream-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--cream-text);
    font-weight: 700;
    text-decoration: none;
}

.balance-recharge {
    min-height: 34px;
    padding: 0 15px;
    border-color: #f3c3a7;
    background: #fff0e5;
    color: var(--cream-orange-dark);
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 6px 14px rgba(244, 123, 66, 0.12);
}

.cream-bottom-action {
    position: fixed;
    z-index: 1100;
    left: 50%;
    bottom: max(16px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    width: min(648px, calc(100% - 32px));
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    background: rgba(255, 250, 242, 0.9);
    box-shadow: 0 14px 36px rgba(93, 67, 33, 0.16);
    backdrop-filter: blur(18px);
}

.cream-bottom-action .cream-btn {
    border-radius: 999px;
}

.home-promo-card {
    padding: 0;
    overflow: hidden;
    text-decoration: none;
}

.home-promo-card img {
    width: 100%;
    aspect-ratio: 1.55;
    display: block;
    object-fit: cover;
}

.scroll-notice-container,
.home-quick-grid {
    position: relative;
    border: 0 !important;
    background: linear-gradient(170deg, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0.06) 46%, rgba(255, 255, 255, 0.18) 100%) !important;
    box-shadow:
        0 12px 28px rgba(96, 68, 36, 0.09),
        0 1px 3px rgba(96, 68, 36, 0.04),
        inset 0 1.5px 2px rgba(255, 255, 255, 0.92),
        inset 0 -2px 6px rgba(176, 138, 96, 0.07) !important;
    backdrop-filter: blur(14px) brightness(1.03) !important;
    -webkit-backdrop-filter: blur(14px) brightness(1.03) !important;
}

.scroll-notice-container::after,
.home-quick-grid::after,
.product-grid .product-card-new::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.2px;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(255, 255, 255, 0.32) 32%,
        rgba(255, 255, 255, 0.08) 56%,
        rgba(255, 255, 255, 0.82) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    z-index: 4;
}

.scroll-notice-container {
    border-radius: 999px !important;
}

.home-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin-top: 10px;
    padding: 9px 10px 10px;
    border-radius: 22px;
}

.home-quick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: var(--cream-text);
    font-size: 12px;
    font-weight: 650;
    text-decoration: none;
}

.home-quick-item img {
    width: 46px;
    height: 46px;
    margin: -2px 0 0;
    object-fit: contain;
}

.top-header {
    left: 50% !important;
    right: auto !important;
    width: min(680px, 100%) !important;
    transform: translateX(-50%);
    background: rgba(255, 250, 241, 0.9) !important;
    border-bottom-color: var(--cream-border) !important;
}

.main-container {
    width: min(680px, 100%) !important;
    margin: 56px auto 0 !important;
    height: calc(100vh - 150px) !important;
}

.category-sidebar {
    width: 104px !important;
    background: rgba(248, 238, 222, 0.72) !important;
    border-right-color: var(--cream-border) !important;
}

.category-item {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 64px;
    padding: 10px 6px !important;
    color: var(--cream-muted) !important;
    text-decoration: none !important;
}

.category-item.active {
    background: rgba(255, 253, 248, 0.96) !important;
    color: var(--cream-orange-dark) !important;
    border-left-color: var(--cream-orange) !important;
    font-weight: 750 !important;
}

.category-character {
    display: none;
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.category-item.active .category-character {
    display: block;
}

.products-content {
    padding: 12px !important;
}

.search-bar-glass,
.sort-bar {
    background: rgba(255, 253, 248, 0.9) !important;
    border-color: var(--cream-border) !important;
}

.search-bar-glass button,
.sort-btn.active,
.sort-btn:hover {
    background: var(--cream-orange) !important;
    border-color: var(--cream-orange) !important;
}

.product-grid .product-card-new {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 0 !important;
    border-radius: 20px;
    box-shadow:
        0 12px 28px rgba(96, 68, 36, 0.09),
        0 1px 3px rgba(96, 68, 36, 0.04),
        inset 0 1.5px 2px rgba(255, 255, 255, 0.94) !important;
    backdrop-filter: blur(14px) brightness(1.03) !important;
    -webkit-backdrop-filter: blur(14px) brightness(1.03) !important;
}

.product-grid .product-card-new:hover {
    box-shadow:
        0 16px 34px rgba(130, 88, 42, 0.14),
        inset 0 1.5px 2px rgba(255, 255, 255, 0.98) !important;
}

.product-grid .product-card-img-wrap {
    flex: 0 0 auto;
}

.product-grid .product-card-body {
    position: relative;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.85);
    background: linear-gradient(170deg, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0.06) 46%, rgba(255, 255, 255, 0.18) 100%) !important;
    backdrop-filter: blur(14px) brightness(1.03) !important;
    -webkit-backdrop-filter: blur(14px) brightness(1.03) !important;
    box-shadow:
        inset 0 1.5px 2px rgba(255, 255, 255, 0.92),
        inset 0 -2px 6px rgba(176, 138, 96, 0.07) !important;
}

.product-grid .product-card-name {
    color: #2f2419 !important;
    -webkit-text-fill-color: #2f2419 !important;
}

.product-grid .product-card-meta {
    color: #7d6f5d !important;
    -webkit-text-fill-color: #7d6f5d !important;
}

.product-grid .product-card-footer {
    margin-top: auto;
    padding-top: 8px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px;
}

.product-grid .product-card-body > .product-card-price:last-child {
    margin-top: auto;
    padding-top: 6px;
}

.product-grid .product-card-price {
    color: var(--cream-orange-dark) !important;
    -webkit-text-fill-color: var(--cream-orange-dark) !important;
}

.product-grid .product-card-price small {
    color: #8b7d6b !important;
    -webkit-text-fill-color: #8b7d6b !important;
}

.product-grid .product-card-sold {
    color: #968774 !important;
    -webkit-text-fill-color: #968774 !important;
}

.fee-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    color: var(--cream-muted);
    font-size: 13px;
}

@media (max-width: 520px) {
    .cream-section {
        margin-left: 12px;
        margin-right: 12px;
    }

    .vip-card {
        min-height: 210px;
        padding: 18px;
    }

    .vip-name {
        font-size: 36px;
    }

    .cream-more-grid {
        gap: 16px 6px;
    }
}

.tip-line-icon {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.85;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.inline-icon-value {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}

.order-feature-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 6px 0 4px;
}

.order-feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.3;
    border: 1px solid transparent;
}

.order-feature-badge.is-demon {
    background: linear-gradient(135deg, #fff1d6, #ffe0b5);
    border-color: #f0be74;
    color: #9e4b08;
}

.order-feature-badge.is-tip {
    background: linear-gradient(135deg, #fff0e5, #ffe2cf);
    border-color: #f3b58e;
    color: #c84b18;
}

.tip-sheet-overlay {
    position: fixed;
    inset: 0;
    z-index: 2600;
    display: none;
    align-items: flex-end;
    justify-content: center;
    background: rgba(61, 51, 40, .44);
    backdrop-filter: blur(4px);
}

.tip-sheet-overlay.active {
    display: flex;
}

.tip-sheet-panel {
    width: min(680px, 100%);
    max-height: 86vh;
    overflow-y: auto;
    padding: 10px 16px calc(18px + env(safe-area-inset-bottom));
    border: 1px solid rgba(255, 255, 255, .92);
    border-radius: 26px 26px 0 0;
    background: #fffaf2;
    box-shadow: 0 -18px 50px rgba(61, 51, 40, .2);
}

.tip-sheet-panel .sheet-handle {
    width: 42px;
    height: 5px;
    margin: 2px auto 12px;
    border-radius: 3px;
    background: #ddcfbb;
}

.tip-sheet-panel .sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tip-sheet-panel .sheet-title {
    font-size: 19px;
    font-weight: 850;
    color: var(--cream-text);
}

.tip-sheet-panel .sheet-close {
    width: 34px;
    height: 34px;
    border: 1px solid var(--cream-border);
    border-radius: 50%;
    background: #fff;
    color: var(--cream-muted);
    font-size: 20px;
    cursor: pointer;
}

.tip-target-card {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: 12px;
    padding: 12px;
    border: 1px solid var(--cream-border);
    border-radius: 16px;
    background: rgba(255, 255, 255, .78);
}

.tip-target-avatar {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 14px;
    object-fit: cover;
    background: #eee2cf;
}

.tip-target-main {
    flex: 1;
    min-width: 0;
}

.tip-target-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 800;
    color: var(--cream-text);
}

.tip-target-badge {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.tip-pay-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.tip-pay-option {
    padding: 12px;
    border: 1px solid var(--cream-border);
    border-radius: 14px;
    background: rgba(255, 255, 255, .76);
    text-align: center;
    cursor: pointer;
}

.tip-pay-option input {
    display: none;
}

.tip-pay-option:has(input:checked) {
    border-color: var(--cream-orange);
    background: #fff0e5;
    color: var(--cream-orange-dark);
}

.tip-pay-option strong {
    display: block;
    font-size: 14px;
}

.tip-pay-option small {
    display: block;
    margin-top: 2px;
    color: var(--cream-muted);
    font-size: 12px;
}

.tip-sheet-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--cream-border);
}

.tip-sheet-footer .cream-btn {
    min-width: 140px;
    min-height: 44px;
    border-radius: 999px;
}

.login-center-toast {
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 9999;
    transform: translate(-50%, -50%) scale(.94);
    padding: 12px 24px;
    border-radius: 14px;
    background: rgba(34, 28, 22, .88);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .04em;
    white-space: nowrap;
    box-shadow: 0 14px 36px rgba(0, 0, 0, .24);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}

.login-center-toast.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
    transition: opacity .18s ease, transform .18s ease, visibility 0s;
}

.staff-state-tag,
.staff-workbench-page .status-online {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
    white-space: nowrap;
    backdrop-filter: blur(14px) brightness(1.03);
    -webkit-backdrop-filter: blur(14px) brightness(1.03);
    box-shadow:
        0 4px 12px rgba(96, 68, 38, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.88),
        inset 0 -1px 0 rgba(255, 255, 255, 0.25);
}

.staff-state-dot,
.staff-workbench-page .status-online .status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

.staff-workbench-page .status-online {
    min-height: 28px;
    padding: 0 11px;
    font-size: 12px;
    gap: 6px;
}

.staff-workbench-page .status-online .status-dot {
    width: 7px;
    height: 7px;
}

.staff-state-tag.is-online,
.staff-workbench-page .status-online.is-active {
    border-color: rgba(140, 216, 168, 0.65);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.68) 0%, rgba(255, 255, 255, 0.08) 48%, rgba(255, 255, 255, 0) 52%),
        linear-gradient(145deg, rgba(228, 251, 236, 0.62) 0%, rgba(190, 238, 208, 0.34) 100%);
    color: #1f6e43;
    box-shadow:
        0 4px 12px rgba(47, 125, 79, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.92),
        inset 0 -1px 0 rgba(164, 224, 186, 0.36);
}

.staff-state-tag.is-online .staff-state-dot,
.staff-workbench-page .status-online.is-active .status-dot {
    box-shadow: 0 0 6px rgba(47, 125, 79, 0.52);
}

.staff-state-tag.is-busy,
.staff-workbench-page .status-online.is-busy {
    border-color: rgba(244, 178, 126, 0.68);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.68) 0%, rgba(255, 255, 255, 0.08) 48%, rgba(255, 255, 255, 0) 52%),
        linear-gradient(145deg, rgba(255, 242, 226, 0.66) 0%, rgba(255, 218, 184, 0.38) 100%);
    color: #bf4e16;
    box-shadow:
        0 4px 12px rgba(217, 108, 44, 0.13),
        inset 0 1px 0 rgba(255, 255, 255, 0.92),
        inset 0 -1px 0 rgba(245, 190, 146, 0.36);
}

.staff-state-tag.is-busy .staff-state-dot,
.staff-workbench-page .status-online.is-busy .status-dot {
    box-shadow: 0 0 6px rgba(223, 101, 48, 0.52);
}

.staff-state-tag.is-rest,
.staff-workbench-page .status-online.is-inactive {
    border-color: rgba(212, 200, 184, 0.66);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.66) 0%, rgba(255, 255, 255, 0.08) 48%, rgba(255, 255, 255, 0) 52%),
        linear-gradient(145deg, rgba(250, 247, 242, 0.62) 0%, rgba(232, 224, 212, 0.34) 100%);
    color: #7c6d5c;
    box-shadow:
        0 4px 10px rgba(96, 68, 38, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.90),
        inset 0 -1px 0 rgba(216, 204, 190, 0.32);
}

.cream-glass-toast {
    position: fixed;
    left: 50%;
    top: 48%;
    z-index: 9999;
    max-width: min(86vw, 320px);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.82);
    background: linear-gradient(135deg, rgba(255, 252, 246, 0.72) 0%, rgba(255, 245, 234, 0.62) 100%);
    color: #4f3d2d;
    font-size: 14.5px;
    font-weight: 750;
    letter-spacing: 0.02em;
    line-height: 1.45;
    white-space: nowrap;
    box-shadow: 0 18px 42px rgba(96, 68, 38, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(18px) brightness(1.03);
    -webkit-backdrop-filter: blur(18px) brightness(1.03);
    transform: translate(-50%, -50%) scale(.93);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    cursor: pointer;
    transition: opacity .2s ease, transform .22s cubic-bezier(.22, 1, .36, 1), visibility 0s linear .22s;
}

.cream-glass-toast.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
    transition: opacity .2s ease, transform .22s cubic-bezier(.22, 1, .36, 1), visibility 0s;
}

.cream-glass-toast-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.cream-glass-toast-icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cream-glass-toast.is-busy {
    border-color: rgba(255, 246, 238, 0.9);
    background: linear-gradient(135deg, rgba(255, 250, 243, 0.74) 0%, rgba(255, 239, 224, 0.64) 100%);
    color: #6a3d1f;
}

.cream-glass-toast.is-busy .cream-glass-toast-icon {
    background: rgba(244, 123, 66, 0.14);
    color: #df6530;
}

.cream-glass-toast.is-rest {
    border-color: rgba(255, 255, 255, 0.82);
    background: linear-gradient(135deg, rgba(252, 249, 245, 0.72) 0%, rgba(242, 235, 226, 0.62) 100%);
    color: #5a4e42;
}

.cream-glass-toast.is-rest .cream-glass-toast-icon {
    background: rgba(139, 125, 107, 0.15);
    color: #7d6d5c;
}
