:root {
    --bg: #fffdf4;
    --bg-soft: #ffffff;
    --card: rgba(255, 255, 255, 0.94);
    --card-strong: #ffffff;
    --text: #000000;
    --muted: #4a4a4a;
    --muted-soft: #7a7a7a;
    --primary: #fdd000;
    --primary-2: #f27e00;
    --primary-3: #000000;
    --border: rgba(0, 0, 0, 0.1);
    --danger: #d94b32;
    --success: #2f8f6a;
    --shadow: 0 22px 50px rgba(0, 0, 0, 0.1);
    --shadow-soft: 0 12px 28px rgba(0, 0, 0, 0.08);
    --glass: rgba(255, 255, 255, 0.64);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: var(--bg);
}

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

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

input,
select,
textarea,
button {
    font: inherit;
}

.frontend-shell {
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 0 14px;
}

.mobile-app {
    position: relative;
    width: 100%;
    max-width: 430px;
    min-height: 100vh;
    padding: 70px 0 150px;
}

.mobile-app::before,
.mobile-app::after {
    display: none;
}

.mobile-app::before {
    content: none;
}

.mobile-app::after {
    content: none;
}

.mobile-header,
.section-title,
.merchant-row,
.panel-head,
.inline-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mobile-header {
    position: fixed;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    z-index: 16;
    width:100%;
    max-width: 430px;
    min-height: 52px;
    margin-bottom: 0;
    padding: 5px 15px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius:0px;
    background: #ffffff;
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-soft);
}

.header-back-btn {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary-3);
    cursor: pointer;
}

.header-avatar-btn {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: var(--shadow-soft);
}

.header-avatar-image,
.header-avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 14px;
}

.header-avatar-image {
    object-fit: cover;
}

.header-avatar-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #000000;
    font-size: 15px;
    font-weight: 700;
}

.header-back-btn span {
    font-size: 28px;
    line-height: 1;
    transform: translateX(-1px);
}

.header-brand {
    display: none;
}

.header-brand-title {
    margin: 0;
    font-size: 26px;
    letter-spacing: 0.2px;
}

.header-page-title {
    position: absolute;
    top: 50%;
    left: 50%;
    width: calc(100% - 150px);
    margin: 0;
    transform: translate(-50%, -50%);
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 18px;
    line-height: 1.2;
}

.eyebrow {
    margin: 0 0 6px;
    color: var(--primary-2);
    font-size: 11px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.mobile-header h1,
.section-title h3,
.panel-head h3,
.detail-panel h2,
.panel-lead h2 {
    margin: 0;
}

.ghost-link,
.section-title a,
.inline-link {
    color: var(--primary-3);
    font-size: 13px;
    font-weight: 600;
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    position: relative;
    z-index: 1;
}

.header-user-link {
    display: none;
}

.lang-switcher {
    position: relative;
}

.lang-switcher summary {
    list-style: none;
    cursor: pointer;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.92);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-3);
    font-size: 12px;
    font-weight: 600;
}

.lang-switcher summary::-webkit-details-marker {
    display: none;
}

.lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 136px;
    padding: 8px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 253, 247, 0.96);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
}

.lang-menu a {
    display: block;
    padding: 9px 10px;
    border-radius: 12px;
    font-size: 12px;
    color: var(--text);
}

.lang-menu a.active,
.lang-menu a:hover {
    background: rgba(253, 208, 0, 0.18);
    color: var(--primary-3);
}

.page-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

html.is-mini-program .mobile-app {
    padding-top: 20px;
}

html.is-mini-program .mobile-header {
    position: sticky;
    left: auto;
    transform: none;
    z-index: 8;
    width: auto;
    max-width: none;
    min-height: 0;
    margin-bottom: 18px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.52);
    border-radius: 24px;
    background: #ffffff;
}

html.is-mini-program .header-back-btn,
html.is-mini-program .header-page-title {
    display: none;
}

html.is-mini-program .header-brand,
html.is-mini-program .header-user-link {
    display: block;
}

.hero-card,
.panel,
.benefit-card,
.receipt-card,
.profile-card,
.detail-panel,
.guide-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.elevated-panel {
    background: #fffbea;
}

.premium-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.3fr 0.85fr;
    gap: 16px;
    padding: 24px;
    background: var(--primary);
    color: #000000;
}

.premium-hero::before {
    display: none;
}

.hero-copy,
.hero-side {
    position: relative;
    z-index: 1;
}

.hero-card h2 {
    margin: 8px 0 10px;
    font-size: 34px;
    line-height: 1;
    letter-spacing: 0.4px;
}

.hero-label {
    margin: 0;
    font-size: 11px;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    opacity: 0.86;
}

.hero-text {
    margin: 0;
    color: rgba(0, 0, 0, 0.72) !important;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.hero-meta span,
.detail-chip,
.guide-badge,
.merchant-mini-tags span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: 0.4px;
}

