/* Front surface v3: clear white glass, restrained blue accent, compact flow. */
:root {
    --surface-ink: #172334;
    --surface-muted: #607083;
    --surface-faint: #8a98a8;
    --surface-page: #f4f7fb;
    --surface-white: rgba(255, 255, 255, .78);
    --surface-white-strong: rgba(255, 255, 255, .92);
    --surface-line: rgba(255, 255, 255, .96);
    --surface-line-soft: rgba(104, 127, 150, .16);
    --surface-blue: var(--site-accent, var(--liquid-accent, #2563eb));
    --surface-blue-soft: var(--liquid-accent-soft, rgba(37, 99, 235, .12));
    --surface-blue-line: var(--liquid-accent-line, rgba(37, 99, 235, .24));
    --surface-shadow: 0 16px 36px rgba(34, 54, 74, .09), 0 2px 8px rgba(34, 54, 74, .035);
    --surface-radius: 16px;
    --surface-radius-small: 12px;
}

html,
body {
    background: var(--surface-page) !important;
    background-image: none !important;
}

body {
    color: var(--surface-ink) !important;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif !important;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    letter-spacing: 0 !important;
}

body::before,
body::after {
    display: none !important;
}

body.site-subsite {
    background: var(--surface-page) !important;
    background-image: none !important;
}

body.site-index,
body.site-main.site-index {
    --surface-blue: var(--site-accent, #2563eb);
    --surface-blue-soft: rgba(var(--site-accent-rgb, 37, 99, 235), .10);
    --surface-blue-line: rgba(var(--site-accent-rgb, 37, 99, 235), .22);
    background: var(--surface-page) !important;
    background-image: none !important;
    background-size: auto !important;
    animation: none !important;
    overflow-x: hidden !important;
}

body.site-index .app-container.ins-shell,
body.site-index .app-container.ins-shell::before,
body.site-index .app-container.ins-shell::after {
    background: transparent !important;
    background-image: none !important;
    animation: none !important;
}

body.site-index .app-container.ins-shell::before,
body.site-index .app-container.ins-shell::after {
    display: none !important;
    content: none !important;
}

body.site-main.site-index .app-container.ins-shell::before,
body.site-main.site-index .app-container.ins-shell::after {
    display: none !important;
    content: none !important;
    background: none !important;
    background-image: none !important;
    opacity: 0 !important;
    animation: none !important;
}

/* Shared frontend surfaces. */
body:not(.site-index) .header,
body:not(.site-index) .header-section,
body:not(.site-index) .hero,
body:not(.site-index) .identity-banner,
body:not(.site-index) .help-card,
body:not(.site-index) .notice-card,
body:not(.site-index) .confirm-card,
body:not(.site-index) .product-card,
body:not(.site-index) .product-item,
body:not(.site-index) .product-list,
body:not(.site-index) .promo-hints-container,
body:not(.site-index) .pc-desc-scroll,
body:not(.site-index) .desc-text,
body:not(.site-index) .pay-option,
body:not(.site-index) .input-group-custom,
body:not(.site-index) .stat,
body:not(.site-index) .order,
body:not(.site-index) .detail-pop,
body:not(.site-index) .detail-summary,
body:not(.site-index) .detail-panel,
body:not(.site-index) .detail-section,
body:not(.site-index) .alert-box,
body:not(.site-index) .review-card,
body:not(.site-index) .review-panel,
body:not(.site-index) .lottery-card,
body:not(.site-index) .lottery-panel,
body:not(.site-index) .auth-card,
body:not(.site-index) .form-card {
    background: var(--surface-white) !important;
    border: 1px solid var(--surface-line) !important;
    box-shadow: var(--surface-shadow) !important;
    -webkit-backdrop-filter: saturate(125%) blur(18px) !important;
    backdrop-filter: saturate(125%) blur(18px) !important;
}

body:not(.site-index) .header,
body:not(.site-index) .header-section,
body:not(.site-index) .hero,
body:not(.site-index) .auth-card,
body:not(.site-index) .form-card,
body:not(.site-index) .review-panel,
body:not(.site-index) .lottery-panel {
    border-radius: var(--surface-radius) !important;
}

body:not(.site-index) .product-card,
body:not(.site-index) .product-item,
body:not(.site-index) .product-list,
body:not(.site-index) .pay-option,
body:not(.site-index) .input-group-custom,
body:not(.site-index) .stat,
body:not(.site-index) .order,
body:not(.site-index) .detail-summary,
body:not(.site-index) .detail-panel,
body:not(.site-index) .detail-section,
body:not(.site-index) .alert-box {
    border-radius: var(--surface-radius-small) !important;
}

body:not(.site-index) .header-title,
body:not(.site-index) .title,
body:not(.site-index) .hero h1,
body:not(.site-index) .hero h2,
body:not(.site-index) .hero h3,
body:not(.site-index) .product-name,
body:not(.site-index) .p-name,
body:not(.site-index) .section-title,
body:not(.site-index) .modal-title-wrap {
    color: var(--surface-ink) !important;
    letter-spacing: 0 !important;
}

body:not(.site-index) .desc-text,
body:not(.site-index) .pc-desc-scroll,
body:not(.site-index) .form-text,
body:not(.site-index) .text-muted,
body:not(.site-index) .muted,
body:not(.site-index) .notice-content {
    color: var(--surface-muted) !important;
}

button,
.btn,
.btnx,
.n-btn,
.alert-btn,
.pc-btn-pay,
.btn-pay,
.query-btn,
.user-btn,
.tabx,
.detail-inline-btn,
.mobile-desc-toggle {
    min-height: 40px;
    border-radius: 999px !important;
    font-weight: 700 !important;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease !important;
}

button:hover,
.btn:hover,
.btnx:hover,
.n-btn:hover,
.alert-btn:hover,
.pc-btn-pay:hover,
.btn-pay:hover,
.query-btn:hover,
.user-btn:hover,
.tabx:hover,
.detail-inline-btn:hover,
.mobile-desc-toggle:hover {
    transform: translateY(-1px);
}

body:not(.site-index) .btnx,
body:not(.site-index) .n-btn,
body:not(.site-index) .alert-btn,
body:not(.site-index) .pc-btn-pay,
body:not(.site-index) .btn-pay,
body:not(.site-index) .tabx.active,
body:not(.site-index) button[type="submit"],
body:not(.site-index) input[type="submit"] {
    color: #fff !important;
    background: var(--surface-blue) !important;
    border: 1px solid rgba(255, 255, 255, .62) !important;
    box-shadow: 0 10px 22px var(--surface-blue-soft) !important;
}

body:not(.site-index) .user-btn,
body:not(.site-index) .query-btn,
body:not(.site-index) .tabx:not(.active),
body:not(.site-index) .pc-btn-back,
body:not(.site-index) .btn.btn-outline-secondary,
body:not(.site-index) .btn.btn-outline-primary,
body:not(.site-index) .btn.btn-outline-danger {
    color: var(--surface-muted) !important;
    background: rgba(255, 255, 255, .58) !important;
    border: 1px solid var(--surface-line) !important;
    box-shadow: 0 7px 18px rgba(34, 54, 74, .055) !important;
}

body:not(.site-index) .user-btn:hover,
body:not(.site-index) .query-btn:hover,
body:not(.site-index) .tabx:not(.active):hover,
body:not(.site-index) .pc-btn-back:hover,
body:not(.site-index) .btn.btn-outline-secondary:hover,
body:not(.site-index) .btn.btn-outline-primary:hover,
body:not(.site-index) .btn.btn-outline-danger:hover {
    color: var(--surface-blue) !important;
    border-color: var(--surface-blue-line) !important;
}

body:not(.site-index) input,
body:not(.site-index) select,
body:not(.site-index) textarea,
body:not(.site-index) .form-control,
body:not(.site-index) .custom-select {
    color: var(--surface-ink) !important;
    background: rgba(255, 255, 255, .64) !important;
    border: 1px solid var(--surface-line-soft) !important;
    border-radius: var(--surface-radius-small) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .84) !important;
}

body:not(.site-index) input:focus,
body:not(.site-index) select:focus,
body:not(.site-index) textarea:focus,
body:not(.site-index) .form-control:focus,
body:not(.site-index) .custom-select:focus {
    border-color: var(--surface-blue-line) !important;
    box-shadow: 0 0 0 4px var(--surface-blue-soft), inset 0 1px 0 rgba(255, 255, 255, .92) !important;
}

body:not(.site-index) .price-tag,
body:not(.site-index) .price,
body:not(.site-index) .amount,
body:not(.site-index) .product-price,
body:not(.site-index) .p-price,
body:not(.site-index) .detail-summary-price {
    color: var(--surface-blue) !important;
}

/* Homepage: one useful header, one short intro, one catalog. */
body.site-index .app-container.ins-shell {
    max-width: 1160px !important;
    padding: 14px 20px 54px !important;
}

body.site-index .store-bar {
    position: sticky !important;
    top: 14px !important;
    z-index: 80 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 18px !important;
    min-height: 64px !important;
    padding: 10px 12px 10px 14px !important;
    border: 1px solid var(--surface-line) !important;
    border-radius: 18px !important;
    background: rgba(255, 255, 255, .74) !important;
    box-shadow: 0 12px 30px rgba(34, 54, 74, .08), inset 0 1px 0 rgba(255, 255, 255, .94) !important;
    -webkit-backdrop-filter: saturate(135%) blur(20px) !important;
    backdrop-filter: saturate(135%) blur(20px) !important;
}

body.site-index .store-brand {
    min-width: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    color: var(--surface-ink) !important;
    text-decoration: none !important;
}

body.site-index .store-brand-mark {
    width: 34px !important;
    height: 34px !important;
    flex: 0 0 34px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
    background: var(--surface-blue) !important;
    border-radius: 11px !important;
    box-shadow: 0 8px 16px var(--surface-blue-soft) !important;
}

body.site-index .store-brand-copy {
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
}

body.site-index .store-brand-copy strong {
    max-width: 42vw !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    color: var(--surface-ink) !important;
    font-size: 15px !important;
    line-height: 1.2 !important;
}

body.site-index .store-brand-copy small {
    color: var(--surface-faint) !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
}

body.site-index .store-nav {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex: 0 0 auto !important;
}

body.site-index .store-nav-link {
    min-height: 38px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    padding: 0 12px !important;
    color: var(--surface-muted) !important;
    background: rgba(255, 255, 255, .50) !important;
    border: 1px solid rgba(255, 255, 255, .88) !important;
    border-radius: 11px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

body.site-index .store-nav-link i {
    color: var(--surface-blue) !important;
    font-size: 14px !important;
}

body.site-index .store-nav-link:hover {
    color: var(--surface-blue) !important;
    border-color: var(--surface-blue-line) !important;
    transform: translateY(-1px) !important;
}

body.site-index .store-nav-primary {
    color: #fff !important;
    background: var(--surface-blue) !important;
    border-color: var(--surface-blue) !important;
    box-shadow: 0 9px 20px var(--surface-blue-soft) !important;
}

body.site-index .store-nav-primary i {
    color: #fff !important;
}

body.site-index .store-hero {
    display: flex !important;
    align-items: flex-end !important;
    justify-content: space-between !important;
    gap: 24px !important;
    padding: 36px 4px 26px !important;
    border-bottom: 1px solid rgba(104, 127, 150, .12) !important;
}

body.site-index .store-hero-copy {
    min-width: 0 !important;
}

body.site-index .store-hero h1 {
    margin: 0 !important;
    color: var(--surface-ink) !important;
    font-size: 42px !important;
    font-weight: 780 !important;
    line-height: 1.08 !important;
    letter-spacing: 0 !important;
}

body.site-index .store-hero p {
    max-width: 62ch !important;
    margin: 10px 0 0 !important;
    color: var(--surface-muted) !important;
    font-size: 14px !important;
    line-height: 1.65 !important;
}

body.site-index .store-summary {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
    flex: 0 0 auto !important;
    padding: 0 2px 2px !important;
}

body.site-index .store-summary-item {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    min-width: 58px !important;
}

body.site-index .store-summary-item strong {
    color: var(--surface-ink) !important;
    font-size: 20px !important;
    font-weight: 780 !important;
    line-height: 1 !important;
}

body.site-index .store-summary-item small {
    color: var(--surface-faint) !important;
    font-size: 11px !important;
    white-space: nowrap !important;
}

body.site-index .ins-toolbar {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    min-height: 58px !important;
    margin: 18px 0 4px !important;
    padding: 8px !important;
    border: 1px solid var(--surface-line) !important;
    border-radius: 15px !important;
    background: rgba(255, 255, 255, .68) !important;
    box-shadow: 0 10px 24px rgba(34, 54, 74, .055) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    backdrop-filter: blur(16px) !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

body.site-index .ins-tabs {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    overflow-x: auto !important;
    max-width: 100% !important;
    scrollbar-width: none !important;
}

body.site-index .ins-tabs::-webkit-scrollbar {
    display: none !important;
}

body.site-index .ins-tab {
    min-height: 38px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    max-width: 220px !important;
    padding: 0 12px !important;
    color: var(--surface-muted) !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    border-radius: 10px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

body.site-index .ins-tab:hover {
    color: var(--surface-blue) !important;
    background: var(--surface-blue-soft) !important;
}

body.site-index .ins-tab.is-special {
    color: var(--surface-blue) !important;
    background: var(--surface-blue-soft) !important;
    border-color: var(--surface-blue-line) !important;
}

body.site-index .ins-section {
    margin: 0 !important;
    padding: 24px 0 4px !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

body.site-index .ins-section-head {
    display: flex !important;
    align-items: baseline !important;
    justify-content: space-between !important;
    gap: 12px !important;
    margin: 0 2px 12px !important;
}

body.site-index .ins-section-title {
    min-width: 0 !important;
    margin: 0 !important;
    color: var(--surface-ink) !important;
    font-size: 18px !important;
    font-weight: 780 !important;
    line-height: 1.25 !important;
}

body.site-index .ins-section-meta {
    flex: 0 0 auto !important;
    color: var(--surface-faint) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
}

body.site-index .ins-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(204px, 1fr)) !important;
    gap: 12px !important;
    margin: 0 !important;
}

body.site-index .product-card,
body.site-index .ins-card,
body.site-index .ins-subgroup-row .product-card {
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    color: var(--surface-ink) !important;
    background: rgba(255, 255, 255, .76) !important;
    border: 1px solid var(--surface-line) !important;
    border-radius: 14px !important;
    box-shadow: var(--surface-shadow) !important;
    overflow: hidden !important;
    -webkit-backdrop-filter: saturate(125%) blur(18px) !important;
    backdrop-filter: saturate(125%) blur(18px) !important;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease !important;
}

body.site-index .product-card:hover,
body.site-index .ins-card:hover {
    transform: translateY(-3px) !important;
    border-color: var(--surface-blue-line) !important;
    box-shadow: 0 20px 36px rgba(34, 54, 74, .13) !important;
}

body.site-index .ins-card::before,
body.site-index .product-card::before,
body.site-index .ins-card::after,
body.site-index .product-card::after {
    display: none !important;
    content: none !important;
}

body.site-index .ins-card-top {
    display: none !important;
}

body.site-index .ins-card-body {
    min-width: 0 !important;
    padding: 16px 16px 13px !important;
}

body.site-index .ins-card .p-name {
    display: -webkit-box !important;
    min-height: 38px !important;
    overflow: hidden !important;
    color: var(--surface-ink) !important;
    font-size: 14px !important;
    font-weight: 760 !important;
    line-height: 1.35 !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
}

body.site-index .ins-card .p-price {
    margin: 11px 0 10px !important;
    color: var(--surface-blue) !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
}

body.site-index .ins-card .p-price small {
    font-size: 13px !important;
    font-weight: 760 !important;
}

body.site-index .promo-original {
    color: var(--surface-faint) !important;
    font-size: 11px !important;
    font-weight: 600 !important;
}

body.site-index .ins-card-meta,
body.site-index .ins-card-footline {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    min-width: 0 !important;
}

body.site-index .ins-card-meta .p-daily,
body.site-index .ins-card .p-daily,
body.site-index .ins-card .p-tip {
    display: none !important;
}

body.site-index .p-stock {
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 4px 7px !important;
    overflow: hidden !important;
    color: var(--surface-muted) !important;
    background: rgba(245, 248, 251, .80) !important;
    border: 1px solid rgba(104, 127, 150, .12) !important;
    border-radius: 7px !important;
    font-size: 10px !important;
    line-height: 1 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body.site-index .ins-card-foot {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 48px !important;
    padding: 10px 16px !important;
    background: rgba(248, 251, 254, .58) !important;
    border-top: 1px solid rgba(104, 127, 150, .10) !important;
}

body.site-index .ins-card-action {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 28px !important;
    padding: 0 11px !important;
    color: var(--surface-blue) !important;
    background: var(--surface-blue-soft) !important;
    border: 1px solid var(--surface-blue-line) !important;
    border-radius: 999px !important;
    font-size: 11px !important;
    font-weight: 780 !important;
    white-space: nowrap !important;
}

body.site-index .ins-card-arrow,
body.site-index .ins-card-icon,
body.site-index .ins-card-code {
    display: none !important;
}

body.site-index .promo-badge,
body.site-index .rec-badge {
    top: 10px !important;
    right: 10px !important;
    left: auto !important;
    z-index: 3 !important;
    padding: 4px 7px !important;
    color: var(--surface-blue) !important;
    background: var(--surface-blue-soft) !important;
    border: 1px solid var(--surface-blue-line) !important;
    border-radius: 7px !important;
    box-shadow: none !important;
    font-size: 10px !important;
}

body.site-index .rec-badge {
    top: 10px !important;
    right: auto !important;
    left: 10px !important;
    color: #fff !important;
    background: var(--surface-blue) !important;
    border-color: var(--surface-blue) !important;
}

body.site-index .free-claim-btn {
    min-height: 28px !important;
    margin: 0 0 9px !important;
    padding: 0 9px !important;
    color: var(--surface-blue) !important;
    background: var(--surface-blue-soft) !important;
    border: 1px solid var(--surface-blue-line) !important;
    border-radius: 999px !important;
    font-size: 10px !important;
}

body.site-index .agent-review-strip {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    margin: 14px 0 2px !important;
    padding: 11px 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(104, 127, 150, .12) !important;
    box-shadow: none !important;
}

body.site-index .agent-review-strip > div {
    min-width: 0 !important;
    flex: 1 1 auto !important;
}

body.site-index .agent-review-title {
    margin: 0 0 7px !important;
    color: var(--surface-ink) !important;
    font-size: 13px !important;
}

body.site-index .agent-review-title i {
    color: var(--surface-blue) !important;
}

body.site-index .agent-review-list {
    display: flex !important;
    gap: 6px !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
}

body.site-index .agent-review-list::-webkit-scrollbar {
    display: none !important;
}

body.site-index .agent-review-mini {
    min-height: 30px !important;
    flex: 0 0 auto !important;
    padding: 4px 8px !important;
    color: var(--surface-muted) !important;
    background: rgba(255, 255, 255, .52) !important;
    border: 1px solid rgba(104, 127, 150, .14) !important;
    border-radius: 9px !important;
    font-size: 10px !important;
}

body.site-index .agent-review-mini img,
body.site-index .agent-review-avatar {
    width: 22px !important;
    height: 22px !important;
    background: var(--surface-blue) !important;
}

body.site-index .agent-review-link {
    min-height: 34px !important;
    flex: 0 0 auto !important;
    padding: 0 11px !important;
    color: var(--surface-blue) !important;
    background: var(--surface-blue-soft) !important;
    border: 1px solid var(--surface-blue-line) !important;
    border-radius: 999px !important;
    font-size: 11px !important;
    box-shadow: none !important;
}

body.site-index .ins-subgroup-list {
    gap: 12px !important;
}

body.site-index .ins-subgroup-row {
    grid-template-columns: 34px minmax(0, 1fr) !important;
    gap: 10px !important;
    align-items: stretch !important;
}

body.site-index .ins-subgroup-label {
    min-height: 112px !important;
    padding: 8px 5px !important;
    color: var(--surface-blue) !important;
    background: var(--surface-blue-soft) !important;
    border: 1px solid var(--surface-blue-line) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    font-size: 11px !important;
}

body.site-index .ins-subgroup-label.is-default {
    color: var(--surface-muted) !important;
    background: rgba(104, 127, 150, .08) !important;
    border-color: rgba(104, 127, 150, .14) !important;
}

body.site-index .footer-section {
    padding: 34px 0 6px !important;
    color: var(--surface-faint) !important;
    font-size: 11px !important;
    text-align: center !important;
}

body.site-index .lottery-float {
    right: 18px !important;
    bottom: 22px !important;
    width: 52px !important;
    height: 52px !important;
    color: #fff !important;
    background: var(--surface-blue) !important;
    border: 1px solid rgba(255, 255, 255, .72) !important;
    border-radius: 16px !important;
    box-shadow: 0 14px 28px var(--surface-blue-soft) !important;
}

/* Dynamic Island style notifications. Blocking workflows keep their focus,
   while short messages become a compact top-center status surface. */
.front-island-host {
    position: fixed !important;
    top: max(12px, env(safe-area-inset-top, 12px)) !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 2147483001 !important;
    display: flex !important;
    justify-content: center !important;
    padding: 0 14px !important;
    pointer-events: none !important;
}

.front-island {
    position: relative !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    width: min(440px, calc(100vw - 28px)) !important;
    min-height: 48px !important;
    padding: 13px 14px !important;
    color: var(--surface-ink) !important;
    background: rgba(255, 255, 255, .90) !important;
    border: 1px solid rgba(255, 255, 255, .98) !important;
    border-radius: 26px !important;
    box-shadow: 0 18px 42px rgba(27, 46, 66, .18), inset 0 1px 0 rgba(255, 255, 255, .98) !important;
    -webkit-backdrop-filter: saturate(150%) blur(22px) !important;
    backdrop-filter: saturate(150%) blur(22px) !important;
    opacity: 0 !important;
    transform: translateY(-18px) scale(.94) !important;
    transition: opacity 220ms ease, transform 360ms cubic-bezier(.2, .8, .2, 1) !important;
    pointer-events: auto !important;
}

.front-island.is-visible {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}

.front-island.is-success::before,
.front-island.is-info::before,
.front-island.is-error::before {
    content: "" !important;
    flex: 0 0 8px !important;
    width: 8px !important;
    height: 8px !important;
    margin-top: 5px !important;
    border-radius: 50% !important;
    background: var(--surface-blue) !important;
    box-shadow: 0 0 0 5px var(--surface-blue-soft) !important;
}

.front-island.is-error::before {
    background: #d64555 !important;
    box-shadow: 0 0 0 5px rgba(214, 69, 85, .12) !important;
}

.front-island.is-success::before {
    background: #1f9d69 !important;
    box-shadow: 0 0 0 5px rgba(31, 157, 105, .12) !important;
}

.front-island-message {
    min-width: 0 !important;
    flex: 1 1 auto !important;
    color: var(--surface-ink) !important;
    font-size: 13px !important;
    font-weight: 650 !important;
    line-height: 1.48 !important;
    white-space: pre-line !important;
    overflow-wrap: anywhere !important;
}

.front-island-close {
    flex: 0 0 24px !important;
    width: 24px !important;
    height: 24px !important;
    min-height: 24px !important;
    margin: -2px -3px 0 0 !important;
    padding: 0 !important;
    color: var(--surface-faint) !important;
    background: rgba(104, 127, 150, .09) !important;
    border: 0 !important;
    border-radius: 50% !important;
    box-shadow: none !important;
}

.front-island-close:hover {
    color: var(--surface-blue) !important;
    background: var(--surface-blue-soft) !important;
}

/* Existing announcement and validation surfaces become compact islands too. */
body #noticeBox.pop-mask.active,
body #noticeBox.overlay.active,
body #customAlert.active,
body #expiredAgentPrompt.active,
body #balancePrompt.active {
    position: fixed !important;
    inset: 0 !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
    padding: max(12px, env(safe-area-inset-top, 12px)) 14px 14px !important;
    background: transparent !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    pointer-events: none !important;
    z-index: 2147482990 !important;
}

body #noticeBox.pop-mask.active .notice-card,
body #noticeBox.overlay.active .alert-box,
body #customAlert.active .alert-box,
body #expiredAgentPrompt.active .alert-box,
body #balancePrompt.active .alert-box {
    width: min(460px, calc(100vw - 28px)) !important;
    max-width: min(460px, calc(100vw - 28px)) !important;
    max-height: min(68vh, 560px) !important;
    margin: 0 !important;
    padding: 16px !important;
    color: var(--surface-ink) !important;
    background: rgba(255, 255, 255, .90) !important;
    border: 1px solid rgba(255, 255, 255, .98) !important;
    border-radius: 28px !important;
    box-shadow: 0 20px 48px rgba(27, 46, 66, .18), inset 0 1px 0 rgba(255, 255, 255, .98) !important;
    -webkit-backdrop-filter: saturate(150%) blur(22px) !important;
    backdrop-filter: saturate(150%) blur(22px) !important;
    pointer-events: auto !important;
    overflow: auto !important;
    animation: front-island-expand 300ms cubic-bezier(.2, .8, .2, 1) both !important;
}

body #noticeBox.pop-mask.active .notice-card {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

body #noticeBox.pop-mask.active .n-btn,
body #noticeBox.overlay.active .alert-btn,
body #customAlert.active .alert-btn,
body #expiredAgentPrompt.active .alert-btn,
body #balancePrompt.active .alert-btn {
    min-height: 34px !important;
    width: auto !important;
    margin-top: 10px !important;
    padding: 0 16px !important;
    color: #fff !important;
    background: var(--surface-blue) !important;
    border: 0 !important;
    border-radius: 999px !important;
    box-shadow: 0 8px 18px var(--surface-blue-soft) !important;
}

body #noticeBox.pop-mask.active .notice-body,
body #noticeBox.pop-mask.active .notice-frame {
    max-height: min(52vh, 430px) !important;
    overflow: auto !important;
    border-radius: 16px !important;
}

@keyframes front-island-expand {
    from { opacity: 0; transform: translateY(-14px) scale(.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 767px) {
    body.site-index .app-container.ins-shell {
        padding: 8px 12px 34px !important;
    }

    body.site-index .store-bar {
        top: 8px !important;
        min-height: 56px !important;
        padding: 8px 9px 8px 11px !important;
        border-radius: 15px !important;
    }

    body.site-index .store-brand-mark {
        width: 30px !important;
        height: 30px !important;
        flex-basis: 30px !important;
        border-radius: 9px !important;
    }

    body.site-index .store-brand-copy strong {
        max-width: 42vw !important;
        font-size: 13px !important;
    }

    body.site-index .store-nav {
        gap: 4px !important;
    }

    body.site-index .store-nav-link {
        width: 36px !important;
        min-height: 36px !important;
        justify-content: center !important;
        padding: 0 !important;
        border-radius: 10px !important;
    }

    body.site-index .store-nav-link span {
        display: none !important;
    }

    body.site-index .store-hero {
        display: block !important;
        padding: 28px 2px 18px !important;
    }

    body.site-index .store-hero h1 {
        font-size: 28px !important;
    }

    body.site-index .store-hero p {
        margin-top: 8px !important;
        font-size: 12px !important;
    }

    body.site-index .store-summary {
        gap: 18px !important;
        margin-top: 18px !important;
    }

    body.site-index .store-summary-item strong {
        font-size: 18px !important;
    }

    body.site-index .ins-toolbar {
        min-height: 52px !important;
        margin-top: 12px !important;
        padding: 6px !important;
    }

    body.site-index .ins-tab {
        min-height: 36px !important;
        padding: 0 10px !important;
        font-size: 11px !important;
    }

    body.site-index .ins-section {
        padding-top: 20px !important;
    }

    body.site-index .ins-section-title {
        font-size: 16px !important;
    }

    body.site-index .ins-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 9px !important;
    }

    body.site-index .ins-card-body {
        padding: 13px 11px 11px !important;
    }

    body.site-index .ins-card .p-name {
        min-height: 34px !important;
        font-size: 12px !important;
    }

    body.site-index .ins-card .p-price {
        margin: 9px 0 8px !important;
        font-size: 19px !important;
    }

    body.site-index .ins-card-foot {
        min-height: 40px !important;
        padding: 7px 11px !important;
    }

    body.site-index .ins-card-action {
        min-height: 25px !important;
        padding: 0 8px !important;
        font-size: 10px !important;
    }

    body.site-index .ins-subgroup-row {
        grid-template-columns: 28px minmax(0, 1fr) !important;
        gap: 7px !important;
    }

    body.site-index .ins-subgroup-label {
        min-height: 94px !important;
        font-size: 10px !important;
    }

    body.site-index .agent-review-strip {
        display: block !important;
    }

    body.site-index .agent-review-link {
        margin-top: 9px !important;
    }

    body.site-index .lottery-float {
        right: 14px !important;
        bottom: calc(14px + env(safe-area-inset-bottom, 0px)) !important;
        width: 46px !important;
        height: 46px !important;
        border-radius: 14px !important;
    }

    .front-island {
        width: calc(100vw - 24px) !important;
        min-height: 46px !important;
        padding: 12px 13px !important;
        border-radius: 24px !important;
    }

    .front-island-message {
        font-size: 12px !important;
    }
}

/* The homepage still carries a few legacy mobile rules inline. Keep the
   redesigned surface authoritative without changing the underlying markup. */
@media (max-width: 820px) {
    body.site-index.site-mobile-lite,
    body.site-index.site-safe-cards {
        background: var(--surface-page) !important;
    }

    body.site-index.site-mobile-lite .app-container.ins-shell,
    body.site-index.site-safe-cards .app-container.ins-shell {
        padding: 8px 12px 34px !important;
    }

    body.site-index.site-mobile-lite .store-hero h1,
    body.site-index.site-safe-cards .store-hero h1 {
        font-size: 28px !important;
        letter-spacing: 0 !important;
    }

    body.site-index.site-mobile-lite .ins-toolbar,
    body.site-index.site-safe-cards .ins-toolbar {
        min-height: 52px !important;
        margin: 12px 0 4px !important;
        padding: 6px !important;
        background: rgba(255, 255, 255, .68) !important;
        border: 1px solid var(--surface-line) !important;
        border-radius: 15px !important;
        box-shadow: 0 10px 24px rgba(34, 54, 74, .055) !important;
        -webkit-backdrop-filter: blur(16px) !important;
        backdrop-filter: blur(16px) !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    body.site-index.site-mobile-lite .ins-tabs,
    body.site-index.site-safe-cards .ins-tabs {
        display: flex !important;
        grid-template-columns: none !important;
        width: auto !important;
        overflow-x: auto !important;
    }

    body.site-index.site-mobile-lite .ins-tab,
    body.site-index.site-safe-cards .ins-tab {
        min-height: 36px !important;
        flex: 0 0 auto !important;
        padding: 0 10px !important;
        color: var(--surface-muted) !important;
        background: transparent !important;
        border: 1px solid transparent !important;
        border-radius: 10px !important;
        font-size: 11px !important;
    }

    body.site-index.site-mobile-lite .ins-tab.is-special,
    body.site-index.site-safe-cards .ins-tab.is-special {
        color: var(--surface-blue) !important;
        background: var(--surface-blue-soft) !important;
        border-color: var(--surface-blue-line) !important;
    }

    body.site-index.site-mobile-lite .ins-section,
    body.site-index.site-safe-cards .ins-section {
        padding: 20px 0 4px !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    body.site-index.site-mobile-lite .ins-grid,
    body.site-index.site-safe-cards .ins-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 9px !important;
    }

    body.site-index.site-mobile-lite .ins-card,
    body.site-index.site-mobile-lite .product-card,
    body.site-index.site-safe-cards .ins-card,
    body.site-index.site-safe-cards .product-card {
        min-height: 0 !important;
        padding: 0 !important;
        background: rgba(255, 255, 255, .76) !important;
        border: 1px solid var(--surface-line) !important;
        border-radius: 14px !important;
        box-shadow: var(--surface-shadow) !important;
        -webkit-backdrop-filter: saturate(125%) blur(18px) !important;
        backdrop-filter: saturate(125%) blur(18px) !important;
    }

    body.site-index.site-mobile-lite .ins-card::before,
    body.site-index.site-mobile-lite .ins-card::after,
    body.site-index.site-mobile-lite .product-card::before,
    body.site-index.site-mobile-lite .product-card::after,
    body.site-index.site-safe-cards .ins-card::before,
    body.site-index.site-safe-cards .ins-card::after,
    body.site-index.site-safe-cards .product-card::before,
    body.site-index.site-safe-cards .product-card::after {
        display: none !important;
        content: none !important;
    }

    body.site-index.site-mobile-lite .ins-card-body,
    body.site-index.site-safe-cards .ins-card-body {
        padding: 13px 11px 11px !important;
    }

    body.site-index.site-mobile-lite .ins-card .p-name,
    body.site-index.site-safe-cards .ins-card .p-name {
        min-height: 34px !important;
        color: var(--surface-ink) !important;
        font-size: 12px !important;
        line-height: 1.35 !important;
    }

    body.site-index.site-mobile-lite .ins-card .p-price,
    body.site-index.site-safe-cards .ins-card .p-price {
        margin: 9px 0 8px !important;
        color: var(--surface-blue) !important;
        font-size: 19px !important;
    }

    body.site-index.site-mobile-lite .ins-card-foot,
    body.site-index.site-safe-cards .ins-card-foot {
        min-height: 40px !important;
        padding: 7px 11px !important;
        background: rgba(248, 251, 254, .58) !important;
        border-top: 1px solid rgba(104, 127, 150, .10) !important;
    }

    body.site-index.site-mobile-lite .ins-card-action,
    body.site-index.site-safe-cards .ins-card-action {
        min-height: 25px !important;
        padding: 0 8px !important;
        color: var(--surface-blue) !important;
        background: var(--surface-blue-soft) !important;
        border: 1px solid var(--surface-blue-line) !important;
        font-size: 10px !important;
    }

    body.site-index.site-mobile-lite .ins-subgroup-row,
    body.site-index.site-safe-cards .ins-subgroup-row {
        grid-template-columns: 28px minmax(0, 1fr) !important;
        gap: 7px !important;
    }

    body.site-index.site-mobile-lite .ins-subgroup-label,
    body.site-index.site-safe-cards .ins-subgroup-label {
        min-height: 94px !important;
        font-size: 10px !important;
    }
}

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

/* Inner frontend pass: the same quiet white/blue surface as the catalog. */
body.site-main:not(.site-index),
body.site-subsite:not(.site-index) {
    background: var(--surface-page) !important;
    background-image: none !important;
    color: var(--surface-ink) !important;
}

body.site-main:not(.site-index)::before,
body.site-main:not(.site-index)::after,
body.site-subsite:not(.site-index)::before,
body.site-subsite:not(.site-index)::after {
    display: none !important;
    content: none !important;
    background: none !important;
    background-image: none !important;
    animation: none !important;
}

/* Login, registration and password recovery. */
body.site-auth .wrap {
    box-sizing: border-box !important;
    width: min(100%, 560px) !important;
    margin: clamp(22px, 8vh, 72px) auto 38px !important;
    padding: 28px !important;
    background: rgba(255, 255, 255, .82) !important;
    background-image: none !important;
    border: 1px solid rgba(255, 255, 255, .96) !important;
    border-radius: 16px !important;
    box-shadow: var(--surface-shadow), inset 0 1px 0 rgba(255, 255, 255, .98) !important;
    -webkit-backdrop-filter: saturate(125%) blur(20px) !important;
    backdrop-filter: saturate(125%) blur(20px) !important;
}

body.site-auth .wrap h3 {
    color: var(--surface-ink) !important;
    font-size: 26px !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
}

body.site-auth .hint,
body.site-auth .footer-link {
    color: var(--surface-muted) !important;
    line-height: 1.7 !important;
}

body.site-auth .hint a,
body.site-auth .footer-link a {
    color: var(--surface-blue) !important;
    font-weight: 750 !important;
}

body.site-auth .switch-bar {
    gap: 4px !important;
    margin-bottom: 14px !important;
    padding: 4px !important;
    background: rgba(239, 244, 249, .78) !important;
    border: 1px solid var(--surface-line-soft) !important;
    border-radius: 12px !important;
}

body.site-auth .switch-btn {
    min-height: 38px !important;
    padding: 8px 10px !important;
    color: var(--surface-muted) !important;
    background: transparent !important;
    background-image: none !important;
    border: 1px solid transparent !important;
    border-radius: 9px !important;
    box-shadow: none !important;
    font-size: 13px !important;
}

body.site-auth .switch-btn:hover {
    color: var(--surface-blue) !important;
    background: rgba(255, 255, 255, .72) !important;
    transform: none !important;
}

body.site-auth .switch-btn.active {
    color: #fff !important;
    background: var(--surface-blue) !important;
    background-image: none !important;
    border-color: var(--surface-blue) !important;
    box-shadow: 0 7px 16px var(--surface-blue-soft) !important;
}

body.site-auth .form-group > label,
body.site-auth .section-title {
    color: var(--surface-ink) !important;
    font-weight: 750 !important;
}

body.site-auth .form-control,
body.site-auth input,
body.site-auth select {
    min-height: 46px !important;
    color: var(--surface-ink) !important;
    background: rgba(255, 255, 255, .72) !important;
    background-image: none !important;
    border: 1px solid var(--surface-line-soft) !important;
    border-radius: 11px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .94) !important;
}

body.site-auth .form-control:focus,
body.site-auth input:focus,
body.site-auth select:focus {
    border-color: var(--surface-blue-line) !important;
    box-shadow: 0 0 0 4px var(--surface-blue-soft), inset 0 1px 0 rgba(255, 255, 255, .96) !important;
}

body.site-auth .btn.btn-primary,
body.site-auth button.btn-primary,
body.site-auth button[type="submit"],
body.site-auth input[type="submit"] {
    min-height: 46px !important;
    color: #fff !important;
    background: var(--surface-blue) !important;
    background-image: none !important;
    border: 1px solid var(--surface-blue) !important;
    border-radius: 11px !important;
    box-shadow: 0 10px 20px var(--surface-blue-soft) !important;
}

body.site-auth .btn.btn-outline-primary,
body.site-auth button.btn-outline-primary {
    color: var(--surface-blue) !important;
    background: rgba(255, 255, 255, .58) !important;
    background-image: none !important;
    border: 1px solid var(--surface-blue-line) !important;
    border-radius: 11px !important;
    box-shadow: none !important;
}

body.site-auth .alert {
    border-radius: 11px !important;
    border: 1px solid currentColor !important;
    box-shadow: none !important;
}

body.site-auth .code-row {
    gap: 8px !important;
}

/* Order lookup: short form, readable result cards and compact dialogs. */
body.site-query {
    min-height: 100vh !important;
    padding: 30px 16px 54px !important;
}

body.site-query .app-view {
    width: min(100%, 640px) !important;
}

body.site-query .section-box,
body.site-query .help-card,
body.site-query .order-card,
body.site-query .notice-card,
body.site-query .pop-box,
body.site-query .pop-box-card {
    background: rgba(255, 255, 255, .82) !important;
    background-image: none !important;
    border: 1px solid rgba(255, 255, 255, .96) !important;
    box-shadow: var(--surface-shadow) !important;
    -webkit-backdrop-filter: saturate(125%) blur(18px) !important;
    backdrop-filter: saturate(125%) blur(18px) !important;
}

body.site-query .section-box {
    padding: 20px !important;
    margin-bottom: 14px !important;
    border-radius: 14px !important;
}

body.site-query .help-card {
    padding: 15px 17px !important;
    margin-bottom: 14px !important;
    border-radius: 12px !important;
    color: var(--surface-muted) !important;
}

body.site-query .section-title {
    color: var(--surface-ink) !important;
    padding-left: 0 !important;
    margin-bottom: 11px !important;
}

body.site-query .input-u {
    min-height: 46px !important;
    margin-bottom: 12px !important;
    padding: 12px 14px !important;
    color: var(--surface-ink) !important;
    background: rgba(255, 255, 255, .70) !important;
    background-image: none !important;
    border: 1px solid var(--surface-line-soft) !important;
    border-radius: 11px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .94) !important;
}

body.site-query .input-u:focus {
    border-color: var(--surface-blue-line) !important;
    box-shadow: 0 0 0 4px var(--surface-blue-soft), inset 0 1px 0 rgba(255, 255, 255, .96) !important;
}

body.site-query .btn-main,
body.site-query .n-btn {
    min-height: 46px !important;
    height: auto !important;
    padding: 11px 15px !important;
    color: #fff !important;
    background: var(--surface-blue) !important;
    background-image: none !important;
    border: 1px solid var(--surface-blue) !important;
    border-radius: 11px !important;
    box-shadow: 0 10px 20px var(--surface-blue-soft) !important;
}

body.site-query .btn-main.btn-sub {
    color: var(--surface-muted) !important;
    background: rgba(239, 244, 249, .78) !important;
    background-image: none !important;
    border-color: var(--surface-line-soft) !important;
    box-shadow: none !important;
}

body.site-query .order-card {
    padding: 18px !important;
    margin-bottom: 12px !important;
    border-radius: 13px !important;
}

body.site-query .order-card .p-name {
    color: var(--surface-ink) !important;
    font-size: 15px !important;
}

body.site-query .order-card .p-meta,
body.site-query .notice-body {
    color: var(--surface-muted) !important;
}

body.site-query .card-display {
    background: rgba(244, 247, 251, .92) !important;
    background-image: none !important;
    color: var(--surface-blue) !important;
    border: 1px solid var(--surface-line-soft) !important;
    border-radius: 11px !important;
}

body.site-query .after-sales-display {
    background: rgba(239, 244, 249, .72) !important;
    background-image: none !important;
    border-color: var(--surface-line-soft) !important;
    border-radius: 11px !important;
}

body.site-query #noticeBox.active,
body.site-query .pop-mask.active {
    align-items: flex-start !important;
    padding: 14px !important;
    background: rgba(229, 236, 244, .42) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    backdrop-filter: blur(16px) !important;
}

body.site-query #noticeBox .notice-card {
    max-height: min(78vh, 560px) !important;
    margin: 0 auto !important;
    padding: 18px !important;
    border-radius: 16px !important;
}

