:root {
    --bg: #101318;
    --surface: #191e25;
    --ink: #edf2f6;
    --ink-soft: #c1cad3;
    --muted: #7c8795;
    --border: #2a313b;
    --accent: #b9ee70;
    --accent-hover: #d0fa9a;
    --accent-soft: #263321;
    --accent-ink: #b9ee70;
    --danger: #f28d8d;
    --font: 'Inter','PingFang SC','Microsoft YaHei',sans-serif;
    --radius: 18px;
    --radius-sm: 9px;
    --shadow: none;
}

* {
    box-sizing: border-box;
}

html,body {
    margin: 0;
    padding: 0;
    color: var(--ink);
    background: var(--bg);
    font-family: var(--font);
    font-size: 14px;
}

button,input,select,textarea {
    font: inherit;
}

button,a {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,a:focus-visible,summary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

.hidden {
    display: none!important;
}

.layout {
    display: flex;
    flex-direction: row;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
}

.sidebar {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex: 0 0 112px;
    width: 112px;
    min-width: 112px;
    height: 100%;
    max-height: 100%;
    background: #171b21;
    border: 0;
    border-right: 1px solid #252c35;
    color: var(--ink);
    z-index: 30;
    overflow: hidden;
}

.sidebar .title {
    padding: 25px 8px 20px;
    height: auto;
    min-height: 0;
    border: 0;
    text-align: center;
}

.sidebar .brand-name,.sidebar .title h2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 600;
    color: #e5edf3;
    letter-spacing: .12em;
    margin: 0;
}

.sidebar .brand-name::before {
    content: '';
    display: grid;
    place-items: center;
    width: 64px;
    height: 58px;
    background: url('../../images2/app_icon_round.png') center / contain no-repeat;
    color: #1f2b1c;
    font-size: 27px;
    font-weight: 800;
    border-radius: 14px;
    letter-spacing: -.06em;
}

.sidebar .brand-symbol,.sidebar .brand-sub {
    display: none;
}

.sidebar .nav {
    display: block;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 4px 12px;
    margin: 0;
    list-style: none;
    scrollbar-width: thin;
}

.sidebar .nav ul {
    display: block;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar .nav li {
    margin: 0 0 8px;
    min-width: 0;
}

.sidebar .nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    padding: 15px 5px;
    color: #758190;
    text-decoration: none;
    border-radius: 13px;
    font-size: 10px;
    font-weight: 400;
    white-space: nowrap;
    background: transparent;
    box-shadow: none;
    transition: background .15s,color .15s;
}

.sidebar .nav a::before {
    content: '▦';
    font-size: 23px;
    line-height: 1;
    font-weight: 400;
}

.sidebar .nav a[data-target='agent-management']::before {
    content: '◇';
}

.sidebar .nav a[data-target='orders']::before {
    content: '▤';
}

.sidebar .nav a[data-target='players']::before {
    content: '♙';
}

.sidebar .nav a[data-target='wallet']::before {
    content: '▣';
}

.sidebar .nav a[data-target='profile']::before {
    content: '⚙';
}

.sidebar .nav li.active>a,.sidebar .nav a:hover {
    color: var(--accent);
    background: #263122;
    box-shadow: none;
}

.sidebar .nav-logout {
    display: none;
}

.sidebar .user-foot,.sidebar .logout {
    padding: 15px 8px;
    margin-top: auto;
    border: 0;
    background: transparent;
    flex: none;
}

.sidebar .welcome-text {
    display: none;
}

.sidebar #btnLogoutFoot,.sidebar .logout .btn {
    width: 100%;
    min-height: 34px;
    font-size: 9px;
    padding: 8px 2px;
    border: 1px solid #313945;
    color: #8894a2;
    border-radius: 9px;
    background: transparent;
    box-shadow: none;
}

.sidebar #btnLogoutFoot:hover,.sidebar .logout .btn:hover {
    background: #242c36;
    color: #fff;
    transform: none;
}

.content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
    margin-left: 0;
    background: #101318;
}

.workspace-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 30px;
    min-height: 72px;
    flex: none;
    border-bottom: 1px solid #242b34;
    font-size: 11px;
    background: #101318;
}

.workspace-brand {
    font-weight: 600;
    color: #c6d0db;
}

.workspace-divider {
    margin: 0 12px;
    color: #3c4756;
}

#workspacePage {
    color: #798696;
}

.workspace-account {
    font-size: 10px;
    color: #8a96a5;
    border: 1px solid #303844;
    padding: 8px 12px;
    border-radius: 30px;
}

.content-body {
    padding: 28px 30px 36px;
    flex: 1;
    min-width: 0;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
}

#view-overview {
    display: grid;
    grid-template-columns: minmax(0,1fr) 310px;
    gap: 22px;
    max-width: 1500px;
    margin: 0 auto;
}

.dashboard-header {
    grid-column: 1/-1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 3px;
}

.section-kicker {
    font-size: 10px;
    color: #727f8e;
    letter-spacing: .08em;
    margin: 0 0 9px;
    font-weight: 400;
}

.dashboard-header h3 {
    font-size: 29px;
    font-weight: 600;
    letter-spacing: -.04em;
    margin: 0;
    color: #eef3f7;
}

.account-tag {
    font-size: 11px;
    color: #81909d;
}

.overview-layout {
    display: contents;
}

.perf-main {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
    min-height: 0;
    background: #191e25;
    border: 1px solid #2a313b;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: none;
}

.perf-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 25px 26px 18px;
    border: 0;
    background: transparent;
}

.perf-top h4 {
    font-size: 20px;
    font-weight: 500;
    margin: 0;
    color: var(--ink);
}

.perf-top .totals {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

#perfTotal,#perfAvg {
    font-size: 11px;
    font-weight: 400;
    background: transparent;
    padding: 0;
    border-radius: 0;
    color: #818d9c;
}

#perfTotal {
    color: #c6f394;
    font-size: 15px;
}

.perf-body {
    display: block;
}

.perf-filters {
    padding: 0 26px 10px;
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 12px;
    border: 0;
    background: transparent;
    align-items: center;
}

.perf-filters .filter-label {
    display: none;
}

.quick-range {
    display: flex;
    grid-column: 1/-1;
    gap: 5px;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 4px;
    background: #11161c;
    border-radius: 10px;
    margin: 0;
}

.quick-range .btn {
    flex: 1;
    width: auto;
    min-height: 30px;
    padding: 7px 8px;
    border: 0;
    border-radius: 7px;
    box-shadow: none;
    background: transparent;
    color: #748293;
    font-size: 10px;
    font-weight: 400;
}

