/**
 * 会员端深色主题 — 与首页 index.css 一致
 */
body.member-page {
    font-family: "PingFang SC", "Microsoft YaHei", "Roboto", -apple-system, BlinkMacSystemFont, sans-serif;
    color: #e8ecf4;
    background: #0b0f1a;
    -webkit-font-smoothing: antialiased;
    padding-top: 64px;
}

body.member-page a {
    color: #7eb8ff;
}

body.member-page a:hover {
    color: #a8d4ff;
}

/* 隐藏旧版 Bootstrap 顶栏（若残留） */
body.member-page > .navbar {
    display: none !important;
}

.member-main {
    min-height: calc(100vh - 64px - 72px);
    padding: 28px 0 40px;
    background:
        radial-gradient(ellipse 70% 40% at 50% 0%, rgba(201, 162, 39, 0.08), transparent),
        #0b0f1a;
}

body.member-page .content {
    padding: 0;
}

/* 顶栏移动端 */
.member-nav-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e8ecf4;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
    line-height: 1;
    position: relative;
    z-index: 2;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

body.member-page .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    width: 100%;
}

.site-footer {
    padding: 24px 0;
    background: #070a12;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}

.site-footer p {
    margin: 0;
    font-size: 13px;
    color: #5c6b88;
}

.site-footer a {
    color: #7a8aa8;
    margin-left: 8px;
}

/* 侧栏浮动按钮（挂 body，避免手机端被零高度列挡住点击） */
body.member-page .sidebar-toggle {
    display: none;
    position: fixed;
    right: 16px;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    z-index: 1200;
    width: 52px;
    height: 52px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #c9a227, #dbb83a);
    color: #1a1408;
    font-size: 20px;
    line-height: 1;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    pointer-events: auto;
}

body.member-page .sidebar-toggle i {
    display: block;
    line-height: 1;
    font-size: 20px;
    pointer-events: none;
}

body.member-page.sidebar-open .sidebar-toggle i::before {
    content: "\f00d";
}

body.member-page .sidenav {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

body.member-page .sidenav .list-group {
    margin: 0;
    border-radius: 0;
}

body.member-page .sidenav .list-group-heading {
    padding: 14px 16px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #c9a227;
    background: rgba(201, 162, 39, 0.08);
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body.member-page .sidenav .list-group-item {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding: 0;
}

body.member-page .sidenav .list-group-item a {
    display: block;
    padding: 12px 16px;
    color: #9aa8c7;
    font-size: 14px;
    transition: background 0.2s, color 0.2s;
}

body.member-page .sidenav .list-group-item a:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
}

body.member-page .sidenav .list-group-item.active,
body.member-page .sidenav .list-group-item.active a {
    background: rgba(201, 162, 39, 0.15);
    color: #e8c547;
}

body.member-page .sidenav .list-group-item.active a {
    border-left: 3px solid #c9a227;
}

/* 主内容卡片 */
body.member-page .panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
    margin-bottom: 0;
}

body.member-page .panel-default > .panel-heading {
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    padding: 16px 20px;
    border-radius: 12px 12px 0 0;
}

body.member-page .panel-body {
    padding: 20px;
    color: #c5d0e6;
}

/* 统计卡片/信息块（修复白底刺眼问题） */
body.member-page .well {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #d5deef;
    border-radius: 10px;
    box-shadow: none;
}

body.member-page .well strong {
    color: #f0f4fc;
}

/* 投注层已上收到机器人级：规则行内倍投区不再展示 */
body.member-page .bet-rule-stake-wrap {
    display: none !important;
}

body.member-page .page-header {
    margin: 0 0 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 22px;
}

body.member-page .text-muted {
    color: #8a97b0 !important;
}

body.member-page .text-success {
    color: #5dd39e !important;
}

body.member-page .text-danger {
    color: #ff7b7b !important;
}

body.member-page .text-warning {
    color: #e8c547 !important;
}

/* 表单 */
body.member-page .form-control {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e8ecf4;
    border-radius: 8px;
    height: auto;
    padding: 10px 14px;
}

body.member-page .form-control:focus {
    border-color: rgba(201, 162, 39, 0.5);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
}

body.member-page .form-control::placeholder {
    color: #5c6b88;
}

body.member-page label,
body.member-page .control-label {
    color: #9aa8c7;
    font-weight: 500;
}

body.member-page .help-block {
    color: #6a7a96;
}

body.member-page select.form-control {
    appearance: auto;
}

/* 按钮 — 覆盖 Bootstrap */
body.member-page .btn-primary {
    background: linear-gradient(135deg, #c9a227, #dbb83a);
    border-color: #dbb83a;
    color: #1a1408 !important;
}

body.member-page .btn-primary:hover,
body.member-page .btn-primary:focus {
    background: linear-gradient(135deg, #dbb83a, #ecd15a);
    border-color: #ecd15a;
    color: #1a1408 !important;
}

body.member-page .btn-default,
body.member-page .btn-info {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e8ecf4 !important;
}

body.member-page .btn-default:hover,
body.member-page .btn-info:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff !important;
}

body.member-page .btn-success {
    background: linear-gradient(135deg, #2d8a5e, #3dab73);
    border-color: #3dab73;
    color: #fff !important;
}

body.member-page .btn-link {
    color: #7eb8ff !important;
}

body.member-page .btn-xs {
    padding: 2px 8px;
    font-size: 12px;
}

/* 提示框 */
body.member-page .alert {
    border-radius: 8px;
    border-width: 1px;
}

body.member-page .alert-warning {
    background: rgba(201, 162, 39, 0.12);
    border-color: rgba(201, 162, 39, 0.35);
    color: #e8c547;
}

body.member-page .alert-info {
    background: rgba(64, 120, 255, 0.1);
    border-color: rgba(64, 120, 255, 0.25);
    color: #a8d4ff;
}

body.member-page .alert-success {
    background: rgba(45, 138, 94, 0.15);
    border-color: rgba(61, 171, 115, 0.35);
    color: #8ee4b4;
}

/* 表格 */
body.member-page .table {
    color: #c5d0e6;
}

body.member-page .table > thead > tr > th {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    color: #9aa8c7;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.2);
}

body.member-page .table > tbody > tr > td {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    vertical-align: middle;
}

body.member-page .table-striped > tbody > tr:nth-of-type(odd) {
    background: rgba(255, 255, 255, 0.02);
}

body.member-page .table-hover > tbody > tr:hover {
    background: rgba(201, 162, 39, 0.06);
}

/* 投注记录表 */
body.member-page .bet-log-stats {
    margin-left: -6px;
    margin-right: -6px;
}

body.member-page .bet-log-stats > [class*="col-"] {
    padding-left: 6px;
    padding-right: 6px;
    margin-bottom: 12px;
}

body.member-page .bet-log-stat-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: none;
    margin-bottom: 0;
    min-height: 72px;
}

body.member-page .bet-log-stat-card .text-muted {
    font-size: 12px;
    margin-bottom: 6px;
}

body.member-page .bet-log-stat-value {
    display: block;
    color: #fff;
    font-size: 20px;
    line-height: 1.3;
}

body.member-page .bet-log-stat-sub {
    font-size: 11px;
    margin-top: 4px;
}

body.member-page .bet-log-table {
    margin-bottom: 0;
    table-layout: fixed;
    width: 100%;
}

body.member-page .bet-log-table .bet-log-col-time {
    width: 92px;
}

body.member-page .bet-log-table .bet-log-col-type {
    width: 56px;
}

body.member-page .bet-log-table .bet-log-col-bot {
    width: 100px;
    word-break: break-all;
}

body.member-page .bet-log-table .bet-log-col-period {
    width: 88px;
}

body.member-page .bet-log-table .bet-log-col-draw {
    width: 120px;
}

body.member-page .bet-log-table .bet-log-col-bet {
    width: 72px;
}

body.member-page .bet-log-table .bet-log-col-stake {
    width: 52px;
}

body.member-page .bet-log-table .bet-log-col-status {
    width: 56px;
}

body.member-page .bet-log-table .bet-log-col-remark,
body.member-page .bet-log-table td.bet-log-col-remark {
    width: auto;
    vertical-align: top;
}

body.member-page .bet-log-remark-text {
    display: block;
    font-size: 12px;
    line-height: 1.5;
    color: #9aa8c7;
    word-break: break-word;
    margin-bottom: 6px;
}

body.member-page .bet-log-reply {
    display: block;
    margin: 0;
}

body.member-page .bet-log-reply summary {
    display: inline-block;
    font-size: 12px;
    color: #7eb8ff;
    cursor: pointer;
    user-select: none;
    list-style: none;
}

body.member-page .bet-log-reply summary::-webkit-details-marker {
    display: none;
}

body.member-page .bet-log-reply summary::before {
    content: "▸ ";
    display: inline-block;
    transition: transform 0.15s ease;
}

body.member-page .bet-log-reply[open] summary::before {
    transform: rotate(90deg);
}

body.member-page .bet-log-reply pre {
    display: block;
    max-width: 100%;
    max-height: 140px;
    margin: 8px 0 0;
    padding: 8px 10px;
    overflow: auto;
    font-size: 12px;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}

body.member-page .bet-log-no-reply {
    display: inline-block;
    font-size: 12px;
    color: #6a7a96;
}

body.member-page .bet-log-table .bet-log-draw-snippet {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
    color: #6a7a96;
    margin-top: 4px;
}

body.member-page .bet-log-draw-cell {
    display: block;
    line-height: 1.35;
}

body.member-page .bet-log-draw-cell--has-detail {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

body.member-page .bet-log-draw-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}

body.member-page .bet-log-draw-badge--hit {
    color: #6ee7a8;
    background: rgba(45, 138, 94, 0.22);
    border: 1px solid rgba(45, 138, 94, 0.45);
}

body.member-page .bet-log-draw-badge--miss {
    color: #f5a8a8;
    background: rgba(192, 57, 43, 0.18);
    border: 1px solid rgba(192, 57, 43, 0.4);
}

body.member-page .bet-log-draw-badge--pending {
    color: #e8c547;
    background: rgba(201, 162, 39, 0.15);
    border: 1px solid rgba(201, 162, 39, 0.35);
}

body.member-page .bet-log-draw-badge--none {
    color: #6a7a96;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

body.member-page .bet-log-draw-badge--partial {
    color: #e8c547;
    background: rgba(201, 162, 39, 0.15);
    border: 1px solid rgba(201, 162, 39, 0.35);
}

body.member-page .bet-log-grid-row td {
    padding: 0 8px 12px;
    border-top: none;
    background: rgba(0, 0, 0, 0.12);
}

body.member-page .bet-log-grid-table {
    width: 100%;
    font-size: 12px;
    border-collapse: collapse;
}

body.member-page .bet-log-grid-table th,
body.member-page .bet-log-grid-table td {
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4px 6px;
    text-align: center;
}

body.member-page .bet-log-grid-table th {
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.65);
}

body.member-page .bet-log-grid-table td.bet-log-grid-cell--hit {
    background-color: rgba(45, 138, 94, 0.72);
    color: #e8f5e9;
    font-weight: 600;
}

body.member-page .bet-log-grid-table td.bet-log-grid-cell--miss {
    background-color: rgba(183, 28, 28, 0.72);
    color: #ffebee;
    font-weight: 600;
}

body.member-page .bet-log-grid-table td.bet-log-grid-cell--bet {
    background-color: rgba(255, 255, 255, 0.06);
    color: #e8ecf4;
}

body.member-page .bet-log-grid-table td.bet-log-grid-cell--empty {
    color: rgba(255, 255, 255, 0.25);
    background-color: transparent;
}

body.member-page .bet-log-grid-cell .bet-log-grid-entry {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    line-height: 1.25;
}

body.member-page .bet-log-grid-cell .bet-log-grid-entry + .bet-log-grid-entry {
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px dashed rgba(255, 255, 255, 0.12);
}

body.member-page .bet-log-grid-entry.bet-log-grid-entry--hit {
    background-color: rgba(27, 94, 32, 0.72);
    color: #e8f5e9;
    border-radius: 4px;
    padding: 3px 6px;
}

body.member-page .bet-log-grid-entry.bet-log-grid-entry--miss {
    background-color: rgba(183, 28, 28, 0.72);
    color: #ffebee;
    border-radius: 4px;
    padding: 3px 6px;
}

body.member-page .bet-log-grid-play {
    font-size: 11px;
    white-space: nowrap;
}

body.member-page .bet-log-grid-stake {
    font-size: 13px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

body.member-page .bet-log-grid-table td.bet-log-grid-draw {
    font-family: Consolas, monospace;
    font-size: 12px;
    white-space: nowrap;
}

body.member-page .bet-log-row--grid + .bet-log-grid-row td {
    padding-top: 0;
}

body.member-page .bet-log-col-draw--grid-skip {
    padding: 0;
    border: none;
}

body.member-page .label-success {
    background: rgba(45, 138, 94, 0.85);
}

body.member-page .label-danger {
    background: rgba(180, 60, 60, 0.85);
}

body.member-page .label-default {
    background: rgba(255, 255, 255, 0.15);
    color: #c5d0e6;
}

body.member-page details summary {
    cursor: pointer;
    color: #7eb8ff;
}

body.member-page pre {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #c5d0e6;
    border-radius: 6px;
}

body.member-page hr {
    border-color: rgba(255, 255, 255, 0.08);
}

body.member-page .checkbox label {
    color: #9aa8c7;
}

body.member-page .input-group-addon {
    background: rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.12);
    color: #9aa8c7;
}

body.member-page .dropdown-menu {
    background: #141b2d;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

body.member-page .dropdown-menu > li > a {
    color: #c5d0e6;
}

body.member-page .dropdown-menu > li > a:hover {
    background: rgba(201, 162, 39, 0.12);
    color: #fff;
}

body.member-page .radio label,
body.member-page .radio-inline label {
    color: #9aa8c7;
}

body.member-page code {
    background: rgba(201, 162, 39, 0.15);
    color: #e8c547;
    border-radius: 4px;
}

/* 分页 */
body.member-page .pagination > li > a,
body.member-page .pagination > li > span {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    color: #9aa8c7;
}

body.member-page .pagination > .active > a,
body.member-page .pagination > .active > span {
    background: rgba(201, 162, 39, 0.35);
    border-color: rgba(201, 162, 39, 0.5);
    color: #fff;
}

/* 登录 / 注册 */
body.member-page .user-section.login-section {
    max-width: 440px;
    margin: 40px auto;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

body.member-page .login-section .logon-tab {
    display: flex;
    margin-bottom: 0;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: none;
}

body.member-page .login-section .logon-tab > a {
    flex: 1;
    float: none;
    text-align: center;
    padding: 14px;
    background: rgba(255, 255, 255, 0.03);
    color: #8a97b0;
    border: none;
}

body.member-page .login-section .logon-tab > a.active {
    background: rgba(201, 162, 39, 0.15);
    color: #e8c547;
}

body.member-page .login-section .login-main {
    padding: 28px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

body.member-page .login-section .btn-default.btn-lg.no-border {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #9aa8c7 !important;
}

/* 会员中心头像区 */
body.member-page .user-baseinfo .col-xs-4,
body.member-page .basicinfo .col-xs-4 {
    color: #8a97b0;
}

body.member-page .avatar-img img {
    border: 3px solid rgba(201, 162, 39, 0.4);
    border-radius: 50%;
}

body.member-page h4 a {
    color: #fff;
    font-weight: 600;
}

/* Telegram 绑定步骤 */
body.member-page .tg-step-block {
    padding: 16px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

body.member-page .tg-step-block .h5 {
    color: #fff;
    margin-top: 0;
}

body.member-page .tg-step-block .label-primary {
    background: linear-gradient(135deg, #c9a227, #dbb83a);
    color: #1a1408;
}

body.member-page .tg-step-block .label-warning {
    background: rgba(201, 162, 39, 0.35);
    color: #e8c547;
}

/* Telegram 绑定：客服代绑优先 */
body.member-page .tg-cs-primary {
    margin-bottom: 20px;
    padding: 22px 24px;
    border-radius: 10px;
    border: 1px solid rgba(92, 184, 92, 0.45);
    background: linear-gradient(145deg, rgba(46, 125, 50, 0.22), rgba(27, 94, 32, 0.12));
    color: #d4ecd4;
    text-align: center;
}

body.member-page .tg-cs-primary-lead {
    margin: 0 0 16px;
    line-height: 1.6;
    font-size: 15px;
    color: #e8f5e9;
}

body.member-page .tg-cs-chat-btn {
    min-width: 200px;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(46, 125, 50, 0.35);
}

body.member-page .tg-cs-chat-btn .fa {
    margin-right: 6px;
}

body.member-page .tg-cs-primary-trial {
    margin: 14px 0 0;
    padding-top: 12px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

body.member-page .tg-acc {
    margin-bottom: 16px;
}

body.member-page .tg-acc-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 8px;
    width: 100%;
    margin: 0;
    padding: 10px 12px;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: transparent;
    color: #aebcd4;
    font-size: 13px;
    font-weight: 400;
    text-align: left;
    cursor: pointer;
    user-select: none;
}

body.member-page .tg-acc-head:focus {
    outline: 2px solid rgba(201, 162, 39, 0.45);
    outline-offset: 2px;
}

body.member-page .tg-acc-head .tg-self-service-chevron,
body.member-page .tg-acc-head .tg-guide-chevron {
    margin-left: auto;
    transition: transform 0.2s ease;
}

body.member-page .tg-acc-head.is-open .tg-self-service-chevron,
body.member-page .tg-acc-head.is-open .tg-guide-chevron {
    transform: rotate(180deg);
}

body.member-page .tg-acc-head.is-open .tg-self-service-icon {
    transform: rotate(90deg);
}

body.member-page .tg-acc-head .tg-self-service-icon {
    transition: transform 0.2s ease;
}

body.member-page .tg-acc-head .tg-self-service-title {
    color: #aebcd4;
}

body.member-page .tg-acc-head .tg-self-service-hint,
body.member-page .tg-acc-head .tg-guide-collapsed-hint {
    font-size: 12px;
    color: #6d7888;
    font-weight: 400;
}

body.member-page .tg-acc-body {
    padding: 12px 0 0;
}

body.member-page .tg-acc-body[hidden] {
    display: none !important;
}

body.member-page .tg-self-service-panel {
    margin-top: 8px;
}

body.member-page .tg-acc-nested.tg-guide-panel {
    margin-bottom: 16px;
    border: 1px solid rgba(201, 162, 39, 0.25);
    background: rgba(0, 0, 0, 0.18);
    border-radius: 8px;
    padding: 0 12px 12px;
}

body.member-page .tg-acc-nested.tg-guide-panel > .tg-acc-head {
    border: none;
    border-bottom: 1px solid rgba(201, 162, 39, 0.2);
    border-radius: 0;
    background: rgba(201, 162, 39, 0.12);
    color: #e8c547;
    font-weight: 600;
    margin: 0 -12px 0;
    width: calc(100% + 24px);
}

body.member-page .tg-acc-nested.tg-guide-panel > .tg-acc-head .fa-book {
    margin-right: 4px;
}

/* Telegram 绑定全流程引导（正文区） */
body.member-page .tg-acc-nested.tg-guide-panel > .tg-acc-body {
    color: #c5d0e6;
    line-height: 1.75;
}

body.member-page .tg-guide-panel .tg-guide-section {
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

body.member-page .tg-guide-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

body.member-page .tg-guide-section h4 {
    color: #fff;
    font-size: 15px;
    margin: 0 0 12px;
    font-weight: 600;
}

body.member-page .tg-guide-section h4 .step-num {
    display: inline-block;
    min-width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #c9a227, #dbb83a);
    color: #1a1408;
    font-size: 12px;
    margin-right: 8px;
    vertical-align: middle;
}

body.member-page .tg-guide-steps {
    margin: 0;
    padding-left: 1.4em;
}

body.member-page .tg-guide-steps li {
    margin-bottom: 10px;
}

body.member-page .tg-guide-steps li:last-child {
    margin-bottom: 0;
}

body.member-page .tg-guide-kv {
    display: inline-block;
    margin: 4px 0;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    font-family: Consolas, Monaco, monospace;
    font-size: 12px;
    color: #e8c547;
}

body.member-page .tg-guide-tip {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(201, 162, 39, 0.1);
    border: 1px solid rgba(201, 162, 39, 0.2);
    font-size: 13px;
    color: #d4deef;
}

body.member-page .tg-guide-faq dt {
    color: #fff;
    font-weight: 600;
    margin-top: 10px;
    font-size: 13px;
}

body.member-page .tg-guide-faq dd {
    margin-left: 0;
    margin-bottom: 8px;
    font-size: 13px;
    color: #aebcd4;
}

body.member-page .tg-guide-support {
    margin-top: 0;
    margin-bottom: 0;
    border-color: rgba(92, 184, 92, 0.35);
    background: rgba(92, 184, 92, 0.08);
    color: #d4ecd4;
}

body.member-page .tg-guide-support strong {
    color: #9fdf9f;
}

body.member-page .tg-guide-vpn-banner {
    border-color: rgba(255, 107, 107, 0.45);
    background: rgba(255, 80, 80, 0.12);
    color: #ffd4d4;
    margin-bottom: 16px;
}

body.member-page .tg-guide-vpn-banner a {
    color: #ffb4b4;
    text-decoration: underline;
}

body.member-page .tg-guide-vpn-title {
    margin: 0 0 10px;
    font-size: 16px;
    color: #fff;
    font-weight: 600;
}

body.member-page .tg-guide-vpn-list {
    margin: 0 0 10px 18px;
    padding: 0;
    font-size: 13px;
    line-height: 1.65;
}

body.member-page .tg-guide-vpn-list li {
    margin-bottom: 6px;
}

body.member-page .tg-guide-vpn-foot {
    margin: 0;
    font-size: 13px;
    color: #ffc9c9;
}

body.member-page .tg-guide-vpn-inline {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.25);
    font-size: 13px;
    line-height: 1.65;
    color: #e8d0d0;
}

body.member-page .tg-guide-vpn-inline a {
    color: #ffb4b4;
}

body.member-page .bet-rule-row--default {
    border-color: rgba(255, 255, 255, 0.12);
}

body.member-page .bet-rule-stake-wrap {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

body.member-page .bet-rule-stake-wrap label {
    font-weight: normal;
    font-size: 12px;
}

body.member-page .bet-rule-stake-lane-panel {
    padding: 6px 0;
}

body.member-page .bet-play-picker {
    margin-top: 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 12px;
    line-height: 1.4;
}

body.member-page .bet-play-picker-group + .bet-play-picker-group {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

body.member-page .bet-play-picker-title {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 4px;
}

body.member-page .bet-play-picker-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    margin-bottom: 3px;
}

body.member-page .bet-play-picker-sub {
    flex: 0 0 32px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 11px;
}

body.member-page .bet-play-picker-items {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    flex: 1;
    min-width: 0;
}

body.member-page .bet-play-pick-item {
    margin: 0;
    font-weight: normal;
    color: rgba(255, 255, 255, 0.82);
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

body.member-page .bet-play-pick-item input {
    margin: 0 4px 0 0;
    vertical-align: -1px;
}

body.member-page .bet-rule-then-play-text {
    min-height: 88px;
    resize: vertical;
    font-family: inherit;
    line-height: 1.45;
}

body.member-page .bet-stake-lanes-wrap {
    margin-bottom: 12px;
}

body.member-page .bet-stake-lanes-intro {
    margin-bottom: 8px;
    font-size: 12px;
    line-height: 1.55;
}

body.member-page .bet-stake-lane-unified-label {
    display: block;
    font-weight: normal;
    margin-bottom: 10px;
    cursor: pointer;
}

body.member-page .bet-stake-lane-panels {
    margin-top: 12px;
}

body.member-page .bet-stake-lane-panel {
    padding: 10px 12px;
    margin-bottom: 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

body.member-page .bet-stake-lane-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 10px;
    margin-bottom: 8px;
    font-size: 13px;
}

body.member-page .bet-stake-lane-head .bet-stake-lane-preview {
    margin-left: auto;
    font-size: 12px;
}

/* 调试页：Telegram 风格聊天 */
body.member-page .bet-tg-page-body {
    padding: 16px;
}

body.member-page .bet-group-select-wrap,
body.member-page .bet-tg-group-select-wrap {
    position: relative;
}

body.member-page .bet-group-select-native {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body.member-page .bet-group-picker {
    position: relative;
}

body.member-page .bet-group-picker-toggle {
    display: block;
    width: 100%;
    text-align: left;
    position: relative;
    padding-right: 32px;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.member-page .bet-group-picker-toggle::after {
    content: '\f0d7';
    font-family: FontAwesome;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #8a939f;
    pointer-events: none;
}

body.member-page .bet-group-sysrec-tag {
    color: #3d9a45;
    font-weight: 600;
}

body.member-page .bet-group-picker-menu {
    display: none;
    position: absolute;
    z-index: 1050;
    left: 0;
    right: 0;
    max-height: 280px;
    overflow-y: auto;
    margin: 4px 0 0;
    padding: 4px 0;
    list-style: none;
    background: #1a2234;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

body.member-page .bet-group-picker.is-open .bet-group-picker-menu {
    display: block;
}

body.member-page .bet-group-picker-item {
    padding: 8px 12px;
    cursor: pointer;
    color: #e8ecf4;
    line-height: 1.45;
    white-space: normal;
    word-break: break-word;
}

body.member-page .bet-group-picker-item:hover,
body.member-page .bet-group-picker-item.is-active {
    background: rgba(106, 178, 242, 0.15);
}

body.member-page .bet-tg-group-select-wrap {
    margin-bottom: 12px;
}

body.member-page .bet-tg-chat {
    display: flex;
    flex-direction: column;
    height: min(72vh, 640px);
    min-height: 420px;
    border-radius: 12px;
    overflow: hidden;
    background: #0e1621;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}

body.member-page .bet-tg-chat--loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(14, 22, 33, 0.55);
    z-index: 5;
    pointer-events: none;
}

body.member-page .bet-tg-chat--loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 28px;
    height: 28px;
    margin: -14px 0 0 -14px;
    border: 3px solid rgba(106, 178, 242, 0.25);
    border-top-color: #6ab2f2;
    border-radius: 50%;
    animation: bet-tg-spin 0.7s linear infinite;
    z-index: 6;
}

@keyframes bet-tg-spin {
    to { transform: rotate(360deg); }
}

body.member-page .bet-tg-inline-btn:disabled,
body.member-page .bet-tg-kb-btn:disabled {
    opacity: 0.5;
    pointer-events: none;
}

body.member-page .bet-tg-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #17212b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

body.member-page .bet-tg-header-main strong {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
}

body.member-page .bet-tg-header-btn {
    color: #6ab2f2 !important;
    padding: 4px 8px;
}

body.member-page .bet-tg-messages {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 12px 14px;
    background: #0e1621;
    background-image: radial-gradient(circle at 20% 30%, rgba(42, 171, 238, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(42, 171, 238, 0.03) 0%, transparent 45%);
}

body.member-page .bet-tg-empty {
    text-align: center;
    color: #6a7a96;
    font-size: 13px;
    padding: 40px 16px;
}

body.member-page .bet-tg-msg {
    display: flex;
    flex-direction: column;
    margin-bottom: 8px;
    max-width: 82%;
}

body.member-page .bet-tg-msg--in {
    align-self: flex-start;
    align-items: flex-start;
}

body.member-page .bet-tg-msg--out {
    align-self: flex-end;
    align-items: flex-end;
}

body.member-page .bet-tg-bubble {
    position: relative;
    padding: 8px 12px 6px;
    border-radius: 12px;
    max-width: 100%;
    word-break: break-word;
    white-space: pre-wrap;
    line-height: 1.45;
    font-size: 14px;
}

body.member-page .bet-tg-msg--in .bet-tg-bubble {
    background: #182533;
    color: #e8ecf4;
    border-top-left-radius: 4px;
}

body.member-page .bet-tg-msg--out .bet-tg-bubble {
    background: #2b5278;
    color: #fff;
    border-top-right-radius: 4px;
}

body.member-page .bet-tg-bubble-text {
    margin-bottom: 2px;
}

body.member-page .bet-tg-bubble-photo {
    margin: -2px -4px 4px;
    max-width: 260px;
}

body.member-page .bet-tg-bubble-photo img {
    display: block;
    width: 100%;
    max-width: 260px;
    height: auto;
    border-radius: 8px;
    cursor: zoom-in;
}

body.member-page .bet-tg-bubble-photo img:hover {
    opacity: 0.92;
}

body.member-page .bet-tg-bubble-file {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 4px;
}

body.member-page .bet-tg-bubble-time {
    float: right;
    margin-left: 8px;
    margin-top: 4px;
    font-size: 11px;
    opacity: 0.55;
    line-height: 1;
}

body.member-page .bet-tg-inline-btns {
    margin-top: 6px;
    width: 100%;
    max-width: 280px;
}

body.member-page .bet-tg-inline-row {
    display: flex;
    gap: 4px;
    margin-bottom: 4px;
}

body.member-page .bet-tg-inline-row:last-child {
    margin-bottom: 0;
}

body.member-page .bet-tg-inline-btn {
    flex: 1;
    border: none;
    border-radius: 6px;
    padding: 9px 8px;
    font-size: 13px;
    font-weight: 500;
    background: #2a4a3a;
    color: #fff;
    cursor: pointer;
    text-align: center;
}

body.member-page .bet-tg-inline-btn:hover {
    background: #336048;
}

body.member-page .bet-tg-inline-btn:active {
    background: #244532;
}

body.member-page .bet-tg-inline-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

body.member-page .bet-tg-reply-kb {
    flex-shrink: 0;
    padding: 6px 6px 8px;
    background: #0e1621;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

body.member-page .bet-tg-reply-kb-grid {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

body.member-page .bet-tg-reply-kb-row {
    display: flex;
    gap: 5px;
}

body.member-page .bet-tg-reply-kb-row--single {
    justify-content: center;
}

body.member-page .bet-tg-reply-kb-row--single .bet-tg-kb-btn {
    flex: 0 1 calc(33.333% - 4px);
    max-width: calc(33.333% - 4px);
}

body.member-page .bet-tg-kb-btn {
    flex: 1;
    border: none;
    border-radius: 8px;
    padding: 11px 6px;
    font-size: 13px;
    background: #212d3b;
    color: #e8ecf4;
    cursor: pointer;
    text-align: center;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.member-page .bet-tg-kb-btn:hover {
    background: #2a3947;
}

body.member-page .bet-tg-kb-btn:active {
    background: #1a2633;
}

body.member-page .bet-tg-compose {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 8px 12px;
    background: #17212b;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

body.member-page .bet-tg-compose-input {
    flex: 1;
    resize: none;
    border: none;
    border-radius: 20px;
    padding: 10px 16px;
    background: #242f3d;
    color: #e8ecf4;
    font-size: 14px;
    line-height: 1.4;
    max-height: 120px;
    min-height: 40px;
}

body.member-page .bet-tg-compose-input:focus {
    outline: none;
    box-shadow: 0 0 0 1px rgba(42, 171, 238, 0.35);
}

body.member-page .bet-tg-send-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #2aabee;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.member-page .bet-tg-send-btn:hover {
    background: #229ed9;
}

/* 旧消息样式（兼容） */
body.member-page .bet-bot-msg {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 12px;
    background: rgba(0, 0, 0, 0.2);
}

body.member-page .bet-bot-msg-text {
    color: #c5d0e6;
}

body.member-page .bet-bot-msg-meta {
    color: #6a7a96;
}

body.member-page .bet-bot-btn-grid .btn-primary {
    background: rgba(64, 120, 255, 0.35);
    border-color: rgba(64, 120, 255, 0.5);
    color: #e8ecf4 !important;
}

body.member-page .bet-bot-btn-grid .btn-primary:hover {
    background: rgba(64, 120, 255, 0.5);
    color: #fff !important;
}

body.member-page #bet-bot-panel h4 {
    color: #fff;
    font-size: 16px;
    margin-top: 24px;
}

/* 自动化设置页 */
body.member-page #bet-config-form .bet-config-section-title {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 600;
    color: #e8ecf4;
}

body.member-page #bet-config-form .bet-config-divider {
    margin: 22px 0 18px;
    border-color: rgba(255, 255, 255, 0.1);
}

body.member-page #bet-config-form .bet-config-risk {
    margin-bottom: 4px;
}

@media (min-width: 992px) {
    body.member-page #bet-config-form .bet-config-risk > .row {
        display: flex;
        flex-wrap: nowrap;
        margin-left: -10px;
        margin-right: -10px;
    }

    body.member-page #bet-config-form .bet-config-risk > .row > [class*="col-"] {
        flex: 1 1 0;
        max-width: none;
        width: auto;
        float: none;
        padding-left: 10px;
        padding-right: 10px;
    }
}

body.member-page #bet-config-form .bet-config-risk .form-group {
    margin-bottom: 14px;
}

body.member-page #bet-config-form .bet-config-risk label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #b8c4dc;
    font-size: 13px;
}

body.member-page #bet-config-form .bet-config-dup-period {
    margin: 4px 0 0;
    padding-top: 2px;
}

body.member-page #bet-config-form .bet-config-dup-period .checkbox-inline {
    margin: 0;
    padding-left: 0;
    font-weight: normal;
    color: #c5d0e6;
}

body.member-page #bet-config-form .bet-config-dup-period input[type="checkbox"] {
    margin-right: 6px;
    vertical-align: -2px;
}

body.member-page #bet-config-form .bet-config-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

body.member-page #bet-config-form .bet-config-actions .btn {
    min-width: 108px;
    margin: 0;
}

body.member-page #bet-config-form .bet-config-actions .btn i {
    margin-right: 4px;
}

body.member-page #bet-config-form .bet-bot-panel {
    padding: 14px 16px;
    margin-bottom: 14px;
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.15);
}

