
:root {
  color-scheme: dark;
  --bg-black:#050408; --bg-canvas:#09070e; --bg-sidebar:#0e0a15;
  --bg-card:#17111f; --bg-card-hover:#21182e; --bg-surface:#21182e; --bg-input:#100b18;
  --border-subtle:#34263f; --border-light:#51405f; --border-focus:#e4b6ff;
  --text-main:#f6f1fc; --text-muted:#c6b9d4; --text-dim:#aa98bd;
  --primary:#8039ce; --primary-hover:#9448e8; --accent-blue:#cc9aff; --accent-purple:#cc9aff;
  --shadow-glow:none;
}
body, main.main-content { background:var(--bg-canvas); background-image:none; }
.sidebar, .rc-sidebar { background:var(--bg-sidebar); }
.top-nav, .rc-topbar { background:#100b18; border-color:var(--border-subtle); backdrop-filter:none; }
.nav-item.active, .rc-nav button[aria-pressed=true] {
  background:#2b1740; color:#f4e5ff; border-color:#6f3b96; box-shadow:inset 2px 0 #c389ff;
}
.nav-item.active svg, .rc-nav button[aria-pressed=true] .rc-icon { color:#d3a4ff; }
.auth-logo, .sidebar-logo, .rc-avatar { background:#1b1029; border-color:#633983; }
.auth-logo img, .sidebar-logo img { width:100%;height:100%;object-fit:contain;mix-blend-mode:screen; }
.auth-logo {width:72px;height:72px;padding:0;border:0;background:transparent;}
.sidebar-logo {width:38px;height:38px;padding:0;border:0;background:transparent;}
.brand-link {display:inline-flex;align-items:center;gap:10px;color:var(--text-main);text-decoration:none;}
.brand-link img {width:42px;height:42px;object-fit:contain;mix-blend-mode:screen;}
.auth-intro .brand-link {font-size:20px;font-weight:700;}
.auth-intro h1 {letter-spacing:-.035em;}
#auth-screen {background:radial-gradient(ellipse at 10% 0%,#28103d,transparent 65%),#09070e;}
.auth-card {border-color:var(--border-subtle);background:var(--bg-card);}
#view-dashboard {--bg-card:#17111f;--bg-card-hover:#21182e;--border-subtle:#34263f;--text-main:#f6f1fc;--text-muted:#c6b9d4;--text-dim:#aa98bd;}
#view-dashboard .app-banner, .app-banner {background:linear-gradient(110deg,#2c1643,#17111f 75%);border-color:#533166;}
.seller-app-header, #workspace-input-dialog .rc-dialog-header {background:var(--bg-card-hover);}
.data-table thead, .rc-table th {background:#110b19;}
.data-table tbody tr:hover, .rc-table tbody tr:hover {background:#c389ff08;}
.btn-primary, .reseller-console .btn-primary, .reseller-dialog .btn-primary {background:var(--primary);border-color:var(--primary);color:#fff;box-shadow:none;}
.btn-primary:hover, .reseller-console .btn-primary:hover, .reseller-dialog .btn-primary:hover {background:var(--primary-hover);}
.form-control:focus {border-color:var(--border-focus);box-shadow:0 0 0 3px #b26bff1b;}
.form-control::placeholder, .reseller-console .form-control::placeholder {color:#aa98bd;opacity:1;}
.reseller-console, .reseller-dialog {
  --rc-bg:#09070e;--rc-card:#17111f;--rc-input:#100b18;--rc-border:#34263f;
  --rc-text:#f6f1fc;--rc-muted:#c6b9d4;--rc-blue:#8039ce;
}
body.reseller-portal {background:#09070e;}
::selection {background:#693392;color:#fff;}
:where(a,button,input,select,textarea,summary,[tabindex="0"]):focus-visible {outline:2px solid #e4b6ff;outline-offset:3px;}
.skip-link {position:fixed;top:10px;left:10px;transform:translateY(-160%);padding:10px 14px;background:#28103d;color:#fff;z-index:1000;border-radius:8px;}
.skip-link:focus {transform:none;}
.language-select {min-height:38px;border:1px solid #51405f;border-radius:7px;background:#17111f;color:#f6f1fc;padding:7px 9px;font:inherit;font-size:12px;max-width:112px;}
.auth-language {position:absolute;top:18px;right:20px;}
#auth-screen {position:relative;padding-top:72px;}
.auth-intro .brand-icon {width:150px;height:150px;display:block;mix-blend-mode:screen;margin-bottom:16px;}
.rc-brand .rc-avatar img {width:36px;height:36px;object-fit:contain;mix-blend-mode:screen;}
#toast-container {max-width:calc(100vw - 24px);}
@media(max-width:760px) {
 .language-select {max-width:68px;min-height:40px;padding:5px;}
 .top-nav {gap:4px;padding-inline:8px;}
 .top-nav-right {gap:3px;}
 .top-nav-right .btn-sm {padding-inline:7px;}
 .auth-language {top:16px;right:16px;max-width:112px;}
 #auth-screen {padding-top:72px;}
}
@media(prefers-reduced-motion:reduce) {
 *,*::before,*::after {animation:none!important;transition:none!important;scroll-behavior:auto!important;}
}

.kpi-icon:not(.success):not(.warning) {background:#2c1743;color:#c18cff;}
.seller-app-header .seller-app-icon {background:#2c1743;color:#c18cff;}

[hidden] {display:none!important;}
.rc-topbar-actions {display:flex;align-items:center;gap:18px;margin-left:auto;min-width:0;}
.rc-topbar-actions .rc-profile {min-width:0;}
.rc-topbar-actions .rc-profile > span:last-child {max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.reseller-portal .rc-topbar {gap:18px;}
.rc-extension-form {display:grid;grid-template-columns:100px auto;gap:8px;align-items:end;max-width:320px;}
.rc-extension-form label {font-size:12px;color:var(--text-muted);}
.rc-extension-form input {margin-top:6px;}
.rc-extension-form output,.rc-extension-form small {grid-column:1/-1;white-space:normal;line-height:1.5;}
.rc-extension-form output {color:#e4b6ff;font-size:13px;}
.rc-extension-form small {font-size:11px;color:var(--text-muted);}
body:not(.reseller-portal) #auth-screen {display:grid;grid-template-columns:minmax(0,430px) minmax(0,440px);gap:clamp(48px,8vw,130px);padding:80px 32px 48px;align-items:center;justify-content:center;min-height:100svh;}
.auth-intro h1 {font-size:clamp(38px,4vw,60px);max-width:13ch;line-height:1.08;margin:32px 0 24px;text-wrap:balance;}
.auth-intro p {font-size:16px;line-height:1.75;max-width:36ch;}
.auth-card {padding:32px;max-width:440px;border-radius:18px;}
.auth-brand {text-align:left;position:relative;padding-right:58px;margin-bottom:24px;}
.auth-brand .auth-logo {position:absolute;right:0;top:0;width:44px;height:44px;margin:0;}
.auth-brand h2 {font-size:24px;letter-spacing:-.025em;line-height:1.3;margin:0 0 10px;}
.auth-brand p {font-size:13px;line-height:1.65;}
.auth-access-switch {display:grid;grid-template-columns:1fr 1fr;padding:4px;gap:4px;border:1px solid var(--border-subtle);border-radius:9px;background:var(--bg-input);margin-bottom:26px;}
.auth-access-switch a {text-align:center;padding:9px 8px;font-size:13px;color:var(--text-muted);border-radius:6px;text-decoration:none;}
.auth-access-switch a[aria-current=page] {background:#352044;color:#f6f1fc;}
.auth-access-switch a:hover {color:#fff;background:#281935;}
.auth-card #auth-form .form-group {margin-bottom:20px;}
.auth-card .form-control {min-height:46px;}
.auth-card .auth-oauth-divider {margin:24px 0 16px;}
.auth-card .auth-oauth-buttons {display:grid;grid-template-columns:1fr;}
.auth-card .btn-oauth {min-height:44px;justify-content:center;}
.auth-card .auth-toggle {margin-top:24px;line-height:1.7;}
.social-cards-grid {grid-template-columns:1fr;}
@media(max-width:900px) {
 body:not(.reseller-portal) #auth-screen {grid-template-columns:minmax(0,440px);padding:80px 20px 32px;}
 .auth-intro {display:none;}
 .auth-mobile-wordmark {display:block;font-size:13px;color:var(--text-muted);margin-bottom:12px;}
 .auth-card {padding:28px;}
}
@media(max-width:560px) {
 .rc-topbar-actions {gap:8px;}
 .rc-topbar-actions .rc-profile {display:none;}
 .rc-breadcrumb {min-width:0;}
 .rc-breadcrumb > span {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
 .auth-card {padding:24px 20px;}
}