.quick-range .btn.is-active,.quick-range .btn:hover {
    background: #303c2a;
    color: #c5f391;
    box-shadow: none;
}

.custom-range {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.custom-range span {
    display: inline;
    color: #687585;
    font-size: 10px;
}

.custom-range input[type='date'] {
    flex: 1;
    width: 0;
    min-width: 0;
    min-height: 34px;
    border: 1px solid #303945;
    border-radius: 7px;
    padding: 8px 9px;
    background: #161b22;
    color: #9aa9b7;
    font-size: 10px;
    color-scheme: dark;
}

#btnPerfSearch {
    width: auto;
    min-height: 34px;
    margin: 0;
    padding: 7px 12px;
    font-size: 10px;
}

.performance-chart {
    position: relative;
    min-width: 0;
    padding: 0 16px;
    margin: 8px 0 14px;
}

#performanceChart {
    display: block;
    width: 100%;
    height: 260px;
}

#chartStatus {
    position: absolute;
    left: 60px;
    right: 20px;
    top: 40%;
    margin: 0;
    text-align: center;
    color: #7f8e9e;
    font-size: 11px;
    pointer-events: none;
}

#chartStatus:empty {
    display: none;
}

.daily-details {
    padding: 0 26px 18px;
    border-top: 1px solid #29313b;
}

.daily-details>summary {
    display: flex;
    justify-content: space-between;
    padding: 17px 0 0;
    cursor: pointer;
    font-size: 11px;
    color: #91a0af;
    list-style: none;
}

.daily-details>summary::-webkit-details-marker {
    display: none;
}

.daily-details[open]>summary {
    margin-bottom: 16px;
}

.perf-table-wrap {
    padding: 0;
    overflow: auto;
}

.business-summary {
    grid-column: 2;
    grid-row: 2;
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 18px;
    background: transparent;
    color: var(--ink);
}

.summary-main,.summary-balance {
    border-radius: 18px;
    padding: 27px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    min-height: 210px;
    position: relative;
    overflow: hidden;
}

.summary-main {
    background: #b9ee70;
    color: #27381c;
    border: 1px solid #c3f385;
}

.summary-main p,.summary-balance p {
    font-size: 11px;
    font-weight: 400;
    margin: 0 0 14px;
}

.summary-main p {
    color: #5c763e;
}

.summary-main strong {
    font-size: 45px;
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: -.05em;
    overflow-wrap: anywhere;
}

.summary-icon {
    display: grid;
    place-items: center;
    width: 39px;
    height: 39px;
    border: 1px solid #5b7a4040;
    border-radius: 50%;
    font-size: 23px;
    margin-bottom: 20px;
}

.summary-balance {
    background: radial-gradient(ellipse at 100% 0,#343a56,transparent 80%),#222838;
    border: 1px solid #3a4051;
}

.summary-balance p {
    color: #8d9ab2;
}

.summary-balance strong {
    font-size: 40px;
    font-weight: 500;
    line-height: 1.2;
    color: #e8edf9;
    letter-spacing: -.05em;
    overflow-wrap: anywhere;
}

.overview-shortcuts {
    margin-top: 25px;
}

.overview-shortcuts button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border: 0;
    border-top: 1px solid #485269;
    background: transparent;
    color: #a5b2cb;
    font-size: 11px;
    padding: 15px 0 0;
}

.overview-shortcuts button:hover {
    color: white;
}

.metrics-rail {
    grid-column: 1/-1;
    grid-row: 3;
    position: static;
    margin: 0;
    border: 0;
    background: transparent;
}

.stats-grid,.stats-grid.agent-layout {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 16px;
    margin: 0;
}

.stats-grid.agent-layout {
    grid-template-columns: repeat(2,minmax(0,1fr));
}

.stat-card {
    border: 1px solid #29323b;
    border-radius: 14px;
    background: #171d24;
    box-shadow: none;
    padding: 0;
    overflow: hidden;
}

.stat-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 23px;
    background: transparent;
}

.stat-content h4 {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0;
    color: #7c8998;
    margin: 0;
    max-width: none;
}

.stat-value {
    font-size: 31px;
    font-weight: 500;
    color: #dde5eb;
    line-height: 1;
    letter-spacing: -.04em;
    text-align: right;
    overflow-wrap: anywhere;
}

.reward-card {
    grid-column: 1/-1;
    grid-row: 4;
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 26px;
    border: 1px solid #2a333c;
    border-radius: 18px;
    background: #191e25;
    box-shadow: none;
    margin: 0;
    overflow: hidden;
    min-width: 0;
    padding: 27px;
}

.reward-top {
    display: block;
    position: relative;
    border: 0;
    padding: 0;
    background: transparent;
}

.reward-top h4 {
    font-size: 21px;
    color: var(--ink);
    font-weight: 500;
    margin: 0;
}

.reward-top p:not(.section-kicker) {
    font-size: 11px;
    line-height: 1.9;
    color: #6e7c8a;
    margin: 16px 0 0;
    max-width: 350px;
}

.reward-rate {
    display: inline-block;
    position: static;
    margin-top: 18px;
    padding: 6px 10px;
    background: #263424;
    color: #a5d67a;
    font-size: 11px;
    font-weight: 400;
    border-radius: 6px;
    box-shadow: none;
    min-width: 0;
}

.reward-body {
    display: block;
    min-width: 0;
}

.reward-stats {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 14px;
    padding: 0;
}

.reward-stat {
    background: #141a21;
    padding: 15px;
    border-radius: 9px;
    min-width: 0;
}

.reward-stat label {
    display: block;
    font-size: 10px;
    font-weight: 400;
    margin: 0 0 10px;
    color: #667585;
}

.reward-stat strong {
    display: block;
    font-size: 19px;
    font-weight: 500;
    color: #c6d3df;
    overflow-wrap: anywhere;
    margin: 0;
    line-height: 1.4;
}

.reward-form {
    padding: 18px 0 0;
    border: 0;
    background: transparent;
}

.reward-form .form-row {
    display: flex;
    gap: 9px;
}

.reward-form input {
    flex: 1;
    width: 0;
}

.reward-form .btn {
    flex: none;
    font-size: 11px;
}

.reward-form .hint {
    font-size: 10px;
    line-height: 1.9;
    margin: 10px 0 0;
    color: #657383;
}

.reward-logs {
    padding: 0;
    margin-top: 12px;
}

.reward-logs summary {
    font-size: 10px;
    color: #8b9aa8;
    padding: 10px 0;
    cursor: pointer;
}

.reward-logs .table {
    min-width: 440px;
}