body.member-page #bet-config-form .bet-bot-panel .bet-bot-enabled-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    font-weight: 600;
    color: #e8ecf4;
    cursor: pointer;
    white-space: nowrap;
}

body.member-page #bet-config-form .bet-bot-panel .bet-bot-enabled-label input[type="checkbox"] {
    position: static;
    margin: 0;
    flex-shrink: 0;
}

body.member-page #bet-config-form .bet-bot-panel .bet-bot-panel-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    margin-bottom: 10px;
    width: 100%;
    box-sizing: border-box;
}

body.member-page #bet-config-form .bet-bot-panel .bet-bot-panel-head-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    flex: 1 1 auto;
    min-width: 0;
}

body.member-page #bet-config-form .bet-bot-panel .bet-bot-panel-head-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

body.member-page #bet-config-form #bet-add-bot-slot {
    margin-top: 4px;
}

@media (max-width: 767px) {
    body.member-page #bet-config-form .bet-config-actions {
        flex-direction: column;
        align-items: stretch;
    }

    body.member-page #bet-config-form .bet-config-actions .btn {
        width: 100%;
        min-width: 0;
    }

    body.member-page #bet-config-form .bet-bot-panel .bet-bot-panel-head {
        flex-direction: column;
        align-items: flex-start;
    }

    body.member-page #bet-config-form .bet-bot-panel .bet-bot-panel-head-actions {
        width: 100%;
        justify-content: space-between;
    }
}

