html {
    font-family: 'LINE Seed Sans TH', ui-sans-serif, system-ui, sans-serif;
    font-weight: 400;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: inherit;
    font-weight: 400;
}

html,
body.site-body {
    overflow-x: clip;
    max-width: 100%;
}

body.site-body {
    touch-action: manipulation;
}

@media (max-width: 1023px) {
    .site-body input:not([type='checkbox']):not([type='radio']):not([type='range']):not([type='hidden']):not([type='button']):not([type='submit']):not([type='reset']):not([type='file']),
    .site-body textarea,
    .site-body select {
        font-size: max(16px, 1em);
    }
}

/* ── Site grid background (Next.js UI style) ── */
.site-body {
    position: relative;
    min-height: 100%;
    background-color: #f8fafc;
}

/* Portals / fixed overlays must not get position:relative from body children rule */
.site-body > :not(.site-grid-bg):not(.wallet-pp-modal):not(.wallet-result-modal):not(.toast-container):not(.site-nav-drawer-layer):not(.site-modal-layer) {
    position: relative;
}

.site-body > main,
.site-body > .site-footer {
    z-index: 1;
}

.site-body > .site-nav {
    z-index: 100;
}

.site-body > .toast-container {
    position: fixed;
    z-index: 11000;
}

.site-body > .site-nav-drawer-layer {
    position: fixed;
    z-index: 12000;
}

.site-grid-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    --mouse-x: 50%;
    --mouse-y: 35%;
}

.site-grid-bg-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 55% at 50% -15%, rgb(var(--brand-500-rgb) / 0.1), transparent 62%),
        radial-gradient(ellipse 45% 35% at 100% 0%, rgb(var(--brand-500-rgb) / 0.06), transparent 55%),
        radial-gradient(ellipse 40% 30% at 0% 100%, rgb(var(--brand-500-rgb) / 0.05), transparent 50%),
        #f8fafc;
}

.site-grid-bg-orbs {
    position: absolute;
    inset: 0;
}

.site-grid-bg-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(72px);
    opacity: 0.55;
    will-change: transform;
}

.site-grid-bg-orb--1 {
    top: -8%;
    left: -6%;
    width: min(34vw, 22rem);
    height: min(34vw, 22rem);
    background: rgb(var(--brand-500-rgb) / 0.22);
    animation: siteGridOrb1 22s ease-in-out infinite;
}

.site-grid-bg-orb--2 {
    top: 38%;
    right: -8%;
    width: min(28vw, 18rem);
    height: min(28vw, 18rem);
    background: rgb(var(--brand-600-rgb) / 0.14);
    animation: siteGridOrb2 26s ease-in-out infinite;
}

.site-grid-bg-orb--3 {
    bottom: -10%;
    left: 28%;
    width: min(32vw, 20rem);
    height: min(32vw, 20rem);
    background: rgb(var(--brand-500-rgb) / 0.1);
    animation: siteGridOrb3 30s ease-in-out infinite;
}

.site-grid-bg-lines,
.site-grid-bg-dots {
    position: absolute;
    inset: -1px;
    background-size: 72px 72px;
}

.site-grid-bg-lines {
    background-image:
        linear-gradient(to right, rgb(148 163 184 / 0.14) 1px, transparent 1px),
        linear-gradient(to bottom, rgb(148 163 184 / 0.14) 1px, transparent 1px);
    mask-image: radial-gradient(ellipse 88% 72% at 50% 38%, #000 24%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 88% 72% at 50% 38%, #000 24%, transparent 78%);
    animation: siteGridPan 90s linear infinite;
}

.site-grid-bg-lines--bright {
    background-image:
        linear-gradient(to right, rgb(var(--brand-500-rgb) / 0.22) 1px, transparent 1px),
        linear-gradient(to bottom, rgb(var(--brand-500-rgb) / 0.22) 1px, transparent 1px);
    opacity: 0.85;
    mask-image: radial-gradient(
        520px circle at var(--mouse-x) var(--mouse-y),
        #000 0%,
        transparent 68%
    );
    -webkit-mask-image: radial-gradient(
        520px circle at var(--mouse-x) var(--mouse-y),
        #000 0%,
        transparent 68%
    );
    animation: none;
}

.site-grid-bg-dots {
    background-image: radial-gradient(rgb(148 163 184 / 0.38) 1px, transparent 1px);
    opacity: 0.55;
    mask-image: radial-gradient(ellipse 85% 70% at 50% 40%, #000 18%, transparent 72%);
    -webkit-mask-image: radial-gradient(ellipse 85% 70% at 50% 40%, #000 18%, transparent 72%);
    animation: siteGridPan 90s linear infinite reverse;
}

.site-grid-bg-vignette {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px circle at var(--mouse-x) var(--mouse-y), rgb(var(--brand-500-rgb) / 0.07), transparent 42%),
        linear-gradient(to bottom, rgb(248 250 252 / 0.15), rgb(248 250 252 / 0.55) 88%, #f8fafc);
}

@keyframes siteGridPan {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(72px, 72px, 0); }
}

@keyframes siteGridOrb1 {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(6%, 8%, 0) scale(1.08); }
}

@keyframes siteGridOrb2 {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(-7%, -5%, 0) scale(1.06); }
}

@keyframes siteGridOrb3 {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(5%, -6%, 0) scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
    .site-grid-bg-lines,
    .site-grid-bg-dots,
    .site-grid-bg-orb {
        animation: none !important;
    }
}

@media (max-width: 640px) {
    .site-grid-bg-lines--bright {
        mask-image: radial-gradient(360px circle at var(--mouse-x) var(--mouse-y), #000 0%, transparent 70%);
        -webkit-mask-image: radial-gradient(360px circle at var(--mouse-x) var(--mouse-y), #000 0%, transparent 70%);
    }
}

[x-cloak] { display: none !important; }

[data-tooltip] { position: relative; }
button[data-tooltip],
a[data-tooltip],
[role="button"][data-tooltip] { cursor: pointer; }
[data-tooltip]:not(button):not(a):not([role="button"]) { cursor: help; }
[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: #fff;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s;
    z-index: 100;
}
[data-tooltip]:hover::after { opacity: 1; }

.toast-container {
    position: fixed;
    top: 1rem;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    z-index: 11000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    pointer-events: none;
    max-width: calc(100vw - 1.5rem);
}

.toast-item {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    width: max-content;
    max-width: calc(100vw - 2rem);
    padding: 0.625rem 0.75rem 0.625rem 0.625rem;
    background: #fff;
    color: #111827;
    border: 1px solid #e5e7eb;
    border-radius: 0.625rem;
    box-shadow: 0 4px 20px rgb(15 23 42 / 0.08), 0 1px 3px rgb(15 23 42 / 0.04);
    font-size: 0.875rem;
    line-height: 1.45;
    animation: toastIn 0.28s ease;
}

.toast-item.toast-leave {
    animation: toastOut 0.2s ease forwards;
}

.toast-icon {
    flex-shrink: 0;
    width: 1.375rem;
    height: 1.375rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.0625rem;
}

.toast-icon svg {
    width: 0.8125rem;
    height: 0.8125rem;
}

.toast-success .toast-icon { background: #ecfdf5; color: #059669; }
.toast-error .toast-icon { background: #fef2f2; color: #dc2626; }
.toast-warning .toast-icon { background: #fffbeb; color: #d97706; }
.toast-info .toast-icon { background: #eff6ff; color: #2563eb; }

.toast-text {
    flex: none;
    padding-top: 0;
    white-space: nowrap;
}

.toast-item.toast-wrap .toast-text {
    white-space: normal;
    max-width: calc(100vw - 5rem);
}

.toast-close {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    margin: -0.125rem -0.125rem 0 0.125rem;
    border: none;
    background: transparent;
    color: #9ca3af;
    border-radius: 0.375rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
}

.toast-close:hover {
    color: #6b7280;
    background: #f3f4f6;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateY(-0.375rem) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to { opacity: 0; transform: translateY(-0.25rem) scale(0.98); }
}

@media (max-width: 639px) {
    .toast-container {
        top: auto;
        bottom: max(1rem, env(safe-area-inset-bottom));
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        align-items: center;
        width: auto;
        max-width: none;
    }

    .toast-item {
        width: max-content;
        max-width: calc(100vw - 2rem);
    }
}

/* ── Shop product cards ── */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.875rem; }
}

@media (min-width: 1024px) {
    .shop-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.875rem; }
}

@media (min-width: 1280px) {
    .shop-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.625rem; }
}

.shop-card {
    display: flex;
    flex-direction: column;
    position: relative;
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 1rem;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.shop-card-selected {
    border-color: color-mix(in srgb, var(--brand-500) 35%, white);
    box-shadow: 0 0 0 2px rgb(255 255 255 / 0.95), 0 8px 28px rgb(15 23 42 / 0.08);
    animation: shopSelectPulse 2.4s ease-in-out infinite;
}

.shop-card-selected::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        110deg,
        transparent 30%,
        rgb(255 255 255 / 0) 42%,
        rgb(255 255 255 / 0.85) 50%,
        rgb(255 255 255 / 0) 58%,
        transparent 70%
    );
    background-size: 250% 100%;
    animation: shopShimmer 2.8s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes shopShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes shopSelectPulse {
    0%, 100% { box-shadow: 0 0 0 2px rgb(255 255 255 / 0.9), 0 8px 24px rgb(15 23 42 / 0.06); }
    50% { box-shadow: 0 0 0 2px rgb(255 255 255 / 1), 0 10px 32px rgb(255 255 255 / 0.45); }
}

.shop-card-check {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 3;
    width: 1.625rem;
    height: 1.625rem;
    border-radius: 999px;
    border: 2px solid #e2e8f0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
    padding: 0;
}

.shop-card-check:hover {
    border-color: color-mix(in srgb, var(--brand-500) 60%, white);
    transform: scale(1.08);
    box-shadow: 0 2px 8px rgb(var(--brand-500-rgb) / 0.2);
}

.shop-card-check.is-on {
    border-color: rgb(255 255 255 / 0.95);
    background: rgb(255 255 255 / 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--brand-600);
    animation: checkPop 0.35s ease, checkGlow 2.2s ease-in-out infinite;
}

.shop-card-qty {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    padding: 0.15rem;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.92);
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 14px rgb(15 23 42 / 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.shop-card-qty-btn {
    width: 1.6rem;
    height: 1.6rem;
    border: 0;
    border-radius: 999px;
    background: #f1f5f9;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.shop-card-qty-btn:hover:not(:disabled) {
    background: var(--brand-500);
    color: #fff;
    transform: scale(1.05);
}

.shop-card-qty-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.shop-card-qty-value {
    min-width: 1.35rem;
    text-align: center;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #0f172a;
}

.shop-confirm-row-qty {
    display: inline-block;
    margin-left: 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--brand-600);
}

@keyframes checkPop {
    0% { transform: scale(0.85); }
    60% { transform: scale(1.12); }
    100% { transform: scale(1); }
}

@keyframes checkGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgb(255 255 255 / 0.75), 0 2px 10px rgb(255 255 255 / 0.45); }
    50% { box-shadow: 0 0 0 7px rgb(255 255 255 / 0), 0 4px 18px rgb(255 255 255 / 0.65); }
}

.shop-card-check svg {
    width: 0.875rem;
    height: 0.875rem;
}

.shop-card:hover {
    border-color: var(--brand-100);
    box-shadow: 0 8px 24px rgb(var(--brand-500-rgb) / 0.08);
    transform: translateY(-1px);
}

.shop-card-icon-area {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 0.75rem 0.625rem;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.shop-card-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.875rem;
    object-fit: cover;
    box-shadow: 0 2px 8px rgb(15 23 42 / 0.06), 0 0 0 1px rgb(15 23 42 / 0.04);
}

.shop-card-icon-fallback {
    width: 3rem;
    height: 3rem;
    border-radius: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    background: linear-gradient(135deg, var(--brand-50), var(--brand-100));
    color: var(--brand-600);
}

@media (min-width: 640px) {
    .shop-card-icon,
    .shop-card-icon-fallback {
        width: 3.25rem;
        height: 3.25rem;
    }
}

.shop-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0 0.75rem 0.75rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.shop-card-name {
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.35;
    color: #1e293b;
    min-height: 2.2em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shop-card-name-text {
    display: inline;
}

.shop-card-country-flag {
    display: inline-block;
    width: 0.9rem;
    height: 0.9rem;
    margin-left: 0.28rem;
    vertical-align: -0.12rem;
    border-radius: 999px;
    object-fit: cover;
    background: #fff;
    box-shadow: 0 0 0 1px rgb(15 23 42 / 0.08);
}

.shop-card-footer {
    margin-top: auto;
    padding-top: 0.625rem;
}

.shop-card-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--brand-600);
    line-height: 1.2;
}

.shop-card-price-unit {
    font-size: 0.625rem;
    font-weight: 500;
    color: #94a3b8;
}

.shop-card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
    border: none;
    border-radius: 0.625rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: opacity 0.15s, transform 0.15s, box-shadow 0.15s;
}

.shop-card-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 42%, rgb(255 255 255 / 0.18) 50%, transparent 58%);
    background-size: 200% 100%;
    animation: shopShimmer 3.2s ease-in-out infinite;
    pointer-events: none;
}

.shop-card-btn:hover:not(:disabled) {
    opacity: 0.95;
    box-shadow: 0 4px 14px rgb(var(--brand-500-rgb) / 0.3);
}

.shop-card-btn:active:not(:disabled) {
    transform: scale(0.98);
}

.shop-card-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

@media (min-width: 1280px) {
    .shop-card-icon-area {
        padding: 0.75rem 0.5rem 0.5rem;
    }

    .shop-card-icon,
    .shop-card-icon-fallback {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 0.9375rem;
    }

    .shop-card-body {
        padding: 0 0.5rem 0.625rem;
    }

    .shop-card-name {
        font-size: 0.75rem;
        min-height: 2em;
    }

    .shop-card-country-flag {
        width: 0.8rem;
        height: 0.8rem;
        margin-left: 0.22rem;
        vertical-align: -0.1rem;
    }

    .shop-card-price {
        font-size: 0.875rem;
    }

    .shop-card-btn {
        font-size: 0.6875rem;
        padding: 0.4375rem 0.5rem;
        margin-top: 0.375rem;
    }
}

.shop-skeleton-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.875rem;
    margin: 0 auto;
}

.shop-page-with-bar {
    padding-bottom: 5.5rem;
}

@media (min-width: 640px) {
    .shop-page-with-bar {
        padding-bottom: 6rem;
    }
}

/* Sticky cart bar */
.shop-cart-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    padding: 0.75rem 1rem max(0.75rem, env(safe-area-inset-bottom));
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    border-top: 1px solid var(--brand-100);
    box-shadow: 0 -8px 32px rgb(var(--brand-500-rgb) / 0.1);
}

.shop-cart-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--brand-500), var(--brand-100), var(--brand-500), var(--brand-600));
    background-size: 300% 100%;
    animation: shopBarShine 4s linear infinite;
}

@keyframes shopBarShine {
    0% { background-position: 0% 0; }
    100% { background-position: 300% 0; }
}

.shop-cart-bar-inner {
    position: relative;
    max-width: 80rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.shop-cart-summary {
    min-width: 0;
}

.shop-cart-badge {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--brand-700);
    background: var(--brand-50);
    border-radius: 999px;
    margin-bottom: 0.25rem;
    animation: badgeShimmer 3s ease-in-out infinite;
}

@keyframes badgeShimmer {
    0%, 100% { background-color: var(--brand-50); }
    50% { background-color: var(--brand-100); }
}

.shop-cart-total {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--brand-600);
    line-height: 1.2;
}

.shop-cart-total-label {
    font-size: 0.6875rem;
    font-weight: 500;
    color: #94a3b8;
}

.shop-cart-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.shop-cart-clear {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.625rem;
    cursor: pointer;
}

.shop-cart-clear:hover {
    background: #f1f5f9;
}

.shop-cart-buy {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
    border: none;
    border-radius: 0.625rem;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    transition: opacity 0.15s, transform 0.15s, box-shadow 0.15s;
}

.shop-cart-buy::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgb(255 255 255 / 0.25) 50%, transparent 60%);
    background-size: 200% 100%;
    animation: shopShimmer 2.5s ease-in-out infinite;
    pointer-events: none;
}

.shop-cart-buy:hover:not(:disabled) {
    opacity: 0.95;
    box-shadow: 0 4px 16px rgb(var(--brand-500-rgb) / 0.35);
    transform: translateY(-1px);
}

.shop-cart-buy:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* Confirm / login / review modal portals
   Keep position/z-index !important so teleported overlays aren't crushed by
   `.site-body > * { position: relative }` (common production cache mismatch).
   Do NOT put !important on display — Alpine x-show needs to hide with inline style. */
.site-modal-layer,
.shop-modal-backdrop,
.review-modal-backdrop {
    position: fixed !important;
    inset: 0 !important;
    z-index: 10100 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    margin: 0;
    max-width: none;
    width: auto;
    height: auto;
    transform: none;
    background: rgb(15 23 42 / 0.42);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

body.shop-modal-open,
body.review-modal-open {
    overflow: hidden;
}

.shop-confirm-modal {
    width: 100%;
    max-width: 22rem;
    background: #fff;
    border-radius: 1.25rem;
    overflow: visible;
    box-shadow: 0 24px 48px rgb(15 23 42 / 0.18);
    animation: shopModalIn 0.22s ease;
}

.shop-confirm-modal.is-offer {
    max-width: 24rem;
}

.shop-confirm-product {
    padding-right: 1.5rem;
}

.shop-confirm-product-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.shop-confirm-product-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    object-fit: cover;
    background: #f1f5f9;
    flex-shrink: 0;
}

.shop-confirm-product-meta {
    min-width: 0;
    text-align: left;
}

.shop-confirm-product-meta .shop-confirm-title,
.shop-confirm-product-meta .shop-confirm-sub {
    text-align: left;
}

.shop-offer-block {
    padding: 0 1.25rem 0.35rem;
}

.shop-offer-tabs {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 0.55rem;
}

.shop-offer-tab {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
}

.shop-offer-tab.is-active {
    color: #fff;
    background: var(--brand-500);
}