.orders-table,.agents-table,.players-table,.transactions-table,.table-container {
    background: #171d24;
    border: 1px solid #2c3641;
    border-radius: 12px;
    box-shadow: none;
    padding: 0;
    max-width: 100%;
    overflow-x: auto;
}

.table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
}

.table th,.orders-table .table th {
    background: #202833;
    color: #8090a2;
    font-weight: 400;
    font-size: 11px;
    padding: 15px 18px;
    border-bottom: 1px solid #303b48;
    white-space: nowrap;
    text-align: left;
    letter-spacing: 0;
}

.table td,.orders-table .table td {
    padding: 15px 18px;
    color: #a2b0be;
    font-size: 12px;
    border-bottom: 1px solid #26313c;
    font-variant-numeric: tabular-nums;
}

.table tr:last-child td {
    border-bottom: 0;
}

.table tbody tr:hover,.orders-table .table tbody tr:hover {
    background: #202a34;
}

.btn,.btn-primary,.btn-withdraw {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 9px 16px;
    border: 1px solid #b9ee70;
    border-radius: 8px;
    background: #b9ee70;
    color: #293c1c;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0;
    box-shadow: none;
}

.btn:hover,.btn-primary:hover,.btn-withdraw:hover {
    background: #d0fa9a;
    color: #263b18;
    border-color: #d0fa9a;
    box-shadow: none;
    filter: none;
    transform: none;
}

.btn:active {
    box-shadow: none;
    transform: none;
}

.btn-secondary,.btn-outline,.header-search #resetBtn,.toolbar-search #resetBtn {
    background: #222c36;
    color: #a3b0c0;
    border: 1px solid #3b4958;
    box-shadow: none;
}

.btn-danger {
    background: #382525;
    color: #eb9c91;
    border-color: #62413c;
}

.btn:disabled {
    opacity: .5;
    box-shadow: none;
    cursor: not-allowed;
}

input:not([type='radio']):not([type='checkbox']),select,textarea {
    min-width: 0;
    max-width: 100%;
    padding: 11px 13px;
    border: 1px solid #364353;
    border-radius: 8px;
    background: #141b24;
    color: #c3cfda;
    font-size: 13px;
    box-shadow: none;
    color-scheme: dark;
}

input::placeholder {
    color: #5e6e7e;
}

input:focus,select:focus,textarea:focus {
    border-color: #8cac68!important;
    outline: none;
    box-shadow: 0 0 0 3px #b9ee700a!important;
}

.content-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    height: auto;
    min-height: 98px;
    padding: 25px 30px;
    border: 0;
    border-bottom: 1px solid #28313b;
    box-shadow: none;
    background: transparent;
    flex-shrink: 0;
}

.content-header h3 {
    font-size: 27px;
    font-weight: 500;
    letter-spacing: -.03em;
    color: var(--ink);
    margin: 0;
}

.content-header p {
    font-size: 11px;
    color: #68798a;
    margin: 9px 0 0;
}

.header-search,.toolbar-search {
    min-width: 0;
}

.card,.wallet-card,.profile-card,.add-agent-form,.panel,.recent-orders {
    border: 1px solid #2c3743;
    border-radius: 15px;
    background: #191f27;
    box-shadow: none;
}

.card::before,.wallet-card::before,.profile-card::before,.add-agent-form::before,.agents-table::before,.orders-table::before,.players-table::before {
    display: none;
}

.profile-card h4,.wallet-card h4 {
    color: var(--ink);
    font-size: 20px;
    font-weight: 500;
}

body:not(.first-login-mode) .profile-cards {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 22px;
}

body:not(.first-login-mode) .profile-card:not(.first-login-form) {
    display: block;
    padding: 25px;
}

.profile-information .info-label {
    font-size: 12px;
    font-weight: 400;
    color: #6f8294;
}

.profile-information .info-value {
    font-size: 13px;
    color: #b5c3ce;
}

.profile-card .info-item {
    border-color: #293747;
}

.profile-card .form-group label {
    color: #8092a4;
    font-size: 12px;
    font-weight: 400;
}

.profile-card .form-section {
    background: #141b23;
    border-color: #2b3846;
}

.profile-card .form-section h5 {
    color: #a0b4c6;
}

.agent-management-content {
    display: grid;
    grid-template-columns: minmax(0,1fr) 300px;
    gap: 22px;
    align-items: start;
}

.agent-management-content .add-agent-form {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    background: #1d2730;
}

.agent-management-content .agents-table {
    grid-column: 1;
    grid-row: 1;
}

.agent-management-content #addAgentForm>div {
    flex-basis: 100%!important;
}

.agent-management-content #addAgentForm label {
    color: #8092a4;
    font-size: 12px;
}

.agent-management-content .no-permission {
    grid-column: 1/-1;
}

.content-body:has(>.wallet-hero) {
    display: grid;
    grid-template-columns: minmax(0,1.3fr) minmax(0,1fr);
    gap: 22px;
    grid-template-rows: auto auto auto;
    align-content: start;
}

.content-body>.wallet-hero {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: radial-gradient(ellipse at 90% 0,#384943,transparent 80%),#25352a;
    color: #d4eecc;
    border: 1px solid #435e44;
    border-radius: 18px;
    padding: 30px;
    min-height: 190px;
    box-shadow: none;
}

.wallet-hero .hero-label {
    color: #93b18a;
}

.wallet-hero .wallet-amount {
    color: #d1f0bc;
    font-size: 44px;
    font-weight: 500;
}

.content-body>.wallet-cards {
    display: block;
    margin: 0;
    min-width: 0;
}

.content-body>.wallet-cards:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}

.content-body>.wallet-cards:nth-child(3) {
    grid-column: 1/-1;
    grid-row: 2;
}

.content-body>.wallet-cards:last-child {
    grid-column: 1/-1;
    grid-row: 3;
}

.content-body>.wallet-cards .wallet-card {
    height: 100%;
}

.wallet-card .wallet-amount {
    color: #a5b7cc;
    font-size: 34px;
    font-weight: 500;
}

.wallet-card .record-item {
    background: #151e27;
    border-color: #2b3948;
}

.wallet-card .rec-remark {
    color: #7e92a4;
}

body.embed-iframe .sidebar {
    display: none!important;
}

body.embed-iframe .layout {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
}

body.embed-iframe .content {
    margin-left: 0;
}

body.embed-iframe .content-header {
    padding: 25px 30px;
}

body.embed-iframe .content-body {
    padding: 28px 30px;
}

.content-body.iframe-mode {
    padding: 0;
    overflow: hidden;
}

