/* ============================================================
   IB 加盟商/代理商管理平台 - 深色金融主题
   主色调: #0a1628(深蓝) #c9a44b(金色)
   ============================================================ */

/* === CSS 变量 === */
:root {
    --ib-bg:        #0a1628;
    --ib-card:      #111d32;
    --ib-card-alt:  #162238;
    --ib-navy:      #1a3a5c;
    --ib-navy-dark: #0f2440;
    --ib-navy-light:#2d5f8a;
    --ib-gold:      #c9a44b;
    --ib-gold-light:#e0c56e;
    --ib-gold-dark: #b8860b;
    --ib-green:     #00d4aa;
    --ib-green-dark:#00a884;
    --ib-red:       #ff4757;
    --ib-red-dark:  #d63040;
    --ib-border:    #1e2d45;
    --ib-border-lt: #253550;
    --ib-text:      #dde4ed;
    --ib-text-light:#8899aa;
    --ib-text-muted:#5a6d80;
    --ib-shadow:    0 4px 20px rgba(0,0,0,0.3);
    --ib-shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
    --ib-radius:    8px;
    --ib-radius-lg: 12px;
    --ib-transition: all 0.25s ease;
}

/* === 全局 === */
* { box-sizing: border-box; }
.ib-body {
    margin: 0; padding: 0;
    font-family: "Microsoft YaHei","PingFang SC","Helvetica Neue",Arial,sans-serif;
    background: var(--ib-bg);
    color: var(--ib-text);
    min-height: 100vh;
    display: flex; flex-direction: column;
}
.ib-body::before {
    content: '';
    position: fixed; inset: 0;
    opacity: .025;
    background-image: radial-gradient(circle at 20% 30%, #c9a44b .5px, transparent .5px),
                      radial-gradient(circle at 80% 70%, #2d5f8a .5px, transparent .5px);
    background-size: 80px 80px;
    pointer-events: none;
    z-index: 0;
}

/* === 导航 === */
.ib-navbar {
    background: linear-gradient(180deg, #0d1a2d 0%, #0a1525 100%);
    border-bottom: 1px solid #1a2a40;
    position: sticky; top: 0; z-index: 1000; height: 64px;
    box-shadow: 0 1px 8px rgba(0,0,0,.4);
}
.ib-navbar-inner {
    max-width: 1280px; margin: 0 auto; padding: 0 24px;
    height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.ib-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.ib-brand-icon { font-size: 28px; }
.ib-brand-text { font-size: 20px; font-weight: 700; letter-spacing: 1px; }
.ib-brand-slogan {
    font-size: 11px; color: var(--ib-text-muted);
    border-left: 1px solid rgba(255,255,255,.15);
    padding-left: 12px; margin-left: 4px; letter-spacing: 2px;
}
.ib-nav-right { display: flex; align-items: center; gap: 16px; }
.ib-nav-link { color: var(--ib-text-light); text-decoration: none; font-size: 14px; transition: var(--ib-transition); }
.ib-nav-link:hover { color: var(--ib-gold); }
.ib-nav-btn {
    background: linear-gradient(135deg, var(--ib-gold), var(--ib-gold-dark));
    color: #1a1a1a; padding: 8px 20px; border-radius: 6px;
    text-decoration: none; font-size: 14px; font-weight: 700; transition: var(--ib-transition);
}
.ib-nav-btn:hover { box-shadow: 0 0 16px rgba(201,164,75,.4); transform: translateY(-1px); }

/* 用户菜单 */
.ib-user-menu {
    position: relative; display: flex; align-items: center; gap: 8px;
    cursor: pointer; padding: 6px 12px 10px; border-radius: 8px; transition: var(--ib-transition);
}
.ib-user-menu:hover { background: rgba(255,255,255,.06); }
.ib-user-avatar { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; border: 2px solid var(--ib-gold); }
.ib-user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ib-user-name { color: #fff; font-size: 14px; }
.ib-user-dropdown {
    display: none; position: absolute; top: 100%; right: 0;
    background: #111d32; border: 1px solid var(--ib-border);
    border-radius: var(--ib-radius); box-shadow: var(--ib-shadow-lg);
    min-width: 180px; z-index: 1001;
}
.ib-user-menu:hover .ib-user-dropdown { display: block; }
.ib-user-dropdown a {
    display: flex; align-items: center; gap: 10px; padding: 12px 20px;
    color: var(--ib-text-light); text-decoration: none; font-size: 14px;
    transition: var(--ib-transition); border-bottom: 1px solid rgba(255,255,255,.03);
}
.ib-user-dropdown a:hover { background: rgba(201,164,75,.08); color: var(--ib-gold); }
.ib-user-dropdown a i { width: 18px; color: var(--ib-text-muted); }
.ib-user-dropdown a:hover i { color: var(--ib-gold); }
.ib-dropdown-divider { height: 1px; background: var(--ib-border); margin: 4px 0; }

/* === 主内容 === */
.ib-main { flex: 1; padding-bottom: 40px; position: relative; z-index: 1; }
.ib-main:has(.ib-login-wrapper) { padding-bottom: 0; display: flex; flex-direction: column; }

/* === 页面通用 === */
.ib-page { max-width: 1280px; margin: 0 auto; padding: 24px; }
.ib-page-header { margin-bottom: 28px; }
.ib-page-header h1 { font-size: 26px; color: #fff; margin: 0 0 6px; font-weight: 700; }
.ib-page-header h1 i { color: var(--ib-gold); margin-right: 8px; }
.ib-page-header p { color: var(--ib-text-light); margin: 0; font-size: 14px; }

/* === 统计卡片 === */
.ib-stat-cards { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-bottom: 24px; }
.ib-stat-cards-sm { grid-template-columns: repeat(4,1fr); }
.ib-stat-card {
    background: var(--ib-card);
    border: 1px solid var(--ib-border);
    border-radius: var(--ib-radius-lg); padding: 24px;
    display: flex; align-items: center; gap: 16px;
    transition: var(--ib-transition);
    position: relative; overflow: hidden;
}
.ib-stat-card::after {
    content: ''; position: absolute; top: -20px; right: -20px;
    width: 80px; height: 80px; border-radius: 50%;
    opacity: .05; pointer-events: none;
}
.ib-stat-card:nth-child(1)::after { background: #667eea; }
.ib-stat-card:nth-child(2)::after { background: var(--ib-gold); }
.ib-stat-card:nth-child(3)::after { background: var(--ib-green); }
.ib-stat-card:nth-child(4)::after { background: #e74c3c; }
.ib-stat-card:hover { border-color: var(--ib-border-lt); transform: translateY(-2px); box-shadow: var(--ib-shadow); }
.ib-stat-icon {
    width: 52px; height: 52px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: #fff; flex-shrink: 0;
}
.ib-stat-info { display: flex; flex-direction: column; gap: 4px; }
.ib-stat-value { font-size: 24px; font-weight: 700; color: var(--ib-text); }
.ib-stat-label { font-size: 13px; color: var(--ib-text-light); }

/* === 卡片 === */
.ib-card {
    background: var(--ib-card);
    border: 1px solid var(--ib-border);
    border-radius: var(--ib-radius-lg);
    margin-bottom: 24px; overflow: hidden;
    position: relative;
}
.ib-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201,164,75,.15), transparent);
    pointer-events: none;
}
.ib-card-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--ib-border);
    display: flex; align-items: center; justify-content: space-between;
}
.ib-card-header h3 { margin: 0; font-size: 16px; color: var(--ib-text); font-weight: 600; }
.ib-card-header h3 i { color: var(--ib-gold); margin-right: 8px; }
.ib-card-body { padding: 24px; }
.ib-card-body.ib-no-padding { padding: 0; }
.ib-badge {
    padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600;
    background: rgba(201,164,75,.12); color: var(--ib-gold); border: 1px solid rgba(201,164,75,.2);
}
.ib-badge-level { background: linear-gradient(135deg,rgba(201,164,75,.15),rgba(201,164,75,.04)); }

/* === 等级卡片 === */
.ib-level-cards {
    display: flex; gap: 12px;
    overflow-x: auto; padding: 4px 0;
    margin-bottom: 20px;
}
.ib-level-card {
    flex: 1; min-width: 100px;
    background: rgba(255,255,255,.02);
    border: 1px solid var(--ib-border);
    border-radius: var(--ib-radius);
    padding: 16px 10px; text-align: center;
    opacity: .35; transition: all .3s ease;
    position: relative; overflow: hidden;
}
.ib-level-card:hover { opacity: .55; }
.ib-level-card.reached {
    opacity: .65;
    border-color: rgba(201,164,75,.25);
    background: rgba(201,164,75,.04);
}
.ib-level-card.active {
    opacity: 1;
    border-color: var(--ib-gold);
    background: linear-gradient(180deg, rgba(201,164,75,.1) 0%, rgba(201,164,75,.02) 100%);
    box-shadow: 0 0 16px rgba(201,164,75,.1);
}
.ib-level-card.active::after {
    content: ''; position: absolute; inset: 0;
    border-radius: var(--ib-radius);
    border: 1px solid rgba(201,164,75,.4);
    pointer-events: none;
}
.ib-level-card-icon { font-size: 28px; margin-bottom: 6px; }
.ib-level-card-name { font-size: 12px; font-weight: 600; color: var(--ib-text-light); margin-bottom: 4px; white-space: nowrap; }
.ib-level-card-rate { font-size: 13px; font-weight: 700; color: var(--ib-gold); margin-bottom: 4px; }
.ib-level-card-min { font-size: 10px; color: var(--ib-text-muted); }

/* 保留旧的 progress bar */
.ib-level-bar {
    height: 8px; background: rgba(255,255,255,.04); border-radius: 4px;
    overflow: hidden; margin-bottom: 14px;
}
.ib-level-bar-fill {
    height: 100%;
    background: linear-gradient(90deg,var(--ib-gold-dark),var(--ib-gold),var(--ib-gold-light));
    border-radius: 4px; transition: width .8s ease;
}
.ib-level-current {
    display: flex; justify-content: space-between; flex-wrap: wrap;
    gap: 8px 16px; font-size: 13px; color: var(--ib-text-light);
}
.ib-level-current strong { color: var(--ib-gold); }

/* === 快捷入口 === */
.ib-quick-actions { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 24px; }
.ib-quick-btn {
    background: var(--ib-card); border: 1px solid var(--ib-border);
    border-radius: var(--ib-radius); padding: 24px;
    text-align: center; text-decoration: none; color: var(--ib-text-light);
    transition: var(--ib-transition);
    display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.ib-quick-btn:hover {
    border-color: var(--ib-gold); color: var(--ib-gold);
    background: rgba(201,164,75,.05); transform: translateY(-2px); box-shadow: var(--ib-shadow);
}
.ib-quick-btn i { font-size: 26px; }
.ib-quick-btn span { font-size: 14px; font-weight: 600; }

/* === 推荐码卡片 === */
.ib-referral-code-card .ib-card-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--ib-navy) 0%, var(--ib-navy-light) 100%);
    border-radius: var(--ib-radius-lg);
    padding: 28px 32px;
}

.ib-refcode-label {
    display: block;
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    margin-bottom: 8px;
}
.ib-refcode-value {
    font-size: 36px;
    font-weight: 800;
    color: var(--ib-gold);
    letter-spacing: 6px;
    font-family: "Consolas", "Monaco", monospace;
}
.ib-refcode-tip {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
}

/* === 表格 === */
.ib-table-wrap { overflow-x: auto; }

.ib-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.ib-table thead { background: rgba(255,255,255,.02); }
.ib-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--ib-text-light);
    font-size: 13px;
    white-space: nowrap;
    border-bottom: 2px solid var(--ib-border);
}
.ib-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--ib-border);
    color: var(--ib-text);
}
.ib-table tbody tr { transition: var(--ib-transition); }
.ib-table tbody tr:hover { background: rgba(201,164,75,.05); }
.ib-table code {
    background: rgba(201,164,75,.08);
    color: var(--ib-gold-light);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: "Consolas","Monaco",monospace;
    font-size: 13px;
}

