/* Shared admin + customer popup chrome */

.jvr-modal { font-size: 14px; }
.jvr-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}
.jvr-modal__head h2,
.jvr-modal__head h5 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
}
.jvr-modal__head .modal-close { position: static; }
.jvr-modal__head .modal-sub { margin: 4px 0 0 !important; }
.jvr-modal__body { max-height: 75vh; overflow-y: auto; }
.jvr-modal__foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 20px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}

.jvr-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 14px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
}
.jvr-hero__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.jvr-hero__amount {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
  margin-top: 4px;
}
.jvr-hero__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

.jvr-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.92);
}
.jvr-chip--soft { background: #eff6ff; color: #1d4ed8; }

.jvr-status {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.jvr-status--DONE,
.jvr-status--PAID,
.jvr-status--APPROVED,
.jvr-status--ACTIVE { background: #dcfce7; color: #166534; }
.jvr-status--PENDING { background: #ffedd5; color: #9a3412; }
.jvr-status--REJECTED,
.jvr-status--FAILED,
.jvr-status--INACTIVE { background: #fee2e2; color: #991b1b; }

.jvr-coins {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border: 1px solid #fed7aa;
}
.jvr-coins__title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #9a3412;
  margin-bottom: 2px;
}
.jvr-coins__value { font-size: 18px; font-weight: 800; color: #9a3412; }
.jvr-coins__off { font-size: 13px; font-weight: 700; color: #c2410c; }
.jvr-coins__paid { text-align: right; }
.jvr-coins__paid span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #9a3412;
}
.jvr-coins__paid strong { font-size: 18px; color: #0f172a; }

.jvr-section { margin-bottom: 16px; }
.jvr-section:last-child { margin-bottom: 0; }
.jvr-section__title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #64748b;
  margin: 0 0 10px;
}

.jvr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.jvr-field {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  min-width: 0;
}
.jvr-field--wide { grid-column: 1 / -1; }
.jvr-field__label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 4px;
}
.jvr-field__value {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  word-break: break-word;
  line-height: 1.45;
}
.jvr-field__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }

.jvr-copy {
  flex-shrink: 0;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  cursor: pointer;
}
.jvr-copy:hover { background: #fff7ed; border-color: #fdba74; color: #c2410c; }

.jvr-json { border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; background: #0f172a; }
.jvr-json summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: #1e293b;
}
.jvr-json summary::-webkit-details-marker { display: none; }
.jvr-json summary::after { content: "▾"; float: right; opacity: .7; }
.jvr-json:not([open]) summary::after { content: "▸"; }
.jvr-json pre {
  margin: 0;
  padding: 14px 16px;
  color: #e2e8f0;
  font-size: 12px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
  background: transparent;
}

.jvr-table-coins {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 12px;
  font-weight: 700;
}

/* Lift every admin overlay panel */
.fixed.inset-0 .panel.border-0.p-0 {
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, .3);
}
.fixed.inset-0 .panel.border-0.p-0 > .flex.items-center.justify-between:first-child {
  background: #fff !important;
  border-bottom: 1px solid #e2e8f0;
}
.fixed.inset-0 .panel.border-0.p-0 > .flex.items-center.justify-between:first-child h5 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}

@media (max-width: 640px) {
  .jvr-hero { grid-template-columns: 1fr; }
  .jvr-grid { grid-template-columns: 1fr; }
  .jvr-coins, .jvr-coins__paid { text-align: left; }
}

/* Legacy aliases from the first recharge modal pass */
.rr-modal { font-size: 14px; }
.rr-modal__body { max-height: 75vh; overflow-y: auto; }
.rr-hero { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 18px 20px; border-radius: 14px; margin-bottom: 16px; background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); color: #fff; }
.rr-hero__label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.rr-hero__amount { font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin-top: 4px; }
.rr-hero__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.rr-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(255,255,255,.1); color: rgba(255,255,255,.92); }
.rr-status { display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.rr-status--DONE { background: #dcfce7; color: #166534; }
.rr-status--PENDING { background: #ffedd5; color: #9a3412; }
.rr-status--REJECTED { background: #fee2e2; color: #991b1b; }
.rr-coins { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; margin-bottom: 16px; border-radius: 14px; background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%); border: 1px solid #fed7aa; }
.rr-coins__title { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #9a3412; margin-bottom: 2px; }
.rr-coins__value { font-size: 18px; font-weight: 800; color: #9a3412; }
.rr-coins__off { font-size: 13px; font-weight: 700; color: #c2410c; }
.rr-coins__paid { text-align: right; }
.rr-coins__paid span { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #9a3412; }
.rr-coins__paid strong { font-size: 18px; color: #0f172a; }
.rr-section { margin-bottom: 16px; }
.rr-section__title { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #64748b; margin: 0 0 10px; }
.rr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rr-field { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px 14px; min-width: 0; }
.rr-field--wide { grid-column: 1 / -1; }
.rr-field__label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #64748b; margin-bottom: 4px; }
.rr-field__value { display: block; font-size: 13.5px; font-weight: 700; color: #0f172a; word-break: break-word; line-height: 1.45; }
.rr-field__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.rr-copy { flex-shrink: 0; border: 1px solid #e2e8f0; background: #fff; color: #475569; border-radius: 8px; font-size: 11px; font-weight: 700; padding: 3px 8px; cursor: pointer; }
.rr-copy:hover { background: #fff7ed; border-color: #fdba74; color: #c2410c; }
.rr-json { border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; background: #0f172a; }
.rr-json summary { list-style: none; cursor: pointer; padding: 12px 14px; color: #e2e8f0; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: #1e293b; }
.rr-json summary::-webkit-details-marker { display: none; }
.rr-json summary::after { content: "▾"; float: right; opacity: .7; }
.rr-json:not([open]) summary::after { content: "▸"; }
.rr-json pre { margin: 0; padding: 14px 16px; color: #e2e8f0; font-size: 12px; line-height: 1.65; white-space: pre-wrap; word-break: break-word; background: transparent; }
.rr-table-coins { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: #fff7ed; color: #c2410c; font-size: 12px; font-weight: 700; }
@media (max-width: 640px) {
  .rr-hero { grid-template-columns: 1fr; }
  .rr-grid { grid-template-columns: 1fr; }
  .rr-coins, .rr-coins__paid { text-align: left; }
}

/* User-site form / detail popups */
.modal.jvr-modal {
  padding: 0 !important;
  width: min(560px, 100%);
  overflow: hidden;
}
.modal.jvr-modal .jvr-modal__body { padding: 18px 20px; }
.jvr-modal .modal-title { margin: 0; font-size: 1.1rem; }
.jvr-modal .modal-sub { margin: 0 0 16px; }
.jvr-modal .modal-close { position: static; flex-shrink: 0; }
.modal:not(.jvr-modal) {
  overflow: hidden;
  box-shadow: 0 26px 70px rgba(0, 18, 53, .22);
}
.modal:not(.jvr-modal)::before {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, #001235 0%, #f7881f 55%, #e8232a 100%);
  margin: -36px -36px 28px;
}

/* Alternate admin overlays that are not .panel */
.fixed.inset-0 .bg-white.rounded-lg {
  box-shadow: 0 24px 64px rgba(15, 23, 42, .3);
  border-radius: 16px !important;
  overflow: hidden;
}
.fixed.inset-0 .bg-white.rounded-lg > .flex.justify-between.items-center:first-child {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}
.fixed.inset-0 .bg-white.rounded-lg > .flex.justify-between.items-center:first-child h5 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}
