/* ============================================================
   THE ALPHABET MONOPOLY
   Official Registry of Letters · Established 2026

   Visual language:
   Clean Editorial White, Crisp Obsidian Black & Vivid Crimson Red
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --bg:           #fafafa;
  --bg-subtle:    #f4f4f5;
  --bg-card:      #ffffff;
  --text:         #09090b;
  --text-2:       #18181b;
  --text-3:       #52525b;
  --text-4:       #71717a;
  --accent:       #d90429;
  --accent-light: #ef233c;
  --accent-dim:   rgba(217, 4, 41, 0.08);
  --rule:         rgba(0, 0, 0, 0.1);
  --sans:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --serif:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono:         'JetBrains Mono', monospace;
  --ease:         cubic-bezier(0.16, 1, 0.3, 1);
  --ease-slow:   cubic-bezier(0.25, 0.1, 0.25, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
::selection { background: rgba(217, 4, 41, 0.2); color: #000000; }
::-webkit-scrollbar { width: 0; background: transparent; }

body {
  background: var(--bg);
  background-image: 
    radial-gradient(ellipse at 50% 0%, rgba(217, 4, 41, 0.06) 0%, transparent 65%),
    radial-gradient(circle at 10% 90%, rgba(0, 0, 0, 0.02) 0%, transparent 40%);
  color: var(--text);
  font-family: var(--sans);
  min-height: 100vh;
}


/* ═══════════════ REGISTRY CONTAINER ═══════════════ */

.registry {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 32px 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
@media (max-width: 768px) { .registry { padding: 16px 16px 16px; } }


/* ═══════════════ THIN RULE ═══════════════ */

.rule {
  border: none;
  height: 1px;
  background: var(--rule);
  margin: 12px 0;
}


/* ═══════════════ TOP HERO BAR ═══════════════ */

.top-hero-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.registry-header {
  text-align: left;
}

.registry-sup {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 8px;
  box-shadow: 0 0 10px var(--accent);
  animation: pulseDot 2s infinite ease-in-out;
}
@keyframes pulseDot {
  0%, 100% { opacity: 0.6; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.25); }
}

.registry-title {
  font-weight: 800;
  font-size: clamp(26px, 3.2vw, 42px);
  line-height: 1.1;
  color: var(--text);
  letter-spacing: -0.5px;
  margin: 2px 0 0;
}

.registry-subtitle {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-3);
  margin-top: 4px;
  letter-spacing: 0.1px;
}


/* ═══════════════ REDESIGNED REGISTRY WIDGET ═══════════════ */

.registry-card-widget {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  padding: 10px 18px;
  min-width: 160px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: all 250ms var(--ease);
}

.registry-card-widget:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 20px rgba(217, 4, 41, 0.12);
}

.widget-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.widget-label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-4);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.widget-value {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.widget-value .widget-slash {
  font-size: 14px;
  color: var(--text-4);
  font-weight: 500;
  margin: 0 1px;
}

.widget-divider {
  width: 100%;
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
  margin: 7px 0;
}

.widget-value.price {
  color: var(--accent);
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
}

.registry-card-widget.is-completed {
  border-color: rgba(9, 9, 11, 0.25);
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.sold-out-strike {
  text-decoration: line-through;
  opacity: 0.45;
  font-size: 13px;
  color: var(--text-3);
  margin-right: 6px;
  font-weight: 500;
}

.sold-out-badge {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 1.5px;
}


/* ═══════════════ SIMPLE STORY LINE ═══════════════ */

.story-line {
  text-align: center;
  margin: 6px 0 2px;
  padding: 0 12px;
}

.story-line p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-3);
  font-weight: 500;
}

.story-line strong {
  color: var(--accent);
  font-weight: 700;
}


/* ═══════════════ CARD BOX GRID ═══════════════ */

.grid {
  display: grid;
  grid-template-columns: repeat(13, 1fr);
  gap: 8px;
  margin: 6px 0;
  flex-grow: 1;
  align-content: center;
}

/* Fluid Device Breakpoints */
@media (max-width: 1199px) and (min-width: 900px) {
  .grid { grid-template-columns: repeat(9, 1fr); gap: 7px; }
}

@media (max-width: 899px) and (min-width: 680px) {
  .top-hero-bar { flex-direction: column; align-items: center; text-align: center; gap: 16px; }
  .registry-header { text-align: center; }
  .registry-sup { justify-content: center; }
  .grid { grid-template-columns: repeat(7, 1fr); gap: 6px; }
}

@media (max-width: 679px) and (min-width: 440px) {
  .registry { padding: 14px 14px 14px; }
  .top-hero-bar { flex-direction: column; align-items: center; text-align: center; gap: 14px; }
  .registry-header { text-align: center; }
  .registry-sup { justify-content: center; }
  .stats-pill-container { padding: 8px 18px; width: 100%; max-width: 420px; }
  .grid { grid-template-columns: repeat(5, 1fr); gap: 6px; }
}

