:root {
  --bg: #0b0d12;
  --surface: #13161c;
  --surface-2: #1a1e26;
  --border: #2a303c;
  --text: #f4f6fb;
  --muted: #9aa3b2;
  --gold: #d4af37;
  --gold-light: #e9c94b;
  --green: #22c55e;
  --red: #ef4444;
  --radius: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

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

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 13, 18, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--gold);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  padding: 6px 0;
}

.hamburger span {
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.2s;
}

.hamburger span:nth-child(1) { width: 100%; }
.hamburger span:nth-child(2) { width: 70%; }
.hamburger span:nth-child(3) { width: 90%; }

.hamburger:hover span { width: 100%; }

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 5, 8, 0.6);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 250;
}

.nav-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.nav-links {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  background: #101319;
  border-right: 1px solid var(--border);
  box-shadow: 8px 0 32px rgba(0, 0, 0, 0.55);
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  padding: 88px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 300;
  overflow-y: auto;
}

.nav-links.open {
  transform: translateX(0);
}

.nav-links a,
.nav-links span {
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--text);
  transition: 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--surface-2);
  color: var(--text);
}

.nav-links .protected {
  color: var(--gold);
}

.nav-links .logout {
  margin-top: auto;
  color: var(--red);
}

.nav-links .logout:hover {
  background: rgba(239, 68, 68, 0.12);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: 0.15s;
}

.btn-primary {
  background: var(--gold);
  color: #000;
}

.btn-primary:hover {
  background: var(--gold-light);
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* Hero */
.hero {
  padding: 60px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.12), transparent 70%);
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.1;
  font-weight: 800;
  max-width: 720px;
}

.hero h1 span {
  color: var(--gold);
}

.hero p {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 560px;
  margin-top: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px;
  margin-top: 60px;
}

.hero-stats div strong {
  display: block;
  font-size: 1.5rem;
  color: var(--text);
}

.hero-stats div span {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Section utility */
.section {
  padding: 80px 0;
}

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 14px;
}

.section-title span {
  color: var(--gold);
}

.section-subtitle {
  color: var(--muted);
  max-width: 620px;
  font-size: 1.05rem;
  margin-bottom: 42px;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: 0.15s;
}

.card:hover {
  border-color: rgba(212, 175, 55, 0.4);
  transform: translateY(-2px);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.card p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  counter-reset: step;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  position: relative;
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--gold);
  opacity: 0.7;
}

.step h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.step p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Table */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th, td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  color: var(--muted);
  font-weight: 500;
  background: var(--surface-2);
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.asset-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.asset-cell img,
.asset-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
}

.asset-cell span {
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
}

.change-up { color: var(--green); }
.change-down { color: var(--red); }

/* Forms */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 480px;
  margin: 0 auto;
}

.form-card h2 {
  margin-bottom: 6px;
}

.form-card p {
  color: var(--muted);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.95rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-group input[type="date"] {
  color-scheme: dark;
}

.form-group small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.8rem;
}

/* Alerts */
.flash {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 18px;
  font-size: 0.92rem;
}

.flash.success { background: rgba(34, 197, 94, 0.12); color: var(--green); }
.flash.error { background: rgba(239, 68, 68, 0.12); color: var(--red); }
.flash.warning { background: rgba(234, 179, 8, 0.12); color: #facc15; }
.flash.info { background: rgba(59, 130, 246, 0.12); color: #60a5fa; }

/* Dashboard */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.kyc-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.kyc-status.verified {
  background: rgba(34, 197, 94, 0.12);
  color: var(--green);
}

.kyc-status.pending {
  background: rgba(234, 179, 8, 0.12);
  color: #facc15;
}

.order-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--surface-2);
}

