/* AgendaOS — flujo de reserva */

.booking-page { background: var(--cream); }
.bk { position: relative; min-height: calc(100vh - 78px); padding: 40px 0 120px; overflow: hidden; background: linear-gradient(180deg, var(--blush), var(--cream) 420px); }
.bk-wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.bk-head h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 22px; }
.bk-head > * { animation: rise .7s var(--ease) both; }
.bk-head > :nth-child(2) { animation-delay: .06s; }
.bk-head > :nth-child(3) { animation-delay: .12s; }

/* Progreso */
.bk-progress { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 30px; counter-reset: p; }
.bk-progress li { flex: 1; display: flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--muted); padding-top: 12px; position: relative; }
.bk-progress li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; border-radius: 4px; background: var(--brand-100); overflow: hidden; }
.bk-progress li::after { content: ""; position: absolute; top: 0; left: 0; height: 4px; width: 0; border-radius: 4px; background: var(--brand); transition: width .6s var(--ease); }
.bk-progress li.is-done::after, .bk-progress li.is-current::after { width: 100%; }
.bk-progress li.is-current { color: var(--ink); font-weight: 500; }
.bk-progress li.is-skipped { display: none; }
.bk-progress span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; background: var(--brand-50); color: var(--brand-700); flex: none; transition: background .3s, color .3s; }
.bk-progress li.is-done span, .bk-progress li.is-current span { background: var(--brand); color: #fff; }

/* Pasos */
.bk-step { display: none; }
.bk-step.is-active { display: block; animation: step-in .5s var(--ease) both; }
.bk-step.is-active.from-back { animation-name: step-back; }
@keyframes step-in { from { opacity: 0; transform: translateX(36px); } to { opacity: 1; transform: none; } }
@keyframes step-back { from { opacity: 0; transform: translateX(-36px); } to { opacity: 1; transform: none; } }
.bk-step-head { margin-bottom: 20px; }
.bk-step-head h2 { font-size: 2rem; margin-bottom: 6px; }
.bk-sub { color: var(--ink-2); font-weight: 300; margin: 0; }
.bk-back { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--muted); font: inherit; font-size: .9rem; cursor: pointer; padding: 4px 0; margin-bottom: 8px; transition: color .2s, gap .2s; }
.bk-back:hover { color: var(--ink); gap: 10px; }

.bk-search { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 0 18px; margin-top: 14px; box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s; }
.bk-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-50); }
.bk-search .icon { color: var(--brand-600); }
.bk-search input { flex: 1; border: 0; outline: 0; background: transparent; padding: 14px 0; font: inherit; min-width: 0; }