/* 手动下注：和值 / 快捷按钮区 */
body.member-page .bet-tools-block {
    margin-top: 12px;
}

body.member-page .bet-tools-hint {
    margin: 0 0 10px;
}

/* 自动化设置：策略模板 / 投注模式说明 */
body.member-page .bet-help-details {
    margin-top: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.18);
    padding: 8px 12px;
}

body.member-page .bet-help-details summary {
    cursor: pointer;
    color: #7eb8ff;
    font-size: 13px;
    font-weight: 500;
    outline: none;
    user-select: none;
}

body.member-page .bet-help-details summary::-webkit-details-marker {
    color: #7eb8ff;
}

body.member-page .bet-help-details[open] summary {
    margin-bottom: 8px;
}

body.member-page .bet-help-intro,
body.member-page .bet-help-note {
    margin: 0 0 8px;
    font-size: 12px;
}

body.member-page .bet-help-table {
    margin: 0;
    font-size: 12px;
    color: #c5d0e6;
    background: transparent;
}

body.member-page .bet-help-table th {
    color: #9aa8c7;
    border-bottom-color: rgba(255, 255, 255, 0.1);
    font-weight: 500;
    white-space: nowrap;
}

body.member-page .bet-help-table td,
body.member-page .bet-help-table th {
    border-top-color: rgba(255, 255, 255, 0.06);
    vertical-align: top;
    padding: 6px 8px;
}

