/* Roxx Ads account application. The original Onyx presentation stays intact. */
:root { color-scheme: dark; }
.ra-announcement { padding: 8px 20px; text-align: center; font-size: 11px; color: var(--muted); border-bottom: 1px solid var(--line); background: #151815; }
.ra-announcement strong { color: var(--accent); font-weight: 600; }
.hero-description strong { font-weight: 600; color: var(--text); }
.ra-shell { min-height: 100dvh; }
.ra-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 50; width: 236px; background: #121613; border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 31px 18px 22px; }
.ra-sidebar .brand { padding: 0 12px; margin-bottom: 37px; }
.ra-nav-label { color: #899185; font-size: 9px; font-weight: 700; letter-spacing: .16em; padding: 17px 15px 10px; }
.ra-nav { display: grid; gap: 5px; }
.ra-nav a { display: flex; align-items: center; gap: 12px; border: 1px solid transparent; border-radius: 8px; padding: 13px 15px; color: #a5ada1; font-size: 12px; font-weight: 500; }
.ra-nav a:hover { background: #1d231d; color: var(--text); }
.ra-nav a[aria-current=page] { background: #282b1f; border-color: #3a3c28; color: var(--accent); }
.ra-sidebar-bottom { margin-top: auto; padding-top: 28px; }
.ra-sidebar-note { margin: 16px 12px 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 10px; line-height: 1.8; color: #8f988a; }
.ra-sidebar-note strong { color: #e6d5b0; display: block; font-size: 15px; font-weight: 500; }
.ra-main { margin-left: 236px; min-height: 100dvh; display: flex; flex-direction: column; min-width: 0; }
.ra-topbar { height: 77px; padding: 0 35px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #111511; }
.ra-crumb { color: var(--muted); font-size: 11px; display: flex; align-items: center; gap: 12px; }
.ra-crumb b { font-weight: 500; color: var(--text); }
.ra-top-actions { display: flex; gap: 16px; align-items: center; }
.ra-top-balance { color: var(--muted); font-size: 10px; padding-right: 20px; border-right: 1px solid var(--line); }
.ra-top-balance strong { display: block; font-size: 14px; font-weight: 600; color: var(--text); }
.ra-user-badge { display: flex; align-items: center; gap: 9px; }
.ra-user-badge .avatar { width: 33px; height: 33px; font-size: 12px; }
.ra-user-badge span:last-child { font-size: 11px; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ra-mobile-button { display: none; }
.ra-sidebar-mask { display: none; }
.ra-content { width: 100%; max-width: 1560px; margin-inline: auto; padding: 38px 35px 45px; flex: 1; }
.ra-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; margin-bottom: 28px; }
.ra-heading h1 { font-size: clamp(27px, 2.7vw, 36px); font-weight: 500; letter-spacing: -.045em; margin: 8px 0 10px; }
.ra-heading p { font-size: 12px; max-width: 640px; line-height: 1.75; }
.ra-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.ra-heading .ra-actions { padding-top: 15px; }
.ra-kicker { font-size: 9px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.ra-footer { padding: 0 35px 26px; display: flex; justify-content: space-between; gap: 15px; font-size: 10px; color: var(--muted); }
.ra-footer button { border: 0; background: none; padding: 0; color: var(--muted); font-size: 10px; }
.ra-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin-bottom: 24px; }
.ra-metric { padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.ra-metric:first-child { border-color: #414631; background: #242a1e; }
.ra-metric-label { font-size: 11px; color: #a6ad9f; display: flex; align-items: center; gap: 8px; }
.ra-metric-label svg { width: 16px; height: 16px; color: var(--accent); }
.ra-metric-value { font-size: clamp(25px,2.8vw,38px); font-weight: 500; letter-spacing: -.04em; display: block; margin: 16px 0 10px; line-height: 1.12; overflow-wrap: anywhere; }
.ra-metric-note { font-size: 10px; color: var(--muted); }
.ra-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; min-width: 0; overflow: hidden; margin-bottom: 24px; }
.ra-panel-head { display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 22px 25px; border-bottom: 1px solid var(--line); }
.ra-panel-head h2 { font-size: 18px; font-weight: 500; }
.ra-panel-head p { font-size: 11px; margin-top: 6px; }
.ra-panel-body { padding: 25px; }
.ra-split { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(280px,1fr); gap: 24px; }
.ra-split .ra-panel { margin-bottom: 0; }
.ra-stack { display: grid; gap: 24px; margin-bottom: 24px; }
.ra-stack .ra-panel { margin-bottom: 0; }
.ra-notice { border: 1px solid #4b472d; background: #24261b; border-radius: 9px; padding: 16px 18px; margin-bottom: 24px; display: flex; gap: 12px; align-items: flex-start; }
.ra-notice > svg { flex: 0 0 18px; color: var(--accent); margin-top: 2px; }
.ra-notice strong { display: block; font-weight: 600; font-size: 12px; color: var(--text); margin-bottom: 3px; }
.ra-notice p { font-size: 11px; line-height: 1.8; }
.ra-notice .text-button { font-size: 11px; margin-top: 6px; }
.ra-notice.error { background: #2b201c; border-color: #624037; }
.ra-notice.success { background: #1e2b20; border-color: #38523a; }
.ra-notice.success > svg { color: #a0c69a; }
.ra-empty { padding: 44px 25px; text-align: center; max-width: 560px; margin: 0 auto; }
.ra-empty-art { margin: 0 auto 18px; width: 56px; height: 56px; border-radius: 16px; border: 1px solid #424632; background: #282d21; display: flex; align-items: center; justify-content: center; transform: rotate(-6deg); }
.ra-empty-art svg { color: var(--accent); width: 25px; height: 25px; transform: rotate(6deg); }
.ra-empty h3 { font-size: 21px; font-weight: 500; margin-bottom: 10px; }
.ra-empty p { font-size: 12px; line-height: 1.8; margin-bottom: 20px; }
.ra-empty .button { margin-inline: auto; }
.ra-table-wrap { width: 100%; overflow-x: auto; }
.ra-table { font-size: 12px; width: 100%; }
.ra-table th { color: var(--muted); font-weight: 500; font-size: 10px; padding: 14px 25px; background: #131712; border-bottom: 1px solid var(--line); }
.ra-table td { padding: 17px 25px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ra-table tr:last-child td { border-bottom: 0; }
.ra-table tbody tr:hover { background: #ffffff02; }
.ra-table .ra-title-cell { min-width: 160px; max-width: 290px; white-space: normal; }
.ra-title-cell > a,.ra-title-cell > strong { display: block; font-weight: 500; color: var(--text); }
.ra-title-cell > a:hover { color: var(--accent); }
.ra-title-cell small { display: block; color: var(--muted); font-size: 10px; margin-top: 5px; }
.ra-number { font-variant-numeric: tabular-nums; }
.ra-positive { color: #a0c69a; }
.ra-negative { color: #e7d3b2; }
.ra-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; border: 1px solid transparent; border-radius: 20px; padding: 4px 9px; white-space: nowrap; background: #292e27; color: #a9b3a2; line-height: 1.5; }
.ra-badge::before { content: ''; width: 4px; height: 4px; background: currentColor; border-radius: 50%; }
.ra-badge.approved,.ra-badge.active,.ra-badge.completed,.ra-badge.paid { color: #a2c89c; background: #243423; }
.ra-badge.pending { color: #e0c17c; background: #39321f; }
.ra-badge.rejected,.ra-badge.suspended,.ra-badge.failed { color: #e3ac9b; background: #3a2720; }
.ra-badge.test { color: #c2b3e1; background: #2c2637; }
.ra-badge.paused { color: #aab2a3; background: #2c302a; }
.ra-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 18px 25px; border-bottom: 1px solid var(--line); }
.ra-toolbar input { max-width: 320px; margin: 0!important; }
.ra-toolbar span { font-size: 10px; color: var(--muted); }
.ra-form { display: grid; gap: 22px; }
.ra-form label { display: block; font-size: 12px; font-weight: 500; line-height: 1.6; }
.ra-form .ra-field-note { font-weight: 400; margin-top: 7px; font-size: 10px; display: block; color: var(--muted); line-height: 1.7; }
.ra-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.ra-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.ra-form legend { font-size: 12px; font-weight: 500; margin-bottom: 10px; }
.ra-form .ra-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ra-check { display: inline-flex!important; align-items: center; gap: 9px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 11px!important; font-weight: 400!important; }
.ra-check:has(input:checked) { border-color: #9a8557; background: #2a2d20; color: #e2cca2; }
.ra-check input { width: 14px; height: 14px; }
.ra-format-choices { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.ra-format-choice { display: block; position: relative; border: 1px solid var(--line); border-radius: 9px; background: #121712; padding: 18px; }
.ra-format-choice:has(input:checked) { border-color: var(--accent); background: #282d20; }
.ra-format-choice input { position: absolute; top: 17px; right: 15px; }
.ra-format-choice svg { color: var(--accent); margin-bottom: 13px; }
.ra-format-choice strong { display: block; font-size: 12px; font-weight: 500; }
.ra-format-choice small { display: block; color: var(--muted); font-size: 10px; font-weight: 400; margin-top: 5px; }
.ra-target-picker { border: 1px solid var(--line); border-radius: 9px; background: #131713; padding: 0 15px 12px; }
.ra-target-picker summary { cursor: pointer; padding: 13px 0 4px; font-size: 12px; }
.ra-target-picker > input { margin-bottom: 12px; }
.ra-country-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); max-height: 220px; overflow-y: auto; gap: 5px 15px; padding: 2px; }
.ra-country-grid label { display: flex; gap: 8px; align-items: center; padding: 5px 0; font-size: 11px; font-weight: 400; }
.ra-form-section { border-top: 1px solid var(--line); padding-top: 25px; }
.ra-form-section h3 { font-size: 18px; font-weight: 500; margin-bottom: 7px; }
.ra-form-section > p { font-size: 11px; margin-bottom: 20px; }
.ra-form-section > fieldset,.ra-form-section > label { margin-top: 20px; }
.ra-form-actions { display: flex; align-items: center; justify-content: space-between; gap: 15px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 22px; }
.ra-form-actions p { font-size: 11px; }
.ra-modal-form { margin-top: 22px; }
.ra-modal-form .ra-actions { justify-content: space-between; }
.ra-modal-form .text-button { font-size: 11px; }
.ra-form-error { color: #e3ac9b; font-size: 12px; line-height: 1.8; border-left: 2px solid #b87e65; padding-left: 12px; }
.ra-form-error:empty { display: none; }
.ra-back { display: inline-flex; gap: 7px; align-items: center; color: var(--muted); font-size: 11px; margin-bottom: 25px; }
.ra-back:hover { color: var(--accent); }
.ra-back svg { width: 14px; height: 14px; }
.ra-detail-grid { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(270px,.9fr); gap: 24px; }
.ra-detail-list { margin: 0; }
.ra-detail-list > div { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 11px; }
.ra-detail-list > div:first-child { padding-top: 0; }
.ra-detail-list > div:last-child { border-bottom: 0; padding-bottom: 0; }
.ra-detail-list dt { color: var(--muted); flex-shrink: 0; }
.ra-detail-list dd { text-align: right; margin: 0; overflow-wrap: anywhere; }
.ra-detail-list dd a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.ra-creative-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; padding: 24px; }
.ra-creative { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; min-width: 0; }
.ra-creative-media { height: 200px; background: #0a0e0a; position: relative; display: flex; align-items: center; justify-content: center; }
.ra-creative-media img,.ra-creative-media video { width: 100%; height: 100%; object-fit: contain; }
.ra-creative-body { padding: 14px; }
.ra-creative-body strong { font-size: 11px; font-weight: 500; display: block; overflow-wrap: anywhere; }
.ra-creative-body p { font-size: 10px; margin: 7px 0 12px; }
.ra-creative-body .ra-actions { justify-content: space-between; }
.ra-upload-zone { padding: 26px; border: 1px dashed #585b40; border-radius: 9px; background: #20251a; text-align: center; margin: 0 24px 24px; }
.ra-upload-zone h3 { font-size: 17px; font-weight: 500; margin-bottom: 8px; }
.ra-upload-zone p { font-size: 11px; margin-bottom: 15px; }
.ra-upload-zone .ra-upload-status { color: var(--accent); margin: 12px 0 0; min-height: 18px; }
.ra-balance-card { padding: 32px; background: #252c1e; border-color: #414b33; }
.ra-balance-card .ra-balance { display: block; font-size: 56px; letter-spacing: -.05em; font-weight: 450; line-height: 1.2; margin: 18px 0 10px; }
.ra-balance-card > p { font-size: 12px; margin-bottom: 24px; }
.ra-payment-note { margin-top: 16px; color: #a0aa94; font-size: 10px; line-height: 1.8; }
.ra-price-detail { font-size: 11px; display: grid; gap: 18px; }
.ra-price-detail strong { color: var(--text); display: block; font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.ra-amount-presets { display: flex; gap: 9px; }
.ra-amount-presets .button { flex: 1; }
.ra-projection { display: flex; justify-content: space-between; gap: 12px; background: #262b20; border: 1px solid #424a32; border-radius: 8px; padding: 14px 16px; font-size: 11px; align-items: center; }
.ra-projection strong { color: var(--accent); font-size: 18px; font-weight: 500; }
.ra-recovery-code { display: block; font-family: Consolas,monospace; font-size: 19px; letter-spacing: .04em; overflow-wrap: anywhere; padding: 20px; border: 1px solid #5c593d; background: #24291d; border-radius: 9px; margin: 20px 0; color: #edd9a9; user-select: all; line-height: 1.7; }
.ra-recovery-note { color: #c6b990; font-size: 11px; margin-bottom: 20px; line-height: 1.8; }
.ra-inline-code { font-family: Consolas,monospace; font-size: 11px; color: #d7c79d; background: #22271d; border-radius: 5px; padding: 6px 8px; overflow-wrap: anywhere; user-select: all; }
.ra-game-list { display: grid; gap: 16px; padding: 24px; }
.ra-game-card { padding: 23px; border: 1px solid var(--line); border-radius: 9px; background: #121712; }
.ra-game-card .ra-game-top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.ra-game-card h3 { font-size: 19px; font-weight: 500; margin-bottom: 7px; }
.ra-game-card p { font-size: 11px; }
.ra-game-key { margin: 20px 0; display: flex; align-items: center; gap: 10px; }
.ra-game-key code { flex: 1; min-width: 0; }
.ra-game-card .ra-game-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; }
.ra-game-card small { color: var(--muted); font-size: 10px; }
.ra-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 19px; }
.ra-checklist li { display: flex; gap: 13px; align-items: flex-start; }
.ra-checklist .ra-step-num { color: var(--accent); border: 1px solid #464b35; background: #272d1f; border-radius: 50%; width: 28px; height: 28px; font-size: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ra-checklist strong { display: block; font-size: 12px; font-weight: 500; margin-bottom: 4px; }
.ra-checklist p { font-size: 11px; line-height: 1.75; }
.ra-help-text { font-size: 12px; line-height: 1.9; color: var(--muted); }
.ra-help-text p { margin: 15px 0; }
.ra-help-text h3 { color: var(--text); font-size: 17px; margin: 25px 0 10px; font-weight: 500; }
.ra-help-text ul { padding-left: 20px; display: grid; gap: 9px; }
.ra-help-text strong { color: var(--text); font-weight: 500; }
.ra-help-text a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.ra-chart { padding: 25px; display: flex; gap: 12px; align-items: flex-end; min-height: 210px; overflow-x: auto; }
.ra-chart-col { flex: 1; min-width: 38px; text-align: center; }
.ra-chart-value { font-size: 10px; color: #e0ceab; margin-bottom: 8px; }
.ra-chart-bar-track { height: 120px; display: flex; align-items: flex-end; }
.ra-chart-bar { background: #baa05e; width: 100%; min-height: 2px; border-radius: 4px 4px 0 0; }
.ra-chart-label { color: var(--muted); font-size: 9px; margin-top: 10px; }
.ra-status-list { display: grid; gap: 14px; }
.ra-status-row { display: flex; justify-content: space-between; gap: 15px; align-items: center; font-size: 12px; }
.ra-status-row p { font-size: 10px; margin-top: 4px; }
.ra-spinner { width: 25px; height: 25px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: ra-spin .7s linear infinite; margin: 60px auto 20px; }
.ra-loading { text-align: center; font-size: 12px; color: var(--muted); min-height: 270px; }
@keyframes ra-spin { to { transform: rotate(360deg); } }
@media (min-width:1600px) { .ra-content { padding-top: 48px; } }
@media (max-width:1100px) {
  .ra-sidebar { width: 210px; padding-inline: 12px; }
  .ra-main { margin-left: 210px; }
  .ra-content { padding: 30px 24px 35px; }
  .ra-topbar { padding: 0 24px; }
  .ra-footer { padding-inline: 24px; }
  .ra-heading { flex-direction: column; gap: 13px; }
  .ra-heading .ra-actions { padding-top: 0; }
  .ra-metric { padding: 19px 15px; }
  .ra-split,.ra-detail-grid { grid-template-columns: 1fr; }
  .ra-metric-value { font-size: 31px; }
  .ra-top-balance { display: none; }
}
@media (max-width:760px) {
  .ra-sidebar { width: 250px; transform: translateX(-100%); visibility: hidden; transition: transform .2s; }
  .ra-main { margin-left: 0; }
  .ra-shell.ra-menu-open .ra-sidebar { transform: translateX(0); visibility: visible; }
  .ra-shell.ra-menu-open .ra-sidebar-mask { display: block; position: fixed; z-index: 45; inset: 0; background: #0008; border: 0; }
  .ra-mobile-button { display: inline-flex; }
  .ra-topbar { height: 65px; padding-inline: 16px; }
  .ra-crumb { gap: 7px; font-size: 10px; }
  .ra-crumb > span { display: none; }
  .ra-top-actions { gap: 7px; }
  .ra-user-badge span:last-child { display: none; }
  .ra-content { padding: 26px 18px 34px; }
  .ra-heading { margin-bottom: 23px; }
  .ra-heading h1 { font-size: 28px; }
  .ra-heading p { font-size: 11px; }
  .ra-footer { padding-inline: 18px; flex-direction: column; font-size: 9px; }
  .ra-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .ra-metric { padding: 17px 14px; }
  .ra-metric-value { font-size: 29px; }
  .ra-metric-label { font-size: 10px; }
  .ra-metric-note { font-size: 9px; }
  .ra-panel-head { padding: 20px 18px; }
  .ra-panel-head h2 { font-size: 17px; }
  .ra-panel-head .button,.ra-panel-head .text-button { font-size: 10px; }
  .ra-panel-body { padding: 21px 18px; }
  .ra-panel { margin-bottom: 20px; }
  .ra-table td { padding: 16px 18px; }
  .ra-table th { padding: 12px 18px; }
  .ra-table { font-size: 11px; }
  .ra-toolbar { padding: 16px 18px; }
  .ra-toolbar span { display: none; }
  .ra-toolbar input { max-width: none; }
  .ra-form-grid { grid-template-columns: 1fr; gap: 18px; }
  .ra-format-choices { gap: 8px; }
  .ra-format-choice { padding: 16px 12px; }
  .ra-format-choice input { right: 10px; top: 12px; width: 12px; height: 12px; }
  .ra-format-choice strong { font-size: 10px; }
  .ra-format-choice small { font-size: 9px; }
  .ra-format-choice svg { width: 18px; height: 18px; }
  .ra-creative-grid { padding: 18px; gap: 12px; }
  .ra-creative-media { height: 180px; }
  .ra-upload-zone { margin: 0 18px 18px; padding: 22px 16px; }
  .ra-notice { padding: 14px; gap: 10px; margin-bottom: 20px; }
  .ra-notice p { font-size: 10px; }
  .ra-game-list { padding: 17px; }
  .ra-game-card { padding: 18px; }
  .ra-game-card .ra-game-top { flex-direction: column; gap: 12px; }
  .ra-game-key { align-items: flex-start; }
  .ra-game-key code { font-size: 10px; }
  .ra-balance-card { padding: 26px; }
  .ra-balance-card .ra-balance { font-size: 49px; }
  .ra-announcement { font-size: 9px; padding: 7px 10px; }
  .ra-announcement span { display: none; }
}
@media (max-width:400px) {
  .ra-creative-grid { grid-template-columns: 1fr; }
  .ra-country-grid { grid-template-columns: 1fr; }
  .ra-metric-value { font-size: 25px; }
  .ra-metric-label svg { display: none; }
  .ra-actions .button { font-size: 11px; padding: 11px 14px; }
  .ra-topbar .ra-crumb b { max-width: 105px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (prefers-reduced-motion: reduce) { .ra-spinner { animation: none; } }