.hero-meta span {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-side {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
}

.hero-glass {
    padding: 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

.hero-glass p,
.hero-glass span {
    margin: 0;
    color: rgba(255, 248, 239, 0.78);
    font-size: 12px;
}

.hero-glass strong {
    display: block;
    margin: 8px 0 6px;
    font-size: 18px;
    color: #fff;
}

.home-hero {
    display: grid;
    gap: 14px;
    padding: 18px 16px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 236, 220, 0.72), rgba(255, 248, 239, 0.52));
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow);
}

.home-hero-banner {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background:
        radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 48%),
        linear-gradient(135deg, rgba(154, 103, 15, 0.92), rgba(49, 29, 6, 0.94)),
        url("https://coresg-normal.trae.ai/api/ide/v1/text_to_image?prompt=realistic%20luxury%20shopping%20mall%20interior%2C%20warm%20golden%20lighting%2C%20soft%20blur%20background%2C%20premium%20atmosphere%2C%20cinematic%2C%20high%20detail&image_size=landscape_16_9");
    background-size: auto, auto, cover;
    background-position: center, center, center;
    box-shadow: 0 18px 38px rgba(38, 51, 77, 0.12);
}

.home-hero-banner-content {
    position: relative;
    padding: 22px 18px;
    color: rgba(255, 255, 255, 0.92);
}

.home-hero-banner-content h3 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0.2px;
}

.home-hero-banner-content p {
    margin: 0 0 14px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.82);
}

.home-hero-banner-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(253, 208, 0, 0.96), rgba(242, 126, 0, 0.96));
    color: rgba(0, 0, 0, 0.86);
    font-size: 13px;
    font-weight: 800;
}

.home-hero-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255, 225, 193, 0.64);
    border: 1px solid rgba(242, 126, 0, 0.18);
    color: rgba(0, 0, 0, 0.72);
    font-size: 12px;
    line-height: 1.5;
}

.home-hero-notice-icon {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: rgba(242, 126, 0, 0.22);
    flex: 0 0 auto;
    position: relative;
}

.home-hero-notice-icon::before {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 999px;
    background: rgba(242, 126, 0, 0.6);
}

.home-hero-section {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    padding: 0 2px;
}

.home-hero-section-left h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0.2px;
}

.home-hero-section-left span {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    letter-spacing: 0.9px;
    color: rgba(0, 0, 0, 0.48);
}

.home-hero-section-link {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.62);
    white-space: nowrap;
}

.home-hero-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow-soft);
}

.home-hero-card-left h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 900;
}

.home-hero-card-left p {
    margin: 0 0 14px;
    color: rgba(0, 0, 0, 0.58);
    font-size: 12px;
}

.home-hero-card-right {
    display: grid;
    gap: 12px;
    padding: 8px 0;
}

.home-hero-card-right div {
    display: grid;
    gap: 4px;
    justify-items: end;
    text-align: right;
}

.home-hero-card-right strong {
    font-size: 18px;
    color: rgba(0, 0, 0, 0.86);
}

.home-hero-card-right span {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.52);
}

@media (max-width: 380px) {
    .home-hero {
        padding: 16px 14px;
    }

    .home-hero-card {
        grid-template-columns: 1fr;
    }

    .home-hero-card-right div {
        justify-items: start;
        text-align: left;
    }
}

.primary-btn,
.outline-btn,
.danger-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.primary-btn {
    background: var(--primary);
    color: #000000;
    box-shadow: 0 16px 30px rgba(242, 126, 0, 0.24);
}