body.member-page .bet-help-table tbody tr.is-active {
    background: rgba(201, 162, 39, 0.12);
}

body.member-page .bet-help-table tbody tr.is-active td:first-child {
    color: #dbb83a;
    font-weight: 600;
}

body.member-page .bet-sum-fields {
    margin-left: -8px;
    margin-right: -8px;
}

body.member-page .bet-sum-fields > [class*="col-"] {
    padding-left: 8px;
    padding-right: 8px;
    margin-bottom: 8px;
}

body.member-page .bet-sum-fields .input-group {
    display: table;
    width: 100%;
    border-collapse: separate;
}

body.member-page .bet-sum-fields .input-group .form-control,
body.member-page .bet-sum-fields .input-group-addon {
    display: table-cell;
    float: none;
}

body.member-page .bet-sum-fields .input-group .form-control,
body.member-page .bet-sum-fields .bet-sum-stake-input {
    height: 32px;
    padding: 5px 10px;
    line-height: 1.42857143;
    border-radius: 0 8px 8px 0;
}

body.member-page .bet-sum-fields .input-group-addon {
    height: 32px;
    padding: 5px 10px;
    line-height: 20px;
    vertical-align: middle;
    border-radius: 8px 0 0 8px;
}

body.member-page .bet-sum-fields .bet-sum-stake-input {
    border-radius: 8px;
}

