/* ==========================================================================
   FastAdmin Native Mobile H5 Stylesheet
   Pixel-accurate 1:1 visual reproduction with PC (max-width:480px) & Mobile (375px+) dual-device shell
   ========================================================================== */

:root {
    --coral-start: #FF4646;
    --coral-end: #FF5752;
    --coral: #FF4D4F;
    --coral-dark: #E53935;
    --orange-accent: #EA580C;
    --orange-light: #FFF3E0;
    --blue-accent: #4A6CF7;
    --blue-light: #E8F1FF;
    --green-badge: #34A818;
    --bg-page: #F5F6F8;
    --bg-outer: #ECEEF2;
    --bg-card: #FFFFFF;
    --text-primary: #1A1A1A;
    --text-regular: #333333;
    --text-secondary: #666666;
    --text-muted: #999999;
    --border-light: #F0F0F0;
    --shell-width: 480px;
    --header-height: 46px;
    --tabbar-height: 56px;
}

*, *::before, *::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.45;
    color: var(--text-primary);
    background-color: var(--bg-page);
    -webkit-font-smoothing: antialiased;
}

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

button, input, textarea, select {
    font-family: inherit;
    outline: none;
}

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

/* Dual-device shell: Mobile full width, PC centered 480px soft shadow */
@media screen and (min-width: 481px) {
    body {
        background-color: var(--bg-outer);
    }
}

.h5-shell {
    width: 100%;
    max-width: var(--shell-width);
    min-height: 100vh;
    margin: 0 auto;
    background-color: var(--bg-page);
    position: relative;
    overflow-x: hidden;
}

@media screen and (min-width: 481px) {
    .h5-shell {
        box-shadow: 0 0 32px rgba(15, 23, 42, 0.08);
    }
}

.h5-shell.has-header {
    padding-top: var(--header-height);
}

.h5-shell.has-tabbar {
    padding-bottom: calc(var(--tabbar-height) + env(safe-area-inset-bottom, 0px));
}

.h5-shell.has-bottom-bar {
    padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px));
}

/* ==========================================================================
   Top Navigation Bars (Fixed & Centered to 480px Shell)
   ========================================================================== */
.h5-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--shell-width);
    height: var(--header-height);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 48px;
}

.h5-header.header-coral {
    background: linear-gradient(90deg, var(--coral-start) 0%, var(--coral-end) 100%);
    color: #FFFFFF;
}

.h5-header.header-white {
    background: #FFFFFF;
    color: var(--text-primary);
    border-bottom: 1px solid #F2F2F2;
}

.h5-header-title {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.h5-header-back {
    position: absolute;
    left: 0;
    top: 0;
    width: 46px;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: none;
    border: none;
    color: inherit;
}

.h5-header-right {
    position: absolute;
    right: 8px;
    top: 0;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    padding: 0 8px;
}

/* ==========================================================================
   Bottom 4-Tab Navigation Bar (Pic 1, 2, 4, 5, 10)
   ========================================================================== */
.h5-tabbar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--shell-width);
    height: calc(var(--tabbar-height) + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: #FFFFFF;
    border-top: 1px solid #EFEFEF;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    z-index: 100;
}

.h5-tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #8E8E93;
    font-size: 11px;
    font-weight: 400;
    user-select: none;
}

.h5-tab-item svg {
    width: 23px;
    height: 23px;
}

.h5-tab-item.active {
    color: #1A1A1A;
    font-weight: 600;
}

/* Fixed Bottom Action Bar (Pic 6/7 & Detail Pages) */
.h5-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--shell-width);
    background: #FFFFFF;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 99;
}

/* ==========================================================================
   Unified Empty State & Loading Skeleton (Pic 3, 4, 10)
   ========================================================================== */
.h5-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 68px 24px;
    text-align: center;
}

.h5-empty-icon {
    width: 106px;
    height: 106px;
    margin-bottom: 14px;
}

.h5-empty-text {
    font-size: 14px;
    color: #999999;
}

.h5-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 56px 20px;
    color: #999999;
    font-size: 13px;
    gap: 10px;
}

.h5-spinner {
    width: 26px;
    height: 26px;
    border: 2.5px solid #EAEAEA;
    border-top-color: var(--coral);
    border-radius: 50%;
    animation: h5spin 0.75s linear infinite;
}

