* { box-sizing: border-box; }
body { margin: 0; background: #f3f5f8; color: #303133; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif; }
a { color: inherit; text-decoration: none; }
.admin-layout { min-height: 100vh; display: flex; background: #f3f5f8; }
.sidebar { width: 224px; flex-shrink: 0; background: #fff; border-right: 1px solid #e8edf3; box-shadow: none; position: sticky; top: 0; z-index: 30; height: 100vh; overflow-y: auto; overflow-x: hidden; transition: width .18s ease; }
.logo { height: 66px; display: flex; align-items: center; gap: 8px; padding: 0 28px; border-bottom: 1px solid #f1f3f7; font-weight: 700; letter-spacing: .4px; white-space: nowrap; transition: padding .18s ease; }
.logo-mark { color: #d89218; font-size: 18px; font-style: italic; }
.logo-text { color: #22314a; font-size: 14px; }
.menu { padding: 18px 16px 28px; display: flex; flex-direction: column; gap: 8px; transition: padding .18s ease; }
.menu-item, .submenu-title, .submenu-item { min-height: 44px; display: flex; align-items: center; border-radius: 8px; color: #30343b; font-size: 15px; transition: color .15s ease, background-color .15s ease; }
.menu-item, .submenu-title { width: 100%; padding: 0 12px 0 16px; justify-content: space-between; border: 1px solid transparent; appearance: none; background: transparent; font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.menu-item:hover, .submenu-title:hover { color: #0b6fe8; background: #f6f7f9; }
.menu-item.active { background: #f4f6f9; color: #0b6fe8; font-weight: 700; }
.menu-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.menu-icon { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; color: #30343b; }
.menu-icon svg { width: 22px; height: 22px; display: block; }
.menu-item:hover .menu-icon, .submenu-title:hover .menu-icon, .menu-item.active .menu-icon { color: #0b6fe8; }
.chevron { margin-left: auto; color: #30343b; font-size: 16px; font-weight: 700; line-height: 1; transition: color .15s ease, transform .15s ease; }
.submenu.is-collapsed .chevron { transform: rotate(-90deg); }
.submenu { margin: 0; }
.submenu-title { color: #30343b; font-weight: 600; }
.submenu-title.active, .submenu.has-active-child > .submenu-title, .submenu:has(.submenu-item.active) > .submenu-title { background: #f4f6f9; color: #0b6fe8; font-weight: 700; }
.submenu-title.active .menu-icon, .submenu-title.active .chevron, .submenu.has-active-child > .submenu-title .menu-icon, .submenu.has-active-child > .submenu-title .chevron, .submenu:has(.submenu-item.active) > .submenu-title .menu-icon, .submenu:has(.submenu-item.active) > .submenu-title .chevron, .menu-item.active .chevron { color: #0b6fe8; }
.submenu-list { padding: 4px 0 2px 50px; display: flex; flex-direction: column; gap: 4px; }
.submenu.is-collapsed .submenu-list { display: none; }
.submenu-item { position: relative; min-height: 38px; padding: 0 10px 0 18px; color: #30343b; border: 1px solid transparent; background: transparent; font-size: 14px; font-weight: 500; }
.submenu-item::before { content: ""; position: absolute; left: 0; top: 50%; width: 11px; height: 8px; border: 2px solid currentColor; border-radius: 2px; transform: translateY(-50%); opacity: .72; }
.submenu-item::after { content: ""; position: absolute; left: 3px; top: calc(50% + 6px); width: 5px; height: 2px; border-radius: 999px; background: currentColor; opacity: .72; }
.submenu-item:hover { color: #0b6fe8; background: #f6f7f9; }
.submenu-item.active { background: #f4f6f9; color: #0b6fe8; font-weight: 700; }
.admin-layout.sidebar-collapsed .sidebar { width: 72px; }
.admin-layout.sidebar-collapsed .logo { justify-content: center; padding: 0; }
.admin-layout.sidebar-collapsed .logo-text { display: none; }
.admin-layout.sidebar-collapsed .menu { padding: 16px 10px; }
.admin-layout.sidebar-collapsed .menu-item, .admin-layout.sidebar-collapsed .submenu-title { justify-content: center; padding: 0; }
.admin-layout.sidebar-collapsed .menu-left { justify-content: center; gap: 0; }
.admin-layout.sidebar-collapsed .menu-left { font-size: 0; }
.admin-layout.sidebar-collapsed .menu-icon { color: inherit; }
.admin-layout.sidebar-collapsed .chevron, .admin-layout.sidebar-collapsed .submenu-list { display: none; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 58px; flex-shrink: 0; background: #fff; border-bottom: 1px solid #e8edf3; display: flex; align-items: center; justify-content: space-between; padding: 0 22px 0 14px; position: sticky; top: 0; z-index: 25; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 14px; min-width: 0; }
.collapse-btn { width: 32px; height: 32px; border: 1px solid #e4e7ed; border-radius: 5px; display: flex; align-items: center; justify-content: center; color: #606266; background: #fff; cursor: pointer; user-select: none; transition: color .15s ease, border-color .15s ease, background-color .15s ease; }
.collapse-btn:hover, .collapse-btn.is-collapsed { color: #0b6fe8; border-color: #bcd7ff; background: #f4f8ff; }
.breadcrumb { display: flex; align-items: center; gap: 8px; color: #909399; font-size: 13px; min-width: 0; flex-wrap: wrap; }
.breadcrumb strong { color: #303133; font-weight: 500; }
.top-icon { color: #5f6b7a; font-size: 14px; }
.time { color: #1fc98f; font-size: 13px; white-space: nowrap; }
.timezone { width: 98px; }
.account { color: #4f5d70; font-size: 13px; }
.content { flex: 1; min-height: 0; padding: 22px 24px 32px; overflow: auto; }
.game-control-page, .player-account-page, .player-profit-page, .stats-page, .report-data-page, .merchant-report-page { min-height: calc(100vh - 58px); display: flex; flex-direction: column; }
#app .main > .content:not(.game-control-page) { min-height: calc(100vh - 58px); display: flex; flex-direction: column; }
#app .main > .content:not(.game-control-page) > .card { width: 100%; max-width: none; flex: 1 1 auto; }
.page-title { margin: 0; font-size: 20px; font-weight: 600; color: #202b3c; }
.page-subtitle { margin: 6px 0 16px; color: #909399; font-size: 13px; }
.card { max-width: 960px; background: #fff; border-radius: 8px; border: 1px solid #ebeef5; box-shadow: 0 1px 6px rgba(31, 45, 61, .05); padding: 24px 32px 30px; }
.card-title { font-size: 17px; font-weight: 600; color: #303133; margin: 0 0 22px; padding-bottom: 16px; border-bottom: 1px solid #ebeef5; }
.form-row { display: flex; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid #ebeef5; gap: 16px; }
.form-row:last-of-type { border-bottom: none; }
.form-label { width: 128px; flex-shrink: 0; text-align: right; line-height: 32px; color: #606266; font-size: 14px; }
.form-label .req { color: #f56c6c; margin-right: 4px; }
.form-body { flex: 1; min-width: 0; }
.hint { color: #909399; font-size: 12px; margin-top: 6px; }
.rtp-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.rtp-gear-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rtp-gear-row .el-input-number { width: 180px; }
.rounds-extra { color: #909399; font-size: 12px; margin-left: 8px; white-space: nowrap; }
.footer { display: flex; justify-content: flex-end; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid #ebeef5; }
.game-control-page { padding: 0 24px 32px; }
.game-control-page .page-title { font-size: 22px; }
.game-control-card { width: 100%; max-width: none; padding: 0; overflow: hidden; flex: 0 0 auto; min-height: 0; display: flex; flex-direction: column; }
.control-card-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 22px 16px; border-bottom: 1px solid #ebeef5; background: #fff; }
.control-card-head > div { min-width: 0; flex: 1; }
.control-card-head .card-title { margin: 0; padding: 0; border-bottom: 0; font-size: 17px; }
.control-card-desc { margin: 6px 0 0; color: #909399; font-size: 12px; line-height: 1.5; max-width: 62ch; }
.control-form { --control-label-width: 96px; --control-field-height: 36px; --control-field-radius: 6px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 16px; padding: 18px 20px 20px; color: rgba(17, 85, 223, 1); }
.control-form.control-form--weighted { grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr) minmax(0, 1fr); }
.form-section { border: 1px solid #ebeef5; border-radius: 10px; background: #fff; margin-bottom: 18px; overflow: hidden; }
.form-section:last-of-type { margin-bottom: 0; }
.form-section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; background: #f8fafc; border-bottom: 1px solid #ebeef5; }
.form-section-head > div { min-width: 0; flex: 1; }
.form-section-title { margin: 0; color: #202b3c; font-size: 15px; font-weight: 600; }
.form-section-desc { margin-top: 4px; color: #909399; font-size: 12px; }
.game-control-card .form-row { padding: 12px 14px; border-bottom: 1px solid #edf1f6; display: grid; grid-template-columns: var(--control-label-width) minmax(0, 1fr); gap: 12px; align-items: start; }
.game-control-card .form-row:last-child { border-bottom: none; }
.game-control-card .form-label { width: var(--control-label-width); color: #4f5d70; font-size: 13px; font-weight: 600; line-height: var(--control-field-height); text-align: right; white-space: nowrap; }
.control-inline { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.control-stack { display: flex; flex-direction: column; gap: 10px; }
.control-hint { display: inline-flex; align-items: center; min-height: 28px; padding: 5px 10px; border-radius: var(--control-field-radius); background: #f7f9fc; color: #7a8699; font-size: 12px; line-height: 1.4; }
.control-hint.warning { color: #b26a00; background: #fff7e8; border: 1px solid #ffe2b8; }
.control-hint.info { color: #3f6f9f; background: #eef6ff; border: 1px solid #d9ecff; }
.control-textarea { width: 100%; max-width: none; }
.control-textarea .el-textarea__inner { min-height: 56px !important; border-radius: var(--control-field-radius); font-size: 13px; }
.control-select { width: 100%; max-width: none; }
.brand-check-trigger { width: 100%; min-height: var(--control-field-height); border: 1px solid #d9dee8; border-radius: var(--control-field-radius); padding: 3px 32px 3px 8px; background: #fff; color: #3f4b5b; display: flex; align-items: center; gap: 6px; position: relative; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease; }
.brand-check-trigger:hover, .brand-check-trigger:focus-visible { border-color: #409eff; box-shadow: 0 0 0 3px rgba(64, 158, 255, .12); outline: none; }
.brand-check-tags { min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.brand-check-tag { height: 24px; padding: 0 9px; border: 1px solid #cfe2ff; border-radius: 999px; background: #f2f7ff; color: #1677ff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.brand-check-placeholder { color: #a8b1c0; font-size: 13px; }
.brand-check-arrow { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: #8a93a3; font-size: 12px; }
.brand-check-panel { padding: 2px 0; }
.brand-check-title { margin-bottom: 8px; color: #4f5d70; font-size: 13px; font-weight: 700; }
.brand-check-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.brand-check-group .el-checkbox { height: 34px; margin-right: 0; padding: 0 10px; border: 1px solid #e3e9f2; border-radius: 6px; background: #fbfdff; display: flex; align-items: center; transition: border-color .15s ease, background-color .15s ease; }
.brand-check-group .el-checkbox.is-checked { border-color: #409eff; background: #eef6ff; }
.brand-check-group .el-checkbox__label { color: #4f5d70; font-size: 13px; font-weight: 700; }
.brand-check-group .el-checkbox.is-checked .el-checkbox__label { color: #1677ff; }
.control-game-trigger { width: 100%; min-height: var(--control-field-height); border: 1px solid #d9dee8; border-radius: var(--control-field-radius); padding: 3px 32px 3px 8px; background: #fff; color: #3f4b5b; display: flex; align-items: center; gap: 8px; position: relative; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease; }
.control-game-trigger:hover, .control-game-trigger:focus-visible { border-color: #409eff; box-shadow: 0 0 0 3px rgba(64, 158, 255, .12); outline: none; }
.control-game-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #3f4b5b; font-size: 13px; font-weight: 600; }
.control-game-popper { max-width: calc(100vw - 320px); }
.control-game-panel { padding: 2px 0 0; }
.control-game-panel .game-brand-tabs { margin-bottom: 10px; }
.control-game-panel .game-search { height: 36px; border-radius: 6px; }
.control-game-options { min-height: 224px; }
.control-game-panel .game-option { height: 96px; }
.game-control-card .el-input__wrapper, .game-control-card .el-select .el-input__wrapper { min-height: var(--control-field-height); border-radius: var(--control-field-radius); }
.game-control-card .el-input__inner { height: var(--control-field-height); font-size: 13px; }
.game-control-card .el-radio { height: var(--control-field-height); margin-right: 18px; color: #4f5d70; }
.game-control-card .el-radio__label { font-size: 13px; }
.game-control-card .el-radio-button__inner { min-width: 64px; height: var(--control-field-height); padding: 0 14px; line-height: calc(var(--control-field-height) - 2px); font-size: 13px; }
.rtp-gear-row .el-button { height: var(--control-field-height); padding: 0 14px; border-radius: var(--control-field-radius); font-size: 13px; }
.control-number, .control-number-wide { width: 180px; max-width: 180px; height: var(--control-field-height); }
.control-number .el-input__wrapper, .control-number-wide .el-input__wrapper { height: var(--control-field-height); }
.control-radio-group { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0; width: auto; min-height: var(--control-field-height); }
.game-control-card .rtp-wrap { gap: 12px; }
.rtp-panel { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 10px 12px; border: 1px solid #e5ebf3; border-radius: 8px; background: #fbfdff; width: 100%; }
.rtp-limit-note { margin-top: 0; }
.release-field { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; min-height: var(--control-field-height); }
.footer.control-footer { grid-column: 1 / -1; position: static; margin: -4px 0 0; padding: 0 0 10px; background: #fff; border-top: 0; box-shadow: none; flex-wrap: wrap; justify-content: center; }
.footer.control-footer .el-button { min-width: 112px; }
.control-player-report { grid-column: 1 / -1; margin: -2px -20px -20px; border-top: 0; background: #fff; }
.control-report-head { display: flex; align-items: center; justify-content: flex-start; gap: 16px; padding: 8px 20px 12px; }
.control-report-head h3 { margin: 0; color: #202b3c; font-size: 15px; font-weight: 700; }
.control-report-head p { margin: 4px 0 0; color: #7a8494; font-size: 12px; }
.control-report-table-wrap { padding: 0 20px 10px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #9aacc2 #eef4fb; scrollbar-gutter: stable; }
.control-report-table-wrap::-webkit-scrollbar { height: 12px; }
.control-report-table-wrap::-webkit-scrollbar-track { margin: 0 4px; border-radius: 999px; background: #eef4fb; border: 1px solid #dfeaf5; }
.control-report-table-wrap::-webkit-scrollbar-thumb { border: 3px solid #eef4fb; border-radius: 999px; background: linear-gradient(90deg, #9fb0c6, #7f92aa); }
.control-report-table { width: 100%; min-width: 1580px; border: 1px solid #e4ebf5; border-radius: 8px; overflow: hidden; }
.control-report-row { display: grid; grid-template-columns: minmax(160px, 1.05fr) minmax(150px, .95fr) minmax(90px, .58fr) minmax(130px, .82fr) minmax(130px, .82fr) minmax(130px, .82fr) minmax(130px, .82fr) minmax(110px, .68fr) minmax(130px, .82fr) minmax(130px, .82fr) minmax(100px, .66fr) minmax(90px, .58fr); align-items: center; min-height: 48px; color: #4f5d70; font-size: 13px; border-bottom: 1px solid #edf1f6; }
.control-report-row:last-child { border-bottom: 0; }
.control-report-row.header { min-height: 42px; background: #f7f9fc; color: #4c5a6f; font-weight: 700; }
.control-report-row > div { min-width: 0; padding: 9px 12px; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; text-overflow: ellipsis; }
.control-report-id { color: #1677ff; font-weight: 700; }
.control-report-status { display: inline-flex; align-items: center; justify-content: center; min-width: 58px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.control-report-status { color: #1677ff; background: #eef6ff; border: 1px solid #d7eaff; }
.control-report-actions { gap: 8px; }
.control-report-actions button { height: 28px; min-width: 48px; padding: 0 10px; border: 1px solid #cfe2ff; border-radius: 6px; background: #f4f8ff; color: #1677ff; font-size: 12px; font-weight: 700; cursor: pointer; transition: color .15s ease, border-color .15s ease, background-color .15s ease; }
.control-report-actions button:hover { color: #fff; border-color: #1677ff; background: #1677ff; }
.control-report-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 0 20px 14px; color: #6c7482; font-size: 13px; flex-wrap: wrap; }
.control-report-pagination select { height: 32px; min-width: 86px; border: 1px solid #d9dee8; border-radius: 6px; padding: 0 8px; background: #fff; color: #495566; }
.control-report-pagination button { width: 32px; height: 32px; border: 1px solid #e0e5ef; background: #fff; color: #5a6472; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.control-report-pagination button.active { background: #409eff; color: #fff; border-color: #409eff; }
.control-report-pagination button:disabled { color: #b7bdc8; background: #f5f7fa; border-color: #f0f2f5; cursor: not-allowed; }
.form-block { min-width: 0; height: 100%; border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 1px 4px rgba(31, 45, 61, .03); }
.form-block + .form-block { margin-top: 0; padding-top: 0; border-top: 0; }
.form-block-head { display: flex; flex-direction: column; gap: 4px; min-height: 66px; margin-bottom: 0; padding: 12px 14px; background: #f8fafc; border-bottom: 1px solid #e7edf5; }
.form-block-title { margin: 0; color: #202b3c; font-size: 14px; font-weight: 700; }
.form-block-desc { color: #8a94a6; font-size: 12px; line-height: 1.5; }
.form-block .form-row { padding: 12px 14px; }
.form-block:first-child .form-row:first-of-type { padding-top: 12px; }
.player-account-page { padding: 0 24px 32px; }
.account-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0 0 14px; }
.account-stat { min-height: 92px; padding: 16px 18px; border: 1px solid #e4ebf5; border-radius: 8px; background: #fff; box-shadow: 0 1px 6px rgba(31, 45, 61, .04); display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.account-stat span { color: #667085; font-size: 13px; font-weight: 600; }
.account-stat strong { color: #202b3c; font-size: 26px; line-height: 1; }
.account-stat em { color: #8a93a3; font-size: 12px; font-style: normal; }
.account-card { width: 100%; max-width: none; padding: 0; overflow: hidden; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.account-toolbar { display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px 16px; border-bottom: 1px solid #e8edf5; background: #fff; }
.account-filters { flex: 1; min-width: 0; display: grid; grid-template-columns: 240px 240px 240px 240px minmax(440px, 1fr); gap: 14px 18px; align-items: center; }
.account-filter { display: flex; align-items: center; gap: 10px; min-width: 0; }
.account-filter span, .account-date-filter > span { color: #5f6b7a; font-size: 14px; font-weight: 700; white-space: nowrap; }
.account-input { width: 160px; height: 38px; border: 1px solid #d9dee8; border-radius: 6px; padding: 0 12px; color: #3f4b5b; font-size: 14px; background: #fff; outline: none; transition: border-color .15s ease, box-shadow .15s ease; }
.account-input:focus { border-color: #409eff; box-shadow: 0 0 0 3px rgba(64, 158, 255, .12); }
.account-select { appearance: none; padding-right: 32px; background-image: linear-gradient(45deg, transparent 50%, #8a93a3 50%), linear-gradient(135deg, #8a93a3 50%, transparent 50%); background-position: calc(100% - 16px) 16px, calc(100% - 10px) 16px; background-size: 6px 6px; background-repeat: no-repeat; }
.account-date-filter { display: grid; grid-template-columns: auto minmax(142px, 1fr) 20px minmax(142px, 1fr); align-items: center; gap: 8px; min-width: 0; }
.account-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; padding-top: 0; }
.account-table-wrap { flex: 1 1 auto; min-height: 0; padding: 0 20px 18px; overflow-x: auto; }
.account-table { width: 100%; min-width: 1420px; }
.account-row { display: grid; grid-template-columns: minmax(130px, .9fr) minmax(200px, 1.45fr) minmax(130px, .95fr) minmax(90px, .65fr) minmax(130px, .95fr) minmax(130px, .95fr) minmax(120px, .85fr) minmax(110px, .8fr) minmax(150px, 1.1fr) minmax(150px, 1.1fr); align-items: center; min-height: 62px; border-bottom: 1px solid #e8edf5; color: #596273; font-size: 14px; }
.account-row.header { min-height: 48px; background: #f6f8fb; color: #4c5a6f; font-weight: 700; }
.account-row > div { min-width: 0; padding: 9px 12px; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; text-overflow: ellipsis; }
.account-row:not(.header):hover { background: #fbfdff; }
.account-status { display: inline-flex; align-items: center; justify-content: center; min-width: 50px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.account-status.online { color: #389e0d; background: #f0f9e8; border: 1px solid #d7efc5; }
.account-status.offline { color: #667085; background: #f2f4f7; border: 1px solid #e4e7ec; }
.account-status.risk { color: #b45309; background: #fff7e8; border: 1px solid #ffe2b8; }
.account-status.locked { color: #d92d20; background: #fff1f0; border: 1px solid #ffd5d2; }
.player-profit-page { padding: 0 24px 32px; }
.player-profit-tabs { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 8px; flex-wrap: wrap; background: #edf3ff; border-radius: 12px; border: 1px solid #dde8ff; width: fit-content; }
.profit-tab { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 18px; border: 1px solid #d2def8; border-radius: 10px; background: #fff; color: #5f6b7a; font-size: 14px; font-weight: 500; transition: all .18s ease; }
.profit-tab:hover { border-color: #b7cbf7; color: #3f567a; }
.profit-tab.active { color: #fff; background: linear-gradient(135deg, #4f9eff, #2f7df5); border-color: #2f7df5; box-shadow: 0 5px 12px rgba(47, 125, 245, .25); }
.profit-tab .dot { font-size: 10px; line-height: 1; }
.profit-card { width: 100%; max-width: none; padding: 0; overflow: hidden; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.profit-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 16px 20px; border-bottom: 1px solid #e8edf5; background: #fff; }
.profit-filters { flex: 1 1 auto; display: grid; grid-template-columns: 210px 240px minmax(350px, 390px); align-items: center; gap: 12px; min-width: 0; }
.profit-filter { display: flex; align-items: center; gap: 8px; min-width: 0; }
.profit-filter.date-filter { min-width: 0; }
.profit-label { color: #6b7280; font-size: 14px; font-weight: 600; white-space: nowrap; }
.profit-input { width: 150px; height: 36px; border: 1px solid #d9dee8; border-radius: 6px; padding: 0 10px; color: #3f4b5b; font-size: 14px; background: #fff; outline: none; transition: border-color .15s ease, box-shadow .15s ease; }
.profit-input:focus { border-color: #409eff; box-shadow: 0 0 0 3px rgba(64, 158, 255, .12); }
.profit-select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #8a93a3 50%), linear-gradient(135deg, #8a93a3 50%, transparent 50%); background-position: calc(100% - 18px) 16px, calc(100% - 12px) 16px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 34px; }
.game-picker { position: relative; width: 160px; }
.game-picker-trigger { width: 100%; height: 36px; border: 1px solid #d9dee8; border-radius: 6px; padding: 0 28px 0 8px; background: #fff; color: #3f4b5b; display: flex; align-items: center; gap: 7px; font-size: 14px; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease; }
.game-picker-trigger:hover, .game-picker-trigger:focus-visible { border-color: #409eff; box-shadow: 0 0 0 3px rgba(64, 158, 255, .12); outline: none; }
.game-picker-arrow { position: absolute; right: 10px; color: #8a93a3; }
.game-picker-panel { position: fixed; width: min(760px, calc(100vw - 280px)); max-height: min(560px, calc(100vh - 120px)); overflow: auto; padding: 14px; border: 1px solid #d9dee8; border-radius: 8px; background: #fff; box-shadow: 0 14px 34px rgba(31, 45, 61, .18); z-index: 24; }
.game-brand-tabs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.game-brand-tab { height: 30px; min-width: 58px; padding: 0 12px; border: 1px solid #d8e2f0; border-radius: 6px; background: #f8fafc; color: #516174; font-size: 12px; font-weight: 700; cursor: pointer; transition: color .15s ease, border-color .15s ease, background-color .15s ease, box-shadow .15s ease; }
.game-brand-tab:first-child { min-width: 80px; }
.game-brand-tab:hover { border-color: #9cc7ff; color: #1677ff; background: #f3f8ff; }
.game-brand-tab.active { border-color: #1677ff; color: #fff; background: #1677ff; box-shadow: 0 4px 10px rgba(22, 119, 255, .18); }
.game-all-check { height: 30px; min-width: 112px; padding: 0 10px; border: 1px solid #d8e2f0; border-radius: 6px; background: #fff; color: #516174; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; font-weight: 700; cursor: pointer; transition: color .15s ease, border-color .15s ease, background-color .15s ease, box-shadow .15s ease; }
.game-all-check:hover, .game-all-check.active { border-color: #1677ff; color: #1677ff; background: #eef6ff; box-shadow: 0 4px 10px rgba(22, 119, 255, .12); }
.game-all-check input { width: 14px; height: 14px; margin: 0; flex-shrink: 0; accent-color: #1677ff; cursor: pointer; }
.game-search { width: 100%; height: 34px; border: 1px solid #d9dee8; border-radius: 4px; padding: 0 10px; outline: none; color: #3f4b5b; }
.game-options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 10px; min-height: 260px; }
.game-option { height: 102px; border: 1px solid #e1e7f0; border-radius: 6px; background: #fff; color: #3f4b5b; display: flex; align-items: stretch; padding: 0; overflow: hidden; cursor: pointer; }
.game-option.active, .game-option:hover { border-color: #409eff; box-shadow: 0 0 0 2px rgba(64, 158, 255, .12); }
.game-choice-icon { width: 26px; height: 26px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; color: #fff; font-size: 11px; font-weight: 700; background: #64748b; }
.game-thumb { position: relative; width: 100%; min-height: 100%; display: flex; align-items: flex-end; justify-content: center; padding: 0 8px 8px; color: #fff; font-size: 13px; font-weight: 700; text-shadow: 0 1px 4px rgba(0, 0, 0, .35); background: linear-gradient(135deg, #64748b, #93a4b8); }
.game-thumb::after { content: ""; position: absolute; inset: auto 0 0; height: 48%; background: linear-gradient(to top, rgba(0, 104, 171, .78), rgba(0, 104, 171, 0)); }
.game-thumb span { position: relative; z-index: 1; }
.game-thumb.all { background: linear-gradient(135deg, #526173, #9aa8b8); }
.game-thumb.kraken { background: radial-gradient(circle at 65% 22%, #ff7a45 0 9%, transparent 10%), linear-gradient(135deg, #14213d 0%, #1e5aa8 46%, #18a0fb 100%); }
.game-thumb.ek { background: radial-gradient(circle at 62% 32%, #ff3b30 0 13%, transparent 14%), linear-gradient(135deg, #1c2744, #2f80ed 48%, #8e44ad); }
.game-thumb.gems { background: radial-gradient(circle at 50% 30%, #ffd166 0 14%, transparent 15%), linear-gradient(135deg, #7f1d1d, #d97706 50%, #7c3aed); }
.game-thumb.palace { background: radial-gradient(circle at 48% 18%, #fff7ad 0 12%, transparent 13%), linear-gradient(135deg, #45210d, #f59e0b 55%, #0369a1); }
.game-thumb.pharaoh { background: radial-gradient(circle at 55% 32%, #facc15 0 12%, transparent 13%), linear-gradient(135deg, #172554, #2563eb 45%, #7c3aed); }
.game-thumb.bowling { background: radial-gradient(circle at 54% 38%, #ef4444 0 16%, transparent 17%), linear-gradient(135deg, #581c87, #fb7185 52%, #f97316); }
.game-thumb.balloon { background: radial-gradient(circle at 52% 28%, #fecdd3 0 18%, transparent 19%), linear-gradient(135deg, #312e81, #8b5cf6 45%, #f9a8d4); }
.game-thumb.sesame { background: radial-gradient(circle at 45% 42%, #fde68a 0 15%, transparent 16%), linear-gradient(135deg, #3b2516, #92400e 48%, #f59e0b); }
.game-thumb.monster { background: radial-gradient(circle at 58% 33%, #ef4444 0 10%, transparent 11%), linear-gradient(135deg, #0f172a, #0f766e 48%, #fb923c); }
.game-thumb.maya { background: radial-gradient(circle at 50% 25%, #fbbf24 0 14%, transparent 15%), linear-gradient(135deg, #164e63, #14b8a6 45%, #7c2d12); }
.game-thumb.crown { background: radial-gradient(circle at 54% 30%, #facc15 0 16%, transparent 17%), linear-gradient(135deg, #7f1d1d, #dc2626 50%, #581c87); }
.game-thumb.dragon { background: radial-gradient(circle at 55% 36%, #fb923c 0 15%, transparent 16%), linear-gradient(135deg, #14532d, #15803d 45%, #0f172a); }
.game-thumb.candy { background: radial-gradient(circle at 50% 30%, #f9a8d4 0 16%, transparent 17%), linear-gradient(135deg, #be123c, #f97316 46%, #facc15); }
.game-thumb.star { background: radial-gradient(circle at 50% 25%, #fde047 0 12%, transparent 13%), linear-gradient(135deg, #1e1b4b, #4f46e5 50%, #0ea5e9); }
.game-thumb.train { background: radial-gradient(circle at 52% 35%, #fde68a 0 14%, transparent 15%), linear-gradient(135deg, #451a03, #ca8a04 48%, #111827); }
.game-picker-pager { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 10px; }
.game-page-btn { width: 30px; height: 30px; border: 1px solid #d9dee8; border-radius: 4px; background: #fff; color: #4b5563; cursor: pointer; }
.game-page-btn:disabled { opacity: .45; cursor: not-allowed; }
.game-page-info { min-width: 54px; text-align: center; color: #667085; font-size: 13px; }
.profit-date-control { display: grid; grid-template-columns: minmax(142px, 1fr) 20px minmax(142px, 1fr); align-items: center; gap: 6px; width: 100%; min-width: 0; }
.date-field { height: 36px; display: flex; align-items: center; gap: 6px; min-width: 0; padding: 0 8px; border: 1px solid #d9dee8; border-radius: 8px; background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
.date-field:focus-within { border-color: #409eff; box-shadow: 0 0 0 3px rgba(64, 158, 255, .12); }
.date-field-label { color: #8a93a3; font-size: 12px; font-weight: 600; white-space: nowrap; }
.profit-input.date { width: 100%; border: 0; height: 34px; padding: 0; cursor: pointer; min-width: 0; color: #344054; font-size: 13px; font-weight: 600; background: transparent; box-shadow: none; }
.profit-input.date:focus { box-shadow: none; }
.profit-input.date::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .72; filter: invert(42%) sepia(10%) saturate(621%) hue-rotate(177deg) brightness(89%) contrast(87%); }
.profit-date-range-sep { width: 20px; color: #8a93a3; font-size: 13px; text-align: center; }
.profit-input::placeholder { color: #b0b6c2; }
.profit-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex: 0 0 auto; margin-left: auto; }
.profit-btn { height: 38px; min-width: 88px; padding: 0 16px; border-radius: 6px; border: 1px solid #cfd7e6; background: #fff; color: #5e6470; font-size: 14px; font-weight: 600; cursor: pointer; transition: color .15s ease, border-color .15s ease, background-color .15s ease, box-shadow .15s ease; }
.profit-btn:hover { border-color: #409eff; color: #409eff; }
.profit-btn.primary { border-color: #409eff; background: #409eff; color: #fff; }
.profit-btn.primary:hover { box-shadow: 0 6px 14px rgba(64, 158, 255, .24); }
.profit-table-wrap { flex: 1 1 auto; min-height: 0; padding: 0 20px 18px; overflow-x: auto; }
.profit-table { width: 100%; min-width: 1480px; border-top: 0; }
.profit-row { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(190px, 1.35fr) minmax(150px, 1.05fr) minmax(96px, .7fr) minmax(140px, 1fr) minmax(140px, 1fr) minmax(140px, 1fr) minmax(150px, 1.05fr) minmax(150px, 1.05fr) minmax(150px, 1.05fr); align-items: center; min-height: 64px; border-bottom: 1px solid #e8edf5; color: #505a69; font-size: 14px; }
.profit-row.header { background: #f6f8fb; color: #4c5a6f; font-weight: 600; }
.profit-cell { padding: 10px 12px; min-width: 0; overflow: hidden; text-overflow: ellipsis; text-align: center; display: flex; align-items: center; justify-content: center; }
.profit-row.header .profit-cell { white-space: nowrap; }
.profit-player { color: #3f8efc; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; }
.profit-copy { position: relative; display: inline-flex; width: 22px; height: 22px; border: 1px solid #bcd7ff; border-radius: 5px; align-items: center; justify-content: center; color: #2f80ed; background: #f4f8ff; cursor: pointer; }
.profit-copy::before, .profit-copy::after { content: ""; position: absolute; width: 9px; height: 9px; border: 1.5px solid currentColor; border-radius: 2px; background: #f4f8ff; }
.profit-copy::before { transform: translate(-2px, 2px); opacity: .7; }
.profit-copy::after { transform: translate(2px, -2px); }
.profit-copy.copied { color: #10b981; border-color: #a7f3d0; background: #ecfdf5; }
.profit-copy.copied::before, .profit-copy.copied::after { background: #ecfdf5; }
.profit-date { line-height: 1.45; color: #5d6676; white-space: nowrap; }
.profit-num { font-weight: 600; color: #646b77; white-space: nowrap; }
.profit-num.neg { color: #ff4d4f; }
.profit-num.pos { color: #20c467; }
.player-tag { display: inline-flex; align-items: center; justify-content: center; min-width: 72px; height: 24px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.tag-low { color: #64748b; background: #f1f5f9; }
.tag-mid { color: #2563eb; background: #dbeafe; }
.tag-premium { color: #047857; background: #d1fae5; }
.tag-risk { color: #b45309; background: #fef3c7; }
.profit-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 16px; padding: 8px 20px 16px; color: #6c7482; font-size: 14px; flex-wrap: wrap; }
.account-card > .profit-pagination, .profit-card > .profit-pagination { margin-top: auto; padding: 16px 20px 18px; border-top: 1px solid #edf1f6; background: #fff; }
.profit-page-size { display: inline-flex; align-items: center; gap: 8px; }
.profit-size-select { height: 34px; min-width: 80px; border: 1px solid #d9dee8; border-radius: 6px; padding: 0 10px; background: #fff; color: #495566; }
.profit-pages { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.profit-page-btn { width: 38px; height: 38px; border: 1px solid #e0e5ef; background: #fff; color: #5a6472; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.profit-page-btn.active { background: #409eff; color: #fff; border-color: #409eff; }
.profit-page-btn.ellipsis { border-color: transparent; background: transparent; }
.profit-page-jump { display: flex; align-items: center; gap: 10px; }
.profit-page-input { width: 72px; height: 38px; border: 1px solid #d9dee8; border-radius: 4px; padding: 0 10px; text-align: center; }
.stats-page { padding: 0 24px 32px; }
.stats-card { width: 100%; max-width: none; padding: 0; overflow: hidden; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.stats-toolbar { display: flex; align-items: center; gap: 12px; padding: 18px 20px 14px; border-bottom: 1px solid #e8edf5; background: #fff; }
.stats-filter { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.stats-filter span { color: #5f6b7a; font-size: 14px; font-weight: 700; white-space: nowrap; }
.stats-input { width: 170px; height: 38px; border: 1px solid #d9dee8; border-radius: 6px; padding: 0 12px; color: #3f4b5b; font-size: 14px; background: #fff; outline: none; transition: border-color .15s ease, box-shadow .15s ease; }
.stats-game-picker { width: 240px; }
.stats-game-picker .game-picker-trigger { height: 38px; }
.stats-game-options .game-option.active { border-color: #1677ff; box-shadow: inset 0 0 0 2px rgba(22, 119, 255, .28), 0 0 0 2px rgba(22, 119, 255, .12); }
select.stats-input { appearance: none; padding-right: 32px; background-image: linear-gradient(45deg, transparent 50%, #8a93a3 50%), linear-gradient(135deg, #8a93a3 50%, transparent 50%); background-position: calc(100% - 16px) 16px, calc(100% - 10px) 16px; background-size: 6px 6px; background-repeat: no-repeat; }
.stats-input:focus { border-color: #409eff; box-shadow: 0 0 0 3px rgba(64, 158, 255, .12); }
.stats-table-wrap { flex: 1 1 auto; min-height: 0; padding: 0 20px 18px; overflow-x: auto; }
.stats-card > .profit-pagination { margin-top: auto; padding: 16px 20px 18px; border-top: 1px solid #edf1f6; background: #fff; }
.stats-table { width: 100%; border-top: 0; }
.stats-table.site { min-width: 1580px; }
.stats-table.retention { min-width: 1440px; }
.stats-table.retention-player { min-width: 1280px; }
.stats-row { display: grid; align-items: center; min-height: 64px; border-bottom: 1px solid #e8edf5; color: #505a69; font-size: 14px; }
.stats-table.site .stats-row { grid-template-columns: minmax(70px, .55fr) minmax(90px, .7fr) minmax(180px, 1.4fr) minmax(150px, 1.15fr) minmax(150px, 1.15fr) minmax(130px, 1fr) minmax(150px, 1.15fr) minmax(110px, .85fr) minmax(90px, .7fr) minmax(120px, .9fr) minmax(110px, .85fr) minmax(120px, .9fr); }
.stats-table.site.hide-game-name { min-width: 1420px; }
.stats-table.site.hide-game-name .stats-row { grid-template-columns: minmax(70px, .55fr) minmax(90px, .7fr) minmax(150px, 1.2fr) minmax(150px, 1.2fr) minmax(130px, 1fr) minmax(150px, 1.2fr) minmax(110px, .85fr) minmax(90px, .7fr) minmax(120px, .95fr) minmax(110px, .85fr) minmax(120px, .95fr); }
.stats-table.retention .stats-row { grid-template-columns: minmax(180px, 1.25fr) minmax(140px, 1fr) minmax(140px, 1fr) minmax(140px, 1fr) minmax(140px, 1fr) minmax(140px, 1fr) minmax(150px, 1.05fr) minmax(150px, 1.05fr) minmax(150px, 1.05fr); }
.stats-table.retention-player .stats-row { grid-template-columns: minmax(180px, 1.15fr) minmax(160px, 1fr) minmax(160px, 1fr) minmax(170px, 1.05fr) minmax(170px, 1.05fr) minmax(170px, 1.05fr) minmax(180px, 1.15fr) minmax(180px, 1.15fr); }
.stats-row.header { min-height: 48px; background: #f6f8fb; color: #4c5a6f; font-weight: 700; }
.stats-row > div { min-width: 0; padding: 10px 12px; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; text-overflow: ellipsis; }
.stats-row:not(.header):hover { background: #fbfdff; }
.game-name-cell { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 0; color: #344054; font-weight: 700; }
.game-avatar { width: 34px; height: 34px; flex-shrink: 0; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .6); background: radial-gradient(circle at 62% 30%, #ff4d4f 0 18%, transparent 19%), linear-gradient(135deg, #111827 0%, #25324a 45%, #d92d20 100%); box-shadow: 0 6px 14px rgba(29, 41, 57, .14); }
.api-access-page { padding: 0 24px 34px; background: #f5f7fb; }
.api-page-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 0 14px; }
.api-page-head .page-title { margin-bottom: 6px; }
.api-doc-link, .api-text-btn, .api-link-btn { border: 0; background: transparent; color: #1677ff; font-size: 14px; font-weight: 700; cursor: pointer; }
.api-doc-link { height: 38px; padding: 0 14px; border-radius: 8px; background: #eef6ff; }
.api-doc-link:hover, .api-text-btn:hover, .api-link-btn:hover { color: #0958d9; }
.api-card { width: 100%; margin: 0 0 16px; padding: 22px 24px; border: 1px solid #e7eef8; border-radius: 14px; background: #fff; box-shadow: 0 8px 22px rgba(31, 45, 61, .06); }
.api-overview-card { padding: 18px 24px; }
.api-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.api-card-head h2 { margin: 0; color: #1f2d3d; font-size: 18px; line-height: 1.3; }
.api-card-head p { margin: 6px 0 0; color: #7a8494; font-size: 13px; }
.api-overview-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.api-overview-item { min-height: 86px; padding: 15px 16px; border: 1px solid #e8f0fb; border-radius: 12px; background: linear-gradient(180deg, #fbfdff, #f6f9ff); display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.api-overview-item span { color: #7a8494; font-size: 13px; font-weight: 700; }
.api-overview-item strong { color: #213149; font-size: 20px; line-height: 1; }
.api-pill { display: inline-flex; align-items: center; justify-content: center; width: fit-content; min-width: 58px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-style: normal; font-weight: 800; }
.api-pill.green { color: #389e0d; background: #f0f9e8; border: 1px solid #d7efc5; }
.api-pill.gray { color: #667085; background: #f2f4f7; border: 1px solid #e4e7ec; }
.api-form, .api-sign-tool { display: grid; gap: 14px; }
.api-config-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; align-items: stretch; }
.api-config-section { min-width: 0; padding: 14px; border: 1px solid #e8f0fb; border-radius: 12px; background: #fbfdff; }
.api-config-basic { display: grid; gap: 16px; align-content: start; }
.api-config-callbacks { display: grid; gap: 12px; align-content: start; }
.api-config-basic .api-field { grid-template-columns: 1fr; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid #e8f0fb; }
.api-config-basic .api-field:last-child { padding-bottom: 0; border-bottom: 0; }
.api-config-basic .api-control-group { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; }
.api-config-basic .api-field > span { font-size: 15px; }
.api-field { display: grid; grid-template-columns: 168px minmax(0, 1fr); align-items: center; gap: 18px; margin: 0; }
.api-field > span { color: #4b5565; font-size: 14px; font-weight: 800; text-align: left; }
.api-control-group { display: flex; align-items: center; gap: 10px; min-width: 0; }
.api-basic-field .api-control-group { width: 100%; max-width: 100%; }
.api-basic-mode { gap: 6px; }
.api-basic-mode > span { display: inline-flex; align-items: center; gap: 8px; width: fit-content; margin-bottom: 2px; color: #344054; }
.api-basic-mode > span::after { content: ""; width: 8px; height: 8px; border-radius: 999px; background: #1677ff; box-shadow: 0 0 0 4px rgba(22, 119, 255, .12); }
.api-basic-mode .api-control-group { grid-template-columns: minmax(0, 1fr); max-width: 260px; }
.api-basic-mode .api-input, .api-basic-merchant .api-input { width: 100%; max-width: 100%; }
.api-basic-key .api-input { width: 100%; min-width: 0; }
.api-input { width: 100%; height: 40px; border: 1px solid #d8e0ec; border-radius: 8px; padding: 0 13px; color: #344054; font-size: 14px; background: #fff; outline: none; transition: border-color .15s ease, box-shadow .15s ease; }
.api-input:focus { border-color: #1677ff; box-shadow: 0 0 0 3px rgba(22, 119, 255, .12); }
.api-input[readonly] { background: #f7f9fc; color: #5d6677; }
.api-input.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.api-btn { height: 40px; min-width: 76px; padding: 0 15px; border: 1px solid #d8e0ec; border-radius: 8px; background: #fff; color: #536071; font-size: 14px; font-weight: 800; cursor: pointer; transition: all .15s ease; white-space: nowrap; }
.api-btn:hover { border-color: #1677ff; color: #1677ff; }
.api-btn.primary { border-color: #1677ff; background: #1677ff; color: #fff; }
.api-btn.primary:hover { background: #0958d9; box-shadow: 0 7px 16px rgba(22, 119, 255, .2); }
.api-btn.warning { border-color: #faad43; background: #fa8c16; color: #fff; }
.api-btn.warning:hover { border-color: #d46b08; background: #d46b08; color: #fff; }
.api-btn.ghost { color: #1677ff; background: #eef6ff; border-color: #bad9ff; }
.api-btn.copied, .api-url.copied { color: #389e0d; border-color: #b7eb8f; background: #f6ffed; }
.api-doc-row { min-height: 0; }
.api-config-basic .api-doc-row { gap: 12px; justify-items: center; text-align: center; }
.api-config-basic .api-doc-row > span { justify-self: center; }
.api-doc-actions { display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap; width: 100%; }
.api-config-callbacks .api-callback-field { grid-template-columns: 1fr; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid #e8f0fb; }
.api-config-callbacks .api-callback-field:last-child { padding-bottom: 0; border-bottom: 0; }
.api-config-callbacks .api-callback-field > span { line-height: 1.35; }
.api-config-callbacks .api-control-group { display: grid; grid-template-columns: minmax(220px, 1fr) 76px 76px; align-items: center; gap: 8px; }
.api-callback-field { grid-template-columns: 168px minmax(0, 1fr); }
.api-callback-field .api-control-group { display: grid; grid-template-columns: minmax(0, 1fr) 76px 76px minmax(150px, 190px); align-items: center; }
.api-config-callbacks .api-callback-field .api-control-group { grid-template-columns: minmax(220px, 1fr) 76px 76px; }
.api-field-note { color: #697386; font-size: 13px; font-style: normal; white-space: normal; line-height: 1.35; }
.return-url-field { margin-top: 0; padding-top: 0; border-top: 0; }
.api-accordion { display: grid; gap: 10px; }
.api-group { border: 1px solid #e7eef8; border-radius: 12px; background: #fff; overflow: hidden; }
.api-group summary { min-height: 52px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #2d3748; font-size: 15px; font-weight: 800; cursor: pointer; list-style: none; background: #f8fbff; }
.api-group summary::-webkit-details-marker { display: none; }
.api-group summary::after { content: "⌄"; color: #7a8494; transition: transform .15s ease; }
.api-group[open] summary::after { transform: rotate(180deg); }
.api-group summary em { margin-left: auto; color: #8a93a3; font-size: 12px; font-style: normal; font-weight: 700; }
.api-endpoints { display: grid; }
.api-endpoint { display: grid; grid-template-columns: minmax(0, 1fr) 80px; align-items: center; gap: 14px; min-height: 58px; padding: 12px 16px; border-top: 1px solid #eef2f7; }
.api-endpoint > div { min-width: 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.api-endpoint strong { color: #4b5565; font-size: 14px; }
.api-endpoint > span { justify-self: end; min-width: 58px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; color: #fa8c16; background: #fff7e8; border: 1px solid #ffe2b8; font-size: 12px; font-weight: 800; }
.api-url { max-width: 100%; border: 1px solid transparent; border-radius: 7px; padding: 5px 8px; color: #1677ff; background: #f3f8ff; font-size: 13px; text-align: left; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.api-url:hover { border-color: #bad9ff; background: #eaf4ff; }
.api-textarea { min-height: 78px; padding-top: 10px; resize: vertical; line-height: 1.5; }
.api-sign-tool .api-control-group { align-items: stretch; }
.api-sign-tool .api-control-group .api-btn { height: auto; min-height: 78px; }
.api-textarea.output { min-height: 72px; }
.report-data-page { padding: 0 24px 32px; }
.report-card { width: 100%; max-width: none; flex: 1 1 auto; min-height: 0; padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.report-toolbar { padding: 18px 20px 14px; background: #fff; border-bottom: 1px solid #edf1f6; }
.report-toolbar-inline { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.report-toolbar-stacked { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.report-filter-line { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; min-width: 0; }
.report-filter-grid { display: grid; gap: 14px 22px; align-items: center; width: 100%; }
.platform-profit-filters { grid-template-columns: 420px 420px 420px; }
.platform-profit-filters .report-date-filter { grid-column: 1 / 3; }
.platform-profit-filters .report-actions { grid-column: 3 / 4; }
.daily-report-filters { grid-template-columns: minmax(230px, 280px) minmax(380px, 430px) auto auto; gap: 12px 16px; width: auto; flex: 1 1 auto; }
.report-filter { display: flex; align-items: center; gap: 10px; min-width: 0; color: #5f646f; font-size: 14px; font-weight: 700; }
.report-filter > span:first-child { flex-shrink: 0; white-space: nowrap; }
.report-date-filter { min-width: 0; }
.report-control { width: 240px; height: 38px; border: 1px solid #d9dee8; border-radius: 5px; padding: 0 12px; color: #5f646f; font-size: 14px; background: #fff; outline: none; transition: border-color .15s ease, box-shadow .15s ease; }
select.report-control { appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, #a4acb9 50%), linear-gradient(135deg, #a4acb9 50%, transparent 50%); background-position: calc(100% - 20px) 16px, calc(100% - 13px) 16px; background-size: 7px 7px; background-repeat: no-repeat; }
.report-control:focus { border-color: #409eff; box-shadow: 0 0 0 3px rgba(64, 158, 255, .12); }
.report-control::placeholder { color: #b4bac6; }
.report-date-range { position: relative; width: 420px; max-width: 100%; height: 38px; border: 1px solid #d9dee8; border-radius: 5px; display: grid; grid-template-columns: 1fr 28px 1fr; align-items: center; padding: 0 12px 0 42px; background: #fff; color: #60656f; font-weight: 500; }
.report-date-range::before { content: ""; position: absolute; left: 18px; top: 50%; width: 16px; height: 15px; border: 1.5px solid #a8b0bd; border-radius: 2px; transform: translateY(-50%); }
.report-date-range::after { content: ""; position: absolute; left: 18px; top: calc(50% - 4px); width: 16px; height: 1.5px; background: #a8b0bd; box-shadow: 3px -5px 0 -1px #a8b0bd, 11px -5px 0 -1px #a8b0bd; }
.report-date-range input { min-width: 0; width: 100%; height: 36px; border: 0; color: #60656f; font: inherit; text-align: center; background: transparent; outline: none; }
.report-date-range em { color: #30343b; font-style: normal; text-align: center; }
.report-actions, .report-periods { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; }
.report-search-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.report-search-icon { position: relative; display: inline-block; width: 16px; height: 16px; border: 2px solid currentColor; border-radius: 50%; flex-shrink: 0; }
.report-search-icon::after { content: ""; position: absolute; right: -6px; bottom: -4px; width: 8px; height: 2px; border-radius: 999px; background: currentColor; transform: rotate(45deg); transform-origin: left center; }
.report-export-btn { min-width: 88px; flex: 0 0 auto; }
.daily-report-filters .profit-btn { min-width: 72px; padding: 0 14px; }
.report-table-wrap { flex: 1 1 auto; min-height: 0; padding: 0 20px; overflow-x: auto; }
.report-table { width: 100%; min-width: 1200px; }
.game-data-table { min-width: 1180px; }
.platform-profit-table { min-width: 1820px; }
.daily-report-table { min-width: 1780px; }
.report-row { display: grid; align-items: center; min-height: 82px; border-bottom: 1px solid #e8edf5; color: #5d626c; font-size: 15px; }
.game-data-table .report-row { grid-template-columns: 1.25fr 1fr 1.15fr 1.15fr 1.15fr .95fr; }
.platform-profit-table .report-row { grid-template-columns: minmax(230px, 1.45fr) minmax(165px, 1fr) minmax(165px, 1fr) minmax(155px, .95fr) minmax(185px, 1.15fr) minmax(145px, .9fr) minmax(140px, .85fr) minmax(190px, 1.2fr) minmax(120px, .75fr) minmax(145px, .9fr); }
.daily-report-table .report-row { grid-template-columns: minmax(54px, .35fr) minmax(210px, 1.35fr) minmax(150px, .95fr) minmax(165px, 1.05fr) minmax(165px, 1.05fr) minmax(150px, .95fr) minmax(145px, .9fr) minmax(170px, 1.08fr) minmax(145px, .9fr) minmax(145px, .9fr) minmax(130px, .82fr); }
.report-row.header { min-height: 68px; background: #f7f8fa; color: #4f5a70; font-weight: 700; }
.report-row > div { min-width: 0; padding: 12px 14px; display: flex; align-items: center; justify-content: center; gap: 6px; text-align: center; overflow: hidden; text-overflow: ellipsis; }
.report-row:not(.header):hover { background: #fbfdff; }
.report-game-cell { justify-content: flex-start !important; text-align: left !important; color: #5f646f; font-weight: 500; white-space: nowrap; }
.report-game-cell span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.report-game-thumb { width: 56px; height: 56px; flex-shrink: 0; border-radius: 1px; border: 1px solid rgba(255,255,255,.85); background: radial-gradient(circle at 20% 80%, rgba(239, 68, 68, .9) 0 3px, transparent 4px), radial-gradient(circle at 58% 22%, rgba(244, 63, 94, .95) 0 7px, transparent 8px), linear-gradient(154deg, #05070b 0 42%, #151923 43% 62%, #e91e4f 63% 68%, #0b0d12 69% 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.04); }
.help-dot { width: 16px; height: 16px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; border-radius: 50%; background: #a8c8fb; color: #fff; font-size: 11px; font-weight: 700; line-height: 1; }
.report-expand { color: #8a93a3; font-size: 22px; }
.report-pagination { margin-top: auto; padding: 16px 20px; border-top: 1px solid #edf1f6; }
.report-pagination .profit-page-btn.disabled { color: #b7bdc8; background: #f5f7fa; border-color: #f0f2f5; }
.merchant-report-page { padding: 0 24px 32px; color: #333; }
.merchant-report-card { width: 100%; max-width: none; min-height: calc(100vh - 116px); padding: 0; overflow: hidden; display: flex; flex-direction: column; border-color: #e8edf5; }
.merchant-report-page .profit-btn.primary { background: #1677ff; border-color: #1677ff; color: #fff; }
.merchant-report-page .profit-btn.primary:hover { background: #0958d9; border-color: #0958d9; box-shadow: 0 7px 16px rgba(22, 119, 255, .18); }
.merchant-toolbar { padding: 18px 20px 16px; background: #fff; border-bottom: 1px solid #edf1f6; }
.merchant-filter-grid { display: grid; grid-template-columns: minmax(260px, 360px) minmax(188px, 1fr); gap: 14px 18px; align-items: center; }
.merchant-date-filter { min-width: 0; }
.merchant-month-control { position: relative; width: 100%; height: 40px; border: 1px solid #d9dee8; border-radius: 8px; display: flex; align-items: center; padding: 0 12px 0 42px; background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
.merchant-month-control::before { content: ""; position: absolute; left: 16px; top: 50%; width: 16px; height: 15px; border: 1.5px solid #a8b0bd; border-radius: 2px; transform: translateY(-50%); }
.merchant-month-control::after { content: ""; position: absolute; left: 16px; top: calc(50% - 4px); width: 16px; height: 1.5px; background: #a8b0bd; box-shadow: 3px -5px 0 -1px #a8b0bd, 11px -5px 0 -1px #a8b0bd; }
.merchant-month-control:focus-within { border-color: #1677ff; box-shadow: 0 0 0 3px rgba(22, 119, 255, .12); }
.merchant-month-control input { width: 100%; height: 38px; border: 0; outline: none; background: transparent; color: #4f5d70; font-size: 15px; font-weight: 700; }
.merchant-month-control input::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .72; }
.merchant-search-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.merchant-reset-btn { color: #fff; background: #8c919b; border-color: #8c919b; }
.merchant-reset-btn:hover { color: #fff; background: #7f848e; border-color: #7f848e; }
.merchant-periods { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; padding-left: 52px; }
.merchant-period-btn { height: 32px; min-width: 68px; padding: 0 13px; border: 1px solid #d8e7ff; border-radius: 7px; background: #f4f8ff; color: #1677ff; font-size: 13px; font-weight: 700; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease; }
.merchant-period-btn:hover, .merchant-period-btn.active { color: #fff; background: #1677ff; border-color: #1677ff; box-shadow: 0 6px 14px rgba(22, 119, 255, .18); }
.merchant-table-section { padding: 0 20px 0; background: #fff; flex: 1; display: flex; flex-direction: column; min-height: 0; }
.merchant-table-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0 12px; }
.merchant-table-head h2 { margin: 0; color: #333; font-size: 16px; font-weight: 700; }
.merchant-table-head p { margin: 5px 0 0; color: #666; font-size: 13px; }
.merchant-tool-row { display: flex; justify-content: flex-end; gap: 10px; flex-shrink: 0; }
.merchant-export-btn { position: relative; width: 38px; height: 38px; border: 1px solid #cfe2ff; border-radius: 8px; background: #f4f8ff; color: #1677ff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 10px rgba(22, 119, 255, .08); transition: color .15s ease, border-color .15s ease, background-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.merchant-export-btn::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); padding: 5px 8px; border-radius: 5px; background: rgba(31, 45, 61, .92); color: #fff; font-size: 12px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s ease; }
.merchant-export-btn:hover { color: #fff; border-color: #1677ff; background: #1677ff; box-shadow: 0 8px 16px rgba(22, 119, 255, .2); transform: translateY(-1px); }
.merchant-export-btn:hover::after { opacity: 1; }
.merchant-export-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.merchant-table-wrap { flex: 1 1 auto; min-height: 0; overflow-x: auto; }
.merchant-table { width: 100%; min-width: 1160px; min-height: 430px; border: 1px solid #e2e7ef; border-radius: 8px; overflow: hidden; background: #fff; }
.merchant-row { display: grid; grid-template-columns: minmax(230px, 1.35fr) minmax(150px, .9fr) minmax(150px, .9fr) minmax(200px, 1.2fr) minmax(210px, 1.25fr) minmax(180px, 1.05fr) minmax(160px, .95fr); align-items: center; min-height: 64px; border-bottom: 1px solid #e8edf5; color: #333; font-size: 15px; }
.merchant-row.header { min-height: 54px; background: #f6f7f9; color: #333; font-weight: 700; }
.merchant-row > div { min-width: 0; padding: 11px 14px; display: flex; align-items: center; justify-content: center; gap: 6px; text-align: center; overflow: hidden; text-overflow: ellipsis; }
.merchant-row:not(.header):nth-child(odd) { background: #fbfcff; }
.merchant-row:not(.header):hover { background: #eef6ff; }
.merchant-row > .merchant-money { justify-content: center; text-align: center; font-variant-numeric: tabular-nums; font-weight: 800; }
.merchant-row > .merchant-money.pos { color: #52c41a; }
.merchant-row > .merchant-money.fee { color: #1677ff; }
.merchant-date-text { white-space: nowrap; }
.merchant-detail-btn { min-width: 104px; border-radius: 8px; }
.merchant-pagination { padding: 14px 20px 18px; border-top: 1px solid #edf1f6; justify-content: space-between; }
.merchant-pagination .profit-page-btn.disabled { color: #b7bdc8; background: #f5f7fa; border-color: #f0f2f5; }
.account-table-wrap, .profit-table-wrap, .stats-table-wrap, .report-table-wrap, .merchant-table-wrap { scrollbar-width: thin; scrollbar-color: #9aacc2 #eef4fb; }
.account-table-wrap::-webkit-scrollbar, .profit-table-wrap::-webkit-scrollbar, .stats-table-wrap::-webkit-scrollbar, .report-table-wrap::-webkit-scrollbar, .merchant-table-wrap::-webkit-scrollbar { height: 12px; }
.account-table-wrap::-webkit-scrollbar-track, .profit-table-wrap::-webkit-scrollbar-track, .stats-table-wrap::-webkit-scrollbar-track, .report-table-wrap::-webkit-scrollbar-track, .merchant-table-wrap::-webkit-scrollbar-track { margin: 0 4px; border-radius: 999px; background: #eef4fb; border: 1px solid #dfeaf5; }
.account-table-wrap::-webkit-scrollbar-thumb, .profit-table-wrap::-webkit-scrollbar-thumb, .stats-table-wrap::-webkit-scrollbar-thumb, .report-table-wrap::-webkit-scrollbar-thumb, .merchant-table-wrap::-webkit-scrollbar-thumb { border: 3px solid #eef4fb; border-radius: 999px; background: linear-gradient(90deg, #9fb0c6, #7f92aa); }
.account-table-wrap::-webkit-scrollbar-thumb:hover, .profit-table-wrap::-webkit-scrollbar-thumb:hover, .stats-table-wrap::-webkit-scrollbar-thumb:hover, .report-table-wrap::-webkit-scrollbar-thumb:hover, .merchant-table-wrap::-webkit-scrollbar-thumb:hover { background: linear-gradient(90deg, #8195af, #61758f); }
.placeholder-card { max-width: 1180px; min-height: 420px; }
.placeholder-body { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.metric { border: 1px solid #ebeef5; border-radius: 8px; padding: 18px; background: #fafcff; }
.metric-label { color: #909399; font-size: 13px; }
.metric-value { margin-top: 10px; color: #202b3c; font-size: 24px; font-weight: 600; }
.table-mock { margin-top: 20px; border: 1px solid #ebeef5; border-radius: 8px; overflow: hidden; }
.table-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; border-bottom: 1px solid #ebeef5; min-height: 44px; align-items: center; padding: 0 16px; color: #606266; font-size: 13px; }
.table-row:last-child { border-bottom: none; }
.table-row.header { background: #f7f9fc; color: #303133; font-weight: 500; }
@media (max-width: 1400px) {
  .control-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .platform-profit-filters, .daily-report-filters { grid-template-columns: repeat(2, minmax(280px, 1fr)); }
  .platform-profit-filters .report-date-filter, .platform-profit-filters .report-actions, .daily-report-filters .report-date-filter, .daily-report-filters .report-periods, .daily-report-filters .report-actions { grid-column: auto; }
  .report-filter { align-items: flex-start; flex-direction: column; gap: 8px; }
  .report-control, .report-date-range { width: 100%; }
  .merchant-date-filter { align-items: center; flex-direction: row; gap: 14px; }
}
@media (max-width: 960px) {
  .sidebar { width: 190px; }
  .topbar { padding-right: 12px; }
  .topbar-right { gap: 8px; }
  .card { max-width: none; padding: 20px; }
  .report-card { padding: 0; }
  .game-control-page { padding: 0 16px 24px; }
  .game-control-page .card { padding: 0; }
  .player-account-page { padding: 0 16px 24px; }
  .account-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-toolbar { flex-direction: column; }
  .account-filters { width: 100%; grid-template-columns: repeat(2, minmax(240px, 1fr)); }
  .account-date-filter { grid-column: 1 / -1; }
  .account-actions { width: 100%; justify-content: flex-end; }
  .account-table-wrap { padding: 0 16px 12px; }
  .player-profit-page { padding: 0 16px 24px; }
  .stats-page { padding: 0 16px 24px; }
  .api-access-page { padding: 0 16px 24px; }
  .api-overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-data-page { padding: 0 16px 24px; }
  .merchant-report-page { padding: 0 16px 24px; }
  .profit-toolbar { padding: 16px 16px 12px; align-items: stretch; }
  .profit-table-wrap { padding: 0 16px 12px; }
  .stats-toolbar { padding: 16px; flex-wrap: wrap; }
  .stats-table-wrap { padding: 0 16px 12px; }
  .report-toolbar { padding: 16px; }
  .report-toolbar-stacked { align-items: stretch; flex-direction: column; }
  .report-table-wrap { padding: 0 16px; }
  .merchant-toolbar, .merchant-table-section { padding-left: 16px; padding-right: 16px; }
  .merchant-table-wrap { padding: 0; }
  .merchant-pagination { padding: 14px 16px; }
  .profit-pagination { padding: 6px 16px 14px; justify-content: center; }
  .report-pagination { padding: 14px 16px; }
  .game-picker-panel { width: min(760px, calc(100vw - 64px)); }
  .placeholder-body { grid-template-columns: 1fr; }
}
@media (max-width: 1120px) {
  .api-config-grid { grid-template-columns: 1fr; }
  .api-config-callbacks .api-control-group, .api-config-callbacks .api-callback-field .api-control-group { grid-template-columns: minmax(0, 1fr) 76px 76px; }
  .profit-toolbar { align-items: stretch; }
  .profit-filters { flex-basis: 100%; grid-template-columns: minmax(220px, 1fr) minmax(260px, 1fr); }
  .profit-filter.date-filter { grid-column: 1 / -1; }
  .profit-actions { width: 100%; justify-content: flex-end; }
}
@media (max-width: 820px) {
  .admin-layout { flex-direction: column; }
  .sidebar { width: 100%; position: static; height: auto; overflow: visible; border-right: 0; border-bottom: 1px solid #e8edf3; box-shadow: none; }
  .admin-layout.sidebar-collapsed .sidebar { width: 100%; }
  .admin-layout.sidebar-collapsed .logo-text, .admin-layout.sidebar-collapsed .chevron { display: initial; }
  .admin-layout.sidebar-collapsed .submenu-list { display: flex; }
  .admin-layout.sidebar-collapsed .logo { justify-content: flex-start; padding: 0 16px; }
  .admin-layout.sidebar-collapsed .menu { padding: 12px; }
  .admin-layout.sidebar-collapsed .menu-item, .admin-layout.sidebar-collapsed .submenu-title { justify-content: space-between; padding: 0 12px 0 16px; }
  .admin-layout.sidebar-collapsed .menu-left { justify-content: flex-start; gap: 14px; font-size: inherit; }
  .menu { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; }
  .menu-item, .submenu-title { flex: 1 1 180px; }
  .submenu { margin: 0; flex: 1 1 180px; }
  .submenu-list { padding: 8px 0 0; display: flex; gap: 8px; flex-wrap: wrap; }
  .submenu-item { flex: 1 1 160px; }
  .main { min-height: 0; }
  .topbar { height: auto; flex-wrap: wrap; align-items: flex-start; gap: 10px; padding: 12px 16px; }
  .topbar-left, .topbar-right { flex-wrap: wrap; row-gap: 8px; }
  .content { padding: 16px; }
  .card { padding: 18px 18px 20px; }
  .report-card { padding: 0; }
  .control-card-head, .form-section-head { align-items: flex-start; flex-direction: column; }
  .control-card-head { gap: 12px; padding: 18px 18px 16px; }
  .control-form { grid-template-columns: 1fr; padding: 18px; }
  .game-control-card .form-row { grid-template-columns: 1fr; gap: 8px; padding: 16px 18px; }
  .game-control-card .form-label { width: auto; text-align: left; line-height: 1.4; }
  .footer.control-footer { margin: 0; padding: 0; }
  .control-player-report { margin: 0 -18px -18px; }
  .control-report-head { align-items: flex-start; flex-direction: column; }
  .footer.control-footer .el-button { flex: 1 1 140px; }
  .form-block + .form-block { margin-top: 0; padding-top: 0; }
  .account-summary { grid-template-columns: 1fr; }
  .account-filters { grid-template-columns: 1fr; gap: 14px; }
  .account-filter { width: 100%; }
  .account-input { width: 100%; }
  .account-date-filter { grid-template-columns: 1fr; }
  .account-date-filter > span, .account-date-filter .profit-date-range-sep { width: 100%; }
  .account-actions { width: 100%; }
  .account-actions .profit-btn { flex: 1 1 120px; }
  .profit-filters { grid-template-columns: 1fr; gap: 14px; width: 100%; }
  .profit-input, .profit-input.date, .profit-select { width: 100%; }
  .profit-date-control { width: 100%; grid-template-columns: 1fr; }
  .profit-date-range-sep { width: 100%; }
  .game-picker { width: 100%; }
  .game-picker-panel { width: calc(100vw - 32px); }
  .game-options { grid-template-columns: repeat(4, minmax(0, 1fr)); min-height: 320px; }
  .profit-filter { width: 100%; }
  .profit-actions { width: 100%; }
  .profit-btn { flex: 1 1 120px; }
  .stats-toolbar { align-items: stretch; }
  .stats-filter { width: 100%; }
  .stats-input { width: 100%; }
  .stats-toolbar .profit-btn { flex: 1 1 120px; }
  .api-page-head, .api-card-head { flex-direction: column; align-items: stretch; }
  .api-doc-link { width: 100%; }
  .api-card { padding: 18px; border-radius: 12px; }
  .api-overview-grid { grid-template-columns: 1fr; }
  .api-field { grid-template-columns: 1fr; gap: 8px; }
  .api-control-group { flex-direction: column; align-items: stretch; }
  .api-basic-field .api-control-group { width: 100%; }
  .api-basic-mode .api-input, .api-basic-merchant .api-input, .api-basic-key .api-input { width: 100%; max-width: none; }
  .api-callback-field .api-control-group { display: flex; grid-template-columns: none; }
  .api-field-note { white-space: normal; }
  .api-btn, .api-sign-tool .api-control-group .api-btn { width: 100%; height: 40px; min-height: 40px; }
  .api-endpoint { grid-template-columns: 1fr; gap: 8px; }
  .api-endpoint > span { justify-self: start; }
  .api-url { width: 100%; }
  .report-toolbar-inline, .report-toolbar-stacked { flex-direction: column; }
  .report-filter-line, .report-actions, .report-periods { width: 100%; }
  .platform-profit-filters, .daily-report-filters { grid-template-columns: 1fr; }
  .report-export-btn { width: 100%; }
  .merchant-filter-grid { grid-template-columns: 1fr; }
  .merchant-date-filter { align-items: flex-start; flex-direction: column; gap: 8px; }
  .merchant-search-actions, .merchant-periods { width: 100%; }
  .merchant-periods { padding-left: 0; }
  .merchant-search-actions .profit-btn, .merchant-periods .profit-btn { flex: 1 1 120px; }
}
@media (max-width: 560px) {
  .logo { padding: 0 16px; }
  .menu { padding: 10px 8px; }
  .menu-item, .submenu-title, .submenu-item { height: 40px; }
  .page-title { font-size: 18px; }
  .game-control-page .page-title { font-size: 20px; }
  .game-control-card .form-row { padding: 14px 16px; }
  .rtp-panel, .release-field { align-items: stretch; }
  .control-textarea, .control-select, .control-number, .control-number-wide { width: 100%; max-width: none; }
  .rtp-gear-row { width: 100%; }
  .rtp-gear-row .control-number { width: 100%; max-width: none; }
  .rounds-extra { margin-left: 0; white-space: normal; }
  .footer.control-footer { margin: 0; padding: 0; }
  .control-player-report { margin: 0 -16px -16px; }
  .footer.control-footer .el-button { width: 100%; }
  .time { white-space: normal; }
  .form-block + .form-block { margin-top: 0; padding-top: 0; }
  .player-profit-tabs { margin-bottom: 10px; }
  .profit-tab { flex: 1 1 140px; justify-content: center; }
  .game-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .profit-btn { width: 100%; }
  .profit-page-btn { width: 34px; height: 34px; }
}

.topbar-select {
  min-width: 92px;
  height: 32px;
  border: 1px solid #e0e6ef;
  border-radius: 6px;
  background: #fff;
  color: #4f5d70;
  padding: 0 8px;
}

.management-content {
  min-height: calc(100vh - 58px);
  display: flex;
  flex-direction: column;
}

.page-frame {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: calc(100vh - 102px);
}

.page-heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-description {
  margin: 0;
  color: #7a8597;
  font-size: 13px;
  line-height: 1.5;
}

.management-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.summary-card {
  min-height: 98px;
  padding: 16px 18px;
  border: 1px solid #e3eaf4;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(31, 45, 61, .04);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.summary-label {
  color: #667085;
  font-size: 13px;
  font-weight: 600;
}

.summary-value {
  color: #202b3c;
  font-size: 28px;
  line-height: 1;
}

.summary-meta {
  color: #8a94a6;
  font-size: 12px;
}

.summary-card.positive .summary-value { color: #0f9b6f; }
.summary-card.warning .summary-value { color: #c98418; }
.summary-card.danger .summary-value { color: #d9485f; }

.dashboard-module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-module-card {
  min-height: 112px;
  padding: 18px;
  border: 1px solid #e3eaf4;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.dashboard-module-card:hover {
  border-color: #cfe0ff;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(22, 119, 255, .08);
}

.dashboard-module-card strong {
  color: #22314a;
  font-size: 15px;
}

.dashboard-module-card span {
  color: #667085;
  font-size: 13px;
  line-height: 1.6;
}

.dashboard-panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-panel,
.dashboard-panel-full,
.page-table-card,
.form-shell-card {
  width: 100%;
  max-width: none;
  padding: 0;
  overflow: hidden;
}

.dashboard-panel-full {
  flex: 1 1 auto;
}

.dashboard-panel-head,
.preview-section-head,
.page-table-head,
.form-section-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.dashboard-panel-head,
.preview-section-head,
.page-table-head {
  padding: 18px 20px 14px;
}

.dashboard-panel-head h2,
.preview-section-head h2,
.page-table-head h2,
.form-section-card-head h2 {
  margin: 0;
  color: #202b3c;
  font-size: 16px;
  font-weight: 700;
}

.dashboard-panel-head p,
.preview-section-head p,
.page-table-head p,
.form-section-card-head p {
  margin: 5px 0 0;
  color: #7a8597;
  font-size: 12px;
  line-height: 1.5;
}

.page-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px 16px;
  border-bottom: 1px solid #edf1f6;
  background: #fff;
}

.filter-grid {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 12px 16px;
}

.filter-field,
.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.filter-field > span,
.form-field > span {
  color: #4f5d70;
  font-size: 13px;
  font-weight: 600;
}

.filter-field input,
.filter-field select,
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid #d9dee8;
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: #30343b;
  font: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.form-field textarea {
  min-height: 104px;
  padding: 10px 12px;
  resize: vertical;
}

.filter-field input:focus,
.filter-field select:focus,
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: #409eff;
  box-shadow: 0 0 0 3px rgba(64, 158, 255, .12);
  outline: none;
}

.filter-field-range .range-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.filter-field-range .range-controls span {
  color: #98a2b3;
  text-align: center;
  font-size: 12px;
}

.toolbar-actions,
.page-action-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.toolbar-btn {
  min-width: 84px;
  height: 38px;
  border: 1px solid #d9dee8;
  border-radius: 8px;
  padding: 0 14px;
  background: #fff;
  color: #4f5d70;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.toolbar-btn:hover {
  border-color: #c2d3ec;
  background: #f8fbff;
}

.toolbar-btn.primary {
  border-color: #1677ff;
  background: #1677ff;
  color: #fff;
}

.toolbar-btn.primary:hover {
  border-color: #0958d9;
  background: #0958d9;
}

.toolbar-btn.secondary {
  border-color: #d0d5dd;
  background: #f5f7fa;
}

.toolbar-btn.icon {
  min-width: 72px;
}

.page-table-section {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  background: #fff;
}

.page-table-wrap {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0 20px 12px;
  overflow-x: auto;
}

.page-table-wrap.compact {
  padding-top: 0;
}

.data-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
  border: 1px solid #e4ebf5;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.data-table.compact {
  min-width: 760px;
}

.data-table th,
.data-table td {
  padding: 13px 14px;
  border-bottom: 1px solid #e8edf5;
  text-align: center;
  white-space: nowrap;
}

.data-table th {
  background: #f7f9fc;
  color: #4f5d70;
  font-size: 12px;
  font-weight: 700;
}

.data-table td {
  color: #4f5d70;
  font-size: 13px;
}

.data-table tbody tr:hover {
  background: #fbfdff;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.table-empty {
  padding: 44px 16px !important;
  color: #98a2b3;
}

.mono {
  font-variant-numeric: tabular-nums;
  font-family: "Consolas", "SFMono-Regular", "Courier New", monospace;
}

.cell-number {
  font-variant-numeric: tabular-nums;
}

.cell-money,
.cell-profit {
  font-weight: 700;
}

.cell-profit.positive { color: #0f9b6f; }
.cell-profit.negative { color: #d9485f; }
.cell-profit.neutral { color: #4f5d70; }

.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 700;
}

.status-chip.success {
  color: #0f9b6f;
  background: #e9f8f2;
  border-color: #bdebd7;
}

.status-chip.warning {
  color: #c98418;
  background: #fff7e8;
  border-color: #ffe2b8;
}

.status-chip.danger {
  color: #d9485f;
  background: #fff1f3;
  border-color: #ffd0d8;
}

.status-chip.neutral {
  color: #1677ff;
  background: #eef6ff;
  border-color: #d7eaff;
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 20px 18px;
  border-top: 1px solid #edf1f6;
  background: #fff;
  flex-wrap: wrap;
}

.pagination-total,
.page-size-select span {
  color: #6c7482;
  font-size: 13px;
}

.page-size-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.page-size-select select {
  height: 32px;
  border: 1px solid #d9dee8;
  border-radius: 6px;
  padding: 0 8px;
  background: #fff;
  color: #495566;
}

.pager-btn {
  min-width: 32px;
  height: 32px;
  border: 1px solid #e0e5ef;
  border-radius: 6px;
  padding: 0 10px;
  background: #fff;
  color: #5a6472;
  cursor: pointer;
}

.pager-btn.active {
  border-color: #409eff;
  background: #409eff;
  color: #fff;
}

.pager-btn:disabled {
  color: #b7bdc8;
  background: #f5f7fa;
  border-color: #f0f2f5;
  cursor: not-allowed;
}

.pager-ellipsis {
  color: #98a2b3;
  font-size: 13px;
}

.form-shell-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px 20px 20px;
}

.form-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-section-card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.form-section-card-head {
  flex-direction: column;
  padding: 14px 16px;
  border-bottom: 1px solid #edf1f6;
  background: #f8fafc;
}

.form-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
  padding: 16px;
}

.form-field-wide {
  grid-column: 1 / -1;
}

.preview-section {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.page-action-row {
  justify-content: center;
  padding-top: 4px;
}

.toast-host {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast-item {
  min-width: 220px;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(31, 45, 61, .94);
  color: #fff;
  font-size: 13px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .24);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease;
}

.toast-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.page-table-wrap,
.management-content {
  scrollbar-width: thin;
  scrollbar-color: #9aacc2 #eef4fb;
}

.page-table-wrap::-webkit-scrollbar,
.management-content::-webkit-scrollbar {
  height: 12px;
  width: 12px;
}

.page-table-wrap::-webkit-scrollbar-track,
.management-content::-webkit-scrollbar-track {
  margin: 0 4px;
  border-radius: 999px;
  background: #eef4fb;
  border: 1px solid #dfeaf5;
}

.page-table-wrap::-webkit-scrollbar-thumb,
.management-content::-webkit-scrollbar-thumb {
  border: 3px solid #eef4fb;
  border-radius: 999px;
  background: linear-gradient(90deg, #9fb0c6, #7f92aa);
}

@media (max-width: 1400px) {
  .management-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-grid { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
}

@media (max-width: 1120px) {
  .dashboard-panel-grid,
  .form-section-grid,
  .form-fields-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .page-frame { min-height: auto; }
  .management-summary-grid,
  .dashboard-module-grid,
  .filter-grid,
  .form-fields-grid {
    grid-template-columns: 1fr;
  }
  .page-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .toolbar-actions {
    justify-content: flex-end;
  }
  .page-table-wrap,
  .dashboard-panel-head,
  .preview-section-head,
  .page-table-head,
  .page-toolbar,
  .form-shell-card {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 560px) {
  .summary-card strong { font-size: 24px; }
  .toolbar-actions,
  .page-action-row {
    flex-direction: column;
  }
  .toolbar-btn { width: 100%; }
  .filter-field-range .range-controls {
    grid-template-columns: 1fr;
  }
}
