/* =====================================================================
   المهاب — شاشة الدخول للبرامج
   The Nest style: Rich Black #0A0526, Are Blue #845EFF, Spring Bud #AEED16, Steel Pink #BA2ABA
   ===================================================================== */
:root {
  --night: #0A0526;
  --night-2: #140C3A;
  --violet: #845EFF;
  --violet-d: #6A44E8;
  --violet-50: #F3EFFF;
  --violet-100: #E6DEFF;
  --lime: #AEED16;
  --lime-50: #F3FBDF;
  --lime-ink: #3F5A00;
  --pink: #BA2ABA;
  --orange: #F08A24;
  --red: #C8312B;
  --red-50: #FDECEB;
  --green: #14804A;
  --green-50: #E7F6EE;

  --bg: #F7F6FC;
  --surface: #FFFFFF;
  --surface-2: #FAF9FE;
  --line: #E9E6F3;
  --line-soft: #F1EFF8;
  --text: #0A0526;
  --text-2: #5F5A73;
  --text-3: #9A95AD;
  --input: #FFFFFF;
  --shadow: 0 1px 2px rgba(10, 5, 38, .04), 0 8px 28px rgba(10, 5, 38, .06);

  --font: 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --display: 'Alexandria', 'IBM Plex Sans Arabic', sans-serif;
  --r: 10px;
  --r-lg: 16px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B0720; --surface: #151033; --surface-2: #120D2C; --line: #29224F; --line-soft: #1E1840;
    --text: #F1EFFA; --text-2: #B3ADCB; --text-3: #7E7898; --input: #100B28;
    --violet-50: #221A4D; --violet-100: #2E2466; --lime-50: #1F2A0A; --lime-ink: #C9F25A;
    --red-50: #3A1416; --green-50: #0F2A1D; --red: #FF7A72; --green: #4BD38A;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .25);
  }
}
:root[data-theme="dark"] {
  --bg: #0B0720; --surface: #151033; --surface-2: #120D2C; --line: #29224F; --line-soft: #1E1840;
  --text: #F1EFFA; --text-2: #B3ADCB; --text-3: #7E7898; --input: #100B28;
  --violet-50: #221A4D; --violet-100: #2E2466; --lime-50: #1F2A0A; --lime-ink: #C9F25A;
  --red-50: #3A1416; --green-50: #0F2A1D; --red: #FF7A72; --green: #4BD38A;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .25);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
a { color: var(--violet); }
.ltr { direction: ltr; unicode-bidi: isolate; }
.muted { color: var(--text-2); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- buttons & fields ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); font-weight: 700; cursor: pointer; transition: background .15s, border-color .15s, transform .1s; white-space: nowrap; }
.btn:hover { border-color: var(--violet); }
.btn:active { transform: translateY(1px); }
.btn i { font-size: 19px; }
.btn.primary { background: var(--violet); border-color: var(--violet); color: #fff; }
.btn.primary:hover { background: var(--violet-d); }
.btn.dark { background: var(--night); border-color: var(--night); color: #fff; }
.btn.danger { color: var(--red); }
.btn.danger:hover { border-color: var(--red); background: var(--red-50); }
.btn.block { width: 100%; height: 50px; font-size: 16px; }
.btn.sm { height: 36px; padding: 0 12px; font-size: 14px; }
.btn:disabled { opacity: .6; cursor: default; }
.icon-btn { width: 40px; height: 40px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); display: inline-grid; place-items: center; cursor: pointer; color: var(--text-2); }
.icon-btn:hover { color: var(--violet); border-color: var(--violet); }
.icon-btn i { font-size: 19px; }
.link { background: none; border: 0; padding: 0; color: var(--violet); font-weight: 600; cursor: pointer; text-decoration: none; }
.link:hover { text-decoration: underline; }

.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field > label { font-weight: 700; font-size: 14px; }
.field .hint { font-size: 12.5px; color: var(--text-3); }
.input { width: 100%; height: 48px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--input); font-size: 16px; outline: none; transition: border-color .15s, box-shadow .15s; }
.input:focus { border-color: var(--violet); box-shadow: 0 0 0 4px color-mix(in srgb, var(--violet) 18%, transparent); }
.input[dir="ltr"] { text-align: left; }
.pw-wrap { position: relative; }
/* password inputs are LTR inside an RTL page → place the eye on the physical left and pad that side */
.pw-wrap .input { padding-left: 50px; padding-right: 14px; }
.pw-wrap .eye { position: absolute; left: 4px; top: 4px; width: 40px; height: 40px; border: 0; background: none; color: var(--text-3); cursor: pointer; border-radius: 8px; }
.pw-wrap .eye:hover { color: var(--violet); }
.pw-wrap .eye i { font-size: 20px; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; font-weight: 500; }
.check input { width: 20px; height: 20px; accent-color: var(--violet); margin: 0; }
.err-box { display: none; align-items: flex-start; gap: 8px; background: var(--red-50); color: var(--red); border-radius: var(--r); padding: 10px 12px; margin-bottom: 16px; font-weight: 600; font-size: 14px; }
.err-box.on { display: flex; }
.err-box i { font-size: 19px; margin-top: 1px; }
.note { background: var(--violet-50); border-inline-start: 3px solid var(--violet); padding: 10px 12px; border-radius: 8px; font-size: 14px; color: var(--text-2); }
.strength { height: 5px; border-radius: 99px; background: var(--line); overflow: hidden; margin-top: 2px; }
.strength b { display: block; height: 100%; width: 0; background: var(--red); transition: width .2s, background .2s; }
.spin { width: 18px; height: 18px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- login ---------- */
/* بيانات الدخول على اليمين، والصورة على الشمال */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); }
.auth-main { order: 1; }
.auth-side { order: 2; background: var(--night); color: #fff; position: relative; overflow: hidden; padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.auth-side::before, .auth-side::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; }
.auth-side::before { width: 560px; height: 560px; inset-inline-start: -180px; top: -220px; background: radial-gradient(circle, rgba(132, 94, 255, .55), transparent 65%); }
.auth-side::after { width: 460px; height: 460px; inset-inline-end: -140px; bottom: -180px; background: radial-gradient(circle, rgba(186, 42, 186, .42), transparent 65%); }
.auth-side > * { position: relative; z-index: 1; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { height: 56px; }
.brand .name { font-family: var(--display); font-weight: 900; font-size: 32px; line-height: 1; letter-spacing: -.5px; }
.brand .name b { color: var(--lime); }
.brand small { display: block; font-family: var(--font); font-size: 11px; letter-spacing: .16em; color: #A9A3C6; margin-top: 8px; font-weight: 600; }
.auth-hero h1 { font-family: var(--display); font-weight: 900; font-size: clamp(34px, 3.6vw, 48px); line-height: 1.25; margin: 0 0 14px; }
.auth-hero h1 b { color: var(--lime); font-weight: 900; }
.auth-hero p { color: #B9B3D6; font-size: 16.5px; max-width: 470px; margin: 0; }
.chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 520px; }
.chip { display: flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; padding: 10px 12px; font-weight: 600; font-size: 14px; }
.chip .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 30%, transparent); color: #fff; flex: none; }
.chip .ic i { font-size: 20px; }
.auth-foot { color: #7E7898; font-size: 12.5px; }

.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; position: relative; background: var(--surface); }
.auth-main .corner { position: absolute; top: 18px; inset-inline-start: 18px; display: flex; gap: 8px; }
.auth-card { width: min(430px, 100%); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--violet); text-transform: uppercase; margin-bottom: 6px; }
.auth-card h2 { font-family: var(--display); font-weight: 900; font-size: 32px; line-height: 1.2; margin: 0 0 6px; }
.auth-card .sub { color: var(--text-2); margin: 0 0 26px; }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -2px 0 22px; flex-wrap: wrap; }
.auth-card .note { margin-top: 18px; }
.secure { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 22px; color: var(--text-3); font-size: 12.5px; }