.shop-offer-loading {
    margin: 0;
    padding: 0.85rem 0.5rem;
    text-align: center;
    font-size: 0.8125rem;
    color: #94a3b8;
}

.shop-offer-list {
    max-height: 11.5rem;
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
    padding: 0.3rem;
    background: #fff;
}

.shop-offer-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.62rem 0.55rem;
    border: 0;
    border-radius: 0.6rem;
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.shop-offer-option:hover:not(:disabled) {
    background: #f8fafc;
}

.shop-offer-option.is-active {
    background: color-mix(in srgb, var(--brand-50) 90%, white);
}

.shop-offer-option.is-disabled,
.shop-offer-option:disabled {
    opacity: 0.42;
    cursor: not-allowed;
}

.shop-offer-price {
    flex: 1;
    min-width: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #0f172a;
}

.shop-offer-count {
    font-size: 0.75rem;
    color: #94a3b8;
    white-space: nowrap;
    min-width: 4.5rem;
    text-align: right;
}

.shop-offer-note {
    margin: 0.7rem 0 0;
    font-size: 0.75rem;
    line-height: 1.5;
    color: #94a3b8;
    text-align: center;
}

.shop-qty-block {
    padding: 0.35rem 1.25rem 0.95rem;
}

.shop-qty-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 0.28rem;
    background: #fff;
}

.shop-qty-btn {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #0f172a;
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.shop-qty-btn:hover:not(:disabled) {
    border-color: color-mix(in srgb, var(--brand-500) 40%, white);
    color: var(--brand-600);
}

.shop-qty-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.shop-qty-value {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    min-width: 2rem;
    text-align: center;
}

.shop-confirm-actions.is-offer {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0 1.25rem 1.15rem;
}

.shop-confirm-actions.is-offer .shop-confirm-ok {
    flex: 1;
}

.shop-confirm-x {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 999px;
    border: 0;
    background: #f1f5f9;
    color: #334155;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}

.shop-confirm-x:hover:not(:disabled) {
    background: #e2e8f0;
}

.shop-confirm-x:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.shop-confirm-operator {
    padding: 0 1.25rem 0.75rem;
}

.shop-confirm-operator-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.5rem;
}

.shop-operator-select {
    position: relative;
}

.shop-operator-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 0.85rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #fff;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.shop-operator-trigger:hover:not(:disabled) {
    border-color: color-mix(in srgb, var(--brand-500) 45%, white);
}

.shop-operator-trigger:disabled {
    opacity: 0.65;
    cursor: wait;
}

.shop-operator-trigger-main {
    flex: 1;
    min-width: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #0f172a;
}

.shop-operator-trigger-meta {
    font-size: 0.75rem;
    color: #94a3b8;
    white-space: nowrap;
}

.shop-operator-chevron {
    color: #94a3b8;
    display: inline-flex;
}

.shop-operator-menu {
    position: absolute;
    z-index: 20;
    left: 0;
    right: 0;
    top: calc(100% + 0.35rem);
    max-height: 14rem;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
    box-shadow: 0 12px 28px rgb(15 23 42 / 0.12);
    padding: 0.35rem;
}

.shop-operator-loading,
.shop-operator-empty {
    margin: 0;
    padding: 0.75rem 0.65rem;
    font-size: 0.8125rem;
    color: #94a3b8;
    text-align: center;
}

.shop-operator-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.6rem;
    border: 0;
    border-radius: 0.6rem;
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.shop-operator-option:hover:not(:disabled) {
    background: #f8fafc;
}

.shop-operator-option.is-active {
    background: color-mix(in srgb, var(--brand-50) 90%, white);
}

.shop-operator-option.is-disabled,
.shop-operator-option:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.shop-operator-radio {
    width: 1rem;
    height: 1rem;
    border-radius: 999px;
    border: 2px solid #cbd5e1;
    flex-shrink: 0;
    position: relative;
}

.shop-operator-radio.is-on {
    border-color: var(--brand-500);
}

.shop-operator-radio.is-on::after {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: 999px;
    background: var(--brand-500);
}

.shop-operator-name {
    flex: 1;
    min-width: 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: #0f172a;
}

.shop-operator-count {
    font-size: 0.75rem;
    color: #94a3b8;
    white-space: nowrap;
}

.shop-operator-count-skel {
    width: 3.25rem;
    height: 0.7rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: shopCountSkel 1.1s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes shopCountSkel {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

@keyframes shopModalIn {
    from { opacity: 0; transform: scale(0.96) translateY(0.5rem); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Login required modal */
.shop-login-modal {
    position: relative;
    width: 100%;
    max-width: 22rem;
    background: #fff;
    border-radius: 1.25rem;
    padding: 2rem 1.5rem 1.5rem;
    text-align: center;
    box-shadow: 0 24px 48px rgb(15 23 42 / 0.18);
    animation: shopModalIn 0.22s ease;
    overflow: hidden;
}

.shop-login-modal::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 0.375rem;
    background: linear-gradient(90deg, var(--brand-400), var(--brand-600));
}

.shop-login-icon {
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand-50), var(--brand-100));
    color: var(--brand-600);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 8px color-mix(in srgb, var(--brand-100) 45%, transparent);
}

.shop-login-icon svg {
    width: 1.75rem;
    height: 1.75rem;
}

.shop-login-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
}

.shop-login-sub {
    font-size: 0.8125rem;
    color: #64748b;
    margin-top: 0.375rem;
    line-height: 1.6;
}

.shop-login-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.shop-login-btn-primary {
    display: block;
    padding: 0.7rem 1rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 8px 18px color-mix(in srgb, var(--brand-600) 30%, transparent);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.shop-login-btn-primary:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px color-mix(in srgb, var(--brand-600) 38%, transparent);
}

.shop-login-btn-outline {
    display: block;
    padding: 0.7rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 0.875rem;
    font-weight: 600;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.shop-login-btn-outline:hover {
    border-color: var(--brand-300);
    color: var(--brand-600);
    background: var(--brand-50);
}

.shop-confirm-head {
    position: relative;
    padding: 1.25rem 1.25rem 0.75rem;
    text-align: center;
}

.shop-confirm-close {
    position: absolute;
    top: 0.875rem;
    right: 0.875rem;
    width: 1.75rem;
    height: 1.75rem;
    border: none;
    background: transparent;
    color: #94a3b8;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
}

.shop-confirm-close:hover {
    background: #f1f5f9;
    color: #64748b;
}

.shop-confirm-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 0.75rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand-50), var(--brand-100));
    color: var(--brand-600);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: checkGlow 2.4s ease-in-out infinite;
}

.shop-confirm-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.shop-confirm-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
}

.shop-confirm-sub {
    font-size: 0.8125rem;
    color: #64748b;
    margin-top: 0.25rem;
}

.shop-confirm-list {
    max-height: 14rem;
    overflow-y: auto;
    margin: 0 1.25rem;
    border: 1px solid #f1f5f9;
    border-radius: 0.75rem;
}

.shop-confirm-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.625rem 0.875rem;
    font-size: 0.8125rem;
    border-bottom: 1px solid #f8fafc;
}

.shop-confirm-row:last-child {
    border-bottom: none;
}

.shop-confirm-row-name {
    font-weight: 500;
    color: #334155;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shop-confirm-row-price {
    font-weight: 600;
    color: var(--brand-600);
    flex-shrink: 0;
}

.shop-confirm-total-row {
    display: flex;
    justify-content: flex-end;
    padding: 0.75rem 1.25rem 0;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--brand-600);
}

.shop-confirm-actions {
    display: flex;
    gap: 0.625rem;
    padding: 1.25rem;
}

.shop-confirm-cancel {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    background: #f1f5f9;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
}

.shop-confirm-cancel:hover:not(:disabled) {
    background: #e2e8f0;
}

.shop-confirm-ok {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: opacity 0.15s, box-shadow 0.15s, transform 0.15s;
}

.shop-confirm-ok::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgb(255 255 255 / 0.22) 50%, transparent 60%);
    background-size: 200% 100%;
    animation: shopShimmer 2.5s ease-in-out infinite;
    pointer-events: none;
}

.shop-confirm-ok:hover:not(:disabled) {
    opacity: 0.95;
    box-shadow: 0 4px 16px rgb(var(--brand-500-rgb) / 0.35);
    transform: translateY(-1px);
}

.shop-confirm-ok:disabled,
.shop-confirm-cancel:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.spinner-sm {
    width: 0.875rem;
    height: 0.875rem;
    border-width: 2px;
}

.card-hover { transition: box-shadow .2s, transform .2s; }
.card-hover:hover { box-shadow: 0 10px 25px -5px rgb(0 0 0 / .1); transform: translateY(-2px); }

.spinner {
    border: 3px solid #e2e8f0;
    border-top-color: var(--brand-500);
    border-radius: 50%;
    width: 24px; height: 24px;
    animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.prose-sm p { margin-bottom: .5rem; }

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.2s ease-in-out infinite;
    border-radius: 0.5rem;
}

@keyframes skeletonShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-card {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 0.75rem;
    padding: 1.25rem;
}

.skeleton-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    flex-shrink: 0;
}

.skeleton-line {
    height: 0.875rem;
    margin-bottom: 0.5rem;
}

.skeleton-line-sm {
    height: 0.625rem;
    width: 60%;
}

.skeleton-line-xs {
    height: 0.5rem;
    width: 40%;
}

.skeleton-btn {
    height: 2.25rem;
    width: 4rem;
    border-radius: 0.5rem;
}

/* ── Orders page ── */
.orders-page {
    max-width: 72rem;
    margin: 0 auto;
    padding-bottom: 2.5rem;
}

.orders-page-title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.orders-page-heading {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
}

.orders-page-sub {
    margin-top: 0.25rem;
    font-size: 0.8125rem;
    color: #64748b;
    font-weight: 500;
}

.orders-page-link {
    flex-shrink: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--brand-600);
    text-decoration: none;
}

.orders-page-link:hover {
    color: var(--brand-700);
    text-decoration: underline;
}

.order-page-head {
    margin-bottom: 1.5rem;
}

.order-page-title {
    margin-bottom: 1rem;
}

.order-tabs-scroll {
    overflow-x: auto;
    margin-bottom: 1.25rem;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.order-tabs-scroll::-webkit-scrollbar {
    display: none;
}

.order-tabs {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.3125rem;
    background: #fff;
    border: 1px solid rgb(var(--brand-500-rgb) / 0.12);
    border-radius: 0.875rem;
    min-width: min-content;
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
}

.order-tab {
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748b;
    background: transparent;
    border: none;
    border-radius: 0.625rem;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.15s;
}

.order-tab:hover:not(.is-active) {
    color: #334155;
    background: var(--brand-50);
}

.order-tab.is-active {
    color: #fff;
    background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
    box-shadow: 0 2px 8px rgb(var(--brand-500-rgb) / 0.25);
}

.order-tab.is-active:hover {
    transform: none;
}

@media (min-width: 1024px) {
    .order-page-head {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 1.5rem;
    }

    .order-page-title {
        margin-bottom: 0;
    }

    .order-tabs-scroll {
        padding-bottom: 0;
    }
}

.order-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .order-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .order-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
}

.order-card {
    position: relative;
    background: #fff;
    border: 1px solid rgb(var(--brand-500-rgb) / 0.12);
    border-radius: 1.25rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.04), 0 8px 24px rgb(15 23 42 / 0.05);
    transition: box-shadow 0.25s, transform 0.25s, border-color 0.2s;
    animation: orderCardIn 0.35s ease both;
}

@keyframes orderCardIn {
    from { opacity: 0; transform: translateY(0.625rem); }
    to { opacity: 1; transform: translateY(0); }
}

.order-card:hover {
    box-shadow: 0 2px 8px rgb(15 23 42 / 0.06), 0 12px 28px rgb(var(--brand-500-rgb) / 0.1);
    transform: translateY(-2px);
    border-color: rgb(var(--brand-500-rgb) / 0.22);
}

.order-card--live {
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.04), 0 4px 20px rgb(var(--brand-500-rgb) / 0.12);
    border-color: rgb(var(--brand-500-rgb) / 0.22);
}

.order-card-banner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.125rem;
    background:
        linear-gradient(180deg, rgb(var(--brand-500-rgb) / 0.05), transparent);
    border-bottom: 1px solid rgb(var(--brand-500-rgb) / 0.08);
}

a.order-card-banner-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: background 0.15s;
}

a.order-card-banner-link:hover {
    background: rgb(var(--brand-500-rgb) / 0.04);
}

.order-card-banner-main {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    min-width: 0;
    flex: 1;
}

.order-card-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.875rem;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgb(15 23 42 / 0.06);
}

.order-card-icon-fallback {
    width: 3rem;
    height: 3rem;
    border-radius: 0.875rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
    background: linear-gradient(135deg, var(--brand-100), var(--brand-50));
    color: var(--brand-600);
}

.order-card-eyebrow {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 0.125rem;
}

.order-card-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.order-card-status-wrap {
    margin-top: 0.45rem;
}

.order-card-banner-price {
    flex-shrink: 0;
    text-align: right;
    padding: 0.45rem 0.65rem;
    background: #fff;
    border-radius: 0.75rem;
}

.order-card-price-label {
    display: block;
    font-size: 0.625rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.order-card-price-value {
    display: block;
    font-size: 0.675rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--brand-500), var(--brand-700));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.3;
    margin-top: 0.1rem;
}

.order-card-body {
    padding: 0.875rem 1.125rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.order-status-row {
    margin-bottom: 0.25rem;
}

.order-status-badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    white-space: nowrap;
}

.order-status-badge--success { background: #ecfdf5; color: #047857; }
.order-status-badge--info { background: #eff6ff; color: #1d4ed8; }
.order-status-badge--purple { background: #f5f3ff; color: #7c3aed; }
.order-status-badge--warning { background: var(--brand-50); color: var(--brand-700); }
.order-status-badge--danger { background: #fef2f2; color: #b91c1c; }
.order-status-badge--muted { background: #f1f5f9; color: #64748b; }

.order-status-badge--pulse {
    animation: orderPulse 2s ease-in-out infinite;
}

@keyframes orderPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgb(var(--brand-500-rgb) / 0.35); }
    50% { box-shadow: 0 0 0 6px rgb(var(--brand-500-rgb) / 0); }
}

/* Detail blocks */
.order-detail-block {
    background: #f8fafc;
    border: 1px dashed #e2e8f0;
    border-radius: 0.875rem;
    padding: 0.625rem 0.75rem;
    transition: background 0.2s, border-color 0.2s;
}

.order-detail-block--otp {
    background: rgb(var(--brand-500-rgb) / 0.05);
    border-color: rgb(var(--brand-500-rgb) / 0.2);
}

.order-detail-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 500;
    color: #94a3b8;
    margin-bottom: 0.375rem;
}

.order-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.order-detail-value {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    word-break: break-all;
    min-width: 0;
}

.order-detail-phone {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: 0.02em;
}

.order-detail-more-codes {
    display: block;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--brand-600, #4f46e5);
    text-decoration: none;
    padding: 0.375rem;
    border-radius: 0.625rem;
    background: rgb(var(--brand-500-rgb) / 0.08);
}

.order-detail-more-codes:hover {
    background: rgb(var(--brand-500-rgb) / 0.14);
}

.order-detail-otp.has-code {
    font-size: 1.0625rem;
    font-weight: 800;
    color: var(--brand-700);
    letter-spacing: 0.06em;
}

.order-card-dash {
    margin: 0.35rem 1.125rem 0;
    border-top: 1.5px dashed rgb(var(--brand-500-rgb) / 0.22);
}

.order-card-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    padding: 0.85rem 1.125rem 1.125rem;
    margin-top: auto;
    align-items: stretch;
}

.order-card-actions .otp-wait-bill-action {
    width: 100%;
    min-width: 0;
    padding: 0.6rem 0.55rem;
    font-size: 0.75rem;
    justify-content: center;
    text-align: center;
}

.order-card-action--full {
    grid-column: 1 / -1;
}

.order-card-actions .otp-wait-bill-action-ico {
    width: 1.5rem;
    height: 1.5rem;
}

.order-card-cancel-icon {
    position: relative;
    width: 100%;
    min-height: 2.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #e2e8f0;
    border-radius: 0.75rem;
    background: #fff;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.order-card-cancel-icon svg {
    width: 1rem;
    height: 1rem;
}

.order-card-cancel-icon:hover {
    color: #b91c1c;
    border-color: #fecaca;
    background: #fef2f2;
}

.order-card-cancel-icon[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: #1e1b4b;
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 500;
    padding: 0.375rem 0.625rem;
    border-radius: 0.5rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s, transform 0.15s;
    z-index: 20;
}

.order-card-cancel-icon[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.order-action-btn {
    flex: 1 1 auto;
    min-width: calc(50% - 0.25rem);
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    background: #f8fafc;
    border: none;
    border-radius: 0.625rem;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
}

.order-action-btn:hover {
    background: #f1f5f9;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgb(15 23 42 / 0.06);
}

.order-action-btn--primary {
    color: #fff;
    background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
    box-shadow: 0 2px 8px rgb(var(--brand-500-rgb) / 0.25);
}

.order-action-btn--primary:hover {
    opacity: 0.95;
    background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
    box-shadow: 0 4px 12px rgb(var(--brand-500-rgb) / 0.3);
}

.order-action-btn--purple {
    color: #7c3aed;
    background: #f5f3ff;
}

.order-action-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    pointer-events: none;
}

.order-card-skeleton {
    animation: none;
}

.order-card-skeleton .order-card-banner {
    background: #fff;
    border-bottom-color: #f8fafc;
}

.order-empty {
    text-align: center;
    padding: 3.5rem 1.5rem;
    background: #fff;
    border: 1px solid rgb(var(--brand-500-rgb) / 0.12);
    border-radius: 1.25rem;
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.04), 0 8px 24px rgb(15 23 42 / 0.05);
}

.order-empty-visual {
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 1rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand-100), var(--brand-50));
    color: var(--brand-600);
}

.order-empty-visual svg {
    width: 1.75rem;
    height: 1.75rem;
}

.order-empty-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.order-empty-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}

.order-empty-sub {
    margin-top: 0.35rem;
    font-size: 0.8125rem;
    color: #94a3b8;
}

.order-empty-btn {
    width: auto;
    max-width: 14rem;
    margin: 1.15rem auto 0;
}

