/* Support Planner: all rules are scoped under .wsp and all classes are prefixed wsp- to avoid theme collisions */
.wsp {
  --bg: #FFFFFF; --surface: #FFFFFF; --surface2: #EEEAFF; --fg: #151B35; --muted: #6B6A8F; --line: #E7E5F3;
  --accent: #3417B1; --accent-fg: #FFFFFF; --accent-soft: #EEEAFF; --soft2: #F6F4FF;
  --hi: #F59E0B; --hi-bg: #FEF3D6; --hi-fg: #7A4B00;
  --good: #17803D; --good-bg: #E8F7EE; --warn: #8A5A00; --warn-bg: #FBF0D2; --bad: #B4233B; --bad-bg: #FDEBEE;
  --font-display: inherit;
  background: transparent; color: var(--fg); font-family: inherit; font-size: 15px; line-height: 1.9; text-align: right;
  padding: 0; border-radius: 0; box-sizing: border-box; max-width: 100%; position: relative;
}
.wsp[data-theme="dark"] {
  --bg: #0C111C; --surface: #141B2A; --surface2: #1B2538; --fg: #E8EDF8; --muted: #9AA7C0; --line: #26324A;
  --accent: #86A0FF; --accent-fg: #0B1330; --accent-soft: #1D2A55;
  --hi: #FBBF24; --hi-bg: #3A2C0B; --hi-fg: #FBD77A;
  --good: #55C27F; --good-bg: #12301F; --warn: #E5B64A; --warn-bg: #3A2E0E; --bad: #FF8A7D; --bad-bg: #3F1A16;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  .wsp[data-theme="auto"] {
    --bg: #0C111C; --surface: #141B2A; --surface2: #1B2538; --fg: #E8EDF8; --muted: #9AA7C0; --line: #26324A;
    --accent: #86A0FF; --accent-fg: #0B1330; --accent-soft: #1D2A55;
    --hi: #FBBF24; --hi-bg: #3A2C0B; --hi-fg: #FBD77A;
    --good: #55C27F; --good-bg: #12301F; --warn: #E5B64A; --warn-bg: #3A2E0E; --bad: #FF8A7D; --bad-bg: #3F1A16;
    color-scheme: dark;
  }
}
.wsp *, .wsp *::before, .wsp *::after { box-sizing: border-box; }
.wsp [hidden] { display: none !important; }
.wsp h2, .wsp h3, .wsp p, .wsp ul { margin: 0; padding: 0; font-family: inherit; color: inherit; letter-spacing: normal; text-transform: none; }
.wsp h2, .wsp h3 { line-height: 1.4; text-wrap: balance; }
.wsp ul { list-style: none; }
.wsp button, .wsp input, .wsp select, .wsp textarea { font: inherit; color: inherit; letter-spacing: normal; text-transform: none; box-shadow: none; margin: 0; }
.wsp button { line-height: 1.5; }
.wsp :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wsp table { margin: 0; border-spacing: 0; }
.wsp .wsp-h1 { font-size: clamp(24px, 4.5vw, 36px); font-weight: 800; line-height: 1.35; }
.wsp .wsp-header p { margin-top: 6px; color: var(--muted); max-width: 64ch; }
.wsp .wsp-card h2, .wsp .wsp-card h3 { font-size: 16px; font-weight: 700; }
.wsp .wsp-app { max-width: 1140px; margin-inline: auto; display: flex; flex-direction: column; gap: 20px; text-align: right; }
.wsp .wsp-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.wsp .wsp-tab { background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 16px; cursor: pointer; font-weight: 500; color: var(--muted); white-space: nowrap; margin-bottom: -1px; }
.wsp .wsp-tab[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--accent); font-weight: 700; }
.wsp .wsp-grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 880px) {
  .wsp .wsp-grid2 { grid-template-columns: minmax(0, 1fr); }
}
.wsp .wsp-stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.wsp .wsp-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.wsp .wsp-card h2 { font-size: 16px; font-weight: 700; }
.wsp .wsp-step { display: flex; align-items: center; gap: 10px; }
.wsp .wsp-step i { font-style: normal; font-family: var(--font-display); background: var(--accent-soft); color: var(--accent); width: 28px; height: 28px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; }
.wsp .wsp-hint { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 0; }
.wsp .wsp-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 480px) {
  .wsp .wsp-opts { grid-template-columns: 1fr; }
}
.wsp .wsp-opt { position: relative; display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; cursor: pointer; background: var(--bg); min-width: 0; }
.wsp .wsp-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.wsp .wsp-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.wsp .wsp-opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.wsp .wsp-opt-t { font-weight: 700; font-size: 14px; }
.wsp .wsp-opt-d { color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.wsp .wsp-needs { display: flex; flex-direction: column; }
.wsp .wsp-need { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-top: 1px solid var(--line); cursor: pointer; }
.wsp .wsp-need:first-child { border-top: 0; }
.wsp .wsp-need input { margin-top: 6px; width: 17px; height: 17px; accent-color: var(--accent); flex: none; }
.wsp .wsp-need b { display: block; font-weight: 500; font-size: 14.5px; }
.wsp .wsp-need small { display: block; color: var(--muted); font-size: 12.5px; }
.wsp .wsp-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.wsp .wsp-field > label,
.wsp .wsp-lbl { font-weight: 500; font-size: 14px; }
.wsp .wsp-in { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 8px 11px; min-width: 0; }
.wsp .wsp-in.wsp-ltr { direction: ltr; text-align: left; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13px; }
.wsp input[type="range"] { width: 100%; accent-color: var(--accent); }
.wsp .wsp-range-row { display: flex; align-items: center; gap: 12px; }
.wsp .wsp-range-row output { min-width: 5.5em; font-weight: 700; }
.wsp .wsp-btn { border: 0; border-radius: 6px; padding: 10px 16px; cursor: pointer; background: var(--accent); color: var(--accent-fg); font-weight: 700; text-decoration: none; display: inline-block; text-align: center; }
.wsp .wsp-btn:hover { filter: brightness(1.08); }
.wsp .wsp-btn.wsp-ghost { background: transparent; color: var(--accent); border: 1px solid var(--line); font-weight: 500; }
.wsp .wsp-btn.wsp-small { padding: 5px 11px; font-size: 13px; }
.wsp .wsp-btn.wsp-danger { background: transparent; color: var(--bad); border: 1px solid var(--line); font-weight: 500; }
.wsp .wsp-btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.wsp .wsp-note { color: var(--muted); font-size: 13px; margin: 0; }
.wsp .wsp-rec { border: 2px solid var(--accent); position: relative; padding-top: 26px; }
.wsp .wsp-rec .wsp-ribbon { position: absolute; top: -1px; inset-inline-start: 16px; background: var(--hi); color: #231500; font-size: 12.5px; font-weight: 700; padding: 1px 12px 3px; border-radius: 0 0 6px 6px; }
.wsp .wsp-plan-name { font-weight: 800; font-size: 32px; line-height: 1.2; }
.wsp .wsp-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.wsp .wsp-price b { font-weight: 800; font-size: 30px; }
.wsp .wsp-price span { color: var(--muted); }
.wsp .wsp-bar { height: 8px; border-radius: 4px; background: var(--surface2); overflow: hidden; }
.wsp .wsp-bar span { display: block; height: 100%; background: var(--good); border-radius: 4px; }
.wsp .wsp-bar.wsp-partial span { background: var(--warn); }
.wsp .wsp-cov { display: flex; justify-content: space-between; font-size: 13.5px; gap: 8px; }
.wsp ul.wsp-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.wsp ul.wsp-list li { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.wsp ul.wsp-list li:first-child { border-top: 0; }
.wsp ul.wsp-list li > span:first-child { min-width: 0; }
.wsp .wsp-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; padding: 1px 10px; border-radius: 999px; white-space: nowrap; flex: none; }
.wsp .wsp-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.wsp .wsp-s-good { color: var(--good); background: var(--good-bg); }
.wsp .wsp-s-warn { color: var(--warn); background: var(--warn-bg); }
.wsp .wsp-s-bad { color: var(--bad); background: var(--bad-bg); }
.wsp .wsp-alt { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 12px 0; border-top: 1px solid var(--line); align-items: center; }
.wsp .wsp-alt:first-of-type { border-top: 0; }
.wsp .wsp-alt h3 { font-size: 15px; }
.wsp .wsp-alt .wsp-sub { color: var(--muted); font-size: 13px; grid-column: 1 / -1; }
.wsp .wsp-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 520px) {
  .wsp .wsp-tiles { grid-template-columns: minmax(0, 1fr); }
}
.wsp .wsp-tile { background: var(--bg); border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wsp .wsp-tile span { color: var(--muted); font-size: 12.5px; }
.wsp .wsp-tile b { font-variant-numeric: tabular-nums; font-size: 15px; overflow-wrap: anywhere; }
.wsp .wsp-groups { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 880px) {
  .wsp .wsp-groups { grid-template-columns: minmax(0, 1fr); }
}
.wsp .wsp-svc { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); cursor: pointer; }
.wsp .wsp-svc:first-of-type { border-top: 0; }
.wsp .wsp-svc input { width: 17px; height: 17px; accent-color: var(--accent); flex: none; }
.wsp .wsp-svc .wsp-n { flex: 1; min-width: 0; }
.wsp .wsp-svc .wsp-p { color: var(--muted); font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wsp .wsp-totalbar { position: sticky; bottom: 0; background: linear-gradient(160deg, #3417B1 0%, #5140DF 100%); color: #fff; border-radius: 20px; box-shadow: 0 12px 30px rgba(52,23,177,.28); padding: 14px 18px; display: flex; gap: 12px 24px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: env(safe-area-inset-bottom, 0px); }
.wsp .wsp-totalbar .wsp-t { font-family: var(--font-display); font-size: 30px; line-height: 1.2; }
.wsp .wsp-totalbar .wsp-m { font-size: 13.5px; opacity: .85; max-width: 46ch; }
.wsp .wsp-totalbar .wsp-btn { background: #fff; color: #3417B1; }
@media (max-width: 880px) { .wsp .wsp-totalbar { position: static; } }
.wsp .wsp-tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.wsp table { border-collapse: collapse; width: 100%; min-width: 640px; }
.wsp th,
.wsp td { padding: 10px 12px; border-top: 1px solid var(--line); text-align: center; font-size: 14px; }
.wsp thead th { border-top: 0; vertical-align: bottom; background: var(--surface); }
.wsp th:first-child,
.wsp td:first-child { text-align: right; position: sticky; inset-inline-start: 0; background: var(--surface); min-width: 200px; }
.wsp td.wsp-hl,
.wsp th.wsp-hl { background: var(--accent-soft); }
.wsp .wsp-yes { color: var(--good); font-weight: 700; }
.wsp .wsp-no { color: var(--muted); }
.wsp .wsp-th-name { font-weight: 800; font-size: 20px; }
.wsp .wsp-th-price { font-size: 13px; color: var(--muted); font-weight: 400; }
.wsp .wsp-minibar { display: none; }
@media (max-width: 880px) {
  .wsp .wsp-minibar { position: fixed; inset-inline: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--fg); color: var(--bg); z-index: 5; }
  .wsp .wsp-minibar[hidden] { display: none; }
  .wsp .wsp-minibar .wsp-btn { background: var(--bg); color: var(--fg); padding: 6px 14px; }
}
.wsp .wsp-admin { border: 2px dashed var(--accent); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 14px; background: var(--surface); }
.wsp .wsp-admin h2 { font-size: 18px; }
.wsp .wsp-subtabs { display: flex; gap: 6px; flex-wrap: wrap; }
.wsp .wsp-chip { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 4px 14px; cursor: pointer; font-size: 14px; }
.wsp .wsp-chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.wsp .wsp-acards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.wsp .wsp-acard { border: 1px solid var(--line); border-radius: 8px; padding: 12px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.wsp .wsp-acard h3 { font-size: 15px; }
.wsp .wsp-arow { display: grid; grid-template-columns: minmax(0, 1fr) 150px auto auto; gap: 8px; align-items: center; }
@media (max-width: 560px) {
  .wsp .wsp-arow { grid-template-columns: minmax(0, 1fr) 110px; }
}
.wsp .wsp-agroup { border: 1px solid var(--line); border-radius: 8px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.wsp .wsp-agroup h3 { font-size: 15px; }
.wsp .wsp-mcell { display: flex; flex-direction: column; gap: 4px; align-items: center; }
.wsp .wsp-mcell input.wsp-in { padding: 3px 6px; font-size: 12.5px; min-width: 90px; }
.wsp textarea.wsp-in { min-height: 180px; resize: vertical; line-height: 1.5; }
.wsp .wsp-dialog { border: 1px solid var(--line); border-radius: 12px; padding: 20px; width: min(480px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; background: var(--surface); color: var(--fg); text-align: right; }
.wsp-dialog::backdrop { background: rgba(10, 15, 30, .6); }
.wsp .wsp-dialog form { display: flex; flex-direction: column; gap: 12px; }
.wsp .wsp-dhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.wsp .wsp-dhead h3 { font-size: 18px; font-weight: 800; }
.wsp .wsp-x { background: none; border: 0; font-size: 26px; line-height: 1; cursor: pointer; color: var(--muted); padding: 2px 8px; }
.wsp .wsp-recap { background: var(--bg); border-radius: 8px; padding: 10px 12px; font-size: 13.5px; display: flex; flex-direction: column; gap: 2px; }
.wsp .wsp-recap b { font-weight: 700; }
.wsp .wsp-req { color: var(--bad); }
.wsp .wsp-err { color: var(--bad); background: var(--bad-bg); border-radius: 6px; padding: 8px 12px; font-size: 14px; }
.wsp .wsp-hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wsp .wsp-done { display: flex; flex-direction: column; gap: 12px; }
.wsp[data-admin="1"] .wsp-minibar { display: none !important; }
.wsp[data-admin="1"] { border: 1px solid var(--line); }
.wsp .wsp-savebar { position: sticky; top: 32px; z-index: 6; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.wsp .wsp-dirty { color: var(--warn); font-weight: 700; }
.wsp .wsp-clean { color: var(--good); font-weight: 700; }
.wsp .wsp-select { width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 8px 11px; }

/* ================= WebRoyal unified look (هم‌سبک با بقیه ابزارهای هاب و سایت) ================= */
.wsp[data-theme="dark"] { background: var(--bg); padding: 20px; border-radius: 28px; }
@media (prefers-color-scheme: dark) { .wsp[data-theme="auto"] { background: var(--bg); padding: 20px; border-radius: 28px; } }
.wsp .wsp-header { display: flex; align-items: flex-start; gap: 16px; }
.wsp .wsp-header > div { min-width: 0; }
.wsp .wsp-iconbox { flex: 0 0 56px; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 18px; background: var(--accent-soft); color: var(--accent); }
.wsp .wsp-iconbox svg { display: block; }
.wsp .wsp-h1 { font-size: clamp(21px, 3vw, 28px); font-weight: 800; line-height: 1.5; }
.wsp .wsp-header p { margin-top: 4px; font-size: 14px; line-height: 1.95; }
.wsp .wsp-card { border-radius: 24px; padding: clamp(18px, 3vw, 26px); box-shadow: 0 14px 40px rgba(35, 27, 95, .06); gap: 16px; }
.wsp .wsp-step i { width: 34px; height: 34px; border-radius: 12px; font-weight: 800; }
.wsp .wsp-card h2, .wsp .wsp-card h3 { font-size: 17px; font-weight: 800; }
.wsp .wsp-tabs { gap: 8px; border-bottom: 0; padding: 6px; background: var(--accent-soft); border-radius: 20px; width: fit-content; max-width: 100%; }
.wsp .wsp-tab { border: 0; border-radius: 14px; margin: 0; padding: 10px 18px; color: var(--accent); font-weight: 700; }
.wsp .wsp-tab[aria-selected="true"] { background: var(--accent); color: var(--accent-fg); }
.wsp .wsp-opt { border-radius: 18px; padding: 13px 16px; }
.wsp .wsp-opt:has(input:checked) { background: var(--soft2); border-width: 1px; box-shadow: 0 0 0 1px var(--accent) inset; }
.wsp .wsp-need { border-top: 1px dashed var(--line); }
.wsp .wsp-svc, .wsp ul.wsp-list li, .wsp .wsp-alt { border-top-style: dashed; }
.wsp .wsp-in, .wsp .wsp-select { min-height: 52px; border-radius: 18px; padding: 12px 18px; border-color: #D6D3EA; font-size: 14.5px; }
.wsp textarea.wsp-in { border-radius: 22px; min-height: 120px; }
.wsp .wsp-in:focus, .wsp .wsp-select:focus { outline: none; border-color: #5140DF; box-shadow: 0 0 0 4px rgba(81, 64, 223, .13); }
.wsp .wsp-in.wsp-ltr { font-family: inherit; font-size: 14.5px; }
.wsp .wsp-btn { min-height: 52px; border-radius: 18px; padding: 0 26px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; box-shadow: 0 10px 24px rgba(52, 23, 177, .2); }
.wsp .wsp-btn.wsp-ghost, .wsp .wsp-btn.wsp-danger { box-shadow: none; background: #fff; border: 1px solid #D6D3EA; }
.wsp .wsp-btn.wsp-small { min-height: 38px; padding: 0 14px; border-radius: 14px; }
.wsp .wsp-rec { border-width: 2px; padding-top: 34px; }
.wsp .wsp-rec .wsp-ribbon { border-radius: 0 0 12px 12px; padding: 2px 16px 4px; }
.wsp .wsp-tile, .wsp .wsp-recap { background: var(--soft2); border-radius: 16px; }
.wsp .wsp-bar { height: 10px; border-radius: 999px; }
.wsp .wsp-bar span { border-radius: 999px; }
.wsp .wsp-totalbar, .wsp .wsp-minibar { border-radius: 22px; }
.wsp .wsp-tablewrap { border-radius: 24px; border-color: var(--line); }
.wsp .wsp-dialog { border-radius: 28px; padding: clamp(20px, 4vw, 30px); border-color: var(--line); width: min(500px, calc(100vw - 32px)); box-shadow: 0 24px 60px rgba(18, 9, 60, .28); }
.wsp-dialog::backdrop { background: rgba(18, 9, 60, .6); backdrop-filter: blur(4px); }
.wsp .wsp-x { width: 40px; height: 40px; border-radius: 14px; font-size: 24px; display: grid; place-items: center; padding: 0; }
.wsp .wsp-x:hover { background: var(--accent-soft); color: var(--accent); }
.wsp .wsp-err { border-radius: 16px; padding: 12px 16px; }
.wsp .wsp-okicon { width: 84px; height: 84px; margin: 0 auto 6px; display: grid; place-items: center; border-radius: 50%; background: var(--good-bg); color: var(--good); }
.wsp #wsp-dDone { text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.wsp #wsp-dDone .wsp-dhead { width: 100%; }
.wsp #wsp-dDone .wsp-note b { display: inline-block; margin-inline-start: 6px; padding: 4px 14px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); direction: ltr; }
.wsp .wsp-btn:focus-visible, .wsp .wsp-tab:focus-visible { outline: 3px solid rgba(81, 64, 223, .4); outline-offset: 3px; }
@media (max-width: 640px) { .wsp .wsp-iconbox { flex-basis: 48px; width: 48px; height: 48px; border-radius: 16px; } .wsp .wsp-tabs { width: 100%; } }

/* نوار ثابت موبایل (کلاس‌های wr-bar از افزونه‌ی هاب اضافه می‌شود) */
.wsp .wsp-minibar.wr-bar-fixed{inset-inline:12px!important;border-radius:20px!important;background:linear-gradient(160deg,#3417B1 0%,#5140DF 100%)!important;color:#fff!important;box-shadow:0 12px 30px rgba(52,23,177,.32)!important}
.wsp .wsp-minibar.wr-bar-fixed .wsp-btn{background:#fff;color:#3417B1;font-weight:800;border-radius:12px;padding:8px 16px}

/* ===== کارت‌های پلن (هم‌سبک پکیج‌های افزایش سرعت) ===== */
.wsp .wsp-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.wsp .wsp-plan { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; box-shadow: 0 14px 40px rgba(35, 27, 95, .06); cursor: pointer; transition: transform .2s, border-color .2s, box-shadow .2s; }
.wsp .wsp-plan:hover { transform: translateY(-3px); }
.wsp .wsp-plan.wsp-is-selected { border: 2px solid var(--accent); box-shadow: 0 18px 44px rgba(52, 23, 177, .18); }
.wsp .wsp-plan-top { padding: 28px 22px 18px; text-align: center; }
.wsp .wsp-plan-top .wsp-iconbox { margin: 0 auto 14px; }
.wsp .wsp-plan-top h3 { font-size: 21px; font-weight: 800; margin-bottom: 6px; }
.wsp .wsp-plan-meta { font-size: 13px; color: var(--muted); }
.wsp .wsp-plan-price { margin-top: 14px; }
.wsp .wsp-plan-price b { font-size: clamp(24px, 2.6vw, 30px); font-weight: 900; color: var(--accent); white-space: nowrap; }
.wsp .wsp-plan-price small { font-size: 13px; color: var(--muted); font-weight: 600; }
.wsp .wsp-plan-badge { position: absolute; top: 0; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; border-radius: 0 0 14px 14px; padding: 5px 18px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.wsp .wsp-plan-items { padding: 6px 22px 16px; flex: 1; }
.wsp .wsp-plan-items li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; line-height: 1.8; }
.wsp .wsp-plan-items li:last-child { border-bottom: 0; }
.wsp .wsp-plan-items li.wsp-all { font-weight: 800; color: var(--accent); }
.wsp .wsp-tickbox { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-top: 3px; font-size: 12px; font-weight: 900; }
.wsp .wsp-plan-select { margin: 0 22px 22px; width: calc(100% - 44px); }
.wsp .wsp-plan-link { display: block; text-align: center; margin: -10px 22px 20px; font-size: 13px; color: var(--accent); }
@media (max-width: 900px) { .wsp .wsp-plans { grid-template-columns: 1fr; } .wsp .wsp-plan { max-width: 560px; width: 100%; margin-inline: auto; } }

/* ===== ساخت پلن دلخواه ===== */
.wsp .wsp-groups { display: flex; flex-direction: column; gap: 12px; }
.wsp .wsp-card { border-radius: 24px; background: var(--surface); }
.wsp .wsp-basecard { background: var(--soft2); border-color: var(--line); }
.wsp .wsp-search .wsp-in { background: #fff; padding-inline: 18px; }
.wsp details.wsp-group { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.wsp details.wsp-group > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; cursor: pointer; font-weight: 800; font-size: 15.5px; list-style: none; }
.wsp details.wsp-group > summary::-webkit-details-marker { display: none; }
.wsp .wsp-gmeta { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12.5px; font-weight: 700; }
.wsp .wsp-gcount.wsp-on { background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 2px 12px; }
.wsp .wsp-chev { display: inline-block; font-size: 18px; transition: transform .2s; }
.wsp details.wsp-group[open] .wsp-chev { transform: rotate(180deg); }
.wsp .wsp-gbody { padding: 0 20px 10px; }
.wsp .wsp-svc { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px dashed var(--line); cursor: pointer; }
.wsp .wsp-svc.wsp-is-fixed { cursor: default; }
.wsp .wsp-svc .wsp-lock { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--good-bg); color: var(--good); display: grid; place-items: center; font-size: 12px; font-weight: 900; }
.wsp .wsp-svc input[type="checkbox"] { width: 20px; height: 20px; border-radius: 7px; }
.wsp .wsp-svc.wsp-is-on .wsp-n { font-weight: 800; color: var(--accent); }
.wsp .wsp-svc.wsp-is-qty { cursor: default; flex-wrap: wrap; justify-content: space-between; }
.wsp .wsp-svc-main { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; }
.wsp .wsp-svc-unit { color: var(--muted); font-size: 12.5px; }
.wsp .wsp-svc-ctl { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; margin-inline-start: auto; }
.wsp .wsp-svc-line { min-width: 96px; text-align: end; font-weight: 800; color: var(--accent); font-size: 13.5px; }
.wsp .wsp-stepper { display: inline-flex; align-items: center; gap: 6px; }
.wsp .wsp-stepper input { width: 52px; height: 40px; text-align: center; border: 1px solid #D6D3EA; border-radius: 12px; background: #fff; font-weight: 800; }
.wsp .wsp-stepbtn { width: 36px; height: 36px; border: 1px solid #D6D3EA; border-radius: 12px; background: #fff; color: var(--accent); font-size: 20px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0; }
.wsp .wsp-stepbtn:hover { background: var(--accent-soft); }
.wsp .wsp-recap-line { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); }
.wsp .wsp-totalbar .wsp-t { font-weight: 900; font-size: 26px; }
@media (max-width: 640px) { .wsp .wsp-svc-ctl { width: 100%; justify-content: space-between; } .wsp .wsp-gbody { padding-inline: 14px; } }
/* مدیریت: ردیف خدمت */
.wsp .wsp-arow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; align-items: center; padding: 8px 0; border-top: 1px dashed var(--line); }
.wsp .wsp-arow .wsp-note, .wsp .wsp-arow .wsp-btn { grid-column: auto; }
@media (max-width: 880px) { .wsp .wsp-arow { grid-template-columns: 1fr 1fr; } }