.bk-staff-filter { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 16px; background: #fff; margin-bottom: 14px; box-shadow: var(--shadow-sm); font-size: .92rem; animation: rise .4s var(--ease) both; }
.bk-staff-filter img, .bk-staff-filter .av { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; }
.bk-staff-filter button { margin-left: auto; border: 0; background: none; color: var(--brand-700); font: inherit; font-size: .88rem; text-decoration: underline; cursor: pointer; }

.bk-cats { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 14px; scrollbar-width: none; }
.bk-cats::-webkit-scrollbar { display: none; }
.bk-cats button { flex: none; border: 1px solid var(--line); background: #fff; color: var(--ink-2); padding: 8px 16px; border-radius: 99px; font: 400 .9rem/1.2 var(--sans); cursor: pointer; transition: all .2s; }
.bk-cats button:hover { border-color: var(--brand-300); }
.bk-cats button[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.bk-services { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.svc-opt {
  position: relative; display: flex; align-items: center; gap: 14px; text-align: left; width: 100%;
  padding: 12px 14px 12px 12px; border-radius: 18px; border: 1.5px solid transparent; background: #fff; cursor: pointer;
  font: inherit; color: inherit; box-shadow: var(--shadow-sm); transition: border-color .2s, transform .25s var(--ease), box-shadow .25s;
  animation: rise .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 30ms);
}
.svc-opt:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.svc-opt.is-selected { border-color: var(--brand); background: var(--brand-50); }
.svc-opt img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; flex: none; }
.svc-opt b { display: block; font-weight: 500; font-size: 1rem; line-height: 1.25; }
.svc-opt small { color: var(--muted); font-size: .84rem; }
.svc-opt .svc-price { margin-left: auto; font: 500 1rem/1.1 var(--sans); white-space: nowrap; text-align: right; }
.svc-opt .svc-price small { display: block; font: 400 .7rem/1 var(--sans); color: var(--muted); }
.svc-opt .tick { position: absolute; top: -7px; right: -7px; width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; transform: scale(0); transition: transform .35s var(--spring); }
.svc-opt .tick .icon { width: 14px; height: 14px; stroke-width: 3; }
.svc-opt.is-selected .tick { transform: scale(1); }
.bk-empty { padding: 30px; text-align: center; color: var(--muted); background: #fff; border-radius: 18px; grid-column: 1 / -1; }

/* Especialistas */
.bk-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.person {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 22px 16px 20px;
  border-radius: 22px; border: 1.5px solid transparent; background: #fff; cursor: pointer; font: inherit; color: inherit;
  box-shadow: var(--shadow-sm); transition: border-color .2s, transform .3s var(--ease), box-shadow .3s; animation: rise .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms);
}
.person:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.person.is-selected { border-color: var(--brand); background: var(--brand-50); }
.person img, .person .av { width: 86px; height: 86px; border-radius: 50%; object-fit: cover; margin-bottom: 10px; box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--brand-100); transition: transform .4s var(--spring); }
.person:hover img, .person:hover .av { transform: scale(1.06) rotate(-3deg); }
.av { display: grid; place-items: center; color: #fff; font: italic 600 1.6rem/1 var(--display); background: var(--brand); }
.person-any .av { background: linear-gradient(135deg, var(--brand-300), var(--brand-600)); }
.person-any .av .icon { width: 34px; height: 34px; }
.person b { font-weight: 500; }
.person small { color: var(--muted); font-size: .84rem; }
.person .badge { position: absolute; top: 12px; left: 12px; font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; background: var(--ok); color: #fff; padding: 3px 8px; border-radius: 99px; }

/* Sugerencias */
.bk-suggest { background: #fff; border-radius: 24px; padding: 22px; box-shadow: var(--shadow-sm); margin-bottom: 22px; position: relative; overflow: hidden; }
.bk-suggest::before { content: ""; position: absolute; width: 240px; height: 240px; border-radius: 50%; background: var(--brand-50); right: -80px; top: -110px; }
.bk-suggest-head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.bk-suggest h3 { display: flex; align-items: center; gap: 8px; font-size: 1.5rem; margin: 0; }
.bk-suggest h3 .icon { color: var(--brand); animation: twinkle 2.4s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.2) rotate(15deg); } }
.seg { display: flex; gap: 4px; background: var(--cream); padding: 4px; border-radius: 99px; flex-wrap: wrap; }
.seg button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; padding: 7px 12px; border-radius: 99px; font: 400 .84rem/1 var(--sans); color: var(--ink-2); cursor: pointer; transition: background .2s, color .2s; }
.seg button .icon { width: 15px; height: 15px; }
.seg button[aria-checked="true"] { background: var(--ink); color: #fff; }
.bk-sugs { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; min-height: 110px; }
.sug {
  position: relative; text-align: left; border: 1.5px solid var(--line); background: var(--cream); border-radius: 18px; padding: 14px 16px; cursor: pointer;
  font: inherit; color: inherit; transition: border-color .2s, transform .25s var(--ease), background .2s, box-shadow .25s; animation: rise .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms);
}
.sug:hover { border-color: var(--brand-300); transform: translateY(-3px); box-shadow: var(--shadow-sm); background: #fff; }
.sug.is-selected { border-color: var(--brand); background: var(--brand-50); }
.sug .tag { display: inline-flex; align-items: center; gap: 5px; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-700); font-weight: 600; margin-bottom: 6px; }
.sug .tag::before { content: "✦"; color: var(--brand); }
.sug:first-child .tag { color: var(--ok); }
.sug:first-child .tag::before { content: "●"; color: var(--ok); }
.sug b { display: block; font: 500 1.35rem/1.15 var(--sans); letter-spacing: -.02em; margin-bottom: 2px; }
.sug .sug-day { display: block; font-size: .9rem; color: var(--ink-2); }
.sug small { display: block; color: var(--muted); font-size: .78rem; margin-top: 6px; line-height: 1.3; }
.skeleton { border-radius: 18px; background: linear-gradient(90deg, var(--blush), #fff, var(--blush)); background-size: 200% 100%; animation: shimmer 1.2s infinite; min-height: 100px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Calendario */
.bk-cal { background: #fff; border-radius: 24px; padding: 22px; box-shadow: var(--shadow-sm); }
.bk-cal-head { display: flex; align-items: center; justify-content: space-between; }
.bk-cal-head h3 { font-size: 1.4rem; margin: 0; }
.bk-cal-nav { display: flex; gap: 6px; }
.bk-cal-nav button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; display: grid; place-items: center; transition: background .2s, border-color .2s; }
.bk-cal-nav button:hover { border-color: var(--ink); }
.bk-month { color: var(--muted); font-size: .88rem; margin: 4px 0 12px; text-transform: capitalize; }
.bk-days { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 10px; scrollbar-width: none; scroll-behavior: smooth; }
.bk-days::-webkit-scrollbar { display: none; }
.day {
  flex: none; scroll-snap-align: start; width: 68px; padding: 10px 0 9px; border-radius: 18px; border: 1.5px solid var(--line); background: #fff; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 2px; font: inherit; color: inherit; transition: border-color .2s, background .2s, transform .25s var(--ease);
  animation: rise .4s var(--ease) both; animation-delay: calc(var(--i, 0) * 18ms);
}
.day small { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.day b { font: 500 1.3rem/1.2 var(--sans); }
.day i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); font-style: normal; }
.day.is-few i { background: var(--gold); }
.day:hover:not([disabled]) { border-color: var(--brand-300); transform: translateY(-2px); }
.day.is-selected { background: var(--ink); border-color: var(--ink); color: #fff; }
.day.is-selected small { color: rgba(255, 255, 255, .7); }
.day[disabled] { cursor: not-allowed; opacity: .4; }
.day[disabled] i { background: transparent; }
.bk-slots { min-height: 60px; margin-top: 8px; }
.slot-group { margin-top: 14px; }
.slot-group h4 { font: 500 .8rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.slot-group h4::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.slot {
  border: 1.5px solid var(--line); background: #fff; border-radius: 14px; padding: 11px 0; cursor: pointer; font: 500 .95rem/1 var(--sans); color: var(--ink);
  transition: border-color .2s, background .2s, color .2s, transform .2s; animation: rise .35s var(--ease) both; animation-delay: calc(var(--i, 0) * 22ms);
}
.slot:hover { border-color: var(--brand); color: var(--brand-700); transform: translateY(-2px); }
.slot.is-selected { background: var(--brand); border-color: var(--brand); color: #fff; }
.bk-slots .bk-empty { background: var(--cream); margin-top: 12px; }

/* Formulario */
.bk-form { background: #fff; border-radius: 24px; padding: 26px; box-shadow: var(--shadow-sm); display: grid; gap: 16px; }
.field label { display: block; font-size: .88rem; font-weight: 500; margin-bottom: 6px; }
.field label span { color: var(--muted); font-weight: 400; }
.field input, .field textarea {
  width: 100%; border: 1.5px solid var(--line); background: var(--cream); border-radius: 14px; padding: 13px 16px; font: inherit; color: var(--ink);
  outline: 0; transition: border-color .2s, box-shadow .2s, background .2s; resize: vertical;
}
.field input:focus, .field textarea:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px var(--brand-50); }
.field.has-error input { border-color: var(--danger); animation: shake .4s; }
.field .err { color: var(--danger); font-size: .82rem; margin-top: 4px; }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.bk-policy { display: flex; gap: 10px; font-size: .86rem; color: var(--ink-2); background: var(--blush); padding: 12px 14px; border-radius: 14px; margin: 0; }
.bk-policy .icon { color: var(--brand); margin-top: 2px; }
.bk-error { background: #fbecea; color: #8c2a24; padding: 12px 14px; border-radius: 14px; font-size: .92rem; animation: shake .4s; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading .icon { animation: spin .8s linear infinite; }

/* Resumen */
.bk-summary { position: sticky; top: 96px; animation: rise .8s .2s var(--ease) both; }
.sum-card { background: #fff; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); }
.sum-img { height: 150px; background: linear-gradient(135deg, var(--brand-100), var(--sand)); position: relative; overflow: hidden; }
.sum-img img { width: 100%; height: 100%; object-fit: cover; animation: fade .6s both; }
.sum-body { padding: 20px 22px 22px; }
.sum-label { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brand-600); margin-bottom: 4px; }
.sum-body h3 { font-size: 1.6rem; }
.sum-rows { list-style: none; padding: 0; margin: 0 0 16px; }
.sum-rows li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .94rem; color: var(--ink-2); }
.sum-rows li .icon { color: var(--brand-600); }
.sum-rows li.is-set span { color: var(--ink); animation: fade .4s both; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; }
.sum-total span { color: var(--muted); font-size: .9rem; }
.sum-total b { font: 500 1.45rem/1 var(--sans); letter-spacing: -.02em; }
.sum-help { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; font-size: .9rem; color: var(--brand-700); text-decoration: none; }
.sum-help:hover { text-decoration: underline; }

/* Barra móvil */
.bk-bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border-radius: 20px; background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); animation: rise .4s var(--ease) both; }
.bk-bar[hidden] { display: none; }
.bk-bar-img { width: 44px; height: 44px; border-radius: 12px; overflow: hidden; flex: none; background: var(--brand); }
.bk-bar-img img { width: 100%; height: 100%; object-fit: cover; }
.bk-bar-text { min-width: 0; flex: 1; }
.bk-bar-text b { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-bar-text small { display: block; font-size: .8rem; opacity: .7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-bar-price { font: 500 1.1rem/1 var(--sans); color: var(--brand-300); }

@media (min-width: 981px) { .bk-bar { display: none !important; } }
@media (max-width: 980px) {
  .bk-wrap { grid-template-columns: minmax(0, 1fr); }
  .bk-summary { display: none; }
  .booking-page .asst-fab { bottom: 86px; }
}
@media (max-width: 640px) {
  .bk { padding-top: 24px; }
  .bk-progress li { font-size: 0; gap: 0; }
  .bk-progress li.is-current { font-size: .8rem; gap: 6px; }
  .bk-services { grid-template-columns: 1fr; }
  .bk-people { grid-template-columns: 1fr 1fr; }
  .person { padding: 18px 10px; }
  .person img, .person .av { width: 70px; height: 70px; }
  .bk-suggest, .bk-cal, .bk-form { padding: 18px; border-radius: 20px; }
  .bk-sugs { grid-template-columns: 1fr 1fr; }
  .sug { padding: 12px; }
  .sug b { font-size: 1.25rem; }
  .seg { width: 100%; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; border-radius: 16px; }
  .seg button { justify-content: center; padding: 8px 4px; font-size: .78rem; border-radius: 12px; text-align: center; }
  .seg button .icon { display: none; }
  .slot-grid { grid-template-columns: repeat(3, 1fr); }
}

/* =========================================================
   Paso 5: pago (opcional)
   ========================================================= */
.pay-reserved { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 20px; background: #eaf6ef; color: #245c43; margin-bottom: 20px; animation: rise .5s var(--ease) both; }
.pay-reserved b { display: block; font-weight: 500; color: #1d4a34; }
.pay-reserved span:not(.pay-reserved-icon) { font-size: .9rem; }
.pay-reserved-icon { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #fff; flex: none; animation: pop .5s .2s var(--spring) both; }
.pay-reserved-icon .icon { stroke-width: 2.6; }
.pay-methods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.pay-method {
  display: flex; align-items: center; gap: 12px; text-align: left; padding: 14px; border-radius: 18px; border: 1.5px solid var(--line); background: #fff;
  font: inherit; color: inherit; cursor: pointer; text-decoration: none; box-shadow: var(--shadow-sm); transition: border-color .2s, transform .25s var(--ease), background .2s;
  animation: rise .45s var(--ease) both;
}
.pay-method:nth-child(2) { animation-delay: .06s; }
.pay-method:nth-child(3) { animation-delay: .12s; }
.pay-method:hover { transform: translateY(-2px); border-color: var(--brand-300); }
.pay-method[aria-selected="true"] { border-color: var(--brand); background: var(--brand-50); }
.pay-method b { display: block; font-weight: 500; }
.pay-method small { display: block; color: var(--muted); font-size: .78rem; line-height: 1.3; }
.pm-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-600); flex: none; transition: background .2s, color .2s; }
.pay-method[aria-selected="true"] .pm-icon { background: var(--brand); color: #fff; }
.pay-panel { background: #fff; border-radius: 24px; padding: 24px; box-shadow: var(--shadow-sm); }
.pay-panel.is-entering { animation: step-in .45s var(--ease) both; }
.pay-panel .bk-form { box-shadow: none; padding: 0; }
.secure-note { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: .82rem; color: var(--muted); margin: 14px 0 0; text-align: center; }
.test-cards { margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: var(--cream); font-size: .86rem; }
.test-cards summary { cursor: pointer; font-weight: 500; color: var(--brand-700); }
.test-cards p { margin: 8px 0; color: var(--ink-2); }
.test-cards table { width: 100%; border-collapse: collapse; }
.test-cards td { padding: 5px 0; border-top: 1px dashed var(--line); }
.test-cards code { cursor: pointer; padding: 2px 6px; border-radius: 6px; background: #fff; border: 1px solid var(--line); }
.test-cards code:hover { border-color: var(--brand); }
.banks { display: grid; gap: 10px; }
.bank { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--cream); border: 1px solid var(--line); animation: rise .4s var(--ease) both; animation-delay: calc(var(--i) * 70ms); flex-wrap: wrap; }
.bank b { display: block; font-weight: 500; }
.bank span { color: var(--muted); font-size: .86rem; }
.bank-copy { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 8px 12px; cursor: pointer; font: inherit; color: var(--ink); transition: border-color .2s; }
.bank-copy code { font: 500 .95rem/1 var(--sans); letter-spacing: .04em; }
.bank-copy:hover { border-color: var(--brand); }
.bank-copy.is-copied { border-color: var(--ok); color: var(--ok); }
.bank-copy.is-copied .icon { animation: pop .4s var(--spring); }
.dropzone { position: relative; display: grid; place-items: center; gap: 4px; padding: 26px 16px; border: 2px dashed var(--brand-300); border-radius: 18px; background: var(--brand-50); text-align: center; cursor: pointer; transition: background .2s, border-color .2s; }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone small { color: var(--muted); }
.dz-icon { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--brand-600); transform: rotate(180deg); }
.dropzone.is-over, .dropzone:hover { background: var(--brand-100); border-color: var(--brand); }
.dropzone.has-file { border-style: solid; border-color: var(--ok); background: #eaf6ef; }
.dropzone.has-file b { color: var(--ok); }

/* Animación de procesamiento del pago (igual que AsesoriasVisas) */
.pay-overlay { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; background: rgba(42, 31, 29, .7); backdrop-filter: blur(6px); animation: fade .25s ease both; }
.pay-modal { width: 100%; max-width: 380px; background: #fff; border-radius: 26px; padding: 28px 26px 24px; text-align: center; box-shadow: var(--shadow-lg); animation: rise .45s var(--ease) both; }
.pay-anim { position: relative; width: 150px; height: 96px; margin: 0 auto 20px; }
.pay-card { position: absolute; inset: 0; border-radius: 14px; background: linear-gradient(135deg, var(--ink), var(--brand-600)); box-shadow: 0 16px 28px -14px rgba(42, 31, 29, .8); overflow: hidden; animation: card-float 1.6s ease-in-out infinite; }
.pay-card::before { content: ""; position: absolute; left: 14px; top: 16px; width: 28px; height: 20px; border-radius: 4px; background: linear-gradient(135deg, #e6c77f, #b98b37); }
.pay-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%); transform: translateX(-100%); animation: card-scan 1.3s ease-in-out infinite; }
.pay-card i { position: absolute; left: 14px; right: 14px; bottom: 16px; height: 6px; border-radius: 4px; background: rgba(255, 255, 255, .35); }
@keyframes card-float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-6px) rotate(1deg); } }
@keyframes card-scan { to { transform: translateX(100%); } }
.pay-done { position: absolute; inset: -8px 21px; margin: auto; width: 96px; height: 96px; border-radius: 50%; background: var(--ok); display: grid; place-items: center; transform: scale(0); }
.pay-done svg { width: 50px; height: 50px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; }
.pay-overlay.is-done .pay-card { animation: none; opacity: 0; transform: scale(.7); transition: opacity .3s, transform .3s; }
.pay-overlay.is-done .pay-done { animation: pop .5s var(--spring) forwards; }
.pay-overlay.is-done .pay-done svg { animation: draw .5s .3s ease forwards; }
.pay-modal h3 { font-size: 1.6rem; margin: 0 0 14px; }
.pay-steps { list-style: none; margin: 0; padding: 0; text-align: left; display: grid; gap: 10px; }
.pay-steps li { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: #b3a7a3; transition: color .3s; }
.pay-steps li::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%; border: 2px solid var(--line); box-sizing: border-box; transition: background .3s, border-color .3s; }
.pay-steps li.is-active { color: var(--ink); font-weight: 500; }
.pay-steps li.is-active::before { border-color: var(--brand); border-top-color: transparent; animation: spin .8s linear infinite; }
.pay-steps li.is-done { color: var(--ok); }
.pay-steps li.is-done::before { background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/11px no-repeat; border-color: var(--ok); }
.pay-overlay.is-error .pay-card { animation: shake .45s ease; }
@media (max-width: 640px) {
  .pay-methods { grid-template-columns: 1fr; }
  .pay-method { padding: 12px; }
  .pay-panel { padding: 18px; border-radius: 20px; }
}