.iframe-container {
    min-height: 0;
    width: 100%;
    border: 0;
}

.iframe-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.iframe-container.loading iframe {
    opacity: 0;
}

.frame-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #101318;
    color: #708497;
    z-index: 5;
}

.first-login-mode .content {
    padding: 0;
    max-width: none;
}

.first-login-mode .content-body {
    display: block;
    min-height: 0;
    overflow: auto;
}

.first-login-mode .profile-card.first-login-form {
    margin: 0 auto;
}

.agency-page .dashboard {
    background: #101318;
}

.agency-page .cards {
    grid-template-columns: repeat(3,minmax(0,1fr));
}

.agency-page .card-title {
    color: #8395a6;
}

.agency-page .card-value {
    color: #d5e2ec;
}

.agency-page .section,.agency-page .balance-card,.agency-page .form-card {
    background: #191f27;
    border: 1px solid #2b3745;
    border-radius: 14px;
    padding: 24px;
    color: var(--ink);
}

.layui-laypage a,.layui-laypage span {
    background: #1c2630;
    color: #8395a8;
    border-color: #344252;
}

.layui-laypage .layui-laypage-curr .layui-laypage-em {
    background: #6a9050;
}

.layui-layer {
    max-width: calc(100vw - 24px);
    border-radius: 12px!important;
    background: #202a34!important;
    color: #b7c7d4;
}

.layui-layer-title {
    background: #26333e!important;
    color: #c4d4de!important;
    border-color: #3a4958!important;
}

.layui-layer-btn .layui-layer-btn0 {
    background: #b9ee70;
    border-color: #b9ee70;
    color: #263c1a;
}

/* Full-screen sign-in composition */
.agency-login {
    min-height: 100vh;
    background: #0e131a;
}

.agency-login .login-container {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0,1.1fr) minmax(360px,.9fr);
    grid-template-rows: auto 1fr auto;
    gap: 0;
    min-height: 100vh;
    min-height: 100svh;
    padding: 0 6%;
    background: radial-gradient(ellipse at 24% 53%,#203647 0,transparent 55%),#0d131a;
    overflow: hidden;
}

.agency-login .login-brand {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    grid-column: 1/-1;
    padding: 30px 0;
    background: transparent;
    z-index: 2;
    min-height: 0;
}

.agency-login .login-brand::before {
    display: none;
}

.agency-login .brand-mark {
    display: flex;
    align-items: center;
    gap: 18px;
}

.agency-login .brand-mark .name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 23px;
    font-weight: 600;
    color: #e4edf6;
    letter-spacing: 0;
    margin: 0;
}

.brand-symbol {
    display: inline-grid;
    place-items: center;
    width: 60px;
    height: 52px;
    background: url('../../images2/app_icon_round.png') center / contain no-repeat;
    border-radius: 12px;
    font-weight: 800;
    font-size: 26px;
    color: #24351b;
}

.agency-login .brand-mark .tag {
    font-size: 11px;
    color: #586b7d;
    letter-spacing: .1em;
    margin: 0;
}

.login-brand-note {
    font-size: 10px;
    letter-spacing: .12em;
    color: #52697c;
    margin: 0;
}

.login-intro {
    position: relative;
    align-self: center;
    padding: 65px 20px 90px 5%;
    min-width: 0;
    z-index: 1;
}

.login-intro>p {
    font-size: 13px;
    color: #738fa5;
    margin: 0 0 22px;
    letter-spacing: .12em;
    position: relative;
}

.login-intro h2 {
    font-size: clamp(40px,5.2vw,76px);
    line-height: 1.4;
    font-weight: 500;
    letter-spacing: -.05em;
    color: #e3edf4;
    margin: 0;
    position: relative;
}

.login-intro h2 span {
    color: #b9ee70;
}

.intro-orbit {
    position: absolute;
    top: 50%;
    left: 0;
    width: 450px;
    height: 450px;
    border: 1px solid #38576d70;
    border-radius: 50%;
    transform: translate(-10%,-50%) rotate(-30deg);
    box-shadow: 0 0 0 50px #38576d09,0 0 0 100px #38576d06;
    pointer-events: none;
}

.intro-orbit::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    background: #b9ee70;
    border-radius: 50%;
    top: 13%;
    right: 10%;
    box-shadow: 0 0 40px #b9ee7070;
}

.login-capabilities {
    display: flex;
    gap: 22px;
    margin-top: 35px;
    color: #68869b;
    font-size: 11px;
    position: relative;
}

.login-capabilities span {
    border-bottom: 1px solid #375062;
    padding-bottom: 8px;
}

.agency-login .login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 40px 0 65px 20px;
    background: transparent;
    z-index: 2;
}

.agency-login .login-box {
    width: 410px;
    max-width: 100%;
    padding: 39px 35px;
    background: #1b2530e8;
    border: 1px solid #344656;
    border-radius: 23px;
    box-shadow: 0 35px 90px #0003;
}


.agency-login .login-title {
    font-size: 29px;
    font-weight: 500;
    letter-spacing: -.03em;
    color: #e6eef5;
    margin: 0 0 14px;
    line-height: 1.3;
}

.agency-login .login-desc {
    font-size: 11px;
    color: #6c8295;
    line-height: 1.8;
    margin: 0 0 32px;
}

.agency-login .form-group {
    position: relative;
    margin-bottom: 22px;
}

.agency-login .form-group label {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: #8aa0b3;
    margin: 0 0 10px;
}

.agency-login .form-control {
    width: 100%;
    min-height: 49px;
    padding: 12px 14px;
    border: 1px solid #3a4b5e;
    border-radius: 9px;
    background: #141e29;
    color: #c6d8e6;
    font-size: 16px;
}

.agency-login .password-field input {
    padding-right: 56px;
}

.password-toggle {
    position: absolute;
    bottom: 10px;
    right: 9px;
    min-height: 29px;
    padding: 3px 8px;
    color: #7d97aa;
    background: #243442;
    border: 0;
    border-radius: 6px;
    font-size: 10px;
    cursor: pointer;
}

.agency-login .btn-login {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 48px;
    margin-top: 30px;
    padding: 0 18px;
    background: #b9ee70;
    border: 0;
    border-radius: 9px;
    color: #2d401e;
    font-size: 12px;
    font-weight: 600;
    box-shadow: none;
    cursor: pointer;
}

.agency-login .btn-login:hover {
    background: #d0fa9a;
}

.agency-login .btn-login:disabled {
    opacity: .5;
    cursor: wait;
}

.error-message {
    color: #ed9f95;
    font-size: 11px;
    line-height: 1.7;
    margin-top: 9px;
    display: none;
}