@keyframes h5spin {
    to { transform: rotate(360deg); }
}

.h5-skeleton {
    background: linear-gradient(90deg, #F0F1F4 25%, #E6E8EC 50%, #F0F1F4 75%);
    background-size: 200% 100%;
    animation: h5shimmer 1.4s ease infinite;
    border-radius: 8px;
}

@keyframes h5shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ==========================================================================
   Common Components: Cards, Buttons, Pills, Toasts, Modals
   ========================================================================== */
.h5-card {
    background: #FFFFFF;
    border-radius: 12px;
    margin: 12px;
    padding: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.025);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 10px 16px;
    transition: opacity 0.15s, transform 0.1s;
}

.btn:active {
    opacity: 0.88;
    transform: scale(0.99);
}

.btn:disabled, .btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-coral {
    background: linear-gradient(90deg, #FF5B4D 0%, #FF3B30 100%);
    color: #FFFFFF;
}

.btn-orange {
    background: linear-gradient(90deg, #FF7A00 0%, #FF4500 100%);
    color: #FFFFFF;
}

.btn-pink-orange {
    background: linear-gradient(90deg, #F06292 0%, #F39B6D 100%);
    color: #FFFFFF;
}

.btn-green {
    background: linear-gradient(90deg, #38B000 0%, #2D9300 100%);
    color: #FFFFFF;
}

.btn-outline-coral {
    background: #FFFFFF;
    color: var(--coral);
    border: 1px solid #FF8A80;
}

.btn-outline-gray {
    background: #FFFFFF;
    color: #555555;
    border: 1px solid #DCDCDC;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 16px;
}

.btn-block {
    width: 100%;
    height: 44px;
    font-size: 15px;
}

.status-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
}

.status-tag.tag-red { background: #FFF1F0; color: #E53935; }
.status-tag.tag-orange { background: #FFF3E0; color: #E67E22; }
.status-tag.tag-green { background: #E8F8E5; color: #2B8A14; }
.status-tag.tag-blue { background: #E8F1FF; color: #2563EB; }
.status-tag.tag-gray { background: #F2F3F5; color: #777777; }
.status-tag.tag-purple { background: #F3E8FF; color: #7C3AED; }

/* Toast */
.h5-toast {
    position: fixed;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 300px;
    padding: 10px 18px;
    background: rgba(17, 17, 17, 0.86);
    color: #FFFFFF;
    font-size: 14px;
    border-radius: 10px;
    text-align: center;
    z-index: 9999;
    pointer-events: none;
    line-height: 1.5;
    animation: h5fadeIn 0.16s ease;
}

@keyframes h5fadeIn {
    from { opacity: 0; transform: translate(-50%, -44%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

/* Modal / Bottom Sheet */
.h5-modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 500;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.h5-modal-mask.center {
    align-items: center;
    padding: 16px;
}

.h5-sheet {
    width: 100%;
    max-width: var(--shell-width);
    max-height: 90vh;
    background: #FFFFFF;
    border-radius: 16px 16px 0 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: h5slideUp 0.2s ease;
}

.h5-modal-mask.center .h5-sheet {
    border-radius: 14px;
    max-width: 380px;
}

@keyframes h5slideUp {
    from { transform: translateY(40px); opacity: 0.4; }
    to { transform: translateY(0); opacity: 1; }
}

.h5-sheet-header {
    padding: 14px 16px;
    border-bottom: 1px solid #F2F2F2;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.h5-sheet-title {
    font-size: 16px;
    font-weight: 700;
    color: #1A1A1A;
}

.h5-sheet-close {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: #F5F5F5;
    color: #666;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.h5-sheet-body {
    padding: 14px 16px;
    overflow-y: auto;
    flex: 1;
}

.h5-sheet-footer {
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #F2F2F2;
    display: flex;
    gap: 10px;
}

/* Image Lightbox */
.h5-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.h5-lightbox img {
    max-width: 100%;
    max-height: 88vh;
    border-radius: 8px;
    object-fit: contain;
}

/* ==========================================================================
   Page 1: Home (Pic 1)
   ========================================================================== */
.home-banner {
    position: relative;
    width: 100%;
    height: 214px;
    overflow: hidden;
    background: #2C0B0B;
}

.home-banner-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.35s ease;
}

.home-banner-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.home-banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-banner-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
}

.home-banner-dot {
    width: 6px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.65);
    transition: all 0.2s;
}

.home-banner-dot.active {
    width: 16px;
    background: #52C41A;
}

.home-banner-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #9C1214 0%, #D92B2B 60%, #7C0D0F 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-weight: 600;
}

.home-notice-bar {
    background: #FFFFFF;
    height: 44px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #F3F3F3;
}

.home-notice-icon {
    flex-shrink: 0;
    color: #FF4D4F;
    display: flex;
    align-items: center;
}

.home-notice-text {
    flex: 1;
    font-size: 15px;
    color: #444444;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 16px 11px;
    background: #F6F6F6;
}

.home-section-line {
    flex: 1;
    max-width: 105px;
    height: 1px;
    background: #E3E3E3;
}

.home-section-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
    color: #333333;
}

.home-like-badge {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #FF6B35;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
}

.home-goods-list {
    background: #FFFFFF;
}

.home-goods-item {
    display: flex;
    align-items: stretch;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid #F4F4F4;
    position: relative;
    cursor: pointer;
}

.home-goods-img {
    width: 108px;
    height: 108px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: #F7F7F7;
}

.home-goods-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2px 0;
}

.home-goods-title {
    font-size: 15px;
    font-weight: 500;
    color: #222222;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-goods-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.home-goods-price {
    color: #FF4D4F;
    font-weight: 500;
    line-height: 1.1;
}

.home-goods-price .yen {
    font-size: 13px;
    margin-right: 2px;
}

.home-goods-price .num {
    font-size: 21px;
}

.home-goods-sales {
    font-size: 12px;
    color: #999999;
    margin-top: 5px;
}

.home-goods-cart-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #FFF1F0;
    color: #FF4D4F;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ==========================================================================
   Page 2: Rob Center (Pic 2)
   ========================================================================== */
.rob-featured-card {
    background: #FFFFFF;
    border-radius: 14px;
    margin: 12px;
    padding: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.rob-featured-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.rob-featured-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rob-orange-bar {
    width: 4px;
    height: 16px;
    border-radius: 2px;
    background: linear-gradient(180deg, #FF7043 0%, #FF3B30 100%);
    flex-shrink: 0;
}

.rob-featured-title strong {
    font-size: 16px;
    font-weight: 700;
    color: #1A1A1A;
}

.rob-featured-title span {
    font-size: 12px;
    color: #999999;
}

.rob-hot-pill {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: #FFF0E8;
    color: #FF6A33;
    font-size: 12px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 12px;
}

.rob-session-banner {
    position: relative;
    border-radius: 14px;
    padding: 16px 18px 18px;
    background: linear-gradient(135deg, #FBD55A 0%, #F7B132 52%, #F5931E 100%);
    box-shadow: 0 6px 16px rgba(245, 147, 30, 0.26);
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 12px;
}

.rob-session-banner:last-child {
    margin-bottom: 0;
}

.rob-session-rays {
    position: absolute;
    right: -18px;
    top: -18px;
    width: 190px;
    height: 190px;
    pointer-events: none;
    opacity: 0.25;
}

.rob-session-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.rob-tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.28);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 14px;
}

.rob-time-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(160, 96, 10, 0.32);
    color: #FFFFFF;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 14px;
}

.rob-time-pill .dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #FFFFFF;
}

.rob-session-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    position: relative;
    z-index: 2;
}

.rob-big-time {
    font-size: 46px;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.05;
    letter-spacing: 1px;
    text-shadow: 0 2px 6px rgba(175, 92, 0, 0.22);
}

.rob-big-time .colon {
    opacity: 0.72;
    margin: 0 2px;
}

.rob-session-name {
    font-size: 18px;
    font-weight: 600;
    color: #FFFFFF;
    margin-top: 8px;
}

.rob-session-sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.92);
    margin-top: 4px;
}

.rob-clock-halo {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    border: 2px dashed rgba(255, 255, 255, 0.68);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rob-clock-inner {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
}

.rob-delay-bar {
    background: #FFFFFF;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.rob-delay-tip {
    font-size: 13px;
    color: #E53935;
    line-height: 1.4;
}

.rob-refresh-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #FFFFFF;
    color: #FF4D4F;
    border: 1px solid #FF5252;
    border-radius: 18px;
    padding: 5px 14px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    flex-shrink: 0;
}

.rob-section-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 2px 14px 8px;
}

.rob-blue-bar {
    width: 3.5px;
    height: 15px;
    border-radius: 2px;
    background: var(--blue-accent);
    flex-shrink: 0;
}

.rob-section-head h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #1A1A1A;
}