.outline-btn {
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.danger-btn {
    background: #fff0ec;
    color: var(--danger);
}

.primary-btn:hover,
.outline-btn:hover,
.danger-btn:hover,
.merchant-card:hover,
.price-parity-card:hover,
.guide-card:hover,
.menu-card:hover {
    transform: translateY(-2px);
}

.grid-menu,
.guide-grid,
.price-parity-list,
.merchant-list,
.panel-list {
    display: grid;
    gap: 14px;
}

.public-scroll-footer {
    display: grid;
    gap: 8px;
    margin-top: 16px;
    color: #7b8291;
    font-size: 13px;
}

.public-scroll-status {
    min-height: 20px;
}

.public-scroll-sentinel {
    width: 100%;
    height: 1px;
}

.grid-menu {
    grid-template-columns: repeat(2, 1fr);
}

.menu-card {
    --accent-color: #6b7cff;
    position: relative;
    padding: 15px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 18px 38px rgba(38, 51, 77, 0.08);
    overflow: hidden;
}

.menu-card::before {
width: 0px;
}

.menu-card:nth-child(1) { --accent-color: #6b7cff; }
.menu-card:nth-child(2) { --accent-color: #ff9a2a; }
.menu-card:nth-child(3) { --accent-color: #3ac678; }
.menu-card:nth-child(4) { --accent-color: #3b86ff; }
.menu-card:nth-child(5) { --accent-color: #8a7dff; }
.menu-card:nth-child(6) { --accent-color: #ff9a2a; }
.menu-card:nth-child(7) { --accent-color: #3b86ff; }
.menu-card:nth-child(8) { --accent-color: #8a7dff; }

.menu-content {
    min-width: 0;
    position: relative;
    z-index: 1;
}

.premium-menu-card strong {
    display: block;
    margin: 14px 0 8px;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.2px;
    line-height: 1.25;
}

.premium-menu-card small {
    display: block;
    color: rgba(28, 28, 28, 0.6);
    font-size: 13px;
    line-height: 1.5;
}

.menu-tag {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    height: 34px;
    padding: 0 12px;
    border-radius: 12px;
    background: var(--accent-color);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}

.menu-tag::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 42px;
    height: 2px;
    border-radius: 2px;
    background: var(--accent-color);
    opacity: 0.55;
}

.menu-visual {
    position: absolute;
    right: 16px;
    bottom: 14px;
    z-index: 0;
    pointer-events: none;
    width: 60px;
    height: 60px;
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: contain;
}

.menu-visual::before {
    content: "";
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 999px;
    opacity: 1;
}

.guide-grid {
    grid-template-columns: repeat(2, 1fr);
}

.guide-card,
.merchant-card,
.detail-visual-card {
    overflow: hidden;
}

.premium-guide-card {
    position: relative;
}

.guide-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.guide-card div {
    padding: 14px;
}

.guide-card h4 {
    margin: 8px 0 6px;
    font-size: 15px;
}

.guide-badge {
    background: rgba(253, 208, 0, 0.18);
    color: var(--primary-3);
}

.merchant-card {
    position: relative;
    background: var(--card-strong);
    border: 1px solid rgba(191, 154, 110, 0.18);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.premium-list-card {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    align-items: stretch;
}

.premium-merchant-card::after {
    display: none;
}

.merchant-cover,
.detail-cover {
    width: 100%;
    object-fit: cover;
    aspect-ratio: 16 / 10;
}

.merchant-rate-badge {
    position: absolute;
    top: 14px;
    z-index: 1;
    padding: 8px 12px;
    border-radius: 0px 0px 24px 0px;
    background: rgba(0, 0, 0, 0.8);
    color: #fdd000;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    backdrop-filter: blur(10px);
}

.premium-list-card .merchant-cover {
    height: 100%;
    min-height: 156px;
    aspect-ratio: auto;
}

.premium-list-card::after {
    display: none;
}

.premium-list-card .merchant-rate-badge {
    top: 0px;
    left: 0px;
}

.merchant-body {
    position: relative;
    z-index: 1;
    padding: 16px;
}

.premium-list-card .merchant-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 16px 16px 16px 14px;
}

.premium-list-card .merchant-row {
    align-items: flex-start;
}

.premium-list-card .merchant-row strong {
    font-size: 15px;
    white-space: nowrap;
}

.premium-list-card .merchant-body h4 {
    margin-bottom: 0;
    font-size: 16px;
    line-height: 1.45;
}

.premium-list-card .merchant-mini-tags {
    margin-bottom: 0;
}

.premium-list-card .merchant-body p {
    line-clamp: 1;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.price-parity-toolbar {
    gap: 14px;
}

.price-parity-search {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.price-parity-search input {
    flex: 1;
}

.price-parity-search button {
    flex: 0 0 auto;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 16px;
}

.price-parity-advanced-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 4px 0 0;
    background: transparent;
    border: 0;
    color: var(--muted);
    cursor: pointer;
    position: absolute;
    bottom: -7px;
    left: 0px;
    right: 0px;
}

.price-parity-toolbar.is-advanced-open .price-parity-advanced-toggle {
    display: inline-flex;
}

.price-parity-advanced-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 26px;
    position: relative;
}

.price-parity-advanced-toggle-icon::before {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid rgba(0, 0, 0, 0.46);
    border-bottom: 2px solid rgba(0, 0, 0, 0.46);
    transform: rotate(45deg);
    transition: transform 240ms ease;
}

.price-parity-toolbar.is-advanced-open .price-parity-advanced-toggle-icon::before {
    transform: rotate(-135deg);
}

.price-parity-advanced {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-6px);
    transition: max-height 360ms ease, opacity 240ms ease, transform 360ms ease;
    display: grid;
    gap: 14px;
}

.price-parity-toolbar.is-advanced-open .price-parity-advanced {
    max-height: 680px;
    opacity: 1;
    transform: translateY(0);
}

.price-parity-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.price-parity-controls select {
    flex: 1 1 0;
    min-width: 110px;
}

.price-parity-exchange-panel {
    display: grid;
    gap: 12px;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 18px 38px rgba(38, 51, 77, 0.08);
}

.price-parity-exchange-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.price-parity-exchange-title {
    display: grid;
    gap: 4px;
}

.price-parity-exchange-title strong {
    font-size: 15px;
    font-weight: 800;
}

.price-parity-exchange-title span {
    color: var(--muted);
    font-size: 13px;
}

.price-parity-exchange-value {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
}

.price-parity-exchange-slider {
    padding: 4px 0 0;
}

.price-parity-exchange-slider input[type="range"] {
    width: 100%;
    height: 28px;
    background: transparent;
    appearance: none;
}

.price-parity-exchange-slider input[type="range"]::-webkit-slider-runnable-track {
    height: 2px;
    border-radius: 999px;
    background: rgba(242, 126, 0, 0.9);
}

.price-parity-exchange-slider input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: rgba(242, 126, 0, 0.96);
    border: 4px solid rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 24px rgba(242, 126, 0, 0.28);
    margin-top: -10px;
}

.price-parity-exchange-slider input[type="range"]::-moz-range-track {
    height: 2px;
    border-radius: 999px;
    background: rgba(242, 126, 0, 0.9);
}

.price-parity-exchange-slider input[type="range"]::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: rgba(242, 126, 0, 0.96);
    border: 4px solid rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 24px rgba(242, 126, 0, 0.28);
}

.price-parity-exchange-scale {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 12px;
}

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

.price-parity-exchange-actions .outline-btn,
.price-parity-exchange-actions .primary-btn {
    min-height: 46px;
    border-radius: 999px;
}

.price-parity-card {
    overflow: hidden;
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    background: var(--card-strong);
    border: 1px solid rgba(191, 154, 110, 0.18);
    border-radius: 24px;
    box-shadow: var(--shadow);
    color: inherit;
}

.price-parity-cover {
    width: 100%;
    object-fit: cover;
    margin: auto;
}

.price-parity-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0px;
    padding: 16px 16px 16px 14px;
}

.price-parity-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.price-parity-head h4 {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    line-clamp: 2;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.price-parity-label {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(242, 126, 0, 0.14);
    color: rgba(242, 126, 0, 0.92);
    font-size: 11px;
    letter-spacing: 0.4px;
    white-space: nowrap;
}

.price-parity-sku {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.price-parity-prices {
    display: grid;
    gap: 6px;
}

.price-parity-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.price-parity-price-row strong {
    font-size: 16px;
    color: var(--text);
}

.price-parity-price-row.is-arrival strong {
    color: rgba(242, 126, 0, 0.96);
}

.price-parity-price-row small {
    margin-left: 2px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.price-parity-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    flex: 0 0 auto;
}

.price-parity-tag.is-cn {
    background: rgba(233, 61, 68, 0.96);
}

.price-parity-tag.is-jp {
    background: rgba(242, 126, 0, 0.96);
}

.price-parity-detail-hero {
    display: grid;
    gap: 14px;
    margin-bottom: 12px;
}

.price-parity-detail-visual {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 24px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.price-parity-detail-visual img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    background: #ffffff;
}

.price-parity-detail-summary {
    padding: 4px 2px 0;
}

.price-parity-detail-summary h2 {
    margin: 0 0 6px;
    font-size: 18px;
    letter-spacing: 0.2px;
}

.price-parity-detail-subtitle {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.price-parity-detail-sku {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 10px;
}

.price-parity-copy-btn {
    flex: 0 0 auto;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
    font-size: 12px;
    cursor: pointer;
}

.price-parity-detail-price-row {
    display: grid;
    gap: 10px;
}

.price-parity-detail-price-col {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.price-parity-detail-price-col strong {
    font-size: 18px;
    font-weight: 900;
}

.price-parity-detail-price-col small {
    margin-left: 6px;
    color: var(--muted);
    font-size: 12px;
}

.price-parity-detail-panel {
    padding: 16px;
}

.price-parity-detail-panel-title {
    margin: 0 0 10px;
    font-size: 15px;
}

.price-parity-store-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 2px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.price-parity-store-row strong {
    font-size: 13px;
}

.price-parity-store-price {
    font-size: 13px;
    font-weight: 800;
    color: rgba(242, 126, 0, 0.96);
}

.price-parity-store {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.price-parity-store-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 2px;
    background: transparent;
    border: 0;
    cursor: pointer;
    text-align: left;
}

.price-parity-store-toggle span {
    font-size: 13px;
    color: var(--text);
}

.price-parity-store-toggle-right {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.price-parity-store-toggle-right strong {
    font-size: 13px;
    font-weight: 800;
    color: rgba(242, 126, 0, 0.96);
}

.price-parity-store-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-soft);
}

.price-parity-store-chevron::before {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 2px solid rgba(0, 0, 0, 0.46);
    border-bottom: 2px solid rgba(0, 0, 0, 0.46);
    transform: rotate(45deg);
    transition: transform 240ms ease;
}

.price-parity-store.is-open .price-parity-store-chevron::before {
    transform: rotate(-135deg);
}

.price-parity-store-body {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-6px);
    transition: max-height 360ms ease, opacity 240ms ease, transform 360ms ease;
    padding: 0 2px;
}

.price-parity-store.is-open .price-parity-store-body {
    opacity: 1;
    transform: translateY(0);
    max-height: 900px;
    padding-bottom: 14px;
}

.price-parity-detail-meta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(242, 126, 0, 0.10);
    color: rgba(242, 126, 0, 0.92);
    font-size: 12px;
    margin: 8px 0 10px;
}

.price-parity-detail-breakdown {
    display: grid;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.price-parity-detail-breakdown-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
    color: var(--muted);
}

.price-parity-detail-breakdown-row strong {
    color: var(--text);
    font-weight: 700;
}

.price-parity-detail-breakdown-row.is-total {
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1px dashed rgba(0, 0, 0, 0.12);
    color: var(--text);
}

.price-parity-detail-breakdown-row.is-total strong {
    color: rgba(242, 126, 0, 0.96);
    font-weight: 900;
}

.price-parity-detail-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.price-parity-detail-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    border-radius: 18px;
    font-weight: 800;
    font-size: 14px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow);
}

.price-parity-detail-link-btn.is-cn {
    background: #fdd000;
    color: #ffffff;
}

.price-parity-detail-link-btn.is-jp {
    background: #fdd000;
    color: #ffffff;
    opacity: 0.92;
}

.merchant-body h4,
.benefit-card h4,
.receipt-card h4 {
    margin: 0 0 6px;
}

.merchant-body h4 {
    font-size: 17px;
}

.merchant-body p,
.benefit-card p,
.receipt-card p,
.detail-panel p,
.guide-card p,
.empty-state p,
.panel-head span,
.panel-lead span,
.detail-meta-list p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.merchant-row strong,
.stats-grid strong,
.benefit-card strong {
    color: var(--primary-3);
    font-size: 18px;
}

.merchant-mini-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.merchant-mini-tags span {
    background: rgba(253, 208, 0, 0.14);
    color: var(--primary-3);
}

.stacked-form,
.two-column-form {
    display: grid;
    gap: 12px;
}

.stacked-form.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stacked-form.two-col button {
    grid-column: 1 / -1;
}

.stacked-form input,
.stacked-form select,
.stacked-form textarea,
.two-column-form input,
.two-column-form select,
.two-column-form textarea {
    width: 100%;
    min-height: 46px;
    padding: 12px 14px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.84);
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.upload-file-field {
    display: grid;
    gap: 10px;
    position: relative;
}

.field-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.field-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
}

.field-hint {
    color: var(--muted);
    font-size: 12px;
    text-align: right;
}

.merchant-search-field,
.date-picker-field,
.payment-choice-field {
    display: grid;
    gap: 10px;
}

.merchant-search-input,
.date-picker-trigger {
    width: 100%;
    min-height: 52px;
    padding: 13px 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.merchant-search-input:focus,
.date-picker-trigger:focus {
    outline: none;
    border-color: rgba(242, 126, 0, 0.5);
    box-shadow: 0 0 0 4px rgba(253, 208, 0, 0.18);
}

.merchant-search-field {
    position: relative;
}

.merchant-search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: grid;
    gap: 14px;
    padding: 14px;
    border-radius: 22px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 253, 247, 0.98);
    box-shadow: 0 24px 44px rgba(0, 0, 0, 0.12);
    z-index: 10;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
}

.merchant-search-field.is-open .merchant-search-dropdown {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.merchant-search-title {
    display: block;
    margin-bottom: 10px;
    color: var(--muted-soft);
    font-size: 11px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.merchant-search-tags,
.payment-choice-grid {
    display: grid;
    gap: 10px;
}

.merchant-search-tags {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.merchant-related-chip,
.merchant-search-option {
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.88);
    color: var(--text);
}

.merchant-related-chip {
    min-height: 40px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.merchant-search-results {
    display: grid;
    gap: 8px;
    max-height: 240px;
    overflow-y: auto;
}

.merchant-search-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 14px;
    border-radius: 18px;
    text-align: left;
}

.merchant-search-option.is-selected {
    border-color: rgba(242, 126, 0, 0.26);
    background: rgba(253, 208, 0, 0.16);
}

.merchant-search-option-name {
    font-weight: 700;
}

.merchant-search-option-meta,
.merchant-search-empty {
    color: var(--muted);
    font-size: 12px;
}

.date-picker-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.date-picker-trigger-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 16px;
    background: rgba(253, 208, 0, 0.18);
    color: #000000;
    flex: 0 0 auto;
}

.date-picker-trigger-icon svg,
.payment-choice-icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.date-picker-trigger-copy {
    display: grid;
    gap: 4px;
}

.date-picker-trigger-label {
    color: var(--muted);
    font-size: 12px;
}

.date-picker-sheet {
    position: fixed;
    inset: 0;
    z-index: 40;
}

.date-picker-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.34);
}

