
:root{--ink:#111;--muted:#6b7280;--accent:#7c3aed;--card:#fff;--shadow:0 12px 28px rgba(0,0,0,.08),0 2px 6px rgba(0,0,0,.06)}
*{box-sizing:border-box}
html,body{height:100%;margin:0;font-family:Heebo,system-ui,-apple-system,Segoe UI,Roboto,Noto Sans,sans-serif;color:var(--ink)}
.bg{position:fixed;inset:0;background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(250,245,255,.92));z-index:-1}
.container{max-width:1200px;margin:0 auto;padding:24px 16px}
.logo-hero{display:block;margin:4px auto 8px;width:220px;max-width:42vw;box-shadow:var(--shadow);border-radius:12px}
.title{text-align:center;font-weight:800;margin:8px 0 14px;font-size:34px}
.grid{display:grid;gap:16px}
.grid.identity{grid-template-columns:1fr 1fr;margin-bottom:4px}
.grid.top{grid-template-columns:repeat(4,1fr);margin-bottom:6px}
.grid.methods{grid-template-columns:repeat(4,1fr);margin-top:8px}
.grid.bottom-controls{grid-template-columns:1fr 1fr;margin-top:22px}
@media(max-width:900px){.grid.identity,.grid.top,.grid.bottom-controls{grid-template-columns:1fr}.grid.methods{grid-template-columns:1fr}}
.card{background:var(--card);border-radius:16px;padding:14px;box-shadow:var(--shadow)}
.card.warn{background:#fffbea;border:1px solid #fde68a;color:#7c2d12;text-align:center}
label{display:block;font-weight:700;margin-bottom:6px}
input[type=number],input[type=text],input[type=tel]{width:100%;padding:10px 12px;border:1px solid #e5e7eb;border-radius:12px}
input[type=range]{width:100%}
small{display:block;color:var(--muted)}
.discount-row{display:flex;gap:10px}
.discount-row select,.discount-row input{padding:10px 12px;border:1px solid #e5e7eb;border-radius:12px}
.discount-row select{min-width:80px}
.lines{margin-top:8px;color:#374151;display:grid;gap:4px}
.lines b{font-weight:800}
.actions button{width:100%;padding:12px;border:0;border-radius:12px;background:var(--accent);color:#fff;font-weight:800;cursor:pointer}
.method-card h3{margin:0 0 8px}
.badge{display:inline-block;background:#f1f5f9;border-radius:999px;padding:6px 10px;font-size:12px;color:#334155}
.badge.reco-badge{background:#7c3aed;color:#fff}
.badge.bad{background:#f43f5e;color:#fff}
.big{font-size:28px;font-weight:800}
.sep{height:1px;background:#ededf4;margin:10px 0}
.muted{color:#666}
.kv .muted b.fee-amount{font-weight:800;color:#111}
.method-card.reco{box-shadow:0 0 0 3px rgba(147,51,234,.45),0 12px 28px rgba(147,51,234,.18),0 2px 6px rgba(0,0,0,.06)}
.method-card.disabled{opacity:.55;filter:grayscale(.1);border:1px dashed #e5e7eb;box-shadow:none}
footer{text-align:center;color:#9ca3af;margin-top:18px}
.print-sheet{width:555pt;margin:0 auto;background:#fff;border:1px solid #ede9fe;border-radius:16px;padding:16pt 18pt;direction:rtl;box-shadow:var(--shadow)}
.ps-header{display:flex;gap:12pt;align-items:center;margin-bottom:10pt}
.ps-header img{width:58pt;height:58pt;border-radius:12pt;object-fit:cover;box-shadow:var(--shadow)}
.ps-title{font-weight:800;font-size:15pt;white-space:nowrap}
.ps-sub{color:#6b7280;font-size:9pt}
.ps-table{width:100%;border-collapse:separate;border-spacing:0 4pt;margin-top:6pt}
.ps-table.fixed{table-layout:fixed}
.ps-table.fixed td.label{width:38%}
.ps-table.fixed td.val{width:62%}
.ps-table td{padding:8pt 6pt;border-bottom:1px solid #f1f5f9;vertical-align:middle;line-height:1.35;white-space:nowrap}
.ps-table td.label{color:#374151;font-weight:700}
.ps-table td.val{text-align:left;color:#111;unicode-bidi:bidi-override}


/* === extra UI for modes & rates panel === */

.mode-choice {
  display:flex;
  flex-wrap:wrap;
  gap:8px 16px;
  align-items:center;
  margin-bottom:6px;
}
.mode-choice label {
  font-weight:400;
  cursor:pointer;
  font-size:14px;
}
.mode-choice input[type=radio] {
  margin-left:4px;
}

.mode-tabs {
  display:flex;
  gap:8px;
}
.mode-tab {
  flex:1;
  text-align:center;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid #e5e7eb;
  background:#f9fafb;
  font-size:14px;
  cursor:pointer;
}
.mode-tab.active {
  background:var(--accent);
  color:#fff;
  border-color:var(--accent);
}

/* פאנל ריביות */
#ratesHotspot {
  position:fixed;
  width:28px;
  height:28px;
  bottom:4px;
  right:4px;
  cursor:pointer;
  z-index:40;
}

.rates-panel {
  position:fixed;
  inset:0;
  background:rgba(15,23,42,0.45);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:50;
}
.rates-panel-inner {
  width:min(520px,90vw);
  max-height:80vh;
  background:#fff;
  border-radius:16px;
  box-shadow:var(--shadow);
  padding:16px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.rates-panel-header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:4px;
}
.rates-panel-header h2 {
  margin:0;
  font-size:16px;
}
#ratesClose {
  border:0;
  background:transparent;
  font-size:18px;
  cursor:pointer;
}
.rates-table-wrapper {
  border:1px solid #e5e7eb;
  border-radius:12px;
  max-height:240px;
  overflow:auto;
}
.rates-table-wrapper table {
  width:100%;
  border-collapse:collapse;
}
.rates-table-wrapper th,
.rates-table-wrapper td {
  padding:6px 8px;
  border-bottom:1px solid #f1f5f9;
  font-size:13px;
  text-align:right;
}
.rates-panel-actions {
  display:flex;
  gap:8px;
  margin-top:6px;
}
.rates-panel-actions button {
  flex:1;
  padding:8px 10px;
  border-radius:999px;
  border:0;
  font-weight:600;
  cursor:pointer;
}
#ratesSave {
  background:var(--accent);
  color:#fff;
}
#ratesReset {
  background:#f9fafb;
  color:#111;
}
.rates-hint {
  font-size:11px;
  color:var(--muted);
  margin:0;
  margin-top:4px;
}