.rob-section-box {
    background: #FFFFFF;
    border-radius: 12px;
    margin: 0 12px 16px;
    padding: 12px 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.rob-section-empty {
    text-align: center;
    padding: 28px 0;
    font-size: 14px;
    color: #999999;
}

/* ==========================================================================
   Page 3: Session Detail (Pic 3)
   ========================================================================== */
.session-tabs {
    display: flex;
    background: #FFFFFF;
    height: 44px;
    border-bottom: 1px solid #F2F2F2;
}

.session-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #333333;
    position: relative;
    cursor: pointer;
}

.session-tab.active {
    color: #E53935;
    font-weight: 600;
}

.session-tab.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 3px;
    border-radius: 2px;
    background: #FF4D4F;
}

.session-ctrl-card {
    margin: 12px;
    background: #FFFFFF;
    border: 1px solid #FFCCC7;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 2px 8px rgba(255, 77, 79, 0.06);
}

.session-ctrl-row1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.session-ctrl-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #1A1A1A;
}

.session-ctrl-status {
    font-size: 14px;
    font-weight: 500;
    color: #E53935;
}

.session-ctrl-status.open {
    color: #2B8A14;
}

.session-ctrl-status.upcoming {
    color: #E67E22;
}

.session-ctrl-row2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    gap: 6px;
    flex-wrap: wrap;
}