.loading {
    display: none;
    text-align: center;
    color: #8ca1b4;
    font-size: 11px;
    margin-top: 14px;
}

.flash {
    display: none;
    margin-bottom: 18px;
    padding: 12px;
    background: #283b35;
    border: 1px solid #465e4a;
    border-radius: 9px;
    color: #b0d6a0;
    font-size: 12px;
}

.login-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    grid-column: 1/-1;
    padding: 20px 0 26px;
    border-top: 1px solid #273c4c;
    color: #455e73;
    font-size: 9px;
    z-index: 2;
    gap: 16px;
}

@media(max-width:1200px) {
    #view-overview {
        grid-template-columns: minmax(0,1fr) 270px;
        gap: 18px;
    }

    .summary-main,.summary-balance {
        padding: 23px;
    }

    .reward-card {
        gap: 22px;
    }

    .stat-content {
        padding: 20px;
    }

    .workspace-bar {
        padding: 0 24px;
    }

    .content-body {
        padding: 25px 24px;
    }

    .agent-management-content {
        grid-template-columns: minmax(0,1fr) 260px;
    }

}

@media(max-width:1000px) {
    .sidebar {
        flex-basis: 90px;
        width: 90px;
        min-width: 90px;
    }

    .sidebar .nav {
        padding: 4px 9px;
    }

    .sidebar .nav a {
        font-size: 9px;
    }

    .account-tag {
        display: none;
    }

    #view-overview {
        grid-template-columns: 1fr;
    }

    .business-summary {
        grid-column: 1;
        grid-row: 2;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .summary-main,.summary-balance {
        min-height: 185px;
    }

    .summary-main {
        flex-direction: row;
        align-items: center;
        gap: 18px;
    }

    .summary-icon {
        margin: 0;
    }

    .summary-main strong {
        font-size: 37px;
    }

    .summary-balance strong {
        font-size: 32px;
    }

    .perf-main {
        grid-column: 1;
        grid-row: 3;
    }

    .metrics-rail {
        grid-column: 1;
        grid-row: 4;
    }

    .reward-card {
        grid-column: 1;
        grid-row: 5;
        grid-template-columns: 1fr;
    }

    .reward-top p:not(.section-kicker) {
        max-width: none;
    }

    .reward-rate {
        position: absolute;
        right: 0;
        top: 0;
        margin: 0;
    }

    .stats-grid,.stats-grid.agent-layout {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .reward-top {
        padding-right: 85px;
    }

    .reward-stats {
        gap: 12px;
    }

    .agent-management-content {
        grid-template-columns: 1fr;
    }

    .agent-management-content .add-agent-form,.agent-management-content .agents-table {
        grid-column: auto;
        grid-row: auto;
    }

    .agent-management-content .add-agent-form {
        order: 1;
    }

    .agent-management-content .agents-table {
        order: 0;
    }

    .content-body:has(>.wallet-hero) {
        grid-template-columns: 1fr;
    }

    .content-body>.wallet-hero,.content-body>.wallet-cards:nth-child(2),.content-body>.wallet-cards:nth-child(3),.content-body>.wallet-cards:last-child {
        grid-column: auto;
        grid-row: auto;
    }

    .content-body>.wallet-hero {
        min-height: 180px;
    }

    .agency-login .login-container {
        padding: 0 4%;
        grid-template-columns: minmax(0,1fr) minmax(330px,1fr);
    }

    .login-intro {
        padding-left: 0;
    }

    .login-intro h2 {
        font-size: 47px;
    }

    .intro-orbit {
        width: 340px;
        height: 340px;
    }

    .agency-login .login-box {
        padding: 32px 26px;
    }

}

@media(max-width:640px) {
    .layout {
        flex-direction: column;
    }

    .sidebar {
        flex: none;
        width: 100%;
        min-width: 0;
        height: auto;
        max-height: none;
        overflow: visible;
        border: 0;
        border-bottom: 1px solid #2b3643;
        display: grid;
        grid-template-columns: 1fr auto;
    }

    .sidebar .title {
        padding: 15px 18px;
        grid-column: 1;
        grid-row: 1;
        text-align: left;
    }

    .sidebar .brand-name,.sidebar .title h2 {
        flex-direction: row;
        font-size: 16px;
        letter-spacing: 0;
    }

    .sidebar .brand-name::before {
        width: 45px;
        height: 39px;
        font-size: 20px;
        border-radius: 9px;
    }

    .sidebar .user-foot,.sidebar .logout {
        grid-column: 2;
        grid-row: 1;
        padding: 12px 18px;
    }

    .sidebar #btnLogoutFoot,.sidebar .logout .btn {
        padding: 6px 9px;
        min-height: 28px;
        font-size: 9px;
    }

    .sidebar .nav,.sidebar .nav ul {
        display: flex;
        gap: 4px;
        grid-column: 1/-1;
        grid-row: 2;
        min-width: 0;
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0 10px 10px;
        scrollbar-width: none;
    }

    .sidebar .nav ul {
        padding: 0;
    }

    .sidebar .nav li {
        flex: 1;
        margin: 0;
        min-width: 55px;
    }

    .sidebar .nav a {
        padding: 10px 5px;
        font-size: 9px;
        gap: 6px;
        border-radius: 10px;
    }

    .sidebar .nav a::before {
        font-size: 17px;
    }

    .workspace-bar {
        min-height: 39px;
        padding: 0 18px;
        font-size: 9px;
    }

    .workspace-account {
        display: none;
    }

    .content-body {
        padding: 21px 16px 30px;
    }

    .dashboard-header h3 {
        font-size: 25px;
    }

    .section-kicker {
        font-size: 9px;
    }

    .business-summary {
        gap: 12px;
    }

    .summary-main,.summary-balance {
        padding: 20px 17px;
        min-height: 180px;
    }

    .summary-main {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: space-between;
        gap: 14px;
    }

    .summary-main strong {
        font-size: 32px;
    }

    .summary-main p,.summary-balance p {
        font-size: 10px;
    }

    .summary-icon {
        width: 29px;
        height: 29px;
        font-size: 18px;
        margin: 0;
    }

    .summary-balance strong {
        font-size: 29px;
    }

    .overview-shortcuts {
        margin-top: 20px;
    }

    .overview-shortcuts button {
        font-size: 9px;
        padding-top: 12px;
    }

    .perf-top {
        padding: 21px 18px 16px;
        gap: 10px;
    }

    .perf-top h4 {
        font-size: 18px;
    }

    .perf-top .totals {
        gap: 7px;
    }

    #perfTotal {
        font-size: 12px;
    }

    #perfAvg {
        font-size: 9px;
    }

    .perf-filters {
        padding: 0 17px 8px;
        gap: 10px;
    }

    .custom-range {
        gap: 5px;
    }

    .custom-range input[type='date'] {
        font-size: 9px;
        padding: 7px 4px;
    }

    #btnPerfSearch {
        font-size: 9px;
        padding: 7px 9px;
    }

    .quick-range {
        gap: 2px;
    }

    .quick-range .btn {
        font-size: 9px;
        padding: 6px 5px;
    }

    .performance-chart {
        padding: 0 8px;
    }

    #performanceChart {
        height: 220px;
    }

    .daily-details {
        padding: 0 18px 15px;
    }

    .stat-content {
        padding: 19px 16px;
        gap: 10px;
    }

    .stat-content h4 {
        font-size: 10px;
    }

    .stat-value {
        font-size: 27px;
    }

    .reward-card {
        padding: 21px 18px;
        gap: 20px;
    }

    .reward-top h4 {
        font-size: 20px;
    }

    .reward-top p:not(.section-kicker) {
        font-size: 10px;
    }

    .reward-stats {
        gap: 8px;
    }

    .reward-stat {
        padding: 12px 9px;
    }

    .reward-stat strong {
        font-size: 15px;
    }

    .reward-stat label {
        font-size: 9px;
    }

    .reward-rate {
        font-size: 9px;
        padding: 6px;
    }

    .reward-form input {
        font-size: 11px;
    }

    .reward-form .btn {
        padding: 9px 11px;
        font-size: 10px;
    }

    .table {
        min-width: 540px;
    }

    .perf-main .table {
        min-width: 0;
    }

    .reward-logs .table {
        min-width: 420px;
    }

    .content-header,body.embed-iframe .content-header {
        padding: 21px 16px;
        min-height: 85px;
    }

    .content-header h3 {
        font-size: 24px;
    }

    .content-header .header-search,.content-header .toolbar-search {
        flex: 1 1 100%;
        justify-content: flex-start;
        gap: 8px;
        flex-wrap: wrap;
    }

    .header-search input,.toolbar-search input {
        flex: 1;
        min-width: 100px;
        width: 0;
    }

    body.embed-iframe .content-body {
        padding: 20px 16px;
    }

    body:not(.first-login-mode) .profile-cards {
        grid-template-columns: 1fr;
    }

    .profile-card,.wallet-card,.add-agent-form {
        padding: 20px;
    }

    .wallet-hero .wallet-amount {
        font-size: 35px;
    }

    .content-body>.wallet-hero {
        padding: 24px;
        flex-wrap: wrap;
    }

    .wallet-cards {
        grid-template-columns: 1fr;
    }

    #addAgentForm>div {
        flex-basis: 100%!important;
    }

    .agency-page .cards {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .agency-login .login-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto;
        padding: 0 22px;
    }

    .agency-login .login-brand {
        padding: 22px 0;
    }

    .login-brand-note {
        display: none;
    }

    .agency-login .brand-mark .name {
        font-size: 20px;
    }

    .brand-symbol {
        width: 48px;
        height: 42px;
        font-size: 23px;
        border-radius: 10px;
    }

    .agency-login .brand-mark .tag {
        font-size: 9px;
    }

    .login-intro {
        padding: 22px 4px 30px;
    }

    .login-intro>p {
        display: none;
    }

    .login-intro h2 {
        font-size: 39px;
        line-height: 1.35;
    }

    .login-intro h2 br {
        display: none;
    }

    .login-capabilities {
        margin-top: 16px;
        gap: 20px;
        font-size: 9px;
    }

    .intro-orbit {
        width: 260px;
        height: 260px;
        left: auto;
        right: -150px;
        top: 30%;
        opacity: .55;
    }

    .agency-login .login-panel {
        padding: 6px 0 32px;
    }

    .agency-login .login-box {
        width: 100%;
        padding: 28px 25px;
        border-radius: 18px;
    }

    .agency-login .login-title {
        font-size: 25px;
    }

    .agency-login .login-desc {
        margin-bottom: 25px;
        font-size: 10px;
    }

    .login-footer {
        padding: 18px 0;
        font-size: 8px;
    }

    .login-footer span {
        max-width: 155px;
        text-align: right;
        line-height: 1.8;
    }

}