.date-picker-panel {
    position: absolute;
    left: 50%;
    right: auto;
    top: 0;
    width: min(430px, 100%);
    height: 100%;
    transform: translateX(-50%);
    padding: 18px 18px 24px;
    border-radius:0;
    background: linear-gradient(180deg, rgba(255, 253, 247, 0.98), rgba(255, 248, 239, 0.98));
    box-shadow: 0 -18px 40px rgba(0, 0, 0, 0.16);
    animation: receiptDateSheetIn 260ms ease-out both;
}

.date-picker-panel-head,
.date-picker-nav,
.date-picker-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.date-picker-panel-head {
    margin-bottom: 14px;
}

.date-picker-panel-head strong {
    display: block;
    font-size: 20px;
}

.date-picker-close,
.date-picker-nav-btn {
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
}

.date-picker-close {
    width: 40px;
    padding: 0;
    font-size: 24px;
    line-height: 1;
}

.date-picker-nav {
    margin-bottom: 12px;
}

.date-picker-weekdays,
.date-picker-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}

.date-picker-weekdays {
    margin-bottom: 8px;
}

.date-picker-weekdays span {
    text-align: center;
    color: var(--muted-soft);
    font-size: 11px;
}

.date-picker-day {
    min-height: 44px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--text);
    font-weight: 600;
}