/* === 标签 === */
.ib-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}
.ib-tag-blue   { background: rgba(90,150,220,.15); color: #7db8e8; }
.ib-tag-green  { background: rgba(0,200,150,.12); color: #40d8aa; }
.ib-tag-orange { background: rgba(220,140,50,.15); color: #e0a860; }
.ib-tag-red    { background: rgba(240,80,80,.15); color: #f08080; }
.ib-tag-purple { background: rgba(150,100,200,.15); color: #b890d8; }

/* === 金额 === */
.ib-money { color: var(--ib-red); font-weight: 600; }

/* === 空状态 === */
.ib-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--ib-text-muted);
}
.ib-empty i { font-size: 56px; color: var(--ib-border); margin-bottom: 16px; display: block; }
.ib-empty p { font-size: 16px; margin: 0 0 8px; color: var(--ib-text-light); }
.ib-empty span { font-size: 13px; }

/* === 登录页面 === */
.ib-login-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f2440 0%, #1a3a5c 40%, #2d5f8a 100%);
    padding: 40px 20px;
}

.ib-login-container {
    display: flex;
    max-width: 1000px;
    width: 100%;
    min-height: 600px;
    border-radius: var(--ib-radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* 左侧品牌 */
.ib-login-brand {
    flex: 1;
    position: relative;
    background: linear-gradient(135deg, var(--ib-navy) 0%, var(--ib-navy-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    overflow: hidden;
}

.ib-login-brand-bg {
    position: absolute;
    inset: 0;
    opacity: 0.06;
    background:
        radial-gradient(circle at 20% 30%, var(--ib-gold) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, #fff 0%, transparent 30%),
        repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(255,255,255,0.03) 20px, rgba(255,255,255,0.03) 21px);
}

.ib-login-brand-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
}

.ib-login-logo { margin-bottom: 16px; }
.ib-login-logo-icon { font-size: 56px; }

.ib-login-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px;
    letter-spacing: 2px;
}

.ib-login-subtitle {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    margin: 0 0 36px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.ib-login-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 40px;
}

.ib-feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}
.ib-feature-icon { font-size: 18px; }

.ib-login-levels {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.ib-level-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.6);
}

/* 右侧表单 */
.ib-login-form-section {
    flex: 1;
    background: #111d32;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 48px;
}

.ib-login-form-header {
    margin-bottom: 32px;
}
.ib-login-form-header h2 {
    font-size: 24px;
    color: #fff;
    margin: 0 0 6px;
    font-weight: 700;
}
.ib-login-form-header p {
    color: var(--ib-text-light);
    margin: 0;
    font-size: 14px;
}

.ib-login-form { width: 100%; }

/* === 表单 === */
.ib-form-group { margin-bottom: 22px; }

.ib-form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ib-text-light);
    margin-bottom: 8px;
}
.ib-form-label i {
    color: var(--ib-gold);
    width: 16px;
    margin-right: 4px;
}

