/* ==========================================================
   监控代理系统 · 赛博朋克霓虹主题（移动端优先 / 紧凑布局）
   ========================================================== */
:root {
    --bg: #05070f;
    --bg2: #0a0f1e;
    --panel: rgba(13, 20, 38, .82);
    --panel-solid: #0d1426;
    --line: rgba(0, 240, 255, .18);
    --cyan: #00f0ff;
    --magenta: #ff2d95;
    --purple: #9d4edd;
    --green: #2dffb3;
    --amber: #ffc247;
    --red: #ff3860;
    --gray: #7a87a8;
    --text: #d9e6ff;
    --text-dim: #8b99bd;
    --glow-cyan: 0 0 12px rgba(0, 240, 255, .45);
    --glow-mag: 0 0 12px rgba(255, 45, 149, .45);
}

/* 隐藏滚动条（PC + 移动端） */
::-webkit-scrollbar { width: 0 !important; height: 0 !important; }
html { scrollbar-width: none; -ms-overflow-style: none; }

* { -webkit-tap-highlight-color: transparent; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    min-height: 100vh;
    background-image:
        radial-gradient(ellipse 60% 40% at 20% 0%, rgba(0, 240, 255, .08), transparent),
        radial-gradient(ellipse 60% 40% at 80% 100%, rgba(255, 45, 149, .08), transparent),
        linear-gradient(rgba(0, 240, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, .035) 1px, transparent 1px);
    background-size: auto, auto, 28px 28px, 28px 28px;
    padding-bottom: 76px;
}

body.no-bottom-nav { padding-bottom: 20px; }

a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--magenta); }

/* ---------- 顶部导航 ---------- */
.app-navbar {
    background: rgba(8, 12, 26, .92) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 2px 18px rgba(0, 240, 255, .08);
    padding: .35rem .75rem;
}
.app-navbar .navbar-brand {
    font-weight: 800; letter-spacing: 2px; font-size: 1.05rem;
    background: linear-gradient(90deg, var(--cyan), var(--magenta));
    -webkit-background-clip: text; background-clip: text; color: transparent;
    text-shadow: var(--glow-cyan);
}
.app-navbar .nav-link { color: var(--text-dim) !important; font-size: .86rem; }
.app-navbar .nav-link.active, .app-navbar .nav-link:hover { color: var(--cyan) !important; text-shadow: var(--glow-cyan); }

/* ---------- 容器 ---------- */
.app-container { max-width: 768px; margin: 0 auto; padding: 12px 12px 24px; }
.admin-container { max-width: 1200px; margin: 0 auto; padding: 14px; }

/* ========================================================
   管理后台 · 左右布局（侧边栏 + 内容区）
   ======================================================== */
.admin-body {
    display: flex; min-height: 100vh;
    padding-bottom: 0 !important;
}

/* ---------- 侧边栏 ---------- */
.admin-sidebar {
    width: 220px; flex-shrink: 0;
    background: linear-gradient(180deg, rgba(7,12,28,.98), rgba(4,8,20,.98));
    border-right: 1px solid rgba(0,240,255,.12);
    position: sticky; top: 0; height: 100vh;
    display: flex; flex-direction: column;
    overflow-y: auto;
    z-index: 50;
}
.admin-side-brand {
    display: flex; align-items: center; gap: 10px;
    padding: 18px 16px 14px;
    font-size: 1.05rem; font-weight: 900;
    color: var(--cyan); text-shadow: 0 0 10px rgba(0,240,255,.4);
    border-bottom: 1px solid rgba(0,240,255,.10);
    letter-spacing: 1px;
    position: relative;
}
.admin-side-brand i { font-size: 1.2rem; }
.admin-side-close {
    display: none; margin-left: auto;
    background: transparent; border: none; color: var(--text-dim);
    font-size: 1rem; cursor: pointer; padding: 2px 6px;
}
.admin-side-close:hover { color: var(--cyan); }

.admin-side-nav {
    flex: 1; padding: 10px 8px; display: flex; flex-direction: column; gap: 2px;
}
.admin-side-item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px;
    color: var(--text-dim); text-decoration: none;
    border-radius: 6px; font-size: .86rem; font-weight: 600;
    transition: all .15s;
    border-left: 2px solid transparent;
}
.admin-side-item i { font-size: 1rem; width: 18px; text-align: center; }
.admin-side-item:hover {
    color: #fff;
    background: rgba(0,240,255,.06);
}
.admin-side-item.active {
    color: var(--cyan);
    background: rgba(0,240,255,.10);
    border-left-color: var(--cyan);
    text-shadow: 0 0 6px rgba(0,240,255,.35);
}
.admin-side-item.active i { text-shadow: 0 0 8px rgba(0,240,255,.4); }

.admin-side-foot {
    padding: 10px 8px;
    border-top: 1px solid rgba(123,140,190,.12);
}
.admin-side-logout {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px;
    color: #ff5a7a; text-decoration: none;
    border-radius: 6px; font-size: .84rem; font-weight: 600;
    transition: all .15s;
}
.admin-side-logout:hover {
    background: rgba(255,90,122,.10);
    text-shadow: 0 0 6px rgba(255,90,122,.4);
}

/* 遮罩层（手机端） */
.admin-side-mask {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.55); z-index: 40;
}
.admin-side-mask.on { display: block; }

/* ---------- 主内容 ---------- */
.admin-main {
    flex: 1 1 auto; min-width: 0;
    display: flex; flex-direction: column;
}
.admin-topbar {
    display: none; /* PC 端隐藏 */
    align-items: center; gap: 10px;
    padding: 10px 14px;
    background: rgba(7,12,28,.95);
    border-bottom: 1px solid rgba(0,240,255,.10);
    position: sticky; top: 0; z-index: 20;
}
.admin-burger {
    background: transparent; border: none;
    color: #fff; font-size: 1.3rem; padding: 2px 6px;
    cursor: pointer;
}
.admin-burger:hover { color: var(--cyan); }
.admin-topbar-title {
    flex: 1; font-weight: 800; color: var(--cyan); font-size: 1rem;
    text-shadow: 0 0 6px rgba(0,240,255,.35);
}
.admin-top-logout {
    color: #ff5a7a; text-decoration: none; font-size: 1.05rem; padding: 4px 8px;
}
.admin-top-logout:hover { text-shadow: 0 0 6px rgba(255,90,122,.4); }

.admin-content {
    padding: 18px 22px 30px;
}
/* admin 页面里原有的 admin-container 移除 padding，改用 admin-content */
.admin-content .admin-container {
    max-width: none; margin: 0; padding: 0;
}

/* ---------- 手机端响应式（< 768px） ---------- */
@media (max-width: 767.98px) {
    .admin-sidebar {
        position: fixed; top: 0; left: 0;
        transform: translateX(-100%);
        transition: transform .25s ease;
        width: 240px;
        z-index: 60;
    }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-side-close { display: inline-flex; }
    .admin-topbar { display: flex; }
    .admin-content { padding: 12px 12px 24px; }
    .admin-content .admin-container { padding: 0; }
}

