/* =========================================
   HOUSE SHEGER — RESERVATION FLOW
   Centered card layout · extends styles.css tokens
   ========================================= */

.res-body { background: var(--bg); min-height: 100vh; }

/* --- NAV --- */
.res-nav {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(5,5,5,.9);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--line);
  padding: 18px 48px;
  z-index: 500;
}

.res-exit {
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .3s;
}
.res-exit:hover { color: var(--gold); }

@media(max-width: 768px) { .res-nav { padding: 16px 20px; } }

/* --- CENTERED CARD SHELL --- */
.res-main {
  display: flex;
  justify-content: center;
  padding: 56px 20px 100px;
  min-height: calc(100vh - 61px);
}

.res-shell {
  width: 100%;
  max-width: 620px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 44px 44px 48px;
  box-shadow: 0 40px 100px rgba(0,0,0,.55), 0 0 0 1px rgba(212,175,55,.04);
  position: relative;
  overflow: hidden;
}

.res-shell::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(212,175,55,.08), transparent 70%);
  pointer-events: none;
}

@media(max-width: 700px) {
  .res-main { padding: 28px 12px 60px; }
  .res-shell { padding: 32px 22px 36px; border-radius: 20px; }
}

/* --- PROGRESS RAIL --- */
.progress-rail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.pr-item { display: flex; align-items: center; gap: 7px; opacity: .35; transition: opacity .4s var(--ease-luxury); }
.pr-item.active, .pr-item.done { opacity: 1; }

.pr-num {
  font-family: var(--serif);
  font-size: 12px;
  color: var(--gold);
  border: 1px solid rgba(212,175,55,.3);
  width: 24px; height: 24px;
  border-radius: 50%;
  display: grid; place-items: center;
  flex-shrink: 0;
}

