@font-face {
  font-family: "BinanceNova";
  src: url("../fonts/Inter-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "BinanceNova";
  src: url("../fonts/Inter-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "BinanceMono";
  src: url("../fonts/IBMPlexMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "BinanceMono";
  src: url("../fonts/IBMPlexMono-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0b0e11;
  --header: #181a20;
  --card: #1e2329;
  --card-hover: #2b3139;
  --border: #2b3139;
  --text: #eaecef;
  --muted: #848e9c;
  --yellow: #fcd535;
  --yellow-hover: #f0b90b;
  --green: #0ecb81;
  --red: #f6465d;
  --radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "BinanceNova", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1200px, 100% - 32px); margin: 0 auto; }

/* Header */
.bn-header {
  background: var(--header);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.bn-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}
.bn-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--yellow);
  flex-shrink: 0;
}
.bn-logo svg { width: 28px; height: 28px; }
.bn-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.bn-nav a {
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  border-radius: 4px;
  transition: background .15s, color .15s;
}
.bn-nav a:hover, .bn-nav a.active { background: var(--card); color: var(--yellow); }
.bn-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.bn-lang {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 13px;
}
.bn-btn-ghost {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  border-radius: 4px;
}
.bn-btn-ghost:hover { color: var(--yellow); }
.bn-btn-primary {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  background: var(--yellow);
  color: #0b0e11;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background .15s;
}
.bn-btn-primary:hover { background: var(--yellow-hover); }
.bn-btn-primary:disabled { opacity: .5; cursor: not-allowed; }
.bn-btn-lg {
  width: 100%;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 4px;
}

/* Ticker */
.bn-ticker {
  background: var(--header);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.bn-ticker-track {
  display: flex;
  gap: 32px;
  padding: 10px 16px;
  animation: ticker 40s linear infinite;
  white-space: nowrap;
}
.bn-ticker-item {
  font-family: "BinanceMono", monospace;
  font-size: 13px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.bn-ticker-item .sym { color: var(--muted); }
.bn-ticker-item .price { color: var(--text); font-weight: 600; }
.bn-ticker-item .chg.up { color: var(--green); }
.bn-ticker-item .chg.down { color: var(--red); }
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Hero */
.bn-hero {
  padding: 48px 0 64px;
  background: linear-gradient(180deg, #181a20 0%, var(--bg) 100%);
}
.bn-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 960px) {
  .bn-hero-grid { grid-template-columns: 1fr; }
  .bn-nav { display: none; }
}
.bn-badge {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--yellow);
  color: var(--yellow);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.bn-hero h1 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.08;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -.02em;
}
.bn-hero-lead {
  color: var(--muted);
  font-size: 18px;
  max-width: 560px;
  margin-bottom: 32px;
}
.bn-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 700px) { .bn-stats { grid-template-columns: repeat(2, 1fr); } }
.bn-stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.bn-stat strong {
  display: block;
  font-size: 22px;
  color: var(--yellow);
  margin-bottom: 4px;
}
.bn-stat span { font-size: 13px; color: var(--muted); }

/* Invoice card */
.bn-invoice-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 8px 32px rgba(0,0,0,.35);
}
.bn-invoice-card h2 {
  font-size: 22px;
  margin-bottom: 8px;
}
.bn-invoice-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 20px;
}
.bn-invoice-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 1.5s infinite;
}
.bn-invoice-status.confirmed { color: #58a6ff; }
.bn-invoice-status.confirmed::before { background: #58a6ff; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }
.bn-invoice-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.bn-invoice-row:last-of-type { border-bottom: none; }
.bn-invoice-row .label { color: var(--muted); }
.bn-invoice-row .value { font-weight: 600; text-align: right; }
.bn-invoice-row .value.mono {
  font-family: "BinanceMono", monospace;
  font-size: 13px;
}
.bn-invoice-search { margin-bottom: 16px; }
.bn-invoice-search input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 15px;
  outline: none;
}
.bn-invoice-search input:focus { border-color: var(--yellow); }
.bn-invoice-error {
  color: var(--red);
  font-size: 14px;
  margin: 12px 0;
  display: none;
}
.bn-invoice-error.show { display: block; }
.bn-link-muted {
  display: block;
  text-align: center;
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}
.bn-link-muted:hover { color: var(--yellow); }

/* Sections */
.bn-section { padding: 64px 0; }
.bn-section.alt { background: var(--header); }
.bn-section h2 {
  font-size: 32px;
  margin-bottom: 12px;
  font-weight: 700;
}
.bn-section .sub {
  color: var(--muted);
  margin-bottom: 32px;
  max-width: 720px;
}
.bn-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.bn-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 900px) {
  .bn-grid-3, .bn-grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .bn-grid-3, .bn-grid-4 { grid-template-columns: 1fr; }
}
.bn-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color .15s, transform .15s;
}
.bn-card:hover { border-color: var(--yellow); transform: translateY(-2px); }
.bn-card h3 { font-size: 18px; margin-bottom: 8px; }
.bn-card p { color: var(--muted); font-size: 14px; }

/* Markets table */
.bn-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.bn-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.bn-table th {
  text-align: left;
  padding: 14px 16px;
  color: var(--muted);
  font-weight: 500;
  background: var(--header);
  border-bottom: 1px solid var(--border);
}
.bn-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.bn-table tr:hover td { background: var(--card-hover); }
.bn-table .mono { font-family: "BinanceMono", monospace; }
.bn-table .up { color: var(--green); }
.bn-table .down { color: var(--red); }

/* FAQ */
.bn-faq details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  padding: 16px 20px;
}
.bn-faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.bn-faq summary::-webkit-details-marker { display: none; }
.bn-faq p { color: var(--muted); margin-top: 12px; font-size: 14px; }

/* Steps */
.bn-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 800px) { .bn-steps { grid-template-columns: 1fr 1fr; } }
.bn-step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.bn-step-num {
  width: 36px;
  height: 36px;
  background: var(--yellow);
  color: #0b0e11;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 12px;
}

/* Footer */
.bn-footer {
  background: var(--header);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
  margin-top: 32px;
}
.bn-footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}
@media (max-width: 800px) { .bn-footer-grid { grid-template-columns: 1fr 1fr; } }
.bn-footer h4 { font-size: 14px; margin-bottom: 16px; color: var(--text); }
.bn-footer ul { list-style: none; }
.bn-footer li { margin-bottom: 10px; }
.bn-footer a { color: var(--muted); font-size: 13px; }
.bn-footer a:hover { color: var(--yellow); }
.bn-footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

/* Page hero (subpages) */
.bn-page-hero {
  padding: 48px 0 32px;
  background: var(--header);
  border-bottom: 1px solid var(--border);
}
.bn-page-hero h1 { font-size: 40px; margin-bottom: 12px; }
.bn-page-hero p { color: var(--muted); max-width: 640px; }

.hidden { display: none !important; }
