@import url("/assets/tokens.css");
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter,
    -apple-system,
    Arial,
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
button,
.button {
  background: var(--accent);
  color: #092319;
  border: 0;
  border-radius: 8px;
  padding: 13px 20px;
  cursor: pointer;
  font-weight: 700;
}
header {
  height: 78px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
}
.brand {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -1px;
}
.brand span {
  color: var(--accent);
}
.tag {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--muted);
}
main {
  max-width: 1250px;
  padding: 60px 30px;
  margin: auto;
}
h1 {
  font-size: clamp(38px, 5vw, 70px);
  letter-spacing: -2px;
  line-height: 1.1;
  max-width: 820px;
}
h2 {
  font-size: 25px;
}
p {
  color: var(--muted);
  line-height: 1.7;
  max-width: 650px;
}
.accent {
  color: var(--accent);
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 45px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 28px;
  border-radius: 14px;
}
.card small {
  color: var(--accent);
}
nav {
  display: flex;
  gap: 24px;
  color: var(--muted);
}
nav a.active {
  color: var(--accent);
}
.status {
  border: 1px solid #876339;
  color: #e1b879;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  display: inline-block;
}
.terminal {
  display: grid;
  grid-template-columns: 180px 1fr 260px;
  gap: 16px;
  margin-top: 30px;
}
.chart {
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 59px,
      #202b35 60px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 79px,
      #202b35 80px
    );
  text-align: center;
}
.form {
  max-width: 440px;
  margin: auto;
}
label {
  display: block;
  margin: 18px 0 6px;
  color: var(--muted);
}
input:not([type="checkbox"]) {
  display: block;
  width: 100%;
  background: var(--bg);
  color: var(--text);
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
label:has(input[type="checkbox"]) {
  font-size: 13px;
  line-height: 1.5;
}
.error {
  color: #ff9a91;
}
.muted {
  color: var(--muted);
}
footer {
  padding: 30px 5vw;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 12px;
}
pre {
  white-space: pre-wrap;
  color: var(--muted);
}
@media (max-width: 850px) {
  header {
    height: auto;
    min-height: 78px;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
  }
  nav {
    overflow: auto;
    width: 100%;
    gap: 20px;
  }
  .grid,
  .terminal {
    grid-template-columns: 1fr;
  }
  main {
    padding: 30px 20px;
  }
  .terminal > .card:first-child {
    display: none;
  }
  h1 {
    letter-spacing: -1px;
  }
}

.billing-table {
  max-width: 100%;
  overflow-x: auto;
}
.billing-table table {
  width: 100%;
  border-collapse: collapse;
}
.billing-table th,
.billing-table td {
  padding: 0.65rem;
  text-align: left;
  border-bottom: 1px solid #2d394b;
  white-space: nowrap;
}
#main pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.academy-block textarea {
  display: block;
  width: 100%;
  min-height: 100px;
  background: #101827;
  color: inherit;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 12px;
  box-sizing: border-box;
}
.academy-block select {
  max-width: 100%;
  padding: 10px;
  background: #101827;
  color: inherit;
  border: 1px solid #334155;
  border-radius: 8px;
}
@media (max-width: 640px) {
  .academy-level {
    overflow-wrap: anywhere;
  }
  #academy-buy label {
    display: block;
    margin: 14px 0;
  }
  .card form {
    min-width: 0;
  }
  .card input,
  .card select {
    max-width: 100%;
    box-sizing: border-box;
  }
}
.crypto-address {
  overflow-wrap: anywhere;
  word-break: break-all;
  user-select: all;
}
.crypto-warning {
  padding: 16px;
  border: 2px solid #e9b768;
  border-radius: 10px;
  color: #ffe2aa;
}
[data-invoice] canvas {
  max-width: 100%;
  height: auto;
}
textarea {
  max-width: 100%;
  width: 100%;
  min-height: 110px;
}
.exchange-card {
  margin: 16px 0;
}
.exchange-card a,
.exchange-card button {
  margin: 8px;
}
.exchange-disclosure {
  border-left: 3px solid #65e8b8;
  padding: 12px;
}
.guide-text {
  white-space: pre-wrap;
}
.exchange-editor {
  width: 100%;
  min-height: 260px;
  font-family: monospace;
}

.exchange-editor,
textarea {
  background: #0b131b;
  color: #dbe6ef;
  border: 1px solid #334552;
  border-radius: 8px;
  padding: 12px;
  box-sizing: border-box;
}
.replay-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
}
.replay-controls label {
  display: flex;
  gap: 8px;
  align-items: center;
}
.replay-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 16px;
}
.replay-chart {
  position: relative;
  height: 560px;
  min-width: 0;
}
.replay-layout textarea {
  width: 100%;
  min-height: 90px;
}
.replay-layout label {
  display: block;
  margin: 10px 0;
}
.replay-layout input,
.replay-layout select {
  width: 100%;
}
.replay-layout pre {
  white-space: pre-wrap;
}
#builder textarea {
  width: 100%;
  min-height: 320px;
}
#replay-message {
  color: #ed808c;
}
#timeline article {
  border-bottom: 1px solid #243242;
  padding: 12px 0;
}
#timeline pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
@media (max-width: 800px) {
  .replay-layout {
    grid-template-columns: 1fr;
  }
  .replay-chart {
    height: 390px;
  }
  .replay-controls {
    gap: 6px;
  }
  .replay-controls button {
    min-height: 44px;
  }
  .replay-layout aside {
    padding: 16px;
  }
  .replay-layout {
    width: 100%;
  }
  #builder textarea {
    max-width: 100%;
  }
}
.replay-layout > * {
  min-width: 0;
}
.replay-layout h3,
.replay-layout p {
  overflow-wrap: anywhere;
}
.replay-controls select {
  max-width: 100%;
}
@media (max-width: 800px) {
  .replay-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
.replay-main {
  padding-top: 32px;
}
.replay-main h1 {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 20px;
}
.replay-layout {
  align-items: start;
}
.replay-main select {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  min-height: 42px;
}
.replay-main > .replay-controls {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bg);
  padding: 8px 0;
}
@media (min-width: 801px) {
  .replay-layout > section {
    position: sticky;
    top: 85px;
  }
}
