/* Proveno — Dark Premium Design System */
:root {
  --bg: #0a0a0a;
  --bg-card: #111111;
  --bg-card-hover: #181818;
  --bg-input: #1a1a1a;
  --border: #1e1e1e;
  --border-hover: #333333;
  --text: #f0f0f0;
  --text-primary: #f0f0f0;
  --text-muted: #777777;
  --text-dim: #444444;
  --accent: #c9a94e;
  --accent-hover: #dbb95e;
  --accent-dim: rgba(201,169,78,0.12);
  --success: #22c55e;
  --error: #ef4444;
  --warning: #f59e0b;
  --radius: 12px;
  --radius-sm: 8px;
}

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
  word-break: break-word;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; }

/* Layout */
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.page { min-height: 100vh; display: flex; flex-direction: column; }
.page-content { flex: 1; padding: 40px 0; }

/* ─── NAVIGATION ─────────────────────────────────────── */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0; border-bottom: 1px solid var(--border);
  position: relative;
}
.nav-brand {
  font-size: 20px; font-weight: 700; color: var(--text);
  letter-spacing: 0.5px; flex-shrink: 0;
}
.nav-brand span { color: var(--accent); }

.nav-links {
  display: flex; align-items: center; gap: 24px;
}
.nav-links a {
  color: var(--text-muted); font-size: 14px; font-weight: 500;
  transition: color 0.2s; white-space: nowrap;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--accent); }
.nav-admin { color: var(--accent) !important; }

/* Hamburger button */
.nav-hamburger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  width: 40px; height: 40px; background: transparent;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  cursor: pointer; gap: 5px; flex-shrink: 0;
}
.nav-hamburger span {
  display: block; width: 18px; height: 1.5px;
  background: var(--text-muted); transition: all 0.25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav drawer */
.nav-mobile {
  display: none;
  position: absolute; top: calc(100% + 1px); left: -24px; right: -24px;
  background: var(--bg-card); border-bottom: 1px solid var(--border);
  padding: 20px 24px; z-index: 100;
  flex-direction: column; gap: 4px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  color: var(--text-muted); font-size: 15px; font-weight: 500;
  padding: 12px 0; border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { color: var(--text); }
.nav-mobile a.active { color: var(--accent); }
.nav-mobile .nav-admin { color: var(--accent) !important; }

/* ─── BUTTONS ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; cursor: pointer;
  border: none; transition: all 0.2s; gap: 8px;
  text-decoration: none; white-space: nowrap; line-height: 1;
  font-family: inherit;
}
.btn-primary {
  background: var(--accent); color: #0a0a0a;
}
.btn-primary:hover { background: var(--accent-hover); color: #0a0a0a; }
.btn-secondary {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--border-hover); background: var(--bg-card); }
.btn-ghost {
  background: transparent; color: var(--text-muted);
  border: 1px solid transparent;
}
.btn-ghost:hover { color: var(--text); border-color: var(--border); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 16px 32px; font-size: 15px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-block { width: 100%; }

/* ─── CARDS ───────────────────────────────────────────── */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  transition: border-color 0.2s;
}
.card-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
}
.card-title { font-size: 16px; font-weight: 600; }

/* ─── FORMS ───────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; font-size: 12px; font-weight: 600;
  color: var(--text-muted); margin-bottom: 8px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.form-input {
  width: 100%; padding: 12px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg-input);
  color: var(--text); font-size: 15px; outline: none;
  transition: border-color 0.2s; font-family: inherit;
}
.form-input:focus { border-color: var(--accent); }
.form-input::placeholder { color: var(--text-dim); }

/* ─── BADGES ──────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; padding: 4px 10px;
  border-radius: 20px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.7px;
}
.badge-minted { background: rgba(201,169,78,0.12); color: var(--accent); }
.badge-owned { background: rgba(34,197,94,0.12); color: var(--success); }
.badge-listed { background: rgba(245,158,11,0.12); color: var(--warning); }
.badge-active { background: rgba(34,197,94,0.12); color: var(--success); }
.badge-sold { background: rgba(136,136,136,0.12); color: var(--text-muted); }

/* ─── TABLE ───────────────────────────────────────────── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; min-width: 480px; }
th {
  text-align: left; padding: 12px 16px; font-size: 11px;
  font-weight: 700; color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 0.7px; border-bottom: 1px solid var(--border);
}
td {
  padding: 14px 16px; font-size: 14px; border-bottom: 1px solid var(--border);
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg-card-hover); }

/* ─── HERO ────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 100px 0 80px;
  max-width: 800px;
  margin: 0 auto;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 28px;
}
.hero-eyebrow::before, .hero-eyebrow::after {
  content: '';
  display: block; width: 24px; height: 1px;
  background: var(--accent); opacity: 0.4;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 24px;
  color: var(--text);
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.75;
}
.hero-ctas {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 52px;
}
.hero-proof {
  display: flex; gap: 32px; justify-content: center; flex-wrap: wrap;
  font-size: 13px; color: var(--text-dim);
}
.hero-proof span {
  display: flex; align-items: center; gap: 6px;
}

/* ─── EXPLAINER SECTION ───────────────────────────────── */
.explainer-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 64px 0;
  text-align: center;
}
.section-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 20px;
}
.explainer-body {
  font-size: 18px; line-height: 1.8; color: var(--text-muted);
  max-width: 680px; margin: 0 auto;
}
.explainer-body strong { color: var(--text); font-weight: 600; }

