/* نُزُل: نظام الإدارة. الهوية: بنفسجي غامق #3B1235، بنفسجي #6B135D، تمييز #E7B9DD، خلفية #F8F6F8، خط Readex Pro */
:root {
  --plum-900: #2A0B26;
  --plum-800: #3B1235;
  --plum-700: #4A1A43;
  --plum-600: #6B135D;
  --plum-500: #8A2C7A;
  --plum-300: #B04A9F;
  --plum-100: #E7B9DD;
  --plum-50: #F4EAF2;
  --bg: #F8F6F8;
  --surface: #FFFFFF;
  --surface-2: #FBF9FB;
  --line: #EEE5EC;
  --line-2: #DED4DD;
  --ink: #1E1A1F;
  --ink-2: #4A3E49;
  --muted: #6E6470;
  --ok: #1D7A4C; --ok-bg: #E3F4EA;
  --warn: #8A5A00; --warn-bg: #FFF2D4;
  --bad: #A3261E; --bad-bg: #FDE6E3;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 18px 40px rgba(59, 18, 53, 0.06);
  --font: 'Readex Pro', Tahoma, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.7; }
a { color: var(--plum-600); text-decoration: none; }
a:hover { color: var(--plum-800); }
img { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.4; color: var(--ink); }
p { margin: 0; }
[dir="ltr"], .ltr { direction: ltr; unicode-bidi: isolate; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--plum-300); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent; font: inherit; font-weight: 500; font-size: 15px; cursor: pointer; text-decoration: none; transition: transform .15s, box-shadow .15s, background-color .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.98); }
.btn-primary { background: linear-gradient(180deg, #3B1A35, #221520); color: #fff; box-shadow: 0 10px 22px rgba(34, 21, 32, .22); }
.btn-primary:hover { color: #fff; }
.btn-accent { background: linear-gradient(180deg, var(--plum-500), var(--plum-600)); color: #fff; }
.btn-accent:hover { color: #fff; }
.btn-outline { background: var(--surface); border-color: var(--line-2); color: var(--plum-800); }
.btn-ghost { background: transparent; color: var(--plum-800); }
.btn-danger { background: var(--surface); border-color: #F0C7C1; color: var(--bad); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
form.inline { display: inline; }

/* ---------- Badges & alerts ---------- */
.badge { display: inline-flex; align-items: center; padding: 3px 12px; border-radius: 999px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-bad { background: var(--bad-bg); color: var(--bad); }
.badge-brand { background: var(--plum-50); color: var(--plum-600); }
.badge-muted { background: #EFEDEF; color: #5C555D; }
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 16px; border: 1px solid; font-size: 15px; }
.alert-success { background: var(--ok-bg); border-color: #BFE3CD; color: #145C39; }
.alert-error { background: var(--bad-bg); border-color: #F3C4BE; color: #8A1F18; }
.alert-info { background: var(--plum-50); border-color: #E6D3E1; color: var(--plum-800); }
.alert-warn { background: var(--warn-bg); border-color: #F1DDA8; color: #6B4600; }

/* ---------- Cards & layout ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-body { padding: 22px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.card-head h2 { font-size: 17px; font-weight: 500; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-main { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); } }

.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { font-size: 26px; font-weight: 600; }
.page-head .sub { color: var(--muted); margin-top: 4px; }
.underline { width: 120px; height: 4px; border-radius: 999px; background: linear-gradient(to left, var(--plum-600), rgba(107, 19, 93, 0)); margin-top: 10px; }

/* ---------- KPIs ---------- */
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; }
.kpi .label { color: var(--muted); font-size: 14px; }
.kpi .value { font-size: 26px; font-weight: 600; color: var(--plum-800); font-variant-numeric: tabular-nums; }
.kpi .hint { font-size: 13px; color: var(--muted); }
.kpi a.hint { color: var(--plum-600); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th { text-align: right; font-weight: 500; color: var(--muted); font-size: 13px; padding: 12px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #FCFAFC; }
.table .actions { text-align: left; white-space: nowrap; }
.table td.amount, .table th.amount { text-align: left; font-variant-numeric: tabular-nums; white-space: nowrap; }

.empty { text-align: center; padding: 40px 20px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty img { width: 160px; }
.empty strong { color: var(--plum-800); font-weight: 500; font-size: 17px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.field .help { font-size: 13px; color: var(--muted); }
.input, .field input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]), .field select, .field textarea, select.input, .search-row input, .quote-row input, .table td > input:not([type=checkbox]), .table td > select, .table td form > input:not([type=hidden]), .table td form > select, .row-between > input, .table td div > input {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface); font: inherit; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.8; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { outline: none; border-color: var(--plum-500); box-shadow: 0 0 0 4px rgba(107, 19, 93, .1); }
.field input[dir=ltr] { text-align: left; }
.check { display: flex; align-items: center; gap: 10px; min-height: 40px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--plum-600); }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.filters .input { width: auto; min-width: 180px; }

/* ---------- Tabs & pager ---------- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tabs a { padding: 10px 16px; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; font-weight: 500; }
.tabs a.active, .tabs a[aria-current] { color: var(--plum-800); border-bottom-color: var(--plum-600); }
.pager { display: flex; gap: 6px; justify-content: center; padding: 16px; flex-wrap: wrap; }
.pager a { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); }
.pager a.current { background: var(--plum-800); border-color: var(--plum-800); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); font-size: 14px; }
.chip.active { background: var(--plum-800); color: #fff; border-color: var(--plum-800); }

/* ---------- Definition list ---------- */
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; font-size: 15px; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }

/* ---------- Header (client) ---------- */
.topbar { background: linear-gradient(180deg, var(--plum-700), var(--plum-800)); color: #fff; box-shadow: 0 10px 28px rgba(59, 18, 53, .25); position: sticky; top: 0; z-index: 30; }
.topbar-in { max-width: 1200px; margin: 0 auto; padding: 0 18px; height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar .logo img { height: 38px; display: block; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 44px; height: 44px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: rgba(20, 3, 18, .3); border: 1px solid rgba(255, 255, 255, .14); color: #fff; cursor: pointer; }
.icon-btn:hover { color: #fff; background: rgba(20, 3, 18, .45); }
.subnav { background: var(--plum-900); }
.subnav-in { max-width: 1200px; margin: 0 auto; padding: 0 12px; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.subnav-in::-webkit-scrollbar { display: none; }
.subnav a { color: rgba(255, 255, 255, .78); padding: 12px 14px; white-space: nowrap; border-bottom: 3px solid transparent; font-size: 15px; }
.subnav a:hover { color: #fff; }
.subnav a.active { color: #fff; border-bottom-color: var(--plum-100); }
.main { max-width: 1240px; margin: 0 auto; padding: 28px 20px 64px; box-sizing: content-box; }
.impersonation { background: var(--warn-bg); color: #6B4600; text-align: center; padding: 8px 12px; font-size: 14px; }
.impersonation button { background: none; border: 0; color: var(--plum-600); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; }
.footer { text-align: center; color: var(--muted); font-size: 13px; padding: 24px; }

/* ---------- Admin shell ---------- */
.admin-shell { display: flex; min-height: 100vh; }
.sidebar { width: 260px; flex-shrink: 0; background: linear-gradient(180deg, var(--plum-800), var(--plum-900)); color: #fff; position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 18px 14px 30px; }
.sidebar .logo { display: block; padding: 6px 10px 18px; }
.sidebar .logo img { height: 40px; }
.side-group { margin-top: 14px; }
.side-group .title { font-size: 12px; color: rgba(255, 255, 255, .55); padding: 6px 12px; }
.side-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: rgba(255, 255, 255, .86); padding: 10px 12px; border-radius: 12px; font-size: 15px; }
.side-link:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.side-link.active { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: inset -3px 0 0 var(--plum-100); }
.side-link .count { background: var(--plum-100); color: var(--plum-900); border-radius: 999px; font-size: 12px; padding: 1px 9px; font-weight: 600; }
.admin-main { flex: 1; min-width: 0; }
.admin-top { position: sticky; top: 0; z-index: 20; background: rgba(248, 246, 248, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.admin-top-in { display: flex; align-items: center; gap: 12px; padding: 12px 24px; }
.admin-top form.search { flex: 1; max-width: 420px; }
.admin-top .input { min-height: 42px; background: #fff; }
.admin-content { padding: 26px 24px 64px; max-width: 1280px; }
.menu-toggle { display: none; }
#nav-toggle { display: none; }
@media (max-width: 980px) {
  .sidebar { position: fixed; right: 0; z-index: 50; transform: translateX(105%); transition: transform .2s; }
  #nav-toggle:checked ~ .sidebar { transform: none; box-shadow: -20px 0 40px rgba(20, 3, 18, .3); }
  .menu-toggle { display: inline-flex; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; align-items: center; justify-content: center; cursor: pointer; color: var(--plum-800); }
  .admin-content { padding: 20px 14px 64px; }
  .admin-top-in { padding: 10px 14px; }
}

/* ---------- Auth pages ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-art { background: radial-gradient(ellipse at 15% 75%, rgba(176, 74, 159, .5), transparent 55%), linear-gradient(160deg, var(--plum-700), var(--plum-800) 45%, var(--plum-900)); color: #fff; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 18px; padding: 40px; text-align: center; }
.auth-art img.art { width: min(440px, 90%); }
.auth-art h2 { color: #fff; font-size: 26px; font-weight: 600; }
.auth-art p { color: rgba(255, 255, 255, .8); max-width: 34ch; }
.auth-side { display: flex; align-items: center; justify-content: center; padding: 32px 18px; background-image: linear-gradient(rgba(59, 18, 53, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(59, 18, 53, .035) 1px, transparent 1px); background-size: 56px 56px; }
.auth-card { width: 100%; max-width: 460px; background: #FBFAF9; border: 1px solid #ECE6EA; border-radius: 30px; padding: 14px; box-shadow: 0 30px 60px rgba(59, 18, 53, .1); }
.auth-card .head { background: #EDE8EA; border-radius: 22px; padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.auth-card .head img { height: 40px; }
.auth-card .head span { color: var(--plum-800); font-weight: 500; font-size: 14px; }
.auth-card .body { padding: 26px 12px 12px; }
.auth-card h1 { font-size: 30px; margin-bottom: 6px; }
.auth-card .lead { color: var(--muted); margin-bottom: 22px; }
.auth-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; font-size: 14px; }
@media (max-width: 860px) { .auth-wrap { grid-template-columns: minmax(0, 1fr); } .auth-art { display: none; } }

/* ---------- Catalog ---------- */
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 26px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); }
.plan.featured { background: radial-gradient(ellipse at 85% 0%, rgba(176, 74, 159, .5), transparent 60%), var(--plum-800); color: #fff; border-color: var(--plum-800); }
.plan.featured h3, .plan.featured .price { color: #fff; }
.plan.featured .muted { color: rgba(255, 255, 255, .78); }
.plan h3 { font-size: 21px; font-weight: 600; }
.plan .price { font-size: 30px; font-weight: 600; color: var(--plum-800); }
.plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.plan li { display: flex; gap: 10px; align-items: center; }
.plan li::before { content: ''; width: 20px; height: 20px; flex-shrink: 0; border-radius: 999px; background: var(--plum-600) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-9'/%3E%3C/svg%3E") center/12px no-repeat; }
.plan.featured li::before { background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233B1235' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-9'/%3E%3C/svg%3E"); }
.plan.featured .btn-primary { background: #fff; color: var(--plum-800); }
.option-cards { display: grid; gap: 10px; }
.option-card { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 14px 16px; cursor: pointer; background: var(--surface); }
.option-card:has(input:checked) { border-color: var(--plum-600); background: var(--plum-50); box-shadow: 0 0 0 3px rgba(107, 19, 93, .08); }
.option-card input { accent-color: var(--plum-600); width: 18px; height: 18px; }
.option-card .grow { flex: 1; }

/* ---------- Tickets ---------- */
.thread { display: flex; flex-direction: column; gap: 14px; }
.msg { border-radius: 20px; padding: 16px 18px; border: 1px solid var(--line); background: var(--surface); }
.msg.staff { background: var(--plum-50); border-color: #E6D3E1; }
.msg.internal { background: #FFF8E6; border-color: #F1DDA8; }
.msg-head { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); margin-bottom: 8px; flex-wrap: wrap; }
.msg-head strong { color: var(--plum-800); font-weight: 500; font-size: 14px; }
.msg-body { white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- Invoice ---------- */
.invoice-paper { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 32px; box-shadow: var(--shadow); }
.invoice-paper .inv-head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: flex-start; border-bottom: 1px solid var(--line); padding-bottom: 22px; margin-bottom: 22px; }
.invoice-paper .inv-head img { height: 44px; }
.totals { margin-inline-start: auto; width: min(340px, 100%); display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; margin-top: 18px; }
.totals .grand { font-size: 19px; font-weight: 600; color: var(--plum-800); border-top: 1px solid var(--line); padding-top: 10px; }
.stamp { display: inline-block; border: 3px solid currentColor; border-radius: 14px; padding: 4px 16px; font-weight: 700; font-size: 20px; transform: rotate(-6deg); }
.stamp.paid { color: var(--ok); }
.stamp.unpaid { color: var(--bad); }
@media print {
  .topbar, .subnav, .no-print, .footer, .sidebar, .admin-top, .impersonation { display: none !important; }
  body { background: #fff; }
  .main, .admin-content { padding: 0; max-width: none; }
  .invoice-paper { border: 0; box-shadow: none; padding: 0; }
}

/* ---------- Chart ---------- */
.chart { width: 100%; height: auto; display: block; }
.chart .bar { fill: var(--plum-600); }
.chart .bar.current { fill: var(--plum-300); }
.chart text { font-family: var(--font); font-size: 12px; fill: var(--muted); }
.chart .val { fill: var(--plum-800); font-weight: 600; }
.chart .axis { stroke: var(--line-2); }

@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }

.field input[type=file] { font: inherit; font-size: 14px; }
@media (max-width: 640px) { .chart text { font-size: 20px; } .dl { grid-template-columns: minmax(0, 1fr); gap: 2px 0; } .dl dd { margin-bottom: 10px; } }
.table tr.subrow td { border-top: 0; padding-top: 0; background: var(--surface-2); }
.table tr.subrow .field label { font-size: 12px; }
.search-row { display: flex; gap: 10px; }
.search-row input { flex: 1; min-width: 0; }
.domain-results { list-style: none; margin: 0; padding: 0; }
.domain-results li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.domain-results li:last-child { border-bottom: 0; }
.domain-results li > div:first-child { display: flex; align-items: center; gap: 10px; }
.domain-actions { display: flex; align-items: center; gap: 12px; }
@media (max-width: 640px) { .search-row { flex-direction: column; } .domain-actions { width: 100%; justify-content: space-between; } }
.cart-line-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.cart-parts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cart-parts li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.cart-parts li:last-child { border-bottom: 0; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.usage { display: grid; gap: 6px; }
.usage-head { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.meter { height: 10px; background: var(--plum-50); border-radius: 999px; overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--plum-600); border-radius: 999px; min-width: 4px; }
.meter span.hot { background: var(--bad); }
label.chip { gap: 6px; cursor: pointer; }
/* star rating: inputs listed 5..1, row-reverse puts 1 at the start side in both directions */
.stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars label { font-size: 30px; line-height: 1; color: var(--line-2); cursor: pointer; padding: 4px; min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.stars input:checked ~ label, .stars label:hover, .stars label:hover ~ label { color: #C98A1B; }
.stars input:focus-visible + label { outline: 2px solid var(--plum-600); border-radius: 8px; }
.stars-static { color: #C98A1B; letter-spacing: 2px; }
.kb-list { list-style: none; margin: 0; padding: 0; }
.kb-list li { padding: 12px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; }
.kb-list li:last-child { border-bottom: 0; }
.kb-list .kb-cat { background: var(--surface-2); font-weight: 600; font-size: 14px; color: var(--ink-2); }
.kb-body h2 { font-size: 18px; margin: 18px 0 8px; }
.kb-body p { margin: 0 0 12px; line-height: 1.9; }
.kb-body ul { margin: 0 0 12px; padding-inline-start: 22px; line-height: 1.9; }
.kb-body code { background: var(--plum-50); padding: 1px 6px; border-radius: 6px; font-size: 13px; }
.quote-row { display: grid; grid-template-columns: 1fr 140px; gap: 8px; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.stat { display: grid; gap: 4px; }
.stat b { font-size: 22px; font-weight: 600; }
.filter-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.filter-bar .field { min-width: 150px; }
.chart-wrap { position: relative; }
.chart { width: 100%; height: auto; display: block; font-family: var(--font); }
.chart .grid { stroke: #EFE9EE; stroke-width: 1; }
.chart .axis { stroke: #D9CFD7; stroke-width: 1; }
.chart .tick { fill: var(--muted); font-size: 12px; }
.chart .val { fill: var(--ink); font-size: 12px; font-weight: 600; }
.chart .col { fill: var(--plum-500); }
.chart .hit { fill: transparent; }
.chart .bar:hover .col, .chart .bar:focus .col { fill: var(--plum-600); }
.chart .bar:focus { outline: none; }
.chart .bar:focus-visible .hit { stroke: var(--plum-600); stroke-width: 1.5; }
.chart-tip { position: absolute; pointer-events: none; background: var(--plum-900); color: #fff; border-radius: 10px; padding: 6px 10px; font-size: 13px; white-space: nowrap; transform: translate(-50%, -110%); box-shadow: var(--shadow); }
details summary { cursor: pointer; color: var(--plum-600); }
pre.code { background: var(--plum-900); color: #F4EAF2; padding: 12px 14px; border-radius: 12px; overflow-x: auto; font-size: 13px; margin: 0; }
.lang-link { color: #fff; font-size: 14px; padding: 8px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); min-height: 40px; display: inline-flex; align-items: center; }
.lang-link:hover { color: #fff; background: rgba(255,255,255,.1); }
.lang-link.dark { color: var(--plum-600); border-color: var(--line-2); min-height: 32px; padding: 2px 10px; margin-inline-start: 6px; font-size: 13px; }
/* LTR mode: inline right alignment used for LTR fields inside RTL pages should follow the page */
html[dir="ltr"] [style*="text-align:right"] { text-align: left !important; }
.search-row input:focus, .quote-row input:focus, .table td input:focus, .table td select:focus, .row-between > input:focus { outline: none; border-color: var(--plum-500); box-shadow: 0 0 0 4px rgba(107, 19, 93, .1); }
.table td input, .table td select { min-height: 40px; padding: 6px 10px; }
[hidden] { display: none !important; }
.linklike { background: none; border: 0; color: var(--plum-600); font: inherit; text-decoration: underline; cursor: pointer; padding: 0; }
.bulk-bar{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:12px;padding:12px 16px}
.bulk-bar .input{width:auto;min-width:180px}
.cur-pick{position:relative}
.cur-pick summary{list-style:none;cursor:pointer;font-variant-numeric:tabular-nums;color:inherit}
.cur-pick summary::-webkit-details-marker{display:none}
.cur-menu{position:absolute;inset-inline-end:0;top:calc(100% + 6px);background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 10px 30px rgba(40,10,60,.14);padding:6px;min-width:120px;z-index:30}
.cur-menu a{display:flex;justify-content:space-between;gap:8px;padding:8px 10px;border-radius:8px;color:var(--ink);text-decoration:none}
.cur-menu a:hover,.cur-menu a[aria-current]{background:var(--plum-50)}
.suggest-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-top:1px solid var(--line)}
.suggest-row:first-of-type{border-top:0}
@media (max-width: 480px) {
  .hide-xs { display: none; }
  .topbar-actions { gap: 6px; }
  .topbar-actions .lang-link { padding: 6px 8px; font-size: 13px; }
}
.table-wide { min-width: 760px; }
.table-wide td, .table-wide th { white-space: nowrap; }
@media print { .table-wide { min-width: 0; } }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field > legend { padding: 0; margin-bottom: 8px; }
.topbar .logo { flex-shrink: 0; }
.hide-xs:empty { display: none; }
.lang-link.dark .cur-menu, .cur-pick.dark .cur-menu { color: var(--ink); }
.or-sep{display:flex;align-items:center;gap:12px;color:var(--muted,#6E6470);font-size:13px;margin:14px 0}
.or-sep::before,.or-sep::after{content:"";flex:1;height:1px;background:var(--line)}
.btn-google{gap:10px;min-height:50px}
.captcha{min-height:66px;display:flex;justify-content:center}
.todo-list{list-style:none;margin:0;padding:0}
.todo-list li{display:flex;align-items:flex-start;gap:12px;padding:14px 18px;border-top:1px solid var(--line)}
.todo-list li:first-child{border-top:0}
.todo-body{flex:1;display:flex;flex-direction:column;gap:3px;min-width:0}
.todo-check{width:26px;height:26px;border-radius:8px;border:2px solid var(--line-2);background:#fff;cursor:pointer;color:#fff;font-weight:700;line-height:1;flex-shrink:0;margin-top:2px}
.todo-check:hover{border-color:var(--plum-600)}
.todo-check.done{background:var(--plum-600);border-color:var(--plum-600)}
.u{text-decoration:underline;text-underline-offset:3px}
.todo-check{width:32px;height:32px}
.demo-bar{background:#FFF4D6;color:#5A4200;border-bottom:1px solid #F0D98A;padding:8px 16px;text-align:center;font-size:14px;line-height:1.6}
.demo-bar b{margin-inline-end:6px}
.demo-logins{margin-top:18px;padding:14px;border:1px dashed var(--line-2);border-radius:14px;display:flex;flex-direction:column;gap:8px;background:#FFFCF3}
.demo-login{display:flex;flex-direction:column;align-items:flex-start;gap:2px;text-align:start;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:#fff;cursor:pointer;font:inherit;color:var(--ink);min-height:48px}
.demo-login:hover,.demo-login:focus-visible{border-color:var(--plum-600)}

.nowrap{white-space:nowrap}
.alert a{text-decoration:underline;text-underline-offset:3px}


/* Customer pages under the site header (site.css) */
.subnav-client { background: #2A0B26; }
.subnav-client .subnav-in { max-width: 1240px; padding: 0 16px; box-sizing: content-box; }
.auth-wrap.auth-site { min-height: calc(100vh - 80px); }
.auth-site .auth-art { border-radius: 0 0 0 36px; }
[dir=ltr] .auth-site .auth-art { border-radius: 0 0 36px 0; }
.auth-site .auth-card .body { padding-top: 10px; }