/* Icon copy button + tooltip */
.order-icon-btn {
    position: relative;
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 0.5rem;
    background: #fff;
    color: var(--brand-500);
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.06);
    cursor: pointer;
    transition: background 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.order-icon-btn svg {
    width: 1rem;
    height: 1rem;
}

.order-icon-btn:hover {
    background: var(--brand-50);
    transform: scale(1.06);
    box-shadow: 0 2px 6px rgb(var(--brand-500-rgb) / 0.12);
}

.order-icon-btn.is-copied {
    background: #ecfdf5;
    color: #059669;
    box-shadow: 0 1px 2px rgb(16 185 129 / 0.15);
}

.order-icon-btn[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: #1e1b4b;
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 500;
    font-family: inherit;
    letter-spacing: normal;
    text-transform: none;
    padding: 0.375rem 0.625rem;
    border-radius: 0.5rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s, transform 0.15s;
    z-index: 20;
    box-shadow: 0 4px 12px rgb(15 23 42 / 0.2);
}

.order-icon-btn[data-tooltip]::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1e1b4b;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s;
    z-index: 20;
}

.order-icon-btn[data-tooltip]:hover::after,
.order-icon-btn[data-tooltip]:focus-visible::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.order-icon-btn[data-tooltip]:hover::before,
.order-icon-btn[data-tooltip]:focus-visible::before {
    opacity: 1;
}

.order-pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-bottom: 1rem;
}

@media (min-width: 640px) {
    .order-pagination {
        flex-direction: row;
        justify-content: space-between;
    }
}

.order-pagination-info {
    font-size: 0.8125rem;
    color: #64748b;
}

.order-pagination-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.order-page-btn {
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #475569;
    background: #fff;
    border: none;
    border-radius: 0.625rem;
    cursor: pointer;
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.05);
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.order-page-btn:hover:not(:disabled):not(.is-active) {
    color: var(--brand-700);
    box-shadow: 0 2px 6px rgb(15 23 42 / 0.08);
}

.order-page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.order-page-btn.is-active {
    background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
    color: #fff;
    box-shadow: 0 2px 8px rgb(var(--brand-500-rgb) / 0.3);
}

.order-page-dots {
    padding: 0 0.25rem;
    color: #94a3b8;
    font-size: 0.875rem;
}

/* ── OTP wait / order detail page ── */
.otp-wait {
    max-width: 72rem;
    margin: 0 auto;
    padding-bottom: 2.5rem;
}

.otp-wait-hero {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.125rem 1.25rem;
    background:
        linear-gradient(135deg, rgb(var(--brand-500-rgb) / 0.1), rgb(var(--brand-500-rgb) / 0.02) 55%, #fff 78%),
        #fff;
    border-radius: 1.25rem;
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.04), 0 8px 24px rgb(var(--brand-500-rgb) / 0.08);
    border: 1px solid rgb(var(--brand-500-rgb) / 0.14);
    border-left: 4px solid var(--brand-500);
}

.otp-wait-hero--warning { border-left-color: #f59e0b; }
.otp-wait-hero--info { border-left-color: #0ea5e9; }
.otp-wait-hero--success { border-left-color: #10b981; }
.otp-wait-hero--purple { border-left-color: #8b5cf6; }
.otp-wait-hero--danger { border-left-color: #ef4444; }
.otp-wait-hero--muted { border-left-color: #94a3b8; }

@media (min-width: 640px) {
    .otp-wait-hero {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.otp-wait-hero-main {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    min-width: 0;
}

.otp-wait-hero-icon {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 0.875rem;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgb(15 23 42 / 0.06);
}

.otp-wait-hero-icon-fallback {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 0.875rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    background: linear-gradient(135deg, var(--brand-100), var(--brand-50));
    color: var(--brand-700);
}

.otp-wait-hero-eyebrow {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.otp-wait-hero-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    margin-top: 0.125rem;
}

.otp-wait-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.otp-wait-hero-product {
    font-size: 0.8125rem;
    color: #64748b;
    font-weight: 500;
}

.otp-wait-timer {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.125rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(160deg, #0f172a, #1e293b);
    border-radius: 0.875rem;
    color: #fff;
    min-width: 9rem;
    box-shadow: 0 8px 20px rgb(15 23 42 / 0.2);
}

@media (min-width: 640px) {
    .otp-wait-timer { align-items: flex-end; text-align: right; }
}

.otp-wait-timer-label {
    font-size: 0.6875rem;
    font-weight: 500;
    color: #94a3b8;
}

.otp-wait-timer-value {
    font-size: 1.0625rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
    color: #fff;
}

.otp-wait-timer.is-low {
    background: linear-gradient(160deg, #7f1d1d, #991b1b);
}

.otp-wait-timer.is-low .otp-wait-timer-value {
    color: #fecaca;
}

.otp-wait-notice {
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--brand-700);
    background: var(--brand-50);
    border-radius: 0.875rem;
    border: 1px dashed rgb(var(--brand-500-rgb) / 0.35);
}

.otp-wait-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

@media (min-width: 1024px) {
    .otp-wait-grid {
        grid-template-columns: minmax(0, 1.6fr) minmax(16rem, 0.9fr);
        gap: 1.25rem;
        align-items: start;
    }
}

.otp-wait-main,
.otp-wait-side {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.otp-wait-card {
    background: #fff;
    border-radius: 1.25rem;
    padding: 1.125rem 1.25rem;
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.04), 0 4px 16px rgb(15 23 42 / 0.05);
    border: 1px solid #f1f5f9;
}

.otp-wait-card--otp {
    background:
        linear-gradient(180deg, rgb(var(--brand-500-rgb) / 0.06), transparent 40%),
        #fff;
    border-color: rgb(var(--brand-500-rgb) / 0.16);
}

.otp-wait-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.otp-wait-card-head-left {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    min-width: 0;
}

.otp-wait-card-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand-100), var(--brand-50));
    color: var(--brand-600);
    flex-shrink: 0;
}

.otp-wait-card--otp .otp-wait-card-icon {
    background: linear-gradient(135deg, var(--brand-100), var(--brand-50));
    color: var(--brand-600);
}

.otp-wait-card-icon svg {
    width: 1.125rem;
    height: 1.125rem;
}

.otp-wait-card-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
}

.otp-wait-card-sub {
    display: inline;
    font-weight: 500;
    color: #64748b;
    font-size: 0.8125rem;
    margin-left: 0.35rem;
}

.otp-wait-card-side {
    font-size: 0.6875rem;
    color: #94a3b8;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    text-align: right;
    word-break: break-all;
    max-width: 11rem;
}

.otp-wait-phone-row {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 480px) {
    .otp-wait-phone-row {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.otp-wait-phone {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: 0.03em;
    word-break: break-all;
}

.otp-wait-copy-btn {
    flex: 0 0 auto;
    min-width: 8.5rem;
    text-align: center;
}

.otp-wait-copy-btn.is-copied,
.otp-wait-copy-otp.is-copied {
    background: #ecfdf5 !important;
    color: #059669 !important;
    box-shadow: none !important;
}

.otp-wait-copy-otp:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.otp-wait-otp-body {
    min-height: 11rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 50% 40%, rgb(var(--brand-500-rgb) / 0.08), transparent 55%),
        #f8fafc;
    border-radius: 1rem;
    border: 1px dashed #cbd5e1;
}

.otp-wait-otp-empty {
    text-align: center;
    padding: 1.75rem 1rem;
}

.otp-wait-otp-empty-title {
    margin-top: 1rem;
    font-size: 1rem;
    font-weight: 700;
    color: #334155;
}

.otp-wait-otp-empty-hint {
    margin-top: 0.375rem;
    font-size: 0.75rem;
    color: #94a3b8;
}

/* SMS waiting loader */
.otp-wait-loader {
    position: relative;
    width: 4.5rem;
    height: 4.5rem;
    margin: 0 auto;
}

.otp-wait-loader-ring {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    border: 2.5px solid transparent;
    border-top-color: var(--brand-500);
    border-right-color: rgb(var(--brand-500-rgb) / 0.35);
    animation: otpWaitSpin 1.1s linear infinite;
}

.otp-wait-loader-ring--delay {
    inset: 0.4rem;
    border-top-color: var(--brand-600);
    border-right-color: transparent;
    border-bottom-color: rgb(var(--brand-500-rgb) / 0.25);
    animation-duration: 1.6s;
    animation-direction: reverse;
}

.otp-wait-loader-core {
    position: absolute;
    inset: 0.85rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #fff, var(--brand-50));
    color: var(--brand-600);
    box-shadow: 0 4px 14px rgb(var(--brand-500-rgb) / 0.18);
    animation: otpWaitPulse 1.8s ease-in-out infinite;
}

.otp-wait-loader-core svg {
    width: 1.25rem;
    height: 1.25rem;
}

.otp-wait-loader-dots {
    display: inline-flex;
    gap: 0.35rem;
    margin-top: 0.875rem;
}

.otp-wait-loader-dots span {
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 999px;
    background: var(--brand-500);
    animation: otpWaitDot 1.2s ease-in-out infinite;
}

.otp-wait-loader-dots span:nth-child(2) { animation-delay: 0.15s; background: var(--brand-600); }
.otp-wait-loader-dots span:nth-child(3) { animation-delay: 0.3s; background: var(--brand-400, var(--brand-500)); }

@keyframes otpWaitSpin {
    to { transform: rotate(360deg); }
}

@keyframes otpWaitPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 14px rgb(var(--brand-500-rgb) / 0.18); }
    50% { transform: scale(1.05); box-shadow: 0 6px 18px rgb(var(--brand-500-rgb) / 0.28); }
}

@keyframes otpWaitDot {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.35; }
    40% { transform: translateY(-0.3rem); opacity: 1; }
}

.otp-wait-otp-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.otp-wait-otp-footnote {
    margin-top: 0.875rem;
    font-size: 0.75rem;
    color: #94a3b8;
    line-height: 1.45;
}

/* Bill / receipt cards */
.otp-wait-bill {
    position: relative;
    background: #fff;
    border-radius: 1.1rem;
    padding: 1.15rem 1.2rem 1.1rem;
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.04), 0 8px 24px rgb(15 23 42 / 0.05);
    border: 1px solid rgb(var(--brand-500-rgb) / 0.14);
    overflow: hidden;
}

.otp-wait-bill--manage {
    background:
        linear-gradient(180deg, rgb(var(--brand-500-rgb) / 0.05), #fff 35%),
        #fff;
    border-color: rgb(var(--brand-500-rgb) / 0.14);
}

.otp-wait-bill--manage::before,
.otp-wait-bill--manage::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 0.85rem;
    height: 0.85rem;
    border-radius: 999px;
    background: #f1f5f9;
    transform: translateY(-50%);
    box-shadow: inset 0 0 0 1px #e2e8f0;
}

.otp-wait-bill--manage::before { left: -0.42rem; }
.otp-wait-bill--manage::after { right: -0.42rem; }

.otp-wait-bill-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.otp-wait-bill-stamp {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-50);
    color: var(--brand-600);
    border: none;
    flex-shrink: 0;
}

.otp-wait-bill-stamp--accent {
    background: var(--brand-50);
    color: var(--brand-700);
    border-color: rgb(var(--brand-500-rgb) / 0.28);
}

.otp-wait-bill-stamp svg {
    width: 1.15rem;
    height: 1.15rem;
}

.otp-wait-bill-eyebrow {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.otp-wait-bill-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
}

.otp-wait-bill-rule {
    height: 0;
    margin: 0.85rem 0 0.9rem;
    border-top: 1px solid rgb(var(--brand-500-rgb) / 0.12);
}

.otp-wait-bill-dash {
    height: 0;
    margin: 0.85rem 0;
    border-top: 1.5px dashed rgb(var(--brand-500-rgb) / 0.28);
}

.otp-wait-bill-row--plain {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.otp-wait-bill-amount {
    font-weight: 700;
    color: #111827;
}

.otp-wait-bill-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.7rem 0.8rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, var(--brand-50), rgb(14 165 233 / 0.08));
    color: var(--brand-800);
    font-size: 0.875rem;
    font-weight: 600;
}

.otp-wait-bill-total--clean {
    padding: 0;
    background: none;
    border-radius: 0;
    color: #111827;
    font-size: 0.95rem;
    font-weight: 700;
}

.otp-wait-bill-total strong {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--brand-700);
}

.otp-wait-bill-total--clean strong {
    font-size: 1.125rem;
    background: linear-gradient(90deg, var(--brand-500), var(--brand-700));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.otp-wait-bill-note {
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: #94a3b8;
    line-height: 1.45;
}

.otp-wait-bill-actions {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.otp-wait-bill-action {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.7rem 0.8rem;
    border-radius: 0.75rem;
    border: 1px dashed #cbd5e1;
    background: #fff;
    color: #334155;
    font-size: 0.8125rem;
    font-weight: 600;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, transform 0.15s, box-shadow 0.15s;
}

.otp-wait-bill-action:hover:not(:disabled) {
    border-color: rgb(var(--brand-500-rgb) / 0.35);
    background: var(--brand-50);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgb(var(--brand-500-rgb) / 0.08);
}

.otp-wait-bill-action:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.otp-wait-bill-action-ico {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    color: #64748b;
    flex-shrink: 0;
}

.otp-wait-bill-action-ico svg {
    width: 0.95rem;
    height: 0.95rem;
}

.otp-wait-bill-action--primary {
    border-style: solid;
    border-color: transparent;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
    box-shadow: 0 4px 14px rgb(var(--brand-500-rgb) / 0.25);
}

.otp-wait-bill-action--primary .otp-wait-bill-action-ico {
    background: rgb(255 255 255 / 0.18);
    color: #fff;
}

.otp-wait-bill-action--primary:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
    border-color: transparent;
    color: #fff;
}

.otp-wait-bill-action--success {
    border-color: #6ee7b7;
    background: #ecfdf5;
    color: #047857;
}

.otp-wait-bill-action--success .otp-wait-bill-action-ico {
    background: #d1fae5;
    color: #059669;
}

.otp-wait-bill-action--purple {
    border-color: #c4b5fd;
    background: #f5f3ff;
    color: #6d28d9;
}

.otp-wait-bill-action--purple .otp-wait-bill-action-ico {
    background: #ede9fe;
    color: #7c3aed;
}

.otp-wait-bill-action--danger {
    border-color: #fca5a5;
    background: #fef2f2;
    color: #b91c1c;
}

.otp-wait-bill-action--danger .otp-wait-bill-action-ico {
    background: #fee2e2;
    color: #dc2626;
}

.otp-wait-bill-action--stack {
    align-items: center;
    justify-content: flex-start;
}

.otp-wait-bill-action--stack .otp-wait-bill-action-text {
    align-items: flex-start;
    text-align: left;
}

.otp-wait-bill-action--stack .otp-wait-bill-action-ico {
    align-self: center;
}

.otp-round-received {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin-top: 0.85rem;
    padding: 0.7rem 1rem;
    border-radius: 0.85rem;
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 55%, #eff6ff 100%);
    border: 1px solid rgb(16 185 129 / 0.28);
    box-shadow: 0 4px 14px rgb(16 185 129 / 0.08);
}

.otp-round-received-icon {
    flex-shrink: 0;
    width: 2.125rem;
    height: 2.125rem;
    border-radius: 999px;
    background: linear-gradient(145deg, #10b981, #059669);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgb(16 185 129 / 0.35);
    animation: otp-round-received-pop 0.55s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.otp-round-received-icon svg {
    width: 1.125rem;
    height: 1.125rem;
    animation: otp-round-received-pulse 2.4s ease-in-out infinite;
}

.otp-round-received-text {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #047857;
    line-height: 1.35;
}

@keyframes otp-round-received-pop {
    0% { transform: scale(0.55); opacity: 0; }
    65% { transform: scale(1.08); opacity: 1; }
    100% { transform: scale(1); }
}

@keyframes otp-round-received-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.12); opacity: 0.92; }
}

.otp-wait-bill-action-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.otp-wait-bill-action-label {
    line-height: 1.3;
}

.otp-wait-bill-action-hint {
    font-size: 0.6875rem;
    font-weight: 500;
    color: #64748b;
    line-height: 1.35;
}

.order-action-btn--danger {
    color: #b91c1c;
    background: #fef2f2;
}

.order-action-btn--danger:hover {
    background: #fee2e2;
}

.otp-resend-modal .shop-confirm-head {
    padding-bottom: 0.25rem;
}

.otp-resend-modal-icon {
    background: linear-gradient(135deg, var(--brand-50), var(--brand-100));
    color: var(--brand-600);
}

.otp-resend-modal-phone {
    display: inline-block;
    margin-top: 0.5rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--brand-700);
    letter-spacing: 0.03em;
}

.otp-reactivate-modal-icon {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    color: #059669;
}

.otp-reactivate-modal-meta {
    margin: 0 1.25rem 1rem;
    padding: 0.85rem 1rem;
    border-radius: 0.9rem;
    background: linear-gradient(180deg, #f8fafc, #f1f5f9);
    border: 1px solid #e2e8f0;
}

.otp-reactivate-modal-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: #64748b;
}

.otp-reactivate-modal-row + .otp-reactivate-modal-row {
    margin-top: 0.55rem;
    padding-top: 0.55rem;
    border-top: 1px dashed #cbd5e1;
}

.otp-reactivate-modal-row strong {
    color: #0f172a;
    font-weight: 700;
    text-align: right;
}

.otp-reactivate-modal-row--price strong {
    color: var(--brand-700);
    font-size: 1.05rem;
    font-weight: 800;
}

.otp-reactivate-modal-note {
    margin: 0.7rem 0 0;
    font-size: 0.75rem;
    line-height: 1.45;
    color: #94a3b8;
}

.otp-cancel-modal-icon {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    color: #dc2626;
}

.otp-cancel-modal-ok {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
}

.otp-cancel-modal-ok:hover:not(:disabled) {
    box-shadow: 0 8px 20px rgb(220 38 38 / 0.28);
}

.otp-refund-modal-icon {
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
    color: #7c3aed;
}

.otp-refund-modal-ok {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed) !important;
}

.otp-refund-modal-ok:hover:not(:disabled) {
    box-shadow: 0 8px 20px rgb(124 58 237 / 0.28);
}