/* ─── HOW IT WORKS ────────────────────────────────────── */
.how-section {
  padding: 80px 0 60px;
}
.how-title {
  font-size: 32px; font-weight: 700; letter-spacing: -0.5px;
  text-align: center; margin-bottom: 52px;
}
.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.step {
  background: var(--bg); padding: 36px 32px;
  position: relative;
}
.step-num {
  font-size: 48px; font-weight: 800; color: var(--border-hover);
  line-height: 1; margin-bottom: 20px;
  font-family: 'DM Mono', monospace;
  letter-spacing: -2px;
}
.step h3 {
  font-size: 16px; font-weight: 700; margin-bottom: 12px; color: var(--text);
}
.step p {
  font-size: 14px; color: var(--text-muted); line-height: 1.7;
}

/* ─── FEATURES ────────────────────────────────────────── */
.features {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; padding: 0 0 80px;
}
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
  transition: border-color 0.2s, background 0.2s;
}
.feature-card:hover {
  border-color: var(--accent-hover);
  background: var(--bg-card-hover);
}
.feature-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--accent-dim); display: flex; align-items: center;
  justify-content: center; font-size: 20px;
  margin-bottom: 20px;
}
.feature-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

/* ─── CTA STRIP ───────────────────────────────────────── */
.cta-strip {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 56px 48px;
  text-align: center;
  margin-bottom: 80px;
  background: var(--bg-card);
}
.cta-strip h2 {
  font-size: 28px; font-weight: 700; letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.cta-strip p {
  color: var(--text-muted); font-size: 15px; margin-bottom: 32px;
}
.cta-strip-buttons {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}

/* ─── ADMIN LINK ──────────────────────────────────────── */
.admin-link-subtle {
  text-align: center; padding: 24px 0 32px;
}
.admin-link-subtle a {
  font-size: 11px; color: var(--text-dim);
  transition: color 0.2s; letter-spacing: 0.5px;
}
.admin-link-subtle a:hover { color: var(--text-muted); }

/* ─── STATS GRID ──────────────────────────────────────── */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px; margin: 32px 0;
}
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; text-align: center;
}
.stat-number { font-size: 32px; font-weight: 700; color: var(--accent); }
.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-minted .stat-number { color: var(--accent); }
.stat-owned .stat-number { color: var(--success); }
.stat-listed .stat-number { color: var(--warning); }

/* ─── CERTIFICATE CARDS ───────────────────────────────── */
.cert-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color 0.2s;
}
.cert-card:hover { border-color: var(--border-hover); }
.cert-serial {
  font-family: 'DM Mono', 'SF Mono', monospace;
  font-size: 18px; font-weight: 500; color: var(--accent);
  letter-spacing: 0.5px;
}
.cert-meta {
  display: flex; gap: 16px; font-size: 13px; color: var(--text-muted);
}
.cert-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

/* ─── VERIFY RESULT ───────────────────────────────────── */
.verify-result {
  margin-top: 24px; padding: 24px; border-radius: var(--radius);
  border: 1px solid var(--border);
}
.verify-success { border-color: var(--success); background: rgba(34,197,94,0.05); }
.verify-fail { border-color: var(--error); background: rgba(239,68,68,0.05); }

/* ─── AUTH ────────────────────────────────────────────── */
.auth-container { max-width: 420px; margin: 80px auto; }

/* ─── EMPTY STATE ─────────────────────────────────────── */
.empty-state {
  text-align: center; padding: 60px 0; color: var(--text-muted);
}
.empty-state .icon { font-size: 48px; margin-bottom: 16px; opacity: 0.4; }
.empty-state h3 { font-size: 18px; color: var(--text); margin-bottom: 8px; font-weight: 600; }
.empty-state p { font-size: 14px; }

/* ─── ALERTS ──────────────────────────────────────────── */
.alert {
  padding: 14px 18px; border-radius: var(--radius-sm);
  font-size: 14px; line-height: 1.6;
}
.alert-success { background: rgba(34,197,94,0.08); color: var(--success); border: 1px solid rgba(34,197,94,0.2); }
.alert-error { background: rgba(239,68,68,0.08); color: var(--error); border: 1px solid rgba(239,68,68,0.2); }
.alert-info { background: rgba(201,169,78,0.08); color: var(--accent); border: 1px solid rgba(201,169,78,0.2); }
.alert-warn { background: rgba(245,158,11,0.08); color: var(--warning); border: 1px solid rgba(245,158,11,0.2); }

