:root {
  --bg-0: #0a0613;
  --bg-1: #150a26;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-2: rgba(255, 255, 255, 0.09);
  --stroke: rgba(255, 255, 255, 0.12);
  --text: #f6f3ff;
  --text-soft: #b8aed6;
  --text-mute: #8a82a6;
  --brand-a: #ff5d8f;
  --brand-b: #b066ff;
  --brand-c: #5ae0ff;
  --accent-gold: #ffd166;
  --accent-green: #6ff7c1;
  --danger: #ff7a7a;
  --bubble-bot: rgba(255, 255, 255, 0.07);
  --bubble-user-a: #ff5d8f;
  --bubble-user-b: #b066ff;
  --shadow-lg: 0 30px 80px -20px rgba(120, 30, 200, 0.45);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 700px at 80% -10%, #2a0f47 0%, transparent 60%),
              radial-gradient(900px 600px at -10% 20%, #3a0f56 0%, transparent 55%),
              radial-gradient(800px 600px at 50% 110%, #1a0d3d 0%, transparent 60%),
              linear-gradient(180deg, var(--bg-0), var(--bg-1));
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.5;
  pointer-events: none;
}

/* Animated orbs */
.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: float 22s ease-in-out infinite;
  /* Promote each orb to its own GPU layer so the float animation transforms a
     cached blurred texture instead of repainting — smooth scrolling. */
  will-change: transform;
  transform: translateZ(0);
}
.orb-1 { width: 420px; height: 420px; background: #ff5d8f; top: -120px; left: -120px; }
.orb-2 { width: 380px; height: 380px; background: #b066ff; top: 40%; right: -140px; animation-delay: -7s; }
.orb-3 { width: 320px; height: 320px; background: #5ae0ff; bottom: -100px; left: 30%; animation-delay: -14s; opacity: 0.35; }
.orb-4 { width: 260px; height: 260px; background: #ffd166; top: 10%; left: 55%; animation-delay: -4s; opacity: 0.25; }

@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(40px, 30px, 0) scale(1.08); }
}

/* App layout */
.app {
  position: relative;
  z-index: 1;
  height: 100vh;
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 22px 22px 14px;
  gap: 18px;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}

/* Josty status pill, pinned top-right */
.header-status {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
}
.brand > div { min-width: 0; }

.brand-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
  box-shadow: 0 10px 26px -10px rgba(255, 93, 143, 0.6);
}
.brand-mark svg { width: 20px; height: 20px; }

.brand h1 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
  letter-spacing: -0.01em;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.brand-sub {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  background: linear-gradient(135deg, rgba(255, 93, 143, 0.18), rgba(176, 102, 255, 0.18));
  border: 1px solid var(--stroke);
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
  line-height: 1;
}

.brand-tag {
  margin: 1px 0 0;
  font-size: 12px;
  color: var(--text-soft);
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--stroke);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-soft);
  white-space: nowrap;
  backdrop-filter: blur(12px);
}
.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 0 0 rgba(111, 247, 193, 0.7);
  animation: pulseRing 1.6s ease-out infinite;
}
@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(111, 247, 193, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(111, 247, 193, 0); }
  100% { box-shadow: 0 0 0 0 rgba(111, 247, 193, 0); }
}

/* Chat shell */
.chat-shell {
  display: grid;
  grid-template-rows: 1fr auto auto;
  gap: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
  min-height: 0;
}

.chat-window {
  overflow-y: auto;
  min-height: 0; /* grid child must allow shrinking so it scrolls internally */
  padding: 10px 6px 4px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}
.chat-window::-webkit-scrollbar { width: 8px; }
.chat-window::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
}

/* Messages */
.msg {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  animation: messageIn 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes messageIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.msg.user { justify-content: flex-end; }

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 16px;
  background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
  color: white;
  box-shadow: 0 8px 20px -8px rgba(255, 93, 143, 0.5);
}