/* ---------- signed-in frame ---------- */
.top { position: sticky; top: 0; z-index: 20; background: var(--night); color: #fff; }
.top-in { max-width: 1200px; margin: 0 auto; height: 68px; padding: 0 24px; display: flex; align-items: center; gap: 16px; }
.top .brand img { height: 38px; }
.top .brand .name { font-size: 24px; }
.top .brand small { font-size: 9.5px; margin-top: 5px; }
.top .brand { text-decoration: none; color: inherit; }
.spacer { flex: 1; }
.user-btn { display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); color: #fff; border-radius: 999px; padding: 4px 6px 4px 14px; cursor: pointer; }
[dir="rtl"] .user-btn { padding: 4px 6px 4px 14px; }
.user-btn:hover { background: rgba(255, 255, 255, .12); }
.user-btn .nm { font-weight: 600; font-size: 14px; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--lime); color: var(--night); display: grid; place-items: center; font-weight: 800; font-family: var(--display); font-size: 14px; flex: none; }
.menu-wrap { position: relative; }
.menu { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 250px; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 6px; display: none; }
.menu.on { display: block; }
.menu .who { padding: 10px 12px 12px; border-bottom: 1px solid var(--line-soft); margin-bottom: 6px; }
.menu .who b { display: block; }
.menu .who span { color: var(--text-3); font-size: 13px; }
.menu button, .menu a { display: flex; align-items: center; gap: 10px; width: 100%; text-align: start; background: none; border: 0; padding: 10px 12px; border-radius: 10px; cursor: pointer; color: inherit; text-decoration: none; font-weight: 500; }
.menu button:hover, .menu a:hover { background: var(--violet-50); }
.menu i { font-size: 19px; color: var(--violet); }
.menu .out i { color: var(--red); }