@media(orientation:landscape) and (max-height:540px) and (min-width:641px) {
    .sidebar {
        flex-basis: 70px;
        width: 70px;
        min-width: 70px;
    }

    .sidebar .title {
        padding: 12px 3px;
    }

    .sidebar .brand-name {
        font-size: 0;
        gap: 0;
    }

    .sidebar .brand-name::before {
        width: 50px;
        height: 44px;
        font-size: 23px;
        border-radius: 10px;
    }

    .sidebar .nav {
        padding: 0 8px;
    }

    .sidebar .nav a {
        font-size: 0;
        padding: 12px 3px;
        gap: 0;
    }

    .sidebar .nav a::before {
        font-size: 21px;
    }

    .sidebar .nav li {
        margin-bottom: 3px;
    }

    .sidebar .user-foot,.sidebar .logout {
        padding: 8px 5px;
    }

    .sidebar #btnLogoutFoot {
        font-size: 8px;
        padding: 6px 1px;
        min-height: 25px;
    }

    .workspace-bar {
        min-height: 45px;
        padding: 0 22px;
    }

    .content-body {
        padding: 20px 22px;
    }

    .business-summary {
        grid-template-columns: 1fr 1fr;
    }

    .summary-main,.summary-balance {
        min-height: 165px;
    }

    .summary-main {
        flex-direction: row;
        align-items: center;
    }

    .summary-main strong {
        font-size: 37px;
    }

    .agency-login .login-brand {
        padding: 20px 0;
    }

    .agency-login .login-panel {
        padding: 20px 0 35px 20px;
    }

    .agency-login .login-box {
        padding: 27px 25px;
    }

    .agency-login .login-title {
        font-size: 25px;
    }

    .login-intro h2 {
        font-size: 40px;
    }

    .login-intro {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .login-capabilities {
        gap: 15px;
        font-size: 9px;
    }

    .login-intro>p {
        font-size: 10px;
    }

    .intro-orbit {
        width: 300px;
        height: 300px;
    }

}

@media(prefers-reduced-motion:reduce) {
    *,*::before,*::after {
        animation: none!important;
        transition: none!important;
    }

}