body.member-page .bet-sum-fields .btn-block {
    height: 32px;
    padding: 5px 10px;
    line-height: 20px;
}

body.member-page .bet-quick-fields {
    margin-top: 4px;
}

body.member-page .bet-quick-group {
    margin: 0 -3px;
}

body.member-page .bet-quick-group .btn {
    margin: 3px;
}

/* Layer / Toastr 在深色会员页的可读性 */
body.member-page .layui-layer-msg,
body.member-page .layui-layer-dialog {
    background: #fff !important;
    color: #1e2433 !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45) !important;
}

body.member-page .layui-layer-msg .layui-layer-content,
body.member-page .layui-layer-dialog .layui-layer-content {
    color: #1e2433 !important;
}

body.member-page .layui-layer-hui {
    background: rgba(18, 24, 40, 0.94) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
}

body.member-page .layui-layer-hui .layui-layer-content {
    color: #f0f4fc !important;
}

.layui-layer-fast .layui-layer-content {
    color: #333;
}

body.member-page .layui-layer-fast.layui-layer-msg,
body.member-page .layui-layer-fast.layui-layer-dialog {
    background: #fff !important;
}

body.member-page .layui-layer-fast.layui-layer-msg .layui-layer-content,
body.member-page .layui-layer-fast.layui-layer-dialog .layui-layer-content {
    color: #1e2433 !important;
}