.session-ctrl-dot {
    font-size: 13px;
    color: #999999;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.session-ctrl-dot i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #C4C4C4;
    display: inline-block;
}

.session-ctrl-dot.open i {
    background: #38B000;
}

.session-ctrl-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sort-pill {
    border: 1px solid transparent;
    border-radius: 16px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.sort-pill.asc {
    background: #FFF3E0;
    color: #E67E22;
}

.sort-pill.asc.active {
    border-color: #FA8C16;
    font-weight: 600;
}

.sort-pill.desc {
    background: #E8F1FF;
    color: #3B82F6;
}

.sort-pill.desc.active {
    border-color: #3B82F6;
    font-weight: 600;
}

.sort-pill.refresh {
    background: #FFFFFF;
    color: #FF4D4F;
    border: 1px solid #FF8A80;
}

.auction-goods-card {
    background: #FFFFFF;
    border-radius: 12px;
    margin: 0 12px 10px;
    padding: 12px;
    display: flex;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.025);
}

.auction-goods-thumb {
    width: 96px;
    height: 96px;
    border-radius: 8px;
    object-fit: cover;
    background: #F6F6F6;
    flex-shrink: 0;
}

.auction-goods-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* ==========================================================================
   Page 5: Member Center (Pic 5 - No Privilege Days)
   ========================================================================== */
.my-top-banner {
    height: 112px;
    background: linear-gradient(135deg, #FF5A5F 0%, #FF4348 58%, #FF6B6B 100%);
    position: relative;
    overflow: hidden;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

.my-top-banner::after {
    content: "";
    position: absolute;
    right: -30px;
    top: -40px;
    width: 240px;
    height: 180px;
    background: rgba(255, 255, 255, 0.09);
    transform: rotate(-18deg);
    pointer-events: none;
}

.my-settings-btn {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    z-index: 2;
}

.my-profile-card {
    background: #FFFFFF;
    border-radius: 14px;
    margin: -54px 12px 12px;
    padding: 18px 16px 16px;
    position: relative;
    z-index: 2;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.my-user-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.my-avatar-wrap {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 2.5px solid #FFF1F0;
    background: #F0F1F4;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(255, 77, 79, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.my-avatar-wrap img,
.my-avatar-wrap svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.my-user-meta {
    flex: 1;
    min-width: 0;
}

.my-identity-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.my-name-group {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex-wrap: wrap;
}

.my-realname {
    font-size: 18px;
    font-weight: 700;
    color: #1A1A1A;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.my-uid {
    display: inline-flex;
    align-items: center;
    height: 20px;
    padding: 0 8px;
    border-radius: 999px;
    background: #F4F5F7;
    font-size: 11px;
    font-weight: 500;
    color: #666666;
}

.my-login-pill {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 11px;
    border-radius: 999px;
    background: #FFF1F0;
    color: #FF4D4F;
    font-size: 12px;
    font-weight: 600;
}

.my-sub-row {
    margin-top: 6px;
    display: flex;
    align-items: center;
}

.my-login-tip {
    font-size: 12px;
    color: #999999;
    line-height: 1.4;
}

.my-invite-code {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #777777;
    cursor: pointer;
}

.my-invite-code strong {
    color: #333333;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.my-copy-tag {
    display: inline-flex;
    align-items: center;
    height: 18px;
    padding: 0 7px;
    border-radius: 999px;
    background: #FFF2F0;
    color: #FF4D4F;
    font-size: 11px;
    font-weight: 500;
}

.my-asset-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #F3F4F6;
    text-align: center;
}

.my-asset-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.my-asset-val {
    font-size: 19px;
    font-weight: 700;
    color: #1A1A1A;
}

.my-asset-lbl {
    font-size: 12px;
    color: #777777;
}

.my-menu-card {
    background: #FFFFFF;
    border-radius: 14px;
    margin: 0 12px 12px;
    padding: 15px 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.025);
}

.my-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.my-menu-head h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #1A1A1A;
}

.my-menu-more {
    font-size: 13px;
    color: #999999;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.my-order-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    text-align: center;
}

.my-promo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    text-align: center;
}