.ib-form-input {
    width: 100%;
    height: 46px;
    padding: 0 16px;
    border: 1px solid var(--ib-border);
    border-radius: 8px;
    font-size: 14px;
    color: var(--ib-text);
    background: rgba(255,255,255,.03);
    transition: var(--ib-transition);
    outline: none;
}
.ib-form-input:focus {
    border-color: var(--ib-gold);
    background: rgba(255,255,255,.05);
    box-shadow: 0 0 0 3px rgba(201,164,75,.08);
}
.ib-form-input::placeholder { color: var(--ib-text-muted); }
.ib-form-input:disabled { opacity: .5; cursor: not-allowed; }

/* select 下拉菜单深色主题 */
select.ib-form-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238899aa' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}
select.ib-form-input option {
    background: #111d32;
    color: #dde4ed;
}

.ib-form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 自定义复选框 */
.ib-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--ib-text-light);
    cursor: pointer;
}
.ib-checkbox-label input { display: none; }
.ib-checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid var(--ib-border);
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--ib-transition);
}
.ib-checkbox-label input:checked + .ib-checkbox-custom {
    background: var(--ib-gold);
    border-color: var(--ib-gold);
}
.ib-checkbox-label input:checked + .ib-checkbox-custom::after {
    content: '\2713';
    color: #111d32;
    font-size: 12px;
    font-weight: 700;
}