.agent-management-content #agentType {
    background: #141b24 !important;
    color: #c3cfda;
    border-color: #364353 !important;
}
.agent-management-content .no-permission {
    background: #191f27 !important;
    color: #8fa3b7 !important;
    box-shadow: none !important;
}
.wallet-card #walletAddressContent > div[style] {
    background: #151e27 !important;
    color: #a8b9c9;
}
body .loading-spinner {
    background: #26323f;
    color: #a7bacc;
    border: 1px solid #3e5265;
}

/* Business screens share the console's content layout and mobile record cards. */
.business-page .content-header {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(320px, 1.4fr);
    align-items: center !important;
    padding: 28px 30px;
    gap: 24px;
    background: #101318;
}

.business-page .header-text h3 {
    white-space: nowrap;
    font-size: 27px;
    line-height: 1.35;
}

.business-page .header-text p {
    margin: 10px 0 0;
    color: #758698;
    font-size: 12px;
    line-height: 1.7;
}

.business-page .header-search,
.business-page .toolbar-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.business-page .header-search input,
.business-page .toolbar-search input {
    width: 100%;
    height: 43px;
    min-width: 0;
    padding: 10px 13px;
    background: #19212b;
    border: 1px solid #354250;
    border-radius: 10px;
}

.business-page .header-search .btn,
.business-page .toolbar-search .btn {
    min-height: 43px;
    padding: 10px 15px;
    white-space: nowrap;
}

.business-page .content-body {
    background: #101318;
}

.business-page .table th {
    padding: 18px;
    font-size: 11px;
    letter-spacing: .03em;
}

.business-page .table td {
    padding: 19px 18px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.business-page .table td[data-label="代理编号"],
.business-page .table td[data-label="玩家账号"] {
    font-weight: 600;
    color: #d5e1ec;
}

.business-page .table td[data-label="充值金额"],
.business-page .table td[data-label="累计充值"],
.business-page .table td[data-label="累计业绩（元）"] {
    color: #b9ee70;
    font-variant-numeric: tabular-nums;
}

.business-page .empty-row td {
    height: 220px;
    padding: 40px 24px;
    text-align: center;
    background: #171f28;
}

.business-page .empty-row strong,
.business-page .empty-row span {
    display: block;
}

.business-page .empty-row strong {
    color: #b1c3d3;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 10px;
}

.business-page .empty-row span {
    color: #657c91;
    font-size: 11px;
    line-height: 1.8;
}

.business-page .status-paid,
.business-page .status-unpaid,
.business-page .status-failed {
    display: inline-block;
    padding: 4px 9px;
    font-size: 10px;
    border-radius: 6px;
    font-weight: 500;
}

.business-page .status-paid {
    background: #263d2e;
    color: #9ddaa9;
}

.business-page .status-unpaid {
    background: #3c3525;
    color: #d4bd82;
}

.business-page .status-failed {
    background: #3d2b30;
    color: #e69b9b;
}

.business-page .add-agent-form {
    padding: 0 23px 23px;
    border: 1px solid #364839;
    background: linear-gradient(150deg, #253129, #19232b);
}

.business-page .add-agent-form > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 0;
    font-size: 17px;
    font-weight: 500;
    color: #c9dac5;
    cursor: pointer;
    list-style: none;
}

.business-page .add-agent-form > summary::-webkit-details-marker {
    display: none;
}

.business-page .add-agent-form[open] > summary > span:last-child {
    transform: rotate(45deg);
}

.business-page .add-agent-form:not([open]) {
    padding-bottom: 0;
}

.business-page #addAgentForm {
    gap: 18px !important;
}

.business-page #addAgentForm label {
    font-size: 11px;
    color: #809a8c;
    margin-bottom: 9px !important;
}

.business-page #addAgentForm input,
.business-page #addAgentForm select {
    min-height: 43px;
    border-radius: 8px !important;
    border-color: #3c5146 !important;
    padding: 10px 12px !important;
}

.business-page #addAgentBtn {
    width: 100%;
    min-height: 43px;
}

.business-page .layui-laypage {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    padding: 0 12px;
    margin: 18px 0;
}

.business-page .layui-laypage a,
.business-page .layui-laypage span {
    border-radius: 7px;
    margin: 0;
    min-width: 29px;
}

.business-page .layui-laypage .layui-laypage-count,
.business-page .layui-laypage .layui-laypage-limits,
.business-page .layui-laypage .layui-laypage-skip {
    padding: 0;
    color: #687f94;
    border: 0;
    background: transparent;
}

.business-page .layui-laypage input,
.business-page .layui-laypage select,
.business-page .layui-laypage button {
    background: #1d2935;
    color: #92abc0;
    border-color: #344a5d;
    border-radius: 6px;
}

.business-wallet .content-header {
    display: block;
}

.business-wallet .content-body:has(> .wallet-hero) {
    grid-template-columns: minmax(0, 1.5fr) minmax(250px, 1fr);
    gap: 22px;
}

.business-wallet .wallet-hero {
    background: linear-gradient(125deg, #b9ee70, #9bd69e);
    border: 0;
    min-height: 225px;
    padding: 31px;
    color: #2b4327;
}

.business-wallet .wallet-hero .hero-label {
    color: #587c48;
    font-size: 12px;
}

.business-wallet .wallet-hero .wallet-amount {
    font-size: 52px;
    color: #223c20;
}

.business-wallet .wallet-hero .btn-withdraw {
    background: #2e4b31;
    border-color: #2e4b31;
    color: #d5edc9;
    min-height: 43px;
    padding: 11px 20px;
    margin: 0;
}

.business-wallet .wallet-cards:nth-child(2) .wallet-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 31px;
    background: #202938;
    border-color: #354458;
}

.business-wallet .wallet-card h4 {
    font-size: 18px;
    font-weight: 500;
    margin: 0 0 20px;
}

.business-wallet .wallet-network {
    display: inline-block;
    color: #8aa5bc;
    font-size: 11px;
    padding: 5px 9px;
    background: #243545;
    border-radius: 6px;
    margin: -7px 0 20px;
}

.business-wallet .address-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 10px;
}

.business-wallet .address-form label {
    grid-column: 1 / -1;
    font-size: 11px;
    color: #7d97ad;
    font-weight: 400;
}

.business-wallet .address-form input {
    width: 100%;
    min-height: 44px;
    border: 1px solid #385168;
}

.business-wallet .address-form .btn {
    min-height: 44px;
    margin: 0;
    white-space: nowrap;
}

.business-wallet .record-item {
    padding: 19px 20px;
    border-radius: 12px;
    border: 1px solid #2a3c4e;
    background: #141f2a;
    gap: 16px;
}

