/* ==========================================================================
   HP platform UI — استایل لایه‌ی پلتفرم (مودال سرویس، داشبورد، پنل‌ها،
   احراز هویت، دستیار، پکیج‌ها، اشتراک، مدیریت). مکمل ghabzino-theme.css است
   و به آن دست نمی‌زند. همه‌ی رنگ‌ها با تم سبز موجود هماهنگ‌اند.
   ========================================================================== */
:root {
  --hp-green: #078c67;
  --hp-green-d: #066b4f;
  --hp-ink: #14324a;
  --hp-muted: #64748b;
  --hp-line: #e2e8f0;
  --hp-bg: #f5f7fa;
  --hp-card: #ffffff;
  --hp-warn: #c2410c;
  --hp-warn-bg: #fff7ed;
  --hp-ok: #067a53;
  --hp-ok-bg: #ecfdf5;
  --hp-shadow: 0 18px 48px rgba(21, 72, 89, .16);
  --hp-radius: 16px;
}

/* ---------------- Overlay / modal shell ---------------- */
.hp-overlay {
  position: fixed; inset: 0; z-index: 1000; display: none;
  align-items: flex-start; justify-content: center; padding: 40px 16px;
  background: rgba(15, 34, 51, .55); backdrop-filter: blur(3px);
  overflow-y: auto;
}
.hp-overlay.show { display: flex; animation: hpFade .18s ease; }
@keyframes hpFade { from { opacity: 0 } to { opacity: 1 } }
@keyframes hpRise { from { opacity: 0; transform: translateY(14px) } to { opacity: 1; transform: none } }