/* ─── SPINNER ─────────────────────────────────────────── */
.spinner {
  display: inline-block; width: 16px; height: 16px;
  border: 2px solid var(--border-hover); border-top-color: var(--accent);
  border-radius: 50%; animation: spin 0.6s linear infinite;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── FOOTER ──────────────────────────────────────────── */
.footer {
  padding: 32px 0; border-top: 1px solid var(--border);
  text-align: center; color: var(--text-dim); font-size: 13px;
}

/* ─── SECTION TITLES ──────────────────────────────────── */
.section-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 28px; gap: 16px;
}
.section-title { font-size: 24px; font-weight: 700; letter-spacing: -0.3px; }
.section-subtitle { font-size: 14px; color: var(--text-muted); margin-top: 6px; }

/* ─── EXCHANGE LISTINGS ───────────────────────────────── */
.listing-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; transition: border-color 0.2s;
}
.listing-card:hover { border-color: var(--border-hover); }
.listing-price { font-size: 20px; font-weight: 700; color: var(--accent); }
.listing-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

/* ─── ADMIN ───────────────────────────────────────────── */
.admin-actions-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}
.admin-action-card { display: flex; flex-direction: column; }
.admin-action-card .card-header { margin-bottom: 0; }
.admin-filters { padding: 16px 0 8px; }
.admin-search-row {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
}
.admin-search-input { flex: 1; min-width: 200px; }
.admin-filter-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.filter-tab {
  padding: 6px 14px; border-radius: 20px; font-size: 12px;
  font-weight: 600; cursor: pointer; border: 1px solid var(--border);
  background: transparent; color: var(--text-muted); transition: all 0.2s;
  font-family: inherit;
}
.filter-tab:hover { border-color: var(--border-hover); color: var(--text); }
.filter-tab.active { background: var(--accent); color: #0a0a0a; border-color: var(--accent); }
.cert-serial-sm {
  font-family: 'DM Mono', 'SF Mono', monospace;
  color: var(--accent); font-weight: 500; font-size: 13px;
}

/* ─── PAGINATION ──────────────────────────────────────── */
.admin-pagination {
  display: flex; justify-content: center; gap: 6px; padding: 16px 0 8px;
}
.pag-btn {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: transparent;
  color: var(--text-muted); font-size: 14px; cursor: pointer;
  transition: all 0.2s; display: flex; align-items: center;
  justify-content: center; font-family: inherit;
}
.pag-btn:hover { border-color: var(--border-hover); color: var(--text); }
.pag-btn.pag-active { background: var(--accent); color: #0a0a0a; border-color: var(--accent); }

/* ─── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .hero { padding: 72px 0 60px; }
  .hero h1 { font-size: clamp(36px, 10vw, 56px); letter-spacing: -1.5px; }
  .hero-sub { font-size: 16px; }
  .hero-proof { gap: 20px; font-size: 12px; }

  .explainer-section { padding: 48px 0; }
  .explainer-body { font-size: 16px; }

  .how-section { padding: 56px 0 40px; }
  .how-title { font-size: 26px; margin-bottom: 32px; }
  .how-steps {
    grid-template-columns: 1fr;
  }
  .step { padding: 28px 24px; }
  .step-num { font-size: 36px; margin-bottom: 12px; }

  .features { grid-template-columns: 1fr; padding-bottom: 48px; }

  .cta-strip { padding: 40px 24px; margin-bottom: 48px; }
  .cta-strip h2 { font-size: 22px; }

  .cert-grid { grid-template-columns: 1fr; }
  .listing-grid { grid-template-columns: 1fr; }
  .listing-card { flex-direction: column; align-items: flex-start; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-actions-grid { grid-template-columns: 1fr; }
  .admin-search-row { flex-direction: column; align-items: stretch; }
  .admin-filter-tabs { width: 100%; justify-content: flex-start; }

  .section-header { flex-direction: column; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero { padding: 56px 0 48px; }
  .hero h1 { font-size: 34px; letter-spacing: -1px; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .hero-ctas .btn { width: 100%; max-width: 320px; }
  .cta-strip-buttons { flex-direction: column; align-items: center; }
  .cta-strip-buttons .btn { width: 100%; max-width: 320px; }
  .hero-proof { flex-direction: column; gap: 10px; align-items: center; }
  .auth-container { margin: 48px auto; }
  .card { padding: 20px 16px; }
}

/* ─── UTILITIES ───────────────────────────────────────── */
.hidden { display: none !important; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-4 { margin-bottom: 16px; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 13px; }
.mono { font-family: 'DM Mono', 'SF Mono', 'Fira Code', monospace; }
.flex { display: flex; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