.date-picker-day.is-muted {
    opacity: 0.4;
}

.date-picker-day.is-today {
    border-color: rgba(242, 126, 0, 0.3);
}

.date-picker-day.is-selected {
    border-color: transparent;
    background: linear-gradient(135deg, rgba(253, 208, 0, 0.96), rgba(242, 126, 0, 0.92));
    color: #000000;
    box-shadow: 0 10px 20px rgba(242, 126, 0, 0.18);
}

.date-picker-actions {
    margin-top: 16px;
}

.date-picker-actions .outline-btn,
.date-picker-actions .primary-btn {
    flex: 1 1 auto;
}

.payment-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.payment-choice-card {
    position: relative;
    display: block;
}

.payment-choice-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.payment-choice-card-inner {
    display: grid;
    justify-items: center;
    gap: 10px;
    min-height: 114px;
    padding: 18px 14px;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.payment-choice-card input:checked + .payment-choice-card-inner {
    border-color: transparent;
    background: linear-gradient(180deg, rgba(253, 208, 0, 0.22), rgba(255, 255, 255, 0.94));
    box-shadow: 0 14px 28px rgba(242, 126, 0, 0.16);
}

.payment-choice-card input:focus + .payment-choice-card-inner {
    box-shadow: 0 0 0 4px rgba(253, 208, 0, 0.18);
}

.payment-choice-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    color: #ffffff;
}