@media (max-width: 439px) {
  .registry { padding: 12px 10px 12px; }
  .top-hero-bar { flex-direction: column; align-items: center; text-align: center; gap: 12px; }
  .registry-header { text-align: center; }
  .registry-sup { justify-content: center; }
  .stats-pill-container { padding: 6px 14px; border-radius: 16px; width: 100%; }
  .registry-stats { gap: 12px; justify-content: space-between; width: 100%; }
  .grid { grid-template-columns: repeat(4, 1fr); gap: 5px; }
}


/* ═══════════════ ENTRY CARD ═══════════════ */

.entry {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px;
  text-align: center;
  cursor: pointer;
  background: var(--bg-card);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms var(--ease), background 220ms var(--ease);
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  max-height: 90px;
  user-select: none;
}

.entry:hover {
  cursor: pointer;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 24px rgba(217, 4, 41, 0.22);
  border-color: var(--accent);
  z-index: 10;
}

/* Available Box */
.entry.open {
  border: 1px dashed rgba(0, 0, 0, 0.22);
  background: #ffffff;
}
.entry.open:hover {
  background: #ffffff;
  border-style: solid;
  border-color: var(--accent);
}

/* Pending Box (In Checkout Hold) */
.entry.pending {
  border: 1.5px solid rgba(217, 119, 6, 0.4);
  background: rgba(254, 243, 199, 0.3);
  position: relative;
}
.entry.pending:hover {
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.28);
  border-color: #d97706;
}

.entry-letter.pending-letter {
  font-weight: 800;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1;
  color: #b45309;
}

.entry.pending .entry-hover-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px;
  background: rgba(9, 9, 11, 0.96);
  border-radius: 9px;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.92);
  transition: opacity 200ms var(--ease), transform 200ms var(--ease), visibility 200ms var(--ease);
  pointer-events: none;
}

.entry.pending:hover .entry-default {
  opacity: 0;
  transform: scale(0.85);
}

.entry.pending:hover .entry-hover-overlay {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.pending-tag {
  color: #fbbf24 !important;
}


/* Claimed Box — Clean white card with red accent border on hover */
.entry.claimed {
  border: 1.5px solid rgba(0, 0, 0, 0.15);
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 6px;
}
.entry.claimed:hover {
  box-shadow: 0 8px 24px rgba(217, 4, 41, 0.28);
  border-color: var(--accent);
}

.entry.claimed .entry-default {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  transition: opacity 200ms var(--ease), transform 200ms var(--ease);
  pointer-events: none;
}

.entry.claimed .entry-hover-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px;
  background: rgba(9, 9, 11, 0.94);
  backdrop-filter: blur(8px);
  border-radius: 9px;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.92);
  transition: opacity 200ms var(--ease), transform 200ms var(--ease), visibility 200ms var(--ease);
  pointer-events: none;
}

.entry.claimed:hover .entry-default {
  opacity: 0;
  transform: scale(0.85);
}

.entry.claimed:hover .entry-hover-overlay {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.hover-letter {
  font-size: 13px;
  font-weight: 800;
  color: var(--accent-light);
  letter-spacing: 1px;
  margin-bottom: 2px;
  line-height: 1;
}

.hover-brand-name {
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  max-width: 90%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
  line-height: 1.2;
}

.hover-action-text {
  font-size: 9px;
  font-weight: 700;
  color: #a1a1aa;
  letter-spacing: 1px;
}

/* Claimed Logo Only Container */
.entry-logo-only {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  pointer-events: none;
}

.entry-logo-only img {
  max-width: 84%;
  max-height: 84%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: none;
  opacity: 1;
  transition: transform 250ms var(--ease), opacity 250ms var(--ease);
  pointer-events: none;
}

.entry.claimed:hover .entry-logo-only img {
  transform: scale(1.08);
}

/* Available Entry: Default State (Letter Only) */
.entry.open .entry-default {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  transition: opacity 200ms var(--ease), transform 200ms var(--ease);
  pointer-events: none;
}

.entry-letter {
  font-weight: 800;
  font-size: clamp(26px, 2.8vw, 36px);
  line-height: 1;
  letter-spacing: -0.5px;
  color: var(--text);
  pointer-events: none;
}

/* Available Entry: Hover Overlay */
.entry.open .entry-hover-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px;
  background: rgba(9, 9, 11, 0.96);
  border-radius: 9px;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.92);
  transition: opacity 200ms var(--ease), transform 200ms var(--ease), visibility 200ms var(--ease);
  pointer-events: none;
}

.entry.open:hover .entry-default {
  opacity: 0;
  transform: scale(0.85);
}

