/* PARTNEX Control Room — light theme (default) + theme toggle. Dark stays as before. */
html[data-theme="light"] {
  --primary: #5b45f0; --primary-light: #3b82f6; --accent: #0ea5c6;
  --bg-soft: #f5f6fa; --white: #ffffff; --card: #ffffff;
  --text-dark: #0f1222; --text-mid: #3a4156; --text-light: #646b80;
  --danger: #e5484d; --success: #12a150; --warning: #d97706;
  --grad: linear-gradient(135deg, #6a52ff, #4f6dff);
  --card-border: #e8eaf1; --px-line: #e4e7ef; --px-surface: #f0f2f7;
  color-scheme: light;
}
html[data-theme="light"] body { background: #f5f6fa !important; }
html[data-theme="light"] #loading-screen, html[data-theme="light"] #unauthorized { background: #f5f6fa !important; }
html[data-theme="light"] #admin-login { background: radial-gradient(900px 500px at 85% -10%, rgba(91,69,240,.14), transparent 60%), #f5f6fa; }
html[data-theme="light"] .app-header.px-admin-top { background: rgba(255,255,255,.88) !important; }
html[data-theme="light"] .app-input option { background: #fff !important; color: #0f1222 !important; }
html[data-theme="light"] .filter-chip.active { color: #fff !important; }
html[data-theme="light"] .toast { background: #0f1222 !important; color: #fff !important; }
html[data-theme="light"] .bottom-nav.px-admin-nav { background: rgba(255,255,255,.96) !important; box-shadow: 0 -4px 20px rgba(16,18,34,.06); }
html[data-theme="light"] .px-vpn-sa code { background: #f0f2f7 !important; }
html[data-theme="light"] .px-more-sheet { background: rgba(12,14,28,.4); }
html[data-theme="light"] .px-more-grid button.on, html[data-theme="light"] .stat-icon { background: rgba(91,69,240,.09); }
html[data-theme="light"] .stat-card, html[data-theme="light"] .card { box-shadow: 0 1px 2px rgba(16,18,34,.04), 0 4px 16px rgba(16,18,34,.05); }
html[data-theme="light"] .px-admin-top .admin-badge { background: rgba(217,119,6,.1) !important; color: #b45309 !important; border-color: rgba(217,119,6,.3) !important; }
.px-admin-theme { border: 1px solid var(--px-line); background: var(--px-surface); color: var(--text-dark); width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 17px; cursor: pointer; transition: transform .15s; flex: none; }
.px-admin-theme:active { transform: scale(.9); }
.px-admin-top .header-top { align-items: center; }
/* Guarantee Pay card */
.px-gp-pill { margin-left: auto; font: 700 11px Inter, sans-serif; padding: 4px 9px; border-radius: 999px; }
.px-gp-pill.ok { color: #12a150; background: rgba(18,161,80,.12); } .px-gp-pill.warn { color: #d97706; background: rgba(245,158,11,.14); }
.px-gp-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.px-gp-setup { margin: 12px 0; padding: 12px; border-radius: 12px; background: var(--px-surface); font-size: 12.5px; color: var(--text-mid); line-height: 1.5; }
.px-gp-setup ol { margin: 6px 0; padding-left: 18px; } .px-gp-setup code { word-break: break-all; font-size: 11.5px; }
.px-gp-ok { color: var(--success); font-weight: 700; } .px-gp-bad { color: var(--danger); font-weight: 700; }
.px-gp-clear { border: 0; background: none; color: var(--danger); font-size: 12px; margin-top: 8px; cursor: pointer; padding: 4px 0; }
.px-gp-recent { display: grid; gap: 6px; }
.px-gp-tx { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 9px 10px; border-radius: 10px; background: var(--px-surface); font-size: 13px; }
.px-gp-tx small { display: block; color: var(--text-light); font-size: 11px; word-break: break-all; } .px-gp-note { color: var(--warning) !important; }
.px-gp-st { font-size: 11px; font-weight: 700; color: var(--text-light); } .st-completed .px-gp-st { color: var(--success); } .st-review .px-gp-st { color: var(--danger); }
.px-gp-tx button { border: 1px solid var(--px-line); background: var(--card); color: var(--text-dark); border-radius: 8px; padding: 6px 10px; font-size: 12px; cursor: pointer; flex: none; }
.px-gp-legacy { margin: 10px 0; font-size: 13px; } .px-gp-legacy summary { cursor: pointer; color: var(--text-light); padding: 6px 0; }
/* light theme: readable inputs (partnex-admin.css forces a dark field background) */
html[data-theme="light"] .app-input, html[data-theme="light"] .broadcast-textarea, html[data-theme="light"] select.app-input { background: #fff !important; color: #0f1222 !important; -webkit-text-fill-color: #0f1222 !important; border: 1px solid #dde1ea !important; }
html[data-theme="light"] .app-input::placeholder, html[data-theme="light"] .broadcast-textarea::placeholder { color: #8a90a2 !important; -webkit-text-fill-color: #8a90a2 !important; }

/* Tools admin */
.px-tools-admin { display: grid; gap: 10px; margin-bottom: 14px; }
.px-tool-adm-head { display: flex; align-items: center; gap: 10px; }
.px-tool-adm-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; color: #fff; background: var(--grad, linear-gradient(135deg, #6a52ff, #4f6dff)); flex: none; }
.px-tool-pill { font: 700 10.5px/1 Inter, sans-serif; letter-spacing: .04em; text-transform: uppercase; padding: 5px 8px; border-radius: 999px; flex: none; }
.px-tool-pill.ok { background: rgba(18,161,80,.12); color: #128a44; }
.px-tool-pill.wait { background: rgba(217,119,6,.14); color: #b45309; }
.px-tool-pill.off { background: rgba(100,107,128,.14); color: #646b80; }
