/* ============================================================
 *  billing.css — מודול מנוי ותשלום (scoped .bill-*)
 *  פלטה: indigo #4338CA · gold #C9A24B · cream #FBF8F2 · ink #2A2550
 *  משתמש במשתני העיצוב של האפליקציה כשקיימים, עם fallback.
 * ========================================================== */

.bill { direction: rtl; text-align: right; }

.bill-loading {
  padding: 22px 8px; text-align: center;
  color: var(--muted, #7a7597); font-size: 14.5px; font-weight: 600;
}

/* ---- כותרת + סטטוס ---- */
.bill-head {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px; margin-bottom: 16px;
}
.bill-plan { display: flex; align-items: center; gap: 10px; }
.bill-plan-name {
  font-family: 'Rubik', 'Heebo', sans-serif;
  font-size: 17px; font-weight: 800; color: var(--ink, #2A2550);
}
.bill-badge {
  font-size: 12px; font-weight: 800; padding: 4px 11px; border-radius: 999px;
  letter-spacing: -.01em; white-space: nowrap;
}
.bill-trial    { background: #FBF1D8; color: #8A6B14; }
.bill-active   { background: #E4F6EC; color: #1E7A48; }
.bill-due      { background: #FDECEC; color: #B23A3A; }
.bill-canceled { background: #EFEDF3; color: #6B6685; }
.bill-renew { font-size: 12.5px; color: var(--muted, #7a7597); font-weight: 600; }
.bill-renew b { color: var(--ink, #2A2550); }

/* ---- מחירים ---- */
.bill-prices {
  display: flex; align-items: stretch; gap: 0;
  background: linear-gradient(135deg, #FBF8F2 0%, #FFFFFF 100%);
  border: 1px solid var(--line, #EDE7DB);
  border-radius: 18px; padding: 18px 12px; margin-bottom: 20px;
}
.bill-price { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.bill-price-sep { width: 1px; background: var(--line, #EDE7DB); margin: 4px 0; }
.bill-price-val {
  font-family: 'Rubik', 'Heebo', sans-serif;
  font-size: 26px; font-weight: 800; color: var(--indigo, #4338CA); line-height: 1.1;
}
.bill-per { font-size: 13px; font-weight: 700; color: var(--muted, #7a7597); }
.bill-price-lbl { font-size: 12px; font-weight: 600; color: var(--muted, #7a7597); }
.bill-price-pre { font-size: 11px; font-weight: 600; letter-spacing: .01em; color: var(--muted, #7a7597); margin-bottom: 1px; }

/* ---- מתג "מי משלם" ---- */
.bill-sec-title {
  font-size: 13.5px; font-weight: 800; color: var(--ink, #2A2550);
  margin: 0 2px 10px;
}
.bill-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.bill-opt {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  padding: 13px 14px; border-radius: 15px; cursor: pointer; text-align: right;
  background: #fff; border: 1.5px solid var(--line, #EDE7DB);
  transition: border-color .16s, box-shadow .16s, background .16s;
  font-family: inherit;
}
.bill-opt:hover { border-color: #CFC7EF; }
.bill-opt.on {
  border-color: var(--indigo, #4338CA);
  background: #F5F3FE;
  box-shadow: 0 6px 18px -12px rgba(67, 56, 202, .55);
}
.bill-opt-t { font-size: 14px; font-weight: 800; color: var(--ink, #2A2550); }
.bill-opt.on .bill-opt-t { color: var(--indigo, #4338CA); }
.bill-opt-s { font-size: 11.5px; font-weight: 600; color: var(--muted, #7a7597); line-height: 1.35; }

/* ---- כפתור תשלום ---- */
.bill-pay {
  width: 100%; border: 0; cursor: pointer;
  background: var(--indigo, #4338CA); color: #fff;
  font-family: 'Rubik', 'Heebo', sans-serif; font-size: 16px; font-weight: 800;
  padding: 15px 20px; border-radius: 15px;
  box-shadow: 0 14px 26px -12px rgba(67, 56, 202, .7);
  transition: transform .12s, box-shadow .16s, opacity .16s;
}
.bill-pay:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 18px 30px -12px rgba(67, 56, 202, .78); }
.bill-pay:active:not(:disabled) { transform: translateY(0); }
.bill-pay:disabled { opacity: .6; cursor: default; }

.bill-note {
  margin: 12px 4px 0; text-align: center;
  font-size: 12px; font-weight: 600; color: var(--muted, #9a95ad); line-height: 1.55;
}

.bill-intro{margin:0 0 12px;text-align:center;font-size:.82rem;font-weight:800;color:var(--gold,#B4862B);background:var(--gold-soft,#FBF3DF);border-radius:999px;padding:7px 14px}

/* תגית מבצע השקה */
.bill-launch{background:linear-gradient(135deg,#FBF3DF,#F6E7C2);color:#8A6B14;border:1px solid rgba(180,134,43,.35)}

/* שורת סיום ניסיון */
.bill-trial-end{
  margin:-8px 2px 16px;text-align:center;
  font-size:12.5px;font-weight:600;color:var(--muted,#7a7597);
}
.bill-trial-end b{color:var(--ink,#2A2550);font-weight:800}