.hp-modal {
  background: var(--hp-card); border-radius: var(--hp-radius); width: 100%;
  max-width: 480px; position: relative; box-shadow: var(--hp-shadow);
  direction: rtl; animation: hpRise .22s ease; margin: auto;
}
.hp-modal.wide { max-width: 760px; }
.hp-modal.xwide { max-width: 1040px; }
.hp-modal-head {
  display: flex; align-items: center; gap: 12px; padding: 18px 22px;
  border-bottom: 1px solid var(--hp-line);
}
.hp-modal-head .hp-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; color: #fff; background: linear-gradient(135deg, var(--hp-green), #10b981); flex: none; }
.hp-modal-head h3 { margin: 0; font-size: 16px; color: var(--hp-ink); }
.hp-modal-head p { margin: 2px 0 0; font-size: 12px; color: var(--hp-muted); }
.hp-modal-close {
  position: absolute; top: 14px; left: 16px; border: none; background: #f1f5f9;
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 15px; color: #475569;
  transition: background .15s;
}
.hp-modal-close:hover { background: #e2e8f0; }
.hp-modal-body { padding: 20px 22px 24px; }
.hp-modal-body.scroll { max-height: 72vh; overflow-y: auto; }

/* ---------------- Forms ---------------- */
.hp-field { display: block; margin-bottom: 15px; }
.hp-field > span { display: block; font-size: 13px; margin-bottom: 6px; color: #334155; font-weight: 600; }
.hp-field input, .hp-field select, .hp-field textarea {
  width: 100%; padding: 11px 13px; border: 1.5px solid #cbd5e1; border-radius: 11px;
  font-family: inherit; font-size: 14px; box-sizing: border-box; background: #fff; color: var(--hp-ink);
  transition: border-color .15s, box-shadow .15s;
}
.hp-field input:focus, .hp-field select:focus, .hp-field textarea:focus {
  outline: none; border-color: var(--hp-green); box-shadow: 0 0 0 3px rgba(7, 140, 103, .12);
}
.hp-field.has-error input, .hp-field.has-error select { border-color: #ef4444; }
.hp-field-error { color: #ef4444; font-size: 12px; margin-top: 5px; display: block; }
.hp-field input[type=file] { padding: 8px; background: #f8fafc; }

.hp-plate { display: flex; gap: 6px; align-items: stretch; direction: ltr; }
.hp-plate input { text-align: center; }
.hp-plate .p2 { width: 56px; } .hp-plate .p1 { width: 46px; } .hp-plate .p3 { flex: 1; } .hp-plate .pi { width: 60px; }
.hp-plate .flag { width: 26px; background: var(--hp-green); border-radius: 6px 0 0 6px; display: grid; place-items: center; color: #fff; font-size: 9px; }

.hp-btn {
  width: 100%; padding: 13px; border: none; border-radius: 12px; cursor: pointer;
  background: var(--hp-green); color: #fff; font-size: 15px; font-family: inherit; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: background .15s, transform .1s;
}
.hp-btn:hover { background: var(--hp-green-d); }
.hp-btn:active { transform: translateY(1px); }
.hp-btn:disabled { opacity: .55; cursor: wait; }
.hp-btn.ghost { background: #f1f5f9; color: var(--hp-ink); }
.hp-btn.ghost:hover { background: #e2e8f0; }
.hp-btn.outline { background: #fff; color: var(--hp-green); border: 1.5px solid var(--hp-green); }
.hp-btn.sm { width: auto; padding: 8px 14px; font-size: 13px; border-radius: 10px; }
.hp-btn.danger { background: #dc2626; } .hp-btn.danger:hover { background: #b91c1c; }
.hp-btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.hp-btn-row .hp-btn { width: auto; flex: 1; min-width: 120px; }

.hp-price-tag { display: flex; align-items: center; justify-content: space-between; background: var(--hp-bg); border: 1px solid var(--hp-line); border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; }
.hp-price-tag b { color: var(--hp-green); font-size: 16px; }
.hp-price-tag small { color: var(--hp-muted); font-size: 12px; }

.hp-note { font-size: 12px; color: var(--hp-muted); background: var(--hp-bg); border-radius: 10px; padding: 10px 12px; margin: 12px 0; line-height: 1.7; }
.hp-note.warn { background: var(--hp-warn-bg); color: var(--hp-warn); }
.hp-legal { font-size: 11px; color: #94a3b8; margin-top: 10px; text-align: center; }

/* ---------------- Result ---------------- */
.hp-result { margin-top: 18px; }
.hp-result-sum { border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; }
.hp-result-sum.ok { background: var(--hp-ok-bg); border: 1px solid #a7f3d0; }
.hp-result-sum.warn { background: var(--hp-warn-bg); border: 1px solid #fed7aa; }
.hp-result-sum.neutral { background: #eff6ff; border: 1px solid #bfdbfe; }
.hp-result-sum b { font-size: 15px; color: var(--hp-ink); }
.hp-result-sum small { display: block; color: var(--hp-muted); margin-top: 4px; font-size: 12.5px; }
.hp-kv { width: 100%; border-collapse: collapse; }
.hp-kv th, .hp-kv td { text-align: right; padding: 9px 4px; border-bottom: 1px dashed var(--hp-line); font-size: 13px; }
.hp-kv th { color: var(--hp-muted); font-weight: 600; width: 45%; }
.hp-kv td { color: var(--hp-ink); font-weight: 600; }
.hp-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 12.5px; }
.hp-table th, .hp-table td { border: 1px solid var(--hp-line); padding: 8px; text-align: right; }
.hp-table th { background: var(--hp-bg); color: var(--hp-muted); }
.hp-result-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.hp-chip { border: 1px solid var(--hp-line); background: #fff; border-radius: 999px; padding: 7px 13px; font-size: 12.5px; cursor: pointer; color: var(--hp-ink); display: inline-flex; align-items: center; gap: 6px; transition: background .15s, border-color .15s; }
.hp-chip:hover { background: var(--hp-bg); border-color: var(--hp-green); color: var(--hp-green); }
.hp-provider-line { font-size: 11.5px; color: #94a3b8; margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hp-provider-line .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--hp-green); display: inline-block; }
.hp-qr { display: flex; gap: 12px; align-items: center; background: var(--hp-bg); border-radius: 12px; padding: 12px; margin-top: 12px; }
.hp-qr canvas { border-radius: 8px; background: #fff; }
.hp-qr small { font-size: 11.5px; color: var(--hp-muted); }

/* ---------------- Loading ---------------- */
.hp-loading { text-align: center; padding: 26px 0; }
.hp-spin { width: 44px; height: 44px; border: 4px solid #e2e8f0; border-top-color: var(--hp-green); border-radius: 50%; margin: 0 auto 14px; animation: hpSpin .8s linear infinite; }
@keyframes hpSpin { to { transform: rotate(360deg) } }
.hp-loading p { color: var(--hp-muted); font-size: 13px; margin: 0; }
.hp-loading .prov { font-size: 11.5px; color: #94a3b8; margin-top: 6px; }

/* ---------------- Tabs / segmented ---------------- */
.hp-tabs { display: flex; gap: 6px; background: var(--hp-bg); border-radius: 12px; padding: 5px; margin-bottom: 18px; overflow-x: auto; }
.hp-tabs button { border: none; background: transparent; padding: 9px 14px; border-radius: 9px; cursor: pointer; font-family: inherit; font-size: 13px; color: var(--hp-muted); white-space: nowrap; font-weight: 600; }
.hp-tabs button.active { background: #fff; color: var(--hp-green); box-shadow: 0 2px 8px rgba(21, 72, 89, .08); }

/* ---------------- OTP ---------------- */
.hp-otp { display: flex; gap: 8px; direction: ltr; justify-content: center; margin: 6px 0 14px; }
.hp-otp input { width: 46px; height: 52px; text-align: center; font-size: 20px; border: 1.5px solid #cbd5e1; border-radius: 11px; }
.hp-otp input:focus { outline: none; border-color: var(--hp-green); }
.hp-otp-info { text-align: center; font-size: 12.5px; color: var(--hp-muted); margin-bottom: 8px; }
.hp-otp-demo { text-align: center; font-size: 12px; background: var(--hp-warn-bg); color: var(--hp-warn); border-radius: 8px; padding: 6px; margin-bottom: 10px; }

/* ---------------- Dashboard drawer ---------------- */
.hp-dash-overlay { position: fixed; inset: 0; z-index: 990; display: none; background: rgba(15, 34, 51, .5); }
.hp-dash-overlay.show { display: block; }
.hp-dash {
  position: fixed; top: 0; bottom: 0; right: 0; width: min(1080px, 96vw); z-index: 991;
  background: var(--hp-bg); transform: translateX(100%); transition: transform .28s ease;
  display: grid; grid-template-columns: 244px 1fr; box-shadow: -20px 0 60px rgba(0, 0, 0, .2);
}
.hp-dash.show { transform: none; }
.hp-dash-side { background: #0f2a3b; color: #cbd5e1; padding: 20px 14px; overflow-y: auto; }
.hp-dash-side .who { display: flex; align-items: center; gap: 10px; padding: 8px 8px 16px; border-bottom: 1px solid rgba(255, 255, 255, .1); margin-bottom: 12px; }
.hp-dash-side .who .av { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, var(--hp-green), #10b981); display: grid; place-items: center; color: #fff; font-weight: 700; overflow: hidden; }
.hp-dash-side .who .av img { width: 100%; height: 100%; object-fit: cover; }
.hp-dash-side .who b { color: #fff; font-size: 13.5px; display: block; }
.hp-dash-side .who small { font-size: 11px; color: #94a3b8; }
.hp-nav-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; cursor: pointer; font-size: 13.5px; color: #cbd5e1; margin-bottom: 2px; border: none; background: transparent; width: 100%; text-align: right; font-family: inherit; transition: background .15s; }
.hp-nav-item:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.hp-nav-item.active { background: var(--hp-green); color: #fff; }
.hp-nav-item .badge { margin-inline-start: auto; background: #ef4444; color: #fff; font-size: 10px; border-radius: 999px; padding: 1px 7px; }
.hp-nav-sep { font-size: 10.5px; color: #64748b; padding: 12px 12px 6px; letter-spacing: .5px; }
.hp-dash-main { overflow-y: auto; padding: 22px 26px; }
.hp-dash-main .top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.hp-dash-main .top h2 { margin: 0; font-size: 19px; color: var(--hp-ink); }
.hp-dash-close { border: none; background: #fff; width: 38px; height: 38px; border-radius: 10px; cursor: pointer; font-size: 16px; box-shadow: 0 2px 8px rgba(0, 0, 0, .06); }

/* stat cards */
.hp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.hp-stat { background: #fff; border-radius: 14px; padding: 16px; border: 1px solid var(--hp-line); }
.hp-stat .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 17px; margin-bottom: 10px; }
.hp-stat .ic.g { background: var(--hp-ok-bg); color: var(--hp-ok); }
.hp-stat .ic.b { background: #eff6ff; color: #2563eb; }
.hp-stat .ic.o { background: var(--hp-warn-bg); color: var(--hp-warn); }
.hp-stat .ic.p { background: #f5f3ff; color: #7c3aed; }
.hp-stat b { font-size: 20px; color: var(--hp-ink); display: block; }
.hp-stat small { font-size: 12px; color: var(--hp-muted); }

.hp-panel { background: #fff; border-radius: 14px; border: 1px solid var(--hp-line); padding: 18px; margin-bottom: 16px; }
.hp-panel h3 { margin: 0 0 14px; font-size: 15px; color: var(--hp-ink); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hp-list { display: flex; flex-direction: column; }
.hp-row { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--hp-line); }
.hp-row:last-child { border-bottom: none; }
.hp-row .ic { width: 38px; height: 38px; border-radius: 11px; background: var(--hp-bg); display: grid; place-items: center; font-size: 16px; color: var(--hp-green); flex: none; }
.hp-row .main { flex: 1; min-width: 0; }
.hp-row .main b { display: block; font-size: 13.5px; color: var(--hp-ink); }
.hp-row .main small { font-size: 11.5px; color: var(--hp-muted); }
.hp-row .val { font-size: 13px; font-weight: 700; white-space: nowrap; }
.hp-row .val.pos { color: var(--hp-ok); } .hp-row .val.neg { color: #dc2626; }
.hp-badge { font-size: 10.5px; border-radius: 999px; padding: 2px 9px; font-weight: 600; }
.hp-badge.ok { background: var(--hp-ok-bg); color: var(--hp-ok); }
.hp-badge.warn { background: var(--hp-warn-bg); color: var(--hp-warn); }
.hp-badge.neutral { background: #eff6ff; color: #2563eb; }
.hp-badge.mut { background: #f1f5f9; color: #64748b; }
.hp-empty { text-align: center; padding: 30px 10px; color: #94a3b8; font-size: 13px; }
.hp-empty i { font-size: 30px; display: block; margin-bottom: 8px; opacity: .5; }

/* ---------------- Grids ---------------- */
.hp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.hp-card2 { background: #fff; border: 1px solid var(--hp-line); border-radius: 14px; padding: 16px; cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s; text-align: right; }
.hp-card2:hover { transform: translateY(-3px); box-shadow: var(--hp-shadow); border-color: var(--hp-green); }
.hp-card2 .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--hp-bg); color: var(--hp-green); display: grid; place-items: center; font-size: 20px; margin-bottom: 12px; }
.hp-card2 b { display: block; font-size: 14px; color: var(--hp-ink); margin-bottom: 6px; line-height: 1.5; }
.hp-card2 .price { font-size: 12.5px; color: var(--hp-green); font-weight: 700; }
.hp-card2 .price.free { color: #2563eb; }

/* ---------------- Toast / notify ---------------- */
.hp-toast-wrap { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 1200; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; }
.hp-toast { background: #0f2a3b; color: #fff; padding: 12px 20px; border-radius: 12px; font-size: 13.5px; box-shadow: var(--hp-shadow); animation: hpRise .2s ease; max-width: 92vw; }
.hp-toast.ok { background: var(--hp-ok); } .hp-toast.warn { background: var(--hp-warn); } .hp-toast.err { background: #dc2626; }

/* ---------------- Floating assistant ---------------- */
.hp-fab { position: fixed; left: 24px; bottom: 88px; z-index: 60; display: flex; flex-direction: column; gap: 12px; }
.hp-fab button { width: 52px; height: 52px; border-radius: 50%; border: none; cursor: pointer; color: #fff; font-size: 22px; display: grid; place-items: center; box-shadow: var(--hp-shadow); transition: transform .15s; }
.hp-fab button:hover { transform: scale(1.06); }
.hp-fab .ai { background: linear-gradient(135deg, #7c3aed, #2563eb); }
.hp-fab .support { background: linear-gradient(135deg, var(--hp-green), #10b981); }
@media (max-width: 700px) { .hp-fab { left: 16px; bottom: 74px; } .hp-fab button { width: 46px; height: 46px; font-size: 19px; } }

/* assistant chat */
.hp-chat { display: flex; flex-direction: column; gap: 12px; max-height: 52vh; overflow-y: auto; padding: 4px; margin-bottom: 14px; }
.hp-msg { max-width: 86%; padding: 11px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.7; }
.hp-msg.bot { background: var(--hp-bg); color: var(--hp-ink); align-self: flex-start; border-bottom-right-radius: 4px; }
.hp-msg.me { background: var(--hp-green); color: #fff; align-self: flex-end; border-bottom-left-radius: 4px; }
.hp-msg .svc-suggest { margin-top: 10px; display: flex; flex-direction: column; gap: 7px; }
.hp-msg .svc-suggest button { background: #fff; border: 1px solid var(--hp-line); border-radius: 10px; padding: 8px 11px; font-size: 12.5px; cursor: pointer; text-align: right; display: flex; align-items: center; gap: 8px; color: var(--hp-ink); font-family: inherit; }
.hp-msg .svc-suggest button:hover { border-color: var(--hp-green); color: var(--hp-green); }
.hp-chat-input { display: flex; gap: 8px; }
.hp-chat-input input { flex: 1; padding: 11px 13px; border: 1.5px solid #cbd5e1; border-radius: 11px; font-family: inherit; font-size: 14px; }
.hp-chat-input input:focus { outline: none; border-color: var(--hp-green); }
.hp-chat-input button { width: 46px; border: none; border-radius: 11px; background: var(--hp-green); color: #fff; cursor: pointer; font-size: 17px; }
.hp-suggest-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.hp-suggest-quick button { border: 1px solid var(--hp-line); background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 12px; cursor: pointer; color: var(--hp-muted); font-family: inherit; }
.hp-suggest-quick button:hover { border-color: var(--hp-green); color: var(--hp-green); }

/* ---------------- Search suggestions dropdown ---------------- */
.hp-suggest { position: absolute; top: calc(100% + 6px); right: 0; left: 0; background: #fff; border-radius: 14px; box-shadow: var(--hp-shadow); border: 1px solid var(--hp-line); z-index: 40; overflow: hidden; max-height: 60vh; overflow-y: auto; }
.hp-suggest .sh { font-size: 11px; color: #94a3b8; padding: 10px 14px 4px; }
.hp-suggest a, .hp-suggest button { display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-size: 13.5px; color: var(--hp-ink); cursor: pointer; border: none; background: transparent; width: 100%; text-align: right; font-family: inherit; border-top: 1px solid #f1f5f9; }
.hp-suggest a:hover, .hp-suggest button:hover { background: var(--hp-bg); }
.hp-suggest .cat { margin-inline-start: auto; font-size: 11px; color: #94a3b8; }
.hp-suggest i.svc-ic { width: 30px; height: 30px; border-radius: 8px; background: var(--hp-bg); color: var(--hp-green); display: grid; place-items: center; font-size: 14px; flex: none; }
.hero-search { position: relative; }
.hp-voice-btn { position: absolute; left: 118px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; border: none; background: #f1f5f9; cursor: pointer; display: grid; place-items: center; color: var(--hp-green); font-size: 16px; z-index: 5; }
.hp-voice-btn.rec { background: #fee2e2; color: #dc2626; animation: hpPulse 1s infinite; }
@keyframes hpPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(220,38,38,.4) } 50% { box-shadow: 0 0 0 8px rgba(220,38,38,0) } }
@media (max-width: 700px) { .hp-voice-btn { left: 12px; } }

/* ---------------- Auth button state ---------------- */
.hp-userchip { display: inline-flex; align-items: center; gap: 7px; }
.hp-userchip .av { width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg, var(--hp-green), #10b981); color: #fff; display: grid; place-items: center; font-size: 11px; overflow: hidden; }
.hp-userchip .av img { width: 100%; height: 100%; object-fit: cover; }
.hp-headbell { position: relative; }
.hp-headbell .cnt { position: absolute; top: -4px; left: -4px; background: #ef4444; color: #fff; font-size: 9px; border-radius: 999px; padding: 0 5px; min-width: 15px; text-align: center; }

/* ---------------- Page (SEO landing / static) ---------------- */
.hp-page { max-width: 1100px; margin: 0 auto; padding: 20px 16px 60px; }
.hp-crumbs { font-size: 12.5px; color: var(--hp-muted); margin: 10px 0 18px; display: flex; gap: 6px; flex-wrap: wrap; }
.hp-crumbs a { color: var(--hp-green); cursor: pointer; }
.hp-hero2 { background: linear-gradient(135deg, #0f2a3b, #135e4b); color: #fff; border-radius: 20px; padding: 32px; margin-bottom: 22px; position: relative; overflow: hidden; }
.hp-hero2 h1 { margin: 0 0 10px; font-size: 24px; }
.hp-hero2 p { margin: 0; opacity: .9; font-size: 14px; line-height: 1.9; max-width: 640px; }
.hp-hero2 .hp-btn { width: auto; margin-top: 18px; background: #fff; color: var(--hp-green); }
.hp-section-title { font-size: 17px; color: var(--hp-ink); margin: 26px 0 14px; display: flex; align-items: center; gap: 8px; }
.hp-two { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 860px) { .hp-two { grid-template-columns: 1fr; } .hp-dash { grid-template-columns: 1fr; } .hp-dash-side { display: none; } }

.hp-faq-item { border: 1px solid var(--hp-line); border-radius: 12px; margin-bottom: 10px; overflow: hidden; background: #fff; }
.hp-faq-q { padding: 14px 16px; cursor: pointer; display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 600; color: var(--hp-ink); }
.hp-faq-a { padding: 0 16px; max-height: 0; overflow: hidden; transition: max-height .25s, padding .25s; font-size: 13px; color: var(--hp-muted); line-height: 2; }
.hp-faq-item.open .hp-faq-a { max-height: 320px; padding: 0 16px 16px; }
.hp-faq-item.open .hp-faq-q i { transform: rotate(180deg); }
.hp-faq-q i { transition: transform .2s; }

/* pricing plans */
.hp-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.hp-plan { background: #fff; border: 2px solid var(--hp-line); border-radius: 18px; padding: 22px; position: relative; }
.hp-plan.featured { border-color: var(--hp-green); box-shadow: var(--hp-shadow); }
.hp-plan .tag { position: absolute; top: -12px; right: 20px; background: var(--hp-green); color: #fff; font-size: 11px; padding: 4px 12px; border-radius: 999px; }
.hp-plan h3 { margin: 0 0 6px; font-size: 16px; color: var(--hp-ink); }
.hp-plan .amount { font-size: 24px; font-weight: 800; color: var(--hp-green); margin: 8px 0; }
.hp-plan .amount small { font-size: 12px; color: var(--hp-muted); font-weight: 400; }
.hp-plan ul { list-style: none; padding: 0; margin: 14px 0; }
.hp-plan li { font-size: 12.5px; color: #475569; padding: 6px 0; display: flex; gap: 8px; align-items: flex-start; }
.hp-plan li::before { content: "✓"; color: var(--hp-green); font-weight: 700; }

.hp-pkg { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.hp-pkg-card { background: #fff; border: 1px solid var(--hp-line); border-radius: 16px; padding: 20px; }
.hp-pkg-card .ic { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; font-size: 22px; color: #fff; margin-bottom: 12px; }
.hp-pkg-card.purple .ic { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.hp-pkg-card.orange .ic { background: linear-gradient(135deg, #ea580c, #f97316); }
.hp-pkg-card.green .ic { background: linear-gradient(135deg, var(--hp-green), #10b981); }
.hp-pkg-card.blue .ic { background: linear-gradient(135deg, #2563eb, #3b82f6); }
.hp-pkg-card h3 { margin: 0 0 6px; font-size: 15px; color: var(--hp-ink); }
.hp-pkg-card p { font-size: 12.5px; color: var(--hp-muted); line-height: 1.9; margin: 0 0 12px; }
.hp-pkg-card .svcs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.hp-pkg-card .svcs span { font-size: 11px; background: var(--hp-bg); border-radius: 999px; padding: 3px 9px; color: #475569; }
.hp-pkg-card .foot { display: flex; align-items: center; justify-content: space-between; }
.hp-pkg-card .foot .old { text-decoration: line-through; color: #94a3b8; font-size: 12px; }
.hp-pkg-card .foot .new { color: var(--hp-green); font-weight: 800; font-size: 15px; }

/* calculators */
.hp-calc-inputs { display: grid; gap: 12px; margin-bottom: 16px; }
.hp-calc-out { background: var(--hp-bg); border-radius: 12px; padding: 16px; }
.hp-calc-out .r { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--hp-line); font-size: 13px; }
.hp-calc-out .r:last-child { border-bottom: none; }
.hp-calc-out .r.strong { font-weight: 800; color: var(--hp-green); font-size: 15px; }

/* progress bar (kyc/api) */
.hp-bar { height: 8px; border-radius: 999px; background: #e2e8f0; overflow: hidden; }
.hp-bar > span { display: block; height: 100%; background: var(--hp-green); border-radius: 999px; }

/* mini table for admin */
.hp-admin-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.hp-admin-tabs button { border: 1px solid var(--hp-line); background: #fff; padding: 8px 14px; border-radius: 10px; cursor: pointer; font-size: 13px; color: var(--hp-muted); font-family: inherit; }
.hp-admin-tabs button.active { background: var(--hp-ink); color: #fff; border-color: var(--hp-ink); }
.hp-bars { display: flex; align-items: flex-end; gap: 8px; height: 140px; padding: 10px 0; }
.hp-bars .b { flex: 1; background: linear-gradient(to top, var(--hp-green), #34d399); border-radius: 6px 6px 0 0; position: relative; min-height: 4px; }
.hp-bars .b small { position: absolute; bottom: -20px; left: 0; right: 0; text-align: center; font-size: 10px; color: var(--hp-muted); }
.hp-bars .b span { position: absolute; top: -18px; left: 0; right: 0; text-align: center; font-size: 10px; color: var(--hp-ink); font-weight: 700; }

.hp-copy { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; background: var(--hp-bg); border-radius: 8px; padding: 6px 10px; font-size: 12px; color: var(--hp-ink); font-family: monospace; direction: ltr; }
.hp-copy:hover { background: #e2e8f0; }

.hp-inline-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.hp-icon-btn { border: 1px solid var(--hp-line); background: #fff; width: 32px; height: 32px; border-radius: 9px; cursor: pointer; display: grid; place-items: center; color: var(--hp-muted); font-size: 14px; }
.hp-icon-btn:hover { border-color: var(--hp-green); color: var(--hp-green); }
.hp-icon-btn.danger:hover { border-color: #dc2626; color: #dc2626; }

/* toggle */
.hp-toggle { position: relative; width: 44px; height: 24px; flex: none; }
.hp-toggle input { opacity: 0; width: 0; height: 0; }
.hp-toggle .sl { position: absolute; inset: 0; background: #cbd5e1; border-radius: 999px; cursor: pointer; transition: .2s; }
.hp-toggle .sl::before { content: ""; position: absolute; width: 18px; height: 18px; right: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.hp-toggle input:checked + .sl { background: var(--hp-green); }
.hp-toggle input:checked + .sl::before { transform: translateX(-20px); }

.hp-hide { display: none !important; }

/* ==================== مودال عریض + صفحات ثابت و مرکز پشتیبانی ==================== */
.hp-modal.large { max-width: 940px; width: 100%; }
.hp-modal.large .hp-page { padding: 4px 0 8px; }
.hp-hero2 h2 { margin: 0 0 10px; font-size: 23px; line-height: 1.7; }
.hp-hero2 > span { display: inline-block; font-size: 12px; background: #ffffff26; border-radius: 999px; padding: 5px 12px; margin-bottom: 12px; }
.hp-page section h3 { margin: 0 0 8px; font-size: 15.5px; color: var(--hp-ink); }
.hp-page section p, .hp-page section li { font-size: 13.5px; line-height: 2; color: #475569; margin: 0 0 6px; }
.hp-page section ul { margin: 0; padding-inline-start: 18px; }
.hp-page section { background: #fff; border: 1px solid var(--hp-line); border-radius: 16px; padding: 18px; }
.hp-page .hp-section-title { display: block; background: var(--hp-bg); border-radius: 16px; padding: 18px; margin-top: 20px; }
.hp-page .hp-section-title h3 { margin: 0 0 6px; font-size: 15.5px; }
.hp-page .hp-section-title p { margin: 0; font-size: 13.5px; line-height: 2; color: #475569; }

.support-hero { display: flex; align-items: center; gap: 16px; background: linear-gradient(135deg, #0f2a3b, #135e4b); color: #fff; border-radius: 18px; padding: 22px; }
.support-hero h3 { margin: 0 0 6px; font-size: 19px; }
.support-hero p { margin: 0; font-size: 13px; line-height: 1.9; opacity: .9; }
.support-kicker { display: inline-block; font-size: 11.5px; background: #ffffff26; border-radius: 999px; padding: 4px 11px; margin-bottom: 10px; }
.support-hero > i { font-size: 44px; opacity: .35; margin-inline-start: auto; }
.support-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.hp-support-card { border: 1px solid var(--hp-line); background: #fff; border-radius: 16px; padding: 18px 14px; cursor: pointer; font-family: inherit; text-align: center; transition: border-color .15s, box-shadow .15s, transform .15s; }
.hp-support-card:hover { border-color: var(--hp-green); box-shadow: 0 10px 24px #0b8d6914; transform: translateY(-2px); }
.hp-support-card i { font-size: 24px; color: var(--hp-green); display: block; margin-bottom: 8px; }
.hp-support-card b { display: block; font-size: 13.5px; color: var(--hp-ink); }
.hp-support-card small { display: block; font-size: 11.5px; color: var(--hp-muted); margin-top: 4px; }
.support-learning { display: flex; align-items: center; gap: 14px; margin-top: 16px; background: var(--hp-bg); border-radius: 16px; padding: 16px 18px; }
.support-learning i { font-size: 20px; color: var(--hp-green); }
.support-learning b { font-size: 14px; }
.support-learning p { margin: 4px 0 0; font-size: 12.5px; color: var(--hp-muted); }
.support-learning .hp-btn { width: auto; margin-inline-start: auto; padding: 9px 16px; font-size: 13px; white-space: nowrap; }
.hp-btn.ghost { background: #fff; color: var(--hp-green); border: 1px solid var(--hp-green); }
.hp-faq-list details { border: 1px solid var(--hp-line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.hp-faq-list summary { cursor: pointer; font-size: 13.5px; font-weight: 700; color: var(--hp-ink); }
.hp-faq-list p { margin: 8px 0 0; font-size: 13px; line-height: 2; color: #475569; }
@media (max-width: 700px) { .support-actions { grid-template-columns: 1fr; } .support-learning { flex-wrap: wrap; } .support-learning .hp-btn { width: 100%; } }

/* دکمه جستجوی صوتی داخل کادر هیرو: به‌جای موقعیت مطلق (که روی دکمه
   «جست‌وجو در خدمات» می‌افتاد) به‌صورت یک آیتم فلکس کنار ورودی می‌نشیند. */
.hero-search .hp-voice-btn { position: static; transform: none; flex: none; margin-inline-end: 6px; order: 2; }
.hero-search > span { order: 0; }
.hero-search > input { order: 1; }
.hero-search > button#searchButton { order: 3; }