.otp-refund-modal-amount {
    color: #7c3aed !important;
}

/* ── Theme variables: กำหนดจาก includes/theme.php ผ่าน theme_style_tag() หลังโหลด app.css ── */

/* ── Site Navbar ── */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgb(255 255 255 / 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgb(241 245 249 / 0.9);
    overflow: visible;
}



.site-nav-shell {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .site-nav-shell {
        padding: 0 1.5rem;
    }
}

.site-nav-inner {
    min-height: 4rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    overflow: visible;
    
}

@media (min-width: 640px) {
    .site-nav-inner {
        gap: 1.25rem;
    }
}

.site-nav-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-width: 0;
}

.site-nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.0625rem;
    color: var(--brand-600);
    text-decoration: none;
    white-space: nowrap;
}

.site-nav-logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--nav-logo-height, 1.75rem);
    height: var(--nav-logo-height, 1.75rem);
    border-radius: 9999px;
    background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgb(var(--brand-500-rgb) / 0.35);
}

.site-nav-logo--solo .site-nav-logo-icon {
    width: var(--nav-logo-height-solo, 2.5rem);
    height: var(--nav-logo-height-solo, 2.5rem);
}

.site-nav-logo-icon svg {
    width: calc(var(--nav-logo-height, 1.75rem) * 0.57);
    height: calc(var(--nav-logo-height, 1.75rem) * 0.57);
}

.site-nav-logo--solo .site-nav-logo-icon svg {
    width: calc(var(--nav-logo-height-solo, 2.5rem) * 0.5);
    height: calc(var(--nav-logo-height-solo, 2.5rem) * 0.5);
}

.site-nav-logo-img {
    height: var(--nav-logo-height, 1.75rem);
    width: auto;
    max-height: var(--nav-logo-height, 1.75rem);
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 0.375rem;
}

.site-nav-logo--solo .site-nav-logo-img {
    height: var(--nav-logo-height-solo, 2.5rem);
    max-height: var(--nav-logo-height-solo, 2.5rem);
}

.site-footer-logo-img {
    width: 2rem;
    height: 2rem;
    object-fit: contain;
    flex-shrink: 0;
}

.site-footer-logo-icon svg {
    width: 1.125rem;
    height: 1.125rem;
}

.auth-panel-brand-logo-img {
    width: 12rem;
    height: 12rem;
    object-fit: contain;
}

.auth-panel-brand-logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #fff;
}

.auth-panel-brand-logo-icon svg {
    width: 2.75rem;
    height: 2.75rem;
}

.auth-brand-logo-img {
    width: 2.25rem;
    height: 2.25rem;
    object-fit: contain;
    border-radius: 0.625rem;
    flex-shrink: 0;
}

.site-nav-links {
    display: none;
    align-items: center;
    gap: 0.125rem;
}

@media (min-width: 1024px) {
    .site-nav-links {
        display: flex;
    }
}

.site-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.4375rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: color 0.15s, background 0.15s;
}

.site-nav-link svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.site-nav-link:hover {
    color: var(--brand-600);
    background: var(--brand-50);
}

.site-nav-center {
    min-width: 0;
    display: flex;
    justify-content: center;
}

.site-nav-search {
    position: relative;
    width: 100%;
    max-width: 32rem;
}

.site-nav-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.125rem;
    height: 1.125rem;
    color: #94a3b8;
    pointer-events: none;
}

.site-nav-search-input {
    width: 100%;
    height: 2.625rem;
    padding: 0 2.5rem 0 2.75rem;
    border: none;
    border-radius: 9999px;
    background: #f3f4f6;
    font: inherit;
    font-size: 0.875rem;
    color: #0f172a;
    transition: background 0.15s, box-shadow 0.15s;
}

.site-nav-search-input::placeholder {
    color: #94a3b8;
}

.site-nav-search-input:focus {
    outline: none;
    background: #eef2f7;
    box-shadow: 0 0 0 3px rgb(var(--brand-500-rgb) / 0.15);
}

/* ซ่อน clear ของ browser (ใช้ปุ่มของเราแทน) */
.site-nav-search-input::-webkit-search-cancel-button,
.site-nav-search-input::-webkit-search-decoration,
.site-nav-search-input::-ms-clear {
    display: none;
    appearance: none;
    width: 0;
    height: 0;
}

.site-nav-search-clear {
    position: absolute;
    right: 0.625rem;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border: none;
    border-radius: 9999px;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
}

.site-nav-search-clear:hover {
    background: #e2e8f0;
    color: #64748b;
}

.site-nav-search-clear svg {
    width: 1rem;
    height: 1rem;
}

.site-nav-search-panel {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    max-height: 24rem;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    box-shadow: 0 16px 40px rgb(15 23 42 / 0.12);
    z-index: 80;
    padding: 0.375rem;
}

.site-nav-search-state {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.25rem 1rem;
    font-size: 0.875rem;
    color: #64748b;
    text-align: center;
}

.site-nav-search-spinner {
    width: 1rem;
    height: 1rem;
    border: 2px solid #e2e8f0;
    border-top-color: var(--brand-600);
    border-radius: 9999px;
    animation: site-nav-spin 0.7s linear infinite;
}

@keyframes site-nav-spin {
    to { transform: rotate(360deg); }
}

.site-nav-search-group {
    padding: 0.25rem 0;
}

.site-nav-search-group + .site-nav-search-group {
    border-top: 1px solid #f1f5f9;
    margin-top: 0.25rem;
    padding-top: 0.5rem;
}

.site-nav-search-group-title {
    padding: 0.375rem 0.75rem 0.25rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #94a3b8;
}

.site-nav-search-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border-radius: 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: background 0.12s;
}

.site-nav-search-item:hover {
    background: #f8fafc;
}

.site-nav-search-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.625rem;
    background: #f1f5f9;
    flex-shrink: 0;
    overflow: hidden;
}

.site-nav-search-item-icon img,
.site-nav-search-item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.site-nav-search-all {
    display: block;
    padding: 0.625rem 0.75rem;
    margin-top: 0.25rem;
    border-top: 1px solid #f1f5f9;
    text-align: center;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--brand-600);
    text-decoration: none;
}

.site-nav-search-all:hover {
    background: var(--brand-50);
}

.site-nav-search-item-icon svg {
    width: 1.125rem;
    height: 1.125rem;
    color: #64748b;
}

.site-nav-search-item-body {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.site-nav-search-item-body strong {
    font-size: 0.875rem;
    font-weight: 500;
    color: #0f172a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-nav-search-item-body span {
    font-size: 0.75rem;
    color: #64748b;
}

.site-nav-search-item-price {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--brand-600);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.site-nav-right {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    overflow: visible;
}

.site-nav-right [data-tooltip] {
    position: relative;
}

.site-nav-right [data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    top: calc(100% + 0.5rem);
    bottom: auto;
    left: 50%;
    transform: translateX(-50%) translateY(-0.25rem);
    background: #0f172a;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.2;
    padding: 0.4rem 0.65rem;
    border-radius: 0.5rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
    z-index: 150;
    box-shadow: 0 8px 20px rgb(15 23 42 / 0.18);
}

.site-nav-right [data-tooltip]::before {
    content: '';
    position: absolute;
    top: calc(100% + 0.125rem);
    bottom: auto;
    left: 50%;
    transform: translateX(-50%);
    border: 0.3rem solid transparent;
    border-bottom-color: #0f172a;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease, visibility 0.15s;
    z-index: 150;
}

.site-nav-right [data-tooltip]:hover::after,
.site-nav-right [data-tooltip]:focus-visible::after,
.site-nav-right [data-tooltip]:hover::before,
.site-nav-right [data-tooltip]:focus-visible::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.site-nav-right [data-tooltip]:hover::before,
.site-nav-right [data-tooltip]:focus-visible::before {
    transform: translateX(-50%);
}

@media (min-width: 640px) {
    .site-nav-right {
        gap: 0.5rem;
    }
}

.site-nav-icon-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    border-radius: 9999px;
    background: transparent;
    color: #64748b;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.site-nav-icon-btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

.site-nav-icon-btn:hover:not(:disabled) {
    background: #f1f5f9;
    color: #334155;
}

.site-nav-icon-btn:disabled {
    opacity: 0.45;
    cursor: default;
}

@media (min-width: 768px) {
    .site-nav-icon-btn {
        display: inline-flex;
    }
}

.site-nav-wallet {
    display: none;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.125rem;
    text-decoration: none;
    color: var(--brand-600);
    font-size: 0.9375rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.site-nav-wallet svg {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
}

.site-nav-wallet:hover {
    color: var(--brand-700);
}

@media (min-width: 640px) {
    .site-nav-wallet {
        display: inline-flex;
    }
}

.site-nav-profile-wrap {
    position: relative;
    z-index: 70;
}

.site-nav-profile-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.125rem 0.125rem 0.125rem;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 9999px;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.site-nav-profile-btn:hover,
.site-nav-profile-btn.is-open {
    border-color: var(--brand-100);
    box-shadow: 0 0 0 3px rgb(var(--brand-500-rgb) / 0.12);
}

.site-nav-profile-btn.is-open {
    border-color: var(--brand-200);
}

.site-nav-profile-chevron {
    display: none;
    width: 0.875rem;
    height: 0.875rem;
    color: #94a3b8;
    margin-right: 0.25rem;
    transition: transform 0.2s, color 0.15s;
}

.site-nav-profile-chevron.is-open {
    transform: rotate(180deg);
    color: var(--brand-500);
}

@media (min-width: 768px) {
    .site-nav-profile-chevron {
        display: block;
    }
}

.site-nav-avatar,
.site-nav-dropdown-avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    object-fit: cover;
    flex-shrink: 0;
}

.member-avatar-fallback {
    background: linear-gradient(145deg, var(--brand-500) 0%, var(--brand-600) 52%, var(--brand-700) 100%);
    color: #fff;
    text-shadow: 0 1px 2px rgb(0 0 0 / 0.15);
}

.site-nav-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
}

.site-nav-dropdown {
    position: absolute;
    top: calc(100% + 0.625rem);
    right: 0;
    width: 18rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    box-shadow:
        0 4px 6px rgb(15 23 42 / 0.04),
        0 16px 40px rgb(15 23 42 / 0.12);
    overflow: hidden;
    z-index: 80;
}

.site-nav-dropdown-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1rem 0.875rem;
    background: linear-gradient(135deg, var(--brand-50), #fff);
    border-bottom: 1px solid #f1f5f9;
}

.site-nav-dropdown-avatar {
    width: 2.75rem;
    height: 2.75rem;
}

.site-nav-dropdown-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.site-nav-dropdown-meta strong {
    font-size: 0.875rem;
    color: #0f172a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-nav-dropdown-meta span {
    font-size: 0.75rem;
    color: #64748b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-nav-dropdown-coins {
    display: inline-flex;
    align-items: center;
    margin-top: 0.25rem;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    background: var(--brand-50);
    color: var(--brand-700) !important;
    font-size: 0.6875rem !important;
    font-weight: 600;
    width: fit-content;
}

.site-nav-dropdown-body,
.site-nav-dropdown-foot {
    padding: 0.375rem;
}

.site-nav-dropdown-foot {
    border-top: 1px solid #f1f5f9;
    background: #fafafa;
}

.site-nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6875rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    border-radius: 0.625rem;
    transition: background 0.12s, color 0.12s;
}

.site-nav-dropdown-item svg {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
    color: #94a3b8;
}

.site-nav-dropdown-item:hover {
    background: var(--brand-50);
    color: var(--brand-600);
}

.site-nav-dropdown-item:hover svg {
    color: var(--brand-500);
}

.site-nav-dropdown-item-admin {
    color: #d97706;
}

.site-nav-dropdown-logout {
    color: #dc2626;
}

.site-nav-dropdown-logout:hover {
    background: #fef2f2;
    color: #b91c1c;
}

.site-nav-guest {
    display: none;
    align-items: center;
    gap: 0.5rem;
}

@media (min-width: 640px) {
    .site-nav-guest {
        display: flex;
    }
}

.site-nav-guest-login {
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    text-decoration: none;
}

.site-nav-guest-login:hover {
    color: var(--brand-600);
}

.site-nav-guest-register {
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgb(var(--brand-500-rgb) / 0.3);
    transition: transform 0.15s, box-shadow 0.15s;
}

.site-nav-guest-register:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgb(var(--brand-500-rgb) / 0.35);
}

.site-nav-mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    background: #fff;
    color: #475569;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.site-nav-mobile-toggle:hover {
    background: var(--brand-50);
    border-color: var(--brand-100);
    color: var(--brand-600);
}

.site-nav-mobile-toggle svg {
    width: 1.25rem;
    height: 1.25rem;
}

@media (min-width: 1024px) {
    .site-nav-mobile-toggle {
        display: none;
    }
}

/* Desktop-only nav items */
@media (max-width: 1023px) {
    .site-nav-desktop-only {
        display: none !important;
    }
}

/* Mobile drawer */
body.nav-drawer-open {
    overflow: hidden;
}

.site-nav-drawer-layer {
    position: fixed;
    inset: 0;
    z-index: 12000;
}

.site-nav-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: rgb(15 23 42 / 0.45);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.site-nav-drawer-layer .site-nav-drawer-backdrop {
    transition: opacity 0.22s ease;
}

.site-nav-drawer-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.site-nav-drawer {
    position: fixed;
    top: max(0.75rem, env(safe-area-inset-top, 0.75rem));
    right: max(0.75rem, env(safe-area-inset-right, 0.75rem));
    bottom: max(0.75rem, env(safe-area-inset-bottom, 0.75rem));
    z-index: 1;
    width: min(21rem, calc(100vw - 1.5rem));
    background: #fff;
    display: flex;
    flex-direction: column;
    border-radius: 1.75rem;
    overflow: hidden;
    visibility: visible;
    transform: translate3d(0, 0, 0);
    transition: transform 0.26s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 16px 40px rgb(15 23 42 / 0.14);
}

.site-nav-drawer.is-open {
    visibility: visible;
    transform: translate3d(0, 0, 0);
}

@media (min-width: 1024px) {
    .site-nav-drawer-layer {
        display: none !important;
    }
}

.site-nav-drawer-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    z-index: 0;
    background:
        radial-gradient(ellipse 80% 50% at 100% 0%, rgb(var(--brand-500-rgb) / 0.14) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 0% 35%, rgb(var(--brand-500-rgb) / 0.07) 0%, transparent 55%);
}

.site-nav-drawer-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    border-radius: 9999px;
    color: #64748b;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
}

.site-nav-drawer-close:hover {
    background: #f8fafc;
    color: #334155;
}

.site-nav-drawer-close svg {
    width: 1.125rem;
    height: 1.125rem;
}

.site-nav-drawer-hero {
    position: relative;
    z-index: 1;
    margin: 3.25rem 1rem 0.5rem;
    padding: 1.125rem 1rem;
    border-radius: 1.25rem;
    background: linear-gradient(145deg, rgb(var(--brand-500-rgb) / 0.08) 0%, #fff 55%);
    border: 1px solid rgb(var(--brand-500-rgb) / 0.1);
    box-shadow: 0 4px 16px rgb(var(--brand-500-rgb) / 0.06);
}

.site-nav-drawer-user {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    min-width: 0;
}

.site-nav-drawer-avatar {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 9999px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow:
        0 0 0 3px #fff,
        0 6px 16px rgb(var(--brand-500-rgb) / 0.22);
}

.site-nav-drawer-avatar.member-avatar-fallback {
    font-size: 1.125rem;
}

.site-nav-drawer-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.site-nav-drawer-greeting {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--brand-600);
    letter-spacing: 0.01em;
}

.site-nav-drawer-meta strong {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #0f172a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.3;
}

.site-nav-drawer-meta span {
    font-size: 0.75rem;
    color: #64748b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-nav-drawer-coins {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.375rem;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
    color: #fff !important;
    font-size: 0.6875rem !important;
    font-weight: 700;
    width: fit-content;
    box-shadow: 0 4px 12px rgb(var(--brand-500-rgb) / 0.3);
}

.site-nav-drawer-coins svg {
    width: 0.875rem;
    height: 0.875rem;
    flex-shrink: 0;
}

.site-nav-drawer-guest-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.site-nav-drawer-guest-desc {
    font-size: 0.8125rem;
    color: #64748b;
    margin-top: 0.375rem;
    line-height: 1.45;
}

.site-nav-drawer-body {
    position: relative;
    z-index: 1;
    flex: 1;
    overflow-y: auto;
    padding: 0.625rem 0.875rem;
}

.site-nav-drawer-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.625rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
    border-radius: 1rem;
    transition: background 0.12s, color 0.12s;
}

.site-nav-drawer-item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.375rem;
    height: 2.375rem;
    border-radius: 0.875rem;
    color: #64748b;
    flex-shrink: 0;
    transition: background 0.12s, color 0.12s;
}

.site-nav-drawer-item-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.site-nav-drawer-item:hover {
    background: rgb(var(--brand-500-rgb) / 0.06);
    color: var(--brand-700);
}

.site-nav-drawer-item:hover .site-nav-drawer-item-icon {
    background: var(--brand-100);
    color: var(--brand-600);
}

.site-nav-drawer-item-primary {
    margin-top: 0.375rem;
    background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
    color: #fff !important;
    box-shadow: 0 6px 18px rgb(var(--brand-500-rgb) / 0.32);
}

.site-nav-drawer-item-primary .site-nav-drawer-item-icon {
    background: rgb(255 255 255 / 0.18);
    color: #fff;
    box-shadow: none;
}

.site-nav-drawer-item-primary:hover {
    background: linear-gradient(135deg, var(--brand-600), var(--brand-700));
    color: #fff !important;
}

.site-nav-drawer-item-primary:hover .site-nav-drawer-item-icon {
    background: rgb(255 255 255 / 0.24);
    color: #fff;
}

.site-nav-drawer-item-admin {
    color: #3556b3;
}

.site-nav-drawer-item-admin .site-nav-drawer-item-icon {
    color: #3556b3;
}

.site-nav-drawer-foot {
    position: relative;
    z-index: 1;
    padding: 0.625rem 0.875rem 0.875rem;
    border-top: 1px solid #f1f5f9;
}

.site-nav-drawer-logout {
    color: #dc2626 !important;
}

