/* Reputation Export (Premium) — standalone page styles. Mirrors the v7 mockup
   (designs/v2/premium/repexport-app.jsx): a two-column stage with a live document
   preview on the left and the export controls on the right. Uses the shared design
   tokens (--a1/--a2/--a3, --grad, --r-lg, etc.) so it themes per vertical. */

.re-main {
  padding: clamp(48px, 8vh, 96px) 0 96px;
  position: relative;
  z-index: 1;
}
.re-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Heading ── */
.re-head {
  max-width: 720px;
  margin: 0 0 40px;
}
.re-head h1 {
  font-family: var(--display, "Space Grotesk", sans-serif);
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 14px 0 16px;
  color: var(--text, #edecf7);
}
.re-head .lead {
  color: var(--dim, #9b9bbd);
  font-size: 1.08rem;
  line-height: 1.6;
  max-width: 640px;
}

/* ── Stage ── */
.re-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
@media (max-width: 880px) {
  .re-stage {
    grid-template-columns: 1fr;
  }
}

/* ── Document preview ── */
.re-doc {
  position: relative;
  background: linear-gradient(180deg, rgba(20, 20, 32, 0.92), rgba(12, 12, 24, 0.96));
  border: 1px solid var(--border, rgba(255, 255, 255, 0.1));
  border-radius: var(--r-lg, 18px);
  padding: 28px 28px 24px;
  overflow: hidden;
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.8);
  min-height: 460px;
}
.re-doc-rail {
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--grad, linear-gradient(120deg, #a855f7, #3b82f6 55%, #22d3ee));
}
.re-doc-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.08));
}
.re-brand b {
  font-family: var(--display, "Space Grotesk", sans-serif);
  font-size: 1.15rem;
  color: var(--text, #edecf7);
}
.re-doc-meta {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.re-doc-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text, #edecf7);
}
.re-doc-meta .m,
.re-doc-foot .m {
  font-family: var(--mono, "JetBrains Mono", monospace);
  font-size: 0.74rem;
  color: var(--faint, #8b8ba8);
}

.re-identity {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
}
.re-av {
  flex: none;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: var(--display, "Space Grotesk", sans-serif);
  font-weight: 700;
  font-size: 1.5rem;
  color: #0b0b14;
  background: var(--grad, linear-gradient(120deg, #a855f7, #22d3ee));
}
.re-id-txt {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.re-id-txt b {
  font-size: 1.15rem;
  color: var(--text, #edecf7);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.re-id-txt .m {
  font-family: var(--mono, monospace);
  font-size: 0.78rem;
  color: var(--faint, #8b8ba8);
}
.re-dial {
  margin-left: auto;
  position: relative;
  width: 72px;
  height: 72px;
  flex: none;
}
.re-dial svg {
  width: 72px;
  height: 72px;
}
.re-dial-num {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.re-dial-num b {
  font-family: var(--display, "Space Grotesk", sans-serif);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--text, #edecf7);
  line-height: 1;
}
.re-dial-num .m {
  font-size: 0.64rem;
  color: var(--faint, #8b8ba8);
}

.re-rows {
  display: flex;
  flex-direction: column;
}
.re-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-top: 1px solid var(--border, rgba(255, 255, 255, 0.07));
}
.re-k {
  font-size: 0.82rem;
}
.re-row .re-k {
  font-family: var(--mono, monospace);
  color: var(--faint, #8b8ba8);
}
.re-v {
  font-weight: 600;
  color: var(--text, #edecf7);
  text-align: right;
  font-size: 0.95rem;
}
.re-tier {
  font-family: var(--mono, monospace);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: var(--a3, #22d3ee);
  border: 1px solid color-mix(in srgb, var(--a3, #22d3ee) 40%, transparent);
  border-radius: 999px;
  padding: 2px 7px;
  margin-left: 6px;
  vertical-align: middle;
}

.re-badges {
  padding: 16px 0 4px;
  border-top: 1px solid var(--border, rgba(255, 255, 255, 0.07));
}
.re-badges .re-k {
  font-family: var(--mono, monospace);
  color: var(--faint, #8b8ba8);
  display: block;
  margin-bottom: 10px;
}
.re-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.re-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text, #edecf7);
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--rc, #9b9bbd);
  background: color-mix(in srgb, var(--rc, #9b9bbd) 12%, transparent);
}
.re-badge i {
  font-style: normal;
  font-family: var(--mono, monospace);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rc, #9b9bbd);
}
.re-badge.common { --rc: #9b9bbd; }
.re-badge.uncommon { --rc: #3b82f6; }
.re-badge.rare { --rc: #14b8a6; }
.re-badge.epic { --rc: #a855f7; }
.re-badge.legendary { --rc: #f59e0b; }
.re-badge.staff { --rc: #ef4444; }

.re-record {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 18px;
  padding: 13px 15px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.4;
}
.re-record.ok {
  color: #aef0d4;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.3);
}
.re-record.bad {
  color: #ffc9c9;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.3);
}
.re-rec-ic {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.8rem;
}
.re-record.ok .re-rec-ic {
  background: rgba(52, 211, 153, 0.2);
  color: #34d399;
}
.re-record.bad .re-rec-ic {
  background: rgba(248, 113, 113, 0.2);
  color: #f87171;
}

.re-doc-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border, rgba(255, 255, 255, 0.08));
}
.re-foot-txt {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.re-verify {
  font-family: var(--mono, monospace);
  font-size: 0.82rem;
  color: var(--a3, #22d3ee);
  word-break: break-all;
}
.re-qr-box {
  flex: none;
  width: 76px;
  height: 76px;
  padding: 7px;
  background: #fff;
  border-radius: 10px;
}
.re-qr {
  width: 100%;
  height: 100%;
  display: block;
}
.re-qr rect {
  fill: #0b0b14;
}

/* ── Side controls ── */
.re-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 92px;
}
.re-card {
  border-radius: var(--r-lg, 18px);
  padding: 22px;
}
.re-lbl {
  font-family: var(--mono, monospace);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.68rem;
  color: var(--a3, #22d3ee);
  display: block;
  margin-bottom: 10px;
}
.re-side-p {
  color: var(--dim, #9b9bbd);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0 0 18px;
}
.re-dl {
  width: 100%;
  justify-content: center;
}
.re-dl[disabled] {
  opacity: 0.55;
  pointer-events: none;
}
.re-done {
  display: block;
  margin-top: 12px;
  font-family: var(--mono, monospace);
  font-size: 0.74rem;
  color: var(--faint, #8b8ba8);
}
.re-done.lock {
  color: var(--warning, #fbbf24);
}
.re-toc {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.re-toc li {
  position: relative;
  padding-left: 22px;
  color: var(--dim, #9b9bbd);
  font-size: 0.92rem;
}
.re-toc li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--grad, linear-gradient(120deg, #a855f7, #22d3ee));
}

/* ── State overlays (loading / signed-out / locked) ── */
.re-note {
  color: var(--dim, #9b9bbd);
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 0 0 14px;
}
.re-skel {
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
  background-size: 200% 100%;
  animation: re-shimmer 1.3s ease infinite;
}
@keyframes re-shimmer {
  to {
    background-position: -200% 0;
  }
}
.re-hide {
  display: none !important;
}