.bubble {
  max-width: 78%;
  padding: 11px 15px;
  border-radius: 16px;
  line-height: 1.5;
  font-size: 14.5px;
  border: 1px solid var(--stroke);
  background: var(--bubble-bot);
  white-space: pre-wrap;
  word-wrap: break-word;
}
.bubble strong { color: var(--accent-gold); font-weight: 600; }
.bubble em { color: var(--brand-c); font-style: normal; font-weight: 500; }

.msg.user .bubble {
  background: linear-gradient(135deg, var(--bubble-user-a), var(--bubble-user-b));
  border: 1px solid transparent;
  color: white;
  border-bottom-right-radius: 4px;
}
.msg.bot .bubble {
  border-bottom-left-radius: 4px;
}

/* Manedger — the vendor's agent, a distinct speaker in the negotiation */
.msg.manedger .avatar {
  background: linear-gradient(135deg, var(--brand-c, #5ae0ff), #6ff7c1);
  box-shadow: 0 8px 20px -8px rgba(90, 224, 255, 0.5);
}
.msg.manedger .bubble {
  background: rgba(90, 224, 255, 0.08);
  border-color: rgba(90, 224, 255, 0.28);
  border-bottom-left-radius: 4px;
}
.msg.manedger .bubble::before {
  content: "Manedger · vendor agent";
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-c, #5ae0ff);
  opacity: 0.9;
  margin-bottom: 3px;
  font-weight: 600;
}

/* Manedger — escalated to the artist's HUMAN manager (amber = exceptional) */
.msg.manager .avatar {
  background: linear-gradient(135deg, var(--accent-gold, #ffd166), #ff8a5d);
  box-shadow: 0 8px 20px -8px rgba(255, 209, 102, 0.5);
  color: #3a2a00;
}
.msg.manager .bubble {
  background: rgba(255, 209, 102, 0.10);
  border-color: rgba(255, 209, 102, 0.34);
  border-bottom-left-radius: 4px;
}
.msg.manager .bubble::before {
  content: "Manedger · human review";
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-gold, #ffd166);
  opacity: 0.95;
  margin-bottom: 3px;
  font-weight: 600;
}

/* Header pill: live manager-console connection status */
.header-pill.mgr-pill { color: var(--text-soft); }
.header-pill.mgr-pill.on { color: #6ff7c1; border-color: rgba(111, 247, 193, 0.4); }

/* Typing indicator */
.typing {
  display: inline-flex;
  gap: 4px;
  padding: 14px 16px;
}
.typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-soft);
  animation: bounce 1.2s ease-in-out infinite;
}
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* Quick replies */
.quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 4px 0;
  animation: messageIn 0.4s ease both;
}
.chip {
  border: 1px solid var(--stroke);
  background: var(--surface-2);
  color: var(--text);
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: inherit;
  backdrop-filter: blur(6px);
}
.chip:hover {
  background: linear-gradient(135deg, rgba(255, 93, 143, 0.25), rgba(176, 102, 255, 0.25));
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}
.chip:active { transform: translateY(0); }

/* Composer */
.composer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 6px 6px 6px 18px;
  transition: border-color 0.2s;
}
.composer:focus-within {
  border-color: rgba(255, 93, 143, 0.5);
  box-shadow: 0 0 0 4px rgba(255, 93, 143, 0.08);
}
.composer input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  padding: 10px 4px;
}
.composer input::placeholder { color: var(--text-mute); }
/* Attach + send grouped on the right, send rightmost */
.composer-actions { display: flex; align-items: center; gap: 6px; }

#sendBtn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: white;
  background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 8px 20px -8px rgba(255, 93, 143, 0.6);
}
#sendBtn:hover { transform: scale(1.05); }
#sendBtn:active { transform: scale(0.96); }
#sendBtn svg { width: 18px; height: 18px; }
#sendBtn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.attach-btn {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--stroke);
  display: grid; place-items: center; cursor: pointer; color: var(--text-soft);
  background: rgba(255,255,255,0.04); transition: color 0.15s, border-color 0.15s, transform 0.15s;
}
.attach-btn:hover { color: var(--brand-a); border-color: var(--brand-a); transform: scale(1.05); }
.attach-btn:active { transform: scale(0.96); }
.attach-btn svg { width: 18px; height: 18px; }
.attach-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* In-chat file chip (what the buyer dropped) */
.file-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--stroke); font-size: 13px; max-width: 260px; }
.file-chip .fi { font-size: 16px; flex-shrink: 0; }
.file-chip .fn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-chip .fs { color: var(--text-mute); font-size: 11px; flex-shrink: 0; }