.site-nav-drawer-logout .site-nav-drawer-item-icon {
    background: #fef2f2;
    color: #dc2626;
}

.site-nav-drawer-logout:hover {
    background: #fef2f2 !important;
    color: #b91c1c !important;
}

.site-nav-drawer-logout:hover .site-nav-drawer-item-icon {
    background: #fee2e2;
    color: #b91c1c;
}

@media (prefers-reduced-motion: reduce) {
    .site-nav-drawer,
    .site-nav-drawer-backdrop {
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 767px) {
    .site-nav-shell .site-nav-inner {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        padding-bottom: 0.75rem;
    }

    .site-nav-left {
        grid-column: 1;
        grid-row: 1;
    }

    .site-nav-right {
        grid-column: 2;
        grid-row: 1;
    }

    .site-nav-center {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .site-nav-search {
        max-width: none;
    }
}

/* ── Auth pages (login / register) ── */
.auth-body {
    background: transparent;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
}

.auth-panel-brand {
    display: none;
    position: relative;
    flex: 0 0 42%;
    max-width: 28rem;
    overflow: hidden;
    background: linear-gradient(155deg, var(--brand-500) 0%, var(--brand-600) 42%, var(--brand-700) 100%);
    color: #fff;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
}

@media (min-width: 900px) {
    .auth-panel-brand {
        display: flex;
    }
}

.auth-panel-brand-inner {
    position: relative;
    z-index: 3;
    text-align: center;
}

.auth-panel-brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 18px rgb(15 23 42 / 0.28);
}

.auth-panel-brand-tagline {
    margin-top: 0.5rem;
    font-size: 0.9375rem;
    color: rgb(255 255 255 / 0.82);
    text-shadow: 0 1px 12px rgb(15 23 42 / 0.22);
}

/* Featured product icons — floating center (login / register) */
.auth-featured-float {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.auth-featured-float-item {
    --fx: 50%;
    --fy: 50%;
    --fdelay: 0s;
    position: absolute;
    left: var(--fx);
    top: var(--fy);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    background: none;
    box-shadow: none;
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    transform: translate(-50%, -50%);
    animation-duration: 7s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-delay: var(--fdelay);
}

.auth-featured-float-item.is-sm {
    width: 2.25rem;
    height: 2.25rem;
    animation-duration: 6s;
}

.auth-featured-float-item.is-md {
    width: 3rem;
    height: 3rem;
    animation-duration: 7.5s;
}

.auth-featured-float-item.is-lg {
    width: 3.75rem;
    height: 3.75rem;
    animation-duration: 8.5s;
}

.auth-featured-float-item.is-xl {
    width: 4.5rem;
    height: 4.5rem;
    animation-duration: 9s;
}

.auth-featured-float-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 1rem;
}

.auth-featured-float-item.is-color img {
    opacity: 1;
    filter: drop-shadow(0 4px 10px rgb(15 23 42 / 0.22));
}

.auth-featured-float-item.is-bw img {
    opacity: 0.88;
    filter: grayscale(1) brightness(1.12) contrast(1.05) drop-shadow(0 4px 10px rgb(15 23 42 / 0.18));
}

.auth-featured-float-item.is-faint img {
    opacity: 0.42;
    filter: saturate(0.75) brightness(1.05);
}

.auth-featured-float-item.is-ghost img {
    opacity: 0.22;
    filter: saturate(0.6) brightness(1.08);
}

.auth-featured-float-fallback {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
}

.auth-featured-float-item.is-color .auth-featured-float-fallback {
    color: #fff;
    text-shadow: 0 2px 12px rgb(15 23 42 / 0.35);
}

.auth-featured-float-item.is-bw .auth-featured-float-fallback {
    color: rgb(255 255 255 / 0.88);
    text-shadow: 0 2px 10px rgb(15 23 42 / 0.3);
}

.auth-featured-float-item.is-faint .auth-featured-float-fallback {
    color: rgb(255 255 255 / 0.45);
}

.auth-featured-float-item.is-ghost .auth-featured-float-fallback {
    color: rgb(255 255 255 / 0.24);
}

.auth-featured-float-item.is-sm .auth-featured-float-fallback { font-size: 0.8125rem; }
.auth-featured-float-item.is-lg .auth-featured-float-fallback { font-size: 1.125rem; }
.auth-featured-float-item.is-xl .auth-featured-float-fallback { font-size: 1.375rem; }

.auth-featured-float-item.anim-1 { animation-name: auth-float-a; }
.auth-featured-float-item.anim-2 { animation-name: auth-float-b; }
.auth-featured-float-item.anim-3 { animation-name: auth-float-c; }
.auth-featured-float-item.anim-4 { animation-name: auth-float-d; }

@keyframes auth-float-a {
    0%, 100% { transform: translate(-50%, -50%) translate(0, 0) rotate(0deg); }
    50% { transform: translate(-50%, -50%) translate(10px, -16px) rotate(4deg); }
}

@keyframes auth-float-b {
    0%, 100% { transform: translate(-50%, -50%) translate(0, 0) rotate(0deg); }
    33% { transform: translate(-50%, -50%) translate(-12px, 8px) rotate(-3deg); }
    66% { transform: translate(-50%, -50%) translate(8px, 14px) rotate(2deg); }
}

@keyframes auth-float-c {
    0%, 100% { transform: translate(-50%, -50%) translate(0, 0) rotate(0deg); }
    40% { transform: translate(-50%, -50%) translate(14px, 6px) rotate(3deg); }
    80% { transform: translate(-50%, -50%) translate(-8px, -12px) rotate(-2deg); }
}

@keyframes auth-float-d {
    0%, 100% { transform: translate(-50%, -50%) translate(0, 0) rotate(0deg); }
    25% { transform: translate(-50%, -50%) translate(-6px, -10px) rotate(-2deg); }
    75% { transform: translate(-50%, -50%) translate(12px, 10px) rotate(3deg); }
}

@media (prefers-reduced-motion: reduce) {
    .auth-featured-float-item {
        animation: none;
    }
}

/* Animated orbit rings (login / register brand panel) */
.auth-panel-brand-rings {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.auth-ring-cluster {
    position: absolute;
    width: 0;
    height: 0;
}

.auth-ring-cluster-tr {
    top: -1.25rem;
    right: -1.25rem;
}

.auth-ring-cluster-bl {
    bottom: -1.25rem;
    left: -1.25rem;
}

.auth-ring-cluster .auth-ring,
.auth-ring-cluster .auth-ring-orbit,
.auth-ring-cluster .auth-ring-core {
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    will-change: transform;
}

.auth-ring-cluster-bl .auth-ring-2,
.auth-ring-cluster-bl .auth-ring-orbit-2 {
    animation-direction: normal;
}

.auth-ring-cluster-bl .auth-ring-4,
.auth-ring-cluster-bl .auth-ring-orbit-3 {
    animation-direction: reverse;
}

.auth-ring {
    border: 1.5px solid rgb(255 255 255 / 0.16);
}

.auth-ring-1 {
    width: 9rem;
    height: 9rem;
    border-style: dashed;
    border-color: rgb(255 255 255 / 0.3);
    animation: auth-ring-spin 24s linear infinite;
}

.auth-ring-2 {
    width: 14rem;
    height: 14rem;
    border-color: rgb(255 255 255 / 0.18);
    animation: auth-ring-spin 38s linear infinite reverse;
}

.auth-ring-3 {
    width: 19rem;
    height: 19rem;
    border-style: dashed;
    border-color: rgb(255 255 255 / 0.12);
    animation: auth-ring-spin 54s linear infinite;
}

.auth-ring-4 {
    width: 24rem;
    height: 24rem;
    border-color: rgb(255 255 255 / 0.08);
    animation: auth-ring-spin 70s linear infinite reverse;
}

.auth-ring-orbit-1 {
    width: 9rem;
    height: 9rem;
    animation: auth-ring-spin 24s linear infinite;
}

.auth-ring-orbit-2 {
    width: 14rem;
    height: 14rem;
    animation: auth-ring-spin 38s linear infinite reverse;
}

.auth-ring-orbit-3 {
    width: 24rem;
    height: 24rem;
    animation: auth-ring-spin 70s linear infinite;
}

.auth-ring-dot {
    position: absolute;
    top: -0.35rem;
    left: 50%;
    width: 0.625rem;
    height: 0.625rem;
    margin-left: -0.3125rem;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 0 12px rgb(255 255 255 / 0.75);
}

.auth-ring-dot-lg {
    width: 0.875rem;
    height: 0.875rem;
    margin-left: -0.4375rem;
    top: -0.4375rem;
    background: rgb(255 255 255 / 0.95);
}

.auth-ring-core {
    width: 4.5rem;
    height: 4.5rem;
    background: radial-gradient(circle, rgb(255 255 255 / 0.38) 0%, rgb(255 255 255 / 0) 70%);
    animation: auth-core-pulse 4.5s ease-in-out infinite;
}

.auth-ring-cluster-bl .auth-ring-core {
    animation-delay: -2.2s;
}

@keyframes auth-ring-spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes auth-core-pulse {
    0%, 100% {
        opacity: 0.45;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.15);
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-ring-cluster .auth-ring,
    .auth-ring-cluster .auth-ring-orbit,
    .auth-ring-cluster .auth-ring-core {
        animation: none;
    }
}

.auth-panel-form {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
}

.auth-card {
    width: 100%;
    max-width: 26rem;
    background: #fff;
    border-radius: 1.75rem;
    padding: 2rem 1.75rem 1.75rem;
    box-shadow:
        0 4px 6px rgb(15 23 42 / 0.03),
        0 20px 48px rgb(15 23 42 / 0.08);
}

@media (min-width: 640px) {
    .auth-card {
        padding: 2.25rem 2rem 2rem;
    }
}

.auth-card-head {
    margin-bottom: 1.5rem;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    margin-bottom: 1.25rem;
}

.auth-brand-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.625rem;
    background: linear-gradient(135deg, var(--brand-400), var(--brand-600));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--brand-500) 35%, transparent);
}

.auth-brand-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.auth-brand-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.auth-card-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.auth-card-sub {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #64748b;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.auth-field {
    position: relative;
    background: #f1f5f9;
    border: 1.5px solid transparent;
    border-radius: 0.875rem;
    padding: 0.5rem 0.875rem 0.625rem;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.auth-field.is-focus {
    background: #fff;
    border-color: var(--brand-400);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-400) 22%, transparent);
}

.auth-field-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 500;
    color: #94a3b8;
    margin-bottom: 0.125rem;
    line-height: 1.2;
}

.auth-field.is-focus .auth-field-label {
    color: var(--brand-500);
}

.auth-field-input {
    width: 100%;
    border: none;
    background: transparent;
    padding: 0;
    font-size: 0.9375rem;
    color: #0f172a;
    outline: none;
    line-height: 1.4;
}

.auth-field-input::placeholder {
    color: #cbd5e1;
}

.auth-field-input-pad {
    padding-right: 2rem;
}

.auth-field-icon {
    position: absolute;
    right: 0.875rem;
    bottom: 0.75rem;
    width: 1.125rem;
    height: 1.125rem;
    color: #cbd5e1;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-field.is-focus .auth-field-icon {
    color: var(--brand-400);
}

.auth-field-icon svg {
    width: 100%;
    height: 100%;
}

.auth-field-toggle {
    position: absolute;
    right: 0.625rem;
    bottom: 0.5rem;
    width: 1.75rem;
    height: 1.75rem;
    border: none;
    background: transparent;
    color: #94a3b8;
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease, background 0.15s ease;
}

.auth-field-toggle:hover {
    color: var(--brand-500);
    background: var(--brand-50);
}

.auth-field-toggle svg {
    width: 1.125rem;
    height: 1.125rem;
}

.auth-btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 999px;
    appearance: none;
    -webkit-appearance: none;
    background-color: var(--brand-600);
    background-image: linear-gradient(135deg, var(--brand-400) 0%, var(--brand-600) 55%, var(--brand-700) 100%);
    color: #fff !important;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 22px color-mix(in srgb, var(--brand-600) 32%, transparent);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.auth-btn-submit:hover:not(:disabled) {
    filter: brightness(1.04);
    transform: translateY(-1px);
    box-shadow: 0 12px 28px color-mix(in srgb, var(--brand-600) 40%, transparent);
}

.auth-btn-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.auth-card-foot {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: #64748b;
}

.auth-card-foot a {
    color: var(--brand-500);
    font-weight: 600;
    text-decoration: none;
    margin-left: 0.25rem;
}

.auth-card-foot a:hover {
    color: var(--brand-600);
    text-decoration: underline;
}

.auth-btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.auth-btn-google:hover {
    background: #fff;
    border-color: #cbd5e1;
    box-shadow: 0 4px 14px rgb(15 23 42 / 0.06);
}

.auth-btn-google svg {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.125rem 0;
    font-size: 0.75rem;
    color: #94a3b8;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

/* Legacy alias — ใช้ในหน้าอื่นที่ยังอ้าง .btn-google */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.btn-google:hover {
    background: #fff;
    border-color: #cbd5e1;
    box-shadow: 0 4px 14px rgb(15 23 42 / 0.06);
}

.btn-google svg {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
}

/* ── Homepage ── */
.home-page {
    background: transparent;
    overflow-x: clip;
    max-width: 100%;
    min-width: 0;
}

.home-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem 3rem;
    min-width: 0;
}

@media (min-width: 640px) {
    .home-container {
        padding: 0 1.5rem 4rem;
    }
}

/* Banner */
.home-banner-section {
    width: 100%;
    max-width: 80rem;
    margin: 0 auto 2rem;
    padding: 0 1rem;
    min-width: 0;
    overflow: hidden;
}

@media (min-width: 640px) {
    .home-banner-section {
        padding: 0 1.5rem;
    }
}

.home-banner-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 1.125rem;
    box-shadow: 0 4px 24px rgb(15 23 42 / 0.08);
    background: #f8fafc;
    margin-top: 1rem;
}

@media (max-width: 640px) {
    .home-banner-slider {
        border-radius: 0.875rem;
    }
}

.home-banner-track {
    display: flex;
    align-items: flex-start;
    width: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-banner-slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
}

.home-banner-link {
    display: block;
    position: relative;
    width: 100%;
    text-decoration: none;
    line-height: 0;
}

.home-banner-img {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: top;
}

.home-banner-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2rem 1.5rem 1.25rem;
    background: linear-gradient(transparent, rgb(15 23 42 / 0.75));
    color: #fff;
    font-weight: 600;
    font-size: 1.125rem;
    line-height: 1.4;
}

.home-banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    border-radius: 9999px;
    background: rgb(255 255 255 / 0.92);
    color: #334155;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgb(15 23 42 / 0.15);
    transition: transform 0.15s, background 0.15s;
    z-index: 2;
}

.home-banner-nav:hover {
    transform: translateY(-50%) scale(1.05);
    background: #fff;
}

.home-banner-nav svg {
    width: 1.25rem;
    height: 1.25rem;
}

.home-banner-prev { left: 1rem; }
.home-banner-next { right: 1rem; }

.home-banner-dots {
    position: absolute;
    bottom: 0.875rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.375rem;
    z-index: 2;
}

.home-banner-dot {
    width: 0.5rem;
    height: 0.5rem;
    border: none;
    border-radius: 9999px;
    background: rgb(255 255 255 / 0.45);
    cursor: pointer;
    transition: width 0.2s, background 0.2s;
}

.home-banner-dot.is-active {
    width: 1.5rem;
    background: #fff;
}

.home-banner-fallback {
    width: 100%;
    background: linear-gradient(135deg, var(--brand-900) 0%, var(--brand-700) 45%, var(--brand-500) 100%);
    padding: 3rem 1.5rem;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-radius: 1.125rem;
    box-shadow: 0 4px 24px rgb(15 23 42 / 0.08);
}

.home-banner-fallback::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgb(255 255 255 / 0.12) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgb(255 255 255 / 0.08) 0%, transparent 35%);
    pointer-events: none;
}

.home-banner-fallback-inner {
    position: relative;
    text-align: center;
    max-width: 40rem;
    color: #fff;
}

.home-banner-fallback-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: 9999px;
    background: rgb(255 255 255 / 0.15);
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 1rem;
    backdrop-filter: blur(8px);
}

.home-banner-fallback-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.home-banner-fallback-desc {
    font-size: 1rem;
    color: rgb(255 255 255 / 0.85);
    margin-bottom: 1.5rem;
}

.home-banner-fallback-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.home-btn-primary,
.home-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    border-radius: 0.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.home-btn-primary {
    background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
    color: #fff;
    box-shadow: 0 4px 14px rgb(var(--brand-500-rgb) / 0.35);
}

.home-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgb(var(--brand-500-rgb) / 0.4);
}

.home-btn-outline {
    background: rgb(255 255 255 / 0.12);
    color: #fff;
    border: 1px solid rgb(255 255 255 / 0.35);
    backdrop-filter: blur(8px);
}

.home-btn-outline:hover {
    background: rgb(255 255 255 / 0.2);
}

.home-welcome .home-btn-outline {
    background: #fff;
    color: var(--brand-700);
    border-color: #e2e8f0;
}

.home-welcome .home-btn-outline:hover {
    background: var(--brand-50);
    border-color: var(--brand-100);
    color: var(--brand-700);
}