.my-grid-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: #333333;
    position: relative;
}

.my-grid-btn .badge {
    position: absolute;
    top: -4px;
    right: 10px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: #FF4D4F;
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.credit-panel {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-top: 4px;
}

.credit-ring-wrap {
    width: 112px;
    height: 112px;
    position: relative;
    flex-shrink: 0;
}

.credit-ring-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.credit-ring-pct {
    font-size: 22px;
    font-weight: 700;
    color: #FF4D4F;
    line-height: 1.1;
}

.credit-ring-lbl {
    font-size: 11px;
    color: #999999;
    margin-top: 3px;
}

.credit-stats {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.credit-stat-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.credit-stat-row .lbl {
    font-size: 14px;
    color: #666666;
}

.credit-stat-row .val {
    font-size: 16px;
    font-weight: 700;
    color: #1A1A1A;
}

.credit-stat-row .val.total {
    font-size: 19px;
    color: #FF4D4F;
}

/* ==========================================================================
   Page 6 & 7: Payee Code & Signature (Pic 6 + Pic 7)
   ========================================================================== */
.payee-audit-banner {
    margin: 12px;
    border-radius: 10px;
    padding: 13px 15px;
    background: #FFF1DF;
    border: 1px solid #F7C284;
}

.payee-audit-banner.rejected {
    background: #FFF1F0;
    border-color: #FFA39E;
}

.payee-audit-title {
    font-size: 15px;
    font-weight: 700;
    color: #D4720A;
}

.payee-audit-banner.rejected .payee-audit-title {
    color: #CF1322;
}

.payee-audit-desc {
    font-size: 13px;
    color: #6B5842;
    margin-top: 5px;
}

.payee-addr-card {
    margin: 0 12px 12px;
    border-radius: 12px;
    background: #FFFFFF;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.025);
}

.payee-addr-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.payee-addr-name {
    font-size: 16px;
    font-weight: 700;
    color: #222222;
}

.payee-addr-phone {
    font-size: 15px;
    color: #888888;
    margin-left: 8px;
}

.payee-addr-detail {
    font-size: 14px;
    color: #333333;
    margin-top: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid #F3F3F3;
}

.payee-addr-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 11px;
}

.payee-default-flag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #444444;
}

.payee-channel-card {
    margin: 0 12px 12px;
    border-radius: 12px;
    background: #FFFFFF;
    padding: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.025);
}