.page { max-width: 1200px; margin: 0 auto; padding: 36px 24px 60px; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.head h1 { font-family: var(--display); font-weight: 900; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.2; margin: 0; }
.head h1 b { color: var(--violet); }
.head .sub { color: var(--text-2); margin: 6px 0 0; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); text-decoration: none; font-weight: 600; margin-bottom: 10px; }
.back:hover { color: var(--violet); }

/* ---------- program cards ---------- */
.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.app-card { --c: var(--violet); position: relative; display: flex; flex-direction: column; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--c); border-radius: var(--r-lg); padding: 20px; color: inherit; text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s; min-height: 210px; }
.app-card:hover, .app-card:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--c) 45%, var(--line)); border-top-color: var(--c); outline: none; }
.app-card .row1 { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.app-ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); }
.app-ic i { font-size: 30px; }
.app-card h3 { font-family: var(--display); font-weight: 800; font-size: 21px; margin: 0; line-height: 1.3; }
.app-card p { margin: 4px 0 0; color: var(--text-2); font-size: 14px; }
.app-card .row2 { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.app-card .host { color: var(--text-3); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.go { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line); color: var(--text-2); transition: background .15s, color .15s, border-color .15s; flex: none; }
.go i { font-size: 20px; }
.app-card:hover .go { background: var(--c); border-color: var(--c); color: #fff; }
.key { position: absolute; top: 12px; inset-inline-end: 12px; display: none; }
.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 3px 10px; font-size: 12.5px; font-weight: 700; white-space: nowrap; background: var(--line-soft); color: var(--text-2); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pill.up { background: var(--green-50); color: var(--green); }
.pill.down { background: var(--red-50); color: var(--red); }
.pill.admin { background: var(--violet-50); color: var(--violet); }
.pill.lime { background: var(--lime-50); color: var(--lime-ink); }
.empty { text-align: center; padding: 60px 20px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r-lg); color: var(--text-2); }
.empty i { font-size: 46px; color: var(--violet); display: block; margin-bottom: 8px; }

/* ---------- admin ---------- */
.tabs { display: flex; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 5px; width: fit-content; max-width: 100%; overflow-x: auto; margin-bottom: 18px; }
.tabs a { display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 10px; text-decoration: none; color: var(--text-2); font-weight: 700; white-space: nowrap; }
.tabs a i { font-size: 18px; }
.tabs a.on { background: var(--night); color: #fff; }
.tabs a.on i { color: var(--lime); }
:root[data-theme="dark"] .tabs a.on { background: var(--violet); }
.tabs .n { background: var(--lime); color: var(--night); border-radius: 99px; padding: 0 8px; font-size: 11.5px; line-height: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.card-head h2 { font-family: var(--display); font-weight: 800; font-size: 19px; margin: 0; }
.tbl-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: start; font-size: 13px; font-weight: 800; color: var(--violet-d); background: var(--violet-50); padding: 10px 14px; white-space: nowrap; }
:root[data-theme="dark"] th { color: #CBBDFF; }
td { padding: 12px 14px; border-top: 1px solid var(--line-soft); vertical-align: middle; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--surface-2); }
td .nm { font-weight: 700; }
td .sm { color: var(--text-3); font-size: 13px; }
.mini-ic { width: 34px; height: 34px; border-radius: 10px; display: inline-grid; place-items: center; background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); vertical-align: middle; }
.mini-ic i { font-size: 19px; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; }
.ok-t { color: var(--green); font-weight: 700; }
.no-t { color: var(--red); font-weight: 700; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(10, 5, 38, .5); display: none; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(3px); }
.modal.on { display: flex; }
.dlg { background: var(--surface); border-radius: 18px; width: min(560px, 100%); max-height: calc(100dvh - 40px); display: flex; flex-direction: column; box-shadow: 0 30px 80px rgba(10, 5, 38, .35); animation: pop .16s ease-out; }
.dlg.sm { width: min(420px, 100%); }
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: 0; } }
.dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 22px 0; }
.dlg-head h3 { font-family: var(--display); font-weight: 800; font-size: 21px; margin: 0; }
.dlg-body { padding: 18px 22px; overflow-y: auto; }
.dlg-foot { display: flex; gap: 10px; padding: 14px 22px 20px; border-top: 1px solid var(--line-soft); flex-wrap: wrap; }
.dlg-foot .spacer { flex: 1; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.toggles { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; }
.prog-checks { display: grid; gap: 8px; }
.prog-checks label { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--line); border-radius: 12px; padding: 8px 12px; cursor: pointer; }
.prog-checks label:has(input:checked) { border-color: var(--violet); background: var(--violet-50); }
.prog-checks input { width: 20px; height: 20px; accent-color: var(--violet); margin: 0; }
.prog-checks.off { opacity: .55; pointer-events: none; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sw { width: 34px; height: 34px; border-radius: 10px; border: 3px solid transparent; cursor: pointer; background: var(--c); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5); }
.sw.on { border-color: var(--text); }
.icons-pick { display: flex; gap: 6px; flex-wrap: wrap; }
.icons-pick button { width: 42px; height: 42px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; color: var(--text-2); }
.icons-pick button.on { border-color: var(--violet); color: var(--violet); background: var(--violet-50); }
.icons-pick i { font-size: 21px; }
.order-btns { display: inline-flex; gap: 4px; }
.order-btns .icon-btn { width: 32px; height: 32px; }

