/* ---------- فونت ایران‌یکان (محلی؛ بدون CDN بلاک‌کننده) ---------- */
@font-face{font-family:'IRANYekanX';font-weight:400;font-display:swap;
  src:url('fonts/IRANYekanX-Regular.woff2') format('woff2');}
@font-face{font-family:'IRANYekanX';font-weight:500;font-display:swap;
  src:url('fonts/IRANYekanX-Medium.woff2') format('woff2');}
@font-face{font-family:'IRANYekanX';font-weight:700;font-display:swap;
  src:url('fonts/IRANYekanX-Bold.woff2') format('woff2');}
@font-face{font-family:'IRANYekanX';font-weight:800;font-display:swap;
  src:url('fonts/IRANYekanX-Black.woff2') format('woff2');}

#hb-app{
  --ink:#33231d; --muted:#8d7c6c; --bg:#f6efe4; --surface:#fffdf8; --line:#e6dac5;
  --primary:#8e2f3c; --primary-deep:#6f2130; --primary-soft:#f6e7e6;
  --gold:#b07a34; --gold-soft:#f3e6cd; --green:#2f6b4f; --red:#a83a33;
  font-family:'IRANYekanX','IRANYekan','Vazirmatn',Tahoma,sans-serif;
  font-size:16px; line-height:1.9; color:var(--ink); background:var(--bg);
  border-radius:18px; padding:34px clamp(14px,3vw,44px) 46px; box-sizing:border-box;
}
#hb-app *,#hb-app *::before,#hb-app *::after{box-sizing:inherit;font-family:inherit;}
#hb-app button{font-family:inherit;}
#hb-app .hb-boot{text-align:center;padding:60px 0;color:var(--muted);}
#hb-app .hb-ic{width:1.25em;height:1.25em;flex:none;vertical-align:-0.28em;}
#hb-app .hb-dim{color:var(--muted);font-size:12.5px;}

/* ---------- سربرگ (جملهٔ توضیحی تمام‌عرض در ردیف مستقل) ---------- */
.hb-head{padding-bottom:18px;border-bottom:2px solid var(--ink);margin-bottom:26px;}
.hb-head-top{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;flex-wrap:wrap;}
.hb-kicker{display:inline-block;font-size:12.5px;font-weight:700;color:var(--gold);
  letter-spacing:.12em;margin-bottom:6px;}
.hb-head h1{margin:0;font-size:clamp(24px,3.4vw,34px);font-weight:800;line-height:1.4;}
.hb-head-actions{display:flex;gap:10px;flex-wrap:wrap;}
.hb-sub{margin:8px 0 0;max-width:none;width:100%;color:var(--muted);font-size:13.5px;line-height:1.9;}
@media(min-width:1280px){.hb-sub{white-space:nowrap;}}

/* ---------- چیدمان ---------- */
.hb-grid{display:grid;grid-template-columns:minmax(0,1fr) 372px;gap:30px;align-items:start;}
.hb-side{position:sticky;top:18px;display:grid;gap:18px;}
@media(max-width:980px){.hb-grid{grid-template-columns:1fr;}.hb-side{position:static;}}

/* ---------- بخش‌ها ---------- */
.hb-sec{background:var(--surface);border:1px solid var(--line);border-radius:16px;
  padding:22px 22px 24px;margin-bottom:18px;}
.hb-sec-t{display:flex;align-items:center;gap:10px;margin-bottom:16px;color:var(--primary);}
.hb-sec-t h2{margin:0;font-size:17.5px;font-weight:800;color:var(--ink);display:flex;align-items:center;gap:9px;}
.hb-sec-t h2 i{font-style:normal;width:26px;height:26px;border:1.5px solid var(--gold);color:var(--gold);
  border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:13.5px;font-weight:700;}
.hb-hint{color:var(--muted);font-size:14px;margin:4px 0;}

/* ---------- تقویم (بدون قیمت) ---------- */
.hb-cal-nav{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;}
.hb-cal-title{font-size:17px;font-weight:800;}
.hb-nav{display:inline-flex;align-items:center;gap:4px;background:none;border:1px solid var(--line);
  border-radius:10px;padding:7px 12px;font-size:13.5px;color:var(--ink);cursor:pointer;transition:.15s;}
