.bb-app{
  --ink:#1c1410;
  --muted:#7a6a5c;
  --gold:#b8860b;
  --gold-2:#d4a017;
  --cream:#f7f1e8;
  --paper:#fffdf8;
  --line:#eadcc8;
  --ok:#2f6b4f;
  --danger:#9b2c2c;
  --shadow:0 18px 50px rgba(40,24,8,.12);
  font-family:"Vazirmatn",Tahoma,sans-serif;
  color:var(--ink);
  background:linear-gradient(180deg,#fbf6ee 0%,#fff 100%);
  border:1px solid var(--line);
  border-radius:24px;
  padding:28px 22px 18px;
  width:100%;
  max-width:min(860px,100%);
  margin:20px auto;
  overflow-x:hidden;
  box-shadow:var(--shadow);
  direction:rtl;
  text-align:right;
  box-sizing:border-box;
}
.bb-app *,.bb-app *::before,.bb-app *::after{box-sizing:border-box}
.bb-app .bb-hint,
.bb-app .bb-hero-sub,
.bb-app .bb-empty,
.bb-app .bb-cal-loading,
.bb-app .bb-form small,
.bb-app .bb-form label,
.bb-app .bb-panel h3,
.bb-app .bb-pay-block h4,
.bb-app .bb-back,
.bb-app .bb-credit,
.bb-app .bb-steps li,
.bb-app .bb-card,
.bb-app .bb-card strong,
.bb-app .bb-card .bb-meta,
.bb-app .bb-card em,
.bb-app .bb-choice,
.bb-app .bb-choice strong,
.bb-app .bb-choice span,
.bb-app .bb-terms h4,
.bb-app .bb-terms-body,
.bb-app .bb-terms-label,
.bb-app .bb-cal-weekdays span,
.bb-app .bb-day .c{
  color:#000 !important;
}
.bb-hero{display:flex;gap:16px;align-items:center;margin-bottom:22px}
.bb-hero-mark{
  width:56px;height:56px;border-radius:16px;
  background:linear-gradient(145deg,#1c1410,#3a2a1c);
  color:#f3d27a;display:flex;align-items:center;justify-content:center;
  box-shadow:0 8px 20px rgba(0,0,0,.18);overflow:visible;flex:0 0 56px
}
.bb-scissors{width:34px;height:34px;display:block}
.bb-sc-top,.bb-sc-bot{transform-box:fill-box;transform-origin:18% 50%}
.bb-sc-top{animation:bb-snip-a 1.15s ease-in-out infinite}
.bb-sc-bot{animation:bb-snip-b 1.15s ease-in-out infinite}
@keyframes bb-snip-a{
  0%,100%{transform:rotate(-16deg)}
  50%{transform:rotate(10deg)}
}
@keyframes bb-snip-b{
  0%,100%{transform:rotate(16deg)}
  50%{transform:rotate(-10deg)}
}
@media (prefers-reduced-motion:reduce){
  .bb-sc-top,.bb-sc-bot{animation:none}
}
.bb-app .bb-hero-title,
.bb-app h2.bb-hero-title{
  margin:0;font-size:26px;font-weight:800;letter-spacing:-.3px;
  color:#000 !important;
}
.bb-hero-sub{margin:4px 0 0;color:var(--muted);font-size:14px}
.bb-steps{display:flex;gap:6px;list-style:none;padding:0;margin:0 0 22px;flex-wrap:wrap}
.bb-steps li{
  flex:1;min-width:90px;background:var(--cream);border:1px solid var(--line);
  border-radius:999px;padding:8px 10px;font-size:12px;color:var(--muted);
  display:flex;align-items:center;gap:6px;justify-content:center
}
.bb-steps li span{
  width:22px;height:22px;border-radius:50%;background:#fff;display:inline-flex;
  align-items:center;justify-content:center;font-weight:700;font-size:12px
}
.bb-steps li.is-active{background:#1c1410;color:#f7e7c1;border-color:#1c1410}
.bb-steps li.is-active span{background:var(--gold);color:#1c1410}
.bb-steps li.is-done{background:#efe4cf;color:#1c1410}
.bb-panel{display:none}
.bb-panel.is-active{display:block}
.bb-panel h3{margin:0 0 14px;font-size:18px}
.bb-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px}
.bb-card{
  background:var(--paper);border:1px solid var(--line);border-radius:16px;
  padding:16px;text-align:right;cursor:pointer;font-family:inherit;
  transition:transform .15s,box-shadow .15s,border-color .15s;position:relative
}
.bb-tick{
  position:absolute;top:12px;left:12px;width:22px;height:22px;border-radius:6px;
  border:2px solid var(--line);background:#fff
}
.bb-card.is-on .bb-tick{
  background:var(--gold);border-color:var(--gold)
}
.bb-card.is-on .bb-tick::after{
  content:"";position:absolute;left:6px;top:2px;width:6px;height:11px;
  border:solid #1c1410;border-width:0 2px 2px 0;transform:rotate(45deg)
}
.bb-selbar{
  display:flex;gap:12px;align-items:center;justify-content:space-between;
  margin-top:16px;padding:12px 14px;background:#fff8e8;color:#000;
  border:1px solid var(--line);border-radius:16px;flex-wrap:wrap
}
.bb-selbar strong{display:block;margin-bottom:4px;color:#000 !important}
.bb-selbar span{font-size:12px;color:#000 !important}
.bb-selbar .bb-submit{margin:0;padding:10px 18px;width:auto}
.bb-card:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(40,24,8,.08);border-color:var(--gold)}
.bb-card.is-on{border-color:var(--gold);box-shadow:0 0 0 3px rgba(184,134,11,.18)}
.bb-card strong{display:block;font-size:16px;margin-bottom:6px}
.bb-card .bb-meta{display:block;color:var(--muted);font-size:12px}
.bb-card .bb-price{display:block;margin-top:8px;color:var(--gold);font-weight:700}
.bb-card em{display:block;margin-top:8px;font-style:normal;color:var(--muted);font-size:12px;line-height:1.6}
.bb-cal-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px;flex-wrap:wrap}
.bb-app .bb-cal-title{margin:0 0 8px;font-size:18px;text-align:center;color:#000 !important}
.bb-cal-pick{display:flex;gap:8px;align-items:center;flex:1;justify-content:center}
.bb-cal-pick select{
  font-family:inherit;font-size:15px;font-weight:700;border:1px solid var(--line);
  border-radius:12px;padding:8px 12px;background:#fff;min-width:120px;color:#000 !important
}
.bb-nav{
  border-radius:12px;border:1px solid var(--line);background:#fff;
  padding:8px 12px;cursor:pointer;font-family:inherit;font-size:13px;font-weight:700;color:#000 !important
}
.bb-hint{color:var(--muted);font-size:13px;margin:0 0 10px}
.bb-cal-wrap{overflow:auto}
.bb-cal{width:100%;min-width:280px}
.bb-cal-weekdays,.bb-cal-days{
  display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px
}
.bb-cal-weekdays{margin-bottom:6px}
.bb-cal-weekdays span{
  font-weight:600;font-size:12px;color:var(--muted);padding:6px 0;text-align:center
}
.bb-day{
  background:#fff;border:1px solid var(--line);border-radius:12px;
  min-height:64px;text-align:center;cursor:pointer;font-family:inherit;
  padding:6px 2px;transition:background .15s,border-color .15s
}
.bb-day.empty{background:transparent;border:none;cursor:default;min-height:24px}
.bb-day .d{font-weight:700;font-size:16px;display:block}
.bb-day .c{font-size:10px;color:var(--muted);display:block}
.bb-day:hover:not(.empty):not(.off):not(:disabled){border-color:var(--gold)}
.bb-day.today{box-shadow:inset 0 0 0 2px var(--gold)}
.bb-day.off,.bb-day:disabled:not(.empty){opacity:.38;cursor:not-allowed;background:#f3eee6}
.bb-day.is-closed{background:#f3e5e5;color:#000 !important;opacity:1}
.bb-day.is-closed .d,.bb-day.is-closed .c{color:#000 !important}
.bb-day.is-on{background:#1c1410;color:#f7e7c1 !important;border-color:#1c1410}
.bb-day.is-on .d{color:#f7e7c1 !important}
.bb-day.is-on .c{color:#e6c56a !important}
.bb-cal-loading{grid-column:1 / -1;text-align:center;color:var(--muted);padding:18px}
.bb-slots{display:flex;flex-wrap:wrap;gap:8px}
.bb-slot{
  min-width:84px;padding:10px 12px;border-radius:12px;border:1px solid var(--line);
  background:#fff;cursor:pointer;font-family:inherit;font-weight:600
}
.bb-slot.is-on{background:#1c1410;color:#f7e7c1;border-color:#1c1410}
.bb-form{display:grid;gap:12px;min-width:0;max-width:100%}
.bb-form label{display:grid;gap:6px;font-size:13px;font-weight:600;min-width:0;max-width:100%}
.bb-form input,.bb-form textarea,.bb-form select{
  font-family:inherit;border:1px solid var(--line);border-radius:12px;
  padding:12px 14px;font-size:15px;background:#fff;
  width:100%;max-width:100%;min-width:0
}
.bb-form small{font-weight:400;color:var(--muted)}
.bb-submit{
  background:linear-gradient(180deg,var(--gold-2),var(--gold));
  color:#1c1410;border:none;border-radius:14px;padding:14px 18px;
  font-family:inherit;font-weight:800;font-size:16px;cursor:pointer
}
.bb-submit:disabled{opacity:.6;cursor:wait}
.bb-ghost{background:#fff;border:1px solid var(--line)}
.bb-summary{
  background:var(--cream);border-radius:14px;padding:12px 14px;margin-bottom:14px;
  font-size:14px;line-height:1.9;max-width:100%;min-width:0
}
.bb-table-scroll{width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.bb-sum-table{
  width:100%;max-width:100%;border-collapse:collapse;table-layout:fixed
}
.bb-sum-table th,.bb-sum-table td{
  padding:8px 10px;border-bottom:1px solid var(--line);text-align:right;
  vertical-align:top;word-wrap:break-word;overflow-wrap:anywhere
}
.bb-sum-table th{width:34%;font-weight:700;color:#000}
.bb-sum-table td{color:#000}
.bb-sum-table tr:last-child th,.bb-sum-table tr:last-child td{border-bottom:none}
.bb-done{text-align:center;padding:28px 10px}
.bb-done-icon{
  width:72px;height:72px;margin:0 auto 12px;border-radius:50%;
  background:var(--ok);color:#fff;display:flex;align-items:center;justify-content:center;font-size:36px
}
.bb-back{
  background:transparent;border:none;color:var(--muted);cursor:pointer;
  font-family:inherit;padding:8px 0
}
.bb-empty{color:var(--muted)}
.bb-foot{margin-top:10px}
.bb-credit{
  margin:18px 0 4px;padding-top:14px;border-top:1px solid var(--line);
  text-align:center;font-size:12px;color:var(--muted)
}
.bb-credit a{color:#1c1410;text-decoration:none;font-weight:700}
.bb-credit a:hover{text-decoration:underline}
.bb-staff-card{display:flex;flex-direction:column;align-items:stretch;gap:8px}
.bb-staff-photo{
  width:100%;height:140px;object-fit:cover;border-radius:12px;display:block;background:#f7f1e8
}
.bb-staff-photo-ph{min-height:80px}
.bb-pay-block{margin-top:8px;padding-top:8px;border-top:1px dashed var(--line);min-width:0;max-width:100%}
.bb-pay-block h4{margin:8px 0 4px;font-size:16px}
.bb-pay-choice{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:10px 0}
@media (max-width:560px){.bb-pay-choice{grid-template-columns:1fr}}
.bb-choice{
  text-align:right;font-family:inherit;cursor:pointer;background:#fff;
  border:1px solid var(--line);border-radius:16px;padding:14px
}
.bb-choice strong{display:block;margin-bottom:4px;font-size:15px}
.bb-choice span{color:var(--muted);font-size:12px}
.bb-choice.is-on{border-color:var(--gold);box-shadow:0 0 0 3px rgba(184,134,11,.18);background:#fffaf0}
.bb-pay-sub{margin-top:10px}
.bb-card-iban{
  background:#1c1410;color:#f7e7c1;border-radius:14px;padding:14px;margin-bottom:12px;line-height:1.9;
  max-width:100%;overflow-wrap:anywhere
}
.bb-card-no-row{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:8px}
.bb-card-no{
  font-size:20px;letter-spacing:2px;font-weight:800;color:#e6c56a;margin:0;
  user-select:all;-webkit-user-select:all;cursor:pointer;
  max-width:100%;overflow-wrap:anywhere;word-break:break-all
}
.bb-copy-card{
  font-family:inherit;font-weight:800;font-size:13px;cursor:pointer;
  background:linear-gradient(180deg,#d4a017,#b8860b);color:#1c1410;
  border:none;border-radius:10px;padding:9px 14px;white-space:nowrap
}
.bb-copy-card.is-ok{background:#2f6b4f;color:#fff}
.bb-copy-hint{margin:8px 0 0;font-size:12px;color:#e6c56a}
.bb-terms{
  border:1px solid var(--line);border-radius:14px;padding:14px;background:#fffaf0;margin:4px 0 8px
}
.bb-terms h4{margin:0 0 8px;font-size:15px}
.bb-terms-body{
  max-height:160px;overflow:auto;font-size:13px;font-weight:400;line-height:1.9;
  color:var(--ink);background:#fff;border:1px solid var(--line);border-radius:10px;padding:10px 12px
}
.bb-terms-accept{
  display:flex;align-items:flex-start;gap:12px;margin-top:12px;font-weight:700;font-size:15px;cursor:pointer
}
.bb-terms-label{flex:1;min-width:0;overflow-wrap:anywhere;line-height:1.5}
.bb-terms-accept input{
  position:absolute;opacity:0;width:1px;height:1px;pointer-events:none
}
.bb-terms-box{
  width:34px;height:34px;flex:0 0 34px;border:3px solid #b8860b;border-radius:9px;
  background:#fff;box-sizing:border-box;position:relative
}
.bb-terms-accept input:checked + .bb-terms-box{
  background:#2f6b4f;border-color:#2f6b4f
}
.bb-terms-accept input:checked + .bb-terms-box::after{
  content:"";position:absolute;left:10px;top:4px;width:10px;height:18px;
  border:solid #fff;border-width:0 3px 3px 0;transform:rotate(45deg)
}

.bb-terms-warn{
  display:none;margin:10px 0 0;padding:10px 12px;border-radius:10px;
  background:#fdecea;border:1px solid #e8b4b4;color:#9b2c2c;font-weight:700;font-size:13px
}
.bb-terms-warn.is-on,.bb-terms-warn:not([hidden]){display:block}
.bb-terms.is-warn{border-color:#c62828;box-shadow:0 0 0 3px rgba(198,40,40,.18)}
.bb-receipt-preview img{max-width:min(180px,100%);height:auto;border-radius:12px;border:1px solid var(--line);margin-top:6px}
.bb-panel.is-active{max-width:100%;min-width:0}
@media (max-width:600px){
  .bb-app{padding:16px 10px;border-radius:16px}
  .bb-steps li{font-size:11px;padding:6px;min-width:calc(50% - 6px)}
  .bb-cal td{height:52px}
  .bb-day{min-height:48px;padding:4px 1px}
  .bb-day .d{font-size:14px}
  .bb-cal-pick{width:100%}
  .bb-cal-pick select{min-width:0;flex:1;width:100%}
  .bb-cal-head{flex-direction:column;align-items:stretch}
  .bb-nav{width:100%}
  .bb-app .bb-hero-title,.bb-app h2.bb-hero-title{font-size:20px}
  .bb-sum-table,.bb-sum-table tbody,.bb-sum-table tr,.bb-sum-table th,.bb-sum-table td{
    display:block;width:100%
  }
  .bb-sum-table th{width:100%;padding:8px 4px 0;border-bottom:none;font-size:12px;color:var(--muted)}
  .bb-sum-table td{padding:2px 4px 10px}
  .bb-sum-table tr{border-bottom:1px solid var(--line)}
  .bb-sum-table tr:last-child{border-bottom:none}
  .bb-card-no{font-size:16px;letter-spacing:1px}
  .bb-copy-card{width:100%;white-space:normal}
  .bb-card-no-row{flex-direction:column;align-items:stretch}
  .bb-selbar{flex-direction:column;align-items:stretch}
  .bb-selbar .bb-submit{width:100%}
  .bb-cards{grid-template-columns:1fr}
  .bb-form .bb-submit,#bb-final-submit{width:100%}
}