.payee-channel-head {
    border-radius: 10px;
    padding: 13px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.payee-channel-head.wx {
    background: linear-gradient(90deg, #DCF7E3 0%, #CFF3D8 100%);
    border: 1px solid #BCEBC9;
}

.payee-channel-head.zfb {
    background: linear-gradient(90deg, #DDEEFF 0%, #CEE5FF 100%);
    border: 1px solid #B6D8FF;
}

.payee-channel-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
}

.payee-channel-title {
    font-size: 16px;
    font-weight: 700;
}

.payee-channel-head.wx .payee-channel-title { color: #198754; }
.payee-channel-head.zfb .payee-channel-title { color: #1677FF; }

.payee-channel-sub {
    font-size: 13px;
    color: #6C757D;
    margin-top: 2px;
}

.payee-upload-area {
    padding: 20px 0 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.payee-qr-box {
    width: 128px;
    height: 128px;
    border-radius: 10px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1.5px dashed #D9D9D9;
    background: #FAFAFA;
    color: #999999;
    font-size: 12px;
    gap: 6px;
}

.payee-qr-box.has-img {
    border: none;
    background: transparent;
}

.payee-qr-box img {
    width: 128px;
    height: 128px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #EFEFEF;
}

.payee-qr-del {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(50, 50, 50, 0.72);
    color: #FFFFFF;
    border: none;
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.payee-qr-caption {
    font-size: 14px;
    color: #444444;
    margin-top: 10px;
}

/* Signature Pad Card */
.sign-card {
    margin: 0 12px 16px;
    border-radius: 12px;
    background: #FFFFFF;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.025);
}

.sign-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.sign-label {
    font-size: 16px;
    font-weight: 600;
    color: #222222;
}

.sign-label .req {
    color: #FF4D4F;
    margin-left: 3px;
}

.sign-reset-btn {
    background: #F5F5F5;
    border: 1px solid #E0E0E0;
    color: #666666;
    font-size: 13px;
    padding: 5px 14px;
    border-radius: 16px;
    cursor: pointer;
}

.sign-canvas-wrap {
    width: 100%;
    height: 210px;
    border: 1px solid #E8E8E8;
    border-radius: 8px;
    background: #FFFFFF;
    position: relative;
    overflow: hidden;
}

.sign-canvas-wrap canvas {
    width: 100%;
    height: 100%;
    display: block;
    touch-action: none;
    cursor: crosshair;
}

.sign-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #CCCCCC;
    font-size: 14px;
    pointer-events: none;
}

.sign-saved-preview {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #FFFFFF;
}

/* ==========================================================================
   Page 8: Merchant Center (Pic 8 - No Privilege Expiry / Upgrade Conditions)
   ========================================================================== */
.merchant-hero {
    margin: 14px 12px;
    border-radius: 14px;
    padding: 20px 14px 18px;
    background: linear-gradient(135deg, #F58634 0%, #F26419 52%, #F04E0D 100%);
    box-shadow: 0 6px 18px rgba(242, 100, 25, 0.28);
    color: #FFFFFF;
}

.merchant-hero-top {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 6px;
}

.merchant-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2.5px solid #FAD390;
    background: #EAEAEA;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.merchant-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.merchant-mobile {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.merchant-group-pill {
    display: inline-block;
    margin-top: 6px;
    background: #F6C853;
    color: #7A4800;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 12px;
    border-radius: 12px;
}

.merchant-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 22px;
    text-align: center;
}

.merchant-stat-col {
    position: relative;
    padding: 2px 4px;
    cursor: pointer;
}

.merchant-stat-col:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 16%;
    height: 68%;
    width: 1px;
    background: rgba(255, 255, 255, 0.35);
}

.merchant-stat-lbl {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.92);
}

.merchant-stat-val {
    font-size: 19px;
    font-weight: 700;
    margin-top: 6px;
}

.merchant-service-card {
    margin: 14px 12px;
    border-radius: 12px;
    background: #FFFFFF;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.merchant-service-title {
    font-size: 16px;
    font-weight: 700;
    color: #222222;
    padding-bottom: 14px;
    border-bottom: 1px solid #F3F3F3;
}

.merchant-service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding-top: 16px;
    text-align: center;
    gap: 8px;
}

.merchant-service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #333333;
}

/* ==========================================================================
   Page 9: Last 30 Days Stats Calendar (Pic 9)
   ========================================================================== */