.order-status.completed { color: var(--green); }
.order-status.crypto_sent { color: var(--green); }
.order-status.cancelled { color: var(--red); }
.order-status.pending { background: rgba(250, 204, 21, 0.16); color: #facc15; }
.order-status.confirmed { background: rgba(34, 197, 94, 0.16); color: var(--green); }
.order-status.declined { background: rgba(239, 68, 68, 0.16); color: var(--red); }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a:hover {
  color: var(--gold);
}

/* Page layout */
.page {
  padding: 48px 0 80px;
}

.page h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.page p.lead {
  color: var(--muted);
  margin-bottom: 32px;
}

/* Split image + text sections */
.split {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
}

.media-frame {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 320px;
}

.prose p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.prose strong {
  color: var(--text);
}

.prose h3 {
  font-size: 1.4rem;
  margin-bottom: 14px;
}

/* FAQ */
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 14px;
}

.faq summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details[open] summary {
  margin-bottom: 10px;
}

.faq p {
  color: var(--muted);
  font-size: 0.95rem;
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* Site layering */
.site-layer {
  position: relative;
  z-index: 1;
}

/* Gradient text */
.gradient-text {
  color: var(--gold);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Smoother image interactions */
.media-frame img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.media-frame:hover img {
  transform: scale(1.04);
}

/* Overlapping split layout */
@media (min-width: 900px) {
  .split.overlap .prose {
    margin-right: -60px;
    padding: 34px;
    background: rgba(11, 13, 18, 0.72);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    z-index: 2;
  }

  .split.overlap-right .prose {
    margin-left: -60px;
    margin-right: 0;
  }
}

/* Section flow tweaks */
.section {
  padding: 110px 0;
  position: relative;
}

/* Dynamic background layer */
.bg-shapes {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.shape {
  position: absolute;
  display: grid;
  place-items: center;
  font-weight: 800;
  opacity: 0.3;
  user-select: none;
  pointer-events: none;
}

.shape-goldbar {
  width: 130px;
  height: 52px;
  border-radius: 7px;
  background: linear-gradient(135deg, #b8860b 0%, #daa520 30%, #ffd700 55%, #c59d0b 100%);
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.45);
  transform: rotate(-12deg);
}

.shape-btc {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 45px rgba(245, 158, 11, 0.5);
}

@keyframes float-1 {
  0%, 100% { transform: translateY(0) rotate(-12deg); }
  25% { transform: translateY(-18px) translateX(8px) rotate(-8deg); }
  50% { transform: translateY(-8px) translateX(-10px) rotate(-14deg); }
  75% { transform: translateY(-24px) translateX(4px) rotate(-6deg); }
}

@keyframes float-2 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-22px) translateX(-12px) rotate(5deg); }
  66% { transform: translateY(-10px) translateX(10px) rotate(-3deg); }
}

@keyframes float-3 {
  0%, 100% { transform: translateY(0) rotate(-12deg); }
  20% { transform: translateY(-12px) translateX(16px) rotate(-6deg); }
  40% { transform: translateY(-28px) translateX(-8px) rotate(-16deg); }
  60% { transform: translateY(-6px) translateX(6px) rotate(-10deg); }
  80% { transform: translateY(-20px) translateX(-14px) rotate(-4deg); }
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.22;
  animation: pulse 10s ease-in-out infinite;
}

.blob-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--gold), transparent 70%);
  top: -100px;
  right: -80px;
}

.blob-2 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, #3b82f6, transparent 70%);
  bottom: 10%;
  left: -100px;
  animation-delay: -4s;
}

.blob-3 {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, #8b5cf6, transparent 70%);
  top: 45%;
  right: 10%;
  animation-delay: -7s;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.22; }
  50% { transform: scale(1.12); opacity: 0.14; }
}

/* Live price ticker */
.ticker-wrap {
  overflow: hidden;
  white-space: nowrap;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  margin: 0 0 32px;
}

.ticker-track {
  display: inline-flex;
  gap: 48px;
  animation: ticker-scroll 28s linear infinite;
  will-change: transform;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0 8px;
}

.ticker-symbol {
  color: var(--gold);
  font-weight: 800;
  text-transform: uppercase;
}

@keyframes ticker-scroll {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

.ticker-logo {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.asset-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-2);
}

.ticker-wrap-footer {
  border-bottom: none;
  border-top: 1px solid var(--border);
  margin: 0;
  background: transparent;
}

/* Visual stat cards */
.stat-visual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
}

.stat-visual {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 18px;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.stat-visual:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}