body.member-page .layui-layer-fast.bet-click-result-layer .layui-layer-content {
    padding: 0 !important;
    overflow: visible !important;
}

body.member-page .bet-click-result {
    padding: 16px 18px 6px;
    line-height: 1.65;
    color: #1e2433;
    font-size: 14px;
    max-height: 420px;
    overflow: auto;
}

body.member-page .bet-click-result-block {
    margin-bottom: 14px;
}

body.member-page .bet-click-result-row {
    margin-bottom: 14px;
}

body.member-page .bet-click-result-label {
    color: #1e2433;
    font-weight: 600;
    margin-bottom: 4px;
}

body.member-page .bet-click-result-row .bet-click-result-label {
    display: inline;
    margin-bottom: 0;
}

body.member-page .bet-click-result-value {
    color: #1e2433;
}

body.member-page .bet-click-result-text {
    color: #2a3142;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: inherit;
}

body.member-page .layui-layer-fast.bet-click-result-layer .layui-layer-btn {
    padding: 10px 16px 16px;
    text-align: right;
}

body.member-page .layui-layer-fast.bet-click-result-layer .layui-layer-btn a {
    margin: 0;
    min-width: 72px;
    border-radius: 4px;
}

body.member-page .layui-layer-fast.bet-tg-alert-layer {
    border-radius: 14px !important;
    overflow: hidden;
    background: #fff !important;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35) !important;
}

