:root {
    --primary: #ff6b81;
    --primary-light: #ff8a9e;
    --primary-dark: #e55a6f;
    --primary-bg: rgba(255,107,129,0.08);
    --bg: #f5f6fa;
    --card-bg: #fff;
    --text: #1a1a2e;
    --text-secondary: #8e8ea0;
    --text-light: #b5b5c3;
    --border: #ebebf0;
    --gold: #f5a623;
    --diamond: #9b59b6;
    --silver: #95a5a6;
    --normal: #3498db;
    --newbie: #2ecc71;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.08);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-tap-highlight-color: transparent; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    max-width: 750px;
    margin: 0 auto;
    min-height: 100dvh;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    overflow-x: hidden;
}

.page {
    padding-bottom: calc(60px + max(12px, env(safe-area-inset-bottom)));
    min-height: 100dvh;
    animation: pageIn .28s ease-out;
}
.page.page--action-footer {
    padding-bottom: calc(160px + max(16px, env(safe-area-inset-bottom)));
}

@keyframes pageIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Bottom Tabbar ===== */
.app-tabbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 750px;
    margin: 0 auto;
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    background: #fff;
    border-top: 1px solid rgba(0,0,0,0.05);
    z-index: 1000;
    padding-bottom: max(4px, env(safe-area-inset-bottom));
    padding-top: 4px;
    box-shadow: 0 -1px 12px rgba(0,0,0,0.03);
    backdrop-filter: blur(10px);
}
.app-tabbar__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 50px;
    padding: 4px 2px 2px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--text-light);
    -webkit-tap-highlight-color: transparent;
    transition: transform .15s;
}
.app-tabbar__item:active { transform: scale(0.92); }
.app-tabbar__item.active .app-tabbar__label {
    color: var(--primary);
    font-weight: 600;
}
.app-tabbar__icon {
    width: 24px; height: 24px;
    object-fit: contain;
    display: block;
    pointer-events: none;
}
.app-tabbar__label {
    font-size: 10px;
    line-height: 1.2;
    color: var(--text-light);
    transform: scale(0.92);
}

/* ===== Top Nav ===== */
.top-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.95);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    padding: max(10px, env(safe-area-inset-top)) 16px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    font-size: 17px;
    font-weight: 600;
    min-height: 44px;
    color: var(--text);
}
.top-nav .back-btn {
    position: absolute;
    left: 12px;
    width: 32px; height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: background .2s;
}
.top-nav .back-btn:active { background: rgba(0,0,0,0.05); }