/* Welcome — Level Up card style */
.home-welcome {
    position: relative;
    margin-bottom: 2rem;
    padding: 2px;
    border-radius: 1.75rem;
    background: linear-gradient(
        145deg,
        color-mix(in srgb, var(--brand-500) 72%, #fbbf24) 0%,
        color-mix(in srgb, var(--brand-500) 55%, #f472b6) 48%,
        var(--brand-700) 100%
    );
    box-shadow: 0 10px 32px rgb(var(--brand-500-rgb) / 0.14);
}

.home-welcome-inner {
    border-radius: calc(1.75rem - 2px);
    background: #fff;
    overflow: hidden;
}

.home-welcome-body {
    position: relative;
    display: flex;
    align-items: stretch;
    min-height: 9.5rem;
    overflow: hidden;
    min-width: 0;
}

.home-welcome-content {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 0;
    padding: 1.5rem 1.25rem;
}

@media (min-width: 768px) {
    .home-welcome-content {
        padding: 1.75rem 1.5rem;
    }
}

.home-welcome-title {
    font-size: clamp(1.375rem, 3vw, 1.875rem);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.home-welcome-desc {
    margin-top: 0.5rem;
    font-size: 0.9375rem;
    color: #64748b;
    line-height: 1.5;
    max-width: 28rem;
}

.home-welcome-coins {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-top: 0.875rem;
}

.home-welcome-coins-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    background: var(--brand-100);
    color: var(--brand-600);
    flex-shrink: 0;
}

.home-welcome-coins-icon svg {
    width: 1.125rem;
    height: 1.125rem;
}

.home-welcome-coins-meta {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.home-welcome-coins-meta strong {
    font-size: 1.125rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.home-welcome-coins-meta span {
    font-size: 0.8125rem;
    color: #64748b;
}

.home-welcome-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin-top: 1.125rem;
}

.home-welcome-art {
    position: relative;
    flex-shrink: 0;
    width: clamp(7rem, 24vw, 10.5rem);
    margin-right: 0.75rem;
    pointer-events: none;
}

.home-welcome-coin {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: linear-gradient(145deg, var(--brand-500) 0%, var(--brand-600) 52%, var(--brand-700) 100%);
    color: #fff;
    font-weight: 800;
    line-height: 1;
    box-shadow:
        inset 0 2px 4px rgb(255 255 255 / 0.35),
        0 10px 18px rgb(var(--brand-500-rgb) / 0.28);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-welcome-coin--lg {
    right: 0.25rem;
    bottom: 0.75rem;
    width: 5.5rem;
    height: 5.5rem;
    font-size: 2rem;
    transform: rotate(12deg);
}

.home-welcome-coin--sm {
    right: 3.25rem;
    top: 1rem;
    width: 3.25rem;
    height: 3.25rem;
    font-size: 1.125rem;
    transform: rotate(-18deg);
    box-shadow:
        inset 0 1px 3px rgb(255 255 255 / 0.35),
        0 6px 12px rgb(var(--brand-500-rgb) / 0.22);
}

.home-welcome:hover .home-welcome-coin--lg {
    transform: rotate(8deg) scale(1.06);
}

.home-welcome:hover .home-welcome-coin--sm {
    transform: rotate(-12deg) translateY(-4px) scale(1.08);
}

@media (max-width: 767px) {
    .home-welcome-body {
        min-height: 8.5rem;
    }

    .home-welcome-art {
        width: 6.5rem;
        margin-right: 0.5rem;
    }

    .home-welcome-coin--lg {
        width: 4.5rem;
        height: 4.5rem;
        bottom: 0.5rem;
    }

    .home-welcome-coin--sm {
        right: 2.5rem;
        top: 0.75rem;
        width: 2.75rem;
        height: 2.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-welcome-coin,
    .home-welcome:hover .home-welcome-coin--lg,
    .home-welcome:hover .home-welcome-coin--sm {
        transition: none;
        transform: none;
    }

    .home-welcome-coin--lg {
        transform: rotate(12deg);
    }

    .home-welcome-coin--sm {
        transform: rotate(-18deg);
    }
}

/* Section head */
.home-section-head {
    margin-bottom: 1.25rem;
}

.home-section-head h2 {
    font-size: 1.375rem;
    font-weight: 700;
    color: #0f172a;
}

.home-section-head p {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.25rem;
}

.home-section-head-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    min-width: 0;
}

.home-section-head-row > div:first-child {
    min-width: 0;
    flex: 1;
}

.home-link-more {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--brand-600);
    text-decoration: none;
    white-space: nowrap;
}

.home-link-more:hover {
    color: var(--brand-700);
}

/* Stats grid */
.home-stats-section {
    margin-bottom: 2.5rem;
}

.home-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.875rem;
}

@media (min-width: 768px) {
    .home-stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
}

.home-stat-card {
    position: relative;
    padding: 1.25rem;
    border-radius: 1.125rem;
    background: #fff;
    border: 1px solid #f1f5f9;
    box-shadow: 0 1px 3px rgb(15 23 42 / 0.04);
    overflow: hidden;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease, transform 0.55s ease, box-shadow 0.2s;
}

.home-stat-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.home-stat-card:hover {
    box-shadow: 0 8px 28px rgb(var(--brand-500-rgb) / 0.1);
    transform: translateY(-2px);
}

.home-stat-card.is-visible:hover {
    transform: translateY(-2px);
}

.home-stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 5rem;
    height: 5rem;
    border-radius: 9999px;
    background: var(--brand-500);
    opacity: 0.12;
    transform: translate(30%, -30%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
}

.home-stat-card:hover::after {
    opacity: 0.18;
    transform: translate(24%, -24%) scale(1.35);
}

.home-stat-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.875rem;
    background: var(--brand-100);
    color: var(--brand-600);
}

.home-stat-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.home-stat-label {
    font-size: 0.8125rem;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.home-stat-value {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.home-stat-hint {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.375rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.home-stat-live {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background: #22c55e;
    animation: home-pulse 1.5s ease-in-out infinite;
}

@keyframes home-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

/* Featured products marquee */
.home-featured-section {
    margin-bottom: 1.25rem;
}

.home-featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.625rem;
    margin-bottom: 0.375rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--brand-700);
    background: color-mix(in srgb, var(--brand-100) 70%, #fff);
}

.home-featured-more {
    flex-shrink: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--brand-600);
    text-decoration: none;
    padding: 0.5rem 0.875rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--brand-100);
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.home-featured-more:hover {
    background: var(--brand-50);
    border-color: var(--brand-300);
    color: var(--brand-700);
}

.home-featured-marquee-wrap,
.home-featured-wrap {
    position: relative;
    overflow: hidden;
    max-width: 100%;
}

.home-featured-marquee {
    overflow: hidden;
    max-width: 100%;
    contain: paint;
    mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.home-featured-track {
    display: flex;
    gap: 0.875rem;
    width: max-content;
    padding: 0.25rem 0 1rem;
    animation: home-featured-marquee 38s linear infinite;
}

.home-featured-marquee.is-static .home-featured-track {
    animation: none;
    width: 100%;
    flex-wrap: wrap;
}

.home-featured-marquee.is-paused .home-featured-track {
    animation-play-state: paused;
}

@keyframes home-featured-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.home-featured-card {
    position: relative;
    flex: 0 0 10.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem 0.875rem 0.875rem;
    background: #fff;
    border: 1px solid color-mix(in srgb, var(--brand-100) 80%, #e2e8f0);
    border-radius: 1.125rem;
    box-shadow: 0 4px 16px rgb(15 23 42 / 0.05);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-featured-card:hover {
    transform: translateY(-3px);
    border-color: var(--brand-300);
    box-shadow: 0 12px 28px color-mix(in srgb, var(--brand-500) 14%, transparent);
}

.home-featured-card-badge {
    position: absolute;
    top: 0.625rem;
    right: 0.625rem;
    font-size: 0.5625rem;
    font-weight: 700;
    color: #475569;
    background: rgb(255 255 255 / 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgb(255 255 255 / 0.75);
    border-radius: 999px;
    padding: 0.125rem 0.375rem;
    line-height: 1.2;
    box-shadow: 0 2px 8px rgb(15 23 42 / 0.08), inset 0 1px 0 rgb(255 255 255 / 0.9);
    z-index: 1;
}

.home-featured-card-icon-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 0.625rem;
}

.home-featured-card-icon {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 0.875rem;
    object-fit: cover;
    box-shadow: 0 2px 8px rgb(15 23 42 / 0.08);
}

.home-featured-card-icon-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--brand-500), var(--brand-700));
    color: #fff;
    font-size: 1.125rem;
    font-weight: 700;
}

.home-featured-card-name {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    min-height: 2.5em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-featured-card-country {
    font-size: 0.6875rem;
    color: #64748b;
    margin-top: 0.125rem;
}

.home-featured-card-foot {
    margin-top: 0.625rem;
    padding-top: 0.625rem;
    width: 100%;
    border-top: 1px dashed #e2e8f0;
}

.home-featured-card-price {
    font-size: 1rem;
    font-weight: 800;
    color: var(--brand-600);
    font-variant-numeric: tabular-nums;
}

.home-featured-card-unit {
    font-size: 0.6875rem;
    color: #94a3b8;
    margin-left: 0.125rem;
}

@media (min-width: 640px) {
    .home-featured-card {
        flex-basis: 11.5rem;
    }
}

/* Orders marquee */
.home-orders-section {
    margin-bottom: 1rem;
}

.home-orders-marquee-wrap {
    position: relative;
    overflow: hidden;
    max-width: 100%;
    contain: paint;
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.home-orders-marquee {
    overflow: hidden;
    max-width: 100%;
}

.home-orders-track {
    display: flex;
    gap: 1rem;
    width: max-content;
    animation: home-marquee 45s linear infinite;
    padding: 0.25rem 0 1rem;
}

.home-orders-marquee.is-paused .home-orders-track {
    animation-play-state: paused;
}

@keyframes home-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.home-order-card {
    flex: 0 0 18rem;
    padding: 1rem 1.125rem;
    background: #fff;
    border: none;
    border-radius: 1.125rem;
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.04), 0 4px 14px rgb(15 23 42 / 0.05);
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.home-order-head {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.home-order-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgb(15 23 42 / 0.08);
}

.home-order-icon-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
}

.home-order-meta {
    min-width: 0;
    flex: 1;
}

.home-order-meta h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-order-meta time {
    display: block;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.25rem;
}

.home-order-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.home-order-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    padding: 0.625rem 0.75rem;
    background: #f8fafc;
    border-radius: 0.75rem;
    min-width: 0;
}

.home-order-info-icon {
    display: flex;
    align-items: center;
    color: #94a3b8;
    margin-bottom: 0.125rem;
}

.home-order-info-icon svg {
    width: 0.875rem;
    height: 0.875rem;
}

.home-order-info-label {
    font-size: 0.6875rem;
    color: #94a3b8;
    font-weight: 500;
}

.home-order-info-value {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.home-order-foot {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    align-self: flex-start;
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--brand-700);
    background: var(--brand-50);
    border-radius: 9999px;
}

.home-order-foot svg {
    width: 0.875rem;
    height: 0.875rem;
    flex-shrink: 0;
}

.home-orders-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    background: #fff;
    border-radius: 1.25rem;
    box-shadow: 0 1px 3px rgb(15 23 42 / 0.04);
}

.home-orders-empty p {
    color: #64748b;
    margin-bottom: 1rem;
}

.home-orders-empty .home-btn-primary {
    display: inline-flex;
}

/* ── Reviews ── */
.home-reviews-section {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.home-reviews-head {
    text-align: center;
    margin-bottom: 1.75rem;
}

.home-reviews-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    margin-bottom: 0.875rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
    border-radius: 9999px;
    box-shadow: 0 2px 8px rgb(var(--brand-500-rgb) / 0.3);
}

.home-reviews-badge svg {
    width: 0.875rem;
    height: 0.875rem;
}

.home-reviews-head h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
}

.home-reviews-accent {
    color: var(--brand-500);
}

.home-reviews-head p {
    margin-top: 0.375rem;
    font-size: 0.9375rem;
    color: #64748b;
}

.home-reviews-marquee-wrap {
    position: relative;
    overflow: hidden;
    max-width: 100%;
    contain: paint;
    mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.home-reviews-marquee {
    overflow: hidden;
    max-width: 100%;
}

.home-reviews-track {
    display: flex;
    gap: 1rem;
    width: max-content;
    animation: home-reviews-marquee 55s linear infinite;
    padding: 0.5rem 0 1rem;
}

.home-reviews-marquee.is-paused .home-reviews-track {
    animation-play-state: paused;
}

.home-reviews-marquee.is-static .home-reviews-track {
    animation: none;
    width: auto;
}

@keyframes home-reviews-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.home-review-card {
    flex: 0 0 19rem;
    padding: 1.125rem;
    background: #fff;
    border: none;
    border-radius: 1.125rem;
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.04), 0 4px 14px rgb(15 23 42 / 0.05);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.home-review-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.home-review-user {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    min-width: 0;
}

.home-review-avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    flex-shrink: 0;
}

.home-review-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: #0f172a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-review-date {
    font-size: 0.75rem;
    color: #94a3b8;
    white-space: nowrap;
    flex-shrink: 0;
}

.home-review-stars {
    display: flex;
    gap: 0.125rem;
}

.home-review-star {
    width: 1rem;
    height: 1rem;
    color: #e2e8f0;
}

.home-review-star.is-filled {
    color: #fbbf24;
}

.home-review-comment {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 400;
    color: #64748b;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-reviews-empty {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: #fff;
    border-radius: 1.125rem;
    box-shadow: 0 1px 3px rgb(15 23 42 / 0.04);
    color: #64748b;
}

.home-reviews-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.home-btn-review {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
    border: none;
    border-radius: 9999px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgb(var(--brand-500-rgb) / 0.35);
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}

.home-btn-review:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgb(var(--brand-500-rgb) / 0.4);
}

.home-btn-review:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.home-btn-review svg {
    width: 1.125rem;
    height: 1.125rem;
}

.home-reviews-hint {
    font-size: 0.8125rem;
    color: #94a3b8;
}

/* FAQ */
.home-faq-section {
    margin-top: 0.5rem;
    margin-bottom: 2rem;
}

.home-faq-head {
    text-align: center;
    margin-bottom: 1.5rem;
}

.home-faq-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--brand-700);
    background: color-mix(in srgb, var(--brand-100) 65%, #fff);
}

.home-faq-head h2 {
    font-size: 1.625rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
}

.home-faq-accent {
    color: var(--brand-600);
}

.home-faq-head p {
    margin-top: 0.375rem;
    font-size: 0.875rem;
    color: #64748b;
}

.home-faq-list {
    max-width: 42rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.home-faq-item {
    background: #fff;
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 10px rgb(15 23 42 / 0.06), 0 1px 3px rgb(15 23 42 / 0.04);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.home-faq-item:hover {
    box-shadow: 0 6px 20px rgb(15 23 42 / 0.08), 0 2px 6px rgb(15 23 42 / 0.04);
}

.home-faq-item.is-open {
    box-shadow: 0 12px 32px color-mix(in srgb, var(--brand-500) 14%, transparent), 0 4px 12px rgb(15 23 42 / 0.06);
}

.home-faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.125rem;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    color: inherit;
}

.home-faq-q-icon {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--brand-600);
    background: var(--brand-50);
}

.home-faq-item.is-open .home-faq-q-icon {
    color: #fff;
    background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
}

.home-faq-q-text {
    flex: 1;
    min-width: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.45;
}

.home-faq-chevron {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    color: #94a3b8;
    transition: transform 0.25s ease, color 0.2s ease;
}

.home-faq-chevron svg {
    width: 100%;
    height: 100%;
}

.home-faq-item.is-open .home-faq-chevron {
    transform: rotate(180deg);
    color: var(--brand-500);
}

.home-faq-answer-wrap {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-faq-item.is-open .home-faq-answer-wrap {
    grid-template-rows: 1fr;
}

.home-faq-answer {
    overflow: hidden;
    padding: 0 1.125rem;
    font-size: 0.875rem;
    line-height: 1.7;
    color: #475569;
}

.home-faq-item.is-open .home-faq-answer {
    padding: 0 1.125rem 1rem 3.625rem;
}

/* Review Modal panel styles (backdrop shared with .site-modal-layer) */

.review-modal {
    position: relative;
    width: 100%;
    max-width: 28rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: 1.25rem;
    box-shadow: 0 20px 50px rgb(15 23 42 / 0.2);
}

.review-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: #f8fafc;
    border-radius: 9999px;
    color: #64748b;
    cursor: pointer;
}

.review-modal-close svg {
    width: 1.125rem;
    height: 1.125rem;
}

.review-modal-head {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 1.25rem;
    padding-right: 2rem;
}

.review-modal-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    background: #fef3c7;
    color: #f59e0b;
    flex-shrink: 0;
}

.review-modal-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.review-modal-head h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
}

.review-modal-head p {
    font-size: 0.8125rem;
    color: #94a3b8;
    margin-top: 0.125rem;
}

.review-field {
    margin-bottom: 1rem;
}

.review-field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.5rem;
}

.review-stars-input {
    display: flex;
    gap: 0.25rem;
}

.review-star-btn {
    padding: 0.125rem;
    border: none;
    background: none;
    cursor: pointer;
    color: #e2e8f0;
    transition: color 0.15s, transform 0.15s;
}

.review-star-btn svg {
    width: 1.75rem;
    height: 1.75rem;
}

.review-star-btn.is-active {
    color: #fbbf24;
}

.review-star-btn:hover {
    transform: scale(1.08);
}

.review-rating-label {
    margin-top: 0.375rem;
    font-size: 0.8125rem;
    color: var(--brand-500);
    font-weight: 600;
    min-height: 1.25rem;
}

.review-field textarea {
    width: 100%;
    padding: 0.75rem 0.875rem;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 400;
    color: #334155;
    border: 1px solid #e2e8f0;
    border-radius: 0.875rem;
    resize: vertical;
    min-height: 6rem;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.review-field textarea:focus {
    border-color: color-mix(in srgb, var(--brand-500) 45%, white);
    box-shadow: 0 0 0 3px rgb(var(--brand-500-rgb) / 0.12);
}

.review-char-count {
    display: block;
    text-align: right;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.375rem;
}

.review-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.875rem 1rem;
    margin-top: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
    border: none;
    border-radius: 0.875rem;
    cursor: pointer;
    box-shadow: 0 4px 14px rgb(var(--brand-500-rgb) / 0.3);
    transition: opacity 0.15s, transform 0.15s;
}

.review-submit-btn:hover:not(:disabled) {
    transform: translateY(-1px);
}

.review-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.review-submit-btn svg {
    width: 1.125rem;
    height: 1.125rem;
}

