:root {
  --ink: #15211d;
  --muted: #68766f;
  --line: #e5ebe7;
  --surface: #ffffff;
  --canvas: #f4f7f5;
  --navy: #14251e;
  --green: #16a36a;
  --green-dark: #0f8052;
  --green-soft: #e9f8f0;
  --amber: #c98517;
  --amber-soft: #fff5dc;
  --red: #d84f4f;
  --red-soft: #fff0ef;
  --violet: #6f58c9;
  --violet-soft: #f1edff;
  --shadow: 0 8px 28px rgba(21, 40, 31, .07);
  --radius: 16px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--canvas); color: var(--ink); font-family: "DM Sans", sans-serif; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 214px minmax(0, 1fr); }
.sidebar { position: sticky; inset: 0 auto 0 0; height: 100vh; background: var(--navy); color: #fff; padding: 24px 16px 18px; display: flex; flex-direction: column; z-index: 20; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 10px 26px; }
.brand strong { font: 800 20px/1 "Manrope", sans-serif; letter-spacing: -.5px; }
.brand small { display: block; color: #8fa49a; font: 700 8px/1.8 "Manrope", sans-serif; letter-spacing: 1.8px; }
.brand-mark { width: 33px; height: 33px; display: flex; gap: 3px; align-items: flex-end; justify-content: center; padding: 8px; border-radius: 10px; background: #19ac70; transform: rotate(-5deg); }
.brand-mark span { width: 4px; border-radius: 3px; background: white; }
.brand-mark span:nth-child(1) { height: 9px; }.brand-mark span:nth-child(2) { height: 17px; }.brand-mark span:nth-child(3) { height: 13px; }
.nav-label { margin: 0 12px 10px; color: #72877e; font-size: 10px; font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase; }
.main-nav { min-height: 0; display: flex; flex-direction: column; gap: 3px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #355248 transparent; }
.nav-label-secondary { margin-top: 14px; }
.nav-item { position: relative; width: 100%; min-height: 40px; border: 0; border-radius: 10px; padding: 0 12px; display: flex; align-items: center; gap: 12px; color: #b9c6c0; background: transparent; font-size: 12px; font-weight: 600; text-align: left; transition: .2s ease; }
.nav-item svg { width: 18px; height: 18px; }
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.active { color: #fff; background: #233b31; box-shadow: inset 3px 0 0 #25c481; }
.nav-count { margin-left: auto; min-width: 21px; padding: 2px 5px; border-radius: 6px; color: #bdd2c8; background: rgba(255,255,255,.09); font-size: 10px; text-align: center; }
.dot-warning { width: 7px; height: 7px; border-radius: 50%; background: #eaae36; margin-left: auto; box-shadow: 0 0 0 4px rgba(234,174,54,.1); }
.sidebar-footer { margin-top: auto; padding-top: 10px; display: grid; gap: 8px; }
.integration-state { display: flex; gap: 9px; align-items: center; margin: 0 10px; padding: 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.035); }
.integration-state strong, .team-user strong { display: block; color: #e8efeb; font-size: 11px; }.integration-state small, .team-user small { color: #81958c; font-size: 9px; }
.live-dot { flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: #27c580; box-shadow: 0 0 0 4px rgba(39,197,128,.12); }
.team-user { width: 100%; border: 0; border-top: 1px solid rgba(255,255,255,.08); color: white; background: transparent; padding: 15px 8px 0; display: flex; align-items: center; gap: 9px; text-align: left; }
.team-user > span:nth-child(2) { flex: 1; }.team-user > svg { width: 16px; color: #7e9188; }
.mini-avatar { width: 31px; height: 31px; border-radius: 9px; display: grid; place-items: center; background: #d9a95e; color: #fff; font-size: 10px; font-weight: 700; }

.workspace { min-width: 0; }
.topbar { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 34px; background: rgba(255,255,255,.88); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.global-search { width: min(390px, 48vw); height: 38px; display: flex; align-items: center; gap: 9px; padding: 0 10px; border: 1px solid #dde5e0; border-radius: 9px; color: #87938e; background: #f8faf9; }
.global-search svg { width: 17px; }.global-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; }
.global-search kbd { padding: 3px 6px; border: 1px solid #dfe5e2; border-radius: 5px; background: white; color: #8b9590; font: 10px "DM Sans"; }
.top-actions { display: flex; align-items: center; gap: 16px; }.sync-text { display: flex; align-items: center; gap: 8px; color: #69766f; font-size: 11px; }
.icon-btn { width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 9px; display: grid; place-items: center; color: #637169; background: #fff; }
.icon-btn svg { width: 18px; }.has-alert { position: relative; }.has-alert:after { content: ""; position: absolute; top: 7px; right: 8px; width: 5px; height: 5px; border: 2px solid white; border-radius: 50%; background: #e66262; }
.mobile-menu { display: none; }

.player-strip { min-height: 106px; padding: 20px 34px; display: flex; align-items: center; gap: 22px; border-bottom: 1px solid var(--line); background: #fff; }
.player-core { display: flex; align-items: center; gap: 13px; min-width: 270px; }.player-avatar { position: relative; width: 54px; height: 54px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 16px; color: #fff; background: linear-gradient(145deg,#285447,#193a31); font: 700 16px "Manrope"; }
.online-dot { position: absolute; width: 10px; height: 10px; right: -1px; bottom: 3px; border: 2px solid white; border-radius: 50%; background: #1dc47d; }
.eyebrow-line { display: flex; align-items: center; gap: 7px; color: #91a099; font-size: 10px; text-transform: uppercase; letter-spacing: .5px; }.separator { color: #c1c9c5; }.text-copy { display: flex; align-items: center; gap: 4px; border: 0; padding: 0; color: #91a099; background: transparent; font-size: 10px; text-transform: uppercase; }.text-copy svg { width: 12px; height: 12px; }
h1 { margin: 3px 0 0; font: 800 22px/1.2 "Manrope"; letter-spacing: -.65px; }.country-flag { font-size: 16px; }
.player-badges { display: flex; gap: 7px; flex-wrap: wrap; }.badge { height: 25px; display: inline-flex; align-items: center; gap: 6px; padding: 0 9px; border-radius: 7px; font-size: 10px; font-weight: 700; white-space: nowrap; }.badge-success { color: #087549; background: var(--green-soft); }.badge-success span { width: 6px; height: 6px; border-radius: 50%; background: #15a86c; }.badge-vip { color: #7f5c13; background: #fff2cf; }.badge-verified { color: #3c67a6; background: #ebf3ff; }.badge-verified svg { width: 13px; height: 13px; }
.player-actions { margin-left: auto; display: flex; gap: 9px; }.button { height: 37px; border-radius: 9px; padding: 0 14px; font-size: 11px; font-weight: 700; border: 1px solid #dce4df; transition: .18s ease; }.button:hover { transform: translateY(-1px); box-shadow: 0 5px 15px rgba(18,39,30,.09); }.button.secondary { color: #34453d; background: #fff; }.button.primary { color: #fff; border-color: var(--green-dark); background: var(--green-dark); }.button svg { width: 14px; height: 14px; margin-right: 5px; vertical-align: middle; }.player-actions .button svg { margin: 0 0 0 5px; transform: rotate(90deg); }

.content { padding: 26px 34px 50px; max-width: 1500px; margin: 0 auto; }
.player-strip.hidden { display: none; }
.workspace.global-mode .content { padding-top: 28px; }
.workspace.global-mode .topbar { box-shadow: 0 1px 0 var(--line); }
.workspace.player-mode .content { max-width: none; margin: 0; padding: 0; }
.player-page-grid { min-height: calc(100vh - 170px); display: grid; grid-template-columns: 196px minmax(0,1fr); gap: 0; align-items: stretch; background: var(--canvas); }
.profile-menu { position: sticky; top: 64px; height: calc(100vh - 64px); padding: 18px 11px 24px; overflow-y: auto; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: #fff; box-shadow: none; }
.profile-menu-label { margin: 4px 9px 10px; color: #97a29c; font-size: 8px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.profile-menu button { width: 100%; min-height: 34px; display: flex; align-items: center; gap: 9px; padding: 0 9px; border: 0; border-radius: 8px; color: #66746d; background: transparent; font-size: 9px; font-weight: 600; text-align: left; }
.profile-menu button svg { width: 14px; height: 14px; }
.profile-menu button:hover { color: #204236; background: #f4f8f6; }
.profile-menu button.active { color: #08784b; background: #eaf8f1; box-shadow: inset 3px 0 0 #1cb177; }
.profile-menu .subnav-count { margin-left: auto; min-width: 18px; padding: 2px 5px; border-radius: 7px; color: white; background: #168c5d; font-size: 7px; text-align: center; }
.player-page-main { min-width: 0; padding: 24px 28px 50px; }
.back-link { display: inline-flex; align-items: center; gap: 5px; margin-bottom: 15px; padding: 0; border: 0; color: #66766e; background: transparent; font-size: 9px; font-weight: 700; }.back-link svg { width: 13px; transform: rotate(180deg); }
.toggle-list { display: grid; }.toggle-row { min-height: 45px; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; border-top: 1px solid var(--line); }.toggle-row:first-child { border-top: 0; }.toggle-row strong { display: block; font-size: 10px; }.toggle-row small { display: block; margin-top: 2px; color: #8d9993; font-size: 8px; }.switch { width: 31px; height: 17px; padding: 2px; border: 0; border-radius: 12px; background: #cdd6d1; transition: .2s; }.switch:after { content: ""; display: block; width: 13px; height: 13px; border-radius: 50%; background: white; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: .2s; }.switch.on { background: #20ad72; }.switch.on:after { transform: translateX(14px); }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }.page-heading h2 { margin: 0; font: 800 20px "Manrope"; letter-spacing: -.45px; }.page-heading p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }.period-select { height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; color: #4d5b54; background: #fff; font-size: 10px; font-weight: 600; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 13px; }
.stat-card, .panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(17,37,28,.02); }
.stat-card { padding: 17px; min-height: 118px; }.stat-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 10px; font-weight: 600; }.stat-icon { width: 29px; height: 29px; border-radius: 8px; display: grid; place-items: center; }.stat-icon svg { width: 15px; height: 15px; }.tone-green { color: #118556; background: #e9f8f0; }.tone-purple { color: #7056c9; background: #f1edff; }.tone-amber { color: #b77912; background: #fff3d6; }.tone-blue { color: #3e75b2; background: #eaf3ff; }
.stat-value { margin-top: 11px; font: 800 23px/1 "Manrope"; letter-spacing: -.7px; }.stat-foot { display: flex; align-items: center; gap: 5px; margin-top: 9px; color: #819087; font-size: 9px; }.trend-up { color: #129360; font-weight: 700; }.trend-down { color: #cf5555; font-weight: 700; }.trend-up svg,.trend-down svg { width: 10px; height: 10px; }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .8fr); gap: 13px; align-items: stretch; }.overview-stack { display: grid; gap: 13px; }.panel { min-width: 0; padding: 18px; }.panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 17px; }.panel-title h3 { margin: 0; font: 700 13px "Manrope"; letter-spacing: -.2px; }.panel-title p { margin: 4px 0 0; color: #8b9892; font-size: 9px; }.link-btn { border: 0; padding: 0; color: var(--green-dark); background: transparent; font-size: 10px; font-weight: 700; }.link-btn:hover { text-decoration: underline; }
.chart-wrap { height: 195px; position: relative; display: flex; align-items: flex-end; padding: 5px 4px 25px 33px; }.chart-grid { position: absolute; inset: 6px 4px 24px 33px; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }.chart-grid span { border-top: 1px dashed #e9eeeb; }.chart-y { position: absolute; left: 0; top: 3px; bottom: 21px; display: flex; flex-direction: column; justify-content: space-between; color: #9ba69f; font-size: 8px; }.bars { height: 100%; width: 100%; display: flex; align-items: flex-end; justify-content: space-around; gap: 8px; position: relative; z-index: 1; }.bar-group { height: 100%; flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 4px; position: relative; }.bar { width: min(14px, 30%); min-height: 4px; border-radius: 4px 4px 2px 2px; transition: .2s; }.bar:hover { filter: brightness(.92); transform: scaleX(1.08); }.bar.deposit { background: #20b477; }.bar.withdrawal { background: #cdd8d2; }.bar-label { position: absolute; bottom: -18px; color: #839088; font-size: 8px; }.chart-legend { display: flex; gap: 14px; justify-content: center; margin-top: 4px; color: #7f8c85; font-size: 9px; }.chart-legend span { display: flex; align-items: center; gap: 5px; }.legend-dot { width: 7px; height: 7px; border-radius: 2px; background: #20b477; }.legend-dot.grey { background: #cdd8d2; }
.risk-score { display: flex; align-items: center; gap: 15px; padding: 4px 0 15px; border-bottom: 1px solid var(--line); }.score-ring { --score: 27; width: 75px; height: 75px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(#23b679 calc(var(--score) * 1%), #e7efea 0); position: relative; }.score-ring:before { content: ""; width: 59px; height: 59px; border-radius: 50%; background: white; position: absolute; }.score-ring strong { position: relative; z-index: 1; font: 800 20px "Manrope"; }.risk-copy strong { display: block; font: 700 12px "Manrope"; color: #17875a; }.risk-copy span { color: #8a9790; font-size: 9px; }.check-list { display: grid; gap: 11px; padding-top: 14px; }.check-row { display: flex; align-items: center; gap: 9px; font-size: 10px; color: #58665f; }.check-row svg { width: 14px; color: #1da970; }.check-row time { margin-left: auto; color: #9aa49f; font-size: 9px; }
.activity-list { display: grid; }.activity-row { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid #edf1ee; }.activity-row:first-child { border-top: 0; padding-top: 0; }.activity-icon { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; }.activity-icon svg { width: 13px; }.activity-copy strong { display: block; font-size: 10px; }.activity-copy span { color: #929d97; font-size: 8px; }.activity-value { text-align: right; font-size: 10px; font-weight: 700; }.activity-value small { display: block; color: #98a29d; font-size: 8px; font-weight: 400; }
.game-list { display: grid; gap: 2px; }.game-row { display: grid; grid-template-columns: 1.3fr .75fr .7fr .7fr; align-items: center; padding: 8px 0; border-top: 1px solid #edf1ee; font-size: 9px; }.game-row:first-child { border-top: 0; }.game-name { display: flex; align-items: center; gap: 8px; font-weight: 600; }.game-thumb { width: 29px; height: 29px; border-radius: 8px; display: grid; place-items: center; color: white; font: 700 10px "Manrope"; }.game-row > span:not(.game-name) { color: #68766f; }.positive { color: #11865a !important; font-weight: 700; }.negative { color: #cf5555 !important; font-weight: 700; }

.toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }.toolbar-search { height: 35px; min-width: 220px; display: flex; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: white; }.toolbar-search svg { width: 15px; color: #8a9790; }.toolbar-search input { border: 0; outline: 0; width: 100%; font-size: 10px; }.toolbar .button { height: 35px; }.toolbar .spacer { flex: 1; }
.table-panel { padding: 0; overflow: hidden; }.data-table { width: 100%; border-collapse: collapse; font-size: 10px; }.data-table th { height: 38px; padding: 0 14px; color: #829089; background: #f8faf9; font-size: 8px; text-align: left; text-transform: uppercase; letter-spacing: .6px; }.data-table td { height: 53px; padding: 0 14px; border-top: 1px solid var(--line); color: #536159; }.data-table td strong { color: var(--ink); }.table-player { display: flex; align-items: center; gap: 9px; }.table-player .game-thumb { width: 30px; height: 30px; }.pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 6px; font-size: 8px; font-weight: 700; }.pill.success { color: #087549; background: var(--green-soft); }.pill.pending { color: #a86d0d; background: var(--amber-soft); }.pill.failed { color: #bc4b4b; background: var(--red-soft); }.pill.neutral { color: #65726c; background: #eef2ef; }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }.detail-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }.detail-item { padding: 11px 0; border-top: 1px solid var(--line); }.detail-item:nth-child(-n+2) { border-top: 0; padding-top: 0; }.detail-item label { display: block; margin-bottom: 4px; color: #8c9992; font-size: 8px; text-transform: uppercase; letter-spacing: .5px; }.detail-item strong { font-size: 10px; }.editable { display: flex; align-items: center; justify-content: space-between; }.tiny-edit { border: 0; color: var(--green-dark); background: transparent; font-size: 9px; font-weight: 700; }
.timeline { position: relative; display: grid; gap: 0; margin-left: 3px; }.timeline:before { content: ""; position: absolute; left: 6px; top: 12px; bottom: 15px; width: 1px; background: #dce5e0; }.timeline-item { position: relative; display: grid; grid-template-columns: 13px 1fr auto; gap: 12px; padding: 0 0 20px; }.timeline-dot { z-index: 1; margin-top: 3px; width: 13px; height: 13px; border: 3px solid white; border-radius: 50%; background: #20ad72; box-shadow: 0 0 0 1px #20ad72; }.timeline-item.muted .timeline-dot { background: #aab6af; box-shadow: 0 0 0 1px #aab6af; }.timeline-copy strong { display: block; font-size: 10px; }.timeline-copy p { margin: 4px 0 0; color: #7f8c85; font-size: 9px; line-height: 1.5; }.timeline-item time { color: #99a49e; font-size: 8px; }
.kyc-hero { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: 20px; margin-bottom: 13px; background: linear-gradient(120deg,#17392f,#205443); color: white; border: 0; }.kyc-hero .score-ring:before { background: #1b4337; }.kyc-hero .score-ring { background: conic-gradient(#48d89c 87%, rgba(255,255,255,.15) 0); }.kyc-hero h3 { margin: 0 0 5px; font: 700 16px "Manrope"; }.kyc-hero p { margin: 0; color: #b5c9c0; font-size: 10px; }.kyc-hero .button.secondary { color: white; border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.09); }
.document-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }.doc-card { padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: #fbfcfb; }.doc-top { display: flex; align-items: center; justify-content: space-between; }.doc-icon { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 8px; background: #eaf7f0; color: #128758; }.doc-icon svg { width: 15px; }.doc-card strong { display: block; margin-top: 11px; font-size: 10px; }.doc-card small { color: #929d97; font-size: 8px; }.support-message { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; padding: 13px 0; border-top: 1px solid var(--line); }.support-message:first-child { padding-top: 0; border-top: 0; }.support-avatar { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: white; font-size: 9px; font-weight: 700; }.support-copy strong { font-size: 10px; }.support-copy p { margin: 4px 0 0; color: #68766f; font-size: 9px; line-height: 1.45; }.support-message time { color: #9aa49f; font-size: 8px; }
.empty-state { padding: 55px 20px; text-align: center; }.empty-state span { width: 50px; height: 50px; margin: 0 auto 12px; border-radius: 15px; display: grid; place-items: center; color: #159363; background: #eaf8f1; }.empty-state h3 { margin: 0; font: 700 14px "Manrope"; }.empty-state p { color: #7f8d85; font-size: 10px; }
.scope-bar { min-height: 42px; margin-bottom: 16px; padding: 9px 12px; display: flex; align-items: center; gap: 9px; border: 1px solid #cfe7da; border-radius: 11px; color: #476158; background: #f1faf5; font-size: 10px; }.scope-bar svg { width: 15px; color: var(--green-dark); }.scope-bar strong { color: #173d30; }.scope-bar .spacer { flex: 1; }.api-badge { padding: 5px 8px; border-radius: 6px; color: #0b754a; background: #dff4e9; font: 700 8px "DM Sans"; letter-spacing: .5px; }
.ops-grid { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(280px,.8fr); gap: 13px; align-items: start; }.ops-stack { display: grid; gap: 13px; align-content: start; }
.health-list { display: grid; gap: 13px; }.health-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }.health-row strong { font-size: 10px; }.health-row small { display: block; margin-top: 2px; color: #91a099; font-size: 8px; }.health-value { color: #17875a; font-size: 10px; font-weight: 700; }.health-bar { grid-column: 1 / -1; height: 4px; overflow: hidden; border-radius: 5px; background: #e7eeea; }.health-bar span { display: block; height: 100%; border-radius: inherit; background: #21b778; }
.alert-list { display: grid; gap: 8px; }.alert-row { display: grid; grid-template-columns: 29px 1fr auto; gap: 9px; align-items: center; padding: 9px; border-radius: 9px; background: #f8faf9; }.alert-row > span:first-child { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 8px; }.alert-row svg { width: 14px; }.alert-row strong { display: block; font-size: 9px; }.alert-row small { color: #8d9993; font-size: 8px; }.alert-row b { font-size: 11px; }
.module-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 11px; }.module-card { position: relative; min-height: 128px; padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: #fff; text-align: left; transition: .18s; }.module-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #cbdad2; }.module-card .stat-icon { margin-bottom: 17px; }.module-card strong { display: block; font: 700 11px "Manrope"; }.module-card p { margin: 4px 0 0; color: #849189; font-size: 8px; line-height: 1.45; }.module-card > svg { position: absolute; right: 14px; top: 15px; width: 14px; color: #a3ada7; }
.player-cell { display: flex; align-items: center; gap: 9px; }.initial-avatar { width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 9px; color: white; background: #315c4f; font-size: 9px; font-weight: 700; }.player-cell strong { display: block; }.player-cell small { color: #96a19b; font-size: 8px; }.clickable-row { cursor: pointer; transition: background .15s; }.clickable-row:hover { background: #f7faf8; }
.segmented { display: inline-flex; gap: 3px; padding: 3px; border-radius: 9px; background: #e9eeeb; }.segmented button { height: 27px; padding: 0 10px; border: 0; border-radius: 7px; color: #738079; background: transparent; font-size: 9px; font-weight: 700; }.segmented button.active { color: #1d3b30; background: white; box-shadow: 0 1px 4px rgba(20,40,32,.1); }
.campaign-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 13px; }.campaign-card { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: white; }.campaign-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }.campaign-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; }.campaign-icon svg { width: 17px; }.campaign-card h3 { margin: 14px 0 4px; font: 700 12px "Manrope"; }.campaign-card > p { min-height: 28px; margin: 0; color: #7f8d86; font-size: 9px; line-height: 1.5; }.campaign-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }.campaign-meta label { display: block; color: #96a19b; font-size: 7px; text-transform: uppercase; letter-spacing: .5px; }.campaign-meta strong { font-size: 10px; }
.page-actions { display: flex; gap: 8px; }.bonus-status { min-height: 48px; margin-bottom: 13px; padding: 9px 13px; display: flex; align-items: center; gap: 10px; border: 1px solid #cde6d9; border-radius: 11px; background: #f0faf5; }.bonus-status > svg { width: 16px; color: #12865a; }.bonus-status strong { display: block; font-size: 10px; }.bonus-status div span { display: block; margin-top: 2px; color: #79877f; font-size: 8px; }.bonus-status .spacer { flex: 1; }
.bonus-tabs { display: flex; gap: 3px; margin: 3px 0 14px; padding: 4px; overflow-x: auto; border: 1px solid var(--line); border-radius: 11px; background: #e9eeeb; }.bonus-tabs button { min-height: 33px; flex: 1; padding: 0 13px; border: 0; border-radius: 8px; color: #6d7a73; background: transparent; font-size: 9px; font-weight: 700; white-space: nowrap; }.bonus-tabs button:hover { color: #173d30; }.bonus-tabs button.active { color: #0a7048; background: white; box-shadow: 0 2px 7px rgba(19,45,34,.1); }.bonus-tabs button span { margin-left: 5px; padding: 2px 5px; border-radius: 8px; color: #a36a0f; background: #fff0c9; font-size: 7px; }
.selectable-card { cursor: pointer; transition: .18s; }.selectable-card:hover { transform: translateY(-2px); border-color: #bfd5c9; box-shadow: var(--shadow); }.selectable-card .campaign-meta { grid-template-columns: repeat(3,1fr); }.campaign-progress { height: 4px; margin-top: 12px; overflow: hidden; border-radius: 4px; background: #e9eeeb; }.campaign-progress span { display: block; height: 100%; border-radius: inherit; background: #20b477; }.padded-header { padding: 16px 18px 0; }
.bonus-builder-grid { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(250px,.7fr); gap: 13px; align-items: start; }.condition-list { display: grid; gap: 8px; }.condition-row { display: grid; grid-template-columns: 40px 1fr 1fr 1fr 24px; gap: 7px; align-items: center; }.condition-index { color: #148758; font-size: 8px; font-weight: 800; letter-spacing: .5px; }.condition-row select,.condition-value { height: 35px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; color: #47564e; background: #fbfcfb; font-size: 9px; }.condition-value { display: flex; align-items: center; }.condition-remove { width: 24px; height: 24px; border: 0; border-radius: 6px; color: #9aa59f; background: #f0f3f1; }.add-condition { width: max-content; margin-left: 47px; padding: 7px 10px; border: 1px dashed #b8cbc1; border-radius: 7px; color: #0d7b4e; background: #f3faf6; font-size: 9px; font-weight: 700; }.rule-outcome { margin-top: 15px; padding: 12px; display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 8px; border: 1px solid #cde7da; border-radius: 10px; background: #eff9f4; }.rule-outcome strong { display: block; font-size: 10px; }.rule-outcome small { color: #7e8b84; font-size: 8px; }.template-list { display: grid; gap: 5px; }.template-list button { min-height: 48px; padding: 7px; display: grid; grid-template-columns: 30px 1fr 15px; gap: 9px; align-items: center; border: 0; border-radius: 9px; color: var(--ink); background: #f8faf9; text-align: left; }.template-list button:hover { background: #eef7f2; }.template-list .stat-icon { width: 30px; height: 30px; }.template-list strong { display: block; font-size: 9px; }.template-list small { color: #8b9891; font-size: 7px; }.template-list button > svg { width: 13px; color: #93a098; }
.contribution-list { display: grid; gap: 15px; }.contribution-list > div { display: grid; grid-template-columns: 1fr auto; gap: 7px; align-items: center; }.contribution-list span { font-size: 9px; font-weight: 600; }.contribution-list b { color: #16885a; font-size: 9px; }.contribution-list i { grid-column: 1 / -1; height: 5px; overflow: hidden; border-radius: 5px; background: #e8eeea; }.contribution-list em { display: block; height: 100%; border-radius: inherit; background: #21b477; }.bonus-flow { margin-top: 6px; }
.rule-flow { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }.rule-step { position: relative; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfb; }.rule-step:not(:last-child):after { content: "-&gt;"; position: absolute; right: -17px; top: 50%; color: #8da097; transform: translateY(-50%); }.rule-step small { display: block; color: #159363; font-size: 7px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; }.rule-step strong { display: block; margin-top: 5px; font-size: 9px; }.rule-step span { color: #8c9892; font-size: 8px; }
.feature-chips { display: flex; flex-wrap: wrap; gap: 7px; }.feature-chip { padding: 7px 9px; border: 1px solid var(--line); border-radius: 7px; color: #596860; background: #fbfcfb; font-size: 8px; font-weight: 600; }
.integration-map { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 10px; align-items: center; padding: 20px 0; }.integration-node { min-height: 108px; padding: 15px; display: grid; align-content: center; border: 1px solid var(--line); border-radius: 13px; background: #fbfcfb; text-align: center; }.integration-node.primary-node { color: white; border: 0; background: linear-gradient(140deg,#153d31,#1d614b); }.integration-node span { width: 32px; height: 32px; margin: 0 auto 9px; display: grid; place-items: center; border-radius: 9px; color: #13875a; background: #e8f7ef; }.integration-node.primary-node span { color: white; background: rgba(255,255,255,.12); }.integration-node strong { font: 700 10px "Manrope"; }.integration-node small { margin-top: 3px; color: #85928b; font-size: 8px; }.primary-node small { color: #b9d0c6; }.connector { color: #799087; font-size: 17px; }
.code-box { padding: 14px; overflow-x: auto; border-radius: 10px; color: #cce3d8; background: #112a22; font: 9px/1.7 Consolas, monospace; white-space: pre; }.api-list { display: grid; }.api-row { display: grid; grid-template-columns: 58px 1.3fr 1fr auto; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 9px; }.api-row:first-child { border-top: 0; }.http-method { width: 43px; padding: 4px 0; border-radius: 5px; color: #087449; background: #e7f7ef; text-align: center; font: 700 8px Consolas; }.http-method.post { color: #70520c; background: #fff2d2; }.api-row code { color: #293c33; font: 9px Consolas; }.api-row span { color: #7c8982; }.latency { color: #138759 !important; font-weight: 700; }
.role-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }.role-card { padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: #fbfcfb; }.role-card strong { display: block; font-size: 10px; }.role-card p { min-height: 30px; margin: 5px 0 11px; color: #819087; font-size: 8px; line-height: 1.45; }.role-card small { color: #18885b; font-size: 8px; font-weight: 700; }
.permission-table td:first-child { font-weight: 700; color: var(--ink); }.perm-check { color: #16a36a; font-size: 14px; }.perm-dash { color: #c6cfca; }
.metric-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }.metric-block { padding: 13px; border-radius: 10px; background: #f8faf9; }.metric-block label { color: #89968f; font-size: 8px; }.metric-block strong { display: block; margin-top: 4px; font: 700 16px "Manrope"; }.metric-block small { color: #149060; font-size: 8px; }
.donut-layout { display: flex; align-items: center; gap: 22px; }.donut { width: 112px; height: 112px; flex: 0 0 auto; border-radius: 50%; position: relative; background: conic-gradient(#1eb277 0 42%,#6d59c2 42% 68%,#e7aa3e 68% 84%,#5e87bd 84% 100%); }.donut:after { content: "18,420\A PLAYERS"; white-space: pre; position: absolute; inset: 18px; display: grid; place-items: center; border-radius: 50%; background: white; text-align: center; font: 700 9px/1.5 "Manrope"; }.donut-legend { display: grid; gap: 9px; flex: 1; }.donut-legend span { display: flex; align-items: center; gap: 7px; color: #65736c; font-size: 9px; }.donut-legend b { margin-left: auto; color: var(--ink); }.donut-legend i { width: 8px; height: 8px; border-radius: 3px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 50; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 9px; color: white; background: #18382e; font-size: 11px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: .25s; box-shadow: var(--shadow); }.toast.show { opacity: 1; transform: translate(-50%,0); }.toast svg { width: 14px; color: #47dc9d; }
.modal-backdrop { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgba(10,24,18,.45); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: .2s; }.modal-backdrop.open { opacity: 1; pointer-events: auto; }.modal { width: min(440px,100%); position: relative; padding: 26px; border-radius: 17px; background: white; box-shadow: 0 30px 70px rgba(12,29,22,.25); transform: translateY(10px); transition: .2s; }.open .modal { transform: none; }.modal-close { position: absolute; top: 16px; right: 16px; }.modal-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: #12885a; background: #eaf8f1; }.modal-icon svg { width: 18px; }.section-kicker { margin: 16px 0 5px !important; color: #159363 !important; font-size: 8px !important; font-weight: 700; letter-spacing: 1.1px; }.modal h2 { margin: 0; font: 800 18px "Manrope"; }.modal p { color: #75827b; font-size: 10px; line-height: 1.5; }.modal textarea { width: 100%; height: 110px; resize: vertical; outline: 0; padding: 12px; border: 1px solid #dce5e0; border-radius: 10px; font-size: 11px; }.modal textarea:focus { border-color: #25a975; box-shadow: 0 0 0 3px #e8f7f0; }.modal-actions { margin-top: 14px; display: flex; justify-content: flex-end; gap: 8px; }

@media (max-width: 1050px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .overview-grid { grid-template-columns: 1fr; }
  .overview-stack { grid-template-columns: 1fr 1fr; }
  .player-badges { display: none; }
  .campaign-grid,.module-grid { grid-template-columns: 1fr 1fr; }.role-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; transform: translateX(-105%); width: 244px; box-shadow: 15px 0 35px rgba(10,25,18,.25); transition: .25s ease; }.sidebar.open { transform: none; }
  .mobile-menu { display: grid; }.topbar { padding: 0 16px; }.global-search { width: auto; flex: 1; }.global-search kbd,.sync-text { display: none; }
  .player-strip { padding: 16px; flex-wrap: wrap; gap: 12px; }.player-core { flex: 1; min-width: 230px; }.player-actions { width: 100%; margin: 0; }.player-actions .button { flex: 1; }
  .content { padding: 20px 16px 40px; }.overview-stack { grid-template-columns: 1fr; }.profile-grid { grid-template-columns: 1fr; }.document-grid { grid-template-columns: 1fr; }
  .table-panel { overflow-x: auto; }.data-table { min-width: 700px; }.toolbar { flex-wrap: wrap; }.toolbar-search { flex: 1; min-width: 180px; }
  .kyc-hero { grid-template-columns: auto 1fr; }.kyc-hero .button { grid-column: 1 / -1; }
  .ops-grid { grid-template-columns: 1fr; }.integration-map { grid-template-columns: 1fr; }.connector { transform: rotate(90deg); text-align: center; }.rule-flow { grid-template-columns: 1fr 1fr; }.rule-step:not(:last-child):after { display:none; }
  .bonus-builder-grid { grid-template-columns: 1fr; }.condition-row { grid-template-columns: 34px 1fr 1fr; }.condition-row .condition-value { grid-column: 2 / -1; }.condition-remove { display:none; }
  .workspace.player-mode .content { padding: 0; }.player-page-grid { min-height: 0; grid-template-columns: 1fr; }.profile-menu { position: static; height: auto; display: flex; overflow-x: auto; gap: 4px; padding: 7px; border-right: 0; border-bottom: 1px solid var(--line); }.profile-menu-label { display: none; }.profile-menu button { width: auto; flex: 0 0 auto; padding: 0 10px; white-space: nowrap; }.profile-menu button.active { box-shadow: inset 0 -3px 0 #1cb177; }.player-page-main { padding: 20px 16px 40px; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }.stat-card { min-height: 106px; }.detail-list { grid-template-columns: 1fr; }.detail-item:nth-child(2) { border-top: 1px solid var(--line); padding-top: 11px; }.page-heading { align-items: flex-start; flex-direction: column; }.game-row { grid-template-columns: 1.5fr .7fr .7fr; }.game-row > span:nth-child(3) { display:none; }
  .campaign-grid,.module-grid,.role-grid,.rule-flow,.metric-row { grid-template-columns: 1fr; }.scope-bar { align-items: flex-start; flex-wrap: wrap; }.api-row { grid-template-columns: 50px 1fr; }.api-row span,.api-row .latency { grid-column: 2; }.donut-layout { align-items: flex-start; flex-direction: column; }.page-actions { width: 100%; }.page-actions .button { flex: 1; }.bonus-status { align-items: flex-start; flex-wrap: wrap; }.bonus-tabs button { flex: 0 0 auto; }.condition-row { grid-template-columns: 1fr; }.condition-row .condition-value { grid-column: auto; }.condition-index { margin-top: 7px; }.add-condition { margin-left: 0; }.rule-outcome { grid-template-columns: 1fr; }
}

.empty-cell { padding: 26px 18px; text-align: center; color: var(--text-muted, #8a93a6); font-size: 13px; }
.sync-text.offline { color: #c96a5a; }
.sync-text.offline .live-dot { background: #c96a5a; box-shadow: 0 0 0 3px rgba(201, 106, 90, .18); }
.offline-bar { border-color: rgba(201, 106, 90, .35); background: rgba(201, 106, 90, .07); }
.offline-bar code { background: rgba(0, 0, 0, .18); padding: 1px 5px; border-radius: 4px; font-size: 12px; }
.sync-text.offline .link-btn { margin-left: 8px; color: inherit; text-decoration: underline; }

/* Evaluation environment modal. Same visual language as the note modal; the
   credential block is monospace because a client secret is copied, not read. */
.modal input[type="text"] { width: 100%; margin-top: 10px; padding: 11px 12px; border: 1px solid #dce5e0; border-radius: 10px; outline: 0; font-size: 11px; font-family: inherit; }
.modal input[type="text"]:focus { border-color: #25a975; box-shadow: 0 0 0 3px #e8f7f0; }
.modal-error { min-height: 14px; margin: 8px 0 0 !important; color: #c2352c !important; font-size: 10px !important; }
.credential-block { margin: 12px 0 0; padding: 12px; border-radius: 10px; background: #f4f8f6; border: 1px solid #dce5e0; color: #24352c; font: 10px/1.7 ui-monospace, "SF Mono", Menlo, Consolas, monospace; white-space: pre-wrap; word-break: break-all; user-select: all; }

/* Sign-in. A full page rather than a modal, because until credentials work
   there is nothing behind it worth showing through. */
.signin { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px; overflow: auto; background: linear-gradient(160deg, #0d1f18 0%, #17352a 55%, #0f2a20 100%); }
.signin-card { width: min(460px, 100%); padding: 30px; border-radius: 20px; background: white; box-shadow: 0 40px 90px rgba(6,20,14,.4); }
.signin-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 22px; }
.signin-brand strong { display: block; font: 800 15px "Manrope"; color: #10231b; }
.signin-brand small { display: block; color: #7d8b84; font-size: 8px; font-weight: 700; letter-spacing: 1.2px; }
.signin-card h1 { margin: 0 0 6px; font: 800 21px "Manrope"; color: #10231b; }
.signin-lead { margin: 0 0 18px; color: #75827b; font-size: 11px; line-height: 1.5; }
.signin-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-bottom: 18px; padding: 4px; border-radius: 11px; background: #f1f6f3; }
.signin-tab { padding: 8px 6px; border: 0; border-radius: 8px; background: transparent; color: #5d6d65; font: 600 10px inherit; cursor: pointer; transition: .15s; }
.signin-tab:hover { color: #12885a; }
.signin-tab.active { background: white; color: #10231b; box-shadow: 0 1px 3px rgba(16,35,27,.12); }
.signin-help { margin: 0 0 14px; color: #75827b; font-size: 10px; line-height: 1.55; }
.signin-note { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.signin-note code { padding: 6px 9px; border-radius: 7px; background: #f4f8f6; border: 1px solid #dce5e0; color: #24352c; font: 10px ui-monospace, Menlo, Consolas, monospace; user-select: all; }
.field { display: block; margin-bottom: 12px; }
.field > span { display: block; margin-bottom: 5px; color: #4b5a52; font-size: 10px; font-weight: 600; }
.field > span em { color: #9aa8a1; font-style: normal; font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; padding: 11px 12px; border: 1px solid #dce5e0; border-radius: 10px; outline: 0; background: white; color: #16261f; font-size: 11px; font-family: inherit; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #25a975; box-shadow: 0 0 0 3px #e8f7f0; }
.signin-submit { width: 100%; justify-content: center; margin-top: 4px; }
.signin-error { min-height: 16px; margin: 12px 0 0; color: #c2352c; font-size: 10px; line-height: 1.5; }
.signin-foot { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 16px 0 0; color: #b3bfb8; font-size: 10px; }
.signin-foot a { color: #12885a; text-decoration: none; }
.signin-foot a:hover { text-decoration: underline; }

/* Action forms. Same field styling as sign-in, in a wider modal. */
.modal.modal-wide { width: min(560px, 100%); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.form-grid .field.full { grid-column: 1 / -1; }
.form-hint { margin: 0 0 12px !important; padding: 9px 11px; border-radius: 9px; background: #f4f8f6; border: 1px solid #e2eae6; color: #5d6d65 !important; font-size: 10px !important; line-height: 1.55; }
.result-block { margin-top: 12px; padding: 11px; border-radius: 10px; border: 1px solid #dce5e0; background: #f8fbf9; color: #24352c; font: 10px/1.6 ui-monospace, Menlo, Consolas, monospace; max-height: 240px; overflow: auto; white-space: pre-wrap; }
.result-block.bad { border-color: #f0cfcc; background: #fdf5f4; }