body.site-query .pop-box,
body.site-query .pop-box-card {
    max-height: min(88vh, 680px) !important;
    padding: 20px !important;
    border-radius: 16px !important;
}

/* Lottery: a focused blue action surface without rainbow gradients. */
.lottery-shell {
    position: relative !important;
}

.lottery-top .lottery-back,
.lottery-top .lottery-user-link {
    color: var(--surface-muted) !important;
    background: rgba(255, 255, 255, .72) !important;
    background-image: none !important;
    border-color: var(--surface-line-soft) !important;
    box-shadow: 0 8px 20px rgba(34, 54, 74, .055) !important;
}

.lottery-top .lottery-back:hover,
.lottery-top .lottery-user-link:hover {
    color: var(--surface-blue) !important;
    border-color: var(--surface-blue-line) !important;
    transform: translateY(-1px) !important;
}

.lottery-panel {
    background: rgba(255, 255, 255, .82) !important;
    background-image: none !important;
    border-color: rgba(255, 255, 255, .96) !important;
    border-radius: 16px !important;
    box-shadow: var(--surface-shadow) !important;
    -webkit-backdrop-filter: saturate(125%) blur(18px) !important;
    backdrop-filter: saturate(125%) blur(18px) !important;
}

.lottery-main,
.lottery-stage {
    padding: 22px !important;
}