.stat-icon-circle {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #b8860b);
  display: grid;
  place-items: center;
  color: #000;
}

.stat-icon-circle svg {
  width: 26px;
  height: 26px;
}

.stat-visual strong {
  display: block;
  font-size: 1.6rem;
  color: var(--text);
  font-weight: 800;
}

.stat-visual span {
  display: block;
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Certification seals */
.cert-seal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.cert-seal {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 22px 24px;
  text-align: center;
  overflow: hidden;
}

.cert-seal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold), #b8860b);
}

.cert-seal-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.18), transparent 70%);
  border: 2px solid var(--gold);
  display: grid;
  place-items: center;
  color: var(--gold);
}

.cert-seal-icon svg {
  width: 30px;
  height: 30px;
}

.cert-seal h3 {
  font-size: 1rem;
  margin-bottom: 10px;
}

.cert-seal p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Mock certificate documents (illustrative/demo only) */
.cert-doc-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  max-width: 920px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .cert-doc-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cert-doc {
  position: relative;
  padding: 10px 6px 8px;
  text-align: center;
  overflow: hidden;
  font-family: Georgia, "Times New Roman", serif;
  border-radius: 4px;
}

.cert-doc-watermark {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-20deg);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 1px 8px;
  border-radius: 4px;
  pointer-events: none;
  white-space: nowrap;
  opacity: 0.5;
}

.cert-doc-seal {
  width: 22px;
  height: 22px;
  margin: 0 auto 5px;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
}

.cert-doc-seal svg {
  width: 12px;
  height: 12px;
}

.cert-doc-title {
  font-size: 0.56rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 2px;
  position: relative;
  z-index: 1;
  line-height: 1.15;
}

.cert-doc-sub {
  font-size: 0.46rem;
  font-style: italic;
  line-height: 1.25;
  position: relative;
  z-index: 1;
  opacity: 0.85;
}