/* ---------- 卡片 / 面板 ---------- */
.neon-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    backdrop-filter: blur(6px);
    box-shadow: 0 0 0 1px rgba(0,0,0,.3), 0 6px 24px rgba(0,0,0,.45);
}
.stat-card {
    position: relative;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: linear-gradient(135deg, rgba(0,240,255,.10), rgba(157,78,221,.08));
    overflow: hidden;
}
.stat-card::after {
    content: ''; position: absolute; right: -18px; top: -18px; width: 70px; height: 70px;
    border-radius: 50%; background: radial-gradient(circle, rgba(0,240,255,.22), transparent 70%);
}
.stat-card .stat-label { font-size: .72rem; color: var(--text-dim); letter-spacing: 1px; }
.stat-card .stat-value { font-size: 1.35rem; font-weight: 800; color: var(--cyan); text-shadow: var(--glow-cyan); line-height: 1.3; }
.stat-card.mag { background: linear-gradient(135deg, rgba(255,45,149,.10), rgba(157,78,221,.08)); }
.stat-card.mag .stat-value { color: var(--magenta); text-shadow: var(--glow-mag); }
.stat-card.purple { background: linear-gradient(135deg, rgba(157,78,221,.14), rgba(0,240,255,.05)); }
.stat-card.purple .stat-value { color: var(--purple); }
.stat-card .stat-sub { font-size: .68rem; color: var(--text-dim); margin-top: 2px; }

/* ===== 监控设置整合卡片：分隔线 + 统一信息行 ===== */
.hr-neon {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line) 15%, rgba(0, 240, 255, .35) 50%, var(--line) 85%, transparent);
}
.kv-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.kv-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 5px 10px;
    background: rgba(0, 240, 255, .04);
    border: 1px solid rgba(0, 240, 255, .10);
    border-radius: 8px;
}
.kv-label {
    font-size: .72rem;
    color: var(--text-dim);
    white-space: nowrap;
    flex-shrink: 0;
}
.kv-value {
    font-size: .78rem;
    color: var(--text);
    font-weight: 600;
    text-align: right;
    word-break: break-all;
    min-width: 0;
}