.business-wallet .amount-strong {
    color: #c8e3d4;
    font-size: 22px;
    font-weight: 500;
}

.business-wallet .record-left {
    min-width: 0;
    gap: 10px;
}

.business-wallet .record-row {
    line-height: 1.7;
    gap: 7px 12px;
    color: #91a8bc;
    font-size: 11px;
}

.business-wallet .rec-label,
.business-wallet .rec-serial {
    font-size: 10px;
    color: #617e96;
}

.business-wallet .rec-serial {
    overflow-wrap: anywhere;
}

.business-wallet .copy-uid {
    margin-left: 6px;
    color: #a3d675;
    text-decoration: none;
}

.business-wallet .badge {
    white-space: nowrap;
    font-size: 10px;
    padding: 5px 8px;
    border-radius: 6px;
}

.business-wallet .badge.processing {
    background: #3e3825;
    color: #d6bd7d;
}

.business-wallet .badge.settled {
    background: #263d30;
    color: #a0d9ad;
}

.reward-rules {
    list-style: none;
    padding: 14px 0 0;
    margin: 14px 0 0;
    border-top: 1px solid #2b3640;
}

.reward-rules li {
    position: relative;
    padding-left: 12px;
    color: #7b8d9c;
    font-size: 10px;
    line-height: 1.9;
    margin-top: 4px;
}

.reward-rules li::before {
    content: '';
    position: absolute;
    width: 3px;
    height: 3px;
    background: #90ad77;
    border-radius: 50%;
    left: 0;
    top: 8px;
}

@media (max-width: 1000px) {
    .business-page .content-header {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .business-page .agent-management-content .add-agent-form {
        order: 0;
    }

    .business-page .agent-management-content .agents-table {
        order: 1;
    }

    .business-wallet .content-body:has(> .wallet-hero) {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .business-page .content-header,
    body.embed-iframe.business-page .content-header {
        display: block;
        padding: 24px 18px 20px;
        min-height: 0;
    }

    .business-page .header-text h3 {
        font-size: 25px;
    }

    .business-page .header-text p {
        font-size: 11px;
        margin-top: 8px;
    }

    .business-page .header-search,
    .business-page .toolbar-search {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto auto;
        gap: 7px;
        margin-top: 20px;
    }

    .business-page .header-search input,
    .business-page .toolbar-search input {
        min-width: 0;
        width: 100%;
        font-size: 12px;
        padding: 10px;
    }

    .business-page .header-search .btn,
    .business-page .toolbar-search .btn {
        min-height: 43px;
        padding: 10px 12px;
        font-size: 11px;
    }

    .business-page .orders-table,
    .business-page .players-table,
    .business-page .agents-table {
        border: 0;
        background: transparent;
        overflow: visible;
        border-radius: 0;
    }

    .business-page .table {
        display: block;
        min-width: 0;
        width: 100%;
    }

    .business-page .table thead {
        display: none;
    }

    .business-page .table tbody {
        display: grid;
        gap: 13px;
        width: 100%;
    }

    .business-page .table tbody tr {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 17px 18px;
        border: 1px solid #2d3d4d;
        background: linear-gradient(135deg, #1c2732, #17202a);
        border-radius: 15px;
        padding: 21px 18px;
        min-width: 0;
    }

    .business-page .table td {
        display: flex;
        flex-direction: column;
        gap: 7px;
        padding: 0;
        min-width: 0;
        border: 0;
        color: #afc0d0;
        font-size: 12px;
        line-height: 1.6;
        text-align: left;
    }

    .business-page .table td[data-label]::before {
        content: attr(data-label);
        color: #617c93;
        font-size: 10px;
        font-weight: 400;
    }

    .business-page .table td[data-label="订单号"],
    .business-page .table td[data-label="代理编号"] {
        grid-column: 1 / -1;
        padding-bottom: 14px;
        border-bottom: 1px solid #2a3a4a;
        font-size: 15px;
        color: #dae6f1;
        font-weight: 500;
    }

    .business-players .table td[data-label="玩家账号"] {
        grid-column: 1 / -1;
        padding-bottom: 15px;
        border-bottom: 1px solid #2a3a4a;
        font-size: 18px;
        letter-spacing: .02em;
    }

    .business-page .table td[data-label="充值金额"],
    .business-page .table td[data-label="累计充值"],
    .business-page .table td[data-label="累计业绩（元）"] {
        color: #b9ee70;
        font-size: 20px;
        line-height: 1.4;
    }

    .business-page .table td[data-label="创建时间"],
    .business-page .table td[data-label="注册时间"],
    .business-page .table td[data-label="管理操作"] {
        grid-column: 1 / -1;
    }

    .business-page .table td[data-label="序号"] {
        display: none;
    }

    .business-page .table td[data-label="管理操作"] {
        display: block;
        padding-top: 14px;
        border-top: 1px solid #2b3d4d;
    }

    .business-page .table td[data-label="管理操作"]::before {
        display: none;
    }

    .business-page .table .empty-row {
        display: block;
        padding: 0;
    }

    .business-page .table td[colspan] {
        grid-column: 1 / -1;
    }

    .business-page .empty-row td {
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        height: auto;
        min-height: 190px;
        padding: 30px 24px;
        border-radius: 14px;
        gap: 4px;
    }

    .business-page .add-agent-form {
        padding: 0 19px 20px;
        border-radius: 15px;
    }

    .business-page .add-agent-form > summary {
        font-size: 17px;
        padding: 21px 0;
    }

    .business-wallet .wallet-hero {
        display: block;
        padding: 27px;
        min-height: 240px;
    }

    .business-wallet .wallet-hero .wallet-amount {
        font-size: 46px;
    }

    .business-wallet .wallet-hero .btn-withdraw {
        width: 100%;
        margin-top: 25px;
    }

    .business-wallet .wallet-cards:nth-child(2) .wallet-card {
        padding: 25px;
    }

    .business-wallet .address-form {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .business-wallet .address-form .btn {
        width: 100%;
    }

    .business-wallet .record-item {
        position: relative;
        display: block;
        padding: 20px 17px;
    }

    .business-wallet .record-row:first-child {
        padding-right: 65px;
    }

    .business-wallet .record-right {
        position: absolute;
        top: 21px;
        right: 16px;
    }

    .business-wallet .rec-serial {
        flex-basis: 100%;
        margin-top: 6px;
    }

    .reward-form .form-row {
        flex-direction: column;
        gap: 10px;
    }

    .reward-form input,
    .reward-form .btn {
        width: 100%;
        min-height: 43px;
    }

    .reward-rules li {
        font-size: 11px;
    }
}