/* 404 page */
.page-404 {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
    background: linear-gradient(180deg, #f8fafc 0%, var(--brand-50) 100%);
    position: relative;
    overflow: hidden;
}

.page-404-glow {
    position: absolute;
    inset: auto;
    top: 50%;
    left: 50%;
    width: 28rem;
    height: 28rem;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgb(var(--brand-500-rgb) / 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.page-404-card {
    position: relative;
    width: 100%;
    max-width: 28rem;
    padding: 2.5rem 2rem;
    text-align: center;
    background: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.04), 0 12px 40px rgb(15 23 42 / 0.08);
}

.page-404-code {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
}

.page-404-title {
    font-size: 1.375rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.page-404-desc {
    font-size: 0.9375rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.75rem;
}

.page-404-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.page-404-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 9rem;
    padding: 0.625rem 1.25rem;
    border-radius: 0.75rem;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.page-404-btn-primary {
    background: var(--brand-500);
    color: #fff;
    box-shadow: 0 4px 14px rgb(var(--brand-500-rgb) / 0.25);
}

.page-404-btn-primary:hover {
    transform: translateY(-1px);
    background: var(--brand-600);
}

.page-404-btn-outline {
    background: #fff;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.page-404-btn-outline:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

/* ── Site Footer (Minimal) ── */
.site-footer {
    margin-top: 3rem;
    background: #fff;
    border-top: 1px solid #edf2f7;
    color: #718096;
}

.site-footer-inner {
    max-width: 72rem;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 2rem;
}

.site-footer-top {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 900px) {
    .site-footer-top {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        gap: 3rem;
    }
}

.site-footer-left {
    flex: 1;
    min-width: 0;
}

.site-footer-brand {
    max-width: 28rem;
}

.site-footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    color: #1b2559;
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.site-footer-logo-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background: var(--brand-600);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.site-footer-logo-icon svg {
    width: 1.125rem;
    height: 1.125rem;
}

.site-footer-about {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.65;
    color: #718096;
    max-width: 28rem;
}

.site-footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 1.75rem;
    margin-top: 1.5rem;
}

.site-footer-nav a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #718096;
    text-decoration: none;
    transition: color 0.15s ease;
}

.site-footer-nav a:hover {
    color: var(--brand-600);
}

.site-footer-right {
    width: 100%;
    max-width: 22rem;
}

@media (min-width: 900px) {
    .site-footer-right {
        width: auto;
        flex-shrink: 0;
    }
}

.site-footer-right-label {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #1b2559;
    margin-bottom: 0.875rem;
}

.site-footer-right .site-footer-social-icons {
    gap: 0.875rem;
}

.site-footer-right .site-footer-social-icon-btn {
    width: 1.375rem;
    height: 1.375rem;
}

.site-footer-divider {
    height: 1px;
    background: #edf2f7;
    margin: 2rem 0 1.5rem;
}

.site-footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

@media (min-width: 640px) {
    .site-footer-bottom {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.site-footer-copy {
    font-size: 0.8125rem;
    color: #a0aec0;
}

.site-footer-social-icons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.site-footer-social-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    color: #718096;
    text-decoration: none;
    transition: color 0.15s ease, transform 0.15s ease;
}

.site-footer-social-icon-btn svg {
    width: 100%;
    height: 100%;
}

.site-footer-social-icon-btn:hover {
    transform: translateY(-1px);
}

.site-footer-social-line:hover { color: #06c755; }
.site-footer-social-facebook:hover { color: #1877f2; }
.site-footer-social-telegram:hover { color: #26a5e4; }
.site-footer-social-instagram:hover { color: #e4405f; }
.site-footer-social-twitter:hover { color: #0f172a; }
.site-footer-social-youtube:hover { color: #ff0000; }
.site-footer-social-tiktok:hover { color: #fe2c55; }
.site-footer-social-discord:hover { color: #5865f2; }
.site-footer-social-email:hover { color: var(--brand-600); }
.site-footer-social-phone:hover { color: #34d399; }
.site-footer-social-website:hover { color: var(--brand-600); }
.site-footer-social-custom:hover { color: var(--brand-600); }

.site-footer-preview {
    transform: scale(0.92);
    transform-origin: top center;
    border: 1px solid #edf2f7;
    border-radius: 1rem;
    overflow: hidden;
    margin-top: 0;
}


/* ── Wallet hub & PromptPay ── */
.wallet-hub {
    max-width: 52rem;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem;
}

.wallet-hub-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.wallet-hub-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
}

.wallet-hub-sub {
    margin-top: 0.25rem;
    color: #64748b;
    font-size: 0.9375rem;
}

.wallet-hub-balance {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    padding: 0.75rem 1rem;
    border-radius: 0.875rem;
    background: rgb(255 255 255 / 0.82);
    border: 1px solid #e2e8f0;
    backdrop-filter: blur(8px);
}

.wallet-hub-balance-label {
    font-size: 0.75rem;
    color: #94a3b8;
}

.wallet-hub-balance-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-600);
}

.wallet-hub-balance-unit {
    font-size: 0.8125rem;
    color: #94a3b8;
}

.wallet-channel-grid {
    display: grid;
    gap: 0.875rem;
    margin-bottom: 1rem;
    overflow: visible;
}

@media (min-width: 720px) {
    .wallet-channel-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.wallet-channel-empty {
    margin-bottom: 1.25rem;
    padding: 1.75rem 1.25rem;
    text-align: center;
    border-radius: 1rem;
    background: rgb(255 255 255 / 0.9);
    border: 1px dashed #e2e8f0;
}

.wallet-channel-empty-title {
    margin: 0;
    font-size: 0.975rem;
    font-weight: 650;
    color: #0f172a;
}

.wallet-channel-empty-sub {
    margin: 0.4rem 0 0;
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.45;
}

.wallet-channel-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    padding: 1.25rem;
    border-radius: 1rem;
    background: rgb(255 255 255 / 0.9);
    border: 1px solid #e2e8f0;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    min-height: 10.5rem;
    overflow: visible;
}

button.wallet-channel-card {
    width: 100%;
    text-align: left;
    cursor: pointer;
    font: inherit;
}

button.wallet-channel-card:disabled {
    cursor: not-allowed;
}

.wallet-channel-corner-tag {
    position: absolute;
    top: -0.625rem;
    right: -0.5rem;
    z-index: 2;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #fff;
    border: 2px solid #fff;
    white-space: nowrap;
    pointer-events: none;
}

.wallet-channel-corner-tag--fee {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    box-shadow: 0 6px 16px rgb(220 38 38 / 0.28);
}

.wallet-channel-corner-tag--free {
    background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
    box-shadow: 0 6px 16px rgb(22 163 74 / 0.28);
}

.wallet-channel-card:hover {
    border-color: var(--brand-300);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgb(15 23 42 / 0.06);
}

.wallet-channel-card.is-disabled {
    opacity: 0.72;
}

.wallet-channel-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.wallet-channel-icon svg {
    width: 1.35rem;
    height: 1.35rem;
}

.wallet-channel-icon--promptpay { background: linear-gradient(135deg, #1d4ed8, #0ea5e9); }
.wallet-channel-icon--truewallet { background: linear-gradient(135deg, #ea580c, #f59e0b); }
.wallet-channel-icon--slip { background: linear-gradient(135deg, #0f766e, #14b8a6); }

.wallet-channel-body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.wallet-channel-body strong {
    font-size: 1.0625rem;
    color: #0f172a;
}

.wallet-channel-body span {
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.45;
}

.wallet-channel-badge {
    align-self: flex-start;
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
}

.wallet-channel-badge.is-ready {
    background: #ecfdf5;
    color: #047857;
}

.wallet-channel-arrow {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    color: #94a3b8;
    font-size: 1.125rem;
}

.wallet-hub-rate {
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem 0;
    margin: 0.25rem auto 2rem;
    width: fit-content;
    max-width: 100%;
    padding: 0.55rem;
    border-radius: 1rem;
    background:
        linear-gradient(135deg, rgb(var(--brand-500-rgb) / 0.06), rgb(var(--brand-600-rgb) / 0.03)),
        rgb(255 255 255 / 0.88);
    border: 1px solid rgb(var(--brand-500-rgb) / 0.14);
    box-shadow: 0 8px 24px rgb(15 23 42 / 0.04);
}

.wallet-hub-rate-chip {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.45rem 0.85rem;
    min-width: 0;
}

.wallet-hub-rate-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.7rem;
    background: linear-gradient(145deg, var(--brand-50), var(--brand-100));
    color: var(--brand-600);
    box-shadow: 0 0 0 1px rgb(var(--brand-500-rgb) / 0.08);
}

.wallet-hub-rate-copy {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.wallet-hub-rate-label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #64748b;
}

.wallet-hub-rate-value {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.wallet-hub-rate-value span {
    font-weight: 550;
    color: #64748b;
    font-size: 0.8125rem;
}

.wallet-hub-rate-divider {
    width: 1px;
    align-self: stretch;
    margin: 0.35rem 0;
    background: linear-gradient(180deg, transparent, rgb(var(--brand-500-rgb) / 0.28), transparent);
}

@media (max-width: 480px) {
    .wallet-hub-rate {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0.15rem;
    }

    .wallet-hub-rate-divider {
        width: auto;
        height: 1px;
        margin: 0 0.7rem;
        background: linear-gradient(90deg, transparent, rgb(var(--brand-500-rgb) / 0.22), transparent);
    }
}

.wallet-hub-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.wallet-hub-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.wallet-hub-section-head .wallet-hub-section-title {
    margin-bottom: 0;
}

.wallet-hub-section-meta {
    font-size: 0.8125rem;
    color: #94a3b8;
}

.wallet-hub-section-title-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.65rem;
}

.wallet-hub-section-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 650;
    color: var(--brand-700);
    background: linear-gradient(135deg, var(--brand-50), var(--brand-100));
    border: 1px solid rgb(var(--brand-500-rgb) / 0.14);
}

.wallet-hub-history-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 650;
    color: var(--brand-700);
    text-decoration: none;
    background: #fff;
    border: 1px solid rgb(var(--brand-500-rgb) / 0.18);
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.wallet-hub-history-btn:hover {
    background: linear-gradient(135deg, var(--brand-50), #fff);
    border-color: rgb(var(--brand-500-rgb) / 0.32);
    box-shadow: 0 6px 16px rgb(var(--brand-500-rgb) / 0.12);
    transform: translateY(-1px);
}

.wallet-hub-history-btn svg {
    flex-shrink: 0;
    color: var(--brand-600);
}

.wallet-history .wallet-pp-nav {
    margin-bottom: 1rem;
}

.wallet-history-summary {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
    .wallet-history-summary {
        grid-template-columns: repeat(3, 1fr);
    }
}

.wallet-history-stat {
    padding: 0.95rem 1.1rem;
    border-radius: 1rem;
    background:
        linear-gradient(145deg, rgb(var(--brand-500-rgb) / 0.05), transparent 55%),
        rgb(255 255 255 / 0.92);
    border: 1px solid rgb(var(--brand-500-rgb) / 0.12);
}

.wallet-history-stat-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.wallet-history-stat-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.wallet-history-stat-value span {
    font-size: 0.8125rem;
    font-weight: 550;
    color: #64748b;
}

.wallet-history-stat-value--brand {
    color: var(--brand-600);
}

.wallet-history-search {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 1.25rem;
}

.wallet-history-search-icon {
    position: absolute;
    left: 0.9rem;
    display: inline-flex;
    color: #94a3b8;
    pointer-events: none;
}

.wallet-history-search-input {
    width: 100%;
    border: 1px solid #e2e8f0;
    background: rgb(255 255 255 / 0.95);
    border-radius: 0.9rem;
    padding: 0.8rem 2.5rem 0.8rem 2.65rem;
    font-size: 0.875rem;
    color: #0f172a;
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.03);
}

.wallet-history-search-input::placeholder {
    color: #94a3b8;
}

.wallet-history-search-input:focus {
    outline: none;
    border-color: var(--brand-400);
    box-shadow: 0 0 0 3px rgb(var(--brand-500-rgb) / 0.15);
}

.wallet-history-search-clear {
    position: absolute;
    right: 0.55rem;
    width: 1.75rem;
    height: 1.75rem;
    border: 0;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 1.05rem;
    line-height: 1;
    cursor: pointer;
}

.wallet-history-search-clear:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.wallet-history-channel {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.wallet-history-channel strong {
    font-weight: 650;
    color: #0f172a;
}

.wallet-history-bank {
    font-size: 0.75rem;
    color: #94a3b8;
}

.wallet-history-date-mobile {
    font-size: 0.75rem;
    color: #94a3b8;
}

.wallet-history-status {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 650;
    white-space: nowrap;
}

.wallet-tx-card {
    background: rgb(255 255 255 / 0.9);
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    overflow: hidden;
}

.wallet-tx-table {
    width: 100%;
    font-size: 0.875rem;
}

.wallet-tx-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    color: #64748b;
    font-weight: 600;
}

.wallet-tx-table td {
    padding: 0.75rem 1rem;
    border-top: 1px solid #f1f5f9;
}

.wallet-tx-empty {
    text-align: center;
    color: #94a3b8;
    padding: 2rem !important;
}

.wallet-tx-pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding-bottom: 0.5rem;
}

@media (min-width: 640px) {
    .wallet-tx-pagination {
        flex-direction: row;
        justify-content: space-between;
    }
}

.wallet-tx-pagination-info {
    font-size: 0.8125rem;
    color: #64748b;
}

.wallet-tx-pagination-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
    justify-content: center;
}

.wallet-tx-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

a.wallet-tx-page-btn:hover,
button.wallet-tx-page-btn:hover:not(:disabled):not(.is-disabled) {
    background: var(--brand-50);
    border-color: var(--brand-300);
    color: var(--brand-700);
}

.wallet-tx-page-btn.is-active {
    background: var(--brand-600);
    border-color: var(--brand-600);
    color: #fff;
}

.wallet-tx-page-btn.is-disabled,
.wallet-tx-page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.wallet-tx-page-dots {
    padding: 0 0.25rem;
    color: #94a3b8;
    font-size: 0.875rem;
}

.wallet-pp,
.wallet-coming {
    max-width: 32rem;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem;
}

.wallet-pp-nav,
.wallet-coming .wallet-pp-back {
    margin-bottom: 1rem;
}

.wallet-pp-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.875rem;
    font-weight: 550;
    color: #64748b;
    text-decoration: none;
}

.wallet-pp-back svg {
    flex-shrink: 0;
}

.wallet-pp-back:hover { color: var(--brand-600); }

.wallet-pp-card,
.wallet-coming-card {
    background: rgb(255 255 255 / 0.92);
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgb(15 23 42 / 0.04);
}

.wallet-pp-head {
    margin-bottom: 1.25rem;
}

.wallet-pp-badge {
    display: inline-flex;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #0369a1;
    background: #e0f2fe;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    margin-bottom: 0.625rem;
}

.wallet-pp-head h1,
.wallet-coming-card h1 {
    font-size: 1.375rem;
    font-weight: 700;
    color: #0f172a;
}

.wallet-pp-head p,
.wallet-coming-card p {
    margin-top: 0.375rem;
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.55;
}

.wallet-pp-alert {
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    font-size: 0.875rem;
}

.wallet-pp-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.5rem;
}

.wallet-pp-amount-wrap {
    position: relative;
}

.wallet-pp-amount {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 0.875rem;
    padding: 0.875rem 3.5rem 0.875rem 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    outline: none;
    background: #fff;
}

.wallet-pp-amount:focus {
    border-color: var(--brand-500);
    box-shadow: 0 0 0 3px rgb(var(--brand-500-rgb) / 0.15);
}

.wallet-pp-amount-suffix {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.875rem;
}

.wallet-pp-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.875rem 0 1rem;
}

.wallet-pp-preset {
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 999px;
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
    color: #475569;
    cursor: pointer;
}

.wallet-pp-preset.is-active,
.wallet-pp-preset:hover {
    border-color: var(--brand-400);
    color: var(--brand-700);
    background: var(--brand-50);
}

.wallet-pp-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    background: #f8fafc;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #64748b;
}

.wallet-pp-preview strong {
    color: var(--brand-700);
    font-size: 1.0625rem;
}

.wallet-pp-submit {
    width: 100%;
    border: 0;
    border-radius: 0.875rem;
    padding: 0.875rem 1rem;
    background: var(--brand-600);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.wallet-pp-submit:hover { background: var(--brand-700); }
.wallet-pp-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.wallet-pp-modal {
    position: fixed;
    inset: 0;
    z-index: 10100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

body.wallet-pp-modal-open {
    overflow: hidden;
}

.wallet-pp-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: rgb(15 23 42 / 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.wallet-pp-modal-panel {
    position: relative;
    z-index: 1;
    width: min(100%, 24rem);
    background: #fff;
    border-radius: 1.25rem;
    padding: 1.25rem;
    box-shadow: 0 24px 60px rgb(15 23 42 / 0.2);
    animation: walletPpIn 0.22s ease;
    overflow: visible;
}

@keyframes walletPpIn {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to { opacity: 1; transform: none; }
}

.wallet-pp-modal-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.wallet-pp-modal-top h2 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #0f172a;
}

.wallet-pp-modal-close {
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

.wallet-pp-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.8125rem;
    color: #64748b;
}

.wallet-pp-timer-value {
    font-variant-numeric: tabular-nums;
    font-size: 1.25rem;
    color: #0f172a;
}

.wallet-pp-timer.is-low .wallet-pp-timer-value { color: #dc2626; }

.wallet-pp-qr-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    min-height: 13.75rem;
}

.wallet-pp-qr {
    display: block;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    object-fit: contain;
}

.wallet-pp-qr-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    width: 220px;
    height: 220px;
    border-radius: 0.75rem;
    border: 1px dashed #cbd5e1;
    background: #f8fafc;
    font-size: 0.8125rem;
    color: #64748b;
}

.wallet-pp-qr-spinner {
    width: 1.75rem;
    height: 1.75rem;
    border: 2px solid #e2e8f0;
    border-top-color: var(--brand-600);
    border-radius: 999px;
    animation: walletPpQrSpin 0.7s linear infinite;
}

@keyframes walletPpQrSpin {
    to { transform: rotate(360deg); }
}

.wallet-pp-qr-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: #64748b;
}

.wallet-pp-qr-status.is-ok { color: #047857; font-weight: 600; }
.wallet-pp-qr-status.is-bad { color: #b45309; font-weight: 600; }

.wallet-pp-pulse {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: var(--brand-500);
    box-shadow: 0 0 0 0 rgb(var(--brand-500-rgb) / 0.5);
    animation: walletPpPulse 1.4s ease infinite;
}

@keyframes walletPpPulse {
    0% { box-shadow: 0 0 0 0 rgb(var(--brand-500-rgb) / 0.45); }
    70% { box-shadow: 0 0 0 8px rgb(var(--brand-500-rgb) / 0); }
    100% { box-shadow: 0 0 0 0 rgb(var(--brand-500-rgb) / 0); }
}

.wallet-pp-pay-meta {
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.wallet-pp-pay-meta > div {
    background: #f8fafc;
    border-radius: 0.75rem;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.wallet-pp-pay-meta span {
    font-size: 0.75rem;
    color: #94a3b8;
}

.wallet-pp-pay-meta strong {
    font-size: 1.7375rem;
    color: #0f172a;
}

.wallet-pp-hint {
    font-size: 0.75rem;
    color: #94a3b8;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.wallet-pp-modal-actions {
    display: flex;
    gap: 0.625rem;
}

.wallet-tw-modal-sub {
    margin-top: 0.25rem;
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.45;
}

.wallet-tw-field-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.375rem;
}

.wallet-tw-field-input {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.75rem 0.875rem;
    font-size: 0.875rem;
    line-height: 1.45;
    resize: vertical;
    min-height: 5.5rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.wallet-tw-field-input:focus {
    outline: none;
    border-color: var(--brand-400);
    box-shadow: 0 0 0 3px rgb(14 165 233 / 0.15);
}

.wallet-tw-field-input:disabled {
    opacity: 0.6;
    background: #f8fafc;
}

.wallet-tw-hint {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #94a3b8;
    line-height: 1.45;
}

.wallet-tw-error {
    margin-top: 0.625rem;
    font-size: 0.8125rem;
    color: #dc2626;
    line-height: 1.45;
}

.wallet-slip-optional {
    font-weight: 400;
    color: #94a3b8;
    font-size: 0.75rem;
}

.wallet-slip-account {
    margin-bottom: 1rem;
    padding: 0.875rem 1rem;
    border-radius: 0.875rem;
    background: linear-gradient(160deg, #f0f9ff 0%, #f8fafc 55%, #fff 100%);
    border: 1px solid #e0f2fe;
}

.wallet-slip-account-label {
    margin: 0 0 0.625rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #0284c7;
}

.wallet-slip-account-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.35rem 0;
}

.wallet-slip-account-row + .wallet-slip-account-row {
    border-top: 1px dashed #e2e8f0;
}

.wallet-slip-account-key {
    flex-shrink: 0;
    font-size: 0.75rem;
    color: #64748b;
    padding-top: 0.1rem;
}

.wallet-slip-account-val {
    font-size: 0.875rem;
    font-weight: 650;
    color: #0f172a;
    text-align: right;
    word-break: break-word;
}

.wallet-slip-account-copy {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: flex-end;
    min-width: 0;
}

.wallet-slip-copy-btn {
    flex-shrink: 0;
    border: 1px solid #bae6fd;
    background: #fff;
    color: #0369a1;
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
    font-size: 0.6875rem;
    font-weight: 600;
    cursor: pointer;
    line-height: 1.4;
}

.wallet-slip-copy-btn:hover {
    background: #e0f2fe;
    border-color: #7dd3fc;
}

.wallet-slip-amount-input {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.75rem 0.875rem;
    font-size: 0.875rem;
    margin-bottom: 0.875rem;
}

.wallet-slip-amount-input:focus {
    outline: none;
    border-color: var(--brand-400);
    box-shadow: 0 0 0 3px rgb(14 165 233 / 0.15);
}

.wallet-slip-upload {
    position: relative;
}

.wallet-slip-file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.wallet-slip-upload-box {
    position: relative;
    min-height: 10rem;
    border: 1.5px dashed #cbd5e1;
    border-radius: 0.875rem;
    background: #f8fafc;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wallet-slip-upload-box.has-preview {
    border-style: solid;
    background: #fff;
}

.wallet-slip-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 1rem;
    text-align: center;
    color: #64748b;
    font-size: 0.875rem;
    pointer-events: none;
}

.wallet-slip-upload-placeholder small {
    font-size: 0.75rem;
    color: #94a3b8;
}

.wallet-slip-preview {
    width: 100%;
    max-height: 14rem;
    object-fit: contain;
    display: block;
}

.wallet-slip-loading {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgb(15 23 42 / 0.42);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.wallet-slip-loading-enter {
    transition: opacity 0.22s ease;
}
.wallet-slip-loading-enter-start { opacity: 0; }
.wallet-slip-loading-enter-end { opacity: 1; }
.wallet-slip-loading-leave {
    transition: opacity 0.18s ease;
}
.wallet-slip-loading-leave-start { opacity: 1; }
.wallet-slip-loading-leave-end { opacity: 0; }

.wallet-slip-loading-panel {
    width: min(100%, 18.5rem);
    text-align: center;
    padding: 1.75rem 1.5rem 1.5rem;
    border-radius: 1.35rem;
    background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgb(226 232 240 / 0.9);
    box-shadow:
        0 24px 50px rgb(15 23 42 / 0.22),
        0 0 0 1px rgb(255 255 255 / 0.6) inset;
    animation: walletSlipLoadIn 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes walletSlipLoadIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.wallet-slip-loading-orb {
    position: relative;
    width: 4.5rem;
    height: 4.5rem;
    margin: 0 auto 1.1rem;
}

.wallet-slip-loading-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2.5px solid transparent;
    border-top-color: var(--brand-500);
    border-right-color: rgb(var(--brand-500-rgb) / 0.35);
    animation: walletSlipSpin 0.9s linear infinite;
}

.wallet-slip-loading-ring--delay {
    inset: 0.45rem;
    border-top-color: var(--brand-400);
    border-right-color: transparent;
    border-bottom-color: rgb(var(--brand-500-rgb) / 0.28);
    animation-duration: 1.35s;
    animation-direction: reverse;
}

.wallet-slip-loading-check {
    position: absolute;
    inset: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--brand-50), var(--brand-100));
    color: var(--brand-600);
    animation: walletSlipPulse 1.6s ease-in-out infinite;
}

.wallet-slip-loading-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.wallet-slip-loading-sub {
    margin: 0.4rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #64748b;
}

.wallet-slip-loading-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 1rem;
}

.wallet-slip-loading-dots span {
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background: var(--brand-500);
    opacity: 0.35;
    animation: walletSlipDot 1.2s ease-in-out infinite;
}

.wallet-slip-loading-dots span:nth-child(2) { animation-delay: 0.15s; }
.wallet-slip-loading-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes walletSlipSpin {
    to { transform: rotate(360deg); }
}

@keyframes walletSlipPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

@keyframes walletSlipDot {
    0%, 80%, 100% {
        opacity: 0.3;
        transform: translateY(0);
    }
    40% {
        opacity: 1;
        transform: translateY(-3px);
    }
}

.wallet-pp-btn-ghost,
.wallet-pp-btn-primary {
    flex: 1;
    border-radius: 0.75rem;
    padding: 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
}

.wallet-pp-btn-ghost {
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
}

.wallet-pp-btn-primary {
    border: 0;
    background: var(--brand-600);
    color: #fff;
}

.wallet-pp-btn-primary:hover { background: var(--brand-700); }
.wallet-pp-btn-ghost:disabled { opacity: 0.5; }

/* ── Payment status cards (success / warning / info) ── */
.payment-status-card,
.wallet-pp-success-card {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 1.125rem 1.25rem;
    border-radius: 1rem;
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
    animation: paymentStatusCardIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.payment-status-card--success {
    background: linear-gradient(135deg, #f0faf5 0%, #ecfdf5 55%, #f0fdf4 100%);
    border: 1px solid #bbf7d0;
    box-shadow: 0 1px 2px rgb(16 185 129 / 0.06);
}

.payment-status-card--warning {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 55%, #fff7ed 100%);
    border: 1px solid #fde68a;
    box-shadow: 0 1px 2px rgb(245 158 11 / 0.08);
}

.payment-status-card--info {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 55%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgb(100 116 139 / 0.06);
}

.payment-status-card--error {
    background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 55%, #fff7ed 100%);
    border: 1px solid #fecdd3;
    box-shadow: 0 1px 2px rgb(244 63 94 / 0.08);
}

.payment-status-icon--error {
    color: #be123c;
    background: #ffe4e6;
    border: 2px solid #fda4af;
    animation: paymentStatusIconWarn 0.78s cubic-bezier(0.34, 1.56, 0.64, 1) 0.08s both;
}

/* Wallet result modal (success / error) — above wallet-pp-modal (10100) */
.wallet-result-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 13000 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    margin: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.wallet-result-modal.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.wallet-result-modal.is-leaving {
    opacity: 0;
    pointer-events: none;
}

.wallet-result-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgb(15 23 42 / 0.45);
    backdrop-filter: blur(2px);
}

.wallet-result-modal-panel {
    position: relative;
    z-index: 1;
    width: min(100%, 22rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.65rem;
    padding: 1.5rem 1.35rem 1.25rem;
    border-radius: 1.15rem;
    background: #fff;
    box-shadow: 0 24px 48px rgb(15 23 42 / 0.18);
    animation: paymentStatusCardIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.wallet-result-modal-panel.payment-status-card--success {
    background: linear-gradient(180deg, #f0fdf4 0%, #fff 42%);
    border: 1px solid #bbf7d0;
}

.wallet-result-modal-panel.payment-status-card--error {
    background: linear-gradient(180deg, #fff1f2 0%, #fff 42%);
    border: 1px solid #fecdd3;
}

.wallet-result-modal-panel.payment-status-card--warning {
    background: linear-gradient(180deg, #fffbeb 0%, #fff 42%);
    border: 1px solid #fde68a;
}

.wallet-result-modal-icon {
    width: 3.25rem;
    height: 3.25rem;
    margin-bottom: 0.15rem;
}

.wallet-result-modal-icon svg {
    width: 1.6rem;
    height: 1.6rem;
}

.wallet-result-modal-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
}

.wallet-result-modal-desc {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: #475569;
    white-space: pre-line;
}

.wallet-result-modal-btn {
    margin-top: 0.55rem;
    width: 100%;
    border: 0;
    border-radius: 0.75rem;
    padding: 0.7rem 1rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
    background: var(--brand-600, #0f766e);
    cursor: pointer;
    transition: background 0.15s ease, transform 0.12s ease;
}

.wallet-result-modal-btn:hover {
    background: var(--brand-700, #0d9488);
}

.wallet-result-modal-btn:active {
    transform: scale(0.98);
}

.wallet-result-modal-panel.payment-status-card--error .wallet-result-modal-btn {
    background: #e11d48;
}

.wallet-result-modal-panel.payment-status-card--error .wallet-result-modal-btn:hover {
    background: #be123c;
}

.wallet-result-modal-panel.payment-status-card--warning .wallet-result-modal-btn {
    background: #d97706;
}

.wallet-result-modal-panel.payment-status-card--warning .wallet-result-modal-btn:hover {
    background: #b45309;
}

body.wallet-result-modal-open {
    overflow: hidden;
}

.wallet-pp-success-card--modal {
    margin: 0.25rem 0;
}

.wallet-pp-success-card--float {
    pointer-events: auto;
    cursor: pointer;
    box-shadow: 0 16px 40px rgb(16 185 129 / 0.12), 0 4px 12px rgb(15 23 42 / 0.06);
}

.payment-status-icon,
.wallet-pp-success-icon {
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.payment-status-icon svg,
.wallet-pp-success-icon svg {
    width: 1.375rem;
    height: 1.375rem;
}

.payment-status-icon--success {
    color: #047857;
    background: #d1fae5;
    border: 2px solid #6ee7b7;
    animation: paymentStatusIconBounce 0.72s cubic-bezier(0.34, 1.56, 0.64, 1) 0.08s both;
}

.payment-status-icon--warning {
    color: #b45309;
    background: #fef3c7;
    border: 2px solid #fcd34d;
    animation: paymentStatusIconWarn 0.78s cubic-bezier(0.34, 1.56, 0.64, 1) 0.08s both;
}

.payment-status-icon--info {
    color: #0369a1;
    background: #e0f2fe;
    border: 2px solid #7dd3fc;
    animation: paymentStatusIconInfo 0.68s cubic-bezier(0.34, 1.56, 0.64, 1) 0.08s both;
}

.wallet-pp-success-body,
.payment-status-body {
    min-width: 0;
    padding-top: 0.125rem;
}

.wallet-pp-success-title,
.payment-status-title {
    display: block;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.45;
}

.wallet-pp-success-desc,
.payment-status-desc {
    margin-top: 0.25rem;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: #64748b;
}

.payment-status-link {
    color: var(--brand-600);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.payment-status-link:hover {
    color: var(--brand-700);
}

.wallet-pp-modal-panel.is-success {
    width: min(100%, 26rem);
    padding: 1.5rem;
    background: #fff;
}

.wallet-pp-success-overlay {
    position: fixed;
    top: 1.25rem;
    left: 50%;
    z-index: 9998;
    width: min(calc(100vw - 2rem), 28rem);
    transform: translateX(-50%) translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.wallet-pp-success-overlay.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.wallet-pp-success-overlay.is-leaving {
    opacity: 0;
    transform: translateX(-50%) translateY(-8px);
}

@keyframes paymentStatusCardIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes paymentStatusIconBounce {
    0% {
        opacity: 0;
        transform: scale(0.2);
    }
    45% {
        opacity: 1;
        transform: scale(1.18);
    }
    62% {
        transform: scale(0.9);
    }
    78% {
        transform: scale(1.06);
    }
    92% {
        transform: scale(0.98);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes paymentStatusIconWarn {
    0% {
        opacity: 0;
        transform: scale(0.15) rotate(-12deg);
    }
    40% {
        opacity: 1;
        transform: scale(1.16) rotate(4deg);
    }
    58% {
        transform: scale(0.92) rotate(-3deg);
    }
    74% {
        transform: scale(1.05) rotate(2deg);
    }
    88% {
        transform: scale(0.98) rotate(0deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes paymentStatusIconInfo {
    0% {
        opacity: 0;
        transform: scale(0.25) translateY(6px);
    }
    50% {
        opacity: 1;
        transform: scale(1.14) translateY(-2px);
    }
    68% {
        transform: scale(0.94) translateY(1px);
    }
    84% {
        transform: scale(1.04) translateY(-1px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes walletPpSuccessIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes walletPpSuccessBounce {
    0% {
        opacity: 0;
        transform: scale(0.2);
    }
    45% {
        opacity: 1;
        transform: scale(1.18);
    }
    62% {
        transform: scale(0.9);
    }
    78% {
        transform: scale(1.06);
    }
    92% {
        transform: scale(0.98);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .payment-status-card,
    .wallet-pp-success-card,
    .payment-status-icon,
    .wallet-pp-success-icon {
        animation: none !important;
    }

    .wallet-pp-success-overlay {
        transition: none;
    }
}

/* ── Profile settings page ── */
.profile-page {
    max-width: 56rem;
    margin: 0 auto;
    padding: 0 0 2rem;
}

.profile-page-head {
    margin-bottom: 1.5rem;
}

.profile-page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.profile-page-sub {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.25rem;
}

.profile-layout {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 900px) {
    .profile-layout {
        grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
        align-items: start;
    }
}

.profile-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1.125rem;
    box-shadow: 0 1px 3px rgb(15 23 42 / 0.04);
    overflow: hidden;
}

.profile-card--identity {
    padding: 1.5rem;
}

.profile-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 1.25rem;
}

.profile-avatar-wrap {
    position: relative;
}

.profile-avatar {
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 1.25rem;
    object-fit: cover;
    box-shadow: 0 8px 24px rgb(99 102 241 / 0.2);
}

.profile-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--brand-400), var(--brand-600));
    color: #fff;
}

.profile-avatar-badge {
    position: absolute;
    right: -0.35rem;
    bottom: -0.35rem;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    background: #fff;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgb(15 23 42 / 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-avatar-badge svg {
    width: 1rem;
    height: 1rem;
}

.profile-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    word-break: break-word;
}

.profile-email {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.15rem;
    word-break: break-all;
}

.profile-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.65rem;
}

.profile-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.profile-tag--role {
    background: #eef2ff;
    color: #4338ca;
}

.profile-tag--google {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.profile-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.profile-stat {
    padding: 0.75rem 0.875rem;
    border-radius: 0.875rem;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
}

.profile-stat--wide {
    grid-column: 1 / -1;
}

.profile-stat-label {
    display: block;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 0.2rem;
}

.profile-stat-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
}

.profile-stat-value--coin {
    color: var(--brand-600);
}

.profile-stat-value--sm {
    font-size: 0.9375rem;
    font-weight: 600;
}

.profile-card--password {
    padding: 1.5rem;
}

.profile-section-head {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #f1f5f9;
}

.profile-section-icon {
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
    color: #fff;
    box-shadow: 0 6px 16px rgb(99 102 241 / 0.28);
}

.profile-section-icon svg {
    width: 1.35rem;
    height: 1.35rem;
}

.profile-section-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #0f172a;
}

.profile-section-sub {
    font-size: 0.8125rem;
    color: #64748b;
    margin-top: 0.2rem;
    line-height: 1.45;
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.profile-field-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.4rem;
}

.profile-field-wrap {
    display: flex;
    align-items: center;
    border: 1.5px solid #e2e8f0;
    border-radius: 0.875rem;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.profile-field-wrap.is-focus {
    border-color: var(--brand-400);
    box-shadow: 0 0 0 3px rgb(99 102 241 / 0.12);
}

.profile-field-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    padding: 0.8rem 1rem;
    font-size: 0.9375rem;
    color: #0f172a;
    outline: none;
}

.profile-field-input::placeholder {
    color: #94a3b8;
}

.profile-field-toggle {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    margin-right: 0.35rem;
    border: none;
    border-radius: 0.5rem;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-field-toggle:hover {
    background: #f1f5f9;
    color: #64748b;
}

.profile-field-toggle svg {
    width: 1.125rem;
    height: 1.125rem;
}

.profile-form-actions {
    padding-top: 0.5rem;
}

.profile-submit {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.85rem 1.25rem;
    border: none;
    border-radius: 0.875rem;
    background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 14px rgb(99 102 241 / 0.35);
    transition: transform 0.15s, box-shadow 0.15s;
}

.profile-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgb(99 102 241 / 0.4);
}

.profile-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}