/* v1 — classic gold foil, corner ribbon */
.cert-doc-v1 {
  background: linear-gradient(135deg, #f6ecd2, #ece0bd);
  color: #2a2210;
  border: 1px solid #b8860b;
  outline: 1px solid rgba(184, 134, 11, 0.35);
  outline-offset: -5px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.cert-doc-v1::before {
  content: "";
  position: absolute;
  top: -14px;
  right: -14px;
  width: 28px;
  height: 28px;
  background: #b8860b;
  transform: rotate(45deg);
}
.cert-doc-v1 .cert-doc-seal { color: #7a5c14; }
.cert-doc-v1 .cert-doc-watermark { color: #8a0000; border: 1.5px solid #8a0000; }
.cert-doc-v1 .cert-doc-sub { color: #6b5a2c; }

/* v2 — navy ink stamp, octagon seal */
.cert-doc-v2 {
  background: linear-gradient(135deg, #101a2e, #0a1220);
  color: #dfe6f5;
  border: 1px solid var(--gold);
}
.cert-doc-v2 .cert-doc-seal {
  clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-light);
}
.cert-doc-v2 .cert-doc-watermark { color: rgba(212, 175, 55, 0.35); border: 1.5px solid rgba(212, 175, 55, 0.35); }
.cert-doc-v2 .cert-doc-sub { color: #9aa8c9; }

/* v3 — vintage ledger, hexagon seal, dashed frame */
.cert-doc-v3 {
  background: #f4ead4;
  color: #33291a;
  border: 1.5px dashed #8a6d1f;
}
.cert-doc-v3 .cert-doc-seal {
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  background: rgba(138, 109, 31, 0.18);
  color: #6b5117;
}
.cert-doc-v3 .cert-doc-watermark { color: rgba(51, 41, 26, 0.3); border: 1.5px solid rgba(51, 41, 26, 0.25); }
.cert-doc-v3 .cert-doc-sub { color: #5c4a26; }

/* v4 — wax seal on cream, groove border */
.cert-doc-v4 {
  background: #fbf3e2;
  color: #3a2a12;
  border: 3px groove #c9a24b;
}
.cert-doc-v4 .cert-doc-seal {
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #b0362f, #7a1f1a);
  color: #f2d9a8;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}
.cert-doc-v4 .cert-doc-watermark { color: rgba(122, 31, 26, 0.3); border: 1.5px solid rgba(122, 31, 26, 0.3); }
.cert-doc-v4 .cert-doc-sub { color: #6b4a1e; }

/* v5 — modern minimalist, shield seal */
.cert-doc-v5 {
  background: #fdfbf6;
  color: #1c2333;
  border: 1px solid var(--gold);
  font-family: system-ui, -apple-system, sans-serif;
}
.cert-doc-v5 .cert-doc-seal {
  clip-path: polygon(50% 0, 100% 20%, 100% 60%, 50% 100%, 0 60%, 0 20%);
  background: rgba(30, 41, 59, 0.08);
  color: #1c2333;
}
.cert-doc-v5 .cert-doc-title { text-transform: none; letter-spacing: 0.01em; font-weight: 800; }
.cert-doc-v5 .cert-doc-watermark { color: rgba(28, 35, 51, 0.18); border: 1.5px solid rgba(28, 35, 51, 0.18); }
.cert-doc-v5 .cert-doc-sub { color: #5a6478; font-style: normal; }

/* v6 — vault steel, silver-gold rim */
.cert-doc-v6 {
  background: linear-gradient(160deg, #2a2f38, #1b1e24);
  color: #e7e9ee;
  border: 1px solid #b9bcc4;
}
.cert-doc-v6 .cert-doc-seal {
  border-radius: 8px;
  background: linear-gradient(135deg, #c9cdd6, #8b8f99);
  color: #1b1e24;
}
.cert-doc-v6 .cert-doc-watermark { color: rgba(231, 233, 238, 0.25); border: 1.5px solid rgba(231, 233, 238, 0.25); }
.cert-doc-v6 .cert-doc-sub { color: #b6bac2; }

/* Full-screen split auth layout */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .auth-page {
    grid-template-columns: 1fr 1fr;
  }
}

.auth-left {
  background: var(--bg);
  padding: 60px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-right: 1px solid var(--border);
}

.auth-left::before {
  content: "";
  position: absolute;
  top: -140px;
  left: -140px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.12), transparent 70%);
  pointer-events: none;
}

.auth-logo {
  width: 48px;
  height: 48px;
  font-size: 1.1rem;
  margin-bottom: 28px;
}

.auth-left h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.15;
  margin-bottom: 18px;
  text-transform: none;
}

.auth-left h1 span {
  color: var(--gold);
}

.auth-left p {
  color: var(--muted);
  max-width: 440px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.auth-bullet {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.85rem;
}

.auth-bullet::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.auth-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  background: var(--bg);
}

.auth-card {
  width: 100%;
  max-width: 380px;
}

.auth-card h2 {
  margin-bottom: 8px;
}

.auth-sub {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 28px;
}

.auth-reset {
  display: block;
  text-align: center;
  margin-top: 16px;
  color: var(--gold);
  font-size: 0.9rem;
}

.auth-reset:hover {
  text-decoration: underline;
}

.auth-warning {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--red);
  font-size: 0.78rem;
  text-align: center;
  line-height: 1.55;
}

/* Verification form enhancements */
.form-section-title {
  margin: 32px 0 14px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 1rem;
  color: var(--gold-light);
}

.form-card .form-section-title:first-of-type {
  margin-top: 20px;
  padding-top: 0;
  border-top: none;
}

.form-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.form-row .form-group {
  flex: 1;
  min-width: 160px;
}

.upload-field {
  flex: 1;
  min-width: 220px;
}

.upload-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 120px;
  padding: 18px;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s ease;
}

.upload-box:hover {
  border-color: var(--gold);
}

.upload-box.has-image {
  border-style: solid;
  border-color: var(--gold);
}

.upload-box .upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
}

.upload-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.upload-actions button {
  appearance: none;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold-light);
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.upload-actions button:hover {
  background: var(--gold);
  color: #000;
}

.upload-box-text {
  font-size: 0.82rem;
  color: var(--muted);
}

.upload-preview {
  max-width: 100%;
  max-height: 140px;
  border-radius: 6px;
  object-fit: cover;
}

.form-warning {
  display: block;
  color: var(--red);
  margin-top: 8px;
}

.phone-hint {
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--muted);
}

.phone-hint.phone-error {
  color: var(--red);
}

.time-readout {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--muted);
}

.token-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 10px;
  margin-top: 6px;
}

.token-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.15s ease;
  background: var(--bg);
}

.token-chip:hover {
  transform: translateY(-2px);
}

.token-chip.selected {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.08);
}

.token-chip img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.token-chip span {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Tracking dashboard */
.tracking-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.tracking-list {
  display: grid;
  gap: 24px;
}

.tracking-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.tracking-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.tracking-id {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 4px;
}

.tracking-meta {
  font-size: 0.9rem;
  color: var(--muted);
}

.tracking-address {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  word-break: break-all;
}

.tracking-address strong {
  color: var(--text);
}

.tracking-card summary {
  list-style: none;
  cursor: pointer;
}

.tracking-card summary::-webkit-details-marker {
  display: none;
}

.tracking-actions {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 8px;
}

.timeline-step {
  display: flex;
  gap: 16px;
  position: relative;
  padding-bottom: 28px;
}

.timeline-step:last-child {
  padding-bottom: 0;
}

.timeline-step::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 32px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-step:last-child::before {
  display: none;
}

.timeline-step.completed::before {
  background: var(--gold);
}

.timeline-step.current::before {
  background: var(--border);
}

.timeline-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 2px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
  z-index: 1;
}

.timeline-step.completed .timeline-dot {
  background: var(--gold);
  border-color: var(--gold);
  color: #000;
}

.timeline-step.current .timeline-dot {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: #000;
  box-shadow: 0 0 0 4px rgba(233, 201, 75, 0.2);
}

.timeline-content {
  flex: 1;
  padding-top: 4px;
}

.timeline-label {
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 4px;
}

.timeline-step.completed .timeline-label {
  color: var(--gold);
}

.timeline-step.current .timeline-label {
  color: var(--text);
}

.timeline-time {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Dynamic in-progress pulse */
.timeline-step.current .timeline-dot {
  animation: pulse-dot 1.6s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(233, 201, 75, 0.2); }
  50% { box-shadow: 0 0 0 8px rgba(233, 201, 75, 0.12); }
}

.stage-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
}