.stats30-card {
    margin: 14px 12px;
    border-radius: 14px;
    background: #FFFFFF;
    padding: 12px 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

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

.stats30-cell {
    background: #FAFAFA;
    border: 1px solid #F1F1F1;
    border-radius: 8px;
    padding: 8px 2px 7px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
}

.stats30-date {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    color: #555555;
    white-space: nowrap;
    letter-spacing: -0.3px;
}

@media screen and (max-width: 390px) {
    .stats30-date {
        font-size: 11px;
    }
    .stats30-pill {
        font-size: 10px;
        padding: 2px 4px;
    }
}

.stats30-cell.has-order .stats30-date {
    color: #E85D04;
}

.stats30-pill {
    margin-top: 6px;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    background: #EFEFEF;
    color: #B5B5B5;
    white-space: nowrap;
}

.stats30-cell.has-order .stats30-pill {
    background: var(--green-badge);
    color: #FFFFFF;
    font-weight: 600;
}

/* ==========================================================================
   Page 10: My Rob Orders (Pic 10)
   ========================================================================== */
.rob-orders-panel {
    margin: 10px 12px 16px;
    background: #FFFFFF;
    border-radius: 12px;
    min-height: calc(100vh - 132px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.025);
    overflow: hidden;
}

.rob-orders-tabs {
    display: flex;
    height: 46px;
    border-bottom: 1px solid #F2F2F2;
}

.rob-orders-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #444444;
    position: relative;
    cursor: pointer;
}

.rob-orders-tab.active {
    color: var(--orange-accent);
    font-weight: 600;
}

.rob-orders-tab.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    border-radius: 2px;
    background: var(--orange-accent);
}

/* ==========================================================================
   Order Cards, Accounting Tables, Forms, Auth Pages
   ========================================================================== */
.order-card {
    background: #FFFFFF;
    border-radius: 12px;
    margin: 10px 12px;
    padding: 13px 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.025);
    border: 1px solid #F3F3F3;
}

.order-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid #F5F5F5;
    font-size: 12px;
    color: #888888;
}

.order-card-body {
    display: flex;
    gap: 12px;
    padding: 12px 0;
}

.order-card-img {
    width: 78px;
    height: 78px;
    border-radius: 8px;
    object-fit: cover;
    background: #F6F6F6;
    flex-shrink: 0;
}

.order-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid #F5F5F5;
    gap: 8px;
    flex-wrap: wrap;
}

.kv-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.kv-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    gap: 10px;
}

.kv-row .k {
    color: #777777;
    flex-shrink: 0;
}

.kv-row .v {
    color: #1A1A1A;
    font-weight: 500;
    text-align: right;
    word-break: break-all;
}

.kv-row .v.money-red {
    color: #FF4D4F;
    font-size: 18px;
    font-weight: 700;
}

.kv-row .v.money-green {
    color: #2B8A14;
    font-weight: 600;
}

.form-group {
    margin-bottom: 14px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #444444;
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    height: 44px;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    padding: 0 13px;
    font-size: 15px;
    color: #1A1A1A;
    background: #FAFAFA;
    transition: border-color 0.15s, background 0.15s;
}

.form-input:focus {
    border-color: var(--coral);
    background: #FFFFFF;
}

.auth-hero {
    background: linear-gradient(135deg, #FF4B4B 0%, #FF6B5B 100%);
    padding: 36px 22px 54px;
    color: #FFFFFF;
}

.auth-card {
    background: #FFFFFF;
    border-radius: 16px;
    margin: -30px 14px 20px;
    padding: 22px 18px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.agreement-box {
    max-height: 150px;
    overflow-y: auto;
    background: #FAFAFA;
    border: 1px solid #EEEEEE;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 12px;
    color: #555555;
    line-height: 1.65;
    white-space: pre-wrap;
    margin-bottom: 10px;
}

.agreement-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #333333;
    margin-bottom: 12px;
    cursor: pointer;
}

.agreement-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--coral);
}

/* Scrollable filter tabs (Mall orders, logs) */
.h5-scroll-tabs {
    display: flex;
    background: #FFFFFF;
    border-bottom: 1px solid #F2F2F2;
    overflow-x: auto;
    scrollbar-width: none;
}

.h5-scroll-tabs::-webkit-scrollbar {
    display: none;
}

.h5-scroll-tab {
    flex: 1;
    min-width: 68px;
    padding: 12px 6px;
    text-align: center;
    font-size: 13px;
    color: #555555;
    white-space: nowrap;
    position: relative;
    cursor: pointer;
}

.h5-scroll-tab.active {
    color: var(--coral);
    font-weight: 600;
}

.h5-scroll-tab.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 2.5px;
    background: var(--coral);
    border-radius: 2px;
}

.guest-box {
    background: #FFFFFF;
    border-radius: 14px;
    margin: 24px 14px;
    padding: 36px 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}
