/* Bahareman Offer Engine — کوپن خوش‌آمد (mobile-first) */
.bhoe,.bhoe-portal{
  --bhoe-ink:#17201f;--bhoe-muted:#5f6b6a;--bhoe-line:#e5eae9;--bhoe-paper:#fff;
  --bhoe-gold:#e9a020;--bhoe-gold2:#f6bd47;--bhoe-gold-deep:#7c5104;--bhoe-gold-soft:#fff7e6;--bhoe-gold-line:#f1d08f;
  --bhoe-green:#0d8a48;--bhoe-green-soft:#e9f7ef;--bhoe-red:#b3452f;
  font-family:inherit;color:var(--bhoe-ink);box-sizing:border-box
}
.bhoe *,.bhoe-portal *{box-sizing:border-box}
.bhoe [hidden],.bhoe-portal [hidden],.bhoe-portal[hidden]{display:none!important}
.bhoe ul{list-style:none;margin:0;padding:0}

/* حذف باکس ترب‌پی پایین صفحه؛ اقساط داخل کارت قیمت نمایش داده می‌شود */
#torobpay-variation-widget-container,.torobpay-widget{display:none!important}

.bhoe{position:relative;width:100%;margin:40px 0;padding:44px 16px 48px;border-radius:24px;text-align:center;
  background:linear-gradient(180deg,var(--bhoe-tint) 0%,#fbfcfc 55%,#fff 100%);overflow-x:clip}
.bhoe-anchor{position:absolute;top:-96px;width:1px;height:1px;opacity:0;pointer-events:none}
@media(max-width:767px){.bhoe{width:100vw;left:50%;right:50%;margin-left:-50vw;margin-right:-50vw;border-radius:0;padding:34px 14px 40px}}

/* head */
.bhoe-head{max-width:680px;margin:0 auto 20px}
.bhoe-title{margin:0 0 6px;font-size:clamp(21px,5.6vw,30px);font-weight:800;line-height:1.5;color:var(--bhoe-accent)}
.bhoe-tagline{margin:0;font-size:14.5px;color:var(--bhoe-muted)}
.bhoe-social{display:inline-block;margin:10px 0 0;padding:5px 12px;border-radius:999px;background:#fff;border:1px solid var(--bhoe-line);font-size:12.5px;color:var(--bhoe-muted)}

/* features */
.bhoe-feats-wrap{max-width:640px;margin:0 auto 16px;background:#fff;border:1px solid var(--bhoe-line);border-radius:18px;padding:14px 16px;text-align:right}
.bhoe-feats{display:grid;grid-template-columns:1fr;gap:7px}
.bhoe-feats li{position:relative;padding-right:26px;font-size:14px;line-height:1.85}
.bhoe-feats li::before{content:"";position:absolute;right:0;top:6px;width:17px;height:17px;border-radius:50%;background:var(--bhoe-green-soft);border:1px solid #b6e0c6}
.bhoe-feats li::after{content:"";position:absolute;right:6px;top:9px;width:5px;height:8px;border:solid var(--bhoe-green);border-width:0 2px 2px 0;transform:rotate(45deg)}
.bhoe-feats .bhoe-feat-lead{padding-right:0;font-weight:700;color:var(--bhoe-accent)}
.bhoe-feats .bhoe-feat-lead::before,.bhoe-feats .bhoe-feat-lead::after{display:none}
.bhoe-gifts{margin-top:12px;padding-top:10px;border-top:1px dashed var(--bhoe-line)}
.bhoe-gifts-title{display:block;font-weight:800;font-size:13.5px;color:var(--bhoe-gold-deep);margin-bottom:4px}
.bhoe-gifts li{font-size:13.5px;line-height:1.9;padding-right:18px;position:relative}
.bhoe-gifts li::before{content:"•";position:absolute;right:4px;color:var(--bhoe-gold)}
@media(min-width:640px){.bhoe-feats{grid-template-columns:1fr 1fr;column-gap:20px}.bhoe-feats-plan{grid-template-columns:1fr!important}.bhoe-feats .bhoe-feat-lead{grid-column:1/-1}}

/* grid & plan card */
.bhoe-grid{display:grid;gap:16px;max-width:1080px;margin:0 auto;align-items:stretch}
.bhoe-grid-1{max-width:460px}
@media(min-width:981px){.bhoe-grid-3{grid-template-columns:repeat(3,1fr)}}
@media(max-width:980px){.bhoe-grid-3{max-width:460px}}
.bhoe-plan{position:relative;display:flex;flex-direction:column;gap:12px;background:#fff;border:1px solid var(--bhoe-line);border-radius:22px;padding:20px 16px 16px;text-align:right;box-shadow:0 12px 34px rgba(20,40,40,.07)}
.bhoe-plan-featured{border:1.5px solid var(--bhoe-accent);box-shadow:0 16px 44px rgba(20,40,40,.12)}
.bhoe-plan-soldout{opacity:.7}
.bhoe-badge{position:absolute;top:-12px;right:16px;background:var(--bhoe-accent);color:#fff;font-size:12px;font-weight:700;padding:4px 12px;border-radius:999px}
.bhoe-plan-name{margin:0;font-size:19px;font-weight:800;color:var(--bhoe-accent)}
.bhoe-plan-sub{margin:2px 0 0;font-size:13px;color:var(--bhoe-muted)}
.bhoe-plan-social{display:inline-block;margin:8px 0 0;font-size:12px;color:var(--bhoe-gold-deep);background:var(--bhoe-gold-soft);padding:3px 10px;border-radius:999px}
.bhoe-feats-plan{padding-bottom:12px;border-bottom:1px dashed var(--bhoe-line)}
.bhoe-feats-plan li{font-size:13.5px}

/* price */
.bhoe-price{margin-top:auto;text-align:center}
.bhoe-p-base,.bhoe-p-final{display:flex;flex-direction:column;align-items:center;gap:2px}
.bhoe-p-lbl{font-size:12.5px;color:var(--bhoe-muted)}
.bhoe-p-num{font-size:30px;font-weight:900;line-height:1.25;letter-spacing:-.4px}
.bhoe-p-num small,.bhoe-p-new small{font-size:13px;font-weight:600;color:var(--bhoe-muted)}
.bhoe-p-note{font-size:12.5px;color:var(--bhoe-muted)}
.bhoe-p-old{font-size:14px;color:var(--bhoe-muted);text-decoration:line-through;text-decoration-color:var(--bhoe-red)}
.bhoe-p-new{font-size:34px;font-weight:900;color:var(--bhoe-accent);line-height:1.2;letter-spacing:-.4px}
.bhoe-p-save{margin-top:4px;font-size:12.5px;font-weight:700;color:var(--bhoe-green);background:var(--bhoe-green-soft);padding:4px 10px;border-radius:999px}
.bhoe-p-hint{display:inline-block;margin-top:6px;font-size:13px;color:var(--bhoe-gold-deep);background:var(--bhoe-gold-soft);border:1px dashed var(--bhoe-gold-line);padding:4px 12px;border-radius:999px}
.bhoe-p-hint b{font-size:14px}

/* coupon ticket */
.bhoe-ticket-wrap{max-width:460px;margin:0 auto 18px}
.bhoe-ticket{position:relative;padding:14px 14px 12px;border-radius:18px;border:2px dashed var(--bhoe-gold);background:var(--bhoe-gold-soft);text-align:right;transition:background .3s,border-color .3s,box-shadow .3s}
.bhoe-tk-top{display:flex;align-items:center;gap:10px}
.bhoe-tk-pct{flex:none;display:flex;align-items:center;justify-content:center;min-width:54px;height:54px;padding:0 6px;border-radius:14px;background:linear-gradient(135deg,var(--bhoe-gold2),var(--bhoe-gold));color:#fff;font-weight:900;font-size:19px;letter-spacing:-.3px}
.bhoe-tk-head{display:flex;flex-direction:column;min-width:0}
.bhoe-tk-head b{font-size:15px;font-weight:800;color:var(--bhoe-gold-deep);line-height:1.6}
.bhoe-tk-head span{font-size:12.5px;color:var(--bhoe-red);font-weight:700;line-height:1.6}
.bhoe-tk-rows{margin:12px 0 10px;border-top:1px dashed var(--bhoe-gold-line)}
.bhoe-tk-row{display:flex;justify-content:space-between;align-items:baseline;gap:8px;padding:8px 2px 0;font-size:13px;color:var(--bhoe-muted)}
.bhoe-tk-row b{color:var(--bhoe-ink);font-size:15px;font-weight:800;white-space:nowrap;font-variant-numeric:tabular-nums}
.bhoe-tk-row b small{font-size:11px;font-weight:600;color:var(--bhoe-muted)}
.bhoe-tk-foot{margin:8px 0 0;font-size:12px;color:var(--bhoe-muted);text-align:center;line-height:1.8}
.bhoe-tk-foot:empty{display:none}
.bhoe-ticket[data-state="loading"]{opacity:.6}
.bhoe-ticket[data-state="active"]{border-style:solid;border-color:#d99412;background:linear-gradient(135deg,#fff4d9,#ffeabc);box-shadow:0 10px 26px rgba(233,160,32,.22)}
.bhoe-ticket[data-state="active"] .bhoe-tk-head span{color:var(--bhoe-green)}
.bhoe-ticket[data-state="active"] .bhoe-tk-row b{color:var(--bhoe-red);font-size:16px}
.bhoe-ticket[data-state="sleep"]{border-color:#cdd5d3;background:#f4f6f6}
.bhoe-ticket[data-state="sleep"] .bhoe-tk-pct{background:#a3adab}
.bhoe-ticket[data-state="sleep"] .bhoe-tk-head b{color:#55605e}
.bhoe-ticket[data-state="sleep"] .bhoe-tk-head span{color:var(--bhoe-muted)}
.bhoe-pop{animation:bhoe-pop .55s cubic-bezier(.2,.9,.3,1.3) 1}
@keyframes bhoe-pop{0%{transform:scale(.96)}55%{transform:scale(1.03)}100%{transform:scale(1)}}

/* buttons */
.bhoe-btn{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;min-height:54px;padding:12px 16px;border:0;border-radius:15px;font-family:inherit;font-weight:800;font-size:16px;line-height:1.5;text-decoration:none!important;cursor:pointer;transition:transform .15s,box-shadow .15s,filter .15s;-webkit-tap-highlight-color:transparent}
.bhoe-btn:active{transform:scale(.985)}
.bhoe-btn-main{color:#fff!important;background:linear-gradient(135deg,var(--bhoe-accent2),var(--bhoe-accent));box-shadow:0 10px 24px rgba(0,0,0,.14)}
.bhoe-btn-gold{color:#2b1c05!important;background:linear-gradient(135deg,var(--bhoe-gold2),#e39410);box-shadow:0 10px 24px rgba(233,160,32,.32)}
.bhoe-btn-ghost{color:var(--bhoe-accent)!important;background:#fff;border:1.5px solid var(--bhoe-accent)}
.bhoe-btn-off{color:#8d9896!important;background:#eef1f0;cursor:not-allowed}
.bhoe-btn.is-busy{pointer-events:none;opacity:.7}
@media(hover:hover){.bhoe-btn:hover{filter:brightness(1.05);box-shadow:0 14px 30px rgba(0,0,0,.18)}}
.bhoe-btn-text{display:block;width:100%;margin-top:6px;padding:12px;border:0;background:none;font-family:inherit;font-size:14px;font-weight:700;color:var(--bhoe-muted);cursor:pointer}
.bhoe-nocoupon{display:block;text-align:center;font-size:13px;color:var(--bhoe-muted)!important;text-decoration:underline!important;text-underline-offset:4px;padding:2px 0}

/* installments */
.bhoe-inst{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;padding:8px 10px;border-radius:12px;background:#f5f8fb;border:1px solid #e1e9f2;font-size:12.5px;color:#34475e}
.bhoe-inst-logos{display:inline-flex;gap:4px}
.bhoe-lg{font-style:normal;font-weight:800;font-size:11px;color:#fff;padding:2px 7px;border-radius:6px}
.bhoe-lg-snapp{background:#1e88e5}
.bhoe-lg-torob{background:#2e9e4f}
.bhoe-inst-txt b{font-variant-numeric:tabular-nums}

/* owned */
.bhoe-owned{display:flex;flex-direction:column;align-items:center;gap:3px;padding:14px;border-radius:16px;background:var(--bhoe-green-soft);border:1px solid #b6e0c6;color:#0a6b38;text-align:center}
.bhoe-owned-ico{width:32px;height:32px;border-radius:50%;background:var(--bhoe-green);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:900}
.bhoe-owned span{font-size:13px}

/* trust */
.bhoe-trust{display:flex;justify-content:center;gap:6px 18px;flex-wrap:wrap;margin:20px auto 8px;font-size:13px;color:var(--bhoe-muted)}
.bhoe-alt{display:flex;justify-content:center;align-items:center;gap:8px;flex-wrap:wrap;font-size:13.5px}
.bhoe-link{background:none;border:0;padding:4px;color:var(--bhoe-accent)!important;font-weight:700;cursor:pointer;text-decoration:none!important;font-family:inherit;font-size:inherit}
.bhoe-sep{color:#b5bfbd}

/* ---------- floating bar (همهٔ اندازه‌ها) ---------- */
.bhoe-float{position:fixed;z-index:99990;left:0;right:0;bottom:0;padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:rgba(255,255,255,.98);border-top:1px solid var(--bhoe-line);box-shadow:0 -8px 24px rgba(0,0,0,.09);transform:translateY(120%);transition:transform .28s ease;direction:rtl}
.bhoe-float.is-shown{transform:translateY(0)}
.bhoe-float-in{display:flex;align-items:center;justify-content:space-between;gap:10px;max-width:640px;margin:0 auto}
.bhoe-float-txt{display:flex;flex-direction:column;text-align:right;min-width:0;line-height:1.6}
.bhoe-float-txt b{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bhoe-float-txt span{font-size:12px;color:var(--bhoe-red);font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bhoe-float-txt span:empty{display:none}
.bhoe-float-btn{flex:none;border:0;border-radius:12px;padding:12px 18px;font-family:inherit;font-weight:800;font-size:14px;color:#fff;background:linear-gradient(135deg,var(--bhoe-accent2),var(--bhoe-accent));cursor:pointer}
.bhoe-float-btn.is-gold{color:#2b1c05;background:linear-gradient(135deg,var(--bhoe-gold2),#e39410)}
@media(min-width:768px){
  .bhoe-float{left:50%;right:auto;bottom:18px;width:min(600px,calc(100vw - 32px));transform:translate(-50%,160%);border:1px solid var(--bhoe-line);border-radius:18px;padding:10px 12px 10px 14px}
  .bhoe-float.is-shown{transform:translate(-50%,0)}
}
body.bhoe-float-on #bmc-launcher-wrap{bottom:calc(70px + 70px)!important;transition:bottom .28s ease}

/* ---------- sheet (موبایل: از پایین، دسکتاپ: وسط) ---------- */
.bhoe-sheet{position:fixed;inset:0;z-index:100000;display:flex;align-items:flex-end;justify-content:center;background:rgba(10,20,20,.5);direction:rtl;animation:bhoe-fade .2s ease}
.bhoe-sheet-card{position:relative;width:100%;max-width:440px;max-height:92vh;overflow:auto;background:#fff;border-radius:22px 22px 0 0;padding:22px 18px calc(16px + env(safe-area-inset-bottom));text-align:center;animation:bhoe-up .28s ease}
@media(min-width:768px){.bhoe-sheet{align-items:center}.bhoe-sheet-card{border-radius:22px;padding:26px 24px 18px}}
@keyframes bhoe-fade{from{opacity:0}}
@keyframes bhoe-up{from{transform:translateY(40px);opacity:.4}}
.bhoe-x{position:absolute;top:10px;left:10px;width:34px;height:34px;border:0;border-radius:50%;background:#f0f3f2;color:#555;cursor:pointer;font-size:14px}
.bhoe-sheet-ico{width:56px;height:56px;margin:0 auto 8px;border-radius:16px;display:flex;align-items:center;justify-content:center;font-size:28px;background:var(--bhoe-gold-soft)}
.bhoe-sheet-ico.bhoe-ok{border-radius:50%;background:var(--bhoe-green);color:#fff;font-weight:900}
.bhoe-sheet-title{margin:0 0 12px;font-size:19px;font-weight:800;color:var(--bhoe-ink);line-height:1.6}
.bhoe-sheet-p{font-size:13.5px;color:var(--bhoe-muted);line-height:1.9;margin:8px 0}
.bhoe-cmp{display:flex;flex-direction:column;gap:6px;margin:0 0 12px}
.bhoe-cmp-row{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:10px 12px;border-radius:12px;background:#f6f8f7;font-size:13.5px;text-align:right}
.bhoe-cmp-row s{display:inline-block;color:var(--bhoe-muted);font-size:12.5px;margin-left:10px}
.bhoe-cmp-row{flex-wrap:wrap}
.bhoe-cmp-row b{color:var(--bhoe-accent);font-size:16px;white-space:nowrap}
.bhoe-cmp-inst{flex-basis:100%;font-style:normal;font-size:12.5px;color:#2b4a7a;text-align:left;margin-top:2px}
.bhoe-done-inst{display:block;margin-top:4px;font-size:13px;color:#2b4a7a}
.bhoe-facts{list-style:none;margin:0 0 12px;padding:0;text-align:right}
.bhoe-facts li{font-size:13.5px;line-height:1.85;padding:4px 0;color:#2c3836}
.bhoe-facts li:empty{display:none}
.bhoe-field{display:block;text-align:right;margin:4px 0 10px}
.bhoe-field span{display:block;font-size:13.5px;font-weight:700;margin-bottom:6px}
.bhoe-field input{width:100%;height:52px;border:1.5px solid #d6dedc;border-radius:14px;padding:0 14px;font-size:18px;font-family:inherit;letter-spacing:1px;text-align:left;outline:none;background:#fff;color:var(--bhoe-ink)}
.bhoe-field input:focus{border-color:var(--bhoe-accent);box-shadow:0 0 0 3px rgba(0,0,0,.05)}
.bhoe-field small{display:block;margin-top:6px;font-size:12px;color:var(--bhoe-muted);line-height:1.7}
.bhoe-err{margin:0 0 10px;padding:8px 10px;border-radius:10px;background:#fdeeea;color:var(--bhoe-red);font-size:13px;font-weight:700;line-height:1.8}
.bhoe-done-price{font-size:15px;margin:0 0 6px}
.bhoe-done-price s{color:var(--bhoe-muted);margin-left:6px}
.bhoe-done-price b{font-size:24px;color:var(--bhoe-accent)}
.bhoe-done-timer{display:inline-block;margin:0 0 14px;padding:6px 12px;border-radius:999px;background:var(--bhoe-gold-soft);font-size:13.5px;color:var(--bhoe-gold-deep)}
.bhoe-done-timer b{color:var(--bhoe-red);font-variant-numeric:tabular-nums}
.bhoe-card{display:flex;flex-direction:column;align-items:center;gap:8px;padding:16px 14px;border-radius:16px;background:linear-gradient(135deg,var(--bhoe-accent),var(--bhoe-accent2));color:#fff;margin:6px 0}
.bhoe-card-bank{font-size:12.5px;opacity:.9}
.bhoe-card-num{font-size:21px;font-weight:800;letter-spacing:2px;font-family:system-ui,sans-serif}
.bhoe-copy{border:0;border-radius:10px;padding:8px 14px;background:rgba(255,255,255,.2);color:#fff;font-weight:700;cursor:pointer;font-family:inherit;font-size:13px}
.bhoe-copy.is-done{background:var(--bhoe-green)}
.bhoe-sheet-links{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}
.bhoe-chip{display:inline-block;padding:9px 14px;border-radius:12px;background:#f0f3f2;color:var(--bhoe-ink)!important;font-size:13px;font-weight:700;text-decoration:none!important}

/* toast */
.bhoe-toast{position:fixed;left:50%;bottom:96px;transform:translateX(-50%);z-index:100001;background:#17201f;color:#fff;padding:12px 18px;border-radius:14px;font-size:14px;font-weight:700;box-shadow:0 14px 40px rgba(0,0,0,.3);max-width:92vw;text-align:center;direction:rtl}
.bhoe-toast.is-good{background:var(--bhoe-green)}

.bhoe-confetti{position:fixed;inset:0;pointer-events:none;z-index:100002;overflow:hidden}
.bhoe-confetti i{position:absolute;top:-12px;width:8px;height:12px;border-radius:2px;animation:bhoe-fall 1.4s ease-in forwards}
@keyframes bhoe-fall{to{transform:translateY(110vh) rotate(540deg);opacity:0}}
@media(prefers-reduced-motion:reduce){.bhoe *,.bhoe-portal,.bhoe-portal *{animation:none!important;transition:none!important}}

/* حالت خواب: تاریخ باز شدن + شمارش معکوس + «خبرم کنید» */
.bhoe-ticket[data-state="sleep"]{border-color:var(--bhoe-gold-line);background:linear-gradient(180deg,#fffaf0,#f6f8f7)}
.bhoe-ticket[data-state="sleep"] .bhoe-tk-head b{color:var(--bhoe-ink)}
.bhoe-ticket[data-state="sleep"] .bhoe-tk-row b{color:var(--bhoe-red);font-size:16.5px;letter-spacing:.3px}
.bhoe-ticket[data-state="sleep"] .bhoe-tk-foot{color:var(--bhoe-ink);font-size:13px}
.bhoe-nt{margin-top:4px;padding-top:10px;border-top:1px dashed var(--bhoe-gold-line);display:flex;flex-direction:column;gap:8px;text-align:center}
.bhoe-nt b{font-size:14px;line-height:1.8}
.bhoe-nt input{width:100%;height:48px;border:1.5px solid #d6dedc;border-radius:12px;padding:0 12px;font-size:17px;font-family:inherit;text-align:left;letter-spacing:1px;background:#fff;color:var(--bhoe-ink);outline:none}
.bhoe-nt input:focus{border-color:var(--bhoe-accent)}
.bhoe-nt .bhoe-btn{min-height:48px;font-size:15px}
.bhoe-nt .bhoe-err{margin:0}
.bhoe-nt-ok{display:block;padding:9px 10px;border-radius:10px;background:var(--bhoe-green-soft);color:#0a6b38;font-weight:700;line-height:1.8}

/* 1.4.0 شناسایی مخاطب */
.bhoe-known{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;background:#f1f8f6;border:1px solid #cfe6df;border-radius:12px;padding:10px 12px;margin:10px 0;font-size:14px;line-height:1.8}
.bhoe-known b{font-weight:800;letter-spacing:.5px}
.bhoe-known .bhoe-btn-text{padding:4px 6px;margin:0;font-size:13px;text-decoration:underline}
.bhoe-known[hidden],.bhoe-field[hidden]{display:none!important}