/* Artist cards */
.artist-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 6px;
  width: 100%;
}
@media (min-width: 600px) {
  .artist-grid { grid-template-columns: 1fr 1fr; }
}

.artist-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  padding: 14px;
  display: grid;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}
.artist-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent, rgba(255, 93, 143, 0.4), transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}
.artist-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px -14px rgba(176, 102, 255, 0.4);
}
.artist-card:hover::before { opacity: 1; }

.artist-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.artist-photo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 26px;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}
.artist-name {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
}
.artist-genre {
  font-size: 12px;
  color: var(--text-soft);
  margin-top: 2px;
}
.artist-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-soft);
  flex-wrap: wrap;
}
.tag {
  background: rgba(255, 255, 255, 0.07);
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
}
.tag-rating { color: var(--accent-gold); }
.tag.avail-free { color: #6ff7c1; border-color: rgba(111,247,193,0.4); background: rgba(111,247,193,0.1); font-weight: 600; }
.tag.avail-busy { color: #ff9db5; border-color: rgba(255,93,143,0.35); background: rgba(255,93,143,0.08); }

.artist-bio {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.45;
}

.artist-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 6px;
  border-top: 1px dashed var(--stroke);
}
.price {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
}
.price-sub { font-size: 11px; color: var(--text-mute); display: block; }
.book-btn {
  border: none;
  background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
  color: white;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s;
}
.book-btn:hover { transform: translateY(-1px); }

/* Summary card */
.summary {
  background: linear-gradient(135deg, rgba(255, 93, 143, 0.14), rgba(176, 102, 255, 0.14));
  border: 1px solid rgba(255, 93, 143, 0.3);
  border-radius: var(--radius-md);
  padding: 14px;
  display: grid;
  gap: 8px;
  margin-top: 4px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
}
.summary-row span:first-child { color: var(--text-soft); }
.summary-row span:last-child { font-weight: 600; }
.summary-total {
  padding-top: 8px;
  margin-top: 4px;
  border-top: 1px dashed rgba(255, 255, 255, 0.2);
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
}
.summary-total span:last-child { color: var(--accent-gold); }

.price-strike {
  text-decoration: line-through;
  color: var(--text-mute);
  margin-right: 8px;
  font-size: 14px;
}

/* Footer */
.foot {
  text-align: center;
  font-size: 11.5px;
  color: var(--text-mute);
  letter-spacing: 0.04em;
}

/* Confetti canvas */
#confettiCanvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
}

/* Booking confirmation */
.booked-banner {
  background: linear-gradient(135deg, rgba(111, 247, 193, 0.2), rgba(90, 224, 255, 0.2));
  border: 1px solid rgba(111, 247, 193, 0.4);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  margin-top: 6px;
}
.booked-banner h3 {
  margin: 0 0 6px;
  font-family: "Space Grotesk", sans-serif;
  color: var(--accent-green);
  font-size: 18px;
}
.booked-banner p { margin: 4px 0; font-size: 13px; color: var(--text-soft); }
.booked-id {
  font-family: "Space Grotesk", monospace;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 0.1em;
  font-size: 14px;
  margin-top: 6px;
  display: inline-block;
  padding: 4px 10px;
  background: rgba(255, 209, 102, 0.1);
  border-radius: 8px;
}