.stage-badge.completed {
  color: var(--gold);
  border-color: rgba(212, 175, 55, 0.4);
}

.stage-badge.in_progress {
  color: var(--gold-light, var(--gold));
  border-color: rgba(212, 175, 55, 0.4);
}

.stage-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
}

.stage-badge.completed .dot {
  background: var(--gold);
}

.stage-badge.in_progress .dot {
  background: var(--gold-light, var(--gold));
  animation: pulse-dot 1.6s ease-in-out infinite;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--muted);
}

.live-indicator .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 1.6s ease-in-out infinite;
}

/* Admin tracking editor */
.admin-stage-row .timeline-content select.admin-stage-select {
  width: auto;
  padding: 8px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.9rem;
  cursor: pointer;
}

.admin-stage-select:focus {
  outline: none;
  border-color: var(--gold);
}

/* Wallet */
.wallet-hero {
  background: linear-gradient(135deg, #b8860b 0%, #f0d878 100%);
  border-radius: var(--radius);
  padding: 40px 32px;
  color: #000;
}

.wallet-hero h1 {
  margin: 0;
  font-size: 1.5rem;
}

.wallet-hero p {
  margin: 4px 0 24px;
  opacity: 0.7;
  color: #000;
}

.wallet-balance {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
}

.wallet-balance-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
}

.wallet-balance-amount {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
}

.wallet-balance-amount span {
  font-size: 1rem;
  font-weight: 600;
}

.wallet-balance-fiat {
  font-size: 0.95rem;
  opacity: 0.8;
}

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

.wallet-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .wallet-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.wallet-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.wallet-card h2 {
  margin: 0 0 4px;
}

.wallet-card > p {
  margin: 0 0 24px;
  color: var(--muted);
}

.wallet-tx {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.wallet-tx:last-child {
  border-bottom: none;
}

.wallet-tx-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 4px;
}