.payment-choice-icon.is-alipay {
    background: linear-gradient(135deg, #1677ff, #3bb1ff);
}

.payment-choice-icon.is-wechat {
    background: linear-gradient(135deg, #20c65a, #59df78);
}

.payment-choice-icon.is-card {
    background: linear-gradient(135deg, #2f3140, #555a76);
}

.payment-choice-icon.is-cash {
    background: linear-gradient(135deg, #f27e00, #f0b000);
}

.payment-choice-text {
    font-size: 13px;
    font-weight: 700;
}

.upload-file-field input[type="file"] {
    display: none;
}

.upload-file-trigger {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 18px;
    border: 1px dashed rgba(0, 0, 0, 0.16);
    background: rgba(255, 255, 255, 0.78);
    color: var(--text);
    font-weight: 600;
}

.upload-file-trigger.is-error {
    border-color: rgba(255, 77, 79, 0.85);
    background: rgba(255, 77, 79, 0.08);
    box-shadow: 0 0 0 4px rgba(255, 77, 79, 0.12);
    animation: appShake 0.35s ease-in-out;
}

@keyframes appShake {
    0% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-6px);
    }
    50% {
        transform: translateX(6px);
    }
    75% {
        transform: translateX(-4px);
    }
    100% {
        transform: translateX(0);
    }
}

.app-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 9999;
    max-width: min(86vw, 360px);
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(30, 32, 38, 0.92);
    color: #ffffff;
    font-size: 14px;
    line-height: 1.35;
    text-align: center;
    opacity: 0;
    transform: translate(-50%, 16px);
    transition: opacity 160ms ease, transform 160ms ease;
    pointer-events: none;
}

.app-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.app-field-tip {
    position: fixed;
    z-index: 9999;
    max-width: min(86vw, 320px);
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(30, 32, 38, 0.92);
    color: #ffffff;
    font-size: 13px;
    line-height: 1.35;
    opacity: 0;
    transform: translate(-50%, -100%) translateY(-10px) scale(0.98);
    transform-origin: bottom center;
    transition: opacity 160ms ease, transform 160ms ease;
    pointer-events: none;
}

.app-field-tip::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 12px;
    height: 12px;
    background: rgba(30, 32, 38, 0.92);
    transform: translateX(-50%) rotate(45deg);
    border-radius: 2px;
}

.app-field-tip.is-visible {
    opacity: 1;
    transform: translate(-50%, -100%) translateY(-2px) scale(1);
}