/* ---------- 监控号列表卡片 ---------- */
.monitor-card {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; margin-bottom: 9px;
    background: var(--panel);
    border: 1px solid rgba(123, 140, 190, .18);
    border-left: 3px solid var(--cyan);
    border-radius: 9px;
    transition: transform .12s, box-shadow .12s, border-color .12s;
}
.monitor-card:active { transform: scale(.985); }
.monitor-card.status-expired { border-left-color: var(--gray); opacity: .75; }
.monitor-card.status-revoked { border-left-color: var(--red); opacity: .7; }
.monitor-card .mc-main { flex: 1; min-width: 0; }
.monitor-card .mc-live { font-weight: 800; font-size: 1rem; color: #fff; letter-spacing: .5px; word-break: break-all; }
.monitor-card .mc-remark { font-size: .72rem; color: var(--text-dim); margin-top: 1px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.monitor-card .mc-meta { font-size: .72rem; color: var(--text-dim); margin-top: 3px; }
.monitor-card .mc-actions { display: flex; gap: 6px; flex-shrink: 0; }

/* ---------- 徽章 ---------- */
.badge-neon {
    font-size: .68rem; font-weight: 700; padding: .32em .62em;
    border-radius: 20px; letter-spacing: 1px;
}
.badge-valid { color: var(--green); background: rgba(45,255,179,.12); border: 1px solid rgba(45,255,179,.4); text-shadow: 0 0 8px rgba(45,255,179,.6); }
.badge-expired { color: var(--gray); background: rgba(122,135,168,.12); border: 1px solid rgba(122,135,168,.4); }
.badge-revoked { color: var(--red); background: rgba(255,56,96,.12); border: 1px solid rgba(255,56,96,.45); text-shadow: 0 0 8px rgba(255,56,96,.5); }
.badge-remain { color: var(--amber); background: rgba(255,194,71,.1); border: 1px solid rgba(255,194,71,.35); }
.badge-live { color: var(--cyan); background: rgba(0,240,255,.1); border: 1px solid rgba(0,240,255,.45); }
.badge-off { color: #8a93b5; background: rgba(138,147,181,.1); border: 1px dashed rgba(138,147,181,.45); }

/* ---------- 会员列表：折叠卡片 ---------- */
.member-card {
    background: linear-gradient(135deg, rgba(19,26,48,.9), rgba(10,14,30,.9));
    border: 1px solid rgba(0,240,255,.18);
    border-left: 3px solid rgba(0,240,255,.45);
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
}
.member-card .mch { padding: 12px 14px; cursor: pointer; user-select: none; }
.member-card .mch-name {
    font-weight: 700; font-size: .95rem; color: var(--cyan);
    text-shadow: 0 0 10px rgba(0,240,255,.4); word-break: break-all;
}
.member-card .mch-sub { font-size: .78rem; color: var(--dim); margin-top: 5px; }
.member-card .mch-info { font-size: .8rem; color: #aeb6d8; white-space: nowrap; }
.member-card .mch-info i { color: var(--cyan); opacity: .8; }
.member-card .mch-arrow {
    color: var(--cyan); flex-shrink: 0; transition: transform .25s, filter .25s;
    filter: drop-shadow(0 0 4px rgba(0,240,255,.5));
}
.member-card.open .mch-arrow { transform: rotate(180deg); }
.member-card.open { border-color: rgba(0,240,255,.4); box-shadow: 0 0 14px rgba(0,240,255,.15); }
.member-card.st-expired { border-left-color: rgba(255,194,71,.55); }
.member-card.st-revoked { border-left-color: rgba(255,45,85,.55); }
.member-card .mcb { display: none; padding: 0 14px 13px; }
.member-card.open .mcb { display: block; }
/* 子代理卡片：紫色主题 */
.member-card.sub-card {
    border-color: rgba(190,80,255,.22);
    border-left-color: rgba(190,80,255,.5);
}
.member-card.sub-card.open {
    border-color: rgba(190,80,255,.42);
    box-shadow: 0 0 14px rgba(192,96,255,.18);
}
.member-card.sub-card .mcb-actions {
    background: rgba(190,80,255,.04);
    border-color: rgba(190,80,255,.25);
}
.mcb-actions {
    display: flex; flex-wrap: wrap; gap: 8px 18px;
    padding: 10px 12px;
    background: rgba(0,240,255,.04);
    border: 1px dashed rgba(0,240,255,.25);
    border-radius: 8px;
}
.mcb-actions .op-link { font-size: .85rem; }
.op-view { color: #7ee7ff; }
.op-renew { color: #ffd166; }

/* ---------- 列表表格（折叠展开操作） ---------- */
.member-table {
    width: 100%;
    border-collapse: collapse;
}
.member-table thead th {
    color: var(--cyan);
    font-weight: 700;
    font-size: .7rem;
    letter-spacing: .5px;
    padding: 8px 10px;
    border-bottom: 1px solid rgba(0,240,255,.3);
    white-space: nowrap;
    text-align: left;
}
.member-table tbody tr.member-row {
    cursor: pointer;
    transition: background .2s;
}
.member-table tbody tr.member-row td {
    padding: 10px 12px;
    vertical-align: middle;
    font-size: .84rem;
    border-bottom: 1px solid rgba(123,140,190,.12);
    white-space: nowrap;
}
.member-table tbody tr.member-row:hover {
    background: rgba(0,240,255,.05);
}
.member-table tbody tr.member-row.open {
    background: rgba(0,240,255,.08);
}
.member-table tbody tr.member-row.open td {
    border-bottom-color: transparent;
}
.member-table tbody tr.member-row .row-arrow {
    color: var(--cyan);
    transition: transform .25s;
    filter: drop-shadow(0 0 4px rgba(0,240,255,.5));
}
.member-table tbody tr.member-row.open .row-arrow {
    transform: rotate(180deg);
}
.member-table tbody tr.member-actions-row {
    display: none;
}
.member-table tbody tr.member-actions-row.show {
    display: table-row;
}
.member-table tbody tr.member-actions-row td {
    padding: 4px 12px 12px;
    background: rgba(0,240,255,.03);
    border-bottom: 1px solid rgba(0,240,255,.18);
}
/* 子代理表格：紫色主题 */
.member-table.sub-table thead th {
    color: var(--purple, #c060ff);
    border-bottom-color: rgba(190,80,255,.3);
}
.member-table.sub-table tbody tr.member-row:hover {
    background: rgba(190,80,255,.05);
}
.member-table.sub-table tbody tr.member-row.open {
    background: rgba(190,80,255,.08);
}
.member-table.sub-table tbody tr.member-row .row-arrow {
    color: var(--purple, #c060ff);
    filter: drop-shadow(0 0 4px rgba(192,96,255,.5));
}
.member-table.sub-table tbody tr.member-actions-row td {
    background: rgba(190,80,255,.03);
    border-bottom-color: rgba(190,80,255,.18);
}
.member-table .td-nowrap { white-space: nowrap; }
.member-table .td-name {
    font-weight: 700;
    color: var(--cyan);
    text-shadow: 0 0 10px rgba(0,240,255,.4);
}
.member-table.sub-table .td-name {
    color: var(--purple, #c060ff);
    text-shadow: 0 0 10px rgba(192,96,255,.4);
}
.member-table .td-info { font-size: .8rem; color: #aeb6d8; }
.member-table .td-info i { color: var(--cyan); opacity: .8; }

/* 开通表单：会员类型选择卡片 */
.mtype-card {
    background: rgba(0,240,255,.03);
    border: 1px solid rgba(0,240,255,.2);
    border-radius: 8px;
    padding: 10px 12px;
    cursor: pointer;
    transition: all .2s;
}
.badge-neon.badge-owner {
    color: var(--purple, #c060ff);
    border-color: rgba(190, 80, 255, .55);
    background: rgba(160, 60, 255, .1);
}
.mtype-card.active {
    border-color: rgba(0,240,255,.65);
    background: rgba(0,240,255,.1);
    box-shadow: 0 0 12px rgba(0,240,255,.2);
}
.mtype-card:hover { border-color: rgba(0,240,255,.45); }
/* 查询会员激活态：紫色高亮 */
.mtype-card.active.mtype-query-on {
    border-color: rgba(190,80,255,.75);
    background: rgba(160,60,255,.14);
    box-shadow: 0 0 14px rgba(180,70,255,.35);
}
.mtype-card.active.mtype-query-on:hover { border-color: rgba(190,80,255,.75); }

/* ---------- 会员列表：操作列折叠 ---------- */
.op-toggle {
    background: transparent;
    border: 1px solid rgba(0,240,255,.4);
    color: var(--cyan);
    font-size: .78rem;
    padding: 3px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all .15s;
}
.op-toggle:hover {
    background: rgba(0,240,255,.12);
    box-shadow: 0 0 8px rgba(0,240,255,.3);
}
.op-links {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 7px;
    margin-top: 9px;
}
.op-link {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: .8rem;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity .15s;
}
.op-link:hover { opacity: .72; text-decoration: underline; }
.op-copy { color: var(--cyan); }
.op-open { color: var(--green); }
.op-edit { color: var(--magenta); }
.op-revoke { color: var(--red); }

/* ---------- 程序说明页 ---------- */
.info-url-box {
    background: rgba(0,0,0,.35);
    border: 1px solid rgba(0,240,255,.25);
    border-radius: 8px;
    padding: 8px 10px;
    font-size: .78rem;
    color: var(--cyan);
    word-break: break-all;
    user-select: all;
}

/* ---------- 按钮 ---------- */
.btn-neon {
    --bs-btn-color: #041018;
    --bs-btn-bg: var(--cyan);
    --bs-btn-border-color: var(--cyan);
    --bs-btn-hover-color: #041018;
    --bs-btn-hover-bg: #5ff7ff;
    --bs-btn-hover-border-color: #5ff7ff;
    --bs-btn-active-bg: var(--cyan);
    font-weight: 700; letter-spacing: 1px;
    box-shadow: 0 0 14px rgba(0,240,255,.35);
    border-radius: 8px;
}
.btn-neon-mag {
    --bs-btn-color: #1a0410;
    --bs-btn-bg: var(--magenta);
    --bs-btn-border-color: var(--magenta);
    --bs-btn-hover-bg: #ff5cab;
    --bs-btn-hover-border-color: #ff5cab;
    --bs-btn-hover-color: #1a0410;
    font-weight: 700;
    box-shadow: 0 0 14px rgba(255,45,149,.35);
    border-radius: 8px;
}
.btn-ghost {
    --bs-btn-color: var(--cyan);
    --bs-btn-bg: transparent;
    --bs-btn-border-color: rgba(0,240,255,.45);
    --bs-btn-hover-color: #041018;
    --bs-btn-hover-bg: var(--cyan);
    --bs-btn-hover-border-color: var(--cyan);
    border-radius: 8px;
}
.btn-sm.icon-btn { padding: .25rem .5rem; font-size: .9rem; line-height: 1; border-radius: 7px; }
.btn-danger-neon {
    --bs-btn-color: #fff;
    --bs-btn-bg: rgba(255,56,96,.15);
    --bs-btn-border-color: rgba(255,56,96,.55);
    --bs-btn-hover-bg: var(--red);
    --bs-btn-hover-border-color: var(--red);
    --bs-btn-hover-color: #fff;
    border-radius: 8px;
}

/* 浮动添加按钮 */
.fab-add {
    position: fixed; right: 18px; bottom: 86px; z-index: 1030;
    width: 54px; height: 54px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.7rem; color: #041018; font-weight: 900;
    background: linear-gradient(135deg, var(--cyan), var(--magenta));
    box-shadow: 0 0 22px rgba(0,240,255,.55), 0 6px 18px rgba(0,0,0,.5);
    border: none; transition: transform .15s;
}
.fab-add:active { transform: scale(.92) rotate(90deg); }

/* ---------- 底部导航 ---------- */
.bottom-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1020;
    background: rgba(8, 12, 26, .95);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    display: flex; justify-content: space-around;
    padding: 6px 0 max(6px, env(safe-area-inset-bottom));
}
.bottom-nav a {
    color: var(--text-dim); text-align: center; font-size: .66rem; flex: 1;
    display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.bottom-nav a i { font-size: 1.25rem; }
.bottom-nav a.active { color: var(--cyan); text-shadow: var(--glow-cyan); }

/* ---------- 顶部主导航（代理端） ---------- */
.top-nav {
    display: flex; justify-content: space-around; align-items: stretch;
    gap: 4px; padding: 0; margin-top: 6px;
    border-top: 1px solid var(--line);
}
.top-nav a {
    color: var(--text-dim); text-decoration: none; flex: 1;
    display: flex; align-items: center; justify-content: center; gap: 5px;
    font-size: .8rem; font-weight: 700; padding: 9px 4px;
    border-bottom: 2px solid transparent;
    transition: color .15s, border-color .15s;
    white-space: nowrap;
}
.top-nav a i { font-size: 1.05rem; }
.top-nav a.active {
    color: var(--cyan); text-shadow: var(--glow-cyan);
    border-bottom-color: var(--cyan);
}

/* ---------- 开通成本价目列表（表格） ---------- */
.price-table { --bs-table-bg: transparent; margin-bottom: 0; }
.price-table th {
    color: var(--cyan); font-size: .78rem; font-weight: 700; letter-spacing: 1px;
    border-bottom: 1px solid var(--line); white-space: nowrap;
}
.price-table td {
    font-size: .86rem; vertical-align: middle; padding: 9px 8px;
    border-bottom: 1px dashed rgba(123,140,190,.18);
}
.price-table tbody tr:last-child td { border-bottom: none; }
.price-table .cost-dur { font-weight: 700; color: #fff; }
.price-table .cost-num { color: var(--magenta); text-shadow: var(--glow-mag); font-size: 1rem; }
.price-table .cost-free { color: var(--green); text-shadow: 0 0 8px rgba(45,255,179,.5); font-size: 1rem; }
.price-table .sale-price-input { height: 30px; padding: 2px 8px; font-size: .8rem; max-width: 130px; }

/* ---------- 表单 ---------- */
.form-control, .form-select {
    background: rgba(6, 10, 22, .85);
    border: 1px solid rgba(123,140,190,.35);
    color: var(--text);
    border-radius: 8px;
    padding: .6rem .8rem;
    font-size: .92rem;
}
.form-control:focus, .form-select:focus {
    background: rgba(6, 10, 22, .95);
    border-color: var(--cyan);
    color: #fff;
    box-shadow: 0 0 0 .2rem rgba(0,240,255,.18);
}
.form-control::placeholder { color: #556080; }
.form-label { color: var(--text-dim); font-size: .8rem; margin-bottom: .25rem; letter-spacing: 1px; }
.form-select option { background: var(--panel-solid); color: var(--text); }
.form-select option:disabled { color: #556080; }
.input-group-text {
    background: rgba(0,240,255,.08); border-color: rgba(123,140,190,.35); color: var(--cyan);
}

/* ---------- 表格（管理后台） ---------- */
.table-neon {
    --bs-table-bg: transparent;
    --bs-table-color: var(--text);
    --bs-table-border-color: rgba(123,140,190,.18);
    --bs-table-hover-bg: rgba(0,240,255,.06);
    --bs-table-hover-color: #fff;
    margin-bottom: 0;
}
.table-neon th {
    color: var(--cyan); font-weight: 700; font-size: .78rem; letter-spacing: 1px;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}
.table-neon td { font-size: .84rem; vertical-align: middle; }
.table-wrap {
    background: var(--panel); border: 1px solid var(--line);
    border-radius: 10px; overflow: hidden;
}

/* ---------- 分页 ---------- */
.pagination .page-link {
    background: rgba(6,10,22,.85); border-color: rgba(123,140,190,.3);
    color: var(--cyan); font-size: .8rem;
}
.pagination .page-link:hover { background: rgba(0,240,255,.15); color: #fff; }
.pagination .page-item.active .page-link {
    background: var(--cyan); border-color: var(--cyan); color: #041018;
    box-shadow: var(--glow-cyan);
}
.pagination .page-item.disabled .page-link { background: rgba(6,10,22,.6); color: #556080; }

/* ---------- 登录页 ---------- */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.auth-card { width: 100%; max-width: 380px; padding: 28px 22px; }
.auth-logo {
    text-align: center; font-size: 1.5rem; font-weight: 900; letter-spacing: 4px; margin-bottom: 4px;
    background: linear-gradient(90deg, var(--cyan), var(--purple), var(--magenta));
    -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 0 10px rgba(0,240,255,.4));
}
.auth-sub { text-align: center; color: var(--text-dim); font-size: .75rem; letter-spacing: 3px; margin-bottom: 22px; }

/* ---------- 提示条 ---------- */
.alert-neon {
    border-radius: 8px; border: 1px solid; font-size: .85rem; padding: .6rem .9rem;
    background: rgba(6,10,22,.7);
}
.alert-neon.alert-danger { color: #ff8ba3; border-color: rgba(255,56,96,.5); background: rgba(255,56,96,.1); }
.alert-neon.alert-success { color: var(--green); border-color: rgba(45,255,179,.45); background: rgba(45,255,179,.08); }
.alert-neon.alert-warning { color: var(--amber); border-color: rgba(255,194,71,.45); background: rgba(255,194,71,.08); }

/* Toast 自动消失提示 */
#toast-stack { position: fixed; top: 64px; left: 50%; transform: translateX(-50%); z-index: 2000; width: min(92vw, 420px); }
.toast-neon {
    background: rgba(10,15,30,.95); border: 1px solid var(--cyan);
    color: var(--text); border-radius: 9px; font-size: .85rem;
    box-shadow: 0 0 18px rgba(0,240,255,.25);
    backdrop-filter: blur(8px);
}
.toast-neon.success { border-color: var(--green); box-shadow: 0 0 18px rgba(45,255,179,.25); }
.toast-neon.error { border-color: var(--red); box-shadow: 0 0 18px rgba(255,56,96,.3); }
.toast-neon.warning { border-color: var(--amber); box-shadow: 0 0 18px rgba(255,194,71,.25); }

/* ---------- 详情页 Tab / 数据 ---------- */
.detail-head { padding: 14px; }
.detail-head .dl-live { font-size: 1.3rem; font-weight: 900; color: #fff; word-break: break-all; letter-spacing: .5px; }
.detail-head .dl-sub { color: var(--text-dim); font-size: .8rem; margin-top: 4px; }

.nav-tabs-neon {
    border-bottom: 1px solid var(--line); gap: 4px;
    list-style: none; padding: 0; margin: 0 0 10px;
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
}
.nav-tabs-neon::-webkit-scrollbar { display: none; }
.nav-tabs-neon .nav-item { flex: 0 0 auto; }
.nav-tabs-neon .nav-link {
    color: var(--text-dim); border: none !important; border-radius: 8px 8px 0 0;
    font-size: .88rem; font-weight: 700; padding: .5rem 1rem; background: transparent;
    white-space: nowrap;
}
.nav-tabs-neon .nav-link.active {
    color: var(--cyan); background: rgba(0,240,255,.08);
    border-bottom: 2px solid var(--cyan) !important; text-shadow: var(--glow-cyan);
}

.data-item {
    padding: 9px 12px; border-bottom: 1px dashed rgba(123,140,190,.18);
    display: flex; justify-content: space-between; gap: 10px; align-items: center; font-size: .84rem;
}
.data-item:last-child { border-bottom: none; }
.data-item .di-name { font-weight: 700; color: #fff; }
.data-item .di-sub { color: var(--text-dim); font-size: .72rem; margin-top: 1px; }
.data-item .di-right { text-align: right; flex-shrink: 0; }

/* ---------- 开通会员：监控号开关卡片 ---------- */
.live-switch-card {
    background: rgba(0,240,255,.04);
    border: 1px dashed rgba(0,240,255,.35);
    border-radius: 10px;
    padding: 10px 12px;
}
.live-switch-card .form-check-input { width: 2.4em; height: 1.3em; cursor: pointer; }
.live-switch-card .form-check-input:checked { background-color: var(--cyan); border-color: var(--cyan); }

/* ---------- neon-switch：会员类型开放开关等（后台全局设置页面） ---------- */
.neon-switch-row {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px;
    background: linear-gradient(135deg, rgba(0,240,255,.06), rgba(157,78,221,.04));
    border: 1px solid rgba(0,240,255,.22);
    border-radius: 10px;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.neon-switch-row:hover {
    border-color: rgba(0,240,255,.45);
    box-shadow: 0 0 14px rgba(0,240,255,.12);
    background: linear-gradient(135deg, rgba(0,240,255,.10), rgba(157,78,221,.06));
}
.neon-switch-row.off {
    border-color: rgba(255,56,96,.25);
    background: linear-gradient(135deg, rgba(255,56,96,.05), rgba(255,56,96,.02));
}
.neon-switch-row.off:hover {
    border-color: rgba(255,56,96,.5);
    box-shadow: 0 0 14px rgba(255,56,96,.15);
}
.neon-switch-row .form-check-input {
    width: 2.6em; height: 1.4em; cursor: pointer;
    border: 1px solid rgba(0,240,255,.4);
    background: rgba(13,20,38,.9);
    transition: background .2s, border-color .2s, box-shadow .2s;
}
.neon-switch-row .form-check-input:checked {
    background: var(--cyan); border-color: var(--cyan);
    box-shadow: var(--glow-cyan);
}
.neon-switch-row .form-check-input:focus {
    box-shadow: 0 0 0 .15rem rgba(0,240,255,.25);
}
.neon-switch-row.off .form-check-input {
    border-color: rgba(255,56,96,.45);
}

/* ---------- 可展开 / 折叠数据卡片 ---------- */
.data-card {
    border-bottom: 1px solid rgba(123,140,190,.10);
    transition: background .15s;
}
.data-card:last-of-type { border-bottom: none; }
.data-card:hover { background: rgba(0,240,255,.02); }
.dc-head {
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
    padding: 5px 10px; cursor: pointer; user-select: none;
    transition: background .12s;
}
.dc-head:active { background: rgba(0,240,255,.05); }
.dc-head .di-name { font-weight: 700; color: #fff; font-size: .85rem; word-break: break-all; }
.dc-head .di-sub { color: var(--text-dim); font-size: .7rem; margin-top: 1px; line-height: 1.3; }
.dc-head .di-right { text-align: right; flex-shrink: 0; display: flex; align-items: center; justify-content: flex-end; }
.dc-arrow {
    color: var(--text-dim); margin-left: 6px; font-size: .8rem;
    transition: transform .2s ease, color .2s ease;
}
.data-card.open .dc-arrow { transform: rotate(180deg); color: var(--cyan); text-shadow: var(--glow-cyan); }
/* ======== 礼物列表：表格行 + 折叠 ======== */
.gift-thead, .gift-row-head {
    display: flex; align-items: center; gap: 10px;
}
.gift-thead {
    padding: 3px 10px;
    font-size: .64rem; font-weight: 700; letter-spacing: .8px;
    color: var(--text-dim); text-transform: uppercase;
    border-bottom: 1px solid rgba(123,140,190,.20);
    background: rgba(0,0,0,.20);
}
.gift-row {
    border-bottom: 1px solid rgba(123,140,190,.08);
    transition: background .12s;
}
.gift-row:hover { background: rgba(0,240,255,.02); }
.gift-row:last-of-type { border-bottom: none; }
.gift-row-head {
    padding: 4px 10px; cursor: pointer; user-select: none;
    font-size: .76rem;
    justify-content: flex-start; /* 覆盖 .dc-head 默认的 space-between */
    line-height: 1.3;
}
.gift-row-head:active { background: rgba(0,240,255,.05); }
/* 列宽分配（4 列等宽 + 箭头），超出直接裁切无省略号 */
.col-time, .col-sender, .col-to, .col-gift {
    flex: 1 1 0; min-width: 0;
    white-space: nowrap; overflow: hidden; text-overflow: clip;
}
.col-time  { color: var(--text-dim); font-size: .72rem; }
.col-sender { color: #dbe6ff; font-weight: 600; }
.col-to    { color: #ff9acf; }
.col-to i  { font-size: .64rem; margin-right: 2px; }
.col-gift  { color: var(--text-dim); font-weight: 500; }
.col-gift b { color: #ffd36b; font-weight: 800; }
.col-arrow { flex: 0 0 24px; text-align: center; color: var(--text-dim); font-size: .78rem; }
/* 表头的 col 稍小号、灰色 */
.gift-thead .col-time, .gift-thead .col-sender,
.gift-thead .col-to, .gift-thead .col-gift,
.gift-thead .col-arrow { color: var(--text-dim); font-weight: 700; }
.dc-body {
    display: none;
    padding: 2px 12px 6px;
    background: linear-gradient(180deg, rgba(0,240,255,.05), rgba(0,240,255,.01));
    border-top: 1px dashed rgba(123,140,190,.15);
}
.data-card.open .dc-body { display: block; animation: dcExpand .18s ease; }
/* 匿名卡片 → 最近礼物区域（与 dc-body 同时展开） */
.dc-gifts { display: none; padding: 4px 14px 10px; }
.data-card.open .dc-gifts { display: block; animation: dcExpand .2s ease; }
.dc-gifts-loading, .dc-gifts-empty {
    padding: 6px 0; font-size: .78rem; text-align: center;
}
.dc-gifts-head {
    font-size: .82rem; font-weight: bold; color: var(--cyan);
    padding: 6px 0 4px; margin-top: 4px;
    border-top: 1px dashed rgba(0,240,255,.18);
}
.dc-gifts-head i { margin-right: 5px; }
.dc-gift-row {
    display: flex; justify-content: space-between; align-items: center; gap: 8px;
    padding: 4px 0; font-size: .78rem; line-height: 1.5;
    border-bottom: 1px dotted rgba(123,140,190,.10);
}
.dc-gift-row:last-child { border-bottom: none; }
.dc-gift-to {
    flex: 0 0 auto; color: var(--text-dim);
}
.dc-gift-name {
    flex: 1 1 auto; color: var(--text-bright); font-weight: 500;
    display: flex; align-items: center; gap: 4px; min-width: 0;
}
.dc-gift-name i { color: var(--neon-mag, #ff3860); }
.dc-gift-time {
    flex: 0 0 auto; color: rgba(155,175,215,.55); font-size: .72rem;
    white-space: nowrap;
}
@keyframes dcExpand {
    from { opacity: 0; transform: translateY(-5px); }
    to   { opacity: 1; transform: none; }
}
.dc-row {
    display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
    padding: 4.5px 0; font-size: .8rem;
}
/* 2 栏网格布局（匿名详情卡片） */
.dc-body-grid {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 2px 16px;
    padding: 3px 12px 6px;
}
.data-card.open .dc-body-grid { display: grid; animation: dcExpand .18s ease; }
.dc-cell {
    font-size: .8rem; line-height: 1.45;
    display: flex; align-items: baseline; gap: 2px;
    min-width: 0; overflow: hidden;
}
.dc-ck {
    color: var(--text-dim); flex-shrink: 0;
    font-size: .76rem;
}
.dc-ck::after { content: '：'; color: rgba(155,175,215,.35); margin-right: 2px; }
.dc-cv {
    color: var(--text-bright); font-weight: 500;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dc-cell-full { grid-column: 1 / -1; }
.dc-cell-full .dc-cv { white-space: normal; word-break: break-all; }
/* 匿名卡片底部操作按钮行 */
.dc-actions {
    display: flex; gap: 8px; margin-top: 6px; padding-top: 8px;
    border-top: 1px dashed rgba(123,140,190,.15);
}
.dc-btn {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 5px 12px; font-size: .76rem; font-weight: 600;
    border-radius: 6px; text-decoration: none; border: none; cursor: pointer;
    transition: all .15s ease; line-height: 1.4;
    font-family: inherit;
}
.dc-btn i { font-size: .72rem; }
.dc-btn-copy {
    background: rgba(0,240,255,.10);
    color: var(--cyan);
    border: 1px solid rgba(0,240,255,.35);
}
.dc-btn-copy:hover {
    background: rgba(0,240,255,.20);
    border-color: var(--cyan);
    box-shadow: 0 0 8px rgba(0,240,255,.25);
}
.dc-btn-open {
    background: rgba(190,80,255,.10);
    color: #c060ff;
    border: 1px solid rgba(190,80,255,.35);
}
.dc-btn-open:hover {
    background: rgba(190,80,255,.20);
    border-color: #c060ff;
    box-shadow: 0 0 8px rgba(190,80,255,.25);
}
.dc-k { color: var(--text-dim); flex-shrink: 0; }
.dc-k::after { content: '：'; }
.dc-v { color: var(--text); text-align: right; word-break: break-all; }
.dc-link { color: var(--cyan); text-decoration: none; border-bottom: 1px dashed rgba(0,240,255,.5); }
.dc-link:hover { color: var(--magenta); border-bottom-color: var(--magenta); }

/* ===== 监控号信息条 ===== */
.monitor-info-bar {
    display: flex; justify-content: space-between; align-items: center;
    gap: 8px; flex-wrap: wrap;
    margin: 8px 0 10px;
    padding: 7px 10px 7px 13px;
    background: rgba(0, 240, 255, .035);
    border: 1px solid rgba(0, 240, 255, .14);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}
.monitor-info-bar::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
    background: linear-gradient(180deg, var(--cyan), var(--magenta));
}
.mib-left { display: flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap; }
.mib-id {
    font-size: .82rem; font-weight: 700; color: #dbe9ff;
    font-family: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
    letter-spacing: .3px; line-height: 1.2;
    padding: 5px 10px;
    background: rgba(255, 255, 255, .03);
    border-radius: 8px;
    border: 1px solid rgba(123, 140, 190, .28);
    display: inline-flex; align-items: center; gap: 4px;
}
.mib-right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; margin-left: auto; }
.mib-btn {
    font-size: .72rem; font-weight: 600; letter-spacing: .3px;
    padding: 5px 10px;
    border-radius: 7px;
    border: 1px solid transparent;
    background: transparent;
    display: inline-flex; align-items: center; gap: 4px;
    cursor: pointer;
    transition: all .15s ease;
    white-space: nowrap;
}
.mib-btn-edit {
    color: var(--text-dim);
    border-color: rgba(123,140,190,.25);
    background: rgba(123,140,190,.08);
}
.mib-btn-edit:hover {
    color: var(--cyan);
    border-color: rgba(0,240,255,.55);
    background: rgba(0,240,255,.12);
    box-shadow: 0 0 8px rgba(0,240,255,.2);
}
.mib-add {
    color: #8fd9ea;
    border: 1px dashed rgba(0,240,255,.38);
    background: transparent;
    padding: 5px 9px;
    border-radius: 8px;
}
.mib-add:hover {
    color: var(--cyan);
    border-color: rgba(0,240,255,.7);
    background: rgba(0,240,255,.10);
}
.mib-btn-refresh {
    color: var(--cyan);
    border-color: rgba(0,240,255,.35);
    background: rgba(0,240,255,.1);
}
.mib-btn-refresh:hover {
    background: rgba(0,240,255,.22);
    box-shadow: 0 0 10px rgba(0,240,255,.35);
}
.mib-btn-refresh:active i { animation: spin-once .35s ease; }

/* ===== 直播号 Chip（多监控号切换） ===== */
.live-chip { display:inline-flex; align-items:center; gap:4px; cursor:pointer; transition:all .15s; }
/* 直播间名称可能较长：单行截断，完整抖音号仍保留在 title 提示里 */
.live-chip .live-chip-text { max-width:160px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.live-chip:hover:not(.active) {
    color: var(--cyan);
    border-color: rgba(0,240,255,.45);
    background: rgba(0,240,255,.08);
}
.live-chip.active {
    color: #04121a;
    background: linear-gradient(135deg, #00e5ff, #86f7ff);
    border-color: transparent;
    box-shadow: 0 0 12px rgba(0,240,255,.35);
}
.live-chip.active .live-chip-star { color: #7a4b00; }
.live-chip .live-chip-del { background:none; border:none; color:var(--text-dim); font-size:.85rem; line-height:1; padding:0 1px; cursor:pointer; }
.live-chip .live-chip-del:hover { color:#ff5a7a; text-shadow:0 0 6px rgba(255,90,122,.5); }
.live-chip .live-chip-star { font-size:.55rem; color:#ffd166; opacity:.9; }
@keyframes spin-once { from { transform: rotate(-90deg); } to { transform: rotate(0); } }

.gift-stat {
    display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 0;
    margin-top: 0;
    padding: 4px 6px;
    background: linear-gradient(180deg, rgba(0,240,255,.035), transparent);
    border-bottom: 1px solid rgba(123,140,190,.18);
}
.gift-stat .gs-pill {
    flex: 1; min-width: 60px; text-align: center; padding: 6px 4px 5px;
    background: rgba(0,0,0,.25); border: 1px solid rgba(123,140,190,.20);
    border-radius: 7px; position: relative; overflow: hidden;
    transition: border-color .15s ease;
}
.gift-stat .gs-pill::before {
    content: ''; position: absolute; inset: 0 0 auto 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--pill-color, var(--cyan)), transparent);
    opacity: .8;
}
.gift-stat .gs-pill:hover { border-color: var(--pill-color, var(--cyan)); }
.gift-stat .gs-num { font-size: 1rem; font-weight: 800; letter-spacing: .3px; line-height: 1.15; }
.gift-stat .gs-label { font-size: .62rem; color: var(--text-dim); margin-top: 1px; letter-spacing: .3px; line-height: 1.2; }
/* 4 个 pill 不同色 */
.gift-stat .gs-pill:nth-child(1) { --pill-color: var(--cyan); }
.gift-stat .gs-pill:nth-child(1) .gs-num { color: var(--cyan); text-shadow: 0 0 10px rgba(0,240,255,.3); }
.gift-stat .gs-pill:nth-child(2) { --pill-color: var(--magenta); }
.gift-stat .gs-pill:nth-child(2) .gs-num { color: var(--magenta); text-shadow: 0 0 10px rgba(255,45,149,.3); }
.gift-stat .gs-pill:nth-child(3) { --pill-color: var(--purple); }
.gift-stat .gs-pill:nth-child(3) .gs-num { color: var(--purple); text-shadow: 0 0 10px rgba(157,78,221,.3); }
.gift-stat .gs-pill:nth-child(4) { --pill-color: #ffb347; }
.gift-stat .gs-pill:nth-child(4) .gs-num { color: #ffb347; text-shadow: 0 0 10px rgba(255,179,71,.3); }

.spinner-neon { color: var(--cyan); }
.data-empty, .data-loading { text-align: center; padding: 34px 10px; color: var(--text-dim); font-size: .85rem; }

/* 余额明细 */
.log-item {
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
    padding: 11px 4px; border-bottom: 1px solid rgba(123,140,190,.14);
}
.log-item .log-desc { font-size: .83rem; color: var(--text); }
.log-item .log-time { font-size: .69rem; color: var(--text-dim); margin-top: 2px; }
.log-item .log-amount { font-weight: 800; font-size: .95rem; white-space: nowrap; text-align: right; }
.log-item .log-balance { font-size: .68rem; color: var(--text-dim); margin-top: 2px; text-align: right; }
.amt-plus { color: var(--green); text-shadow: 0 0 8px rgba(45,255,179,.4); }
.amt-minus { color: var(--red); text-shadow: 0 0 8px rgba(255,56,96,.35); }

/* ---------- 弹窗 ---------- */
.modal-content {
    background: var(--panel-solid); border: 1px solid var(--line);
    border-radius: 12px; box-shadow: 0 0 30px rgba(0,240,255,.15);
}
.modal-header, .modal-footer { border-color: rgba(123,140,190,.2); }
.modal-title { color: var(--cyan); font-weight: 800; letter-spacing: 1px; }
.btn-close { filter: invert(1) grayscale(1) brightness(1.6); }

/* ===== 续期面板：板块到期卡片 ===== */
.renew-pill {
    padding: 7px 12px;
    border-radius: 8px;
    border: 1px solid rgba(0,240,255,.35);
    background: rgba(0,240,255,.06);
    min-width: 110px;
    position: relative;
    overflow: hidden;
}
.renew-pill::before {
    content: ''; position: absolute; inset: 0 0 auto 0; height: 2px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
    opacity: .7;
}
.renew-pill .rp-name {
    font-size: .72rem; color: var(--text-dim); display: flex; align-items: center; gap: 4px;
}
.renew-pill .rp-days {
    font-size: 1.1rem; font-weight: 800; margin-top: 1px; color: var(--cyan);
    text-shadow: 0 0 8px rgba(0,240,255,.25);
}
.renew-pill .rp-expire {
    font-size: .64rem; color: var(--text-dim); margin-top: 2px;
}
.renew-pill.renew-warn {
    border-color: rgba(255,179,71,.45);
    background: rgba(255,179,71,.08);
    color: #ffb347;
}
.renew-pill.renew-warn .rp-days { color: #ffb347; text-shadow: 0 0 8px rgba(255,179,71,.3); }
.renew-pill.renew-danger {
    border-color: rgba(255,90,122,.5);
    background: rgba(255,90,122,.1);
    color: #ff5a7a;
}
.renew-pill.renew-danger .rp-days { color: #ff5a7a; text-shadow: 0 0 8px rgba(255,90,122,.3); }

/* ===== 各板块到期列表 ===== */
.renew-list { display: flex; flex-direction: column; gap: 6px; }
.renew-row {
    display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap;
    padding: 8px 10px; border-radius: 8px;
    border: 1px solid rgba(0,240,255,.35);
    background: rgba(0,240,255,.06);
}
.renew-row .rr-name {
    font-size: .76rem; font-weight: 600; color: #fff;
    display: flex; align-items: center; gap: 6px; min-width: 0;
}
.renew-row .rr-name i { color: var(--cyan); }
.renew-row .rr-meta { display: flex; align-items: baseline; gap: 10px; margin-left: auto; }
.renew-row .rr-days {
    font-size: .88rem; font-weight: 800; color: var(--cyan);
    text-shadow: 0 0 8px rgba(0,240,255,.25); white-space: nowrap;
}
.renew-row .rr-expire { font-size: .64rem; color: var(--text-dim); white-space: nowrap; }
.renew-row.renew-warn { border-color: rgba(255,179,71,.45); background: rgba(255,179,71,.08); }
.renew-row.renew-warn .rr-days { color: #ffb347; text-shadow: 0 0 8px rgba(255,179,71,.3); }
.renew-row.renew-danger { border-color: rgba(255,90,122,.5); background: rgba(255,90,122,.1); }
.renew-row.renew-danger .rr-days { color: #ff5a7a; text-shadow: 0 0 8px rgba(255,90,122,.3); }

/* ===== 续期历史 ===== */
.renew-history { display: flex; flex-direction: column; gap: 0; }
.rh-row {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 8px 12px;
    padding: 8px 10px;
    border-bottom: 1px solid rgba(123,140,190,.12);
    align-items: center;
    font-size: .76rem;
}
.rh-row:last-child { border-bottom: none; }
.rh-code {
    font-family: 'JetBrains Mono', monospace;
    color: #c8d6ec;
    letter-spacing: .5px;
}
.rh-tag {
    color: var(--cyan);
    font-size: .68rem;
    padding: 1px 8px;
    border-radius: 10px;
    background: rgba(0,240,255,.1);
    border: 1px solid rgba(0,240,255,.3);
    white-space: nowrap;
}
.rh-days {
    color: #2ee58a;
    font-weight: 700;
    font-size: .74rem;
    white-space: nowrap;
}
.rh-time {
    color: var(--text-dim);
    font-size: .68rem;
    white-space: nowrap;
}

/* ===== 价格页板块 Tab ===== */
.price-tabs {
    display: flex;
    gap: 6px;
    padding: 4px;
    margin-bottom: 14px;
    border-radius: 10px;
    background: rgba(0, 0, 0, .25);
    border: 1px solid rgba(123, 140, 190, .2);
}
.price-tab {
    flex: 1;
    padding: 8px 10px;
    border: none;
    border-radius: 7px;
    background: transparent;
    color: var(--text-dim);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .3px;
    cursor: pointer;
    transition: all .2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
}
.price-tab:hover { color: #c8d6ec; background: rgba(255,255,255,.04); }
.price-tab.active {
    color: #00f0ff;
    background: rgba(0, 240, 255, .1);
    box-shadow: inset 0 0 0 1px rgba(0, 240, 255, .4), 0 0 10px rgba(0, 240, 255, .15);
}
.price-tab i { font-size: .78rem; }

/* 手机端：开通成本 tab 自适应换行 */
@media (max-width: 576px) {
    .price-tabs {
        flex-wrap: wrap;
        gap: 4px;
        padding: 4px;
    }
    .price-tab {
        flex: 1 1 calc(33.333% - 4px);
        padding: 7px 4px;
        font-size: .7rem;
        white-space: normal;
        line-height: 1.25;
        text-align: center;
    }
    .price-tab i { font-size: .72rem; }
}

.section-title {
    font-size: .82rem; color: var(--cyan); letter-spacing: 2px; font-weight: 700;
    margin: 18px 2px 8px; display: flex; align-items: center; gap: 8px;
}
.section-title::before { content: ''; width: 4px; height: 14px; background: var(--magenta); box-shadow: var(--glow-mag); border-radius: 2px; }

/* ===== 板块多选 Chip（卡密生成页） ===== */
.chip-neon {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}
.chip-neon .chip-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .82rem;
    font-weight: 600;
    color: #cdd6f4;
    padding: 7px 14px;
    border: 1px solid rgba(138, 147, 181, .4);
    border-radius: 6px;
    background: rgba(255, 255, 255, .03);
    transition: all .18s ease;
    line-height: 1;
}
.chip-neon .chip-label:hover {
    border-color: rgba(0, 240, 255, .5);
    color: #e8fbff;
}
.chip-neon .chip-checkbox:checked + .chip-label {
    color: #00f0ff;
    border-color: #00f0ff;
    background: rgba(0, 240, 255, .12);
    box-shadow: 0 0 10px rgba(0, 240, 255, .4), inset 0 0 8px rgba(0, 240, 255, .15);
    text-shadow: 0 0 8px rgba(0, 240, 255, .6);
}
.chip-neon .chip-checkbox:checked + .chip-label i {
    color: #00f0ff;
}

/* ===== 监控设置：多监控号卡片（每号一卡） ===== */
.live-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.live-card {
    padding: 8px 12px;
    background: rgba(0, 0, 0, .28);
    border: 1px solid rgba(123, 140, 190, .22);
    border-radius: 10px;
    backdrop-filter: blur(4px);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.live-card.active {
    border-color: rgba(0, 240, 255, .55);
    box-shadow: 0 0 12px rgba(0, 240, 255, .12), inset 0 0 18px rgba(0, 240, 255, .04);
}
/* 卡头：直播号 + 主号/附加徽标 + 编辑/删除 */
.live-card .lc-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding-bottom: 6px;
    margin-bottom: 6px;
    border-bottom: 1px dashed rgba(123, 140, 190, .28);
}
.live-card .lc-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    color: var(--cyan);
    font-size: .78rem;
    font-weight: 600;
}
.live-card .lc-title i { font-size: .8rem; }
.live-card .lc-id {
    font-family: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
    font-size: .82rem;
    color: #fff;
    letter-spacing: .3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.live-card .lc-badge {
    flex-shrink: 0;
    font-size: .6rem;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 1px 6px;
    border-radius: 20px;
    color: #8a93b5;
    border: 1px dashed rgba(138, 147, 181, .45);
    display: inline-flex;
    align-items: center;
    gap: 2px;
}
.live-card .lc-badge-pri {
    color: #ffd166;
    border: 1px solid rgba(255, 209, 102, .4);
    background: rgba(255, 209, 102, .08);
}
.live-card .lc-badge-pri i { font-size: .5rem; }
.live-card .lc-actions { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; }
/* 监控卡片状态徽章：未监控/冷却中 使用高亮色（不影响其他页面的同名徽章） */
.live-card .badge-off {
    color: #ffb84d; background: rgba(255, 184, 77, .12);
    border: 1px solid rgba(255, 184, 77, .55);
    text-shadow: 0 0 8px rgba(255, 184, 77, .6);
}
.live-card .badge-expired {
    color: #ff7eb3; background: rgba(255, 126, 179, .12);
    border: 1px solid rgba(255, 126, 179, .55);
    text-shadow: 0 0 8px rgba(255, 126, 179, .55);
}
/* 更改监控抖音号按钮：青色霓虹高亮，两卡样式统一 */
.live-card .lc-btn-change {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .5px;
    color: #00f0ff;
    background: rgba(0, 240, 255, .10);
    border: 1px solid #00f0ff;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s ease;
    animation: lcChangeFlash 1.2s ease-in-out infinite;
}
.live-card .lc-btn-change:hover {
    background: rgba(0, 240, 255, .24);
}
/* 边框蓝红交替闪烁：提示用户这里是修改监控号入口 */
@keyframes lcChangeFlash {
    0%, 100% { border-color: #00f0ff; }
    50%      { border-color: #ff2d55; }
}
@media (prefers-reduced-motion: reduce) {
    .live-card .lc-btn-change { animation: none; }
}
.live-card .lc-body { min-height: 18px; }
/* 添加直播号入口卡 */
.live-card-add {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 12px;
    font-size: .78rem;
    font-weight: 600;
    color: var(--cyan);
    background: rgba(0, 240, 255, .04);
    border: 1px dashed rgba(0, 240, 255, .4);
    border-radius: 10px;
    cursor: pointer;
    transition: all .15s ease;
}
.live-card-add:hover {
    background: rgba(0, 240, 255, .1);
    box-shadow: 0 0 10px rgba(0, 240, 255, .18);
}
/* 删除附加号按钮 */
.mib-btn-del {
    color: var(--text-dim);
    border-color: rgba(123, 140, 190, .25);
    background: rgba(123, 140, 190, .08);
}
.mib-btn-del:hover {
    color: #ff5a7a;
    border-color: rgba(255, 90, 122, .55);
    background: rgba(255, 90, 122, .12);
    box-shadow: 0 0 8px rgba(255, 90, 122, .2);
}
/* 卡片数据行 */
.live-card .sc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: .78rem;
    line-height: 1.4;
    gap: 12px;
}
.live-card .sc-row.sc-row-top { padding-top: 2px; }
.live-card .sc-row.sc-row-bottom { padding-bottom: 2px; }
.live-card .sc-key {
    color: var(--text-dim);
    font-size: .72rem;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    flex-shrink: 0;
    min-width: 84px;
    letter-spacing: .3px;
}
.live-card .sc-key i {
    font-size: .72rem;
    opacity: .75;
}
.live-card .sc-val {
    color: #e5eefb;
    font-weight: 600;
    font-size: .78rem;
    text-align: right;
    word-break: break-all;
    flex: 1;
}
.live-card .sc-val.text-neon-cyan {
    color: var(--cyan);
    text-shadow: 0 0 6px rgba(0, 240, 255, .28);
}
.live-card .sc-val.text-neon-mag {
    color: var(--magenta);
    text-shadow: 0 0 6px rgba(255, 45, 149, .28);
}
.live-card .sc-val.text-success { color: #2ee58a; }
.live-card .sc-val.text-warning { color: #ffb347; }
.live-card .sc-val.text-danger  { color: #ff5a7a; }
.sc-sep {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(123, 140, 190, .35), transparent);
    margin: 8px 0;
}

.text-dim { color: var(--text-dim); }
.text-neon-cyan { color: var(--cyan); }
.text-neon-mag { color: var(--magenta); }
.text-neon-green { color: var(--green); }
.fs-7 { font-size: .72rem; }
.fs-8 { font-size: .68rem; }

/* 列表表格：移动端隐藏次要列 */
.member-table .col-nickname,
.member-table .col-wechat,
.member-table .col-monitor,
.member-table .col-remain {
    display: none;
}

/* ======== 手机端（< 768px）响应式 ======== */
@media (max-width: 767.98px) {
    .app-container { max-width: 100%; padding: 8px 10px 20px; }
    /* Tab 更紧凑 */
    .nav-tabs-neon .nav-link { font-size: .78rem; padding: .42rem .7rem; }
    /* 匿名卡片网格改为单列 */
    .dc-body-grid { grid-template-columns: 1fr; gap: 4px 12px; padding: 6px 10px 8px; }
    /* 礼物卡片保持 2 列（手机端也不塌） */
    .gift-row .dc-body-grid { grid-template-columns: 1fr 1fr; }
    .gift-row .dc-cell-full { grid-column: 1 / -1; }
    /* 礼物表格行 padding 减小 */
    .gift-row-head { padding: 7px 10px; font-size: .74rem; }
    .gift-thead { padding: 5px 10px; font-size: .64rem; }
    .col-time { font-size: .68rem; }
    /* 统计 pill 更紧凑 */
    .gift-stat { gap: 6px; padding: 8px 8px; margin-bottom: 8px; }
    .gift-stat .gs-pill { min-width: 60px; padding: 7px 4px 6px; }
    .gift-stat .gs-num { font-size: .95rem; }
    .gift-stat .gs-label { font-size: .6rem; }
    /* dc-head padding 减小 */
    .dc-head { padding: 8px 10px; }
    /* dc-row 更紧凑 */
    .dc-row { padding: 3.5px 0; font-size: .76rem; }
    .dc-k, .dc-v { font-size: .76rem; }
    /* 设置页面卡片 */
    .neon-card { padding: 12px; }
}

/* PC 端微调 */
@media (min-width: 768px) {
    .app-container { padding-top: 20px; }
    body { padding-bottom: 30px; }
    .fab-add { bottom: 28px; }
    .bottom-nav { display: none; }
    .member-table .col-nickname,
    .member-table .col-wechat,
    .member-table .col-monitor,
    .member-table .col-remain {
        display: table-cell;
    }
}