.pr-item.active .pr-num { background: var(--gold); color: #000; }
.pr-item.done .pr-num { background: transparent; border-color: var(--gold); }

.pr-label { font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.pr-item.active .pr-label { color: var(--ink); }

.pr-line { width: 20px; height: 1px; background: var(--line); margin: 0 6px; }

@media(max-width: 480px) { .pr-label { display: none; } .pr-line { width: 10px; margin: 0 3px; } }

/* --- TIMER BAR --- */
.timer-bar {
  background: rgba(255,255,255,.02);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 32px;
  overflow: hidden;
}

.timer-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  flex-wrap: wrap;
}

.timer-info { display: flex; align-items: baseline; gap: 9px; }
.timer-eyebrow { font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.timer-clock { font-family: var(--serif); font-size: 22px; color: var(--gold); font-variant-numeric: tabular-nums; }

.timer-extend {
  font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold);
  border: 1px solid rgba(212,175,55,.4); padding: 5px 10px; border-radius: 100px;
  transition: all .25s var(--ease-luxury); white-space: nowrap;
}
.timer-extend:hover:not(:disabled) { background: var(--gold); color: #000; }
.timer-extend:disabled { opacity: .35; color: var(--muted); border-color: var(--line); cursor: not-allowed; }

.timer-bar.warning .timer-clock { color: #e0654f; animation: timerPulse 1s infinite; }
@keyframes timerPulse { 0%,100% { opacity: 1; } 50% { opacity: .5; } }

.timer-barber {
  font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink);
  display: flex; align-items: center; gap: 7px;
}
.timer-barber::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 6px var(--gold); }

.timer-cancel {
  font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--line); padding: 7px 14px; border-radius: 100px; transition: all .3s;
}
.timer-cancel:hover { color: #e0654f; border-color: #e0654f; }

.timer-track { height: 2px; background: rgba(255,255,255,.06); }
.timer-fill { height: 100%; width: 100%; background: var(--gold); transform-origin: left; transition: transform 1s linear, background .3s; }
.timer-bar.warning .timer-fill { background: #e0654f; }

/* --- GENERIC STEP --- */
.res-step { }
.res-sub { color: var(--muted); font-size: 14px; line-height: 1.6; margin-bottom: 30px; }
.res-sub.centered { text-align: center; margin-left: auto; margin-right: auto; max-width: 380px; }
.time-note, .time-error { font-size: 14px; margin: 0 0 12px; line-height: 1.5; }
.time-note { color: var(--gold); }
.time-error { color: #ff8a8a; }
.section-label.centered { justify-content: center; }
.section-title { font-size: clamp(26px, 6vw, 38px); margin-bottom: 10px; }
.res-step > .res-sub { margin-top: -4px; }

.substep { animation: subFade .5s var(--ease-luxury); }
@keyframes subFade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

/* --- BARBER SELECT (vertical cards, fits the narrow shell) --- */
.barber-select-list { display: flex; flex-direction: column; gap: 14px; }

.bsc-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  cursor: pointer;
  transition: border-color .35s var(--ease-luxury), transform .35s var(--ease-luxury);
}
.bsc-card:hover { border-color: rgba(212,175,55,.35); transform: translateY(-2px); }

.bsc-media { width: 84px; height: 84px; border-radius: 12px; overflow: hidden; flex-shrink: 0; }
.bsc-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; filter: grayscale(15%); transition: transform .8s var(--ease-luxury); }
.bsc-card:hover .bsc-media img { transform: scale(1.08); filter: grayscale(0); }

.bsc-info { flex: 1; min-width: 0; }
.bsc-role { font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.bsc-name { font-family: var(--serif); font-size: 22px; color: var(--ink); margin-bottom: 2px; }
.bsc-spec { font-size: 11px; color: var(--muted); }

.bsc-arrow { font-size: 18px; color: var(--gold); flex-shrink: 0; transition: transform .3s; }
.bsc-card:hover .bsc-arrow { transform: translateX(4px); }

/* --- FIELD GROUP --- */
.field-group { margin-bottom: 24px; }
.field-group label { display: block; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 9px; }
.field-group input {
  width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--line);
  color: var(--ink); font-size: 17px; font-family: var(--sans); padding: 9px 2px; transition: border-color .3s;
}
.field-group input::placeholder { color: rgba(245,241,232,.25); }
.field-group input:focus { outline: none; border-color: var(--gold); }
.field-group .field-err { display: none; color: #e0654f; font-size: 11px; margin-top: 7px; }
.field-group.error input { border-color: #e0654f; }
.field-group.error .field-err { display: block; }

/* --- SERVICE SLIDER --- */
.service-slider { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 10px; }
.service-slider::-webkit-scrollbar { display: none; }

.svc-card {
  flex: 0 0 148px; scroll-snap-align: start;
  background: var(--glass); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 15px; cursor: pointer;
  transition: border-color .35s var(--ease-luxury), transform .35s var(--ease-luxury), background .35s;
}
.svc-card:hover { transform: translateY(-3px); }
.svc-card.selected { border-color: var(--gold); background: rgba(212,175,55,.06); box-shadow: 0 0 24px rgba(212,175,55,.15); }

.svc-name { font-family: var(--serif); font-size: 17px; color: var(--ink); line-height: 1.25; margin-bottom: 12px; min-height: 42px; }
.svc-price { font-size: 13px; color: var(--gold); font-weight: 500; }
.svc-check { float: right; opacity: 0; color: var(--gold); transition: opacity .3s; }
.svc-card.selected .svc-check { opacity: 1; }

.service-total {
  margin-top: 4px; margin-bottom: 22px;
  font-size: 12px; color: var(--gold); letter-spacing: .04em;
  padding: 10px 16px; border: 1px solid rgba(212,175,55,.3); border-radius: 100px;
  display: inline-block;
}

/* --- DATE TOGGLE --- */
.date-toggle { display: flex; gap: 8px; margin-bottom: 22px; }
.dt-btn { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; padding: 9px 18px; border-radius: 100px; border: 1px solid var(--line); color: var(--muted); transition: all .3s; }
.dt-btn.active { border-color: var(--gold); color: var(--gold); background: var(--gold-dim); }

/* --- TIME GRID --- */
.time-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; margin-bottom: 6px; }
.tg-loading { grid-column: 1 / -1; text-align: center; color: var(--muted); font-size: 12px; padding: 20px 0; }
.tg-slot {
  padding: 10px 4px; text-align: center; border-radius: 9px; border: 1px solid var(--line);
  font-size: 12px; color: var(--ink); font-variant-numeric: tabular-nums; transition: all .25s var(--ease-luxury);
}
.tg-slot.free { background: rgba(70,180,110,.08); border-color: rgba(70,180,110,.35); color: #8fe0ac; }
.tg-slot.free:hover { border-color: #6fd99a; background: rgba(70,180,110,.16); }
.tg-slot.selected { background: var(--gold); border-color: var(--gold); color: #000; font-weight: 500; }
.tg-slot.taken {
  background: rgba(220,60,60,.08); border-color: rgba(220,60,60,.3); color: rgba(255,138,138,.55);
  text-decoration: line-through; cursor: not-allowed; pointer-events: none;
}

/* --- BANK FLIP CARDS --- */
.bank-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; }
@media(max-width: 420px) { .bank-grid { grid-template-columns: 1fr 1fr; gap: 8px; } }

.bank-card { perspective: 1200px; height: 108px; cursor: pointer; }
.bank-card-inner {
  position: relative; width: 100%; height: 100%;
  transition: transform .7s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
}
.bank-card.flipped .bank-card-inner { transform: rotateY(180deg); }

.bank-face {
  position: absolute; inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 12px;
  display: flex; flex-direction: column; justify-content: space-between;
}

.bank-front { transition: border-color .3s, transform .3s; }
.bank-card.selected .bank-front { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.bank-card:hover .bank-front { transform: translateY(-2px); }

.bank-icon {
  width: 26px; height: 26px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; letter-spacing: .02em;
}
.bank-front-name { font-family: var(--serif); font-size: 14px; margin-top: 6px; }
.bank-front-hint { font-size: 8px; letter-spacing: .1em; text-transform: uppercase; opacity: .75; margin-top: 1px; }

.bank-back {
  background: linear-gradient(155deg, rgba(212,175,55,.14), rgba(212,175,55,.03));
  border-color: rgba(212,175,55,.35);
  transform: rotateY(180deg);
}

.bank-back-label { font-size: 8px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.bank-back-name { font-size: 11px; color: var(--ink); margin-bottom: 8px; }
.bank-back-number { font-family: var(--serif); font-size: 15px; letter-spacing: .03em; color: var(--gold); font-variant-numeric: tabular-nums; }
.bank-back-tap { font-size: 8px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.copy-toast {
  position: fixed;
  left: 50%; bottom: 32px;
  transform: translate(-50%, 20px);
  background: var(--gold); color: #000;
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 500;
  padding: 12px 24px; border-radius: 100px;
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease-luxury), transform .3s var(--ease-luxury);
  z-index: 1500;
}
.copy-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* --- UPLOAD DROPZONE --- */
.upload-block { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 28px; }
.upload-title { font-size: 22px; margin-bottom: 6px; }

.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  border: 1px dashed rgba(212,175,55,.35);
  border-radius: 14px;
  padding: 20px 16px;
  cursor: pointer;
  text-align: center;
  transition: border-color .3s, background .3s;
}
.dropzone:hover, .dropzone.dragover { border-color: var(--gold); background: rgba(212,175,55,.04); }
.dz-icon { font-size: 20px; color: var(--gold); line-height: 1; }
.dz-text { font-size: 11px; letter-spacing: .05em; color: var(--muted); }

.dz-preview {
  display: block; margin-top: 12px; max-height: 160px; width: auto; max-width: 100%;
  border-radius: 10px; border: 1px solid var(--line); object-fit: cover;
}

.upload-error { color: #e0654f; font-size: 12px; margin-top: 12px; }

/* --- PAYMENT SUMMARY --- */
.res-summary { border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin: 22px 0; }
.rs-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.rs-row:last-child { border-bottom: none; }
.rs-row span:first-child { color: var(--muted); letter-spacing: .05em; text-transform: uppercase; font-size: 9px; flex-shrink: 0; }
.rs-row span:last-child { color: var(--ink); text-align: right; }

/* --- BOOKING NAV --- */
.booking-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; flex-wrap: wrap; }
.btn-ghost-res { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
.btn-ghost-res:hover { color: var(--gold); }
.btn-luxury:disabled { opacity: .35; pointer-events: none; }

/* --- STATUS SCREENS --- */
.status-screen { padding: 40px 0 8px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.status-icon { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 20px; color: var(--muted); margin-bottom: 26px; }
.status-icon.gold { color: var(--gold); border-color: rgba(212,175,55,.4); box-shadow: 0 0 34px rgba(212,175,55,.2); }

.res-qr {
  display: flex; justify-content: center; margin-bottom: 20px;
  padding: 14px; background: #fff; border-radius: 16px; width: fit-content;
  margin-left: auto; margin-right: auto;
}
.res-qr img, .res-qr canvas { display: block; }

.res-code { font-family: var(--serif); font-size: 28px; letter-spacing: .1em; color: var(--gold); margin-bottom: 20px; }

/* --- TRACKING HINT --- */
.res-track-hint {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(212,175,55,.07);
  border: 1px solid rgba(212,175,55,.2);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 0 auto 28px;
  max-width: 400px;
  text-align: left;
}
.rth-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.rth-text { font-size: 13px; color: var(--muted); line-height: 1.6; }
.rth-text strong { display: block; color: var(--ink); font-weight: 500; margin-bottom: 3px; }
.rth-text em { color: var(--gold); font-style: normal; font-weight: 500; }

/* --- CONFIRM MODAL --- */
.confirm-modal { position: fixed; inset: 0; z-index: 2000; background: rgba(5,5,5,.75); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 24px; opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.confirm-modal.visible { opacity: 1; pointer-events: auto; }
.confirm-card { background: var(--bg-3); border: 1px solid var(--line); border-radius: 20px; padding: 34px; max-width: 360px; text-align: center; }
.confirm-text { color: var(--ink); font-size: 15px; margin-bottom: 26px; line-height: 1.6; }
.confirm-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.confirm-yes { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: #e0654f; padding: 11px 24px; border-radius: 100px; transition: opacity .3s; }
.confirm-yes:hover { opacity: .85; }
.confirm-keep { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--gold); background: transparent; padding: 11px 24px; border-radius: 100px; transition: all .3s; }
.confirm-keep:hover { background: var(--gold); color: #000; }

/* --- REDUCED MOTION --- */
@media (prefers-reduced-motion: reduce) {
  .substep, .bsc-card, .svc-card, .bank-card-inner, .timer-fill { animation: none !important; transition: none !important; }
}

/* --- FOCUS VISIBILITY --- */
a:focus-visible, button:focus-visible, input:focus-visible, .tg-slot:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 3px;
}

/* --- EXTRA MOBILE-FIRST TIGHTENING --- */
@media (max-width: 480px) {
  .svc-card { flex: 0 0 128px; padding: 13px 12px; }
  .svc-name { font-size: 15px; min-height: 36px; margin-bottom: 8px; }
  .timer-bar-inner { padding: 10px 12px; gap: 10px; }
  .timer-info { gap: 6px; }
  .res-summary { padding: 14px 16px; }
  .time-grid { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; }
  .tg-slot { padding: 8px 2px; font-size: 11px; }
  .res-qr { padding: 10px; }
  .bsc-media { width: 68px; height: 68px; }
  .bsc-name { font-size: 19px; }
}

.rth-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--gold);
  font-weight: 500;
  letter-spacing: .03em;
}
.rth-link:hover { text-decoration: underline; }

/* --- DOWNLOAD / COPY + FIRST-TIME GUIDE POPUP --- */

.res-save-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.save-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border: 1px solid rgba(212,175,55,.35);
  border-radius: 100px;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: .04em;
  transition: all .25s var(--ease-luxury);
}

.save-btn:hover { background: var(--gold); color: #000; }
.save-btn.copied { background: var(--gold); color: #000; }

/* Fixed overlay, centered in the viewport, width clamped to the screen —
   guaranteed to fit any device instead of being anchored to a button that
   might sit near a screen edge. */
.save-guide-overlay {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
}

.save-guide-popup {
  position: relative;
  width: 100%;
  max-width: 360px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: var(--bg-2);
  border: 1px solid rgba(212,175,55,.4);
  border-radius: 18px;
  padding: 22px 22px 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  text-align: center;
  animation: guideUp .35s var(--ease-luxury);
  margin-bottom: env(safe-area-inset-bottom, 0px);
}

@keyframes guideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

.sg-close {
  position: absolute; top: 12px; right: 14px;
  color: var(--muted); font-size: 13px;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
}
.sg-close:hover { color: var(--ink); }

.sg-icon { font-size: 26px; margin-bottom: 8px; }
.sg-title { font-family: var(--serif); font-size: 18px; color: var(--gold); margin-bottom: 8px; }
.sg-text { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 18px; }

.sg-got-it {
  width: 100%;
  padding: 12px;
  background: var(--gold);
  color: #000;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 10px;
}

@media (min-width: 640px) {
  .save-guide-overlay { align-items: center; }
}

.qr-fallback {
  padding: 20px;
  color: #555;
  font-size: 12px;
  text-align: center;
  width: 168px;
}

/* --- AI PAYMENT VERIFICATION --- */

.ai-verify-block {
  margin-bottom: 28px;
  padding: 22px;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.ai-spinner {
  width: 30px; height: 30px;
  margin: 0 auto 14px;
  border: 2px solid rgba(212,175,55,.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: aiSpin .8s linear infinite;
}

@keyframes aiSpin { to { transform: rotate(360deg); } }

.ai-verify-title {
  text-align: center;
  font-family: var(--serif);
  font-size: 16px;
  color: var(--gold);
  margin-bottom: 16px;
}

.ai-progress-track {
  height: 3px;
  background: rgba(255,255,255,.06);
  border-radius: 100px;
  overflow: hidden;
  max-width: 260px;
  margin: 0 auto 18px;
}

.ai-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(212,175,55,.5), var(--gold));
  border-radius: 100px;
  transition: width .15s linear;
}

.ai-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 260px;
  margin: 0 auto;
}

.ai-checklist li {
  font-size: 12px;
  color: var(--muted);
  padding-left: 22px;
  position: relative;
  transition: color .3s;
}

.ai-checklist li::before {
  content: '';
  position: absolute;
  left: 0; top: 3px;
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1px solid var(--line);
  transition: all .3s;
}

.ai-checklist li.active { color: var(--ink); }
.ai-checklist li.active::before { border-color: var(--gold); background: rgba(212,175,55,.15); animation: aiPulse 1s ease infinite; }
.ai-checklist li.done { color: var(--ink); }
.ai-checklist li.done::before {
  border-color: #6fd99a;
  background: #6fd99a;
  animation: aiCheckPop .35s var(--ease-spring);
}

@keyframes aiPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212,175,55,.3); }
  50% { box-shadow: 0 0 0 4px rgba(212,175,55,0); }
}

@keyframes aiCheckPop {
  0% { transform: scale(.6); }
  60% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

.ai-result-unavailable {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  text-align: left;
  animation: aiResultIn .4s var(--ease-luxury);
}
.ai-result-unavailable .ai-icon { font-size: 24px; flex-shrink: 0; }

@keyframes aiResultIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.ai-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink);
  animation: aiResultIn .4s var(--ease-luxury);
}

.ai-score {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 100px;
  font-family: var(--sans);
  letter-spacing: .02em;
  animation: aiScorePop .5s var(--ease-spring) .1s backwards;
}

@keyframes aiScorePop {
  from { transform: scale(.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.ai-score-excellent { background: rgba(70,180,110,.15); color: #6fd99a; }
.ai-score-good { background: rgba(212,175,55,.15); color: var(--gold); }
.ai-score-review { background: rgba(240,160,60,.15); color: #f0a03c; }
.ai-score-manual { background: rgba(220,60,60,.15); color: #ff8a8a; }

.ai-checks-grid { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }

.ai-check-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  animation: aiRowIn .4s var(--ease-luxury) forwards;
}
.ai-check-row:nth-child(1) { animation-delay: .05s; }
.ai-check-row:nth-child(2) { animation-delay: .1s; }
.ai-check-row:nth-child(3) { animation-delay: .15s; }
.ai-check-row:nth-child(4) { animation-delay: .2s; }
.ai-check-row:nth-child(5) { animation-delay: .25s; }
.ai-check-row:nth-child(6) { animation-delay: .3s; }
.ai-check-row:last-child { border-bottom: none; }
.ai-check-row span:first-child { color: var(--muted); }

@keyframes aiRowIn {
  from { opacity: 0; transform: translateX(-6px); }
  to { opacity: 1; transform: translateX(0); }
}

.ai-check-val { font-weight: 500; }
.ai-check-match, .ai-check-found { color: #6fd99a; }
.ai-check-mismatch { color: #ff8a8a; }
.ai-check-unknown { color: var(--muted); }

.ai-status-line {
  text-align: center;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 6px;
}

@media (max-width: 480px) {
  .ai-verify-block { padding: 16px; }
  .ai-result-head { flex-direction: column; align-items: flex-start; gap: 8px; }
}
