* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #ede9df;
    color: #333;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

.app {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background: #fff;
    padding-bottom: 64px;
}

.topbar {
    background: #ae8b52;
    color: #fff;
    text-align: center;
    padding: 14px 12px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.topbar h1 {
    margin: 0;
    font-size: 22px;
}

.section {
    padding: 12px;
}

.home-section {
    background: linear-gradient(180deg, #b18c57 0, #b18c57 120px, #ede9df 121px, #ede9df 100%);
}

.card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e9e9e9;
    padding: 12px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.card-title {
    font-size: 18px;
    margin: 0 0 8px;
}

.muted {
    color: #888;
    font-size: 13px;
}

.predict-list {
    display: grid;
    gap: 10px;
}

.predict-item {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 10px;
    position: relative;
    background: #fff;
}

.predict-link,
.history-link {
    text-decoration: none;
    color: inherit;
}

.predict-link .predict-item {
    transition: transform 0.15s ease;
}

.predict-link .predict-item:active {
    transform: scale(0.99);
}

.predict-meta {
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 13px;
    margin-bottom: 6px;
}

.recommend {
    color: #b11111;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}

.tab {
    flex: 1;
    text-align: center;
    padding: 8px 4px;
    border-radius: 6px;
    background: #f2e9d9;
    color: #6f5430;
    font-weight: 600;
}

.tab.active {
    background: #ae8b52;
    color: #fff;
}

.list-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.list-row:last-child {
    border-bottom: none;
}

.badge {
    background: #ffefef;
    color: #d24444;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 12px;
}

.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 56px;
    border-top: 1px solid #eaeaea;
    background: #fff;
    display: flex;
    justify-content: center;
}

.nav-item {
    width: min(120px, 25vw);
    text-align: center;
    line-height: 56px;
    color: #777;
    text-decoration: none;
}

.nav-item.active {
    color: #d14444;
    font-weight: 700;
}

.auth-card {
    margin-top: 20px;
}

.login-auth-shell {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
}

.login-brand-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    padding: 22px 24px 24px;
    gap: 14px;
    border: 1px solid #eadfcf;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 24px rgba(80, 57, 26, 0.08);
    text-align: center;
}

.login-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    min-height: 72px;
    margin-bottom: 4px;
    padding: 13px 14px;
    border: 1px solid #eadfcf;
    border-radius: 12px;
    background: #fffaf2;
    text-align: left;
}

.login-notice-label {
    flex: 0 0 auto;
    padding: 2px 8px;
    border-radius: 999px;
    background: #b89051;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
}

.login-notice-content {
    min-width: 0;
    color: #5f5141;
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
}

.login-brand-logo {
    width: 92px;
    height: 92px;
    flex: 0 0 auto;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid #eadfcf;
    background: #fffaf2;
    box-shadow: 0 8px 18px rgba(90, 65, 28, 0.12);
}

.login-brand-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    max-width: 100%;
}

.login-brand-copy h2 {
    margin: 2px 0 0;
    color: #2c2c2c;
    font-size: 22px;
    line-height: 1.25;
    word-break: break-all;
}

.login-brand-copy p {
    margin: 6px 0 0;
    color: #81776a;
    font-size: 14px;
    line-height: 1.45;
    max-width: 300px;
    word-break: break-word;
}

.auth-form {
    display: grid;
    gap: 8px;
}

.auth-form input {
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0 10px;
    font-size: 14px;
}

.auth-form select {
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0 10px;
    font-size: 14px;
    background: #fff;
}

.auth-form textarea {
    min-height: 78px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 9px 10px;
    font-size: 14px;
    line-height: 1.45;
    resize: vertical;
}

.auth-form button {
    margin-top: 8px;
    height: 42px;
    border: none;
    border-radius: 8px;
    background: #ae8b52;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.auth-error {
    margin: 8px 0;
    color: #d23a3a;
    font-size: 13px;
}

.logout-link {
    color: #d14444;
    text-decoration: none;
}

.home-logo {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid #eee;
}

.analyst-card {
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.92));
}

.analyst-head {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.lottery-wrap {
    width: 100%;
}

.lottery-deadline {
    text-align: right;
    font-size: 13px;
    color: #415b89;
    margin-bottom: 8px;
    font-weight: 600;
}

.analyst-info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.analyst-inline-logo {
    width: 44px;
    height: 44px;
    margin-bottom: 0;
}

.analyst-title {
    font-size: 18px;
    margin-bottom: 4px;
}

.analyst-intro {
    font-size: 12px;
}

.lottery-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
}

.lottery-period {
    font-size: 13px;
    color: #6f6452;
}

.lottery-countdown {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.lottery-count-item {
    min-width: 30px;
    height: 34px;
    border: 1px solid #d7d0c2;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #252525;
    font-size: 23px;
    font-weight: 700;
    line-height: 1;
}

.lottery-count-sep {
    font-size: 22px;
    color: #3f3f3f;
    line-height: 1;
    transform: translateY(-1px);
}

.lottery-ball-row {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    flex-wrap: wrap;
}

.lottery-ball-item {
    text-align: center;
    min-width: 44px;
}

.simulate-draw-btn {
    margin-left: 6px;
    margin-top: 6px;
    height: 34px;
    border: 1px solid #274dba;
    border-radius: 999px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .4px;
    color: #fff;
    background: linear-gradient(180deg, #3a67de 0%, #2448a5 100%);
    box-shadow: 0 4px 10px rgba(36, 72, 165, .24);
    cursor: pointer;
    white-space: nowrap;
    transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}

.simulate-draw-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(36, 72, 165, .3);
    filter: saturate(1.08);
}

.simulate-draw-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(36, 72, 165, .25);
}

.simulate-draw-btn:disabled {
    opacity: .72;
    cursor: not-allowed;
}

.lottery-draw-item .lottery-zodiac {
    display: none;
}

.lottery-draw-item.is-revealed .lottery-zodiac {
    display: block;
}

.lottery-draw-pending {
    border-radius: 50%;
    background: #d9d9d9;
    color: #111;
}

.lottery-draw-item.is-revealed .lottery-ball {
    border-radius: 50%;
}

.lottery-draw-item.is-revealed .lottery-ball.lottery-red,
.lottery-draw-item.is-revealed .lottery-ball.lottery-blue,
.lottery-draw-item.is-revealed .lottery-ball.lottery-green,
.lottery-draw-item.is-revealed .lottery-ball.lottery-black {
    display: inline-flex;
}

.lottery-draw-item.is-revealed .lottery-zodiac {
    display: block;
}

.lottery-ball {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    box-sizing: border-box;
    border-radius: 50%;
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    line-height: 44px;
    text-align: center;
    font-family: Arial, "Microsoft YaHei", sans-serif;
    letter-spacing: 0;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    padding-bottom: 1px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .18), inset 0 -2px 0 rgba(0, 0, 0, .2);
}

/* Optical centering for homepage draw balls (e.g. 15/10 with narrow "1"). */
.lottery-ball-row .lottery-ball {
    transform: translateX(1px);
}

.lottery-red {
    background: #e32121;
}

.lottery-blue {
    background: #1246c9;
}

.lottery-green {
    background: #0b8a2f;
}

.lottery-black {
    background: #000;
}

.lottery-zodiac {
    margin-top: 6px;
    color: #2f2f2f;
    font-size: 13px;
}

.lottery-plus {
    color: #d33a3a;
    font-size: 24px;
    font-weight: 700;
    line-height: 44px;
}

.lottery-time {
    margin-top: 10px;
}

.home-tools {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.home-search-form {
    display: flex;
    gap: 8px;
    width: 100%;
}

.filter-btn {
    border: 1px solid #d8d8d8;
    background: #fff;
    border-radius: 6px;
    padding: 0 12px;
    height: 38px;
    color: #5a5a5a;
}

.keyword-input {
    flex: 1;
    border: 1px solid #d8d8d8;
    border-radius: 6px;
    height: 38px;
    padding: 0 12px;
    background: #fff;
}

.search-clear-btn {
    height: 38px;
    padding: 0 10px;
    border: 1px solid #d8d8d8;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #6f6f6f;
    background: #fff;
    white-space: nowrap;
}

.search-summary {
    margin: -4px 2px 10px;
}

.search-no-result {
    text-align: center;
    padding: 8px 0;
}

.kw-hit {
    background: #fff2b8;
    color: inherit;
    border-radius: 3px;
    padding: 0 2px;
}

.home-list-card {
    padding-top: 8px;
}

.home-predict-item {
    border-radius: 2px;
    border-color: #ececec;
    padding-top: 8px;
}

.home-predict-item .data-pill {
    margin-bottom: 10px;
}

.home-predict-item .predict-meta {
    align-items: center;
    margin-bottom: 2px;
}

.home-predict-item .predict-meta strong {
    font-size: 18px;
    line-height: 1.35;
}

.brand-card {
    border-radius: 12px;
}

.brand-head {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 10px;
}

.brand-logo {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid #ececec;
}

.booth-grid {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    justify-content: space-between;
}

.booth-item {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
}

.booth-image,
.booth-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: 90px;
    border-radius: 8px;
    border: 1px solid #ececec;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.booth-image {
    object-fit: cover;
    cursor: pointer;
}

.booth-title {
    margin-top: 6px;
    font-size: 13px;
    color: #666;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.img-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
}

.img-modal.show {
    display: block;
}

.img-modal-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.img-modal-content {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(92vw, 420px);
}

.img-modal-content img {
    width: 100%;
    border-radius: 10px;
    display: block;
    background: #fff;
}

.admin-preview {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
    margin-bottom: 6px;
}

.admin-success {
    margin: 8px 0;
    color: #238a43;
    font-size: 13px;
}

.prediction-editor {
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
}

.admin-actions {
    display: flex;
    gap: 8px;
}

.btn-danger {
    background: #d74848 !important;
}

.result-badge {
    display: inline-block;
    min-width: 30px;
    text-align: center;
    border-radius: 999px;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 700;
}

.result-badge.red {
    color: #b01010;
    border: 1px solid #b01010;
    background: #fff4f4;
}

.result-badge.black {
    color: #222;
    border: 1px solid #222;
    background: #f3f3f3;
}

.detail-black {
    margin-top: 6px;
    margin-bottom: 8px;
}

.price-tag {
    position: absolute;
    right: 10px;
    top: 10px;
    color: #d53333;
    font-size: 18px;
    font-weight: 700;
}

.history-right {
    display: grid;
    justify-items: end;
    gap: 6px;
}

.detail-page {
    background: linear-gradient(180deg, #b18c57 0, #b18c57 82px, #ede9df 83px, #ede9df 100%);
}

.detail-card {
    border-radius: 2px;
}

.detail-header-line {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.detail-title {
    font-size: 32px;
    line-height: 1.35;
    font-weight: 700;
    margin-bottom: 4px;
}

.detail-meta {
    margin-bottom: 14px;
    color: #555;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.split-title {
    text-align: center;
    color: #c0b49b;
    font-size: 14px;
    margin: 14px 0;
    position: relative;
}

.split-title span {
    background: #fff;
    padding: 0 10px;
    position: relative;
    z-index: 1;
}

.split-title::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    border-top: 1px solid #e7decd;
}

.data-pill {
    display: inline-block;
    background: #df001c;
    color: #fff;
    border-radius: 999px;
    padding: 4px 18px;
    font-size: 14px;
    margin-bottom: 8px;
}

.data-pill.black {
    background: #2b2b2b;
}

.detail-content-line {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2px;
    line-height: 1.45;
    margin-bottom: 16px;
}

.history-item {
    border-bottom: 1px solid #efefef;
    padding: 10px 0 12px;
}

.history-title {
    font-size: 20px;
}

.result-badge.circle {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 10px;
}

.status-badge.public {
    border: 1px solid #b01010;
    color: #b01010;
    background: #fff4f4;
}

.status-badge.private {
    border: 1px solid #d89a3f;
    color: #a06d2f;
    background: #fff6e8;
}

.lock-tip {
    margin: 10px 0 12px;
    color: #8d8d8d;
    font-size: 13px;
}

.unlock-banner {
    margin: 14px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.unlock-banner::before,
.unlock-banner::after {
    content: "";
    height: 1px;
    flex: 1;
    background: #eadfcf;
}

.unlock-btn {
    border: none;
    border-radius: 999px;
    background: linear-gradient(180deg, #f49d38 0%, #ea7e13 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 8px 20px;
}

.pay-mask {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
}

.pay-mask.show {
    display: block;
}

.pay-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.58);
}

.pay-sheet {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    border-radius: 14px 14px 0 0;
    overflow: hidden;
    box-shadow: 0 -2px 18px rgba(0, 0, 0, 0.2);
}

.pay-close {
    position: absolute;
    right: 10px;
    top: 8px;
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: #b9b9b9;
    font-size: 24px;
    line-height: 1;
}

.pay-sheet-head {
    text-align: center;
    padding: 20px 12px 12px;
}

.pay-amount {
    color: #9b7a46;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 2px;
}

.pay-discount {
    color: #d13344;
    font-size: 14px;
}

.pay-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
    padding: 10px 12px;
    border-top: 1px solid #f2f2f2;
}

.pay-row-main {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #3d3d3d;
    font-size: 15px;
}

