/* ==========================================================================
   EQUILI VAULT // OFFICIAL DESIGN SYSTEM
   ========================================================================== */
:root {
  --bg-primary: #06090f;
  --bg-secondary: #0c111d;
  --bg-card: #111827;
  --bg-card-hover: #172033;
  --border-subtle: #1e293b;
  --border-active: #334155;

  --brand-cyan: #0284c7;
  --brand-cyan-light: #38bdf8;
  --brand-cyan-glow: rgba(2, 132, 199, 0.28);

  --text-main: #f8fafc;
  --text-dim: #94a3b8;
  --text-muted: #64748b;

  --accent-green: #10b981;
  --accent-gold: #f59e0b;
  --accent-red: #ef4444;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Navigation Header */
.top-nav {
  height: 72px;
  background-color: rgba(6, 9, 15, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-container {
  max-width: 1240px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--brand-cyan), #0369a1);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 13px;
  color: #fff;
  letter-spacing: -0.5px;
  box-shadow: 0 0 16px var(--brand-cyan-glow);
}

.brand-text {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.brand-text .accent {
  color: var(--brand-cyan-light);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-item {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  transition: color 0.2s;
  position: relative;
}

.nav-item:hover,
.nav-item.active {
  color: var(--text-main);
}

.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: -25px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brand-cyan-light);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.key-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-green);
}

#lock-vault-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 12px;
  margin-left: 6px;
  transition: color 0.2s;
}

#lock-vault-btn:hover {
  color: var(--accent-red);
}

.portal-cta {
  background: var(--bg-card);
  border: 1px solid var(--border-active);
  padding: 8px 15px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-cyan-light);
  transition: all 0.2s;
}

.portal-cta:hover {
  background: var(--brand-cyan);
  color: #fff;
  border-color: var(--brand-cyan);
}

/* Main Layout */
.main-content {
  flex: 1;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 24px 72px;
}

/* Hero Banner (Catalog & Public Landing) */
.hero-banner {
  background: radial-gradient(circle at top right, rgba(2, 132, 199, 0.16), transparent 60%), var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 36px;
  margin-bottom: 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--brand-cyan-light);
  letter-spacing: 1.5px;
  font-weight: 700;
  margin-bottom: 8px;
}

.hero-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.7px;
  margin-bottom: 8px;
}

.hero-sub {
  color: var(--text-dim);
  font-size: 15px;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--brand-cyan);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  background: #0369a1;
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-main);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 8px;
  border: 1px solid var(--border-active);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary:hover {
  border-color: var(--brand-cyan-light);
  background: var(--bg-card-hover);
}

/* Page Header */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.page-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.6px;
}

.page-sub {
  color: var(--text-dim);
  font-size: 14px;
  margin-top: 4px;
  max-width: 640px;
}

.sync-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  padding: 6px 12px;
  border-radius: 6px;
}

.indicator.live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-cyan-light);
  box-shadow: 0 0 6px var(--brand-cyan-light);
}

/* KPI Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 24px;
  transition: transform 0.2s, border-color 0.2s;
}

.kpi-card:hover {
  border-color: var(--border-active);
  transform: translateY(-2px);
}

.kpi-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.kpi-label {
  font-size: 12px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.5px;
}

.kpi-val {
  font-size: 34px;
  font-weight: 800;
  margin-top: 10px;
  font-family: var(--font-mono);
  letter-spacing: -1px;
}

.kpi-val.green { color: var(--accent-green); }
.kpi-val.gold { color: var(--accent-gold); }
.kpi-val.blue { color: var(--brand-cyan-light); }

.kpi-footnote {
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 6px;
}

/* Strategy Columns */
.columns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.strategy-col {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.col-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.col-title-wrap h2 {
  font-size: 16px;
  font-weight: 700;
  margin-top: 4px;
}

.col-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.col-tag.fire { color: #f87171; }
.col-tag.diamond { color: var(--brand-cyan-light); }
.col-tag.vault { color: var(--accent-gold); }

.col-badge {
  font-size: 11px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-dim);
  padding: 4px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
}

/* Vault Card Items */
.card-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 12px;
  transition: all 0.2s;
}