/* ---------- toast ---------- */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); background: var(--night); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 60; display: flex; gap: 8px; align-items: center; max-width: calc(100vw - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast i { color: var(--lime); font-size: 20px; }
.toast.bad i { color: #FF8A84; }
.loading { display: flex; align-items: center; gap: 10px; color: var(--text-2); padding: 30px 0; }

/* ---------- phones & tablets ---------- */
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-side { order: 0; }          /* على الموبايل الصورة تفضل فوق */
  .auth-side { padding: 22px 20px 26px; gap: 18px; }
  .auth-hero h1 { font-size: 28px; margin-bottom: 6px; }
  .auth-hero p { font-size: 14.5px; }
  .chips, .auth-foot { display: none; }
  .brand img { height: 44px; }
  .brand .name { font-size: 26px; }
  .auth-main { align-items: flex-start; padding: 28px 16px 40px; }
  .auth { position: relative; }
  .auth-main { position: static; }
  .auth-main .corner { top: 24px; inset-inline-start: auto; inset-inline-end: 16px; }
  .auth-main .corner .icon-btn { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .15); color: #fff; }
}
@media (max-width: 640px) {
  .top-in { padding: 0 16px; height: 62px; }
  .top .brand small { display: none; }
  .user-btn .nm { display: none; }
  .user-btn { padding: 3px; }
  .page { padding: 24px 16px 48px; }
  .apps { grid-template-columns: 1fr; gap: 12px; }
  .app-card { min-height: 0; padding: 16px; }
  .grid2 { grid-template-columns: 1fr; }
  .head { align-items: stretch; }
  .head > .btn { width: 100%; }
  .modal { padding: 0; align-items: flex-end; }
  .dlg { border-radius: 18px 18px 0 0; max-height: 92dvh; width: 100%; }
  th, td { padding: 10px; }
  .hide-sm { display: none; }
}

/* =====================================================================
   v2 — مشترك جديد، الشركات، شركتي، إدارة النظام
   ===================================================================== */
.pill.warn { background: #FFF1E0; color: #A65A00; }
:root[data-theme="dark"] .pill.warn { background: #2E1F0C; color: #FFB561; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pill.warn { background: #2E1F0C; color: #FFB561; } }
.spin.xs { width: 10px; height: 10px; border-width: 1.5px; }
select.input { appearance: auto; cursor: pointer; }
textarea.input { resize: vertical; font: inherit; }

/* login → signup call to action */
.signup-cta { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 14px 16px; border-radius: 14px; text-decoration: none; color: var(--text);
  border: 1.5px dashed color-mix(in srgb, var(--violet) 45%, var(--line)); background: var(--violet-50); transition: border-color .15s, transform .15s; }
.signup-cta:hover { border-style: solid; border-color: var(--violet); transform: translateY(-1px); }
.signup-cta .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--violet); color: #fff; display: grid; place-items: center; flex: none; }
.signup-cta .ic i { font-size: 22px; }
.signup-cta b { display: block; font-family: var(--display); font-weight: 800; }
.signup-cta small { color: var(--text-2); font-size: 13px; }
.signup-cta > i { margin-inline-start: auto; color: var(--violet); font-size: 20px; }

.steps-list { display: grid; gap: 10px; max-width: 460px; }
.steps-list div { display: flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; padding: 10px 14px; font-size: 14.5px; }
.steps-list i { color: var(--lime); font-size: 20px; }

/* wizard */
.auth-card.wide { width: min(560px, 100%); }
.stepper { list-style: none; display: flex; gap: 6px; padding: 0; margin: 4px 0 22px; }
.stepper li { flex: 1; display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--text-3); }
.stepper li::before { content: ""; height: 4px; border-radius: 99px; background: var(--line); }
.stepper li span { display: none; }
.stepper li.done { color: var(--text-2); }
.stepper li.done::before { background: var(--lime); }
.stepper li.on { color: var(--violet); }
.stepper li.on::before { background: var(--violet); }
.wiz-foot { display: flex; gap: 10px; margin-top: 8px; }
.wiz-foot .btn.primary { flex: 1; height: 50px; font-size: 16px; }
.wiz-foot .btn { height: 50px; }
.summary { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 14px; }
.summary > div { display: grid; grid-template-columns: 90px 1fr; gap: 4px 12px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line-soft); }
.summary > div:first-child { border-top: 0; }
.summary > div > span:first-child { color: var(--text-3); font-size: 13px; }
.summary small { grid-column: 2; color: var(--text-2); font-size: 12.5px; }
.summary .ltr { text-align: right; }
.trial-note { display: flex; gap: 12px; align-items: flex-start; background: #FFF6EA; border: 1px solid #F8DDB8; border-inline-start: 4px solid var(--orange); border-radius: 12px; padding: 12px 14px; margin-bottom: 18px; color: #6B3D00; }
.trial-note i { font-size: 24px; color: var(--orange); margin-top: 2px; }
.trial-note b { font-family: var(--display); font-weight: 800; }
.trial-note p { margin: 2px 0 0; font-size: 14px; }
:root[data-theme="dark"] .trial-note { background: #2A1C10; border-color: #4A3218; color: #F5D2A5; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .trial-note { background: #2A1C10; border-color: #4A3218; color: #F5D2A5; } }

/* program picker tiles */
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.pick { --c: var(--violet); position: relative; display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px; cursor: pointer; background: var(--surface); transition: border-color .15s, background .15s; }
.pick:hover { border-color: color-mix(in srgb, var(--c) 50%, var(--line)); }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick:has(input:checked) { border-color: var(--c); background: color-mix(in srgb, var(--c) 7%, var(--surface)); }
.pick:has(input:focus-visible) { box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 20%, transparent); }
.app-ic.sm { width: 42px; height: 42px; border-radius: 12px; flex: none; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.app-ic.sm i { font-size: 22px; }
.pk-t { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.pk-t b { font-weight: 700; }
.pk-t small { color: var(--text-3); font-size: 12px; }
.tick { margin-inline-start: auto; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; color: transparent; flex: none; }
.tick i { font-size: 15px; }
.pick:has(input:checked) .tick { background: var(--c); border-color: var(--c); color: #fff; }

/* segmented buttons */
.seg { display: inline-flex; gap: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 4px; flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 8px 14px; border-radius: 9px; cursor: pointer; font-weight: 700; color: var(--text-2); }
.seg button.on { background: var(--night); color: #fff; }
:root[data-theme="dark"] .seg button.on { background: var(--violet); }

/* header: current company */
.co-btn { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); max-width: 260px; }
.co-btn:hover { background: rgba(255, 255, 255, .12); }
.co-btn i { color: var(--lime); font-size: 18px; }
.co-btn .nm { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-btn .ti-selector { color: #A9A3C6; font-size: 15px; }
.head-acts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
button.app-card { font: inherit; text-align: start; cursor: pointer; width: 100%; }
.co-card.cur { box-shadow: 0 0 0 2px var(--violet); }

.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.card-pad { padding: 20px; }
.card-t { font-family: var(--display); font-weight: 800; font-size: 19px; margin: 0 0 16px; display: flex; align-items: center; gap: 8px; }
.card-t i, .card-head h2 i { color: var(--violet); }
.kv { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.kv > span:first-child { color: var(--text-3); font-size: 13px; min-width: 90px; }
.kv small { color: var(--text-3); }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filters button { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 5px 12px; font-weight: 700; font-size: 13px; cursor: pointer; color: var(--text-2); }
.filters button span { color: var(--text-3); font-weight: 600; }
.filters button.on { background: var(--night); color: #fff; border-color: var(--night); }
.filters button.on span { color: var(--lime); }
.owner-box { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 16px; }
.db-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px; border-radius: 12px; border: 1px dashed var(--line); margin-top: 16px; }
.db-box i { color: var(--violet); }

@media (max-width: 900px) { .cols { grid-template-columns: minmax(0, 1fr); } }
.cols > * { min-width: 0; }
@media (max-width: 640px) {
  .top-in { gap: 8px; }
  .top .brand .name { display: none; }
  .co-btn { min-width: 0; flex: 0 1 auto; padding: 7px 10px; }
  .co-btn .nm { max-width: 150px; }
  .co-btn .ti-selector { display: none; }
  .pick-grid { grid-template-columns: 1fr; }
  .stepper li { font-size: 11px; }
  .head-acts { width: 100%; }
}