.pay-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.icon-coupon {
    background: linear-gradient(180deg, #f06a6a, #df4b4b);
}

.icon-balance {
    background: linear-gradient(180deg, #d9c29d, #c9ad7d);
}

.icon-wechat {
    background: linear-gradient(180deg, #3ccf62, #2eb653);
}

.icon-alipay {
    background: linear-gradient(180deg, #4da6ff, #338cf0);
}

.pay-row small {
    display: block;
    margin-top: 4px;
    color: #b4b4b4;
}

.coupon-row {
    min-height: 52px;
}

.coupon-link {
    color: #cf5757;
    text-decoration: none;
    font-size: 14px;
}

.pay-radio {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid #d3d3d3;
}

.pay-row.active .pay-radio {
    border-color: #c89b59;
    background: radial-gradient(circle at center, #c89b59 0 5px, #fff 6px);
}

.pay-submit-wrap {
    padding: 18px 12px 10px;
}

.pay-submit {
    width: 100%;
    height: 44px;
    border: none;
    border-radius: 6px;
    background: #ae8b52;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.pay-note {
    text-align: center;
    color: #b4b4b4;
    font-size: 12px;
    padding-bottom: 16px;
}

/* Global visual polish layer */
:root {
    --bg-page: #f5f3ee;
    --bg-card: #ffffff;
    --text-main: #2f2f2f;
    --text-sub: #7f7f7f;
    --brand-main: #ae8b52;
    --brand-soft: #f3eadb;
    --line-soft: #ece7dd;
    --radius-lg: 14px;
    --radius-md: 10px;
}

body {
    background: linear-gradient(180deg, #f8f6f2 0%, var(--bg-page) 100%);
    color: var(--text-main);
}

a {
    color: #8e6c39;
}

.app {
    max-width: 520px;
    background: transparent;
}

.topbar {
    backdrop-filter: blur(8px);
    background: linear-gradient(180deg, #b4935f 0%, #a98750 100%);
    box-shadow: 0 3px 12px rgba(88, 65, 30, 0.15);
}

.topbar h1 {
    font-size: 21px;
    letter-spacing: 0.4px;
}

.section {
    padding: 14px;
}

.card {
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    box-shadow: 0 6px 18px rgba(61, 45, 20, 0.06);
    margin-bottom: 14px;
}

.card-title {
    font-size: 19px;
    margin-bottom: 10px;
}

.muted {
    color: var(--text-sub);
    line-height: 1.45;
}

.tabs {
    gap: 8px;
}

.tab {
    border: 1px solid #dfd0b5;
    background: #f8f2e8;
    color: #7b6038;
    border-radius: var(--radius-md);
    padding: 9px 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tab.active {
    background: linear-gradient(180deg, #b9965e 0%, #ab854a 100%);
    border-color: #ab854a;
    color: #fff;
    box-shadow: 0 4px 10px rgba(120, 86, 40, 0.22);
}

.list-row {
    padding: 14px 0;
}

.auth-form {
    gap: 10px;
    justify-items: center;
}

.auth-form label {
    font-size: 13px;
    color: #6e6a61;
    width: min(100%, 340px);
    text-align: left;
}

.auth-form input,
.auth-form select {
    height: 42px;
    border: 1px solid #ddd5c9;
    border-radius: 9px;
    background: #fff;
    width: min(100%, 340px);
    margin-left: auto;
    margin-right: auto;
}

.auth-form input:focus,
.auth-form select:focus {
    outline: none;
    border-color: #be9756;
    box-shadow: 0 0 0 3px rgba(190, 151, 86, 0.15);
}

.auth-form button {
    height: 44px;
    border-radius: 9px;
    background: linear-gradient(180deg, #b9965e 0%, #ab854a 100%);
    width: min(100%, 340px);
    margin-left: auto;
    margin-right: auto;
}

.auth-quick-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: min(100%, 340px);
    margin: 14px auto 0;
}

.auth-quick-actions form {
    margin: 0;
}

.auth-quick-actions button {
    width: 100%;
    min-height: 42px;
    border: 1px solid #b9965e;
    border-radius: 9px;
    background: #fffaf2;
    color: #8b632a;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
}

.auth-quick-actions button.guest {
    border-color: #d14444;
    background: #fff7f7;
    color: #b83232;
}

.prediction-editor {
    border-color: #e8e0d4;
    border-radius: 12px;
    background: #fffcf8;
}

.bottom-nav {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid #e9e2d7;
    box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.05);
}

.nav-item {
    position: relative;
    line-height: 56px;
    font-size: 14px;
}

.nav-item.active {
    color: #ba3a3a;
}

.nav-item.active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 8px;
    width: 22px;
    height: 3px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: #ba3a3a;
}

.detail-title {
    font-size: 24px;
}

.detail-content-line {
    font-size: 17px;
    letter-spacing: 1px;
}

.history-title {
    font-size: 18px;
}

.profile-hero {
    background: linear-gradient(145deg, #b48f55 0%, #c8a875 100%);
    color: #fff;
}

.profile-hero .card-title {
    color: #fff;
}

.profile-hero p {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.9);
}

.profile-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 14px 0 2px;
}

.profile-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 1px solid transparent;
    border-radius: 8px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.profile-action-btn-primary {
    background: linear-gradient(180deg, #c13f3f 0%, #ab2929 100%);
    border-color: #a82323;
    color: #fff;
    box-shadow: 0 6px 14px rgba(174, 41, 41, 0.22);
}

.profile-action-btn-secondary {
    background: #fff7e9;
    border-color: #dfc391;
    color: #8a6327;
    box-shadow: 0 4px 10px rgba(138, 99, 39, 0.1);
}

.profile-action-btn:active {
    transform: scale(0.98);
    box-shadow: none;
}

/* Round 2 fine tune */
.home-section {
    padding-top: 12px;
    background: linear-gradient(180deg, #b18c57 0, #b18c57 116px, #f5f3ee 117px, #f5f3ee 100%);
}

.analyst-card,
.brand-card {
    border-radius: 14px;
}

.analyst-head,
.brand-head {
    align-items: center;
}

.home-logo,
.brand-logo {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.home-tools {
    margin: 0 2px 12px;
}

.filter-btn,
.keyword-input {
    height: 40px;
    border-color: #dbcdb4;
    border-radius: 10px;
}

.search-clear-btn {
    height: 40px;
    border-color: #dbcdb4;
    border-radius: 10px;
}

.home-list-card {
    border: 1px solid #dbc9aa;
    background: #fffdf9;
}

.home-predict-item {
    border-radius: 10px;
    border: 1px solid #eee4d5;
    padding: 12px 12px 34px;
    background: #fff;
}

.home-predict-item .recommend {
    margin-top: 4px;
    font-size: 15px;
}

.price-tag {
    top: 12px;
    right: 12px;
    font-size: 17px;
}

.buyers-corner {
    position: absolute;
    right: 10px;
    bottom: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #8f8f8f;
    font-size: 12px;
}

.buyers-cart {
    font-size: 13px;
    line-height: 1;
}

.detail-page {
    background: linear-gradient(180deg, #b18c57 0, #b18c57 76px, #f5f3ee 77px, #f5f3ee 100%);
}

.detail-card {
    border-radius: 14px;
}

.detail-back-wrap {
    margin-bottom: 10px;
}

.detail-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #7f6035;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #dccdb2;
    background: #fff8ec;
}

.detail-back-btn:active {
    transform: scale(0.98);
}

.split-title {
    margin: 18px 0 14px;
}

.history-item {
    padding: 12px 0 14px;
}

.history-link .history-item:active {
    background: #fcf9f2;
}

.pay-sheet {
    border-radius: 16px 16px 0 0;
}

.pay-submit {
    height: 46px;
    border-radius: 10px;
}

.auth-card {
    margin-top: 26px;
}

.auth-card .card-title {
    text-align: center;
    margin-bottom: 14px;
}

.admin-actions button {
    flex: 1;
}

.prediction-editor .admin-actions {
    margin-top: 4px;
}

@media (max-width: 420px) {
    .section {
        padding: 12px;
    }

    .card {
        border-radius: 12px;
        padding: 10px;
    }

    .detail-title {
        font-size: 21px;
    }

    .history-title {
        font-size: 16px;
    }

    .pay-amount {
        font-size: 30px;
    }
}

/* Round 3 autonomous refinement */
.section > .card:last-child {
    margin-bottom: 8px;
}

.card strong {
    color: #2c2c2c;
}

.badge {
    background: #fff1f1;
    border: 1px solid #f1c8c8;
    color: #c84242;
    padding: 2px 9px;
    font-weight: 600;
}

.status-badge {
    min-width: 54px;
}

.predict-link {
    display: block;
    border-radius: 10px;
}

.predict-link + .predict-link {
    margin-top: 2px;
}

.predict-link .predict-item {
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.predict-link .predict-item:active {
    transform: scale(0.995);
    box-shadow: 0 2px 8px rgba(84, 57, 22, 0.12);
}

.booth-image,
.booth-placeholder {
    border-color: #e5dac8;
    background: #fdfaf4;
}

.booth-title {
    color: #6f6452;
}

.list-row > div:last-child {
    color: #5b5b5b;
}

.list-row span:last-child {
    color: #b1a083;
}

.logout-link {
    color: #b03e3e;
    font-weight: 600;
}

.messages-empty,
.orders-empty {
    text-align: center;
    padding: 10px 0;
}

.auth-error,
.admin-success {
    border-radius: 8px;
    padding: 8px 10px;
}

.auth-error {
    background: #fff4f4;
    border: 1px solid #f1d3d3;
}

.admin-success {
    background: #f2fbf4;
    border: 1px solid #d7efd9;
}

.tabs .tab[href] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.prediction-editor input[disabled],
.prediction-editor select[disabled] {
    background: #f7f7f7;
    color: #8d8d8d;
}

.pay-mask.show .pay-sheet {
    animation: sheetUp 0.2s ease-out;
}

@keyframes sheetUp {
    from {
        transform: translateY(18px);
        opacity: 0.85;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.img-modal-content {
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.35));
}

/* Round 4 final pass */
html {
    font-size: 16px;
}

body,
input,
select,
button {
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

p {
    margin: 0;
}

.card p + p {
    margin-top: 6px;
}

.card-title {
    line-height: 1.3;
}

.muted {
    font-size: 13px;
}

.detail-meta {
    flex-wrap: wrap;
    row-gap: 6px;
}

.detail-content-line {
    word-break: break-all;
}

.history-link {
    display: block;
    border-radius: 10px;
}

.history-link + .history-link {
    margin-top: 4px;
}

.history-link .history-item {
    padding-left: 2px;
    padding-right: 2px;
    border-radius: 8px;
}

.history-link-static {
    cursor: default;
}

.history-link-static .history-item:active {
    background: transparent;
}

.profile-hero {
    padding-top: 14px;
    padding-bottom: 14px;
}

.profile-hero .card-title {
    margin-bottom: 4px;
}

.auth-card {
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
}

.auth-section {
    min-height: calc(100vh - 56px - 56px);
    display: flex;
    align-items: center;
}

.auth-section .auth-card {
    width: 100%;
    margin-top: 0;
    margin-bottom: 0;
}

.auth-form button {
    letter-spacing: 0.6px;
}

.admin-preview {
    border-radius: 10px;
}

.prediction-editor {
    padding: 12px;
}

.prediction-editor label {
    font-size: 12px;
    color: #807763;
}

.prediction-editor .admin-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.prediction-editor .admin-actions button {
    min-height: 40px;
}

.section .tabs {
    margin-bottom: 14px;
}

.topbar + .section {
    padding-top: 14px;
}

.pay-sheet-head {
    border-bottom: 1px solid #f3eee4;
}

.pay-note {
    border-top: 1px solid #f6f2ea;
    margin-top: 4px;
    padding-top: 8px;
}

@media (max-width: 360px) {
    .card-title {
        font-size: 17px;
    }

    .predict-meta strong {
        font-size: 15px !important;
    }

    .price-tag {
        font-size: 15px;
    }

    .prediction-editor .admin-actions {
        grid-template-columns: 1fr;
    }
}

.tabs {
    flex-wrap: wrap;
}

.tab {
    flex: 1 1 108px;
}

.status-badge.member {
    border: 1px solid #8f6bd8;
    color: #6d4ab5;
    background: #f6f1ff;
}

.membership-card {
    text-align: center;
}

.membership-price {
    margin: 8px 0;
    color: #b03e3e;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.1;
}

.membership-primary-link {
    width: min(100%, 340px);
    min-height: 44px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: linear-gradient(180deg, #b9965e 0%, #ab854a 100%);
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
}

.member-editor .admin-actions {
    width: min(100%, 340px);
}

.member-list {
    display: grid;
    gap: 8px;
}

.member-list-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid #eee4d5;
    border-radius: 10px;
    background: #fffdf9;
}

.member-list-main {
    min-width: 0;
}

.member-list-main strong,
.member-list-main .muted {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-list-actions,
.member-detail-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.member-list-actions .filter-btn,
.member-list-actions .search-clear-btn,
.member-detail-actions .filter-btn,
.member-detail-actions .search-clear-btn,
.member-edit-form .admin-actions .search-clear-btn {
    min-width: 70px;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.member-detail-list {
    margin-bottom: 12px;
}

.member-edit-form .admin-actions {
    width: min(100%, 340px);
}

@media (max-width: 520px) {
    .member-list-row {
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
    }

    .member-list-actions {
        width: 100%;
    }

    .member-list-actions .filter-btn,
    .member-list-actions .search-clear-btn {
        flex: 1;
    }
}

.lottery-history-page .card {
    overflow: hidden;
}

.lottery-history-top-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.lottery-history-row {
    padding: 12px 0 10px;
    border-bottom: 1px solid #f0ece3;
}

.lottery-history-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

.lottery-history-balls-wrap {
    margin-bottom: 8px;
}

.lottery-history-mini-balls {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    flex-wrap: wrap;
}

.lottery-history-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.lottery-mini {
    width: 34px;
    height: 34px;
    line-height: 1;
    border-radius: 50%;
    font-size: 22px;
}

.admin-lottery-balls {
    margin: 4px 0 8px;
}

.admin-lottery-balls .lottery-ball-item {
    min-width: 34px;
}

.admin-lottery-balls .lottery-plus {
    line-height: 34px;
    font-size: 20px;
}

.lottery-history-page .lottery-zodiac {
    font-size: 11px;
    margin-top: 3px;
}

.toggle-schemes-btn {
    width: 120px;
    border: 1px solid #bf2d2d;
    background: linear-gradient(180deg, #d24545 0%, #b92d2d 100%);
    color: #fff;
    border-radius: 6px;
    height: 34px;
    font-weight: 700;
    font-size: 12px;
}

.watch-live-btn {
    width: 72px;
    border: 1px solid #2d5bbf;
    background: linear-gradient(180deg, #3e74de 0%, #2d5bbf 100%);
    color: #fff;
    border-radius: 6px;
    height: 34px;
    font-weight: 700;
    font-size: 12px;
}

.scheme-collapse {
    background: #faf8f3;
    border-bottom: 1px solid #f0ece3;
    padding: 10px;
}

.scheme-collapse .history-item {
    background: #fff;
    border: 1px solid #ece4d5;
    border-radius: 8px;
    position: relative;
    padding: 10px 66px 10px 10px;
}

.live-modal {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: none;
}

.live-modal.show {
    display: block;
}

.live-modal-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.live-modal-content {
    position: relative;
    z-index: 1;
    width: min(520px, calc(100% - 24px));
    margin: 8vh auto 0;
    border-radius: 10px;
    background: #fff;
    padding: 14px;
}

.live-modal-close {
    position: absolute;
    right: 8px;
    top: 8px;
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    color: #61718a;
}

.live-modal-title {
    margin: 0 30px 6px 0;
    color: #1f3656;
}

.live-modal-subtitle {
    margin: 0 0 10px;
}

.live-player {
    width: 100%;
    border-radius: 8px;
    background: #000;
    min-height: 180px;
    max-height: 60vh;
}

.live-modal-tip {
    margin: 10px 0 0;
}

.live-modal-links {
    margin-top: 10px;
    display: flex;
    gap: 8px;
}

.home-page-switch {
    display: flex;
    gap: 10px;
}

.home-switch-btn {
    flex: 1;
    max-width: 160px;
    height: 36px;
    border-radius: 6px;
    border: 1px solid #cdd6e5;
    background: #fff;
    color: #2a3d58;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}

.home-switch-btn.active {
    border-color: #bf2d2d;
    background: linear-gradient(180deg, #d24545 0%, #b92d2d 100%);
    color: #fff;
}

.precise-series-block + .precise-series-block {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #f0ece3;
}

.precise-series-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-bottom: 8px;
    padding: 0 2px;
    color: #1f3656;
    font: inherit;
    text-align: left;
}

.precise-series-head strong {
    font-size: 15px;
    line-height: 1.35;
    word-break: break-word;
}

.precise-series-head .muted {
    flex: 0 0 auto;
}

.precise-scheme-item {
    border: 1px solid #eee4d5;
    border-radius: 10px;
    background: #fffdf9;
    padding: 10px;
}

.precise-latest-scheme {
    border-left: 4px solid #bf2d2d;
}

.precise-scheme-item.history-item {
    border-bottom: 1px solid #eee4d5;
}

.precise-scheme-item .detail-content-line {
    margin: 8px 0 0;
}

.pick-helper-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.pick-helper-result label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #1f3656;
}

.pick-helper-result textarea {
    width: 100%;
    min-height: 220px;
    border: 1px solid #d6deea;
    border-radius: 8px;
    padding: 10px;
    background: #f7faff;
    resize: vertical;
    color: #1a2a3f;
    font-size: 13px;
    line-height: 1.5;
}

.pick-helper-actions {
    margin-top: 8px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.pick-helper-actions button,
.pick-helper-btn {
    border: 1px solid #cdd6e5;
    background: #fff;
    border-radius: 6px;
    color: #2a3d58;
    min-height: 34px;
    padding: 0 12px;
    font-size: 12px;
}

.pick-helper-result-render {
    min-height: 220px;
    border: 1px solid #d6deea;
    border-radius: 8px;
    padding: 10px;
    background: #f7faff;
    color: #1a2a3f;
    font-size: 13px;
    line-height: 1.5;
}

.pick-helper-result-item + .pick-helper-result-item {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #dbe5f3;
}

.pick-helper-result-title {
    font-weight: 700;
    color: #1f3656;
    margin-bottom: 8px;
    font-size: 12px;
}

.pick-helper-result-balls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.pick-helper-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pick-helper-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #eff3f9;
}

.pick-helper-group:last-child {
    border-bottom: 0;
}

.pick-helper-btn {
    min-width: 70px;
    cursor: pointer;
}

.pick-helper-btn:hover {
    border-color: #95abd0;
    background: #f4f8ff;
}

.pick-helper-btn.active {
    border-color: #2f6fed !important;
    background: #2f6fed !important;
    color: #fff !important;
    box-shadow: 0 6px 14px rgba(47, 111, 237, .25);
}

.pick-helper-grid .pick-helper-btn.active:hover,
.pick-helper-btn.active:hover {
    border-color: #255bd0 !important;
    background: #255bd0 !important;
}

@media (max-width: 900px) {
    .pick-helper-wrap {
        grid-template-columns: 1fr;
    }
}

.support-automation-card {
    overflow: visible;
}

.support-automation-shell {
    display: grid;
    gap: 12px;
}

.support-automation-top,
.support-automation-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.support-automation-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.support-automation-stats span {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    min-height: 30px;
    border: 1px solid #e6eaf0;
    border-radius: 999px;
    padding: 4px 10px;
    background: #f8fafc;
    color: #5b6470;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.support-automation-stats strong {
    color: #1f2937;
    font-size: 16px;
}

.support-automation-actions,
.support-automation-rule-head {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.support-automation-actions button,
.support-automation-section-head button,
.support-automation-rule-head button,
.support-automation-test button {
    min-height: 36px;
    border: 1px solid #d6dce6;
    border-radius: 8px;
    padding: 0 12px;
    background: #fff;
    color: #333;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

.support-automation-actions button:last-child,
.support-automation-section-head button,
.support-automation-test button {
    border-color: #b89051;
    background: #b89051;
    color: #fff;
}

.support-automation-notice {
    border: 1px solid #cde7d4;
    border-radius: 8px;
    padding: 9px 10px;
    background: #f2fbf4;
    color: #2d6b3f;
    font-size: 13px;
    font-weight: 700;
}

.support-automation-notice.error {
    border-color: #f0c9c9;
    background: #fff5f5;
    color: #b42318;
}

.support-automation-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.support-automation-block,
.support-automation-rule {
    display: grid;
    gap: 10px;
    min-width: 0;
    border: 1px solid #e3e8ef;
    border-radius: 8px;
    padding: 12px;
    background: #fbfcfe;
}

.support-automation-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.support-automation-block-head strong,
.support-automation-section-head strong {
    color: #25272b;
    font-size: 15px;
}

.support-automation-switch,
.support-automation-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #596273;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.support-automation-switch input,
.support-automation-check input {
    width: 16px;
    height: 16px;
    accent-color: #b89051;
}

.support-automation-block textarea,
.support-automation-rule textarea,
.support-automation-rule input[type="text"],
.support-automation-rule select,
.support-automation-test input {
    width: 100%;
    min-width: 0;
    border: 1px solid #d8dde6;
    border-radius: 8px;
    background: #fff;
    color: #262b33;
    font-size: 14px;
}

.support-automation-block textarea,
.support-automation-rule textarea {
    resize: vertical;
    min-height: 80px;
    padding: 9px 10px;
    line-height: 1.45;
}

.support-automation-rule input[type="text"],
.support-automation-rule select,
.support-automation-test input {
    min-height: 38px;
    padding: 0 10px;
}

.support-automation-rule-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(140px, 180px);
    gap: 10px;
}

.support-automation-rule-grid label {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.support-automation-rule-grid span {
    color: #667085;
    font-size: 12px;
    font-weight: 700;
}

.support-automation-block small,
.support-automation-rule small {
    color: #7a8493;
    font-size: 12px;
}

.support-automation-test {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    border-top: 1px solid #edf0f4;
    padding-top: 12px;
}

.support-automation-test .muted {
    grid-column: 1 / -1;
    overflow-wrap: anywhere;
}

@media (max-width: 900px) {
    .support-automation-grid,
    .support-automation-rule-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .support-automation-top,
    .support-automation-section-head {
        align-items: stretch;
        flex-direction: column;
    }

    .support-automation-actions,
    .support-automation-section-head button,
    .support-automation-test button {
        width: 100%;
    }

    .support-automation-actions button,
    .support-automation-section-head button,
    .support-automation-test button {
        flex: 1 1 0;
    }

    .support-automation-test {
        grid-template-columns: 1fr;
    }
}

.cs-admin-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 12px;
    /* Keep the admin workspace visible in one screen on desktop. */
    height: calc(100vh - 280px);
    min-height: 460px;
}

.cs-admin-notify-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    border: 1px solid #f0d4d4;
    border-radius: 8px;
    padding: 10px 12px;
    background: #fff8f8;
}

.cs-admin-notify-bar strong {
    display: block;
    color: #991b1b;
    font-size: 14px;
    line-height: 1.3;
}

.cs-admin-notify-bar small {
    display: block;
    margin-top: 3px;
    color: #8f8f8f;
    font-size: 12px;
    line-height: 1.3;
}

.cs-admin-notify-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.cs-sound-toggle,
#supportSoundToggle {
    min-width: 72px;
    min-height: 34px;
    border: 1px solid #e4e4e7;
    border-radius: 999px;
    padding: 0 12px;
    background: #fff;
    color: #333;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
}

.cs-sound-toggle[data-muted="1"],
#supportSoundToggle[data-muted="1"] {
    color: #8a8a8a;
    background: #f5f5f5;
}

.cs-volume-control,
.support-volume-control {
    width: 96px;
    max-width: 24vw;
    accent-color: #dc2626;
    cursor: pointer;
}

.cs-admin-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
    overflow-y: auto;
}

.cs-admin-row {
    text-align: left;
    border: 1px solid #eee;
    background: #fff;
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    position: relative;
}

.cs-admin-row strong,
.cs-admin-row small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cs-admin-row strong {
    color: #1f2933;
    font-size: .95rem;
    line-height: 1.25;
}

.cs-admin-row small {
    color: #6b7280;
    font-size: .78rem;
}

.cs-admin-row.active {
    border-color: #dc2626;
    background: #fff5f5;
}

.cs-admin-row.has-unread {
    border-color: rgba(220, 38, 38, .42);
    box-shadow: 0 8px 18px rgba(220, 38, 38, .08);
}

.cs-admin-row.has-unread::before {
    content: "";
    position: absolute;
    top: 9px;
    bottom: 9px;
    left: 0;
    width: 3px;
    border-radius: 0 999px 999px 0;
    background: #dc2626;
}

.cs-admin-detail {
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.cs-admin-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.cs-admin-messages {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    padding: 10px;
    background: #fafafa;
}

.cs-admin-send {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid #f0f0f0;
}

.cs-admin-send-actions {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.cs-admin-send-actions button {
    white-space: nowrap;
}

.cs-admin-send textarea {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px;
    resize: none;
}

@media (max-width: 860px) {
    .cs-admin-grid {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 0;
    }

    .cs-admin-list {
        max-height: 40vh;
    }

    .cs-admin-detail {
        min-height: 420px;
    }
}

.support-client-body {
    margin: 0;
    background: #f3f5f9;
}

.support-client-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 240px 1fr;
}

.support-client-sidebar {
    background: #111827;
    color: #fff;
    padding: 18px 14px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.support-client-brand {
    font-size: 18px;
    font-weight: 700;
}

.support-client-user {
    padding: 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.support-client-filters {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.support-filter {
    border: 0;
    text-align: left;
    border-radius: 8px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.support-filter.active {
    background: #dc2626;
}

.support-filter-badge {
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    padding: 0 6px;
    background: #ff2f2f;
    color: #fff;
    font-style: normal;
    font-size: 11px;
    font-weight: 800;
    line-height: 18px;
    text-align: center;
}

.support-client-main {
    padding: 12px;
}

.support-client-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.support-client-content {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 12px;
    min-height: calc(100vh - 90px);
}

.support-conversation-list {
    background: #fff;
    border: 1px solid #e6e8ec;
    border-radius: 10px;
    padding: 10px;
    overflow-y: auto;
}

.support-conversation-panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.support-conversation-tools {
    display: grid;
    grid-template-columns: 1fr auto 96px;
    align-items: center;
    gap: 8px;
}

.support-conversation-tools input[type="text"] {
    min-width: 0;
    border: 1px solid #d8dde6;
    border-radius: 8px;
    padding: 8px 10px;
    background: #fff;
}

@media (max-width: 520px) {
    .cs-admin-notify-bar {
        flex-wrap: wrap;
    }

    .support-conversation-tools {
        grid-template-columns: 1fr auto;
    }

    .support-volume-control {
        grid-column: 1 / -1;
        width: 100%;
        max-width: none;
    }
}

.support-conversation-item {
    width: 100%;
    border: 1px solid #edf0f5;
    border-radius: 8px;
    background: #fff;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 8px;
    margin-bottom: 8px;
    position: relative;
}

.support-conversation-item.active {
    border-color: #dc2626;
    background: #fff5f5;
}

.support-conversation-item.has-unread {
    border-color: rgba(220, 38, 38, .42);
    box-shadow: 0 8px 18px rgba(220, 38, 38, .08);
}

.support-conversation-item.has-unread::before {
    content: "";
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 0;
    width: 3px;
    border-radius: 0 999px 999px 0;
    background: #dc2626;
}

.support-unread-badge {
    display: inline-flex;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-style: normal;
    font-size: 11px;
    line-height: 18px;
    justify-content: center;
    padding: 0 5px;
    margin-left: 6px;
    vertical-align: middle;
}

.support-chat-pane {
    background: #fff;
    border: 1px solid #e6e8ec;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
}

.support-chat-toolbar {
    padding: 10px;
    border-bottom: 1px solid #edf0f5;
    display: flex;
    gap: 8px;
}

.support-chat-messages {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #f8fafc;
    padding: 10px;
    overflow-y: auto;
}

.support-msg {
    width: fit-content;
    max-width: 78%;
    margin: 0 auto 0 0;
    border-radius: 8px;
    padding: 8px 10px;
    word-break: break-word;
}

.support-msg.user {
    margin-right: auto;
    background: #fff;
    border: 1px solid #e6e8ec;
}

.support-msg.mine {
    margin-left: auto;
    margin-right: 0;
    background: #dc2626;
    color: #fff;
}

.support-msg-role {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    line-height: 1.2;
    opacity: .72;
}

.support-msg small {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    line-height: 1.2;
    opacity: .72;
}

.support-message-text {
    white-space: pre-wrap;
    word-break: break-word;
}

.support-message-image-link {
    display: inline-flex;
    max-width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    line-height: 0;
}

.support-message-image {
    display: block;
    max-width: min(280px, 100%);
    max-height: 280px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.support-msg.mine .support-message-image-link {
    border-color: rgba(255, 255, 255, 0.55);
}

.support-chat-form {
    border-top: 1px solid #edf0f5;
    padding: 10px;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 8px;
}

.support-chat-form textarea {
    border: 1px solid #d8dde6;
    border-radius: 8px;
    resize: none;
    padding: 8px;
}

.cs-admin-send button:disabled,
.support-chat-form button:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.cs-notify-toast {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 2000;
    max-width: min(320px, calc(100vw - 36px));
    border: 1px solid rgba(220, 38, 38, .22);
    border-radius: 8px;
    padding: 10px 12px;
    background: #fff;
    color: #222;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .18);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .18s ease, transform .18s ease;
    pointer-events: none;
}

.cs-notify-toast.show {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .support-client-shell {
        grid-template-columns: 1fr;
    }
    .support-client-content {
        grid-template-columns: 1fr;
    }
}

/* Admin desktop layout */
.admin-body {
    background: #f4f5f7;
}

@media (min-width: 1024px) {
    .admin-app {
        width: 100%;
        max-width: none;
        margin: 0;
        min-height: 100vh;
        padding-bottom: 0;
        background: #f4f5f7;
    }

    .admin-login-app {
        display: flex;
        flex-direction: column;
    }

    .admin-login-app .topbar {
        position: static;
        background: #ffffff;
        color: #222222;
        border-bottom: 1px solid #e4e6ea;
        box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
    }

    .admin-login-app .section {
        width: min(100%, 540px);
        margin: 0 auto;
        padding: 44px 24px;
    }

    .admin-shell-app {
        display: grid;
        grid-template-columns: 240px minmax(0, 1fr);
        grid-template-rows: auto 1fr;
        background: #f4f5f7;
    }

    .admin-shell-app .topbar {
        grid-column: 2;
        position: sticky;
        top: 0;
        z-index: 15;
        background: #ffffff;
        color: #222222;
        text-align: left;
        padding: 18px clamp(24px, 3vw, 44px);
        border-bottom: 1px solid #e4e6ea;
        box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
    }

    .admin-shell-app .topbar h1 {
        width: min(100%, 1360px);
        margin: 0 auto;
        font-size: 24px;
        line-height: 1.25;
        color: #222222;
    }

    .admin-shell-app .section {
        grid-column: 2;
        width: min(100%, 1360px);
        margin: 0 auto;
        padding: 24px clamp(24px, 3vw, 44px) 44px;
    }

    .admin-shell-app .section > .tabs {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        z-index: 20;
        width: 240px;
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin: 0;
        padding: 78px 14px 18px;
        overflow-y: auto;
        background: #2d2a25;
        border-right: 1px solid rgba(0, 0, 0, 0.18);
        box-shadow: 8px 0 24px rgba(31, 34, 38, 0.08);
    }

    .admin-shell-app .section > .tabs::before {
        content: "";
        position: absolute;
        top: 28px;
        left: 20px;
        width: 42px;
        height: 4px;
        border-radius: 999px;
        background: #b89051;
        box-shadow: 52px 0 0 rgba(255, 255, 255, 0.18);
    }

    .admin-shell-app .section > .tabs .tab {
        flex: 0 0 auto;
        min-height: 42px;
        width: 100%;
        justify-content: flex-start;
        text-align: left;
        padding: 0 14px;
        border-radius: 8px;
        background: transparent;
        color: #ded8cf;
        font-size: 14px;
        font-weight: 600;
        text-decoration: none;
    }

    .admin-shell-app .section > .tabs .tab:hover {
        background: rgba(255, 255, 255, 0.08);
        color: #ffffff;
    }

    .admin-shell-app .section > .tabs .tab.active {
        background: #b89051;
        color: #ffffff;
        box-shadow: 0 10px 18px rgba(184, 144, 81, 0.22);
    }

    .admin-shell-app .card {
        margin-bottom: 16px;
        padding: 18px 20px;
        border-radius: 8px;
        border-color: #e1e5ea;
        box-shadow: 0 8px 24px rgba(26, 32, 44, 0.05);
    }

    .admin-shell-app .card-title {
        margin-bottom: 14px;
        font-size: 18px;
        color: #25272b;
    }

    .admin-shell-app .muted {
        color: #6b7280;
    }

    .admin-shell-app .auth-error,
    .admin-shell-app .admin-success {
        max-width: 760px;
    }

    .admin-shell-app .auth-form {
        gap: 12px 16px;
    }

    .admin-shell-app .auth-form input,
    .admin-shell-app .auth-form select,
    .admin-shell-app .auth-form textarea {
        width: 100%;
        min-width: 0;
        border-radius: 8px;
        border-color: #d8dde5;
    }

    .admin-shell-app .auth-form input,
    .admin-shell-app .auth-form select {
        height: 42px;
    }

    .admin-shell-app .auth-form button,
    .admin-shell-app .filter-btn,
    .admin-shell-app .search-clear-btn {
        min-height: 40px;
        border-radius: 8px;
        cursor: pointer;
    }

    .admin-shell-app .card > .auth-form:not(.prediction-editor) {
        grid-template-columns: minmax(140px, 190px) minmax(0, 1fr);
        align-items: center;
    }

    .admin-shell-app .card > .auth-form:not(.prediction-editor) + .auth-form:not(.prediction-editor) {
        margin-top: 14px;
        padding-top: 14px;
        border-top: 1px solid #edf0f4;
    }

    .admin-shell-app .card > .auth-form:not(.prediction-editor) > label {
        justify-self: end;
        text-align: right;
        color: #4f5661;
        font-size: 13px;
        font-weight: 600;
    }

    .admin-shell-app .card > .auth-form:not(.prediction-editor) > .admin-preview,
    .admin-shell-app .card > .auth-form:not(.prediction-editor) > .muted {
        grid-column: 2;
    }

    .admin-shell-app .card > .auth-form:not(.prediction-editor) > .pick-helper-group-title,
    .admin-shell-app .card > .auth-form:not(.prediction-editor) > .pick-helper-group-grid {
        grid-column: 1 / -1;
    }

    .admin-shell-app .card > .auth-form:not(.prediction-editor) > button[type="submit"] {
        grid-column: 2;
        justify-self: start;
        width: auto;
        min-width: 180px;
        padding: 0 22px;
    }

    .admin-shell-app .prediction-editor {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px 14px;
        align-items: start;
        margin-bottom: 12px;
        padding: 14px;
        border-color: #e2e7ee;
        background: #fbfcfe;
    }

    .admin-shell-app .prediction-editor > label.prediction-editor-meta,
    .admin-shell-app .prediction-editor > .muted,
    .admin-shell-app .prediction-editor > .admin-actions {
        grid-column: 1 / -1;
    }

    .admin-shell-app .prediction-editor > label.prediction-editor-meta {
        color: #30343a;
        font-size: 13px;
        font-weight: 700;
    }

    .admin-shell-app .prediction-editor-field {
        display: grid;
        gap: 4px;
        min-width: 0;
    }

    .admin-shell-app .prediction-editor-field label {
        width: auto;
        margin: 0;
        text-align: left;
        justify-self: start;
        color: #5f6874;
        font-size: 12px;
        font-weight: 600;
    }

    .admin-shell-app .prediction-editor-field input,
    .admin-shell-app .prediction-editor-field select {
        width: 100%;
        margin: 0;
    }

    .admin-shell-app .prediction-editor .admin-actions {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        width: auto;
        margin-top: 0;
    }

    .admin-shell-app .prediction-editor .admin-actions button {
        flex: 0 0 auto;
        min-width: 150px;
        padding: 0 18px;
    }

    .admin-shell-app .admin-actions {
        flex-wrap: wrap;
    }

    .admin-shell-app .member-edit-form .admin-actions {
        grid-column: 2;
        width: auto;
        justify-content: flex-start;
    }

    .admin-shell-app .member-list-row {
        grid-template-columns: minmax(260px, 1fr) auto auto;
    }

    .admin-shell-app .home-search-form {
        max-width: 760px;
        align-items: center;
    }

    .admin-shell-app .home-search-form .keyword-input {
        min-width: 320px;
    }

    .admin-shell-app .filter-btn,
    .admin-shell-app .search-clear-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        white-space: nowrap;
    }

    .admin-shell-app .admin-preview {
        width: 112px;
        height: 112px;
    }

    .admin-shell-app .pick-helper-group-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .admin-shell-app .pick-number-grid {
        grid-template-columns: repeat(auto-fill, minmax(42px, 1fr));
    }

    .admin-shell-app .cs-admin-grid {
        grid-template-columns: 320px minmax(0, 1fr);
        min-height: 540px;
        height: calc(100vh - 250px);
    }
}

@media (min-width: 1280px) {
    .admin-shell-app .card > .auth-form:not(.prediction-editor) {
        grid-template-columns: minmax(150px, 210px) minmax(0, 760px);
    }
}

/* Admin member management */
.status-badge.expired {
    border: 1px solid #e09a8d;
    color: #a94636;
    background: #fff3f0;
}

.admin-members-page .member-admin-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.admin-members-page .member-toolbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-members-page .member-toolbar-actions .filter-btn {
    min-height: 38px;
    padding: 0 14px;
    border-color: #b89051;
    color: #ffffff;
    background: #b89051;
    font-weight: 700;
}

.admin-members-page .member-toolbar-actions .logout-link {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.admin-members-page .member-admin-toolbar strong {
    display: block;
    color: #25272b;
    font-size: 16px;
}

.admin-members-page .member-admin-toolbar .muted,
.admin-members-page .member-card-head .muted,
.admin-members-page .member-identity .muted,
.admin-members-page .member-empty-state .muted {
    margin: 4px 0 0;
}

.admin-members-page .member-page-alert {
    margin: 0 0 12px;
}

.admin-members-page .member-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.admin-members-page .member-stat-card {
    min-width: 0;
    min-height: 82px;
    padding: 12px;
    border: 1px solid #e5e8ed;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(26, 32, 44, 0.04);
}

.admin-members-page .member-stat-card span {
    display: block;
    color: #737b86;
    font-size: 12px;
    font-weight: 700;
}

.admin-members-page .member-stat-card strong {
    display: block;
    margin-top: 8px;
    color: #20242a;
    font-size: 24px;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.admin-members-page .member-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.admin-members-page .member-card-head .card-title {
    margin-bottom: 0;
}

.admin-members-page .member-result-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 12px;
    border: 1px solid #e1e6ee;
    border-radius: 999px;
    color: #4d5968;
    background: #f8fafc;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.admin-members-page .member-search-form {
    max-width: none;
    margin-bottom: 12px;
}

.admin-members-page .member-filter-pills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.admin-members-page .member-filter-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid #e0e5ec;
    border-radius: 8px;
    color: #4f5967;
    background: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.admin-members-page .member-filter-pill.active {
    border-color: #b89051;
    color: #ffffff;
    background: #b89051;
    box-shadow: 0 8px 18px rgba(184, 144, 81, 0.16);
}

.admin-members-page .member-profile-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.admin-members-page .member-avatar {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #ffffff;
    background: linear-gradient(135deg, #b89051 0%, #5c6675 100%);
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    flex: 0 0 auto;
}

.admin-members-page .member-avatar-small {
    width: 38px;
    height: 38px;
    font-size: 16px;
}

.admin-members-page .member-profile-title {
    min-width: 0;
}

.admin-members-page .member-profile-title strong,
.admin-members-page .member-identity strong {
    display: block;
    overflow: hidden;
    color: #25272b;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-members-page .member-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.admin-members-page .member-detail-item {
    min-width: 0;
    padding: 12px;
    border: 1px solid #e6ebf1;
    border-radius: 8px;
    background: #f9fafb;
}

.admin-members-page .member-detail-item span {
    display: block;
    margin-bottom: 6px;
    color: #737b86;
    font-size: 12px;
    font-weight: 700;
}

.admin-members-page .member-detail-item strong {
    display: block;
    overflow: hidden;
    color: #25272b;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-members-page .member-edit-form {
    display: grid;
    gap: 12px;
    justify-items: stretch;
}

.admin-members-page .member-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
}

.admin-members-page .member-edit-form .member-field {
    width: 100%;
    display: grid;
    gap: 6px;
    margin: 0;
    color: #4f5661;
    font-size: 13px;
    font-weight: 700;
}

.admin-members-page .member-edit-form .member-field > span {
    display: block;
}

.admin-members-page .member-edit-form input,
.admin-members-page .member-edit-form select {
    width: 100%;
    margin: 0;
}

.admin-members-page .member-form-note {
    margin: 0;
}

.admin-members-page .member-list-card {
    overflow: hidden;
}

.admin-members-page .member-list {
    display: grid;
    gap: 0;
    overflow: hidden;
    border: 1px solid #e3e8ef;
    border-radius: 8px;
    background: #ffffff;
}

.admin-members-page .member-list-head,
.admin-members-page .member-list-row {
    display: grid;
    grid-template-columns: minmax(180px, 2fr) minmax(90px, 0.8fr) minmax(76px, 0.65fr) minmax(130px, 1.1fr) minmax(94px, 0.8fr) minmax(128px, auto);
    align-items: center;
    gap: 12px;
}

.admin-members-page .member-list-head {
    padding: 10px 14px;
    color: #687180;
    background: #f6f8fb;
    font-size: 12px;
    font-weight: 800;
}

.admin-members-page .member-list-row {
    padding: 12px 14px;
    border-top: 1px solid #edf0f4;
    background: #ffffff;
}

.admin-members-page .member-list-row:hover {
    background: #fbfcfe;
}

.admin-members-page .member-list-row.is-selected {
    background: #fffaf2;
    box-shadow: inset 3px 0 0 #b89051;
}

.admin-members-page .member-identity {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-members-page .member-identity > div {
    min-width: 0;
}

.admin-members-page .member-identity .muted {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-members-page .member-list-cell {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.admin-members-page .member-list-cell span {
    display: none;
    color: #798290;
    font-size: 12px;
    font-weight: 700;
}

.admin-members-page .member-list-cell strong {
    display: block;
    overflow: hidden;
    color: #30343a;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-members-page .member-expire-cell strong {
    font-size: 12px;
}

.admin-members-page .member-list-row > .status-badge {
    justify-self: start;
    min-height: 26px;
    white-space: nowrap;
}

.admin-members-page .status-badge.member {
    border-color: #84c39a;
    color: #207246;
    background: #eefaf2;
}

.admin-members-page .status-badge.private {
    border-color: #e1b977;
    color: #91652a;
    background: #fff8eb;
}

.admin-members-page .member-list-actions,
.admin-members-page .member-detail-actions,
.admin-members-page .member-edit-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-members-page .member-edit-actions button {
    width: auto;
    min-width: 140px;
    margin: 0;
    padding: 0 18px;
}

.admin-members-page .member-list-actions .filter-btn,
.admin-members-page .member-list-actions .search-clear-btn,
.admin-members-page .member-detail-actions .filter-btn,
.admin-members-page .member-detail-actions .search-clear-btn,
.admin-members-page .member-edit-actions .search-clear-btn {
    min-width: 70px;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.admin-members-page .member-empty-state {
    padding: 22px 12px;
    border: 1px dashed #dce2ea;
    border-radius: 8px;
    text-align: center;
    background: #fbfcfe;
}

.admin-members-page .member-empty-state strong {
    color: #30343a;
}

@media (min-width: 760px) {
    .admin-members-page .member-stats-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .admin-members-page .member-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-members-page .member-field-wide {
        grid-column: 1 / -1;
    }
}

@media (min-width: 1120px) {
    .admin-members-page .member-stats-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .admin-members-page .member-detail-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .admin-shell-app.admin-members-page .member-search-form {
        max-width: none;
    }

    .admin-shell-app.admin-members-page .home-search-form .keyword-input {
        min-width: 260px;
    }

    .admin-shell-app.admin-members-page .card > .member-edit-form.auth-form:not(.prediction-editor) {
        grid-template-columns: minmax(0, 1fr);
        align-items: stretch;
    }

    .admin-shell-app.admin-members-page .card > .member-edit-form.auth-form:not(.prediction-editor) > .member-form-grid,
    .admin-shell-app.admin-members-page .card > .member-edit-form.auth-form:not(.prediction-editor) > .member-form-note,
    .admin-shell-app.admin-members-page .card > .member-edit-form.auth-form:not(.prediction-editor) > .member-edit-actions {
        grid-column: 1;
    }

    .admin-shell-app.admin-members-page .card > .member-edit-form.auth-form:not(.prediction-editor) > .member-edit-actions {
        width: auto;
    }

    .admin-shell-app.admin-members-page .member-list-row {
        grid-template-columns: minmax(180px, 2fr) minmax(90px, 0.8fr) minmax(76px, 0.65fr) minmax(130px, 1.1fr) minmax(94px, 0.8fr) minmax(128px, auto);
    }
}

@media (max-width: 780px) {
    .admin-members-page .member-admin-toolbar,
    .admin-members-page .member-card-head {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-members-page .member-toolbar-actions {
        justify-content: flex-start;
        width: 100%;
    }

    .admin-members-page .member-toolbar-actions .filter-btn,
    .admin-members-page .member-toolbar-actions .logout-link {
        flex: 1 1 120px;
    }

    .admin-members-page .member-search-form {
        flex-wrap: wrap;
    }

    .admin-members-page .member-search-form .keyword-input {
        flex: 1 0 100%;
    }

    .admin-members-page .member-search-form .filter-btn,
    .admin-members-page .member-search-form .search-clear-btn {
        flex: 1 1 120px;
    }

    .admin-members-page .member-profile-head {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .admin-members-page .member-profile-head > .status-badge {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .admin-members-page .member-list-card {
        overflow: visible;
    }

    .admin-members-page .member-list {
        gap: 8px;
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    .admin-members-page .member-list-head {
        display: none;
    }

    .admin-members-page .member-list-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: start;
        gap: 10px 12px;
        padding: 12px;
        border: 1px solid #e3e8ef;
        border-radius: 8px;
        background: #ffffff;
    }

    .admin-members-page .member-identity,
    .admin-members-page .member-expire-cell,
    .admin-members-page .member-list-actions {
        grid-column: 1 / -1;
    }

    .admin-members-page .member-list-cell span {
        display: block;
    }

    .admin-members-page .member-list-row > .status-badge {
        justify-self: start;
    }

    .admin-members-page .member-list-actions {
        width: 100%;
    }

    .admin-members-page .member-list-actions .filter-btn,
    .admin-members-page .member-list-actions .search-clear-btn {
        flex: 1 1 0;
    }
}

@media (max-width: 520px) {
    .admin-members-page .member-stats-grid,
    .admin-members-page .member-detail-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.admin-members-page .member-orders-section {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #eef2f7;
}

.admin-members-page .member-orders-head {
    margin-bottom: 10px;
}

.admin-members-page .member-orders-head .card-title {
    margin: 0;
    font-size: 15px;
}

.admin-members-page .member-order-list .member-list-head,
.admin-members-page .member-order-list .member-list-row {
    grid-template-columns: minmax(170px, 2fr) minmax(84px, 0.8fr) minmax(88px, 0.75fr) minmax(72px, 0.65fr) minmax(88px, 0.75fr) minmax(130px, 1fr);
}

.admin-members-page .member-order-list .order-time-cell strong {
    font-size: 12px;
}

.admin-members-page .member-pagination-wrap {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #eef2f7;
}

.admin-members-page .member-pagination-meta {
    margin-bottom: 10px;
    font-size: 12px;
    color: #7a869a;
}

.admin-members-page .member-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.admin-members-page .member-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 34px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid #d4deeb;
    background: #fff;
    color: #3d4e67;
    font-size: 13px;
    text-decoration: none;
    transition: all .14s ease;
}

.admin-members-page .member-page-btn:hover {
    border-color: #2f78dd;
    color: #2f78dd;
    box-shadow: 0 4px 12px rgba(47, 120, 221, 0.12);
}

.admin-members-page .member-page-btn.is-current {
    border-color: #2f78dd;
    background: linear-gradient(180deg, #3f8cff 0%, #2f78dd 100%);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 6px 14px rgba(47, 120, 221, 0.25);
}

.admin-members-page .member-page-btn.is-disabled {
    pointer-events: none;
    color: #a0a8b5;
    border-color: #e4e9f1;
    background: #f8fafd;
}

@media (max-width: 780px) {
    .admin-members-page .member-order-list .member-list-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .admin-members-page .member-order-list .member-identity,
    .admin-members-page .member-order-list .order-time-cell {
        grid-column: 1 / -1;
    }

    .admin-members-page .member-pagination {
        gap: 6px;
    }

    .admin-members-page .member-page-btn {
        height: 32px;
        min-width: 32px;
        padding: 0 10px;
        font-size: 12px;
    }
}

.admin-orders-page .order-status-pills {
    margin-top: 8px;
}

.admin-orders-page .order-list .member-list-head,
.admin-orders-page .order-list .member-list-row {
    grid-template-columns: minmax(190px, 2fr) minmax(110px, 1fr) minmax(84px, 0.7fr) minmax(88px, 0.75fr) minmax(72px, 0.65fr) minmax(88px, 0.75fr) minmax(130px, 1fr) minmax(72px, auto);
}

.admin-orders-page .order-time-cell strong {
    font-size: 12px;
}

@media (min-width: 1024px) {
    .admin-shell-app.admin-orders-page .order-list .member-list-row {
        grid-template-columns: minmax(190px, 2fr) minmax(110px, 1fr) minmax(84px, 0.7fr) minmax(88px, 0.75fr) minmax(72px, 0.65fr) minmax(88px, 0.75fr) minmax(130px, 1fr) minmax(72px, auto);
    }
}

@media (max-width: 780px) {
    .admin-orders-page .order-list .member-list-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .admin-orders-page .order-list .member-identity,
    .admin-orders-page .order-list .order-time-cell,
    .admin-orders-page .order-list .member-list-actions {
        grid-column: 1 / -1;
    }
}

/* Collected-home visual pass */
.home-app {
    background: #f7f7f7;
    padding-bottom: 70px;
}

.home-app .topbar {
    display: none;
}

.home-app .home-section {
    padding: 12px;
    background: #f7f7f7;
}

.home-top-box {
    margin-bottom: 10px;
    padding: 0;
    background: #fff;
}

.home-merchant-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    padding: 12px;
    color: #fff;
    background: linear-gradient(135deg, #2a1111 0%, #6f1212 48%, #171717 100%);
}

.home-merchant-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 18px),
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.12), transparent 22%),
        radial-gradient(circle at 86% 84%, rgba(255, 255, 255, 0.08), transparent 26%);
    pointer-events: none;
}

.home-merchant-card > * {
    position: relative;
    z-index: 1;
}

.home-seller-row,
.home-seller-main,
.home-interactions,
.home-category-flex,
.home-online-count {
    display: flex;
    align-items: center;
}

.home-seller-row {
    justify-content: space-between;
    gap: 10px;
}

.home-seller-main {
    min-width: 0;
    gap: 9px;
}

.home-seller-avatar {
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    border-radius: 6px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.96);
}

.home-seller-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #d50000;
    font-weight: 800;
}

.home-seller-name {
    min-width: 0;
    overflow: hidden;
    color: #fff;
    font-size: 18px;
    line-height: 32px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-change-seller {
    flex: 0 0 auto;
    margin-right: -12px;
    padding: 5px 12px 5px 10px;
    border-radius: 16px 0 0 16px;
    background: rgba(0, 0, 0, 0.24);
    color: #fff;
    font-size: 12px;
    text-decoration: none;
}

.home-seller-remark {
    margin: 10px 0 12px;
    color: rgba(255, 255, 255, 0.94);
    font-size: 14px;
    line-height: 1.45;
}

.home-interactions {
    justify-content: space-around;
    gap: 9px;
}

.home-interaction {
    flex: 1;
    min-width: 0;
    border: 0;
    border-radius: 4px;
    padding: 7px 4px;
    background: rgba(0, 0, 0, 0.24);
    color: #fff;
    font: inherit;
    font-size: 12px;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.home-category-flex {
    justify-content: space-between;
    gap: 10px;
    padding: 18px 4px 12px;
}

.home-category-item {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    color: #333;
    cursor: pointer;
}

.home-category-image {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin: 0 auto 6px;
    border-radius: 8px;
    background: linear-gradient(135deg, #fff0f0 0%, #ffe1e1 100%);
    color: #d50000;
    font-size: 22px;
    font-weight: 800;
    box-shadow: inset 0 0 0 1px rgba(213, 0, 0, 0.08);
}

.home-category-name {
    display: block;
    color: #333;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
}

.home-category-item.active .home-category-name {
    color: #d50000;
}

.home-main-search {
    position: relative;
    margin: 0 0 4px;
}

.home-search-input {
    width: 100%;
    height: 42px;
    border: 1px solid #f0f0f0;
    border-radius: 21px;
    padding: 0 14px 0 40px;
    background: #fff;
    color: #303133;
    font-size: 14px;
    outline: none;
}

.home-search-input:focus {
    border-color: #d50000;
    box-shadow: 0 0 0 3px rgba(213, 0, 0, 0.08);
}

.home-search-icon {
    position: absolute;
    top: 50%;
    left: 16px;
    width: 15px;
    height: 15px;
    border: 2px solid #d50000;
    border-radius: 50%;
    transform: translateY(-55%);
}

.home-search-icon::after {
    content: "";
    position: absolute;
    right: -6px;
    bottom: -5px;
    width: 7px;
    height: 2px;
    border-radius: 2px;
    background: #d50000;
    transform: rotate(45deg);
}

.home-online-count {
    gap: 6px;
    min-height: 25px;
    margin: 10px 0;
    padding: 0 15px;
    width: 100%;
}

.home-online-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d50000;
}

.home-online-label,
.home-online-number {
    font-size: 14px;
}

.home-online-label {
    color: #666;
}

.home-online-number {
    color: #d50000;
}

.home-online-reward {
    flex: 1 1 auto;
    min-width: 0;
    margin-left: auto;
    color: #d50000;
    font-size: 12px;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-online-reward.is-jumping {
    animation: homeRewardJump .34s ease;
}

@keyframes homeRewardJump {
    0% {
        opacity: .25;
        transform: translateY(6px) scale(.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.home-notice-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0 0 12px;
    border: 1px solid #f4ded7;
    border-radius: 6px;
    padding: 13px 12px 10px;
    overflow: hidden;
    background: linear-gradient(180deg, #fff 0%, #fff9f7 100%);
    box-shadow: 0 6px 16px rgba(196, 37, 37, 0.08);
    text-align: left;
    cursor: default;
}

.home-notice-card::before {
    content: "公告";
    position: absolute;
    top: 38px;
    left: -13px;
    z-index: 1;
    padding: 4px 25px;
    background: #d50000;
    color: #fff;
    font-size: 10px;
    line-height: 1;
    transform: rotate(-45deg) translateY(-50%);
    transform-origin: 0 0;
    white-space: nowrap;
}

.home-notice-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 15px;
    color: #d50000;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    word-break: break-word;
}

.home-notice-text {
    display: block;
    margin: 8px 0 0 15px;
    overflow: visible;
    color: #444;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
    text-align: left;
    white-space: normal;
    word-break: break-word;
}

.home-notice-divider {
    width: 100%;
    height: 1px;
    margin: 10px 0 8px;
    background: #f0f0f0;
}

.home-notice-date {
    align-self: flex-end;
    color: #999;
    font-size: 12px;
}

.announcement-carousel-viewport {
    width: 100%;
    overflow: hidden;
}

.announcement-track {
    display: flex;
    align-items: stretch;
    width: 100%;
    transition: transform .46s cubic-bezier(.22, .61, .36, 1);
    will-change: transform;
}

.announcement-slide {
    flex: 0 0 100%;
    min-width: 100%;
    opacity: .42;
    transform: translateX(0) scale(.985);
    transition: opacity .28s ease, transform .28s ease;
}

.announcement-slide.active {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.announcement-title {
    display: block;
    margin-bottom: 6px;
    color: inherit;
    font-size: 13px;
    font-weight: 800;
}

.announcement-body {
    display: block;
    min-width: 0;
    line-height: 1.55;
    word-break: break-word;
}

.announcement-inline-image {
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: 260px;
    margin: 8px 0 0;
    border-radius: 6px;
    object-fit: contain;
    background: #f8f8f8;
}

.announcement-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 9px;
}

.announcement-dots button {
    width: 7px;
    height: 7px;
    min-width: 0;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #d8d8d8;
    cursor: pointer;
    transition: width .2s ease, background-color .2s ease;
}

.announcement-dots button.active {
    width: 18px;
    background: #d50000;
}

.home-announcement-slide.active {
    display: flex;
    flex-direction: column;
}

.home-announcement-slide {
    display: flex;
    flex-direction: column;
    padding-right: 2px;
}

.home-announcement-dots {
    margin-left: 15px;
    justify-content: flex-start;
}

.home-notice-text .announcement-inline-image {
    max-height: 320px;
}

.home-app .analyst-card {
    border: 0;
    border-radius: 6px;
    background: #fff;
    box-shadow: none;
}

.home-app .analyst-card + .card {
    display: none;
}

.home-app .home-panel {
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.home-app .split-title {
    margin: 8px 0 10px;
}

.home-app .split-title span {
    color: #d50000;
}

.home-app .precise-series-block {
    margin-bottom: 12px;
}

.home-app .precise-series-head {
    padding: 0 4px 8px;
}

.home-app .precise-latest-scheme {
    position: relative;
    min-height: 128px;
    border: 0;
    border-radius: 6px;
    padding: 14px 12px 14px 74px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.home-app .precise-latest-scheme::before {
    content: "料";
    position: absolute;
    top: 16px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: linear-gradient(135deg, #d50000, #ff4d4f);
    color: #fff;
    font-size: 24px;
    font-weight: 800;
}

.home-app .precise-latest-scheme .history-title {
    color: #333;
    font-size: 15px;
    line-height: 1.5;
}

.home-app .precise-latest-scheme .status-badge {
    border-radius: 3px;
    background: #d50000;
    color: #fff;
}

.home-app .precise-latest-scheme .detail-content-line {
    color: #444;
    font-size: 14px;
    line-height: 1.55;
}

.home-app .history-link + .history-link {
    margin-top: 10px;
}

.home-app .lottery-count-item {
    border-color: #eeeeee;
    border-radius: 4px;
}

.home-app .lottery-red,
.home-app .lottery-blue,
.home-app .lottery-green,
.home-app .lottery-black {
    border-radius: 8px;
}

.bottom-nav {
    max-width: 480px;
    height: 58px;
    margin: 0 auto;
    box-shadow: 0 -1px 8px rgba(0, 0, 0, 0.04);
}

.nav-item {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: auto;
    min-width: 0;
    line-height: 1;
    font-size: 10px;
}

.nav-icon {
    position: relative;
    width: 24px;
    height: 24px;
    color: currentColor;
}

.nav-icon-home::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 10px;
    width: 14px;
    height: 10px;
    border: 2px solid currentColor;
    border-top: 0;
    border-radius: 2px;
}

.nav-icon-home::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-left: 2px solid currentColor;
    border-top: 2px solid currentColor;
    transform: rotate(45deg);
}

.nav-icon-orders::before {
    content: "";
    position: absolute;
    inset: 4px 5px;
    border: 2px solid currentColor;
    border-radius: 3px;
}

.nav-icon-orders::after {
    content: "";
    position: absolute;
    left: 8px;
    top: 10px;
    width: 8px;
    height: 6px;
    border-top: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
}

.nav-icon-messages::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 5px;
    width: 16px;
    height: 12px;
    border: 2px solid currentColor;
    border-radius: 4px;
}

.nav-icon-messages::after {
    content: "";
    position: absolute;
    left: 9px;
    bottom: 3px;
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
}

.nav-icon-profile::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 4px;
    width: 8px;
    height: 8px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.nav-icon-profile::after {
    content: "";
    position: absolute;
    left: 5px;
    bottom: 3px;
    width: 14px;
    height: 8px;
    border: 2px solid currentColor;
    border-bottom: 0;
    border-radius: 10px 10px 3px 3px;
}

.home-category-item.home-switch-btn,
.home-category-item.home-switch-btn.active {
    display: block;
    height: auto;
    max-width: none;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    color: #333;
    font-size: 14px;
}

.home-notice-card.home-switch-btn,
.home-notice-card.home-switch-btn.active {
    height: auto;
    max-width: none;
    border: 0;
    background: #fff;
    color: inherit;
}

.home-app .precise-series-block,
.home-app .precise-series-block + .precise-series-block {
    margin: 0 0 16px;
    padding-top: 0;
    border-top: 0;
}

.home-app .precise-latest-scheme,
.scheme-collapse .precise-latest-scheme.history-item {
    position: relative;
    min-height: 0;
    border: 0;
    border-radius: 8px;
    padding: 18px 14px 12px 24px;
    overflow: hidden;
    background: #fff;
    box-shadow: none;
}

.home-app .precise-latest-scheme::before,
.scheme-collapse .precise-latest-scheme::before {
    content: none;
}

.home-scheme-ribbon {
    position: absolute;
    top: 11px;
    left: -21px;
    z-index: 2;
    width: 74px;
    padding: 3px 0;
    background: #ffb300;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    transform: rotate(-45deg);
    box-shadow: 0 2px 5px rgba(255, 153, 0, 0.26);
}

.home-scheme-ribbon.access-free {
    background: #d50000;
}

.home-scheme-ribbon.access-member {
    background: #ff8a00;
}

.home-scheme-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.home-scheme-main {
    min-width: 0;
    padding-right: 4px;
}

.home-app .precise-latest-scheme .home-scheme-title {
    display: block;
    color: #e60000;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.45;
    word-break: break-word;
}

.home-scheme-series {
    margin: 4px 0 0;
    color: #202020;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.45;
    word-break: break-word;
}

.home-app .precise-latest-scheme .home-scheme-summary {
    margin: 4px 0 0;
    color: #202020;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.45;
    word-break: break-word;
}

.home-scheme-price-box {
    flex: 0 0 auto;
    display: grid;
    justify-items: end;
    min-width: 82px;
}

.home-scheme-price {
    color: #e60000;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.3;
    white-space: nowrap;
}

.home-scheme-stamp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-top: 8px;
    border: 2px solid #ff2b2b;
    border-radius: 50%;
    color: #ff2b2b;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    transform: rotate(-18deg);
}

.home-scheme-stamp.access-member {
    font-size: 12px;
}

.home-scheme-result-stamp,
.scheme-result-stamp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 2px solid #e60000;
    border-radius: 50%;
    color: #e60000;
    background: rgba(230, 0, 0, .04);
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0;
    transform: rotate(-16deg);
}

.home-scheme-result-stamp {
    margin-top: 8px;
}

.home-scheme-result-stamp.black,
.scheme-result-stamp.black {
    border-color: #111;
    color: #111;
    background: rgba(17, 17, 17, .04);
}

.home-scheme-result-stamp.pending,
.scheme-result-stamp.pending {
    border-color: #7a7f8a;
    color: #5f6673;
    background: rgba(122, 127, 138, .08);
    font-size: 12px;
}

.scheme-result-stamp {
    position: absolute;
    top: 14px;
    right: 10px;
    z-index: 2;
}

.home-scheme-action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 28px;
    min-height: 22px;
}

.home-scheme-tags {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
    margin-right: auto;
}

.home-scheme-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    border-radius: 3px;
    padding: 3px 7px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
}

.home-scheme-tag.red,
.home-scheme-tag.green,
.home-scheme-tag.blue,
.home-scheme-tag.orange {
    background: #e60000;
}

.home-scheme-viewers {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #333;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
}

.home-scheme-viewers b {
    color: #e60000;
    font-weight: 500;
}

.home-viewer-avatars {
    display: inline-flex;
    align-items: center;
    padding-left: 8px;
}

.home-viewer-avatar {
    display: block;
    width: 21px;
    height: 21px;
    margin-left: -8px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #f5f5f5;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.16);
    object-fit: cover;
}

.home-scheme-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 13px;
    padding-top: 11px;
    border-top: 1px solid #f0f0f0;
    color: #9aa0a6;
    font-size: 12px;
}

.home-scheme-cart {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #e60000;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
}

.home-scheme-cart-icon {
    position: relative;
    display: inline-flex;
    width: 18px;
    height: 18px;
    border-radius: 3px;
    background: #e60000;
}

.home-scheme-cart-icon::before {
    content: "";
    position: absolute;
    inset: 3px;
    background: #fff;
    -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%273%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%20d%3D%27M4%205h2l2.2%2010.3h9.6L20%208H8.8M9%2020a1.5%201.5%200%201%200%200-3%201.5%201.5%200%200%200%200%203Zm8%200a1.5%201.5%200%201%200%200-3%201.5%201.5%200%200%200%200%203Z%27%2F%3E%3C%2Fsvg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%273%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%20d%3D%27M4%205h2l2.2%2010.3h9.6L20%208H8.8M9%2020a1.5%201.5%200%201%200%200-3%201.5%201.5%200%200%200%200%203Zm8%200a1.5%201.5%200%201%200%200-3%201.5%201.5%200%200%200%200%203Z%27%2F%3E%3C%2Fsvg%3E") center / contain no-repeat;
}

.home-scheme-cart-icon::after {
    content: none;
}

.home-scheme-cart-count,
.home-scheme-date {
    white-space: nowrap;
}

@media (max-width: 380px) {
    .home-app .precise-latest-scheme,
    .scheme-collapse .precise-latest-scheme.history-item {
        padding-right: 12px;
    }

    .home-scheme-card-head {
        gap: 8px;
    }

    .home-scheme-price-box {
        min-width: 72px;
    }

    .home-scheme-series,
    .home-app .precise-latest-scheme .home-scheme-summary {
        font-size: 16px;
    }

    .home-scheme-action-row {
        align-items: center;
        flex-direction: row;
        margin-top: 18px;
    }

    .home-scheme-viewers {
        align-self: auto;
    }

    .home-scheme-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

.article-detail-app {
    background: #f3f3f3;
}

.article-detail-app .topbar {
    background: #131313;
    padding: 13px 12px;
}

.article-detail-app .topbar h1 {
    font-size: 17px;
    font-weight: 600;
}

.article-detail-app .bottom-nav {
    display: none;
}

.article-detail-app .detail-page {
    min-height: calc(100vh - 44px);
    padding: 12px 12px 76px;
    background: #f3f3f3;
}

.article-detail-app .detail-article-card,
.article-detail-app .info-card,
.article-detail-app .paid-content {
    position: relative;
    margin-top: 12px;
    overflow: hidden;
    border: 0;
    border-radius: 8px;
    background: #fff;
    box-shadow: none;
}

.article-detail-app .detail-article-card {
    margin-top: 0;
}

.article-detail-app .detail-article-inner {
    padding: 15px;
}

.article-detail-app .detail-public-corner {
    position: absolute;
    top: 8px;
    left: -22px;
    z-index: 2;
    width: 76px;
    padding: 3px 0;
    background: #d50000;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    transform: rotate(-45deg);
}

.article-detail-app .detail-article-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.article-detail-app .detail-avatar {
    display: inline-flex;
    flex: 0 0 50px;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: linear-gradient(135deg, #d50000, #ff4d4f);
    color: #fff;
    font-size: 24px;
    font-weight: 800;
}

.article-detail-app .detail-article-title-wrap {
    min-width: 0;
    flex: 1;
}

.article-detail-app .detail-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 6px;
    margin-bottom: 4px;
    line-height: 1.3;
}

.article-detail-app .detail-issue,
.article-detail-app .detail-author {
    color: #d50000;
    font-size: 15px;
    font-weight: 600;
}

.article-detail-app .detail-article-title {
    margin: 0;
    color: #333;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    word-break: break-word;
}

.article-detail-app .detail-price {
    color: #d50000;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
}

.article-detail-app .detail-side-result {
    flex: 0 0 auto;
    display: grid;
    justify-items: center;
    gap: 8px;
    margin-left: auto;
}

.article-detail-app .detail-result-stamp {
    position: static;
    width: 44px;
    height: 44px;
}

.article-detail-app .detail-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.article-detail-app .detail-mini-tag,
.article-detail-app .detail-section-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    border: 1px solid currentColor;
    border-radius: 3px;
    padding: 0 6px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.article-detail-app .detail-mini-tag.red,
.article-detail-app .detail-section-tag.red {
    border-color: #d50000;
    background: #d50000;
}

.article-detail-app .detail-mini-tag.green,
.article-detail-app .detail-section-tag.green {
    border-color: #18b566;
    background: #18b566;
}

.article-detail-app .detail-mini-tag.blue {
    border-color: #2979ff;
    background: #2979ff;
}

.article-detail-app .detail-mini-tag.purple {
    border-color: #8f6bd8;
    background: #8f6bd8;
}

.article-detail-app .detail-section-tag.orange {
    border-color: #ff9900;
    background: #ff9900;
}

.article-detail-app .detail-section-tag.pink {
    border-color: #ff69b4;
    background: #ff69b4;
}

.article-detail-app .detail-card-bottom {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 8px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #eee;
    color: #999;
    font-size: 11px;
    line-height: 1.4;
}

.article-detail-app .detail-card-bottom > span {
    min-width: 0;
}

.article-detail-app .detail-card-bottom > span:last-child {
    justify-self: start;
    text-align: left;
    word-break: break-word;
}

.article-detail-app .detail-cart {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

.article-detail-app .detail-cart-icon {
    position: relative;
    display: inline-flex;
    flex: 0 0 15px;
    width: 15px;
    height: 15px;
    border-radius: 3px;
    background: #d50000;
}

.article-detail-app .detail-cart-icon::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 5px;
    width: 7px;
    height: 5px;
    border: 1.5px solid #fff;
    border-top: 0;
    border-radius: 0 0 2px 2px;
}

.article-detail-app .detail-cart-icon::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 3px;
    width: 5px;
    height: 4px;
    border: 1.5px solid #fff;
    border-bottom: 0;
    border-radius: 5px 5px 0 0;
}

.article-detail-app .detail-alert {
    margin-top: 12px;
}

.article-detail-app .info-header,
.article-detail-app .paid-header {
    padding: 10px 12px;
}

.article-detail-app .info-divider,
.article-detail-app .paid-divider {
    height: 1px;
    margin: 0 12px;
    background: #eee;
}

.article-detail-app .disclaimer-content,
.article-detail-app .intro-content,
.article-detail-app .history-list,
.article-detail-app .paid-unlocked {
    padding: 12px;
}

.article-detail-app .disclaimer-text,
.article-detail-app .intro-text,
.article-detail-app .glass-text {
    color: #333;
    font-size: 13px;
    line-height: 1.55;
}

.article-detail-app .paid-locked {
    position: relative;
    min-height: 100px;
    padding: 20px 12px;
}

.article-detail-app .glass-content {
    height: 100%;
    overflow: hidden;
}

.article-detail-app .glass-text {
    color: #999;
}

.article-detail-app .pay-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.article-detail-app .pay-text {
    margin: 0 0 20px;
    color: #d50000;
    font-size: 16px;
    font-weight: 600;
}

.article-detail-app .pay-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    height: 40px;
    border: 0;
    border-radius: 20px;
    padding: 0 30px;
    background: #d50000;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
}

.article-detail-app .pay-btn-text {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.article-detail-app .unlocked-text {
    margin: 0;
    color: #ff9900;
    font-size: 13px;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
}

.article-detail-app .history-item {
    position: relative;
    padding: 10px 64px 10px 0;
    border-bottom: 0;
}

.article-detail-app .history-link:last-child .history-item {
    padding-bottom: 0;
}

.article-detail-app .history-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 5px;
}

.article-detail-app .history-meta {
    margin: 0 0 4px;
    color: #d50000;
    font-size: 14px;
    font-weight: 600;
}

.article-detail-app .history-title {
    color: #333;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
}

.article-detail-app .history-content {
    display: block;
    margin: 0 0 5px;
    color: #ff9900;
    font-size: 13px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

.article-detail-app .detail-open-code-row,
.article-detail-app .detail-content-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 8px;
    white-space: normal;
}

.article-detail-app .detail-content-row {
    align-items: flex-start;
}

.article-detail-app .detail-open-code-label {
    flex: 0 0 auto;
    color: #111;
    font-weight: 700;
}

.article-detail-app .detail-open-code-balls {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 5px 7px;
    min-width: 0;
}

.article-detail-app .detail-open-code-item {
    display: inline-flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    min-width: 28px;
    line-height: 1;
}

.article-detail-app .detail-open-code-zodiac {
    margin-top: 4px;
    color: #777;
    font-size: 11px;
    line-height: 1;
}

.article-detail-app .detail-open-code-plus {
    flex: 0 0 auto;
    color: #d50000;
    font-size: 18px;
    font-weight: 700;
    line-height: 28px;
}

.article-detail-app .detail-content-label {
    flex: 0 0 auto;
    color: #ff9900;
}

.article-detail-app .detail-number-balls {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.article-detail-app .pick-helper-inline-list {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.article-detail-app .pick-helper-inline-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.article-detail-app .pick-helper-inline-label {
    flex: 0 0 auto;
    color: #111;
    font-weight: 700;
}

.article-detail-app .detail-open-code-inline .detail-number-balls {
    flex: 0 0 auto;
}

.article-detail-app .unlocked-text .detail-content-row:last-child {
    margin-bottom: 0;
}

.article-detail-app .lottery-ball.detail-number-ball,
.article-detail-app .lottery-ball.detail-open-code-ball {
    width: 28px;
    height: 28px;
    min-width: 28px;
    line-height: 1;
    font-size: 16px;
    letter-spacing: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .22), inset 0 -2px 0 rgba(0, 0, 0, .2);
    transform: none;
}

.article-detail-app .detail-content-text {
    color: #ff9900;
    white-space: pre-wrap;
    word-break: break-word;
}

.detail-content-line .pick-helper-inline-list,
.detail-content-line .pick-helper-inline-item,
.detail-content-line .detail-number-balls {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    vertical-align: middle;
}

.detail-content-line .pick-helper-inline-label {
    color: #333;
    font-weight: 700;
}

.detail-content-line .lottery-ball.detail-number-ball {
    width: 24px;
    height: 24px;
    min-width: 24px;
    font-size: 13px;
    line-height: 1;
    transform: none;
}

.article-detail-app .history-time {
    display: block;
    margin: 0;
    color: #999;
    font-size: 11px;
}

.article-detail-app .history-divider {
    width: 100%;
    height: 1px;
    margin-top: 10px;
    background: #eee;
}

.article-detail-app .empty-history {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.article-detail-app .empty-history .empty-text {
    color: #999;
    font-size: 13px;
}

.article-detail-app .right-back-btn {
    position: fixed;
    top: 60%;
    right: calc((100vw - min(480px, 100vw)) / 2 + 15px);
    z-index: 99;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 40px;
    border-radius: 50%;
    padding-bottom: 5px;
    background: #d50000;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transform: translateY(-50%);
}

.article-detail-app .right-back-btn span {
    height: 18px;
    font-size: 28px;
    line-height: 18px;
}

.article-detail-app .right-back-btn small {
    color: #fff;
    font-size: 12px;
    line-height: 1;
}

.article-detail-app .bottom-float {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(480px, 100vw);
    height: 50px;
    margin: 0 auto;
    padding: 0 15px;
    background: #fff;
    box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.1);
}

.article-detail-app .float-left {
    display: flex;
    align-items: center;
    min-width: 0;
}

.article-detail-app .float-text {
    margin-right: 5px;
    color: #333;
    font-size: 14px;
}

.article-detail-app .float-price {
    color: #d50000;
    font-size: 16px;
    font-weight: 600;
}

.article-detail-app .float-right {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    border: 0;
    border-radius: 15px;
    padding: 0 20px;
    background: #d50000;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
}

.article-detail-app .float-btn {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.article-detail-app .pick-helper-card {
    margin-top: 12px;
}

@media (max-width: 420px) {
    .article-detail-app .detail-page {
        padding-right: 10px;
        padding-left: 10px;
    }

    .article-detail-app .detail-article-inner {
        padding: 13px;
    }

    .article-detail-app .detail-avatar {
        flex-basis: 44px;
        width: 44px;
        height: 44px;
        font-size: 21px;
    }

    .article-detail-app .detail-price {
        font-size: 14px;
    }

    .article-detail-app .detail-card-bottom {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .article-detail-app .detail-card-bottom > span:last-child {
        justify-self: start;
        text-align: left;
    }
}

@media (min-width: 421px) {
    .article-detail-app .detail-card-bottom {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
    }

    .article-detail-app .detail-card-bottom > span:last-child {
        justify-self: end;
        text-align: right;
    }
}

.site-online-config {
    grid-column: 1 / -1;
    border: 1px solid #e7dcc8;
    border-radius: 10px;
    padding: 12px;
    background: #fffdf8;
}

.site-payment-config {
    grid-column: 1 / -1;
    display: grid;
    gap: 12px;
    border: 1px solid #d9e4ef;
    border-radius: 10px;
    padding: 12px;
    background: #f8fbff;
}

.site-payment-head {
    display: grid;
    gap: 4px;
}

.site-payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 10px;
}

.site-payment-grid label {
    display: grid;
    gap: 5px;
    margin: 0;
    color: #555;
    font-size: 13px;
    font-weight: 700;
}

.site-payment-grid input {
    width: 100%;
    margin: 0;
}

.payment-channel-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.payment-channel-options .site-check-row {
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid #d8e3ef;
    border-radius: 8px;
    background: #fff;
}

.site-reward-config {
    grid-column: 1 / -1;
    display: grid;
    gap: 12px;
    border: 1px solid #f1d4d4;
    border-radius: 10px;
    padding: 12px;
    background: #fffafa;
}

.site-announcement-config {
    grid-column: 1 / -1;
    display: grid;
    gap: 12px;
    border: 1px solid #e1d9c9;
    border-radius: 10px;
    padding: 12px;
    background: #fffdf7;
}

.site-announcement-head {
    display: grid;
    gap: 4px;
}

.site-announcement-head strong {
    color: #4a3a22;
    font-size: 15px;
}

.site-announcement-list {
    display: grid;
    gap: 10px;
}

.site-announcement-row {
    display: grid;
    grid-template-columns: 46px repeat(2, minmax(0, 1fr));
    gap: 8px;
    align-items: start;
    border: 1px solid #eee5d7;
    border-radius: 8px;
    padding: 10px;
    background: #fff;
}

.site-announcement-no {
    align-self: center;
    color: #7a5b2e;
    font-size: 13px;
    font-weight: 800;
}

.site-announcement-row label {
    display: grid;
    gap: 4px;
    margin: 0;
    color: #666;
    font-size: 12px;
    font-weight: 700;
    text-align: left;
}

.site-announcement-row input,
.site-announcement-row textarea {
    margin: 0;
}

.site-announcement-content {
    grid-column: span 2;
}

.site-announcement-preview {
    grid-column: 2 / -1;
    max-height: 130px;
    object-fit: contain;
}

.announcement-settings-form {
    grid-template-columns: 1fr !important;
    align-items: stretch !important;
    justify-items: stretch !important;
    width: 100%;
}

.announcement-settings-form > input[type="hidden"] {
    display: none;
}

.announcement-admin-grid,
.announcement-save-row {
    grid-column: 1 / -1;
    width: 100%;
}

.announcement-admin-grid {
    display: grid;
    gap: 16px;
}

.announcement-editor-section {
    display: grid;
    gap: 12px;
    border: 1px solid #dde6ee;
    border-radius: 8px;
    padding: 14px;
    background: #fbfdff;
}

.announcement-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.announcement-section-head h3 {
    margin: 0;
    color: #1f2933;
    font-size: 16px;
    line-height: 1.35;
}

.announcement-section-head p {
    margin: 4px 0 0;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.45;
}

.announcement-add-btn,
.announcement-remove-btn,
.announcement-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border: 0;
    border-radius: 7px;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    width: auto;
    height: auto;
    margin: 0;
}

.announcement-add-btn {
    background: #b89051;
    color: #fff;
}

.announcement-icon-btn {
    border: 1px solid #d8dde5;
    background: #fff;
    color: #4f5661;
}

.announcement-icon-btn:disabled {
    cursor: not-allowed;
    opacity: .42;
}

.announcement-remove-btn {
    background: #fff1f1;
    color: #c33333;
}

.announcement-editor-list {
    display: grid;
    gap: 12px;
}

.announcement-editor-item {
    display: grid;
    gap: 12px;
    border: 1px solid #e3e7ee;
    border-radius: 8px;
    padding: 12px;
    background: #fff;
}

.announcement-editor-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.announcement-editor-index {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #4b5563;
    font-size: 13px;
    font-weight: 800;
}

.announcement-editor-index b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #f2e9d9;
    color: #7a5b2e;
}

.announcement-editor-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.announcement-editor-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
}

.announcement-field {
    display: grid;
    gap: 6px;
    margin: 0;
    color: #4f5661;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
}

.announcement-content-field,
.announcement-upload-area {
    grid-column: 1 / -1;
}

.announcement-field input,
.announcement-field textarea {
    width: 100%;
    margin: 0;
}

.announcement-field textarea {
    min-height: 106px;
    resize: vertical;
}

.announcement-upload-area {
    display: grid;
    grid-template-columns: minmax(190px, 250px) minmax(0, 1fr);
    gap: 12px;
    align-items: stretch;
}

.announcement-upload-box {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 118px;
    gap: 7px;
    margin: 0;
    border: 1px dashed #c9d4e0;
    border-radius: 8px;
    padding: 14px;
    background: #f8fbff;
    color: #2f5f95;
    text-align: center;
    cursor: pointer;
}

.announcement-upload-box input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.announcement-upload-box span {
    font-size: 14px;
    font-weight: 800;
}

.announcement-upload-box small {
    color: #7b8794;
    font-size: 12px;
    line-height: 1.4;
}

.announcement-image-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 118px;
    border: 1px solid #edf0f4;
    border-radius: 8px;
    padding: 8px;
    background: #f7f7f8;
    color: #9aa0a6;
    font-size: 13px;
    overflow: hidden;
}

.announcement-image-preview img {
    display: block;
    width: 100%;
    max-height: 220px;
    object-fit: contain;
    border-radius: 6px;
}

.announcement-image-preview.is-empty {
    background: repeating-linear-gradient(45deg, #f8fafc, #f8fafc 10px, #eef2f6 10px, #eef2f6 20px);
}

.announcement-empty {
    margin: 0;
    border: 1px dashed #d8dde5;
    border-radius: 8px;
    padding: 18px;
    background: #fff;
    color: #7b8794;
    font-size: 13px;
    text-align: center;
}

.announcement-save-row {
    display: flex;
    justify-content: flex-start;
}

.announcement-save-row button {
    width: auto;
    min-width: 180px;
    margin: 0;
    padding: 0 24px;
}

@media (max-width: 640px) {
    .site-announcement-row {
        grid-template-columns: 1fr;
    }

    .site-announcement-content,
    .site-announcement-preview {
        grid-column: 1;
    }

    .announcement-section-head,
    .announcement-editor-item-head {
        align-items: stretch;
        flex-direction: column;
    }

    .announcement-section-head .announcement-add-btn,
    .announcement-save-row button {
        width: 100%;
    }

    .announcement-editor-actions {
        justify-content: flex-start;
    }

    .announcement-editor-fields,
    .announcement-upload-area {
        grid-template-columns: 1fr;
    }

    .announcement-content-field,
    .announcement-upload-area {
        grid-column: 1;
    }
}

.site-reward-head {
    display: grid;
    gap: 5px;
}

.site-reward-toolbar {
    display: grid;
    gap: 8px;
}

.site-reward-search-label {
    margin: 0;
    color: #555;
    font-size: 13px;
    font-weight: 700;
}

.site-reward-search-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.site-reward-search-form .site-reward-search {
    flex: 1 1 220px;
    width: auto;
    min-width: 0;
    margin: 0;
}

.site-reward-search-summary {
    margin: 0;
}

.site-reward-row.is-hidden {
    display: none;
}

.site-reward-empty {
    margin: 0;
}

.site-check-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #333;
    font-weight: 800;
}

.site-check-row input {
    width: 16px;
    height: 16px;
}

.site-reward-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 8px;
}

.site-reward-row {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    width: 100%;
    margin: 0;
    color: #666;
    font-size: 13px;
    font-weight: 600;
}

.site-reward-row input {
    width: 100%;
    margin: 0;
}

.site-online-config-head {
    display: grid;
    gap: 4px;
    margin-bottom: 10px;
}

.site-online-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 8px;
}

.site-online-row {
    display: grid;
    grid-template-columns: 48px 1fr 1fr;
    align-items: end;
    gap: 8px;
    border: 1px solid #eee5d7;
    border-radius: 8px;
    padding: 8px;
    background: #fff;
}

.site-online-hour {
    align-self: center;
    color: #7a5b2e;
    font-size: 13px;
    font-weight: 800;
}

.site-online-row label {
    display: grid;
    gap: 3px;
    margin: 0;
    color: #777;
    font-size: 12px;
}

.site-online-row input {
    width: 100%;
    height: 32px;
    border: 1px solid #ddd4c6;
    border-radius: 6px;
    padding: 0 8px;
}

.login-page-app {
    max-width: 480px;
    min-height: 100vh;
    background: #fff;
    padding-bottom: 25px;
}

.login-page-app .topbar {
    background: linear-gradient(90deg, #3f6fe4 0%, #2f56c5 100%);
    box-shadow: none;
    padding: 13px 12px;
}

.login-page-app .topbar h1 {
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0;
}

.login-clone-page {
    padding: 0 20px 24px;
}

.login-clone-logo-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 75px 0 20px;
}

.login-clone-logo,
.login-clone-logo-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 18px;
}

.login-clone-logo {
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(120, 64, 20, .12);
}

.login-clone-logo-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 50%;
    background: #e3e3e3;
    box-shadow: none;
}

.login-clone-logo-placeholder::before,
.login-clone-logo-placeholder::after {
    content: "";
    position: absolute;
    left: 50%;
    background: #fff;
    transform: translateX(-50%);
}

.login-clone-logo-placeholder::before {
    top: 19px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
}

.login-clone-logo-placeholder::after {
    bottom: 18px;
    width: 64px;
    height: 36px;
    border-radius: 50% 50% 42% 42%;
}

.login-clone-brand {
    display: grid;
    gap: 6px;
    margin: -4px 0 28px;
    text-align: center;
}

.login-clone-brand h2 {
    margin: 0;
    color: #222;
    font-size: 20px;
    line-height: 1.3;
}

.login-clone-brand p {
    margin: 0;
    color: #777;
    font-size: 13px;
    line-height: 1.45;
}

.login-clone-brand .login-clone-notice {
    margin: 8px auto 0;
    max-width: 360px;
    padding: 9px 12px;
    border: 1px solid #f2d9d9;
    border-radius: 8px;
    background: #fff7f7;
    color: #9b3d3d;
    text-align: left;
}

.login-notice-carousel {
    max-width: 360px;
    margin: 8px auto 0;
}

.login-notice-carousel .login-clone-notice {
    margin: 0;
}

.login-notice-carousel .announcement-dots button.active {
    background: #c24c4c;
}

.login-clone-notice .announcement-inline-image {
    max-height: 220px;
}

.login-clone-tabs {
    display: flex;
    min-height: 47px;
    margin: 0 0 30px;
    border: 5px solid #fff;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}

.login-clone-tabs.single {
    display: none;
}

.login-clone-tab {
    flex: 1;
    height: 37px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: rgba(213, 0, 0, .68);
    font-size: 16px;
    font-weight: 600;
    line-height: 37px;
    text-align: center;
    cursor: pointer;
}

.login-clone-tabs.single .login-clone-tab {
    color: #d50000;
    font-weight: 800;
}

.login-clone-tab.active {
    background: #d50000;
    color: #fff;
    font-weight: 800;
}

.login-clone-tabs.single .login-clone-tab.active {
    background: transparent;
    color: #d50000;
}

.login-clone-panel {
    display: none;
}

.login-clone-panel.active {
    display: block;
}

.wechat-login-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wechat-login-icon {
    width: 100px;
    height: 80px;
    margin-bottom: 20px;
}

.wechat-login-copy {
    margin: 0 0 40px;
    color: #666;
    font-size: 14px;
    line-height: 1.45;
    text-align: center;
}

.login-video-actions {
    display: grid;
    gap: 14px;
    width: min(100%, 366px);
    margin: 0 auto;
}

.login-quick-register-btn,
.login-account-password-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 56px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: 0 5px 12px rgba(0, 0, 0, .12);
}

.login-quick-register-btn {
    background: linear-gradient(180deg, #4075ed 0%, #2f5fd5 100%);
}

.login-account-password-btn {
    background: linear-gradient(180deg, #ff575f 0%, #f23d48 100%);
}

.login-clone-form {
    display: grid;
    gap: 15px;
}

.login-account-form {
    display: none;
    width: min(100%, 366px);
    margin: 18px auto 0;
}

.login-account-form.show {
    display: grid;
}

.login-clone-input {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 56px;
    border-radius: 12px;
    padding: 0 14px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
}

.login-clone-input-icon {
    flex: 0 0 auto;
    width: 22px;
    color: #999;
    font-size: 18px;
    text-align: center;
}

.login-clone-input input {
    min-width: 0;
    width: 100%;
    height: 42px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #333;
    font-size: 15px;
}

.login-clone-register {
    display: flex;
    justify-content: flex-end;
    gap: 2px;
    color: #666;
    font-size: 12px;
    line-height: 18px;
}

.login-clone-register a {
    color: #ff8d36;
    text-decoration: none;
}

.login-clone-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 56px;
    border: 0;
    border-radius: 16px;
    background: #d50000;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
}

.login-clone-primary.disabled {
    opacity: .55;
    cursor: not-allowed;
}

.login-clone-quick-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.login-clone-inline-form {
    margin: 0;
}

.login-clone-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    border: 1px solid #d50000;
    border-radius: 14px;
    background: #fff;
    color: #d50000;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
}

.login-clone-secondary.guest {
    border-color: #ff8d36;
    background: #fff9f2;
    color: #b85b00;
}

.login-clone-agreement {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 20px;
    color: #666;
    font-size: 12px;
    line-height: 18px;
}

.login-clone-agreement input {
    width: 16px;
    height: 16px;
    accent-color: #d50000;
}

.login-clone-agreement a {
    color: #d50000;
    text-decoration: underline;
}

.login-bottom-register {
    margin-top: 210px;
    text-align: center;
}

.login-bottom-register a {
    color: #2f56c5;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
}

.login-clone-page .auth-error {
    width: 100%;
    margin: 0 0 10px;
    text-align: center;
}

.quick-register-modal[hidden] {
    display: none;
}

.quick-register-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
}

.quick-register-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .22);
}

.quick-register-dialog {
    position: absolute;
    left: 50%;
    top: 45%;
    width: min(92vw, 452px);
    min-height: 184px;
    border-radius: 28px;
    padding: 32px 34px 22px;
    background:
        radial-gradient(circle at 75% 30%, rgba(231, 244, 255, .92), transparent 38%),
        radial-gradient(circle at 48% 100%, rgba(255, 217, 224, .86), transparent 44%),
        rgba(255, 255, 255, .94);
    box-shadow: 0 18px 38px rgba(0, 0, 0, .22);
    transform: translate(-50%, -50%);
    overflow: hidden;
}

.quick-register-view {
    display: none;
}

.quick-register-view.active {
    display: block;
}

.quick-register-confirm-text {
    margin: 0 0 26px;
    color: #111;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.6;
}

.quick-register-confirm-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 -34px -22px;
    border-top: 1px solid rgba(0, 0, 0, .06);
}

.quick-register-confirm-actions button {
    min-height: 62px;
    border: 0;
    background: transparent;
    color: #111;
    font-size: 19px;
    font-weight: 700;
    cursor: pointer;
}

.quick-register-confirm-actions button + button {
    border-left: 1px solid rgba(0, 0, 0, .06);
}

.quick-register-confirm-actions button:disabled {
    opacity: .55;
    cursor: wait;
}

.quick-register-success-title {
    display: block;
    margin-bottom: 18px;
    color: #111;
    font-size: 21px;
    line-height: 1.2;
}

.quick-register-view[data-quick-register-view="success"] p {
    margin: 0 0 11px;
    color: #333;
    font-size: 18px;
    line-height: 1.35;
}

.quick-register-login-now {
    display: block;
    width: 100%;
    min-height: 54px;
    margin-top: 16px;
    border: 0;
    background: transparent;
    color: #111;
    font-size: 21px;
    font-weight: 800;
    cursor: pointer;
}

@media (max-width: 380px) {
    .login-clone-page {
        padding-right: 16px;
        padding-left: 16px;
    }

    .login-clone-logo-wrap {
        margin-top: 56px;
    }

    .login-clone-tabs {
        margin-bottom: 24px;
    }

    .login-bottom-register {
        margin-top: 150px;
    }

    .quick-register-dialog {
        width: calc(100vw - 32px);
        padding-right: 28px;
        padding-left: 28px;
    }

    .quick-register-confirm-actions {
        margin-right: -28px;
        margin-left: -28px;
    }
}

.admin-subaccounts-page .subaccount-permissions {
    display: grid;
    gap: 12px;
    margin-top: 4px;
}

.admin-subaccounts-page .subaccount-permissions > strong {
    color: #2d3748;
    font-size: 14px;
}

.admin-subaccounts-page .permission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.admin-subaccounts-page .permission-option {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid #d8e1ee;
    border-radius: 8px;
    background: #fff;
    color: #334155;
    font-size: 14px;
    cursor: pointer;
}

.admin-subaccounts-page .permission-option input {
    width: 16px;
    height: 16px;
    accent-color: #2563eb;
}

.admin-subaccounts-page .member-list-head,
.admin-subaccounts-page .member-list-row {
    grid-template-columns: minmax(180px, 2fr) minmax(110px, 1fr) minmax(80px, .7fr) minmax(90px, .7fr) minmax(100px, auto);
}

@media (min-width: 1024px) {
    .admin-shell-app.admin-subaccounts-page .member-list-row {
        grid-template-columns: minmax(180px, 2fr) minmax(110px, 1fr) minmax(80px, .7fr) minmax(90px, .7fr) minmax(100px, auto);
    }
}

@media (max-width: 780px) {
    .admin-subaccounts-page .member-list-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .admin-subaccounts-page .member-identity,
    .admin-subaccounts-page .member-list-actions {
        grid-column: 1 / -1;
    }
}
