/* Prepaid credit packages (Silver / Gold / Platinum / Diamond).
   Used on the personal home page and the pricing page; works LTR and RTL (logical properties only). */

.credit { overflow: hidden; isolation: isolate; }
.credit::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 50% at 82% 30%, rgba(58, 155, 255, .22), transparent 70%),
    radial-gradient(35% 45% at 12% 85%, rgba(33, 82, 190, .28), transparent 70%);
}

.credit__grid {
  margin-top: clamp(40px, 5vw, 60px);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
  align-items: stretch;
}

.tier {
  --metal: linear-gradient(135deg, #F4F6FA 0%, #C3CAD6 45%, #8D96A6 100%);
  position: relative;
  display: flex; flex-direction: column; gap: 18px;
  padding: 26px 24px 24px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .09);
  transition: transform .35s var(--ease), border-color .25s, background-color .25s;
}
.tier::before {
  content: ""; position: absolute; inset-inline: 24px; top: -1px; height: 2px; border-radius: 2px;
  background: var(--metal); opacity: .9;
}
.tier:hover { transform: translateY(-4px); border-color: rgba(124, 180, 255, .28); background: rgba(255, 255, 255, .055); }

.tier--gold     { --metal: linear-gradient(135deg, #FFF0C2 0%, #E8B954 45%, #A8721A 100%); }
.tier--platinum { --metal: linear-gradient(135deg, #F3F1FA 0%, #CBC5E0 45%, #8A82AC 100%); }
.tier--diamond  { --metal: linear-gradient(135deg, #E8F5FF 0%, #7CC4FF 40%, #2152BE 100%); }

.tier__head { display: flex; align-items: center; gap: 10px; min-height: 28px; }
.tier__gem {
  width: 22px; height: 22px; flex: none; border-radius: 50%;
  background: var(--metal);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .8), inset 0 -2px 3px rgba(0, 0, 0, .25), 0 4px 10px -4px rgba(0, 0, 0, .6);
}
.tier__name { font-size: 13px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: #fff; }
.tier__bonus {
  margin-inline-start: auto;
  display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px;
  background: rgba(58, 155, 255, .16); color: #8CC8FF;
  font-size: 13px; font-weight: 600; white-space: nowrap; direction: ltr; unicode-bidi: isolate;
}

.tier__row { display: grid; gap: 2px; }
.tier__label { font-size: 13px; color: var(--s-muted); }
.tier__pay { font-size: 20px; font-weight: 500; letter-spacing: -.01em; color: rgba(255, 255, 255, .86); }
.tier__get {
  font-size: clamp(34px, 3.1vw, 44px); line-height: 1.05; font-weight: 600; letter-spacing: -.035em; color: #fff;
  white-space: nowrap;
}
.tier__cur { font-size: .5em; font-weight: 500; letter-spacing: 0; color: rgba(255, 255, 255, .7); }

/* Paid part vs. bonus part of the credit */
.tier__bar {
  height: 6px; border-radius: 99px; overflow: hidden;
  background: rgba(255, 255, 255, .12);
  display: flex;
}
.tier__bar span { width: var(--paid); border-inline-end: 2px solid var(--navy-950); }
.tier__bar::after { content: ""; flex: 1; background: var(--metal); }
.tier__extra { font-size: 14px; font-weight: 500; color: #8CC8FF; }

.tier .btn { margin-top: auto; }

/* Diamond: best value */
.tier--best {
  background: linear-gradient(165deg, rgba(58, 155, 255, .20) 0%, rgba(33, 82, 190, .10) 55%, rgba(255, 255, 255, .03) 100%);
  border-color: rgba(124, 196, 255, .42);
  box-shadow: 0 30px 70px -30px rgba(58, 155, 255, .55);
}
.tier--best:hover { border-color: rgba(124, 196, 255, .65); background: linear-gradient(165deg, rgba(58, 155, 255, .26) 0%, rgba(33, 82, 190, .14) 55%, rgba(255, 255, 255, .04) 100%); }
.tier__ribbon {
  position: absolute; top: -13px; inset-inline-end: 20px;
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: 999px;
  background: linear-gradient(92deg, #3A9BFF 0%, #2152BE 100%); color: #fff;
  font-size: 12px; font-weight: 600; letter-spacing: .03em;
  box-shadow: 0 8px 18px -8px rgba(58, 155, 255, .9);
}
.tier__ribbon .icon { width: 14px; height: 14px; stroke-width: 2.2; }
.tier--best .tier__bonus { background: #fff; color: var(--brand); }

.credit__foot {
  margin-top: 28px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px;
}
.credit__perks { display: flex; flex-wrap: wrap; gap: 12px 28px; color: rgba(255, 255, 255, .86); font-size: 15px; }
.credit__perks li { align-items: center; }
.credit__fine { font-size: 13px; color: var(--s-muted); }

/* Pricing page hero chip that points to the packages */
.anchor-chips a.chip-credit {
  background: var(--ink); border-color: var(--ink); color: #fff;
}
.anchor-chips a.chip-credit .icon { color: #7CC4FF; }
.anchor-chips a.chip-credit:hover { background: #1C2436; color: #fff; }

@media (max-width: 1140px) {
  .credit__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
}
@media (max-width: 600px) {
  .credit__grid { grid-template-columns: minmax(0, 1fr); }
  /* compact cards: "you pay" and "you get" side by side */
  .tier { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px 24px; padding: 22px 20px 20px; }
  .tier > * { grid-column: 1 / -1; }
  .tier > .tier__row { grid-column: auto; align-self: end; }
  .tier__get { font-size: 34px; }
  .tier .btn { margin-top: 4px; }
  .credit__foot { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .tier, .tier:hover { transition: none; transform: none; }
}

/* Request form (assets/js/credit.js) */
.credit-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 22px; }
.credit-pick__opt { display: grid; gap: 2px; justify-items: start; text-align: start; padding: 12px 14px; height: auto; }
.credit-pick__opt small { font-size: 12.5px; }
.credit-modal__error { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: #FFF1F2; color: #C1121F; font-size: 14px; }
.credit-modal__wa { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.credit-modal__wa:hover { color: var(--brand); }
.credit-modal__wa .icon { width: 18px; height: 18px; color: #1DA851; }
.credit-modal__done { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
[dir="rtl"] .tier .btn__arrow, [dir="rtl"] .credit-modal .btn__arrow { transform: scaleX(-1); }
@media (max-width: 600px) {
  .credit-pick { grid-template-columns: minmax(0, 1fr); }
}

/* Home hero: compact card under the main buttons that jumps to the packages */
.hero-credit {
  margin-top: 22px; max-width: 640px;
  display: flex; align-items: center; gap: 16px;
  padding-block: 14px; padding-inline: 18px 16px;
  border-radius: var(--r-md);
  background: linear-gradient(120deg, var(--navy-900) 0%, #10224A 100%);
  color: #fff; text-decoration: none;
  box-shadow: 0 18px 40px -22px rgba(33, 82, 190, .75);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.hero-credit:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 22px 46px -22px rgba(58, 155, 255, .85); }
.hero-credit__gems { display: flex; flex: none; }
.hero-credit__gems i {
  width: 22px; height: 22px; border-radius: 50%; background: var(--metal);
  border: 2px solid var(--navy-900);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .8), inset 0 -2px 3px rgba(0, 0, 0, .25);
}
.hero-credit__gems i + i { margin-inline-start: -8px; }
.hero-credit__gems .tier--silver { --metal: linear-gradient(135deg, #F4F6FA 0%, #C3CAD6 45%, #8D96A6 100%); }
.hero-credit__body { display: grid; gap: 3px; min-width: 0; }
.hero-credit__body b { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.hero-credit__new {
  display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px;
  background: linear-gradient(92deg, #3A9BFF 0%, #2152BE 100%);
  font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}
.hero-credit__text { font-size: 13.5px; color: rgba(222, 230, 244, .78); }
.hero-credit__go {
  margin-inline-start: auto; flex: none;
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13.5px; font-weight: 600; color: #8CC8FF; white-space: nowrap;
}
.hero-credit__go .icon { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.hero-credit:hover .hero-credit__go .icon { transform: translateY(2px); }
@media (max-width: 600px) {
  .hero-credit { gap: 12px; padding-inline: 16px 14px; }
  .hero-credit__gems { display: none; }
  .hero-credit__go { font-size: 0; gap: 0; }
  .hero-credit__go .icon { width: 20px; height: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-credit, .hero-credit:hover { transition: none; transform: none; }
}