.card-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-active);
}

.card-thumb {
  width: 54px;
  height: 76px;
  object-fit: cover;
  border-radius: 4px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.card-details {
  flex: 1;
  min-width: 0;
}

.card-player {
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-sub {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 2px;
}

.card-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}

.card-price {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  color: var(--accent-green);
}

.card-sku {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.list-toggle-btn {
  margin-top: 8px;
  background: rgba(2, 132, 199, 0.12);
  border: 1px solid rgba(2, 132, 199, 0.35);
  color: var(--brand-cyan-light);
  font-size: 11px;
  font-family: var(--font-mono);
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.list-toggle-btn:hover {
  background: var(--brand-cyan);
  color: #fff;
}

.list-toggle-btn.listed {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: var(--accent-green);
}

/* Catalog & Merch Product Grids */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.search-input {
  flex: 1;
  min-width: 240px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 11px 14px;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
}

.search-input:focus {
  border-color: var(--brand-cyan-light);
}

.filter-select {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 11px 14px;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
  cursor: pointer;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, border-color 0.2s;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-active);
}

.product-img-wrap {
  height: 280px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.product-img-wrap img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  border-radius: 6px;
}

.custody-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(6, 9, 15, 0.88);
  border: 1px solid var(--border-active);
  color: var(--brand-cyan-light);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
}

.product-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.product-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.product-desc {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 16px;
  flex: 1;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.product-price {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 800;
  color: var(--accent-green);
}

.buy-btn {
  background: var(--brand-cyan);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 15px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.buy-btn:hover {
  background: #0369a1;
}

/* About & Protocol Cards */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 28px;
}

.info-step {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--brand-cyan-light);
  font-weight: 700;
  margin-bottom: 8px;
}

.info-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.info-card p {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.6;
}

.fee-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 28px;
  overflow-x: auto;
}

.fee-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.fee-table th,
.fee-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 14px;
}

.fee-table th {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Loader & Empty States */
.empty-col {
  padding: 32px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  font-style: italic;
}

.loader-box {
  padding: 80px 0;
  text-align: center;
}

.radar-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(2, 132, 199, 0.15);
  border-top-color: var(--brand-cyan-light);
  border-radius: 50%;
  animation: spin 0.8s cubic-bezier(0.6, 0.2, 0.4, 0.8) infinite;
  margin: 0 auto 20px;
}

.loader-title {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 1.5px;
  color: var(--text-main);
  margin-bottom: 4px;
}

.loader-sub {
  color: var(--text-dim);
  font-size: 13px;
}

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

.alert-banner {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 24px;
  font-family: var(--font-mono);
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 9, 15, 0.88);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-active);
  border-radius: 16px;
  max-width: 450px;
  width: 100%;
  padding: 36px 30px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
}

.modal-header {
  text-align: center;
  margin-bottom: 24px;
}

.lock-shield {
  font-size: 32px;
  margin-bottom: 12px;
}

.modal-header h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.modal-header p {
  color: var(--text-dim);
  font-size: 13px;
  margin-top: 6px;
  line-height: 1.5;
}

.input-wrapper {
  margin-bottom: 18px;
}

.input-wrapper label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.input-wrapper input {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-wrapper input.center-key {
  text-align: center;
  font-size: 18px;
  letter-spacing: 2px;
}

.input-wrapper input:focus {
  border-color: var(--brand-cyan-light);
  box-shadow: 0 0 0 3px var(--brand-cyan-glow);
}

.cta-btn {
  width: 100%;
  background: var(--brand-cyan);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  padding: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 0.2s;
}

.cta-btn:hover {
  background-color: #0369a1;
}

.modal-footer {
  text-align: center;
  margin-top: 18px;
  font-size: 11px;
  color: var(--text-muted);
}

/* Mobile Nav Bar */
.mobile-nav {
  display: none;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 16px;
  gap: 16px;
  overflow-x: auto;
}

.mobile-nav a {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  white-space: nowrap;
}

.mobile-nav a.active {
  color: var(--brand-cyan-light);
}

/* Site Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  padding: 28px 24px;
  margin-top: auto;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .mobile-nav {
    display: flex;
  }
}
