/* Clouders Abonare. Banda veche (cloudersfront) rămâne în pagină, ascunsă, cât timp modulul e pornit. */
html.cab-on .cf-news { display: none !important; }
html.cab-top-off .cab--top { display: none; }

.cab, .cab * { box-sizing: border-box; }
.cab { position: relative; font-family: "Open Sans", Arial, Helvetica, sans-serif; color: #fff; overflow: hidden; }
.cab p { margin: 0; }
.cab-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cab.is-gone { display: none; }

/* sus: card închis, în continuarea bannerului */
.cab--top { margin: 18px 0 22px; border-radius: 16px; background: #111827; box-shadow: 0 8px 24px rgba(17, 24, 39, .18); }
.cab--top::before { content: ""; position: absolute; left: -90px; top: -130px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(220, 38, 38, .38), rgba(220, 38, 38, 0) 68%); pointer-events: none; }
.cab--top .cab-in { position: relative; display: flex; align-items: center; gap: 32px; padding: 26px 40px 26px 30px; }

/* jos: bandă roșie pe toată lățimea */
.cab--bottom { display: none; background: linear-gradient(120deg, #7f1d1d 0%, #991b1b 50%, #b91c1c 100%); }
html.cab-on .cab--bottom.is-placed { display: block; }
.cab--bottom .cab-in { display: flex; align-items: center; gap: 36px; padding-top: 30px; padding-bottom: 30px; }

.cab-body { flex: 1 1 auto; min-width: 0; }
.cab-eyebrow { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fca5a5; margin-bottom: 4px !important; }
.cab--bottom .cab-eyebrow { color: #fee2e2; }
.cab-title { margin: 0 0 6px; padding: 0; border: 0; background: none; font: 800 24px/1.22 "Open Sans", Arial, sans-serif; letter-spacing: -.01em; color: #fff; text-transform: none; }
.cab-sub { max-width: 640px; font-size: 14px; line-height: 1.5; color: #e5e7eb; }
.cab--bottom .cab-sub { color: #fff; }

/* cuponul */
.cab-ticket-wrap { flex: 0 0 248px; width: 248px; min-width: 0; perspective: 700px; }
.cab-ticket { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 8px; padding: 18px 26px; min-height: 148px; justify-content: center; border-radius: 14px; background: linear-gradient(135deg, #dc2626, #b91c1c); color: #fff; transition: transform .18s ease-out;
  -webkit-mask: radial-gradient(circle 11px at 0 50%, transparent 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 11px at 100% 50%, transparent 97%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 11px at 0 50%, transparent 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 11px at 100% 50%, transparent 97%, #000) right / 51% 100% no-repeat; }
.cab--bottom .cab-ticket { background: #fff; color: #991b1b; }
.cab-pct { font: 800 50px/1 "Open Sans", Arial, sans-serif; letter-spacing: -.03em; }
.cab-tk-txt { display: flex; flex-direction: column; gap: 6px; min-width: 0; max-width: 100%; }
.cab-tk-l { font-size: 13px; line-height: 1.3; font-weight: 600; }
.cab-tk-mail { display: block; padding-top: 8px; border-top: 1px dashed rgba(255, 255, 255, .55); font-size: 12.5px; line-height: 1.3; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cab--bottom .cab-tk-mail { border-top-color: rgba(153, 27, 27, .4); }
.cab-ticket.is-ready .cab-tk-mail::before { content: "\2713\00a0"; font-weight: 800; }
.cab-ticket::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .35), rgba(255, 255, 255, 0)); pointer-events: none; }
.cab-ticket.is-shine::after { animation: cab-shine 1.1s ease-out .2s 1; }
@keyframes cab-shine { to { left: 120%; } }
.cab-stamp { position: absolute; right: 16px; top: 16px; padding: 3px 8px; border: 2px solid currentColor; border-radius: 6px; font-size: 13px; line-height: 16px; font-weight: 800; letter-spacing: .08em; transform: rotate(-10deg) scale(2.2); opacity: 0; }
.cab.is-done .cab-stamp { opacity: 1; transform: rotate(-10deg) scale(1); transition: transform .28s cubic-bezier(.2, 1.6, .4, 1), opacity .12s; }

/* formular */
.cab-form { margin: 14px 0 0; max-width: 560px; }
.cab-row { display: flex; gap: 6px; padding: 5px; border-radius: 14px; background: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); transition: box-shadow .15s; }
.cab-row:focus-within { box-shadow: 0 0 0 3px #fca5a5, 0 6px 18px rgba(0, 0, 0, .18); }
.cab input.cab-input { flex: 1 1 auto; min-width: 0; width: 100%; height: 46px; margin: 0; padding: 0 14px; border: 0; border-radius: 10px; outline: 0; background: transparent; box-shadow: none; color: #111827; font: 400 16px/46px "Open Sans", Arial, sans-serif; }
.cab input.cab-input::placeholder { color: #6b7280; opacity: 1; }
.cab-btn { position: relative; flex: 0 0 auto; height: 46px; padding: 0 22px; border: 0; border-radius: 10px; background: #dc2626; color: #fff; font: 700 15px/46px "Open Sans", Arial, sans-serif; white-space: nowrap; cursor: pointer; transition: background .15s, transform .1s; }
.cab--bottom .cab-btn { background: #111827; }
.cab-btn:hover { background: #b91c1c; }
.cab--bottom .cab-btn:hover { background: #000; }
.cab-btn:active { transform: scale(.97); }
.cab-btn:focus-visible { outline: 3px solid #fca5a5; outline-offset: 2px; }
.cab-spin { display: none; position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: cab-spin .7s linear infinite; }
.cab.is-busy .cab-btn-t { visibility: hidden; }
.cab.is-busy .cab-spin { display: block; }
@keyframes cab-spin { to { transform: rotate(360deg); } }

.cab-hint, .cab-err { margin-top: 8px !important; font-size: 13.5px; line-height: 1.4; color: #fff; }
.cab-hint[hidden], .cab-err[hidden] { display: none; }
.cab-err { padding: 7px 11px; border-radius: 8px; background: #fff; color: #991b1b; font-weight: 600; }
.cab-fix { padding: 0; border: 0; background: none; color: #fff; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.cab-deadline { margin-top: 10px !important; font-size: 13.5px; line-height: 1.4; font-weight: 700; color: #fff; }
.cab-note { margin-top: 4px !important; max-width: 640px; font-size: 12px; line-height: 1.45; color: #d1d5db; }
.cab--bottom .cab-note { color: #fff; }
.cab-note a { color: #fff !important; text-decoration: underline; }
.cab-note a:hover { color: #fff !important; text-decoration: none; }

/* după abonare */
.cab-ok { display: none; outline: 0; }
.cab.is-done .cab-ask { display: none; }
.cab.is-done .cab-ok { display: block; animation: cab-in .35s ease-out; }
@keyframes cab-in { from { opacity: 0; transform: translateY(8px); } }
.cab-ok-t { font: 800 24px/1.22 "Open Sans", Arial, sans-serif; color: #fff; margin-bottom: 6px !important; }
.cab-ok-p { max-width: 620px; font-size: 15px; line-height: 1.5; color: #fff; overflow-wrap: anywhere; }
.cab-ok-p b { font-weight: 700; }
.cab-cta { display: inline-block; margin-top: 14px; padding: 11px 22px; border-radius: 10px; background: #fff; color: #991b1b !important; font-size: 15px; line-height: 22px; font-weight: 700; text-decoration: none !important; transition: transform .12s; }
.cab-cta:hover { transform: translateY(-1px); }

.cab-x { position: absolute; z-index: 2; right: 8px; top: 8px; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: #d1d5db; cursor: pointer; }
.cab-x:hover { background: rgba(255, 255, 255, .12); color: #fff; }

.cab-conf { position: absolute; left: 0; right: 0; top: 0; height: 0; pointer-events: none; }
.cab-conf i { position: absolute; top: -12px; width: 8px; height: 13px; border-radius: 2px; animation: cab-fall 1.4s cubic-bezier(.3, .6, .5, 1) forwards; }
@keyframes cab-fall { to { transform: translate(var(--x), 300px) rotate(var(--r)); opacity: 0; } }

@media (max-width: 991px) {
  .cab-ticket-wrap { flex-basis: 210px; width: 210px; }
  .cab-pct { font-size: 42px; }
  .cab-title, .cab-ok-t { font-size: 21px; }
  .cab--top .cab-in { gap: 22px; padding: 22px 30px 22px 22px; }
}
@media (max-width: 767px) {
  .cab--top { margin: 12px 0 16px; }
  .cab--top .cab-in, .cab--bottom .cab-in { flex-direction: column; align-items: stretch; gap: 16px; }
  .cab--top .cab-in { padding: 18px 16px; }
  .cab--bottom .cab-in { padding-top: 24px; padding-bottom: 24px; }
  .cab-ticket-wrap { flex: none; width: auto; margin-right: 34px; }
  .cab--bottom .cab-ticket-wrap { margin-right: 0; }
  .cab-ticket { flex-direction: row; align-items: center; gap: 14px; min-height: 0; padding: 14px 22px; }
  .cab-pct { flex: 0 0 auto; font-size: 38px; }
  .cab-tk-l { font-size: 12.5px; }
  .cab-tk-mail { padding-top: 5px; }
  .cab-stamp { top: 10px; right: 20px; font-size: 11px; line-height: 13px; }
  .cab.is-done .cab-tk-l { visibility: hidden; }
  .cab-title, .cab-ok-t { font-size: 20px; }
  .cab-sub { font-size: 14px; }
  .cab-note { font-size: 12.5px; }
}
@media (max-width: 479px) {
  .cab-row { flex-direction: column; }
  .cab-btn { width: 100%; height: 48px; }
  .cab input.cab-input { height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .cab *, .cab *::after { animation: none !important; transition: none !important; }
}