body.member-page .layui-layer-fast.bet-tg-alert-layer .layui-layer-title {
    display: none !important;
    height: 0 !important;
    padding: 0 !important;
    border: none !important;
}

body.member-page .layui-layer-fast.bet-tg-alert-layer .layui-layer-content {
    padding: 0 !important;
    overflow: visible !important;
}

body.member-page .bet-tg-alert-body {
    padding: 22px 20px 10px;
    font-size: 15px;
    line-height: 1.55;
    color: #000;
    text-align: left;
}

body.member-page .layui-layer-fast.bet-tg-alert-layer .layui-layer-btn {
    padding: 0 0 14px;
    text-align: center;
    border-top: none;
    background: #fff;
}

body.member-page .layui-layer-fast.bet-tg-alert-layer .layui-layer-btn a {
    background: none !important;
    border: none !important;
    color: #2aabee !important;
    font-size: 17px;
    font-weight: 600;
    box-shadow: none !important;
    min-width: 0;
    padding: 0 16px;
}

body.member-page .bet-tg-callback-toast {
    position: absolute;
    left: 50%;
    top: 42%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.78);
    color: #fff;
    padding: 11px 18px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.4;
    z-index: 8;
    pointer-events: none;
    max-width: calc(100% - 48px);
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    transition: opacity 0.3s ease;
}

body.member-page .bet-tg-callback-toast--hide {
    opacity: 0;
}

body.member-page #toast-container > div {
    color: #fff !important;
    opacity: 1 !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35) !important;
}

body.member-page #toast-container > .toast-success {
    background-color: #2d8a4e !important;
}

body.member-page #toast-container > .toast-error {
    background-color: #c0392b !important;
}

/* 投注记录：开奖详情弹窗 / 悬停提示 */
body.member-page .layui-layer-fast.bet-log-draw-layer .layui-layer-content {
    background: #f5f7fc !important;
    color: #1a2238 !important;
    padding: 0 !important;
}

body.member-page .bet-log-draw-detail-body {
    padding: 14px 16px;
    max-height: 420px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-all;
    color: #1a2238 !important;
    font-size: 13px;
    line-height: 1.65;
}

body.member-page .layui-layer-fast.bet-log-draw-layer .layui-layer-btn a {
    color: #fff !important;
}

body.member-page .layui-layer-tips.bet-log-draw-tip,
body.member-page .layui-layer-tips.bet-log-draw-tip .layui-layer-content {
    background: #12182a !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45) !important;
}

body.member-page .layui-layer-tips.bet-log-draw-tip .layui-layer-content {
    color: #e8ecf4 !important;
    padding: 0 !important;
}

body.member-page .bet-log-draw-tip-inner {
    display: block;
    max-width: 300px;
    max-height: 220px;
    overflow: auto;
    padding: 10px 12px;
    white-space: pre-wrap;
    word-break: break-all;
    color: #e8ecf4 !important;
    font-size: 12px;
    line-height: 1.55;
}