.lottery-kicker,
.lottery-stat strong,
.section-head h2,
.prize-item strong,
.history-item strong {
    color: var(--surface-ink) !important;
}

.lottery-kicker,
.result-card h3 {
    color: var(--surface-blue) !important;
}

.draw-box {
    background: var(--surface-blue-soft) !important;
    background-image: none !important;
    border: 1px solid var(--surface-blue-line) !important;
    color: var(--surface-ink) !important;
    border-radius: 14px !important;
}

.draw-box::before {
    border-color: var(--surface-blue-line) !important;
}

.reel-card {
    color: var(--surface-blue) !important;
    background: rgba(255, 255, 255, .78) !important;
    background-image: none !important;
    border-color: var(--surface-blue-line) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .96) !important;
}

.draw-button {
    min-height: 50px !important;
    color: #fff !important;
    background: var(--surface-blue) !important;
    background-image: none !important;
    border: 1px solid var(--surface-blue) !important;
    border-radius: 11px !important;
    box-shadow: 0 11px 22px var(--surface-blue-soft) !important;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease !important;
}

.draw-button:hover:not(:disabled) {
    transform: translateY(-2px) !important;
    box-shadow: 0 15px 26px var(--surface-blue-soft) !important;
}

.lottery-stat,
.prize-item,
.history-item,
.result-card {
    background: rgba(245, 248, 252, .80) !important;
    background-image: none !important;
    border-color: var(--surface-line-soft) !important;
    border-radius: 12px !important;
}

.result-card {
    background: var(--surface-blue-soft) !important;
    border-color: var(--surface-blue-line) !important;
}

/* Agent reputation page. */
body:not(.site-index) .ar-shell {
    width: min(100%, 1120px) !important;
    padding: 24px 16px 46px !important;
}

body:not(.site-index) .ar-title h1 {
    color: var(--surface-ink) !important;
    font-size: 30px !important;
}

body:not(.site-index) .ar-title p,
body:not(.site-index) .ar-message,
body:not(.site-index) .ar-proof-hint,
body:not(.site-index) .ar-profile p {
    color: var(--surface-muted) !important;
}

body:not(.site-index) .ar-back,
body:not(.site-index) .ar-card {
    background: rgba(255, 255, 255, .82) !important;
    background-image: none !important;
    border-color: rgba(255, 255, 255, .96) !important;
    box-shadow: var(--surface-shadow) !important;
    -webkit-backdrop-filter: saturate(125%) blur(18px) !important;
    backdrop-filter: saturate(125%) blur(18px) !important;
}

body:not(.site-index) .ar-card {
    border-radius: 16px !important;
}

body:not(.site-index) .ar-back,
body:not(.site-index) .ar-btn {
    border-radius: 11px !important;
}

body:not(.site-index) .ar-back {
    color: var(--surface-muted) !important;
}

body:not(.site-index) .ar-back:hover {
    color: var(--surface-blue) !important;
    border-color: var(--surface-blue-line) !important;
}

body:not(.site-index) .ar-card-head {
    border-bottom-color: var(--surface-line-soft) !important;
}

body:not(.site-index) .ar-agent,
body:not(.site-index) .ar-score,
body:not(.site-index) .ar-review {
    background: rgba(245, 248, 252, .72) !important;
    background-image: none !important;
    border-color: var(--surface-line-soft) !important;
}

body:not(.site-index) .ar-agent:hover,
body:not(.site-index) .ar-agent.active {
    background: var(--surface-blue-soft) !important;
    border-color: var(--surface-blue-line) !important;
}

body:not(.site-index) .ar-avatar {
    background: var(--surface-blue) !important;
    background-image: none !important;
}

body:not(.site-index) .ar-input,
body:not(.site-index) .ar-textarea {
    background: rgba(255, 255, 255, .72) !important;
    background-image: none !important;
    border-color: var(--surface-line-soft) !important;
    border-radius: 11px !important;
}

body:not(.site-index) .ar-rating label {
    border-radius: 10px !important;
    background: rgba(255, 255, 255, .58) !important;
    border-color: var(--surface-line-soft) !important;
}

body:not(.site-index) .ar-btn {
    color: #fff !important;
    background: var(--surface-blue) !important;
    background-image: none !important;
    box-shadow: 0 10px 20px var(--surface-blue-soft) !important;
}

/* Account center and recharge center use the same restrained content frame. */
body.site-center .wrap,
body.site-recharge .wrap {
    box-sizing: border-box !important;
    width: min(100%, 1080px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

body.site-center .hero,
body.site-center .stat,
body.site-center .order,
body.site-center .subsite-panel,
body.site-center .subsite-agent-panel,
body.site-center .subsite-agent-card,
body.site-recharge .wrap,
body.site-recharge .summary-box {
    background: rgba(255, 255, 255, .82) !important;
    background-image: none !important;
    border-color: rgba(255, 255, 255, .96) !important;
    box-shadow: var(--surface-shadow) !important;
    -webkit-backdrop-filter: saturate(125%) blur(18px) !important;
    backdrop-filter: saturate(125%) blur(18px) !important;
}

body.site-center .hero,
body.site-recharge .wrap {
    border-radius: 16px !important;
}

body.site-center .stat,
body.site-center .order,
body.site-center .subsite-panel,
body.site-center .subsite-agent-panel,
body.site-center .subsite-agent-card,
body.site-recharge .summary-box {
    border-radius: 12px !important;
}

body.site-center .detail-pop,
body.site-center .detail-summary,
body.site-center .detail-panel,
body.site-center .detail-section,
body.site-center .subsite-box,
body.site-center .subsite-settlement-card {
    background: rgba(255, 255, 255, .84) !important;
    background-image: none !important;
    border-color: var(--surface-line-soft) !important;
    border-radius: 14px !important;
    box-shadow: 0 12px 28px rgba(34, 54, 74, .06) !important;
}

body.site-center .card-info-box {
    background: #172334 !important;
    background-image: none !important;
    border-radius: 11px !important;
}

body.site-center .btnx,
body.site-recharge .btn.btn-primary {
    color: #fff !important;
    background: var(--surface-blue) !important;
    background-image: none !important;
    border-color: var(--surface-blue) !important;
    border-radius: 11px !important;
}

@media (max-width: 640px) {
    body.site-auth .wrap {
        width: calc(100% - 24px) !important;
        margin-top: 18px !important;
        padding: 21px 16px !important;
    }

    body.site-auth .switch-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    body.site-query {
        padding: 18px 11px 36px !important;
    }

    body.site-query .section-box {
        padding: 16px !important;
    }

    .lottery-shell {
        width: calc(100% - 18px) !important;
    }

    .lottery-top {
        align-items: stretch !important;
    }

    .lottery-top .lottery-back,
    .lottery-top .lottery-user-link {
        min-width: 0 !important;
        flex: 1 1 0 !important;
        padding: 0 10px !important;
        font-size: 12px !important;
    }

    .lottery-main,
    .lottery-stage {
        padding: 16px !important;
    }

    body:not(.site-index) .ar-shell {
        padding: 18px 11px 34px !important;
    }

    body:not(.site-index) .ar-top {
        gap: 10px !important;
    }

    body:not(.site-index) .ar-title h1 {
        font-size: 24px !important;
    }

    body:not(.site-index) .ar-title p {
        font-size: 12px !important;
    }

    body.site-center .hero,
    body.site-recharge .wrap {
        padding: 18px 14px !important;
    }

    body.site-center .stats {
        gap: 9px !important;
    }
}

/* Daily claim row: keep the claim action and displayed amount in one compact
   right-hand group instead of separating them across three visual rows. */
@media (max-width: 640px) {
    body.site-index .ins-grid .product-card.ins-card:has(.free-claim-btn) {
        height: 82px !important;
        min-height: 82px !important;
    }

    body.site-index .ins-grid .product-card.ins-card:has(.free-claim-btn) .ins-card-body {
        height: 82px !important;
        min-height: 82px !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        grid-template-rows: 1fr 1fr !important;
        align-items: center !important;
        column-gap: 10px !important;
        padding: 8px 10px !important;
    }

    body.site-index .ins-grid .product-card.ins-card:has(.free-claim-btn) .p-name {
        grid-column: 1 !important;
        grid-row: 1 !important;
        align-self: center !important;
        min-width: 0 !important;
        font-size: 12px !important;
        line-height: 1.2 !important;
    }

    body.site-index .ins-grid .product-card.ins-card:has(.free-claim-btn) .p-price {
        grid-column: 2 !important;
        grid-row: 1 !important;
        align-self: center !important;
        justify-self: end !important;
        margin: 0 !important;
        font-size: 14px !important;
        line-height: 1 !important;
        color: #526176 !important;
    }

    body.site-index .ins-grid .product-card.ins-card:has(.free-claim-btn) .free-claim-btn {
        grid-column: 2 !important;
        grid-row: 2 !important;
        justify-self: end !important;
        align-self: center !important;
        width: auto !important;
        min-width: 81px !important;
        height: 24px !important;
        min-height: 24px !important;
        margin: 3px 0 0 !important;
        padding: 0 8px !important;
        font-size: 9px !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    body.site-index .ins-grid .product-card.ins-card:has(.free-claim-btn) .ins-card-footline,
    body.site-index .ins-grid .product-card.ins-card:has(.free-claim-btn) .ins-card-meta {
        grid-column: 1 !important;
        grid-row: 2 !important;
        align-self: start !important;
        margin-top: 4px !important;
    }
}

/* Order dialogs sit at the visual center and blur the page behind them. */
body.site-order #noticeBox.overlay.active,
body.site-order #noticeBox.pop-mask.active,
body.site-order #customAlert.overlay.active,
body.site-order #expiredAgentPrompt.overlay.active,
body.site-order #balancePrompt.overlay.active {
    position: fixed !important;
    inset: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: max(16px, env(safe-area-inset-top, 16px)) 14px max(16px, env(safe-area-inset-bottom, 16px)) !important;
    background: rgba(24, 38, 55, .22) !important;
    -webkit-backdrop-filter: saturate(125%) blur(14px) !important;
    backdrop-filter: saturate(125%) blur(14px) !important;
    pointer-events: auto !important;
}

body.site-order #noticeBox.overlay.active .alert-box,
body.site-order #noticeBox.pop-mask.active .notice-card,
body.site-order #customAlert.overlay.active .alert-box,
body.site-order #expiredAgentPrompt.overlay.active .alert-box,
body.site-order #balancePrompt.overlay.active .alert-box {
    width: min(460px, calc(100vw - 32px)) !important;
    max-width: min(460px, calc(100vw - 32px)) !important;
    max-height: min(72dvh, 560px) !important;
    margin: 0 !important;
    background: rgba(255, 255, 255, .92) !important;
    border: 1px solid rgba(255, 255, 255, .95) !important;
    border-radius: 22px !important;
    box-shadow: 0 24px 64px rgba(15, 23, 42, .22), inset 0 1px 0 rgba(255, 255, 255, .96) !important;
    -webkit-backdrop-filter: saturate(135%) blur(20px) !important;
    backdrop-filter: saturate(135%) blur(20px) !important;
}

body.site-order #customAlert.overlay.active .alert-box {
    display: flex !important;
    flex-direction: column !important;
}

body.site-order #customAlert.overlay.active .alert-btn {
    align-self: stretch !important;
    width: 100% !important;
}

body.site-order #noticeBox.overlay.active .alert-btn,
body.site-order #noticeBox.pop-mask.active .n-btn {
    width: 100% !important;
}