/* Closed state (after a booking) — feedback + start over */
.closed-card {
  margin: 14px 0 6px; padding: 18px 16px; text-align: center;
  border: 1px solid var(--stroke); border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.closed-line { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: var(--text-mute);
  text-transform: uppercase; }
.closed-card .fb-q { margin-top: 8px; font-size: 14px; color: var(--text); font-weight: 600; }
.closed-card .stars { display: inline-flex; gap: 4px; margin: 4px 0 2px; }
.closed-card .star { background: none; border: none; cursor: pointer; font-size: 28px; line-height: 1;
  color: rgba(255, 255, 255, 0.18); transition: color 0.12s, transform 0.12s; padding: 2px; }
.closed-card .star:hover { transform: scale(1.12); }
.closed-card .star.on { color: #ffd166; text-shadow: 0 0 14px rgba(255, 209, 102, 0.5); }
.closed-card .stars.locked .star { cursor: default; }
.closed-card .fb-thanks { font-size: 12.5px; color: var(--accent-green); }
.closed-card .sys-fb { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.closed-card .sys-fb-q { font-size: 13px; font-weight: 600; color: var(--text); }
.closed-card .sys-fb-input { width: 100%; box-sizing: border-box; background: rgba(255,255,255,0.05);
  border: 1px solid var(--stroke); border-radius: 12px; padding: 10px 12px; color: var(--text); font-family: inherit;
  font-size: 13px; resize: vertical; min-height: 44px; }
.closed-card .sys-fb-input::placeholder { color: var(--text-mute); }
.closed-card .sys-fb-input:focus { outline: none; border-color: rgba(255,93,143,0.5); }
.closed-card .sys-fb-send { align-self: center; font-family: inherit; font-weight: 600; font-size: 12.5px; cursor: pointer;
  color: var(--text-soft); background: rgba(255,255,255,0.06); border: 1px solid var(--stroke); border-radius: 10px; padding: 8px 16px; }
.closed-card .sys-fb-send:hover:not(:disabled) { color: var(--text); border-color: rgba(255,93,143,0.4); }
.closed-card .sys-fb-send:disabled { opacity: 0.5; cursor: default; }
.closed-card .sys-fb-thanks { font-size: 12px; color: var(--accent-green); text-align: center; }
.closed-card .new-booking {
  margin-top: 12px; font-family: inherit; font-weight: 700; font-size: 14px; cursor: pointer;
  color: white; border: none; border-radius: 12px; padding: 11px 20px;
  background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
  box-shadow: 0 10px 24px -10px rgba(255, 93, 143, 0.6); transition: transform 0.15s; }
.closed-card .new-booking:hover { transform: translateY(-2px); }

/* Mobile tweaks */
@media (max-width: 600px) {
  .app { padding: 14px 12px 10px; gap: 12px; }
  .brand h1 { font-size: 19px; }
  .header-pill { font-size: 12px; padding: 6px 10px; }
  .bubble { font-size: 14px; max-width: 85%; }
  .chat-shell { padding: 12px; border-radius: 18px; }
}

/* Local-LLM marker — a subtle sparkle on lines phrased live by Ollama. */
.ai-spark { font-size: 11px; opacity: 0.55; cursor: help; vertical-align: middle; }

/* ===== Post-booking payment (simulated Razorpay) ===== */
.pay-card { background: rgba(255,255,255,0.03); border: 1px solid var(--stroke); border-radius: 16px; padding: 16px 16px 14px; max-width: 340px; }
.pay-card .pay-h { font-size: 15px; font-weight: 800; color: var(--text); }
.pay-card .pay-sub { font-size: 12.5px; color: var(--text-soft); margin: 3px 0 13px; line-height: 1.45; }
.pay-rows { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.pay-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--text-soft); }
.pay-row span:last-child { color: var(--text); font-family: 'Space Grotesk', sans-serif; font-variant-numeric: tabular-nums; }
.pay-row.sub { padding-top: 8px; border-top: 1px dashed var(--stroke); }
.pay-row.total { padding-top: 9px; margin-top: 1px; border-top: 1px solid var(--stroke); font-weight: 800; }
.pay-row.total span { font-size: 15px; color: var(--text); }
.pay-row.total span:last-child { color: var(--accent-gold); }
.pay-btn { width: 100%; border: none; cursor: pointer; font-family: inherit; font-weight: 800; font-size: 14px; padding: 13px; border-radius: 12px;
  color: white; background: linear-gradient(135deg, var(--brand-a), var(--brand-b)); box-shadow: 0 10px 24px -10px rgba(255,93,143,0.6); transition: transform 0.15s; }
.pay-btn:hover:not(:disabled) { transform: translateY(-2px); }
.pay-btn:disabled { opacity: 0.6; cursor: default; transform: none; }
.pay-foot { font-size: 11px; color: var(--text-soft); text-align: center; margin-top: 10px; }
.pay-foot .pay-skip { background: none; border: none; color: var(--text-soft); text-decoration: underline; cursor: pointer; font-family: inherit; font-size: 11px; padding: 0; }
.pay-foot .pay-skip:hover { color: var(--text); }

/* Payment success + downloadable documents */
.paid-card { background: rgba(111,247,193,0.06); border: 1px solid rgba(111,247,193,0.3); border-radius: 16px; padding: 16px; max-width: 340px; }
.paid-tick { font-size: 14px; font-weight: 800; color: var(--accent-green); }
.paid-amt { font-family: 'Space Grotesk', sans-serif; font-size: 22px; font-weight: 700; color: var(--text); margin-top: 4px; }
.paid-amt span { font-family: inherit; font-size: 12px; font-weight: 500; color: var(--text-soft); margin-left: 6px; }
.paid-ref { font-size: 11px; color: var(--text-soft); margin: 2px 0 13px; letter-spacing: 0.03em; }
.paid-docs { display: flex; flex-direction: column; gap: 8px; }
.paid-doc { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 11px; text-decoration: none; color: var(--text); font-size: 13px; font-weight: 600;
  background: rgba(255,255,255,0.04); border: 1px solid var(--stroke); transition: border-color 0.15s, transform 0.15s; }
.paid-doc:hover { border-color: rgba(255,209,102,0.5); transform: translateX(2px); }
.paid-doc span { flex: 1; }
.paid-doc em { font-style: normal; font-size: 10px; font-weight: 700; color: var(--accent-gold); letter-spacing: 0.04em; }

/* Razorpay demo modal */
.rzp-backdrop { position: fixed; inset: 0; background: rgba(8,6,18,0.72); display: grid; place-items: center; z-index: 9000; animation: rzp-fade 0.2s; }
@keyframes rzp-fade { from { opacity: 0; } to { opacity: 1; } }
.rzp-modal { width: 360px; max-width: 92vw; background: #fafafa; color: #1a1a1a; border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,0.6); overflow: hidden; font-family: 'Plus Jakarta Sans', sans-serif; }
.rzp-head { background: linear-gradient(135deg, #02042c, #2c1a59); color: white; padding: 18px 18px 14px; }
.rzp-head .logo { font-weight: 800; font-size: 18px; letter-spacing: -0.01em; }
.rzp-head .merchant { font-size: 12px; opacity: 0.75; margin-top: 2px; }
.rzp-body { padding: 18px; }
.rzp-amount { font-size: 28px; font-weight: 800; color: #02042c; }
.rzp-amount-sub { color: #6b6b80; font-size: 12px; margin-top: 2px; }
.rzp-method { margin: 16px 0; padding: 12px; border: 1px solid #e3e3eb; border-radius: 10px; font-size: 13px; color: #1a1a1a; background: white; }
.rzp-method strong { display: block; margin-bottom: 4px; }
.rzp-method .cc-fake { display: flex; gap: 8px; color: #6b6b80; font-size: 11px; }
.rzp-actions { display: grid; gap: 8px; margin-top: 12px; }
.rzp-pay { background: #02042c; color: white; border: none; padding: 13px; border-radius: 10px; font-weight: 700; font-size: 14px; cursor: pointer; font-family: inherit; }
.rzp-fail { background: #fafafa; color: #c2362d; border: 1px solid #f0d5d2; padding: 11px; border-radius: 10px; font-weight: 600; font-size: 13px; cursor: pointer; font-family: inherit; }
.rzp-note { font-size: 11px; color: #6b6b80; text-align: center; margin-top: 10px; line-height: 1.4; }
.rzp-foot { padding: 10px 18px; background: #f0f0f5; color: #6b6b80; font-size: 11px; text-align: center; }