.receipt-upload-preview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.receipt-preview-item {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.86);
    aspect-ratio: 1 / 1;
    box-shadow: var(--shadow-soft);
}

.receipt-preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.receipt-preview-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    font-size: 18px;
    line-height: 1;
}

@keyframes receiptDateSheetIn {
    from {
        transform: translate(-50%, 22px);
        opacity: 0;
    }

    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

.stacked-form input:focus,
.stacked-form select:focus,
.stacked-form textarea:focus,
.two-column-form input:focus,
.two-column-form select:focus,
.two-column-form textarea:focus {
    outline: none;
    border-color: rgba(242, 126, 0, 0.5);
    box-shadow: 0 0 0 4px rgba(253, 208, 0, 0.18);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.stats-grid.large {
    grid-template-columns: repeat(2, 1fr);
}

.stats-grid div,
.tip-box,
.status-tab {
    padding: 14px;
    border: 1px solid rgba(195, 157, 108, 0.18);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.76);
}

.stats-grid span {
    display: block;
    color: var(--muted-soft);
    font-size: 12px;
}

.stats-grid small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 11px;
}

.premium-stats div {
    background: #ffffff;
}

.status-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.status-tabs::-webkit-scrollbar {
    display: none;
}

.status-tab {
    white-space: nowrap;
    font-size: 13px;
    font-weight: 600;
}

.status-tab.active,
.tab-item.active {
    background: var(--primary);
    color: #000000;
    border-color: transparent;
}

.detail-panel,
.panel,
.benefit-card,
.receipt-card,
.profile-card {
    padding: 18px;
}

.detail-hero {
    display: grid;
    gap: 14px;
}

.detail-visual-card {
    position: relative;
    border-radius: 26px;
    box-shadow: var(--shadow);
}

.detail-overlay {
    position: absolute;
    inset: auto 14px 14px 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(12px);
}

.detail-chip {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.detail-overlay strong {
    margin-left: auto;
    color: #fff;
    font-size: 16px;
}

.detail-summary {
    margin-bottom: 12px !important;
}

.detail-meta-list {
    display: grid;
    gap: 10px;
    margin-top: 2px;
}

.detail-meta-list strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text);
    font-size: 12px;
}

.premium-benefit-card {
    background: #ffffff;
}

.filter-panel {
    gap: 16px;
}

.panel-lead {
    margin-bottom: 14px;
}

.panel-lead h2 {
    margin-bottom: 6px;
    font-size: 22px;
}

.switch-group,
.radio-card,
.menu-list {
    display: grid;
    gap: 10px;
}

.tab-switch-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 6px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: var(--shadow-soft);
}

.tab-switch-item {
    position: relative;
    display: block;
    cursor: pointer;
}

.tab-switch-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.tab-switch-item span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 14px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    transition: background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.tab-switch-item input[type="radio"]:checked + span {
    background: var(--primary);
    color: #000000;
    box-shadow: 0 12px 24px rgba(242, 126, 0, 0.2);
}

.tab-switch-item:hover span {
    transform: translateY(-1px);
}

.radio-card {
    grid-template-columns: 24px 1fr;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.80);
}

.radio-switch-card {
    position: relative;
    grid-template-columns: 1fr auto;
    gap: 14px;
    cursor: pointer;
    transition: border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.radio-switch-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.radio-switch-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.radio-switch-ui {
    position: relative;
    width: 52px;
    height: 30px;
    border-radius: 999px;
    background: #d9e0eb;
    transition: background 0.22s ease;
}

.radio-switch-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 6px 14px rgba(18, 30, 59, 0.18);
    transition: transform 0.22s ease;
}

.radio-switch-card:hover {
    transform: translateY(-1px);
}

.radio-switch-card input[type="radio"]:checked + .radio-switch-text {
    color: var(--primary-3);
}

.radio-switch-card input[type="radio"]:checked ~ .radio-switch-ui {
    background: var(--primary);
}

.radio-switch-card input[type="radio"]:checked ~ .radio-switch-ui .radio-switch-thumb {
    transform: translateX(22px);
}

.radio-switch-card:has(input[type="radio"]:checked) {
    border-color: rgba(242, 126, 0, 0.22);
    background: #fffbea;
    box-shadow: var(--shadow-soft);
}

.menu-list a {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: var(--shadow-soft);
}

.menu-action-button {
    width: 100%;
    padding: 16px;
    text-align: left;
    font: inherit;
    color: var(--danger);
    border: 1px solid rgba(200, 78, 59, 0.18);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-soft);
}

.auth-card {
    padding: 22px 18px;
    border-radius: 28px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background:
        radial-gradient(circle at top right, rgba(253, 208, 0, 0.16), rgba(253, 208, 0, 0) 36%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 248, 239, 0.88));
    box-shadow: var(--shadow);
}

.auth-head {
    display: grid;
    grid-template-rows: auto auto auto;
    gap: 8px;
    margin-bottom: 16px;
}

.auth-head .eyebrow {
    display: block;
    margin-bottom: 0;
}