.ib-forgot-link {
    font-size: 13px;
    color: var(--ib-text-light);
    text-decoration: none;
    transition: var(--ib-transition);
}
.ib-forgot-link:hover { color: var(--ib-gold); }

/* === 按钮 === */
.ib-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 46px;
    padding: 0 28px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--ib-transition);
    text-decoration: none;
    outline: none;
}
.ib-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ib-btn-block { width: 100%; }

.ib-btn-primary {
    background: linear-gradient(135deg,var(--ib-navy),var(--ib-navy-light));
    color: #fff; border: 1px solid rgba(255,255,255,.08);
}
.ib-btn-primary:hover:not(:disabled) {
    box-shadow: 0 4px 16px rgba(26,58,92,.5); transform: translateY(-1px);
}
.ib-btn-outline {
    background: transparent; color: var(--ib-text-light);
    border: 1px solid var(--ib-border);
}
.ib-btn-outline:hover { border-color: var(--ib-gold); color: var(--ib-gold); background: rgba(201,164,75,.04); }
.ib-btn-gold {
    background: linear-gradient(135deg,var(--ib-gold),var(--ib-gold-dark));
    color: #1a1a1a; font-size: 16px; height: 50px; border-radius: 10px;
    box-shadow: 0 4px 16px rgba(201,164,75,.25);
    font-weight: 700;
}
.ib-btn-gold:hover:not(:disabled) { box-shadow: 0 6px 24px rgba(201,164,75,.45); transform: translateY(-2px); }