@media (max-width: 640px) {
    body.site-order #noticeBox.overlay.active .alert-box,
    body.site-order #noticeBox.pop-mask.active .notice-card,
    body.site-order #customAlert.overlay.active .alert-box,
    body.site-order #expiredAgentPrompt.overlay.active .alert-box,
    body.site-order #balancePrompt.overlay.active .alert-box {
        width: min(348px, calc(100vw - 32px)) !important;
        max-width: min(348px, calc(100vw - 32px)) !important;
        max-height: min(70dvh, 540px) !important;
        padding: 18px !important;
        border-radius: 20px !important;
    }
}

/* Shared front workbench for personal, agent and authorizer centers. */
body.site-center,
body.site-recharge {
    --work-accent: var(--subsite-accent, #2563eb);
    --work-strong: var(--subsite-accent-strong, #1d4ed8);
    --work-surface: rgba(255, 255, 255, .82);
    background: #f3f6fb !important;
}

body.site-center .wrap,
body.site-recharge .wrap {
    width: min(100% - 32px, 1040px) !important;
    margin: 0 auto !important;
    padding: 28px 0 56px !important;
}

body.site-center .hero {
    position: relative !important;
    overflow: hidden !important;
    padding: 26px 28px !important;
    border: 1px solid rgba(148, 163, 184, .20) !important;
    border-radius: 22px !important;
    background: var(--work-surface) !important;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .08) !important;
}

body.site-center .hero::after {
    content: "" !important;
    position: absolute !important;
    width: 190px !important;
    height: 190px !important;
    right: -78px !important;
    top: -90px !important;
    border-radius: 50% !important;
    background: color-mix(in srgb, var(--work-accent) 12%, transparent) !important;
    pointer-events: none !important;
}

body.site-center .hero > * { position: relative !important; z-index: 1 !important; }
body.site-center .hero h3 {
    margin: 0 0 8px !important;
    color: #142033 !important;
    font-size: clamp(22px, 3vw, 30px) !important;
    letter-spacing: -.02em !important;
}
body.site-center .hero .muted { color: #64748b !important; font-size: 13px !important; line-height: 1.55 !important; }
body.site-center .hero .btnx,
body.site-center .hero .btn-outline-secondary {
    min-height: 40px !important;
    padding: 0 15px !important;
    border-radius: 12px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
}
body.site-center .hero .btnx { background: var(--work-accent) !important; box-shadow: 0 9px 20px color-mix(in srgb, var(--work-accent) 22%, transparent) !important; }

body.site-center .stats {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 12px !important;
    margin: 16px 0 !important;
}
body.site-center .stat {
    min-width: 0 !important;
    padding: 17px !important;
    border: 1px solid rgba(148, 163, 184, .20) !important;
    border-radius: 16px !important;
    background: var(--work-surface) !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .05) !important;
}
body.site-center .stat .muted { color: #64748b !important; font-size: 12px !important; font-weight: 700 !important; }
body.site-center .stat .h3 { margin: 7px 0 0 !important; color: #142033 !important; font-size: 22px !important; font-variant-numeric: tabular-nums !important; }

body.site-center .tabbar {
    display: flex !important;
    gap: 6px !important;
    margin: 16px 0 18px !important;
    padding: 5px !important;
    overflow-x: auto !important;
    border: 1px solid rgba(148, 163, 184, .20) !important;
    border-radius: 15px !important;
    background: rgba(255, 255, 255, .70) !important;
}
body.site-center .tabx {
    flex: 0 0 auto !important;
    min-height: 34px !important;
    padding: 0 13px !important;
    border-radius: 10px !important;
    color: #64748b !important;
    font-size: 12px !important;
    font-weight: 800 !important;
}
body.site-center .tabx.active { color: #fff !important; background: var(--work-accent) !important; }
body.site-center > .wrap > h5 { margin: 0 0 10px !important; color: #142033 !important; font-size: 16px !important; }

body.site-center .order {
    margin: 10px 0 !important;
    padding: 16px !important;
    border: 1px solid rgba(148, 163, 184, .18) !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, .84) !important;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .04) !important;
}
body.site-center .order-top .font-weight-bold { color: #172033 !important; font-size: 14px !important; }
body.site-center .order-top .text-right > .font-weight-bold { color: var(--work-strong) !important; font-size: 17px !important; font-variant-numeric: tabular-nums !important; }
body.site-center .order .muted { color: #718096 !important; font-size: 11px !important; }
body.site-center .order-actions { display: flex !important; flex-wrap: wrap !important; gap: 7px !important; margin-top: 12px !important; }
body.site-center .order-actions .btn { border-radius: 9px !important; font-size: 11px !important; font-weight: 800 !important; }

body.site-center .subsite-panel,
body.site-center .subsite-agent-panel {
    margin: 16px 0 !important;
    padding: 20px !important;
    border: 1px solid rgba(148, 163, 184, .18) !important;
    border-radius: 20px !important;
    background: rgba(255, 255, 255, .78) !important;
    box-shadow: 0 14px 32px rgba(15, 23, 42, .06) !important;
}
body.site-center .subsite-panel h5,
body.site-center .subsite-agent-panel h6 { color: #172033 !important; font-size: 16px !important; }
body.site-center .subsite-panel .muted,
body.site-center .subsite-agent-panel .muted,
body.site-center .subsite-tip { color: #6b7b90 !important; font-size: 12px !important; line-height: 1.6 !important; }
body.site-center .subsite-grid { gap: 10px !important; }
body.site-center .subsite-box { padding: 13px !important; border-radius: 13px !important; background: rgba(248, 250, 252, .92) !important; }
body.site-center .subsite-label { color: #718096 !important; font-size: 11px !important; font-weight: 800 !important; }
body.site-center .subsite-value { color: #172033 !important; font-size: 17px !important; font-weight: 850 !important; }

/* Recharge is a focused action surface, not a second dashboard. */
body.site-recharge .wrap {
    max-width: 760px !important;
    padding-top: 34px !important;
}
body.site-recharge .wrap > h3 { margin: 0 0 14px !important; color: #142033 !important; font-size: 25px !important; letter-spacing: -.02em !important; }
body.site-recharge .identity-bar {
    margin-bottom: 15px !important;
    padding: 13px 15px !important;
    border: 1px solid color-mix(in srgb, var(--work-accent) 18%, transparent) !important;
    border-radius: 13px !important;
    background: color-mix(in srgb, var(--work-accent) 7%, white) !important;
    color: #43536a !important;
    font-size: 12px !important;
    line-height: 1.6 !important;
}
body.site-recharge .summary { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; margin: 0 0 18px !important; }
body.site-recharge .summary-box {
    min-width: 0 !important;
    padding: 14px !important;
    border: 1px solid rgba(148, 163, 184, .18) !important;
    border-radius: 15px !important;
    background: rgba(255, 255, 255, .82) !important;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .04) !important;
}
body.site-recharge .summary-box .k { color: #718096 !important; font-size: 11px !important; letter-spacing: .03em !important; }
body.site-recharge .summary-box .v { margin-top: 6px !important; color: #172033 !important; font-size: 18px !important; line-height: 1.4 !important; }
body.site-recharge form {
    padding: 20px !important;
    border: 1px solid rgba(148, 163, 184, .18) !important;
    border-radius: 18px !important;
    background: rgba(255, 255, 255, .84) !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .05) !important;
}
body.site-recharge .form-group { margin-bottom: 14px !important; }
body.site-recharge label { color: #334155 !important; font-size: 12px !important; font-weight: 800 !important; }
body.site-recharge .form-control { height: 44px !important; border: 1px solid rgba(148, 163, 184, .26) !important; border-radius: 11px !important; color: #172033 !important; font-size: 13px !important; }
body.site-recharge form .btn-primary { min-height: 45px !important; border: 0 !important; border-radius: 11px !important; background: var(--work-accent) !important; box-shadow: 0 10px 20px color-mix(in srgb, var(--work-accent) 22%, transparent) !important; font-size: 14px !important; font-weight: 850 !important; }
body.site-recharge .wrap > .mt-3 .btn { min-height: 40px !important; border-radius: 11px !important; font-size: 12px !important; font-weight: 800 !important; }

/* Lottery: make the draw action the focus, with lighter supporting panels. */
body.site-lottery {
    --lottery-ink: #172033;
    background: #f3f6fb !important;
}
body.site-lottery .lottery-shell { padding: 20px 0 44px !important; }
body.site-lottery .lottery-panel { border: 1px solid rgba(148, 163, 184, .18) !important; border-radius: 18px !important; background: rgba(255,255,255,.84) !important; box-shadow: 0 14px 34px rgba(15,23,42,.07) !important; }
body.site-lottery .lottery-main { min-height: 360px !important; padding: 26px !important; }
body.site-lottery h1 { margin: 14px 0 10px !important; color: var(--lottery-ink) !important; font-size: clamp(36px, 6vw, 62px) !important; letter-spacing: -.04em !important; }
body.site-lottery .lottery-desc { color: #526176 !important; font-size: 14px !important; line-height: 1.7 !important; }
body.site-lottery .lottery-stats { gap: 9px !important; margin-top: 20px !important; }
body.site-lottery .lottery-stat { padding: 13px !important; border: 1px solid rgba(148,163,184,.18) !important; border-radius: 13px !important; background: #f8fafc !important; }
body.site-lottery .lottery-stat span { color: #718096 !important; font-size: 11px !important; }
body.site-lottery .lottery-stat strong { margin-top: 6px !important; color: var(--lottery-ink) !important; font-size: 20px !important; }
body.site-lottery .lottery-stage { padding: 18px !important; gap: 12px !important; }
body.site-lottery .draw-box { min-height: 210px !important; border-radius: 16px !important; padding: 18px !important; }
body.site-lottery .draw-button { min-height: 50px !important; border-radius: 12px !important; font-size: 15px !important; box-shadow: 0 11px 22px rgba(var(--lottery-rgb), .20) !important; }
body.site-lottery .draw-message { color: #66768a !important; font-size: 12px !important; }
body.site-lottery .section-head { padding: 14px 16px !important; }
body.site-lottery .section-head h2 { color: var(--lottery-ink) !important; font-size: 15px !important; }
body.site-lottery .prize-list { padding: 12px !important; gap: 9px !important; }
body.site-lottery .prize-item,
body.site-lottery .history-item { padding: 12px !important; border-radius: 12px !important; border: 1px solid rgba(148,163,184,.18) !important; background: #f8fafc !important; }

@media (max-width: 640px) {
    body.site-center .wrap,
    body.site-recharge .wrap { width: min(100% - 20px, 680px) !important; padding: 14px 0 32px !important; }
    body.site-center .hero { padding: 20px 18px !important; border-radius: 18px !important; }
    body.site-center .hero > .d-flex { display: block !important; }
    body.site-center .hero .d-flex:last-child { display: flex !important; margin-top: 15px !important; }
    body.site-center .hero .d-flex:last-child > * { flex: 1 1 0 !important; }
    body.site-center .stats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 9px !important; }
    body.site-center .stat { padding: 13px !important; }
    body.site-center .stat .h3 { font-size: 19px !important; }
    body.site-center .subsite-panel,
    body.site-center .subsite-agent-panel { padding: 15px !important; border-radius: 16px !important; }
    body.site-center .subsite-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    body.site-center .order { padding: 13px !important; }
    body.site-center .order-top { gap: 10px !important; }
    body.site-recharge .summary { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    body.site-recharge .summary-box { padding: 12px !important; }
    body.site-recharge .summary-box .v { font-size: 16px !important; }
    body.site-recharge form { padding: 15px !important; border-radius: 16px !important; }
    body.site-lottery .lottery-shell { width: min(100% - 20px, 720px) !important; padding-top: 12px !important; }
    body.site-lottery .lottery-top { margin-bottom: 12px !important; }
    body.site-lottery .lottery-back,
    body.site-lottery .lottery-user-link { min-height: 35px !important; padding: 0 11px !important; border-radius: 10px !important; font-size: 12px !important; }
    body.site-lottery .lottery-main { padding: 20px !important; }
    body.site-lottery h1 { font-size: 40px !important; }
    body.site-lottery .lottery-stats { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
    body.site-lottery .lottery-stat { padding: 10px 8px !important; }
    body.site-lottery .lottery-stat strong { font-size: 17px !important; }
    body.site-lottery .draw-box { min-height: 190px !important; }
}

/* Final homepage authority: product anchors are catalog rows, not floating cards. */
body.site-main.site-index .product-card.ins-card,
body.site-subsite.site-index .product-card.ins-card,
body.site-main.site-index .ins-subgroup-row .product-card.ins-card,
body.site-subsite.site-index .ins-subgroup-row .product-card.ins-card {
    border: 0 !important;
    border-bottom: 1px solid rgba(104, 127, 150, .16) !important;
    border-radius: 0 !important;
    background: rgba(255, 255, 255, .30) !important;
    background-image: none !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

body.site-main.site-index .product-card.ins-card:hover,
body.site-subsite.site-index .product-card.ins-card:hover,
body.site-main.site-index .ins-subgroup-row .product-card.ins-card:hover,
body.site-subsite.site-index .ins-subgroup-row .product-card.ins-card:hover {
    border-bottom-color: var(--surface-blue-line) !important;
    background: rgba(255, 255, 255, .66) !important;
    box-shadow: none !important;
    transform: translateY(-1px) !important;
}

/* Mobile catalog redesign: compact horizontal product rows instead of square cards. */
@media (max-width: 640px) {
    body.site-index .app-container.ins-shell {
        width: 100% !important;
        max-width: none !important;
        padding: 8px 10px 32px !important;
    }

    body.site-index .store-bar {
        top: 6px !important;
        min-height: 46px !important;
        padding: 6px 9px !important;
        border-radius: 14px !important;
    }

    body.site-index .store-brand-mark {
        width: 30px !important;
        height: 30px !important;
        flex-basis: 30px !important;
        border-radius: 9px !important;
    }

    body.site-index .store-brand-copy strong {
        max-width: 42vw !important;
        font-size: 12px !important;
    }

    body.site-index .store-brand-copy small {
        font-size: 10px !important;
    }

    body.site-index .store-nav {
        gap: 3px !important;
    }

    body.site-index .store-nav-link {
        min-height: 34px !important;
        padding: 0 8px !important;
        border-radius: 9px !important;
        font-size: 11px !important;
    }

    body.site-index .ins-toolbar {
        margin: 11px 0 13px !important;
        padding: 5px !important;
        border-radius: 14px !important;
    }

    body.site-index .ins-tabs {
        grid-template-rows: repeat(2, 32px) !important;
        grid-auto-columns: minmax(108px, 1fr) !important;
        gap: 3px !important;
    }

    body.site-index .ins-tab {
        min-height: 32px !important;
        padding: 0 8px !important;
        border-radius: 8px !important;
        font-size: 10px !important;
    }

    body.site-index .ins-section {
        margin: 0 0 15px !important;
    }

    body.site-index .ins-section-head {
        margin: 0 2px 5px !important;
        padding-bottom: 5px !important;
    }

    body.site-index .ins-section-title {
        font-size: 14px !important;
        line-height: 1.25 !important;
    }

    body.site-index .ins-section-meta {
        font-size: 10px !important;
    }

    body.site-index .ins-subgroup-list {
        gap: 12px !important;
    }

    body.site-index .ins-subgroup-row {
        padding: 0 !important;
        margin: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    body.site-index .ins-subgroup-label,
    body.site-index .ins-subgroup-label.is-default {
        display: flex !important;
        width: 100% !important;
        min-height: 0 !important;
        margin: 0 0 4px !important;
        padding: 2px 0 3px 8px !important;
        border-left-width: 2px !important;
        font-size: 11px !important;
        line-height: 1.25 !important;
    }

    body.site-index .ins-grid,
    body.site-index .ins-subgroup-row .ins-grid {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 0 !important;
        margin: 0 !important;
    }

    body.site-index .product-card.ins-card,
    body.site-index .ins-subgroup-row .product-card.ins-card,
    body.site-index.site-mobile-lite .product-card.ins-card,
    body.site-index.site-mobile-lite .ins-subgroup-row .product-card.ins-card {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        width: 100% !important;
        min-height: 0 !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-bottom: 1px solid rgba(104, 127, 150, .15) !important;
        border-radius: 0 !important;
        background: rgba(255, 255, 255, .34) !important;
        background-image: none !important;
        box-shadow: none !important;
        overflow: visible !important;
        transform: none !important;
    }

    body.site-index .product-card.ins-card:active,
    body.site-index .product-card.ins-card:hover,
    body.site-index.site-mobile-lite .product-card.ins-card:hover {
        background: rgba(255, 255, 255, .62) !important;
        border-bottom-color: var(--surface-blue-line) !important;
        transform: none !important;
    }

    body.site-index .ins-card-top,
    body.site-index .ins-card-icon,
    body.site-index .ins-card-code,
    body.site-index .ins-card-arrow,
    body.site-index .p-daily,
    body.site-index .p-tip {
        display: none !important;
    }

    body.site-index .ins-card-body,
    body.site-index.site-mobile-lite .ins-card-body {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        grid-template-rows: auto auto !important;
        align-items: center !important;
        min-width: 0 !important;
        min-height: 0 !important;
        padding: 8px 8px 7px 3px !important;
    }

    body.site-index .ins-card-lite .ins-card-body {
        grid-column: 1 / -1 !important;
        padding-right: 8px !important;
    }

    body.site-index .ins-card .p-name,
    body.site-index.site-mobile-lite .ins-card .p-name {
        grid-column: 1 !important;
        grid-row: 1 !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding-right: 8px !important;
        color: var(--surface-ink) !important;
        font-size: 12px !important;
        font-weight: 650 !important;
        line-height: 1.3 !important;
        text-align: left !important;
        overflow: hidden !important;
        display: -webkit-box !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 2 !important;
    }

    body.site-index .ins-card .p-price,
    body.site-index.site-mobile-lite .ins-card .p-price {
        grid-column: 2 !important;
        grid-row: 1 !important;
        margin: 0 !important;
        color: var(--surface-blue) !important;
        font-size: 17px !important;
        font-weight: 800 !important;
        line-height: 1.2 !important;
        text-align: right !important;
        white-space: nowrap !important;
    }

    body.site-index .ins-card .p-price small {
        font-size: 10px !important;
    }

    body.site-index .promo-original {
        display: block !important;
        margin: 2px 0 0 !important;
        font-size: 9px !important;
        line-height: 1 !important;
    }

    body.site-index .ins-card-meta,
    body.site-index .ins-card-footline {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
        min-width: 0 !important;
        margin: 5px 0 0 !important;
    }

    body.site-index .p-stock {
        min-width: 0 !important;
        padding: 0 !important;
        color: var(--surface-faint) !important;
        background: transparent !important;
        border: 0 !important;
        font-size: 10px !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
    }

    body.site-index .ins-card-action {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 52px !important;
        min-height: 28px !important;
        padding: 0 9px !important;
        color: var(--surface-blue) !important;
        background: var(--surface-blue-soft) !important;
        border: 1px solid var(--surface-blue-line) !important;
        border-radius: 8px !important;
        box-shadow: none !important;
        font-size: 10px !important;
        font-weight: 750 !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    body.site-index .ins-card-foot {
        grid-column: 2 !important;
        grid-row: 1 / span 2 !important;
        align-self: center !important;
        min-height: 0 !important;
        padding: 0 8px 0 0 !important;
        background: transparent !important;
        border: 0 !important;
    }

    body.site-index .ins-card-foot .ins-card-action {
        min-width: 48px !important;
    }

    body.site-index .free-claim-btn {
        grid-column: 1 / -1 !important;
        grid-row: 3 !important;
        justify-self: start !important;
        min-height: 25px !important;
        margin: 5px 0 0 !important;
        padding: 0 8px !important;
        border-radius: 7px !important;
        font-size: 10px !important;
    }

    body.site-index .footer-section {
        padding: 20px 8px 6px !important;
        font-size: 10px !important;
    }
}

/* Homepage catalog pass: flatter product rows, two-line category rail and
   horizontal subgroup headings. */
body.site-index .ins-toolbar {
    min-height: 0 !important;
    margin: 18px 0 12px !important;
    padding: 7px !important;
    background: rgba(255, 255, 255, .54) !important;
    background-image: none !important;
    border: 1px solid rgba(255, 255, 255, .92) !important;
    border-radius: 17px !important;
    box-shadow: 0 14px 30px rgba(34, 54, 74, .08), inset 0 1px 0 rgba(255, 255, 255, .96) !important;
    -webkit-backdrop-filter: saturate(145%) blur(24px) !important;
    backdrop-filter: saturate(145%) blur(24px) !important;
}

body.site-index .ins-tabs {
    display: grid !important;
    grid-template-rows: repeat(2, 36px) !important;
    grid-auto-flow: column !important;
    grid-auto-columns: minmax(116px, 1fr) !important;
    grid-template-columns: none !important;
    gap: 5px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 0 !important;
}

body.site-index .ins-tab {
    width: 100% !important;
    min-height: 36px !important;
    padding: 0 11px !important;
    color: var(--surface-muted) !important;
    background: rgba(255, 255, 255, .34) !important;
    background-image: none !important;
    border: 1px solid transparent !important;
    border-radius: 10px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .48) !important;
}

body.site-index .ins-tab:hover,
body.site-index .ins-tab.is-special {
    color: var(--surface-blue) !important;
    background: var(--surface-blue-soft) !important;
    background-image: none !important;
    border-color: var(--surface-blue-line) !important;
    box-shadow: none !important;
}

body.site-index .ins-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: 0 14px !important;
}

body.site-index .ins-card,
body.site-index .ins-subgroup-row .product-card {
    border: 0 !important;
    border-bottom: 1px solid rgba(104, 127, 150, .16) !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, .30) !important;
    background-image: none !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

body.site-index .ins-card:hover,
body.site-index .ins-subgroup-row .product-card:hover {
    transform: translateY(-1px) !important;
    border-color: transparent !important;
    border-bottom-color: var(--surface-blue-line) !important;
    background: rgba(255, 255, 255, .66) !important;
    box-shadow: none !important;
}

body.site-index .ins-card-body {
    padding: 13px 9px 10px !important;
}

body.site-index .ins-card .p-name {
    min-height: 34px !important;
    font-size: 13px !important;
}

body.site-index .ins-card .p-price {
    margin: 8px 0 7px !important;
    font-size: 21px !important;
}

body.site-index .ins-card-foot {
    min-height: 34px !important;
    padding: 5px 9px 8px !important;
    background: transparent !important;
    border-top: 0 !important;
}

body.site-index .ins-card-action {
    min-height: 24px !important;
    padding: 0 !important;
    color: var(--surface-blue) !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-size: 11px !important;
}

body.site-index .ins-card-arrow {
    display: none !important;
}

body.site-index .ins-subgroup-list {
    gap: 17px !important;
}

body.site-index .ins-subgroup-row {
    display: block !important;
    grid-template-columns: none !important;
    padding-top: 1px !important;
}

body.site-index .ins-subgroup-label,
body.site-index .ins-subgroup-label.is-default {
    display: inline-flex !important;
    align-items: center !important;
    width: auto !important;
    min-height: 0 !important;
    margin: 0 0 8px 1px !important;
    padding: 2px 0 2px 10px !important;
    color: var(--surface-blue) !important;
    background: transparent !important;
    border: 0 !important;
    border-left: 1px solid var(--surface-blue) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    writing-mode: horizontal-tb !important;
}

body.site-index .ins-subgroup-label.is-default {
    color: var(--surface-muted) !important;
    border-left-color: rgba(104, 127, 150, .36) !important;
}

body.site-index .ins-subgroup-row .ins-grid {
    width: 100% !important;
}

@media (max-width: 640px) {
    body.site-index .ins-tabs {
        grid-template-rows: repeat(2, 34px) !important;
        grid-auto-columns: minmax(102px, 1fr) !important;
        gap: 4px !important;
    }

    body.site-index .ins-tab {
        min-height: 34px !important;
        padding: 0 8px !important;
        font-size: 11px !important;
    }

    body.site-index .ins-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0 8px !important;
    }

    body.site-index .ins-card-body {
        padding: 11px 7px 8px !important;
    }

    body.site-index .ins-card-foot {
        padding: 4px 7px 7px !important;
    }
}

/* Page-theme tie break: liquid-ins.css has equally specific legacy selectors. */
body.site-main.site-auth .wrap,
body.site-subsite.site-auth .wrap {
    background: rgba(255, 255, 255, .82) !important;
    background-image: none !important;
    border: 1px solid rgba(255, 255, 255, .96) !important;
    border-radius: 16px !important;
    box-shadow: var(--surface-shadow), inset 0 1px 0 rgba(255, 255, 255, .98) !important;
}

body.site-main.site-auth .switch-btn,
body.site-subsite.site-auth .switch-btn,
body.site-main.site-auth .form-control,
body.site-subsite.site-auth .form-control,
body.site-main.site-auth .btn-outline-primary,
body.site-subsite.site-auth .btn-outline-primary {
    background: rgba(255, 255, 255, .64) !important;
    background-image: none !important;
    border: 1px solid var(--surface-line-soft) !important;
    border-radius: 10px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .94) !important;
}

body.site-main.site-auth .switch-btn.active,
body.site-subsite.site-auth .switch-btn.active,
body.site-main.site-auth .btn-primary,
body.site-subsite.site-auth .btn-primary {
    color: #fff !important;
    background: var(--surface-blue) !important;
    background-image: none !important;
    border-color: var(--surface-blue) !important;
    box-shadow: 0 10px 20px var(--surface-blue-soft) !important;
}

body.site-main.site-query .section-box,
body.site-subsite.site-query .section-box,
body.site-main.site-query .help-card,
body.site-subsite.site-query .help-card,
body.site-main.site-query .order-card,
body.site-subsite.site-query .order-card,
body.site-main.site-query .pop-box,
body.site-subsite.site-query .pop-box,
body.site-main.site-query .pop-box-card,
body.site-subsite.site-query .pop-box-card,
body.site-main.site-query .notice-card,
body.site-subsite.site-query .notice-card {
    background: rgba(255, 255, 255, .82) !important;
    background-image: none !important;
    border: 1px solid rgba(255, 255, 255, .96) !important;
    border-radius: 14px !important;
    box-shadow: var(--surface-shadow) !important;
}

body.site-main.site-query .input-u,
body.site-subsite.site-query .input-u,
body.site-main.site-query .btn-sub,
body.site-subsite.site-query .btn-sub {
    background: rgba(255, 255, 255, .70) !important;
    background-image: none !important;
    border: 1px solid var(--surface-line-soft) !important;
    border-radius: 11px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .94) !important;
}

body.site-main.site-query .btn-main,
body.site-subsite.site-query .btn-main,
body.site-main.site-query .n-btn,
body.site-subsite.site-query .n-btn {
    color: #fff !important;
    background: var(--surface-blue) !important;
    background-image: none !important;
    border-color: var(--surface-blue) !important;
    border-radius: 11px !important;
    box-shadow: 0 10px 20px var(--surface-blue-soft) !important;
}

body.site-main.site-order .header,
body.site-subsite.site-order .header,
body.site-main.site-order .product-card,
body.site-subsite.site-order .product-card,
body.site-main.site-order .promo-hints-container,
body.site-subsite.site-order .promo-hints-container,
body.site-main.site-order .pc-desc-scroll,
body.site-subsite.site-order .pc-desc-scroll,
body.site-main.site-order .input-group-custom,
body.site-subsite.site-order .input-group-custom,
body.site-main.site-order .pay-option,
body.site-subsite.site-order .pay-option,
body.site-main.site-order .alert-box,
body.site-subsite.site-order .alert-box,
body.site-main.site-order .bottom-nav,
body.site-subsite.site-order .bottom-nav {
    background: rgba(255, 255, 255, .82) !important;
    background-image: none !important;
    border-color: var(--surface-line-soft) !important;
    box-shadow: var(--surface-shadow) !important;
}

body.site-main.site-order .pay-option.active,
body.site-subsite.site-order .pay-option.active {
    background: var(--surface-blue-soft) !important;
    background-image: none !important;
    border-color: var(--surface-blue-line) !important;
    box-shadow: 0 10px 22px var(--surface-blue-soft) !important;
}

body.site-main.site-order .pc-btn-pay,
body.site-subsite.site-order .pc-btn-pay,
body.site-main.site-order .btn-pay,
body.site-subsite.site-order .btn-pay,
body.site-main.site-order .alert-btn,
body.site-subsite.site-order .alert-btn,
body.site-main.site-order .detail-inline-btn,
body.site-subsite.site-order .detail-inline-btn {
    color: #fff !important;
    background: var(--surface-blue) !important;
    background-image: none !important;
    border-color: var(--surface-blue) !important;
    box-shadow: 0 11px 22px var(--surface-blue-soft) !important;
}

/* Mobile catalog correction: give names a real reading column and make
   subgroup labels behave like compact section tags rather than empty bars. */
@media (max-width: 640px) {
    body.site-index .ins-grid,
    body.site-index .ins-subgroup-row .ins-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 0 !important;
    }

    body.site-index .product-card.ins-card,
    body.site-index .ins-subgroup-row .product-card.ins-card {
        grid-template-columns: minmax(0, 1fr) auto !important;
    }

    body.site-index .ins-card-body,
    body.site-index.site-mobile-lite .ins-card-body {
        width: 100% !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
    }

    body.site-index .ins-card .p-name,
    body.site-index.site-mobile-lite .ins-card .p-name {
        min-width: 0 !important;
        width: auto !important;
        max-width: none !important;
        display: block !important;
        white-space: nowrap !important;
        text-overflow: ellipsis !important;
        overflow: hidden !important;
        -webkit-line-clamp: unset !important;
        font-size: 11px !important;
        line-height: 1.35 !important;
    }

    /* Standard rows: a readable left information column and a fixed right
       price/action column keep each product easy to scan. */
    body.site-index .ins-grid:not(.ins-grid-compact) .ins-card-lite .ins-card-body {
        grid-template-columns: minmax(0, 1fr) 82px !important;
        grid-template-rows: auto auto !important;
        column-gap: 8px !important;
        padding: 7px 8px !important;
    }

    body.site-index .ins-grid:not(.ins-grid-compact) .ins-card-lite .p-name {
        grid-column: 1 !important;
        grid-row: 1 !important;
        align-self: end !important;
        padding-right: 0 !important;
    }

    body.site-index .ins-grid:not(.ins-grid-compact) .ins-card-lite .p-price {
        grid-column: 2 !important;
        grid-row: 1 / span 2 !important;
        align-self: start !important;
        min-height: 100% !important;
        padding-left: 8px !important;
        border-left: 1px solid rgba(104, 127, 150, .16) !important;
        font-size: 16px !important;
    }

    body.site-index .ins-grid:not(.ins-grid-compact) .ins-card-lite .ins-card-footline {
        display: contents !important;
    }

    body.site-index .ins-grid:not(.ins-grid-compact) .ins-card-lite .p-stock {
        grid-column: 1 !important;
        grid-row: 2 !important;
        margin-top: 4px !important;
    }

    body.site-index .ins-grid:not(.ins-grid-compact) .ins-card-lite .ins-card-action {
        grid-column: 2 !important;
        grid-row: 2 !important;
        justify-self: end !important;
        align-self: end !important;
        min-width: 50px !important;
        min-height: 23px !important;
        padding: 0 7px !important;
        font-size: 9px !important;
    }

    /* Keep the purchase affordance anchored to the card's right rail rather
       than drifting with the title or stock line. */
    body.site-index .ins-grid:not(.ins-grid-compact) .product-card.ins-card {
        grid-template-columns: minmax(0, 1fr) 68px !important;
        grid-template-rows: minmax(0, 1fr) !important;
        align-items: stretch !important;
    }

    body.site-index .ins-grid:not(.ins-grid-compact) .ins-card-lite .ins-card-body {
        grid-column: 1 !important;
        grid-row: 1 !important;
    }

    body.site-index .ins-grid:not(.ins-grid-compact) .ins-card-lite .ins-card-foot {
        grid-column: 2 !important;
        grid-row: 1 !important;
        align-self: center !important;
        justify-self: stretch !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: auto !important;
        padding: 0 7px !important;
    }

    body.site-index .ins-grid:not(.ins-grid-compact) .ins-card-lite .ins-card-action {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 25px !important;
        padding: 0 4px !important;
        font-size: 9px !important;
    }

    /* Short plans such as 天卡/周卡/年卡 use a dense three-up rail. */
    body.site-index .ins-grid.ins-grid-compact,
    body.site-index .ins-subgroup-row .ins-grid.ins-grid-compact {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 5px !important;
    }

    body.site-index .ins-grid.ins-grid-compact .product-card.ins-card {
        display: block !important;
        min-height: 58px !important;
        border: 1px solid rgba(104, 127, 150, .13) !important;
        border-radius: 8px !important;
        background: rgba(255, 255, 255, .48) !important;
    }

    body.site-index .ins-grid.ins-grid-compact .ins-card-body,
    body.site-index.site-mobile-lite .ins-grid.ins-grid-compact .ins-card-body {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        grid-template-rows: auto auto !important;
        width: 100% !important;
        min-height: 56px !important;
        padding: 6px !important;
    }

    body.site-index .ins-grid.ins-grid-compact .p-name {
        grid-column: 1 / -1 !important;
        grid-row: 1 !important;
        width: 100% !important;
        padding: 0 !important;
        font-size: 10px !important;
        font-weight: 750 !important;
        line-height: 1.1 !important;
        text-align: left !important;
    }

    body.site-index .ins-grid.ins-grid-compact .p-price {
        grid-column: 1 !important;
        grid-row: 2 !important;
        align-self: end !important;
        margin-top: 4px !important;
        font-size: 12px !important;
        line-height: 1 !important;
        text-align: left !important;
    }

    body.site-index .ins-grid.ins-grid-compact .p-price small {
        font-size: 8px !important;
    }

    body.site-index .ins-grid.ins-grid-compact .ins-card-footline {
        display: contents !important;
    }

    body.site-index .ins-grid.ins-grid-compact .p-stock {
        display: none !important;
    }

    body.site-index .ins-grid.ins-grid-compact .ins-card-action {
        grid-column: 2 !important;
        grid-row: 2 !important;
        justify-self: end !important;
        align-self: end !important;
        min-width: 38px !important;
        min-height: 20px !important;
        padding: 0 4px !important;
        border-radius: 6px !important;
        font-size: 8px !important;
    }

    body.site-index .ins-subgroup-list {
        gap: 7px !important;
    }

    body.site-index .ins-subgroup-row {
        padding-top: 0 !important;
    }

    body.site-index .ins-subgroup-label,
    body.site-index .ins-subgroup-label.is-default {
        display: inline-flex !important;
        width: max-content !important;
        max-width: 100% !important;
        min-height: 0 !important;
        margin: 3px 0 4px 1px !important;
        padding: 3px 8px !important;
        color: var(--surface-blue) !important;
        background: rgba(232, 242, 255, .72) !important;
        border: 1px solid var(--surface-blue-line) !important;
        border-left-width: 2px !important;
        border-radius: 7px !important;
        box-shadow: none !important;
        font-size: 10px !important;
        font-weight: 750 !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

body.site-index .ins-subgroup-label.is-default {
        color: var(--surface-muted) !important;
        background: rgba(255, 255, 255, .56) !important;
        border-color: rgba(104, 127, 150, .22) !important;
        border-left-color: rgba(104, 127, 150, .42) !important;
    }
}

/* Specificity tie-break for the legacy sparse-grid rules on the homepage. */
@media (max-width: 640px) {
    body.site-main.site-index .ins-grid:not(.ins-grid-compact),
    body.site-main.site-index .ins-subgroup-row .ins-grid:not(.ins-grid-compact),
    body.site-subsite.site-index .ins-grid:not(.ins-grid-compact),
    body.site-subsite.site-index .ins-subgroup-row .ins-grid:not(.ins-grid-compact),
    body.site-index:not(.site-subsite) .ins-grid:not(.ins-grid-compact),
    body.site-index:not(.site-subsite) .ins-subgroup-row .ins-grid:not(.ins-grid-compact) {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 0 !important;
    }
}

/* Mobile homepage refinement: keyword tiles and a compact reputation board. */
@media (max-width: 640px) {
    body.site-index .ins-toolbar {
        margin: 10px 0 12px !important;
        padding: 6px !important;
        border-radius: 14px !important;
    }

    body.site-index .ins-tabs {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        grid-template-rows: none !important;
        grid-auto-flow: row !important;
        grid-auto-columns: auto !important;
        gap: 5px !important;
        overflow: visible !important;
        padding: 0 !important;
    }

    body.site-index .ins-tab,
    body.site-index .ins-tab.is-special {
        min-width: 0 !important;
        width: 100% !important;
        min-height: 31px !important;
        max-width: none !important;
        padding: 0 4px !important;
        border: 1px solid rgba(255, 255, 255, .78) !important;
        border-radius: 9px !important;
        background: rgba(255, 255, 255, .60) !important;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .88), 0 3px 8px rgba(34, 54, 74, .045) !important;
        color: var(--surface-muted) !important;
        font-size: 10px !important;
        font-weight: 700 !important;
        line-height: 1 !important;
        text-align: center !important;
    }

    body.site-index .ins-tab:hover,
    body.site-index .ins-tab.is-special {
        color: var(--surface-blue) !important;
        background: var(--surface-blue-soft) !important;
        border-color: var(--surface-blue-line) !important;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8) !important;
    }

    body.site-index .ins-tab-label-short {
        display: block !important;
        max-width: 100% !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    body.site-index .agent-review-strip {
        display: block !important;
        margin: 10px 0 13px !important;
        padding: 10px !important;
        border: 1px solid rgba(255, 255, 255, .82) !important;
        border-radius: 14px !important;
        background: rgba(255, 255, 255, .48) !important;
        box-shadow: 0 8px 20px rgba(34, 54, 74, .055), inset 0 1px 0 rgba(255, 255, 255, .88) !important;
        -webkit-backdrop-filter: blur(18px) saturate(125%) !important;
        backdrop-filter: blur(18px) saturate(125%) !important;
    }

    body.site-index .agent-review-main {
        min-width: 0 !important;
    }

    body.site-index .agent-review-title {
        gap: 6px !important;
        margin: 0 0 8px !important;
        color: var(--surface-ink) !important;
        font-size: 13px !important;
        line-height: 1 !important;
    }

    body.site-index .agent-review-title i {
        color: var(--surface-blue) !important;
        font-size: 12px !important;
    }

    body.site-index .agent-review-title small {
        color: var(--surface-faint) !important;
        font-size: 10px !important;
        font-weight: 600 !important;
    }

    body.site-index .agent-review-list {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 5px !important;
        overflow: visible !important;
        padding: 0 !important;
    }

    body.site-index .agent-review-mini {
        display: grid !important;
        grid-template-columns: 15px 25px minmax(0, 1fr) !important;
        align-items: center !important;
        min-width: 0 !important;
        min-height: 45px !important;
        gap: 4px !important;
        padding: 5px 5px !important;
        border: 1px solid rgba(255, 255, 255, .8) !important;
        border-radius: 10px !important;
        background: rgba(255, 255, 255, .58) !important;
        color: var(--surface-ink) !important;
        box-shadow: none !important;
        font-size: 10px !important;
    }

    body.site-index .agent-review-mini:hover {
        border-color: var(--surface-blue-line) !important;
        background: rgba(255, 255, 255, .78) !important;
        transform: translateY(-1px) !important;
    }

    body.site-index .agent-review-rank {
        align-self: start !important;
        padding-top: 1px !important;
        color: var(--surface-faint) !important;
        font-size: 9px !important;
        font-weight: 800 !important;
        line-height: 1 !important;
    }

    body.site-index .agent-review-mini img,
    body.site-index .agent-review-avatar {
        width: 25px !important;
        height: 25px !important;
        border-radius: 8px !important;
        font-size: 11px !important;
    }

    body.site-index .agent-review-mini-copy {
        display: block !important;
        min-width: 0 !important;
    }

    body.site-index .agent-review-mini strong {
        display: block !important;
        max-width: 100% !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        color: var(--surface-ink) !important;
        font-size: 10px !important;
        line-height: 1.2 !important;
    }

    body.site-index .agent-review-mini-copy small {
        display: flex !important;
        align-items: center !important;
        gap: 3px !important;
        min-width: 0 !important;
        margin-top: 3px !important;
        line-height: 1 !important;
    }

    body.site-index .agent-review-mini-copy b {
        color: var(--surface-blue) !important;
        font-size: 10px !important;
    }

    body.site-index .agent-review-mini-copy em {
        overflow: hidden !important;
        color: var(--surface-faint) !important;
        font-size: 8px !important;
        font-style: normal !important;
        white-space: nowrap !important;
    }

    body.site-index .agent-review-link {
        display: flex !important;
        width: 100% !important;
        min-height: 29px !important;
        margin-top: 7px !important;
        padding: 0 8px !important;
        border: 1px solid var(--surface-blue-line) !important;
        border-radius: 8px !important;
        background: var(--surface-blue-soft) !important;
        color: var(--surface-blue) !important;
        box-shadow: none !important;
        font-size: 10px !important;
    }

    body.site-index .agent-review-link i {
        order: 2 !important;
        margin-left: 4px !important;
    }
}

/* Mobile reputation page: dense ranking grid with a clear detail column below. */
@media (max-width: 640px) {
    body:not(.site-index) .ar-shell {
        width: 100% !important;
        max-width: none !important;
        padding: 12px 10px 28px !important;
    }

    body:not(.site-index) .ar-top {
        flex-direction: row !important;
        align-items: center !important;
        gap: 8px !important;
        margin-bottom: 10px !important;
    }

    body:not(.site-index) .ar-title h1 {
        font-size: 20px !important;
        line-height: 1.1 !important;
    }

    body:not(.site-index) .ar-title p {
        display: none !important;
    }

    body:not(.site-index) .ar-back {
        flex: 0 0 auto !important;
        min-height: 32px !important;
        padding: 0 9px !important;
        border-radius: 9px !important;
        font-size: 11px !important;
        box-shadow: none !important;
    }

    body:not(.site-index) .ar-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }

    body:not(.site-index) .ar-card {
        border-radius: 13px !important;
        box-shadow: 0 7px 18px rgba(34, 54, 74, .055) !important;
    }

    body:not(.site-index) .ar-card-head {
        padding: 10px 11px !important;
    }

    body:not(.site-index) .ar-card-head h2 {
        font-size: 13px !important;
    }

    body:not(.site-index) .ar-list {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 5px !important;
        padding: 7px !important;
    }

    body:not(.site-index) .ar-agent {
        grid-template-columns: 29px minmax(0, 1fr) !important;
        gap: 6px !important;
        min-width: 0 !important;
        padding: 7px !important;
        border-radius: 9px !important;
        background: rgba(248, 250, 252, .78) !important;
        box-shadow: none !important;
    }

    body:not(.site-index) .ar-agent:hover {
        transform: none !important;
    }

    body:not(.site-index) .ar-avatar {
        width: 29px !important;
        height: 29px !important;
        font-size: 12px !important;
    }

    body:not(.site-index) .ar-agent-name {
        display: block !important;
        max-width: 100% !important;
        font-size: 11px !important;
        line-height: 1.2 !important;
    }

    body:not(.site-index) .ar-agent-meta {
        gap: 3px !important;
        margin-top: 4px !important;
        flex-wrap: nowrap !important;
        overflow: hidden !important;
    }

    body:not(.site-index) .ar-pill {
        min-width: 0 !important;
        padding: 2px 4px !important;
        border-radius: 5px !important;
        font-size: 8px !important;
        line-height: 1.1 !important;
        white-space: nowrap !important;
    }

    body:not(.site-index) .ar-agent-meta .ar-pill:first-child {
        display: none !important;
    }

    body:not(.site-index) .ar-profile {
        padding: 12px !important;
    }

    body:not(.site-index) .ar-profile-top {
        grid-template-columns: 48px minmax(0, 1fr) !important;
        gap: 10px !important;
        margin-bottom: 10px !important;
    }

    body:not(.site-index) .ar-profile .ar-avatar {
        width: 48px !important;
        height: 48px !important;
        font-size: 18px !important;
    }

    body:not(.site-index) .ar-profile h2 {
        font-size: 18px !important;
        line-height: 1.2 !important;
    }

    body:not(.site-index) .ar-profile p {
        margin-top: 4px !important;
        font-size: 11px !important;
        line-height: 1.35 !important;
    }

    body:not(.site-index) .ar-score-row {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 5px !important;
        margin: 10px 0 !important;
    }

    body:not(.site-index) .ar-score {
        padding: 8px 7px !important;
        border-radius: 8px !important;
    }

    body:not(.site-index) .ar-score span {
        font-size: 9px !important;
    }

    body:not(.site-index) .ar-score strong {
        margin-top: 3px !important;
        font-size: 17px !important;
    }

    body:not(.site-index) .ar-reviews {
        gap: 6px !important;
        padding: 7px !important;
    }

    body:not(.site-index) .ar-review {
        grid-template-columns: 30px minmax(0, 1fr) !important;
        gap: 7px !important;
        padding: 8px !important;
        border-radius: 9px !important;
    }

    body:not(.site-index) .ar-review .ar-avatar {
        width: 30px !important;
        height: 30px !important;
        font-size: 11px !important;
    }

    body:not(.site-index) .ar-review-name,
    body:not(.site-index) .ar-review-text {
        font-size: 11px !important;
    }

    body:not(.site-index) .ar-review-time {
        font-size: 9px !important;
    }

    body:not(.site-index) .ar-review-text {
        line-height: 1.45 !important;
    }
}

/* Final mobile catalog authority. Keep products as dense rows after all legacy overrides. */
@media (max-width: 640px) {
    body.site-index .ins-grid,
    body.site-index .ins-subgroup-row .ins-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 0 !important;
    }

    body.site-index .product-card.ins-card,
    body.site-index.site-mobile-lite .product-card.ins-card,
    body.site-index .ins-subgroup-row .product-card.ins-card,
    body.site-index.site-mobile-lite .ins-subgroup-row .product-card.ins-card {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        min-height: 0 !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-bottom: 1px solid rgba(104, 127, 150, .15) !important;
        border-radius: 0 !important;
        background: rgba(255, 255, 255, .34) !important;
        background-image: none !important;
        box-shadow: none !important;
        overflow: visible !important;
        transform: none !important;
    }

    body.site-index .product-card.ins-card:hover,
    body.site-index .product-card.ins-card:active,
    body.site-index.site-mobile-lite .product-card.ins-card:hover {
        background: rgba(255, 255, 255, .62) !important;
        border-bottom-color: var(--surface-blue-line) !important;
        transform: none !important;
    }

    body.site-index .product-card.ins-card .ins-card-top,
    body.site-index .product-card.ins-card .ins-card-icon,
    body.site-index .product-card.ins-card .ins-card-code,
    body.site-index .product-card.ins-card .ins-card-arrow,
    body.site-index .product-card.ins-card .p-daily,
    body.site-index .product-card.ins-card .p-tip {
        display: none !important;
    }

    body.site-index .product-card.ins-card .ins-card-body,
    body.site-index.site-mobile-lite .product-card.ins-card .ins-card-body {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        grid-template-rows: auto auto !important;
        align-items: center !important;
        min-width: 0 !important;
        min-height: 0 !important;
        padding: 8px 8px 7px 3px !important;
    }

    body.site-index .product-card.ins-card .p-name {
        grid-column: 1 !important;
        grid-row: 1 !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding-right: 8px !important;
        color: var(--surface-ink) !important;
        font-size: 12px !important;
        font-weight: 650 !important;
        line-height: 1.3 !important;
        text-align: left !important;
        overflow: hidden !important;
        display: -webkit-box !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 2 !important;
    }

    body.site-index .product-card.ins-card .p-price {
        grid-column: 2 !important;
        grid-row: 1 !important;
        margin: 0 !important;
        color: var(--surface-blue) !important;
        font-size: 17px !important;
        font-weight: 800 !important;
        line-height: 1.2 !important;
        text-align: right !important;
        white-space: nowrap !important;
    }

    body.site-index .product-card.ins-card .p-price small {
        font-size: 10px !important;
    }

    body.site-index .product-card.ins-card .promo-original {
        display: block !important;
        margin: 2px 0 0 !important;
        font-size: 9px !important;
        line-height: 1 !important;
    }

    body.site-index .product-card.ins-card .ins-card-meta,
    body.site-index .product-card.ins-card .ins-card-footline {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
        min-width: 0 !important;
        margin: 5px 0 0 !important;
    }

    body.site-index .product-card.ins-card .p-stock {
        min-width: 0 !important;
        padding: 0 !important;
        color: var(--surface-faint) !important;
        background: transparent !important;
        border: 0 !important;
        font-size: 10px !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
    }

    body.site-index .product-card.ins-card .ins-card-action {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 48px !important;
        min-height: 28px !important;
        padding: 0 9px !important;
        color: var(--surface-blue) !important;
        background: var(--surface-blue-soft) !important;
        border: 1px solid var(--surface-blue-line) !important;
        border-radius: 8px !important;
        box-shadow: none !important;
        font-size: 10px !important;
        font-weight: 750 !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    body.site-index .product-card.ins-card .ins-card-foot {
        grid-column: 2 !important;
        grid-row: 1 / span 2 !important;
        align-self: center !important;
        min-height: 0 !important;
        padding: 0 8px 0 0 !important;
        background: transparent !important;
        border: 0 !important;
    }

    body.site-index .product-card.ins-card .free-claim-btn {
        grid-column: 1 / -1 !important;
        grid-row: 3 !important;
        justify-self: start !important;
        min-height: 25px !important;
        margin: 5px 0 0 !important;
        padding: 0 8px !important;
        border-radius: 7px !important;
        font-size: 10px !important;
    }
}

body.site-main.site-center .hero,
body.site-subsite.site-center .hero,
body.site-main.site-center .stat,
body.site-subsite.site-center .stat,
body.site-main.site-center .order,
body.site-subsite.site-center .order,
body.site-main.site-recharge .wrap,
body.site-subsite.site-recharge .wrap,
body.site-main.site-recharge .summary-box,
body.site-subsite.site-recharge .summary-box {
    background: rgba(255, 255, 255, .82) !important;
    background-image: none !important;
    border-color: rgba(255, 255, 255, .96) !important;
    box-shadow: var(--surface-shadow) !important;
}

body.site-main.site-center .detail-pop,
body.site-subsite.site-center .detail-pop,
body.site-main.site-center .detail-summary,
body.site-subsite.site-center .detail-summary,
body.site-main.site-center .detail-panel,
body.site-subsite.site-center .detail-panel,
body.site-main.site-center .detail-section,
body.site-subsite.site-center .detail-section {
    background: rgba(255, 255, 255, .84) !important;
    background-image: none !important;
    border-color: var(--surface-line-soft) !important;
    box-shadow: 0 12px 28px rgba(34, 54, 74, .06) !important;
}

body.site-main.site-center .btnx,
body.site-subsite.site-center .btnx,
body.site-main.site-center .tabx.active,
body.site-subsite.site-center .tabx.active,
body.site-main.site-recharge .btn-primary,
body.site-subsite.site-recharge .btn-primary {
    color: #fff !important;
    background: var(--surface-blue) !important;
    background-image: none !important;
    border-color: var(--surface-blue) !important;
    box-shadow: 0 10px 20px var(--surface-blue-soft) !important;
}

/* Remove legacy color-wash pseudo layers from the redesigned inner surfaces. */
body.site-main.site-auth .wrap::before,
body.site-subsite.site-auth .wrap::before,
body.site-main.site-query .section-box::before,
body.site-subsite.site-query .section-box::before,
body.site-main.site-query .order-card::before,
body.site-subsite.site-query .order-card::before,
body.site-main.site-order .header::before,
body.site-subsite.site-order .header::before,
body.site-main.site-order .product-card::before,
body.site-subsite.site-order .product-card::before,
body.site-main.site-order .promo-hints-container::before,
body.site-subsite.site-order .promo-hints-container::before,
body.site-main.site-order .pc-desc-scroll::before,
body.site-subsite.site-order .pc-desc-scroll::before {
    display: none !important;
    content: none !important;
    background: none !important;
    background-image: none !important;
    opacity: 0 !important;
}

/* Order notice: retain a readable scroll area while using a compact top prompt. */
body.site-main.site-order .overlay.active,
body.site-subsite.site-order .overlay.active {
    align-items: flex-start !important;
    justify-content: center !important;
    padding: 14px !important;
    background: rgba(229, 236, 244, .42) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    backdrop-filter: blur(16px) !important;
}

body.site-main.site-order .alert-box,
body.site-subsite.site-order .alert-box {
    box-sizing: border-box !important;
    width: min(100%, 520px) !important;
    max-height: min(76vh, 520px) !important;
    margin: 0 auto !important;
    padding: 18px !important;
    background: rgba(255, 255, 255, .94) !important;
    background-image: none !important;
    border: 1px solid rgba(255, 255, 255, .98) !important;
    border-radius: 22px !important;
    box-shadow: 0 18px 42px rgba(34, 54, 74, .16), inset 0 1px 0 rgba(255, 255, 255, .98) !important;
}

body.site-main.site-order .alert-box::before,
body.site-subsite.site-order .alert-box::before {
    display: none !important;
    content: none !important;
}

body.site-main.site-order .alert-box .notice-content,
body.site-subsite.site-order .alert-box .notice-content {
    max-height: min(54vh, 330px) !important;
    overflow-y: auto !important;
    color: var(--surface-muted) !important;
    -webkit-overflow-scrolling: touch;
}

body.site-main.site-order .alert-box .alert-btn,
body.site-subsite.site-order .alert-box .alert-btn {
    min-height: 42px !important;
    margin-top: 14px !important;
    border-radius: 11px !important;
}

/* Mobile polish: keep the order prompt comfortably below the status bar. */
@media (max-width: 640px) {
    body.site-main.site-order .overlay.active,
    body.site-subsite.site-order .overlay.active {
        align-items: flex-start !important;
        padding-top: clamp(56px, 12vh, 104px) !important;
    }

    body #noticeBox.pop-mask.active,
    body #noticeBox.overlay.active,
    body #customAlert.active,
    body #expiredAgentPrompt.active,
    body #balancePrompt.active {
        padding-top: clamp(56px, 12vh, 104px) !important;
    }
}

/* Final mobile homepage override: keep product titles readable at the end of
   the cascade, and keep subgroup headings compact instead of full-width bars. */
@media (max-width: 640px) {
    body.site-index .ins-grid,
    body.site-index .ins-subgroup-row .ins-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 0 !important;
    }

    body.site-index .product-card.ins-card,
    body.site-index .ins-subgroup-row .product-card.ins-card {
        grid-template-columns: minmax(0, 1fr) auto !important;
    }

    body.site-index .ins-card-body,
    body.site-index.site-mobile-lite .ins-card-body {
        width: 100% !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
    }

    body.site-index .ins-card .p-name,
    body.site-index.site-mobile-lite .ins-card .p-name {
        min-width: 0 !important;
        width: auto !important;
        max-width: none !important;
        display: block !important;
        white-space: nowrap !important;
        text-overflow: ellipsis !important;
        overflow: hidden !important;
        -webkit-line-clamp: unset !important;
        font-size: 12px !important;
        line-height: 1.35 !important;
    }

    body.site-index .ins-subgroup-list {
        gap: 7px !important;
    }

    body.site-index .ins-subgroup-row {
        padding-top: 0 !important;
    }

    body.site-index .ins-subgroup-label,
    body.site-index .ins-subgroup-label.is-default {
        display: inline-flex !important;
        width: max-content !important;
        max-width: 100% !important;
        min-height: 0 !important;
        margin: 3px 0 4px 1px !important;
        padding: 3px 8px !important;
        color: var(--surface-blue) !important;
        background: rgba(232, 242, 255, .72) !important;
        border: 1px solid var(--surface-blue-line) !important;
        border-left-width: 2px !important;
        border-radius: 7px !important;
        box-shadow: none !important;
        font-size: 10px !important;
        font-weight: 750 !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

body.site-index .ins-subgroup-label.is-default {
        color: var(--surface-muted) !important;
        background: rgba(255, 255, 255, .56) !important;
        border-color: rgba(104, 127, 150, .22) !important;
        border-left-color: rgba(104, 127, 150, .42) !important;
    }
}

/* Final mobile alignment: every regular product keeps a stable two-column
   row, so the purchase action stays centered in the right rail. */
@media (max-width: 640px) {
    body.site-index .ins-grid:not(.ins-grid-compact) .product-card.ins-card {
        grid-template-columns: minmax(0, 1fr) 68px !important;
        grid-template-rows: minmax(0, 1fr) !important;
        align-items: stretch !important;
    }

    body.site-index .ins-grid:not(.ins-grid-compact) .product-card.ins-card .ins-card-body {
        grid-column: 1 !important;
        grid-row: 1 !important;
        width: auto !important;
    }

    body.site-index .ins-grid:not(.ins-grid-compact) .product-card.ins-card .ins-card-foot {
        grid-column: 2 !important;
        grid-row: 1 !important;
        align-self: center !important;
        justify-self: stretch !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: auto !important;
        min-height: 0 !important;
        padding: 0 7px !important;
        background: transparent !important;
        border: 0 !important;
    }

    body.site-index .ins-grid:not(.ins-grid-compact) .product-card.ins-card .ins-card-action {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 25px !important;
        padding: 0 4px !important;
        font-size: 9px !important;
    }

    /* Give mobile notices breathing room below the browser/status area. */
    body #noticeBox.pop-mask.active,
    body #noticeBox.overlay.active,
    body #customAlert.active,
    body #expiredAgentPrompt.active,
    body #balancePrompt.active {
        padding-top: clamp(76px, 16vh, 132px) !important;
    }

    body.site-main.site-order .overlay.active,
    body.site-subsite.site-order .overlay.active {
        padding-top: clamp(76px, 16vh, 132px) !important;
    }
}

/* Final mobile correction: use a real right-side action rail instead of
   relying on implicit grid rows that can push the button downward. */
@media (max-width: 640px) {
    body.site-index .ins-grid:not(.ins-grid-compact) .product-card.ins-card {
        position: relative !important;
        display: block !important;
        min-height: 69px !important;
        height: 69px !important;
        padding: 0 !important;
    }

    body.site-index .ins-grid:not(.ins-grid-compact) .product-card.ins-card .ins-card-body {
        display: grid !important;
        width: calc(100% - 68px) !important;
        min-height: 69px !important;
        height: 69px !important;
        grid-template-columns: minmax(0, 1fr) 82px !important;
        grid-template-rows: auto auto !important;
        padding: 7px 8px 7px 3px !important;
    }

    body.site-index .ins-grid:not(.ins-grid-compact) .product-card.ins-card .ins-card-foot {
        position: absolute !important;
        top: 50% !important;
        right: 0 !important;
        width: 68px !important;
        height: 28px !important;
        min-height: 28px !important;
        margin: 0 !important;
        padding: 0 7px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        transform: translateY(-50%) !important;
    }

    body.site-index .ins-grid:not(.ins-grid-compact) .product-card.ins-card .ins-card-action {
        display: inline-flex !important;
        width: 54px !important;
        min-width: 54px !important;
        height: 25px !important;
        min-height: 25px !important;
        margin: 0 !important;
        padding: 0 3px !important;
        line-height: 1 !important;
        transform: none !important;
    }

    body #noticeBox.pop-mask.active,
    body #noticeBox.overlay.active,
    body #customAlert.active,
    body #expiredAgentPrompt.active,
    body #balancePrompt.active,
    body.site-main.site-order .overlay.active,
    body.site-subsite.site-order .overlay.active {
        padding-top: clamp(80px, 11vh, 112px) !important;
    }
}

/* Free-claim rows need one extra content line so the claim control stays
   inside the card instead of overflowing below it. */
@media (max-width: 640px) {
    body.site-index .ins-grid .product-card.ins-card:has(.free-claim-btn) {
        height: 98px !important;
        min-height: 98px !important;
    }

    body.site-index .ins-grid .product-card.ins-card:has(.free-claim-btn) .ins-card-body {
        height: 98px !important;
        min-height: 98px !important;
        grid-template-rows: 20px 28px 30px !important;
    }

    body.site-index .ins-grid .product-card.ins-card:has(.free-claim-btn) .free-claim-btn {
        grid-column: 1 !important;
        grid-row: 3 !important;
        justify-self: start !important;
        align-self: start !important;
        width: auto !important;
        height: 25px !important;
        min-height: 25px !important;
        margin: 3px 0 0 !important;
        padding: 0 8px !important;
        font-size: 9px !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    body.site-index .ins-grid .product-card.ins-card:has(.free-claim-btn) .ins-card-footline,
    body.site-index .ins-grid .product-card.ins-card:has(.free-claim-btn) .ins-card-meta {
        grid-column: 1 !important;
        grid-row: 2 !important;
    }

    /* Subgroup labels are horizontal compact tags on phones, not vertical
       rails that consume the height of the whole product list. */
    body.site-index.site-mobile-lite .ins-subgroup-row {
        display: block !important;
        padding: 6px 7px 8px 6px !important;
    }

    body.site-index.site-mobile-lite .ins-subgroup-label,
    body.site-index.site-mobile-lite .ins-subgroup-label.is-default {
        display: inline-flex !important;
        width: max-content !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 0 5px 0 !important;
        padding: 3px 9px !important;
        writing-mode: horizontal-tb !important;
        text-orientation: mixed !important;
        font-size: 10px !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
    }

    body.site-index.site-mobile-lite .ins-subgroup-row .ins-grid {
        width: 100% !important;
    }
}

/* Navigation feedback: acknowledge a route change immediately while the
   next document is being requested. */
.front-page-loader {
    position: fixed !important;
    top: 12px !important;
    left: 50% !important;
    z-index: 2147483646 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    min-height: 30px !important;
    padding: 0 11px !important;
    color: var(--surface-ink, #1e293b) !important;
    background: rgba(255, 255, 255, .92) !important;
    border: 1px solid rgba(255, 255, 255, .95) !important;
    border-radius: 999px !important;
    box-shadow: 0 8px 24px rgba(34, 54, 74, .14) !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translate(-50%, -10px) scale(.96) !important;
    transition: opacity 160ms ease, transform 220ms cubic-bezier(.16, 1, .3, 1) !important;
}

body.front-route-loading .front-page-loader {
    opacity: 1 !important;
    transform: translate(-50%, 0) scale(1) !important;
}

.front-page-loader-spinner {
    width: 13px !important;
    height: 13px !important;
    border: 2px solid rgba(37, 99, 235, .18) !important;
    border-top-color: var(--surface-blue, #2563eb) !important;
    border-radius: 50% !important;
    animation: front-page-spin .72s linear infinite !important;
}

body.front-page-ready .app-container {
    animation: front-page-enter 220ms cubic-bezier(.16, 1, .3, 1) both;
}

body.front-route-leaving .app-container {
    opacity: .78 !important;
    transform: translateY(-2px) !important;
    transition: opacity 90ms ease, transform 90ms ease !important;
}

@keyframes front-page-spin { to { transform: rotate(360deg); } }
@keyframes front-page-enter {
    from { opacity: .72; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Three-up short plans read as a small vertical stack: name, price, stock,
   then the purchase action. */
@media (max-width: 640px) {
    body.site-index .ins-grid.ins-grid-compact .product-card.ins-card {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: 110px 24px !important;
        min-height: 135px !important;
        height: 135px !important;
    }

    body.site-index .ins-grid.ins-grid-compact .product-card.ins-card .ins-card-body {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: 17px 25px 17px 25px !important;
        align-content: start !important;
        min-height: 110px !important;
        height: 110px !important;
        grid-column: 1 !important;
        grid-row: 1 !important;
        padding: 7px 6px 5px !important;
    }

    body.site-index .ins-grid.ins-grid-compact .product-card.ins-card .p-name {
        grid-column: 1 !important;
        grid-row: 1 !important;
        width: 100% !important;
        min-height: 0 !important;
        padding: 0 !important;
        font-size: 9px !important;
        font-weight: 750 !important;
        line-height: 1.15 !important;
        text-align: center !important;
    }

    body.site-index .ins-grid.ins-grid-compact .product-card.ins-card .p-price {
        grid-column: 1 !important;
        grid-row: 2 !important;
        align-self: center !important;
        margin: 0 !important;
        font-size: 14px !important;
        line-height: 1 !important;
        text-align: center !important;
    }

    body.site-index .ins-grid.ins-grid-compact .product-card.ins-card .ins-card-footline {
        display: contents !important;
    }

    body.site-index .ins-grid.ins-grid-compact .product-card.ins-card .ins-card-meta,
    body.site-index .ins-grid.ins-grid-compact .product-card.ins-card .ins-card-meta {
        display: contents !important;
    }

    body.site-index .ins-grid.ins-grid-compact .product-card.ins-card .ins-card-foot {
        display: flex !important;
        grid-column: 1 !important;
        grid-row: 2 !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: 24px !important;
        min-height: 24px !important;
        padding: 0 !important;
        background: transparent !important;
        border: 0 !important;
    }

    body.site-index .ins-grid.ins-grid-compact .product-card.ins-card .p-stock {
        display: block !important;
        grid-column: 1 !important;
        grid-row: 3 !important;
        align-self: center !important;
        min-width: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        color: var(--surface-muted, #64748b) !important;
        background: transparent !important;
        border: 0 !important;
        font-size: 8px !important;
        line-height: 1 !important;
        text-align: center !important;
    }

    body.site-index .ins-grid.ins-grid-compact .product-card.ins-card .ins-card-action {
        grid-column: 1 !important;
        grid-row: 4 !important;
        justify-self: center !important;
        align-self: center !important;
        width: auto !important;
        min-width: 48px !important;
        min-height: 22px !important;
        height: 22px !important;
        padding: 0 7px !important;
        font-size: 8px !important;
        transform: translateY(-3px) !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .front-page-loader,
    body.front-route-leaving .app-container,
    body.front-page-ready .app-container {
        animation: none !important;
        transition: opacity 120ms ease !important;
        transform: none !important;
    }

    .front-page-loader-spinner { animation: none !important; }
}

/* Contrast correction for legacy mobile template overrides. */
@media (max-width: 640px) {
    body.site-index.site-mobile-lite .ins-subgroup-row .ins-subgroup-label,
body.site-index.site-mobile-lite .ins-subgroup-row .ins-subgroup-label.is-default {
        color: #1e3a8a !important;
        background: rgba(255, 255, 255, .86) !important;
        background-image: none !important;
        border: 1px solid rgba(37, 99, 235, .22) !important;
        border-left: 2px solid var(--surface-blue) !important;
        box-shadow: 0 2px 8px rgba(37, 99, 235, .07) !important;
    }

    body.site-index.site-mobile-lite .ins-subgroup-row .ins-subgroup-label.is-default {
        color: #334155 !important;
        background: rgba(255, 255, 255, .92) !important;
        border-color: rgba(100, 116, 139, .24) !important;
        border-left-color: #64748b !important;
        box-shadow: 0 2px 8px rgba(51, 65, 85, .06) !important;
    }
}

/* Order page: compact task-first layout. Payment selection lives in the
   persistent bottom island rendered by order.php. */
body.site-order {
    min-height: 100vh !important;
    color: #1e293b !important;
    background: #f3f7fb !important;
}

body.site-order .order-payment-inline-title,
body.site-order .order-payment-inline-list {
    display: none !important;
}

body.site-order .mobile-container {
    width: 100% !important;
    max-width: 1180px !important;
    margin: 0 auto !important;
    background: transparent !important;
}

body.site-order .header {
    height: 58px !important;
    min-height: 58px !important;
    margin: 10px 12px 0 !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, .78) !important;
    box-shadow: 0 8px 24px rgba(30, 41, 59, .06) !important;
}

body.site-order .title {
    font-size: 17px !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
}

body.site-order .content {
    padding: 14px 14px 118px !important;
}

body.site-order .pc-layout {
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.site-order .product-card,
body.site-order .order-desc-panel,
body.site-order .promo-hints-container,
body.site-order .input-group-custom {
    border: 0 !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, .88) !important;
    box-shadow: 0 8px 25px rgba(30, 41, 59, .065) !important;
}

body.site-order .section-title {
    margin: 14px 2px 7px !important;
    color: #475569 !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
}

body.site-order .section-title::after {
    display: none !important;
}

body.site-order .order-summary-card {
    min-height: 0 !important;
    padding: 16px !important;
}

body.site-order .product-name {
    color: #172033 !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
    letter-spacing: 0 !important;
}

body.site-order .price-tag {
    color: var(--order-accent-strong, #1d4ed8) !important;
    font-size: 32px !important;
    font-weight: 850 !important;
    line-height: 1 !important;
    text-shadow: none !important;
}

body.site-order .order-desc-card,
body.site-order .order-desc-panel {
    padding: 12px 14px !important;
}

body.site-order .desc-text,
body.site-order .order-desc-panel .desc-text {
    color: #475569 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    font-size: 13px !important;
    line-height: 1.65 !important;
}

body.site-order .order-qty-card {
    min-height: 54px !important;
    padding: 9px 12px !important;
}

body.site-order .order-qty-card > span {
    color: #334155 !important;
    font-size: 13px !important;
}

body.site-order .input-group-custom {
    min-height: 48px !important;
    margin-bottom: 9px !important;
    padding: 4px 13px !important;
}

body.site-order .input-group-custom input {
    height: 38px !important;
    color: #1e293b !important;
    font-size: 13px !important;
}

body.site-order .order-payment-submit:disabled {
    cursor: not-allowed !important;
    opacity: .56 !important;
    box-shadow: none !important;
}

body.site-order .pc-bottom-buttons {
    display: none !important;
}

body.site-main.site-order .order-payment-submit {
    color: #fff !important;
    background: #2563eb !important;
    background-image: none !important;
    box-shadow: 0 10px 22px rgba(37, 99, 235, .24) !important;
}

body.site-subsite.site-order[class*="palette-"] .order-payment-submit {
    background: var(--subsite-accent) !important;
    box-shadow: 0 10px 22px color-mix(in srgb, var(--subsite-accent) 24%, transparent) !important;
}

body.site-subsite.site-order[class*="palette-"] .order-payment-current-icon {
    color: var(--subsite-accent-strong) !important;
    background: var(--subsite-accent-soft) !important;
}

@media (min-width: 768px) {
    body.site-order .header {
        margin: 14px 18px 0 !important;
    }

    body.site-order .content {
        padding: 18px 18px 124px !important;
    }

    body.site-order .pc-layout {
        display: grid !important;
        grid-template-columns: minmax(0, 1.08fr) minmax(340px, .82fr) !important;
        gap: 22px !important;
        align-items: start !important;
    }

    body.site-order .pc-right {
        position: sticky !important;
        top: 16px !important;
        padding: 2px 0 !important;
    }

    body.site-order .pc-desc-scroll {
        max-height: min(44vh, 390px) !important;
    }
}

@media (max-width: 767px) {
    body.site-order .header {
        width: calc(100% - 20px) !important;
        height: 50px !important;
        min-height: 50px !important;
        margin: 8px auto 0 !important;
    }

    body.site-order .content {
        padding: 10px 10px 120px !important;
    }

    body.site-order .order-summary-card {
        padding: 12px !important;
    }

    body.site-order .order-summary-card.with-image {
        grid-template-columns: 64px minmax(0, 1fr) !important;
        gap: 10px !important;
    }

    body.site-order .product-image-container {
        width: 64px !important;
        height: 64px !important;
        border-radius: 12px !important;
    }

    body.site-order .product-name {
        font-size: 14px !important;
    }

    body.site-order .price-tag {
        font-size: 23px !important;
    }

    body.site-order .section-title {
        margin-top: 11px !important;
    }

    body.site-order .order-desc-card.mobile-desc-collapsed {
        max-height: 108px !important;
    }
}

/* Order summary hierarchy: compact payable amount, with the product
   explanation treated as the primary reading section. */
body.site-order .price-container {
    display: flex !important;
    align-items: baseline !important;
    flex-wrap: wrap !important;
    column-gap: 6px !important;
    row-gap: 5px !important;
}

body.site-order .price-tag::before {
    content: "应付" !important;
    color: #64748b !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}

body.site-order .price-tag {
    display: inline-flex !important;
    align-items: baseline !important;
    gap: 2px !important;
    color: #334155 !important;
    font-size: 22px !important;
    font-weight: 760 !important;
    line-height: 1.05 !important;
    letter-spacing: 0 !important;
    text-shadow: none !important;
}

body.site-order .price-tag small {
    color: #64748b !important;
    font-size: 11px !important;
    font-weight: 700 !important;
}

body.site-order .order-desc-title,
body.site-order .section-title:has(+ .order-desc-panel),
body.site-order .section-title:has(+ .order-desc-card) {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    color: #1e293b !important;
    font-size: 14px !important;
    font-weight: 850 !important;
}

body.site-order .order-desc-title::before,
body.site-order .section-title:has(+ .order-desc-panel)::before,
body.site-order .section-title:has(+ .order-desc-card)::before {
    content: "" !important;
    width: 3px !important;
    height: 15px !important;
    flex: 0 0 3px !important;
    border-radius: 99px !important;
    background: var(--order-accent, #2563eb) !important;
}

body.site-order .order-desc-panel,
body.site-order .order-desc-card {
    border: 1px solid rgba(37, 99, 235, 0.14) !important;
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: 0 10px 26px rgba(30, 41, 59, 0.07) !important;
}

body.site-order .desc-text,
body.site-order .order-desc-panel .desc-text {
    color: #26364d !important;
    font-size: 13px !important;
    font-weight: 540 !important;
    line-height: 1.72 !important;
}

body.site-main.site-order .price-tag,
body.site-subsite.site-order[class*="palette-"] .price-tag {
    background: none !important;
    background-image: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    color: #334155 !important;
    -webkit-text-fill-color: #334155 !important;
    font-size: 24px !important;
}

body.site-main.site-order .price-tag small,
body.site-subsite.site-order[class*="palette-"] .price-tag small {
    background: none !important;
    color: #64748b !important;
    -webkit-text-fill-color: #64748b !important;
    font-size: 11px !important;
}

body.site-main.site-order .price-tag::before,
body.site-subsite.site-order[class*="palette-"] .price-tag::before {
    color: #64748b !important;
    -webkit-text-fill-color: #64748b !important;
}

body.site-main.site-order .order-desc-title,
body.site-subsite.site-order[class*="palette-"] .order-desc-title,
body.site-main.site-order .section-title:has(+ .order-desc-panel),
body.site-main.site-order .section-title:has(+ .order-desc-card),
body.site-subsite.site-order[class*="palette-"] .section-title:has(+ .order-desc-panel),
body.site-subsite.site-order[class*="palette-"] .section-title:has(+ .order-desc-card) {
    color: #1e293b !important;
    font-size: 14px !important;
    font-weight: 850 !important;
}

body.site-main.site-order .order-desc-panel .desc-text,
body.site-main.site-order .order-desc-card .desc-text,
body.site-subsite.site-order[class*="palette-"] .order-desc-panel .desc-text,
body.site-subsite.site-order[class*="palette-"] .order-desc-card .desc-text {
    color: #26364d !important;
    font-size: 13px !important;
    font-weight: 540 !important;
    line-height: 1.72 !important;
}

@media (max-width: 767px) {
    body.site-main.site-order .price-tag,
    body.site-subsite.site-order[class*="palette-"] .price-tag {
        font-size: 20px !important;
    }
}

/* Mobile single-row products: price and purchase action share one optical
   center while the name and stock retain their two-line reading order. */
@media (max-width: 640px) {
    body.site-index .ins-grid:not(.ins-grid-compact) .product-card.ins-card:not(:has(.free-claim-btn)) .p-price {
        grid-row: 1 / span 2 !important;
        align-self: center !important;
        margin: 0 !important;
        color: #526176 !important;
        font-size: 14px !important;
        font-weight: 720 !important;
        font-variant-numeric: tabular-nums !important;
        line-height: 1 !important;
    }

    body.site-index .ins-grid:not(.ins-grid-compact) .product-card.ins-card:not(:has(.free-claim-btn)) .p-price small {
        margin-right: 1px !important;
        color: #718096 !important;
        font-size: 9px !important;
        font-weight: 650 !important;
    }

    body.site-index .ins-grid:not(.ins-grid-compact) .product-card.ins-card:not(:has(.free-claim-btn)) .p-name {
        color: #172334 !important;
        font-size: 13px !important;
        font-weight: 780 !important;
        line-height: 1.25 !important;
    }

body.site-index .ins-grid:not(.ins-grid-compact) .product-card.ins-card:not(:has(.free-claim-btn)) .p-stock {
        color: #66768a !important;
        font-size: 9px !important;
        font-weight: 650 !important;
    }
}

/* Final front-workbench pass: this block intentionally comes last so the
   shared surface wins over legacy page-specific declarations. */
@media (max-width: 640px) {
    body.site-index .ins-grid .product-card.ins-card:has(.free-claim-btn) {
        height: 82px !important;
        min-height: 82px !important;
    }
    body.site-index .ins-grid .product-card.ins-card:has(.free-claim-btn) .ins-card-body {
        height: 82px !important;
        min-height: 82px !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        grid-template-rows: 1fr 1fr !important;
        align-items: center !important;
        column-gap: 10px !important;
        padding: 8px 10px !important;
    }
    body.site-index .ins-grid .product-card.ins-card:has(.free-claim-btn) .p-name {
        grid-column: 1 !important;
        grid-row: 1 !important;
        align-self: end !important;
        min-width: 0 !important;
        font-size: 12px !important;
        line-height: 1.2 !important;
    }
    body.site-index .ins-grid .product-card.ins-card:has(.free-claim-btn) .p-price {
        grid-column: 2 !important;
        grid-row: 1 !important;
        align-self: end !important;
        justify-self: end !important;
        margin: 0 !important;
        font-size: 14px !important;
        line-height: 1 !important;
        color: #526176 !important;
    }
    body.site-index .ins-grid .product-card.ins-card:has(.free-claim-btn) .free-claim-btn {
        grid-column: 2 !important;
        grid-row: 2 !important;
        justify-self: end !important;
        align-self: start !important;
        width: auto !important;
        min-width: 81px !important;
        height: 24px !important;
        min-height: 24px !important;
        margin: 3px 0 0 !important;
        padding: 0 8px !important;
        font-size: 9px !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }
    body.site-index .ins-grid .product-card.ins-card:has(.free-claim-btn) .ins-card-footline,
    body.site-index .ins-grid .product-card.ins-card:has(.free-claim-btn) .ins-card-meta {
        grid-column: 1 !important;
        grid-row: 2 !important;
        align-self: start !important;
        margin-top: 4px !important;
    }
}

body.site-center .hero,
body.site-center .subsite-panel,
body.site-center .subsite-agent-panel,
body.site-center .stat,
body.site-center .order,
body.site-recharge .wrap,
body.site-recharge form,
body.site-lottery .lottery-panel {
    backdrop-filter: blur(18px) saturate(1.08) !important;
    -webkit-backdrop-filter: blur(18px) saturate(1.08) !important;
}

body.site-center .hero,
body.site-recharge .wrap {
    background: rgba(255, 255, 255, .78) !important;
}

body.site-center .subsite-panel,
body.site-center .subsite-agent-panel,
body.site-center .stat,
body.site-center .order,
body.site-recharge form {
    background: rgba(255, 255, 255, .86) !important;
}

body.site-lottery .lottery-panel { background: rgba(255, 255, 255, .88) !important; }
body.site-lottery .draw-button { background: linear-gradient(135deg, var(--lottery-accent-strong), var(--lottery-accent)) !important; }

@media (max-width: 640px) {
    body.site-center .hero .d-flex:last-child { gap: 8px !important; }
    body.site-center .hero .d-flex:last-child .btnx,
    body.site-center .hero .d-flex:last-child .btn-outline-secondary { padding: 0 10px !important; font-size: 12px !important; }
    body.site-center .order-top { display: grid !important; grid-template-columns: minmax(0, 1fr) auto !important; align-items: start !important; }
    body.site-center .order-top .text-right { min-width: 74px !important; }
    body.site-lottery .lottery-section { gap: 12px !important; margin-top: 12px !important; }
    body.site-lottery .lottery-panel { border-radius: 16px !important; }
}

/* Quiet, compact finish for account surfaces. Keep color on actions and
   statuses; do not tint the whole canvas or inflate empty space. */
body.site-center,
body.site-recharge,
body.site-lottery {
    background: #f6f8fb !important;
    background-image: none !important;
}

body.site-center::before,
body.site-center::after,
body.site-recharge::before,
body.site-recharge::after,
body.site-lottery::before,
body.site-lottery::after {
    display: none !important;
    content: none !important;
}

body.site-center .wrap,
body.site-recharge .wrap {
    width: min(100% - 24px, 1040px) !important;
    padding: 16px 0 32px !important;
}

body.site-center .hero,
body.site-center .subsite-panel,
body.site-center .subsite-agent-panel,
body.site-center .stat,
body.site-center .order,
body.site-recharge .wrap,
body.site-recharge .summary-box,
body.site-recharge form {
    background: #fff !important;
    border: 1px solid #e7ebf1 !important;
    box-shadow: 0 5px 16px rgba(15, 23, 42, .045) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

body.site-center .hero {
    padding: 18px 20px !important;
    border-radius: 16px !important;
}

body.site-center .hero::after {
    display: none !important;
}

body.site-center .stats {
    gap: 8px !important;
    margin: 12px 0 !important;
}

body.site-center .stat {
    min-height: 0 !important;
    padding: 12px 13px !important;
    border-radius: 12px !important;
}

body.site-center .subsite-panel,
body.site-center .subsite-agent-panel {
    margin: 12px 0 !important;
    padding: 15px !important;
    border-radius: 15px !important;
}

body.site-center .subsite-grid { gap: 8px !important; }
body.site-center .subsite-box { padding: 11px !important; border-radius: 11px !important; }
body.site-center .tabbar { margin: 12px 0 14px !important; }
body.site-center .order { margin: 8px 0 !important; padding: 13px !important; border-radius: 13px !important; }

body.site-recharge .wrap {
    max-width: 720px !important;
    margin: 0 auto !important;
    padding: 20px 0 36px !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

body.site-recharge .wrap > h3 { margin: 0 0 10px !important; font-size: 22px !important; }
body.site-recharge .identity-bar { margin-bottom: 10px !important; }
body.site-recharge .summary { gap: 8px !important; margin: 0 0 12px !important; }
body.site-recharge .summary-box { padding: 11px 12px !important; border-radius: 12px !important; box-shadow: none !important; }
body.site-recharge form { padding: 14px !important; border-radius: 14px !important; }
body.site-recharge .form-group { margin-bottom: 11px !important; }
body.site-recharge .form-control { height: 42px !important; border-radius: 10px !important; box-shadow: none !important; }

/* One visible boundary per order contact field. The wrapper is layout only;
   the input owns the border, background and focus state. */
body.site-order .input-group-custom {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-height: 44px !important;
    margin: 0 0 8px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
}

body.site-order .input-group-custom::before,
body.site-order .input-group-custom::after,
body.site-order .field-frosted::before {
    display: none !important;
    content: none !important;
}

body.site-order .input-group-custom > i {
    flex: 0 0 20px !important;
    width: 20px !important;
    margin: 0 !important;
    color: #7a8798 !important;
    font-size: 14px !important;
    text-align: center !important;
}

body.site-order .input-group-custom input {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 12px !important;
    border: 1px solid #dfe5ed !important;
    border-radius: 10px !important;
    background: #fff !important;
    box-shadow: none !important;
    color: #243247 !important;
    font-size: 13px !important;
}

body.site-order .input-group-custom input:focus {
    border-color: var(--order-accent-line, #93b4ef) !important;
    box-shadow: 0 0 0 3px var(--order-accent-soft, rgba(37,99,235,.10)) !important;
}

body.site-order .input-group-custom.field-frosted input {
    background: #f8fafc !important;
    border-color: #dfe5ed !important;
}

body.site-order .input-group-custom:focus-within {
    border: 0 !important;
    box-shadow: none !important;
}

@media (max-width: 640px) {
    body.site-center .wrap,
    body.site-recharge .wrap { width: min(100% - 20px, 720px) !important; padding-top: 12px !important; }
    body.site-center .hero { padding: 16px !important; }
    body.site-center .subsite-panel,
    body.site-center .subsite-agent-panel { padding: 13px !important; }
    body.site-recharge .wrap { padding-bottom: 28px !important; }
    body.site-recharge form { padding: 13px !important; }
    body.site-order .input-group-custom { min-height: 42px !important; margin-bottom: 7px !important; }
    body.site-order .input-group-custom input { height: 42px !important; }
}

/* Claim amount and claim action share the same baseline row. */
@media (max-width: 640px) {
    body.site-index .ins-grid .product-card.ins-card:has(.free-claim-btn) .ins-card-body {
        grid-template-columns: minmax(0, 1fr) auto auto !important;
        grid-template-rows: 1fr 1fr !important;
        column-gap: 8px !important;
    }
    body.site-index .ins-grid .product-card.ins-card:has(.free-claim-btn) .p-price {
        grid-column: 2 !important;
        grid-row: 2 !important;
        align-self: center !important;
        justify-self: end !important;
    }
    body.site-index .ins-grid .product-card.ins-card:has(.free-claim-btn) .free-claim-btn {
        grid-column: 3 !important;
        grid-row: 2 !important;
        align-self: center !important;
        margin: 0 !important;
    }
    body.site-index .ins-grid .product-card.ins-card:has(.free-claim-btn) .ins-card-footline,
    body.site-index .ins-grid .product-card.ins-card:has(.free-claim-btn) .ins-card-meta {
        grid-column: 1 !important;
        grid-row: 2 !important;
        align-self: center !important;
        margin-top: 0 !important;
    }
}

/* Daily-claim products keep the standard card and add a second action below. */
@media (max-width: 640px) {
    body.site-index .ins-grid .product-card.ins-card:has(.free-claim-btn) {
        display: block !important;
        height: 82px !important;
        min-height: 82px !important;
        padding: 0 !important;
    }

    body.site-index .ins-grid .product-card.ins-card:has(.free-claim-btn) .ins-card-body {
        display: grid !important;
        position: static !important;
        width: calc(100% - 68px) !important;
        height: 69px !important;
        min-height: 69px !important;
        grid-template-columns: minmax(0, 1fr) 82px !important;
        grid-template-rows: auto auto !important;
        align-items: center !important;
        column-gap: 0 !important;
        padding: 8px 8px 7px 3px !important;
    }

    body.site-index .ins-grid .product-card.ins-card:has(.free-claim-btn) .p-name {
        grid-column: 1 !important;
        grid-row: 1 !important;
        align-self: center !important;
        min-width: 0 !important;
        padding-right: 8px !important;
        font-size: 12px !important;
        font-weight: 650 !important;
        line-height: 1.3 !important;
    }

    body.site-index .ins-grid .product-card.ins-card:has(.free-claim-btn) .p-price {
        grid-column: 2 !important;
        grid-row: 1 / span 2 !important;
        align-self: center !important;
        justify-self: stretch !important;
        margin: 0 !important;
        color: #526176 !important;
        font-size: 14px !important;
        font-weight: 720 !important;
        font-variant-numeric: tabular-nums !important;
        line-height: 1 !important;
        text-align: right !important;
    }

    body.site-index .ins-grid .product-card.ins-card:has(.free-claim-btn) .p-price small {
        margin-right: 1px !important;
        color: #718096 !important;
        font-size: 9px !important;
        font-weight: 650 !important;
    }

    body.site-index .ins-grid .product-card.ins-card:has(.free-claim-btn) .free-claim-btn {
        position: absolute !important;
        top: 50px !important;
        right: 7px !important;
        width: 72px !important;
        min-width: 72px !important;
        height: 22px !important;
        min-height: 22px !important;
        margin: 0 !important;
        padding: 0 4px !important;
        font-size: 8px !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    body.site-index .ins-grid .product-card.ins-card:has(.free-claim-btn) .ins-card-footline,
    body.site-index .ins-grid .product-card.ins-card:has(.free-claim-btn) .ins-card-meta {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
        align-self: center !important;
        justify-content: flex-start !important;
        margin: 0 !important;
    }

    body.site-index .ins-grid .product-card.ins-card:has(.free-claim-btn) > .ins-card-foot {
        position: absolute !important;
        top: 22px !important;
        right: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 68px !important;
        height: 25px !important;
        min-height: 25px !important;
        margin: 0 !important;
        padding: 0 7px !important;
        transform: none !important;
    }

    body.site-index .ins-grid .product-card.ins-card:has(.free-claim-btn) > .ins-card-foot .ins-card-action {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 54px !important;
        min-width: 54px !important;
        height: 25px !important;
        min-height: 25px !important;
        margin: 0 !important;
        padding: 0 3px !important;
        font-size: 9px !important;
        line-height: 1 !important;
    }

    body.site-index .ins-grid .product-card.ins-card:has(.free-claim-btn) .ins-card-footline .ins-card-action {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 54px !important;
        min-width: 54px !important;
        height: 25px !important;
        min-height: 25px !important;
        margin: 0 !important;
        padding: 0 3px !important;
        font-size: 9px !important;
        line-height: 1 !important;
    }

    body.site-index .ins-grid .product-card.ins-card:has(.free-claim-btn) .ins-card-footline .ins-card-action {
        position: absolute !important;
        top: 22px !important;
        right: 7px !important;
    }
}

/* Final mobile catalog alignment pass. */
@media (max-width: 640px) {
    body.site-index .ins-tabs {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: stretch !important;
        overflow: visible !important;
        height: auto !important;
        max-height: none !important;
        gap: 5px !important;
    }

    body.site-index .ins-tab,
    body.site-index .ins-tab.is-special {
        flex: 1 1 calc(33.333% - 5px) !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        min-height: 36px !important;
        height: auto !important;
        padding: 5px 4px !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        line-height: 1.2 !important;
    }

    body.site-index .ins-tab-label-short {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        overflow: visible !important;
        text-overflow: clip !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
    }

    body.site-index .ins-grid:not(.ins-grid-compact) .product-card.ins-card:not(:has(.free-claim-btn)) .ins-card-body {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 82px !important;
        grid-template-rows: auto auto !important;
        align-items: center !important;
        column-gap: 8px !important;
        width: 100% !important;
    }

    body.site-index .ins-grid:not(.ins-grid-compact) .product-card.ins-card:not(:has(.free-claim-btn)) .p-price {
        grid-column: 2 !important;
        grid-row: 1 / span 2 !important;
        justify-self: end !important;
        align-self: center !important;
        width: 100% !important;
        margin: 0 !important;
        padding-left: 8px !important;
        text-align: right !important;
    }

    body.site-index .ins-grid:not(.ins-grid-compact) .product-card.ins-card:not(:has(.free-claim-btn)) .ins-card-footline {
        display: contents !important;
    }

    body.site-index .ins-grid:not(.ins-grid-compact) .product-card.ins-card:not(:has(.free-claim-btn)) .p-stock {
        grid-column: 1 !important;
        grid-row: 2 !important;
        justify-self: start !important;
    }

    body.site-index .ins-grid:not(.ins-grid-compact) .product-card.ins-card:not(:has(.free-claim-btn)) .ins-card-action {
        grid-column: 2 !important;
        grid-row: 2 !important;
        justify-self: end !important;
        align-self: end !important;
        min-width: 54px !important;
        margin-left: auto !important;
    }
}