.auth-head h2 {
    margin: 0;
    font-size: 26px;
}

.auth-head-desc {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.auth-form {
    gap: 14px;
}

.auth-actions,
.empty-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 22px rgba(93, 53, 19, 0.12);
}

.avatar-uploader {
    position: relative;
    width: 70px;
    height: 70px;
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    flex: 0 0 auto;
}

.avatar-uploader:focus-visible {
    outline: 3px solid rgba(242, 126, 0, 0.45);
    outline-offset: 4px;
}

.avatar-uploader .avatar {
    display: block;
}

.avatar-uploader.is-uploading .avatar {
    opacity: 0.65;
}

.avatar-edit-badge {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid rgba(255, 255, 255, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(0, 0, 0, 0.88);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.12);
}

.avatar-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.profile-card {
    display: flex;
    align-items: center;
    gap: 14px;
}

.empty-state {
    padding: 34px 22px;
    text-align: center;
    border-radius: 24px;
    border: 1px dashed rgba(242, 126, 0, 0.34);
    background: rgba(255, 255, 255, 0.64);
    backdrop-filter: blur(12px);
}

.empty-state h3 {
    margin: 0 0 8px;
}

.empty-actions {
    margin-top: 18px;
}

.empty-state.small {
    padding: 20px 16px;
}

.danger-text {
    color: var(--danger) !important;
}

.status-pill {
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    color: #fff;
}

.status-pending { background: #c58912; }
.status-approved { background: #2b9b70; }
.status-rejected { background: #c84e3b; }
.status-settled { background: #3468c0; }

.bottom-tab {
    position: fixed;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    width: calc(100% - 28px);
    max-width: 430px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    padding: 8px 10px 10px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(18px);
    z-index: 9999999;
    animation: bottomTabFade 520ms ease-out both;
}

.tab-item {
    --enter-delay: 0ms;
    min-height: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 6px 4px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    text-align: center;
    animation: tabItemReveal 520ms ease-out both;
    animation-delay: var(--enter-delay);
    transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.tab-item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 15px;
    background: var(--primary);;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.tab-item-icon img {
    width: 23px;
    height: 23px;
    object-fit: contain;
}

.tab-item-label {
    display: block;
    line-height: 1.15;
    white-space: nowrap;
}

.bottom-tab .tab-item:nth-child(1) { --enter-delay: 0ms; }
.bottom-tab .tab-item:nth-child(2) { --enter-delay: 70ms; }
.bottom-tab .tab-item:nth-child(3) { --enter-delay: 140ms; }
.bottom-tab .tab-item:nth-child(4) { --enter-delay: 210ms; }
.bottom-tab .tab-item:nth-child(5) { --enter-delay: 280ms; }

.tab-item.active {
    background:#ffffff;
    color: #000000;
    border-bottom: solid 2px #fdd001;
}

.tab-item.active .tab-item-icon {
    background: var(--primary);;
}

.tab-item.tab-item-center {
    min-height: 78px;
    margin-top: -18px;
    color: #000;
    animation: tabItemReveal 520ms ease-out both, serviceBounce 1800ms ease-in-out infinite;
    animation-delay: var(--enter-delay), calc(var(--enter-delay) + 520ms);
    will-change: transform;
}

.tab-item.tab-item-center .tab-item-icon {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    background: var(--primary);;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.tab-item.tab-item-center .tab-item-icon img {
    width: 30px;
    height: 30px;
}

.tab-item.tab-item-center .tab-item-label {
    font-size: 12px;
    font-weight: 700;
}

@keyframes bottomTabFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes tabItemReveal {
    from { opacity: 0; transform: translateX(-14px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes serviceBounce {
    0% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .bottom-tab,
    .tab-item,
    .tab-item.tab-item-center {
        animation: none;
    }

    .tab-item {
        opacity: 1;
    }
}

.customer-service-list {
    display: grid;
    gap: 12px;
}

.customer-service-card {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow);
    width: 100%;
    text-align: left;
    cursor: pointer;
    color: inherit;
}

.customer-service-qr {
    width: 84px;
    height: 84px;
    border-radius: 16px;
    object-fit: cover;
    background: rgba(0, 0, 0, 0.04);
}

.customer-service-body {
    display: grid;
    gap: 8px;
    align-content: start;
}

.customer-service-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.customer-service-row h4 {
    margin: 0;
    font-size: 15px;
}

.customer-service-meta {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
}

.status-online { background: #2b9b70; }
.status-offline { background: #9aa4b2; }

@media (max-width: 380px) {
    .grid-menu {
        grid-template-columns: 1fr;
    }

    .premium-list-card {
        grid-template-columns: 108px minmax(0, 1fr);
    }

    .stacked-form.two-col {
        grid-template-columns: 1fr;
    }

    .premium-list-card .merchant-cover {
        min-height: 142px;
    }

    .guide-grid,
    .stats-grid,
    .stats-grid.large {
        grid-template-columns: 1fr;
    }
}