.hb-nav:hover:not(:disabled){border-color:var(--primary);color:var(--primary);}
.hb-nav:disabled{opacity:.35;cursor:default;}
.hb-cal-wd,.hb-cal-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:7px;}
.hb-cal-wd span{text-align:center;font-size:12px;font-weight:700;color:var(--muted);padding-bottom:2px;}
.hb-cal-wd span.hb-fri{color:var(--red);}
.hb-cal-grid.hb-cal-loading{grid-column:1/-1;min-height:190px;align-items:center;justify-content:center;}
.hb-cell{aspect-ratio:1/.92;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;
  cursor:pointer;transition:.15s;padding:0;min-width:0;}
.hb-cell b{font-size:17px;font-weight:700;line-height:1.3;color:var(--ink);}
.hb-cell span{font-size:10px;color:var(--red);line-height:1.4;font-weight:700;}
.hb-cell.hb-fri b{color:var(--red);}
.hb-cell:not(.hb-dis):hover{border-color:var(--primary);transform:translateY(-1px);}
.hb-cell:not(.hb-dis):not(.hb-sel):hover b{color:var(--primary);}
.hb-cell.hb-dis{opacity:.5;cursor:default;background:transparent;}
.hb-cell.hb-dis b{color:var(--muted);}
.hb-cell.hb-dis span{color:var(--muted);}
.hb-cell.hb-sel{background:var(--primary);border-color:var(--primary);}
.hb-cell.hb-sel b,.hb-cell.hb-sel span{color:#fff;}
.hb-cell.hb-sel.hb-fri b{color:#fff;}
.hb-cell.hb-today{box-shadow:0 0 0 2px var(--gold-soft),0 0 0 3.5px var(--gold);}

/* ---------- کارت‌های انتخاب (نوع جشن / سانس) ---------- */
.hb-durs{display:flex;gap:12px;flex-wrap:wrap;}
.hb-dur{flex:1 1 130px;border:1.5px solid var(--line);border-radius:14px;background:#fff;color:var(--ink);
  padding:14px 10px;text-align:center;cursor:pointer;transition:.15s;position:relative;}
.hb-dur b{display:block;font-size:17px;font-weight:800;color:var(--ink);}
.hb-dur span{display:block;font-size:12.5px;color:var(--muted);margin-top:3px;}
.hb-dur em{position:absolute;top:8px;left:8px;font-style:normal;font-size:10.5px;font-weight:700;
  background:var(--primary-soft);color:var(--primary);border-radius:20px;padding:1px 8px;}
.hb-dur:hover:not([data-full]){border-color:var(--primary);}
.hb-dur.hb-on{background:var(--primary);border-color:var(--primary);}
.hb-dur.hb-on b,.hb-dur.hb-on span{color:#fff;}
.hb-dur[data-full]{opacity:.5;cursor:not-allowed;}

/* ---------- سانس‌ها ---------- */
.hb-slots-meta{font-size:13px;color:var(--muted);margin-bottom:10px;}
.hb-slots{display:flex;flex-wrap:wrap;gap:9px;}
.hb-slot{min-width:96px;padding:9px 12px;border:1.5px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);
  font-size:15px;font-weight:700;cursor:pointer;transition:.13s;}
.hb-slot:hover:not(:disabled):not(.hb-on){border-color:var(--primary);color:var(--primary);}
.hb-slot.hb-on{background:var(--primary);border-color:var(--primary);color:#fff;}
.hb-slot.hb-off{opacity:.45;text-decoration:line-through;cursor:default;color:var(--muted);}
.hb-spin{display:inline-block;width:16px;height:16px;border:2px solid var(--line);
  border-top-color:var(--primary);border-radius:50%;animation:hbrot .7s linear infinite;}
@keyframes hbrot{to{transform:rotate(360deg)}}

/* ---------- نفرات ---------- */
.hb-stepper{display:inline-flex;align-items:center;gap:14px;border:1.5px solid var(--line);
  border-radius:14px;padding:8px 12px;background:#fff;}
.hb-stepper button{width:40px;height:40px;border-radius:10px;border:1px solid var(--line);background:var(--bg);
  font-size:22px;font-weight:700;color:var(--primary);cursor:pointer;line-height:1;transition:.13s;}
.hb-stepper button:hover:not(:disabled){border-color:var(--primary);}
.hb-stepper button:disabled{opacity:.35;cursor:default;}
.hb-stepper b{font-size:22px;font-weight:800;min-width:84px;text-align:center;}
.hb-stepper b span{font-size:12.5px;font-weight:400;color:var(--muted);margin-right:5px;}
.hb-g-meta{font-size:13.5px;color:var(--muted);margin-top:10px;}

/* ---------- خدمات ---------- */
.hb-svc{display:flex;align-items:center;justify-content:space-between;gap:12px;
  border:1px solid var(--line);border-radius:12px;padding:12px 14px;margin-bottom:9px;background:#fff;transition:.15s;}
.hb-svc.hb-on{border-color:var(--primary);background:var(--primary-soft);}
.hb-svc-main{display:flex;align-items:center;gap:11px;cursor:pointer;min-width:0;}
.hb-svc-main input{position:absolute;opacity:0;pointer-events:none;}
.hb-cb{width:21px;height:21px;flex:none;border:1.5px solid var(--line);border-radius:7px;background:#fff;
  display:inline-flex;align-items:center;justify-content:center;color:#fff;transition:.13s;}
.hb-cb svg{width:14px;height:14px;opacity:0;}
.hb-svc.hb-on .hb-cb{background:var(--primary);border-color:var(--primary);}
.hb-svc.hb-on .hb-cb svg{opacity:1;}
.hb-svc-name{font-size:15px;font-weight:500;color:var(--ink);}
.hb-svc-side{display:flex;align-items:center;gap:14px;flex:none;}
.hb-svc-price{font-size:14.5px;font-weight:700;text-align:left;color:var(--ink);}
.hb-svc-price i{display:block;font-style:normal;font-size:11px;color:var(--muted);font-weight:400;}
.hb-mini-stepper{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:9px;padding:3px 6px;background:#fff;}
.hb-mini-stepper button{width:26px;height:26px;border:none;background:var(--bg);border-radius:6px;
  font-size:17px;font-weight:700;color:var(--primary);cursor:pointer;line-height:1;}
.hb-mini-stepper b{font-size:15px;min-width:22px;text-align:center;color:var(--ink);}

/* ---------- فاکتور ---------- */
.hb-invoice,.hb-contact{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:20px;}
.hb-inv-t{display:flex;align-items:center;gap:9px;font-size:16px;font-weight:800;margin-bottom:14px;color:var(--ink);}
.hb-inv-t .hb-ic{color:var(--gold);}
.hb-inv-row{display:flex;align-items:baseline;justify-content:space-between;gap:12px;
  padding:9px 0;border-bottom:1px dashed var(--line);font-size:14px;}
.hb-inv-row span{min-width:0;color:var(--ink);}
.hb-inv-row em{display:block;font-style:normal;font-size:11.5px;color:var(--muted);}
.hb-inv-row b{white-space:nowrap;font-size:14.5px;color:var(--ink);}
.hb-inv-empty{color:var(--muted);font-size:13.5px;padding:14px 0 8px;}
.hb-inv-total{display:flex;align-items:center;justify-content:space-between;padding-top:14px;margin-top:4px;}
.hb-inv-total span{font-size:14px;color:var(--muted);font-weight:700;}
.hb-inv-total b{font-size:23px;font-weight:800;color:var(--primary);white-space:nowrap;}
.hb-inv-total b i{font-style:normal;font-size:12.5px;color:var(--muted);font-weight:400;}
.hb-inv-note{font-size:11.5px;color:var(--muted);margin-top:10px;}

/* ---------- فرم ثبت ---------- */
.hb-field{margin-bottom:12px;}
.hb-field label{display:block;font-size:13px;font-weight:700;margin-bottom:5px;color:var(--ink);}
#hb-app input,#hb-app textarea{width:100%;border:1.5px solid var(--line);border-radius:10px;background:#fbf7ee;
  padding:10px 13px;font-size:15px;color:var(--ink);outline:none;transition:.15s;}
#hb-app input:focus,#hb-app textarea:focus{border-color:var(--primary);background:#fff;}
.hb-submit{width:100%;display:inline-flex;align-items:center;justify-content:center;gap:9px;
  background:var(--primary);color:#fff;border:none;border-radius:12px;padding:14px;
  font-size:16.5px;font-weight:800;cursor:pointer;transition:.15s;margin-top:4px;}
.hb-submit:hover{background:var(--primary-deep);}
.hb-submit:disabled{opacity:.6;cursor:wait;}
.hb-contact-note{font-size:12px;color:var(--muted);margin:10px 0 0;}

/* ---------- فرم تعهد ---------- */
.hb-pledge{border:1px dashed var(--gold);background:var(--gold-soft);border-radius:12px;padding:12px 14px;margin:4px 0 12px;}
.hb-pledge-btns{display:flex;gap:8px;flex-wrap:wrap;align-items:center;}
.hb-pledge-note{font-size:12px;color:#7d5a1e;margin:8px 0 0;font-weight:700;}
.hb-file-status{font-size:12.5px;margin-top:8px;color:var(--green);font-weight:700;min-height:1em;}
.hb-file-status.err{color:var(--red);}
.hb-btn-mini{display:inline-flex;align-items:center;gap:6px;background:#fff;color:var(--ink);border:1.5px solid var(--line);
  border-radius:10px;padding:8px 14px;font-size:13.5px;font-weight:700;cursor:pointer;transition:.15s;text-decoration:none;}
.hb-btn-mini:hover{border-color:var(--primary);color:var(--primary);}
.hb-btn-mini.is-done{border-color:var(--green);color:var(--green);}

/* ---------- بلیت رزرو ---------- */
.hb-done{max-width:640px;margin:0 auto;}
.hb-ticket{background:var(--surface);border:1px solid var(--line);border-radius:18px;overflow:hidden;}
.hb-ticket-main{padding:26px 26px 18px;}
.hb-t-status{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:16px;}
.hb-badge{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;font-weight:800;
  border-radius:20px;padding:4px 13px;}
.hb-badge-pending{background:var(--gold-soft);color:#7d5a1e;}
.hb-badge-ok{background:#e2efe7;color:var(--green);}
.hb-badge-cancel{background:#f6e3e1;color:var(--red);}
.hb-t-hold{font-size:13px;color:var(--muted);}
.hb-t-hold b{color:var(--primary);font-size:15px;}
.hb-timer-end{color:var(--red)!important;}
.hb-t-codelabel{font-size:12.5px;color:var(--muted);text-align:center;}
.hb-t-code{text-align:center;font-size:38px;font-weight:800;color:var(--primary);letter-spacing:.06em;
  padding:2px 0 4px;cursor:pointer;}
.hb-t-hint{text-align:center;font-size:12px;color:var(--muted);margin:0 0 16px;}
/* خطوط توضیحات — تمام عرض */
.hb-t-meta{display:grid;grid-template-columns:1fr;gap:8px;margin-top:16px;}
.hb-t-meta div{background:var(--bg);border-radius:10px;padding:9px 12px;font-size:13.5px;color:var(--ink);
  display:flex;justify-content:space-between;align-items:baseline;gap:10px;}
.hb-t-meta span{font-size:11px;color:var(--muted);flex:none;}
.hb-ticket-cut{position:relative;border-top:2px dashed var(--line);margin:0 26px;}
.hb-ticket-cut i{position:absolute;top:-13px;width:26px;height:26px;border-radius:50%;background:var(--bg);}
.hb-ticket-cut i:first-child{right:-39px;}
.hb-ticket-cut i:last-child{left:-39px;}
.hb-ticket-pay{padding:18px 26px 24px;}
.hb-pay-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;}
.hb-pay-label{font-size:12px;color:var(--muted);font-weight:700;}
.hb-card-num{font-size:20px;font-weight:800;letter-spacing:.05em;color:var(--ink);}
.hb-pay-name{font-size:13px;color:var(--muted);}
.hb-notice{font-size:13.5px;background:var(--gold-soft);border-radius:12px;padding:12px 15px;margin:14px 0 0;color:var(--ink);}
.hb-done-actions{display:flex;gap:12px;justify-content:center;margin-top:20px;flex-wrap:wrap;}

/* ---------- دکمه‌ها و مودال ---------- */
.hb-btn-primary{display:inline-flex;align-items:center;gap:8px;background:var(--primary);color:#fff;border:none;
  border-radius:11px;padding:11px 20px;font-size:15px;font-weight:700;cursor:pointer;transition:.15s;text-decoration:none;}
.hb-btn-primary:hover{background:var(--primary-deep);}
.hb-btn-ghost{display:inline-flex;align-items:center;gap:8px;background:none;color:var(--ink);
  border:1.5px solid var(--line);border-radius:11px;padding:10px 18px;font-size:14.5px;font-weight:700;cursor:pointer;transition:.15s;text-decoration:none;}
.hb-btn-ghost:hover{border-color:var(--primary);color:var(--primary);}
.hb-modal{position:fixed;inset:0;z-index:99999;display:flex;align-items:center;justify-content:center;padding:16px;}
.hb-modal[hidden]{display:none;}
.hb-modal-ov{position:absolute;inset:0;background:rgba(40,20,15,.5);}
.hb-modal-box{position:relative;background:var(--surface,#fffdf8);border-radius:18px;max-width:520px;width:100%;
  max-height:88vh;overflow:auto;padding:24px;box-shadow:0 24px 70px rgba(40,20,15,.3);}
.hb-modal-x{position:absolute;top:14px;left:14px;width:34px;height:34px;border:1px solid var(--line);
  border-radius:50%;background:#fff;font-size:19px;cursor:pointer;color:var(--muted);line-height:1;}
.hb-modal-box h3{margin:0 0 6px;font-size:19px;font-weight:800;color:var(--ink);}
/* باکس برجستهٔ تماس با پشتیبان */
.hb-support-box{display:flex;align-items:center;gap:10px;background:var(--gold-soft);border:1.5px solid var(--gold);
  border-radius:12px;padding:11px 15px;margin:12px 0 4px;font-size:13.5px;font-weight:700;color:#7d5a1e;}
.hb-support-box .hb-ic{color:var(--gold);}
.hb-support-box a{margin-right:auto;font-size:17px;font-weight:800;color:var(--primary);
  text-decoration:none;letter-spacing:.03em;direction:ltr;}
.hb-support-box a:hover{color:var(--primary-deep);}
.hb-track-inputs{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0;}
@media(max-width:480px){.hb-track-inputs{grid-template-columns:1fr;}}
.hb-track-card{border:1px solid var(--line);border-radius:14px;padding:16px;margin-top:14px;background:#fff;}
.hb-track-err{background:#f6e3e1;color:var(--red);border-radius:10px;padding:11px 14px;margin-top:14px;font-size:14px;}
.hb-tr-row{display:flex;justify-content:space-between;gap:10px;padding:5px 0;font-size:14px;color:var(--ink);align-items:center;}
.hb-tr-row span{color:var(--muted);}

/* ---------- گالری ---------- */
.hb-gal{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px;margin-top:12px;}
.hb-gal img{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:12px;cursor:pointer;display:block;transition:.15s;border:1px solid var(--line);}
.hb-gal img:hover{transform:scale(1.03);}

/* ---------- فوتر ---------- */
.hb-footer{margin-top:36px;padding-top:18px;border-top:1px solid var(--line);text-align:center;color:var(--muted);}
.hb-footer .hb-f-addr{font-size:13px;font-weight:700;color:var(--ink);}
.hb-footer .hb-f-credit{margin-top:3px;font-size:10.5px;}
.hb-footer .hb-f-credit a{color:var(--muted);text-decoration:none;border-bottom:1px solid var(--line);}
.hb-footer .hb-f-credit a:hover{color:var(--gold);border-color:var(--gold);}

/* ---------- توست ---------- */
.hb-toast{position:fixed;bottom:26px;right:50%;transform:translate(50%,20px);z-index:100000;
  background:#2e2019;color:#fff;border-radius:12px;padding:12px 22px;font-size:14.5px;
  opacity:0;pointer-events:none;transition:.25s;max-width:88vw;text-align:center;}
.hb-toast.show{opacity:1;transform:translate(50%,0);}
.hb-toast.ok{background:var(--green);}