.entry.open:hover .entry-hover-overlay {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.hover-status {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-light);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.hover-sublabel {
  font-size: 9.5px;
  font-weight: 500;
  color: #a1a1aa;
  margin-top: 2px;
  letter-spacing: 0.3px;
}

.hover-price {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  margin-top: 3px;
}


/* ═══════════════ CEREMONIAL LOCK ANIMATION ═══════════════ */

.entry.just-claimed .entry-letter {
  animation: sealStamp 1.6s var(--ease-slow) forwards;
}

@keyframes sealStamp {
  0%   { color: var(--text); transform: scale(1); opacity: 1; }
  20%  { color: var(--text); transform: scale(1.12); opacity: 1; }
  60%  { color: var(--accent); transform: scale(1.04); }
  100% { color: var(--accent); transform: scale(1); }
}

.entry.just-claimed .entry-owner,
.entry.just-claimed .entry-detail {
  animation: revealSlow 1.2s 0.6s var(--ease-slow) both;
}

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


/* ═══════════════ KEY PULSE ═══════════════ */

.entry.key-active {
  animation: entryFlash 350ms var(--ease);
}
@keyframes entryFlash {
  50% { background: rgba(217,4,41,0.12); }
}


/* ═══════════════ MANIFESTO OVERLAY ═══════════════ */

.manifesto-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(9, 9, 11, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 400ms var(--ease-slow);
}
.manifesto-overlay.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.manifesto-body {
  width: 100%;
  max-width: 620px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  border: 1px solid rgba(217, 4, 41, 0.25);
  border-top: 4px solid var(--accent);
  padding: 40px 44px;
  background: #ffffff;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  text-align: left;
}

.manifesto-dismiss {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: 1px solid transparent;
  color: var(--text-3);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 250ms var(--ease);
}
.manifesto-dismiss:hover { color: var(--text); background: rgba(0,0,0,0.06); }

/* ═══════════════ CHARTER MODAL ═══════════════ */

.manifesto-header-badge {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 20px;
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 8px;
  display: inline-block;
}

.charter-articles {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.charter-article {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.charter-article:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.article-num {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
}

.article-text {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
}

.section-content p {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-3);
}

.section-content p strong {
  color: var(--accent);
  font-weight: 700;
}

.manifesto-footer-note {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-size: 12px;
  font-style: italic;
  color: var(--accent);
  text-align: center;
}


/* ═══════════════ REGISTRATION FORM ═══════════════ */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(9, 9, 11, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 350ms var(--ease-slow), visibility 350ms var(--ease-slow);
}
.modal-overlay.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-form-container {
  width: 100%;
  max-width: 440px;
  text-align: center;
  position: relative;
  transform: translateY(16px) scale(0.98);
  transition: transform 400ms var(--ease);
  border: 1px solid rgba(217, 4, 41, 0.25);
  border-top: 4px solid var(--accent);
  padding: 40px 36px 36px;
  background: #ffffff;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25);
  border-radius: 8px;
}
.modal-overlay.visible .modal-form-container {
  transform: translateY(0) scale(1);
}

.modal-dismiss {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 32px;
  height: 32px;
  background: none;
  border: 1px solid transparent;
  color: var(--text-3);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  transition: all 250ms var(--ease);
}
.modal-dismiss:hover {
  color: var(--text);
  background: rgba(0,0,0,0.06);
  border-color: var(--rule);
}

.modal-heading {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.modal-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 90px;
  border: 2px solid var(--accent);
  border-radius: 8px;
  background: rgba(217, 4, 41, 0.04);
  margin-bottom: 12px;
}

.modal-letter-display {
  font-weight: 800;
  font-size: 64px;
  line-height: 1;
  color: var(--text);
  letter-spacing: -1px;
}

.modal-price-display {
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
  margin: 10px 0 4px;
  letter-spacing: -0.5px;
}

.modal-price-note {
  font-size: 12px;
  font-style: italic;
  color: var(--text-3);
  margin-bottom: 24px;
}

.modal-rule {
  border: none;
  height: 1px;
  background: var(--rule);
  margin-bottom: 24px;
}

.modal-fields {
  text-align: left;
  margin-bottom: 24px;
}

.field-group {
  margin-bottom: 20px;
  position: relative;
}

.field-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 6px;
}

.field-input {
  width: 100%;
  padding: 12px 14px;
  background: #f4f4f5;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  outline: none;
  transition: all 250ms var(--ease);
}
.field-input::placeholder {
  color: var(--text-4);
  font-style: italic;
}
.field-input:focus {
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(217, 4, 41, 0.12);
}

/* Live URL Logo Preview Card */
.url-logo-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 8px 12px;
  background: rgba(217, 4, 41, 0.05);
  border: 1px dashed var(--accent);
  border-radius: 4px;
  animation: fadeIn 300ms var(--ease);
}