/* 表单分隔线 */
.ib-form-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: var(--ib-text-muted);
    font-size: 13px;
}
.ib-form-divider::before,
.ib-form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--ib-border);
}
.ib-form-divider span { padding: 0 16px; }

/* === 提现卡片 === */
.ib-withdraw-card .ib-card-body { padding: 28px 32px; }

.ib-withdraw-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.ib-withdraw-condition h4 {
    margin: 0 0 12px;
    font-size: 14px;
    color: var(--ib-text);
}
.ib-withdraw-condition h4 i { color: var(--ib-gold); margin-right: 6px; }

.ib-withdraw-condition ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.ib-withdraw-condition li {
    padding: 6px 0;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ib-condition-met { color: var(--ib-green-dark); }
.ib-condition-met i { color: var(--ib-green); }
.ib-condition-pending { color: var(--ib-text-light); }
.ib-condition-pending i { color: var(--ib-text-muted); }
.ib-condition-hint { font-size: 12px; color: var(--ib-text-muted); }

/* === 页脚 === */
.ib-footer {
    background: #080e18; border-top: 1px solid #1a2a40;
    padding: 16px 0; position: relative; z-index: 1;
}
.ib-footer-inner {
    max-width: 1280px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
    font-size: 12px; color: var(--ib-text-muted);
}
.ib-footer-inner a { color: var(--ib-text-muted); text-decoration: none; }
.ib-footer-inner a:hover { color: var(--ib-gold); }
.ib-footer-divider { margin: 0 12px; }

/* === Layer弹窗深色主题 === */
body .layui-layer-title {
    background: #111d32 !important;
    color: #dde4ed !important;
    border-bottom: 1px solid #1e2d45 !important;
}
body .layui-layer {
    background: #111d32 !important;
    border: 1px solid #1e2d45 !important;
    box-shadow: 0 8px 32px rgba(0,0,0,.6) !important;
}
body .layui-layer-setwin .layui-layer-close {
    color: #8899aa !important;
}
body .layui-layer-setwin .layui-layer-close:hover {
    color: #c9a44b !important;
}
body .layui-layer-btn .layui-layer-btn0 {
    background: linear-gradient(135deg,#c9a44b,#b8860b) !important;
    border-color: #c9a44b !important;
    color: #1a1a1a !important;
}
body .layui-layer-btn a {
    background: rgba(255,255,255,.04) !important;
    border-color: #1e2d45 !important;
    color: #8899aa !important;
}
body .layui-layer-btn a:hover {
    color: #c9a44b !important;
    border-color: #c9a44b !important;
}
body .layui-layer-content {
    color: #dde4ed !important;
}
body .layui-layer-dialog .layui-layer-content {
    padding: 20px 20px 10px !important;
}
body .layui-layer-dialog .layui-layer-content .layui-layer-ico {
    background-color: transparent !important;
    border: 2px solid #c9a44b !important;
    color: #c9a44b !important;
    border-radius: 50%;
}
body .layui-layer-dialog .layui-layer-content .layui-layer-ico::before {
    color: #c9a44b !important;
}
body .layui-layer-dialog .layui-layer-padding {
    color: #8899aa !important;
    font-size: 14px;
}
body .layui-layer-dialog .layui-layer-btn0 {
    background: linear-gradient(135deg,#c9a44b,#b8860b) !important;
    border-color: #c9a44b !important;
    color: #1a1a1a !important;
}
body .layui-layer-dialog .layui-layer-btn1 {
    background: rgba(255,255,255,.04) !important;
    border-color: #1e2d45 !important;
    color: #8899aa !important;
}

/* === 分页暗色主题 === */
.pagination {
    display: flex; gap: 4px; justify-content: center; margin-top: 20px;
}
.pagination > li { display: inline-block; }
.pagination > li > a,
.pagination > li > span {
    display: block; padding: 8px 14px;
    background: rgba(255,255,255,.03); border: 1px solid var(--ib-border);
    border-radius: 6px; color: var(--ib-text-light); font-size: 13px;
    text-decoration: none; transition: var(--ib-transition);
}
.pagination > li > a:hover {
    background: rgba(201,164,75,.08); border-color: var(--ib-gold); color: var(--ib-gold);
}
.pagination > .active > span {
    background: linear-gradient(135deg,var(--ib-gold),var(--ib-gold-dark));
    border-color: var(--ib-gold); color: #1a1a1a; font-weight: 700;
}
.pagination > .disabled > span {
    opacity: .3; cursor: not-allowed;
}

/* === 响应式 === */
@media (max-width: 900px) {
    .ib-login-container { flex-direction: column; max-width: 440px; }
    .ib-login-brand { padding: 36px 32px; }
    .ib-login-form-section { padding: 36px 32px; }
    .ib-login-features { grid-template-columns: repeat(2,1fr); }
    .ib-stat-cards { grid-template-columns: repeat(2,1fr); }
    .ib-quick-actions { grid-template-columns: repeat(2,1fr); }
    .ib-page { padding: 16px; }
    .ib-referral-code-card .ib-card-body { flex-direction: column; gap: 16px; text-align: center; padding: 24px; }
    .ib-refcode-value { font-size: 24px; }
    .ib-withdraw-info { flex-direction: column; gap: 20px; }
    .ib-level-cards { gap: 8px; }
    .ib-level-card { min-width: 80px; padding: 12px 6px; }
    .ib-level-card-icon { font-size: 22px; }
    .ib-level-card-name { font-size: 10px; }
    .ib-level-card-rate { font-size: 11px; }
    .ib-level-card-min { font-size: 9px; }
}

@media (max-width: 600px) {
    .ib-form-row-2 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .ib-stat-cards { grid-template-columns: 1fr; }
    .ib-quick-actions { grid-template-columns: 1fr 1fr; }
    .ib-brand-slogan { display: none; }
}

/* === 个人资料页 === */
.ib-profile-avatar { text-align: center; margin-bottom: 28px; }
.ib-avatar-wrap {
    position: relative; display: inline-block;
    width: 100px; height: 100px; border-radius: 50%; overflow: hidden;
    border: 3px solid var(--ib-gold); cursor: pointer;
}
.ib-avatar-img { width: 100%; height: 100%; object-fit: cover; }
.ib-avatar-overlay {
    display: none; position: absolute; inset: 0;
    background: rgba(10,22,40,.7); color: #fff; font-size: 13px;
    line-height: 100px; text-align: center;
}
.ib-avatar-wrap:hover .ib-avatar-overlay { display: block; }
.ib-avatar-wrap button { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.ib-form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ib-input-with-btn { display: flex; gap: 8px; }
.ib-input-with-btn .ib-form-input { flex: 1; }
.ib-btn-sm { height: 38px; padding: 0 16px; font-size: 13px; white-space: nowrap; }
.ib-form-actions {
    display: flex; gap: 12px; margin-top: 28px;
    padding-top: 20px; border-top: 1px solid var(--ib-border);
}

@media (max-width: 600px) {
    .ib-form-row-2 { grid-template-columns: 1fr; }
}