/* ===== Player Card ===== */
.player-card {
    background: var(--card-bg);
    padding: 16px;
    margin: 0 12px 8px;
    border-radius: var(--radius-md);
    display: flex;
    gap: 12px;
    align-items: flex-start;
    box-shadow: var(--shadow-sm);
    transition: transform .2s, box-shadow .2s;
}
.player-card:active { transform: scale(0.985); box-shadow: var(--shadow-md); }
.player-avatar {
    width: 56px; height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: linear-gradient(135deg, #fce4ec, #e8eaf6);
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.player-info { flex: 1; min-width: 0; }
.player-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}
.player-name {
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text);
}
.gender-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px; height: 18px;
    border-radius: 50%;
    font-size: 10px;
    color: #fff;
    flex-shrink: 0;
}
.gender-male { background: linear-gradient(135deg, #5b9ff5, #4a8de8); }
.gender-female { background: linear-gradient(135deg, #ff6b9d, #ff5c8a); }
.player-bio {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.5;
}
.player-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}
.rank-badge {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    letter-spacing: 0.02em;
}
.rank-gold { background: linear-gradient(135deg, #f5a623, #f7c948); box-shadow: 0 2px 6px rgba(245,166,35,0.3); }
.rank-diamond { background: linear-gradient(135deg, #9b59b6, #c39bd3); box-shadow: 0 2px 6px rgba(155,89,182,0.3); }
.rank-silver { background: linear-gradient(135deg, #95a5a6, #bdc3c7); box-shadow: 0 2px 6px rgba(149,165,166,0.3); }
.rank-normal { background: linear-gradient(135deg, #3498db, #5dade2); box-shadow: 0 2px 6px rgba(52,152,219,0.3); }
.rank-newbie { background: linear-gradient(135deg, #2ecc71, #58d68d); box-shadow: 0 2px 6px rgba(46,204,113,0.3); }
.service-count {
    font-size: 11px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 2px;
}

/* ===== Voice Bar ===== */
.voice-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #fff0f3, #fce4ec);
    border-radius: 20px;
    padding: 6px 12px;
    cursor: pointer;
    user-select: none;
    margin-top: 4px;
    transition: transform .15s;
}
.voice-bar:active { transform: scale(0.97); }
.voice-play-btn {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(255,107,129,0.3);
}
.voice-track {
    flex: 1;
    height: 4px;
    background: rgba(255,107,129,0.15);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}
.voice-track-fill {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    background: var(--primary);
    border-radius: 2px;
    transition: width 0.1s linear;
}
.voice-duration {
    font-size: 11px;
    color: var(--primary);
    flex-shrink: 0;
    min-width: 32px;
    text-align: right;
    font-weight: 500;
}

/* ===== Search ===== */
.search-area {
    background: #fff;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.search-input {
    flex: 1;
    height: 40px;
    min-height: 40px;
    border-radius: 20px;
    border: 1px solid var(--border);
    padding: 0 16px;
    font-size: 16px;
    background: var(--bg);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.search-input:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(255,107,129,0.1);
}
.search-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 18px;
    font-size: 13px;
    cursor: pointer;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(255,107,129,0.3);
    transition: transform .15s;
}
.search-btn:active { transform: scale(0.95); }
.filter-btn {
    color: var(--text);
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    padding: 6px 8px;
    border-radius: 6px;
    transition: background .2s;
}
.filter-btn:active { background: rgba(0,0,0,0.04); }

/* ===== Tabs ===== */
.tabs-header {
    display: flex;
    background: #fff;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.tabs-header::-webkit-scrollbar { display: none; }
.tabs-header .tab-item {
    flex: none;
    min-width: 0;
    padding: 12px 14px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    transition: color .2s;
}
.tabs-header .tab-item.active {
    color: var(--primary);
    font-weight: 600;
}
.tabs-header .tab-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

/* ===== Order Card ===== */
.order-card {
    background: var(--card-bg);
    margin: 8px 12px;
    border-radius: var(--radius-md);
    padding: 14px 16px;
    box-shadow: var(--shadow-sm);
    transition: transform .2s;
}
.order-card:active { transform: scale(0.985); }
.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.order-no {
    font-size: 12px;
    color: var(--text-light);
    font-family: 'SF Mono', 'Menlo', monospace;
}
.order-status {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.status-pending { background: #fff8e1; color: #f57f17; }
.status-assigned { background: #e3f2fd; color: #1565c0; }
.status-accepted { background: #e8f5e9; color: #2e7d32; }
.status-in_progress { background: #e3f2fd; color: #0277bd; }
.status-submitted { background: #f3e5f5; color: #7b1fa2; }
.status-completed { background: #e8f5e9; color: #2e7d32; }
.status-settled { background: #e0f2f1; color: #00695c; }
.status-cancelled { background: #fce4ec; color: #c62828; }
.order-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 14px;
}
.order-amount {
    color: var(--primary);
    font-weight: 700;
    font-size: 17px;
}
.order-game-tag {
    font-size: 12px;
    color: var(--text);
    font-weight: 500;
}
.order-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed var(--border);
}

/* ===== Home ===== */
.home-banner {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #ff6b81 0%, #ff8a65 50%, #ffb347 100%);
    padding: 24px 20px 28px;
    padding-top: max(24px, calc(12px + env(safe-area-inset-top)));
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
    color: #fff;
}
.home-banner::before {
    content: '';
    position: absolute;
    right: -10%;
    top: -40%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255,255,255,0.15) 0%, transparent 70%);
    pointer-events: none;
}
.home-banner::after {
    content: '';
    position: absolute;
    left: -15%;
    bottom: -50%;
    width: 50%;
    height: 120%;
    background: radial-gradient(ellipse, rgba(255,255,255,0.08) 0%, transparent 60%);
    pointer-events: none;
}
.home-banner h2 {
    font-size: clamp(20px, 5.5vw, 24px);
    margin-bottom: 6px;
    font-weight: 700;
    letter-spacing: 0.02em;
    position: relative;
    z-index: 1;
}
.home-banner p {
    font-size: 13px;
    opacity: 0.92;
    line-height: 1.5;
    position: relative;
    z-index: 1;
    max-width: 70%;
}
.home-search-bar {
    position: relative;
    z-index: 1;
    margin-top: 16px;
    display: flex;
    gap: 8px;
}
.home-search-bar input {
    flex: 1;
    height: 38px;
    border-radius: 19px;
    border: none;
    padding: 0 16px;
    font-size: 14px;
    background: rgba(255,255,255,0.92);
    outline: none;
    color: var(--text);
}
.home-search-bar input::placeholder { color: #bbb; }
.home-search-bar button {
    height: 38px;
    padding: 0 20px;
    border-radius: 19px;
    border: none;
    background: rgba(255,255,255,0.25);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: background .2s;
}
.home-search-bar button:active { background: rgba(255,255,255,0.35); }

.home-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #fff;
    margin: 0 12px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-top: -14px;
    position: relative;
    z-index: 2;
}
.home-notice-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.home-notice-text {
    flex: 1;
    font-size: 12px;
    color: var(--text-secondary);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.home-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 12px 12px 4px;
}
.home-stat-item {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 12px 8px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}
.home-stat-num {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}
.home-stat-label {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.section-title {
    padding: 16px 16px 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.section-title .section-more {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 400;
    cursor: pointer;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 4px 12px;
}
.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 4px;
    background: #fff;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: transform .15s, box-shadow .2s;
    box-shadow: var(--shadow-sm);
}
.category-item:active { transform: scale(0.95); }
.category-item.selected {
    border: 2px solid var(--primary);
    background: var(--primary-bg);
}
.category-icon {
    width: 44px; height: 44px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #fff5f7, #ffe8ec);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}
.category-name {
    font-size: 12px;
    color: var(--text);
    font-weight: 500;
}

/* ===== Profile ===== */
.profile-header {
    background: linear-gradient(135deg, var(--primary) 0%, #ff8a65 60%, #ffb347 100%);
    padding: max(28px, calc(16px + env(safe-area-inset-top))) 20px 28px;
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
    color: #fff;
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    overflow: hidden;
}
.profile-header::after {
    content: '';
    position: absolute;
    right: -20%;
    top: -30%;
    width: 55%;
    height: 160%;
    background: radial-gradient(ellipse, rgba(255,255,255,0.12) 0%, transparent 70%);
    pointer-events: none;
}
.profile-avatar {
    width: 64px; height: 64px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.4);
    object-fit: cover;
    background: rgba(255,255,255,0.2);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.profile-name {
    font-size: 18px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}
.profile-role {
    font-size: 12px;
    opacity: 0.9;
    margin-top: 4px;
    position: relative;
    z-index: 1;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    background: #fff;
    margin: -12px 16px 0;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 2;
    overflow: hidden;
}
.profile-stat-item {
    padding: 14px 8px;
    text-align: center;
    position: relative;
}
.profile-stat-item + .profile-stat-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: var(--border);
}
.profile-stat-num {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}
.profile-stat-label {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.profile-menu {
    margin: 16px 12px 0;
}
.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    cursor: pointer;
    transition: background .2s;
}
.profile-menu-item:first-child { border-radius: var(--radius-md) var(--radius-md) 0 0; }
.profile-menu-item:last-child { border-radius: 0 0 var(--radius-md) var(--radius-md); }
.profile-menu-item:only-child { border-radius: var(--radius-md); }
.profile-menu-item + .profile-menu-item { border-top: 1px solid var(--border); }
.profile-menu-item:active { background: var(--bg); }
.profile-menu-icon { font-size: 18px; width: 24px; text-align: center; }
.profile-menu-text { flex: 1; font-size: 14px; color: var(--text); }
.profile-menu-arrow { font-size: 12px; color: var(--text-light); }

/* ===== Forms ===== */
.form-page {
    padding: 20px 16px;
}
.form-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
    color: var(--text);
}
.form-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 28px;
}
.form-group {
    margin-bottom: 16px;
}
.form-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    display: block;
    font-weight: 500;
}
.form-input {
    width: 100%;
    height: 48px;
    min-height: 48px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0 14px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s, box-shadow .2s;
    background: #fff;
}
.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255,107,129,0.08);
}
.form-textarea {
    width: 100%;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    font-size: 16px;
    outline: none;
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.2s, box-shadow .2s;
    background: #fff;
    font-family: inherit;
}
.form-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255,107,129,0.08);
}
.btn-primary {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: none;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(255,107,129,0.3);
    transition: transform .15s, box-shadow .15s;
    letter-spacing: 0.02em;
}
.btn-primary:active { transform: scale(0.97); box-shadow: 0 2px 8px rgba(255,107,129,0.2); }
.btn-primary:disabled { opacity: 0.5; box-shadow: none; }
.btn-outline {
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
    height: 36px;
    padding: 0 16px;
    border-radius: 18px;
    font-size: 13px;
    cursor: pointer;
    font-weight: 500;
    transition: all .2s;
}
.btn-outline:active { background: var(--primary-bg); }
.btn-small {
    height: 32px;
    padding: 0 14px;
    border-radius: 16px;
    font-size: 12px;
    border: none;
    cursor: pointer;
    color: #fff;
    font-weight: 500;
    transition: transform .15s;
}
.btn-small:active { transform: scale(0.95); }
.btn-danger { background: linear-gradient(135deg, #e74c3c, #c0392b); box-shadow: 0 2px 6px rgba(231,76,60,0.3); }
.btn-success { background: linear-gradient(135deg, #2ecc71, #27ae60); box-shadow: 0 2px 6px rgba(46,204,113,0.3); }
.btn-info { background: linear-gradient(135deg, #3498db, #2980b9); box-shadow: 0 2px 6px rgba(52,152,219,0.3); }
.btn-warning { background: linear-gradient(135deg, #f5a623, #e8961e); box-shadow: 0 2px 6px rgba(245,166,35,0.3); }

.text-link {
    color: var(--primary);
    font-size: 14px;
    cursor: pointer;
    text-align: center;
    margin-top: 16px;
    font-weight: 500;
}

/* ===== Detail page ===== */
.detail-section {
    background: #fff;
    margin: 8px 12px;
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-sm);
}
.detail-section h3 {
    font-size: 15px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-weight: 600;
}
.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
}
.detail-row + .detail-row { border-top: 1px solid rgba(0,0,0,0.03); }
.detail-label { color: var(--text-secondary); font-size: 13px; }

.service-pick-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background .2s;
}
.service-pick-row:last-child { border-bottom: none; }
.service-pick-row:active { background: var(--primary-bg); margin: 0 -16px; padding: 12px 16px; border-radius: 8px; }

/* ===== Order Status Stepper ===== */
.order-stepper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 16px 8px;
    position: relative;
}
.order-stepper::before {
    content: '';
    position: absolute;
    top: 28px;
    left: 36px;
    right: 36px;
    height: 2px;
    background: var(--border);
}
.stepper-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    position: relative;
    z-index: 1;
    flex: 1;
}
.stepper-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #fff;
    transition: all .3s;
}
.stepper-item.active .stepper-dot {
    background: var(--primary);
    box-shadow: 0 2px 8px rgba(255,107,129,0.3);
}
.stepper-item.done .stepper-dot {
    background: var(--newbie);
    box-shadow: 0 2px 8px rgba(46,204,113,0.3);
}
.stepper-label {
    font-size: 10px;
    color: var(--text-light);
    white-space: nowrap;
}
.stepper-item.active .stepper-label { color: var(--primary); font-weight: 600; }
.stepper-item.done .stepper-label { color: var(--newbie); }

/* ===== Timeline ===== */
.timeline { padding: 8px 0; }
.timeline-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    position: relative;
}
.timeline-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--primary);
    margin-top: 4px;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(255,107,129,0.15);
}
.timeline-line {
    position: absolute;
    left: 4px; top: 18px; bottom: -10px;
    width: 2px;
    background: var(--border);
}
.timeline-content { font-size: 13px; color: var(--text); line-height: 1.4; }
.timeline-time { font-size: 11px; color: var(--text-light); margin-top: 2px; }

/* ===== Empty ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}
.empty-state .icon { font-size: 48px; margin-bottom: 12px; opacity: 0.6; }
.empty-state .text { font-size: 14px; margin-bottom: 16px; }

/* ===== Action bar ===== */
.action-bar {
    position: fixed;
    bottom: calc(54px + max(6px, env(safe-area-inset-bottom)));
    left: 0; right: 0;
    max-width: 750px;
    margin: 0 auto;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    padding: 12px max(16px, env(safe-area-inset-left)) 12px max(16px, env(safe-area-inset-right));
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    border-top: 1px solid rgba(0,0,0,0.04);
    z-index: 999;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.04);
}
.action-bar .btn-primary { margin-top: 0; flex: 1; }
.action-bar .btn-small { min-width: 0; flex: 1; }

/* ===== Loading ===== */
.loading-center {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    color: var(--text-secondary);
    font-size: 14px;
}

/* ===== Select ===== */
.form-select {
    width: 100%;
    height: 48px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0 14px;
    font-size: 15px;
    outline: none;
    background: #fff;
    appearance: auto;
    transition: border-color .2s, box-shadow .2s;
}
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255,107,129,0.08);
}

/* ===== Screenshots ===== */
.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 8px;
}
.screenshot-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: transform .2s;
}
.screenshot-img:active { transform: scale(0.95); }

/* ===== Filter Tags ===== */
.filter-tags {
    display: flex;
    gap: 8px;
    padding: 8px 12px;
    background: #fff;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.filter-tags::-webkit-scrollbar { display: none; }
.filter-tag {
    padding: 5px 14px;
    border-radius: 14px;
    font-size: 12px;
    border: 1px solid var(--border);
    cursor: pointer;
    white-space: nowrap;
    background: #fff;
    color: var(--text-secondary);
    transition: all .2s;
    font-weight: 500;
}
.filter-tag.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 2px 6px rgba(255,107,129,0.3);
}

/* ===== Service Card (category page) ===== */
.service-card {
    background: #fff;
    margin: 0 12px 8px;
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform .2s;
}
.service-card:active { transform: scale(0.985); }
.service-card-info { flex: 1; min-width: 0; }
.service-card-name { font-size: 15px; font-weight: 600; color: var(--text); }
.service-card-desc { font-size: 12px; color: var(--text-secondary); margin-top: 4px; line-height: 1.4; }
.service-card-right { text-align: right; flex-shrink: 0; margin-left: 12px; }
.service-card-price { color: var(--primary); font-weight: 700; font-size: 14px; }

/* ===== Login Page ===== */
.login-hero {
    text-align: center;
    padding: 40px 20px 20px;
}
.login-logo {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), #ff8a65);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
    box-shadow: 0 8px 24px rgba(255,107,129,0.3);
}

/* ===== Modal Overlay ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn .2s ease-out;
}
.modal-content {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 24px;
    width: 85%;
    max-width: 360px;
    box-shadow: var(--shadow-lg);
    animation: slideUp .25s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Image Preview Modal ===== */
.img-preview-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn .2s;
    cursor: pointer;
}
.img-preview-overlay img {
    max-width: 95%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
}

/* ===== Toast ===== */
.toast-container {
    position: fixed;
    top: max(60px, calc(20px + env(safe-area-inset-top)));
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    pointer-events: none;
}
.toast-item {
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 8px;
    animation: toastIn .3s ease-out;
    backdrop-filter: blur(8px);
    text-align: center;
    max-width: 80vw;
    word-break: break-word;
}
.toast-success { background: rgba(46,204,113,0.9); }
.toast-error { background: rgba(231,76,60,0.9); }

@keyframes toastIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== List End ===== */
.list-end {
    text-align: center;
    padding: 16px;
    color: var(--text-light);
    font-size: 12px;
}
.list-end::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 1px;
    background: var(--border);
    vertical-align: middle;
    margin-right: 8px;
}
.list-end::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 1px;
    background: var(--border);
    vertical-align: middle;
    margin-left: 8px;
}

/* ===== Error message ===== */
.form-error {
    color: #e74c3c;
    font-size: 13px;
    margin-bottom: 10px;
    text-align: center;
    padding: 8px 12px;
    background: #fef2f2;
    border-radius: var(--radius-sm);
}

/* ===== Test Account Row (Login) ===== */
.test-account-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background .2s;
}
.test-account-row:active { background: var(--primary-bg); }
.test-account-row + .test-account-row { border-top: 1px solid var(--border); }
.test-account-role {
    font-size: 11px;
    color: #fff;
    background: var(--primary);
    padding: 2px 8px;
    border-radius: 8px;
    font-weight: 600;
    white-space: nowrap;
    min-width: 40px;
    text-align: center;
}

/* ===== Stepper enhancements ===== */
.order-stepper::before {
    left: calc(100% / 14);
    right: calc(100% / 14);
}

/* ===== Confirm Dialog Input ===== */
.confirm-dialog-input {
    margin-bottom: 0 !important;
}

/* ===== Toast transition ===== */
.toast-item {
    transition: opacity .3s, transform .3s;
}

/* ===== Service card hover ===== */
.service-card .btn-small {
    white-space: nowrap;
}

/* ===== Profile stats separator fix ===== */
.profile-stats .profile-stat-num {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== Activity item ===== */
.activity-item {
    background: #fff;
    transition: background .2s;
}
.activity-item:active {
    background: var(--bg);
}

/* ===== Order card enhancements ===== */
.order-card .order-game-tag {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== Back button consistency ===== */
.top-nav .back-btn {
    -webkit-tap-highlight-color: transparent;
}

/* ===== Smooth page transitions ===== */
.page {
    will-change: transform, opacity;
}

/* ===== Order Stats Bar ===== */
.order-stats-bar {
    display: flex;
    gap: 6px;
    padding: 12px 12px 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.order-stats-bar::-webkit-scrollbar { display: none; }
.order-stat-chip {
    flex: none;
    min-width: 56px;
    padding: 8px 10px;
    background: #fff;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all .2s;
    border: 1.5px solid transparent;
}
.order-stat-chip:active { transform: scale(0.95); }
.order-stat-chip.active {
    border-color: var(--primary);
    background: var(--primary-bg);
}
.order-stat-num {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}
.order-stat-chip.active .order-stat-num { color: var(--primary-dark); }
.order-stat-lbl {
    font-size: 10px;
    color: var(--text-secondary);
    margin-top: 2px;
    display: block;
    white-space: nowrap;
}

/* ===== Order Card Enhanced ===== */
.order-card-body {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
}
.order-card-left {
    flex: 1;
    min-width: 0;
}
.order-card-left .order-game-tag {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.order-service-name {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 3px;
}
.order-card-price {
    text-align: right;
    flex-shrink: 0;
    margin-left: 12px;
}
.order-commission {
    display: block;
    font-size: 11px;
    color: var(--gold);
    margin-top: 2px;
}
.order-card-action-hint {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--primary);
    font-weight: 500;
}
.order-meta-people {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    min-width: 0;
}
.order-meta-tag {
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 6px;
    white-space: nowrap;
}
.order-meta-tag.boss { background: #fff8e1; color: #f57f17; }
.order-meta-tag.player { background: #e8f5e9; color: #2e7d32; }

/* ===== Order Detail Amount Card ===== */
.order-amount-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    margin: 8px 12px;
    border-radius: var(--radius-md);
    padding: 16px 20px;
    color: #fff;
    box-shadow: 0 4px 16px rgba(255,107,129,0.25);
}
.order-amount-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.order-amount-label {
    font-size: 13px;
    opacity: .85;
}
.order-amount-value {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.order-amount-sub {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    opacity: .85;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

/* ===== Stepper Wrap ===== */
.order-stepper-wrap {
    background: #fff;
    margin: 8px 12px;
    border-radius: var(--radius-md);
    padding: 12px 8px;
    box-shadow: var(--shadow-sm);
}

/* ===== Cancelled Banner ===== */
.order-cancelled-banner {
    background: #fce4ec;
    margin: 8px 12px;
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #c62828;
}

/* ===== Action Bar Hint ===== */
.action-bar-hint {
    flex: 1;
    text-align: center;
    color: var(--text-light);
    font-size: 13px;
    padding: 4px 0;
}

/* ===== Profile Role Badge ===== */
.profile-role-badge {
    display: inline-block;
    background: rgba(255,255,255,0.25);
    padding: 1px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    margin-right: 6px;
    backdrop-filter: blur(4px);
}

/* ===== Profile Stats Clickable ===== */
.profile-stat-item {
    cursor: pointer;
    transition: background .2s;
}
.profile-stat-item:active { background: var(--bg); }

/* ===== Voice Manage Row ===== */
.voice-manage-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.voice-primary-tag {
    font-size: 10px;
    color: var(--primary);
    font-weight: 600;
    white-space: nowrap;
    padding: 2px 6px;
    background: var(--primary-bg);
    border-radius: 6px;
}

/* ===== Logout Button ===== */
.btn-logout {
    width: 100%;
    height: 48px;
    background: #fff;
    color: #e74c3c;
    border: 1.5px solid #fce4ec;
    border-radius: 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
}
.btn-logout:active {
    background: #fef2f2;
    border-color: #e74c3c;
}