.preview-logo-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 2px;
  background: #ffffff;
  padding: 2px;
}

.preview-logo-text {
  font-size: 12px;
  font-family: var(--mono);
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.2px;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.file-btn {
  width: 100%;
  padding: 14px 20px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 250ms var(--ease);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.file-btn.stripe-pay-btn {
  background: var(--accent);
  border: none;
  color: #ffffff;
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.8px;
  border-radius: 6px;
  padding: 16px 20px;
  box-shadow: 0 4px 18px rgba(217, 4, 41, 0.35);
  gap: 10px;
}
.file-btn.stripe-pay-btn:hover {
  background: var(--accent-light);
  box-shadow: 0 6px 24px rgba(217, 4, 41, 0.5);
  transform: translateY(-2px);
}
.stripe-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Trust Badges & Ceremony Overlays */
.modal-trust-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  flex-wrap: wrap;
}

.trust-item {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 4px;
}

.trust-icon {
  font-size: 12px;
}

.ceremony-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 300ms var(--ease), visibility 300ms var(--ease);
  z-index: 10;
}

.modal-form-container.processing .processing-ceremony {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-form-container.success .success-ceremony {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.ceremony-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(217, 4, 41, 0.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
  margin-bottom: 12px;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.ceremony-seal {
  font-size: 32px;
  color: #16a34a;
  margin-bottom: 8px;
}

.ceremony-text, .ceremony-confirmed {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.ceremony-detail {
  font-size: 13px;
  color: var(--text-3);
  text-align: center;
}


/* ═══════════════ TOP NAVIGATION ═══════════════ */

.main-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.nav-link {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-3);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: all 200ms var(--ease);
}

.nav-link:hover {
  color: var(--text);
  background: rgba(0, 0, 0, 0.04);
}

.nav-link.active {
  color: #ffffff;
  background: var(--text);
}


/* ═══════════════ LIVE REGISTRY AUDIT LEDGER ═══════════════ */

.ledger-container {
  width: 100%;
  max-width: 980px;
  margin: 24px auto 32px;
  background: var(--bg-card);
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.ledger-header-row {
  display: grid;
  grid-template-columns: 75px 1fr 100px 190px 140px;
  padding: 12px 24px;
  background: #f4f4f5;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-4);
  align-items: center;
}

.ledger-header-row .col-letter {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-4);
}

.ledger-row {
  display: grid;
  grid-template-columns: 75px 1fr 100px 190px 140px;
  padding: 14px 24px;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: background 200ms var(--ease);
}

.ledger-row:last-child {
  border-bottom: none;
}

.ledger-row.claimed-row:hover {
  background: rgba(217, 4, 41, 0.02);
}

.ledger-row.unclaimed-row {
  background: rgba(0, 0, 0, 0.01);
}

.ledger-row.next-slot {
  background: rgba(217, 4, 41, 0.035);
  border-left: 3px solid var(--accent);
}

.col-index {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.col-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--text);
}

.col-brand img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 4px;
}

.col-letter {
  font-family: var(--mono);
  font-weight: 800;
  font-size: 18px;
  color: var(--text);
}

.col-date {
  font-size: 13px;
  color: var(--text-3);
  font-weight: 500;
}

.col-price {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

/* History Closing Statement */
.history-closing-statement {
  text-align: center;
  margin: 36px auto 24px;
  padding: 12px 24px;
}

.closing-quote {
  font-style: italic;
  font-size: 14px;
  color: var(--text-3);
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.closing-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.5px;
}


/* ═══════════════ FOOTER ═══════════════ */

.registry-footer {
  text-align: center;
  padding-top: 6px;
}

.registry-footer p {
  font-size: 12.5px;
  color: var(--text-3);
  line-height: 1.6;
  font-weight: 500;
  max-width: 860px;
  margin: 0 auto;
}

.manifesto-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  font-style: normal;
  color: var(--accent);
  text-decoration: underline;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  margin-left: 6px;
  transition: color 200ms;
}
.manifesto-link:hover {
  color: var(--accent-light);
}

.key-indicator {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  z-index: 400;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 22px;
  background: #09090b;
  border: 1.5px solid var(--accent);
  box-shadow: 0 10px 30px rgba(217, 4, 41, 0.25);
  border-radius: 9999px;
  opacity: 0;
  visibility: hidden;
  transition: all 300ms var(--ease);
}
.key-indicator.visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.ki-letter {
  font-weight: 700;
  font-size: 18px;
  color: var(--accent-light);
}

.ki-action {
  font-size: 13px;
  font-style: italic;
  color: #a1a1aa;
}
.ki-action .ki-owner { color: #ffffff; font-style: normal; font-weight: 600; }