/* 个人资料头像上传 */
body.member-page .profile-avatar-container {
    position: relative;
    width: 100px;
}

body.member-page .profile-avatar-container .profile-user-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid rgba(201, 162, 39, 0.4);
}

body.member-page .profile-avatar-container .profile-avatar-text {
    display: none;
}

body.member-page .profile-avatar-container:hover .profile-avatar-text {
    display: block;
    position: absolute;
    height: 100px;
    width: 100px;
    background: rgba(0, 0, 0, 0.65);
    color: #e8c547;
    top: 0;
    left: 0;
    line-height: 100px;
    text-align: center;
    border-radius: 50%;
}

body.member-page .profile-avatar-container button {
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    height: 100px;
    opacity: 0;
    cursor: pointer;
}

body.member-page .basicinfo {
    margin: 12px 0;
}

body.member-page .basicinfo .row > div {
    margin: 6px 0;
}

/* 响应式侧栏 + 手机版布局 */
@media (max-width: 991px) {
    body.member-page .sidebar-toggle {
        display: flex !important;
    }

  body.member-page #content-container > .row > .col-md-3 {
        position: static;
        flex: 0 0 0;
        width: 0;
        max-width: 0;
        height: 0;
        padding: 0;
        margin: 0;
        overflow: visible;
        border: none;
        pointer-events: none;
    }

    body.member-page #content-container > .row > .col-md-9 {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }

    body.member-page .member-main {
        padding: 16px 0 32px;
    }

    body.member-page .member-main > .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    body.member-page .panel-body {
        padding: 14px 12px;
    }

    body.member-page .panel-default > .panel-heading {
        padding: 12px 14px;
        font-size: 15px;
    }

    body.member-page .panel-body .table {
        font-size: 12px;
    }

    body.member-page .panel-body .table-responsive-wrap {
        margin: 0 -12px;
        padding: 0 12px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
        overscroll-behavior-x: contain;
    }

    body.member-page .panel-body .table-responsive-wrap > .table {
        min-width: 480px;
        margin-bottom: 0;
        table-layout: auto;
    }

    body.member-page .bet-log-table .bet-log-col-draw {
        width: 52px;
        min-width: 52px;
        padding-left: 4px;
        padding-right: 4px;
    }

    body.member-page .bet-log-draw-snippet {
        display: none !important;
    }

    body.member-page .bet-log-draw-cell--has-detail .bet-log-draw-badge {
        text-decoration: underline dotted;
        text-underline-offset: 2px;
    }

    body.member-page .bet-log-table .bet-log-col-remark,
    body.member-page .bet-log-table td.bet-log-col-remark {
        min-width: 120px;
    }

    /* 手机版侧栏：加深底色与分隔，避免发灰重叠 */
    body.member-page .sidenav {
        position: fixed;
        top: 64px;
        left: -280px;
        width: 260px;
        max-width: 85vw;
        height: calc(100vh - 64px);
        z-index: 1085;
        margin: 0;
        border-radius: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        transition: left 0.3s ease;
        box-shadow: none;
        padding: 0;
        background: #0c1018;
        border: none;
        border-right: 1px solid rgba(255, 255, 255, 0.14);
    }

    body.member-page .sidenav .list-group-heading {
        background: #151b2b;
        color: #e8c547;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    body.member-page .sidenav .list-group-item {
        background: #0c1018;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    body.member-page .sidenav .list-group-item a {
        color: #e2e8f4;
        font-size: 15px;
        padding: 14px 16px;
    }

    body.member-page .sidenav .list-group-item a:hover {
        background: #1a2236;
        color: #fff;
    }

    body.member-page .sidenav .list-group-item.active,
    body.member-page .sidenav .list-group-item.active a {
        background: #1f2a42;
        color: #fff;
    }

    body.member-page .sidenav .list-group-item.active a {
        border-left: 3px solid #c9a227;
    }

    body.member-page.sidebar-open .sidenav {
        left: 0;
        box-shadow: 8px 0 32px rgba(0, 0, 0, 0.5);
    }

    body.member-page.sidebar-open::before {
        content: "";
        position: fixed;
        inset: 64px 0 0 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1080;
        pointer-events: auto;
    }

    body.member-page.sidebar-open .sidebar-toggle {
        z-index: 1201;
    }

    .member-nav-toggle {
        display: block;
    }

    .site-header .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(11, 15, 26, 0.98);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding: 12px;
        gap: 4px;
        z-index: 1099;
        max-height: calc(100vh - 64px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .site-header .nav-links.is-open {
        display: flex;
    }

    .site-header .nav-links > a,
    .site-header .nav-links > .btn {
        width: 100%;
        text-align: center;
    }

    .header-inner {
        position: relative;
        flex-wrap: nowrap;
    }

    body.member-page .well {
        margin-bottom: 10px;
        padding: 10px 8px;
    }

    body.member-page .btn {
        white-space: normal;
    }

    body.member-page .bet-bot-btn-grid .btn {
        margin-bottom: 6px;
    }

    body.member-page .form-control {
        font-size: 16px;
    }
}

/* 覆盖 user.css 对侧栏按钮的冲突（padding/line-height 导致图标不居中） */
@media (max-width: 991px) {
    body.member-page .sidenav {
        top: 64px !important;
        min-width: 0 !important;
        padding: 0 !important;
        pointer-events: auto;
        background: #0c1018 !important;
    }

    body.member-page.sidebar-open .sidenav {
        left: 0 !important;
        width: 260px !important;
    }

    body.member-page .sidebar-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        right: 16px !important;
        bottom: calc(20px + env(safe-area-inset-bottom, 0px)) !important;
        width: 52px !important;
        height: 52px !important;
        padding: 0 !important;
        margin: 0 !important;
        line-height: 1 !important;
        background: linear-gradient(135deg, #c9a227, #dbb83a) !important;
        color: #1a1408 !important;
        z-index: 1200 !important;
        pointer-events: auto !important;
    }

    body.member-page .sidebar-toggle i {
        line-height: 1 !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

@media (max-width: 640px) {
    body.member-page .panel-body .row > [class*="col-"] {
        margin-bottom: 8px;
    }

    body.member-page .alert {
        padding: 10px 12px;
        font-size: 13px;
    }

    body.member-page h4.h5,
    body.member-page .tg-step-block h4 {
        font-size: 15px;
    }
}
