/* Client page only. Brand match for index.html. Does not change shop/van CSS. */
:root {
  --bg: #000000;
  --card: #111111;
  --line: #2a2a2a;
  --orange: #F7931A;
  --white: #ffffff;
  --muted: #a3a3a3;
  --btn: #F7931A;
  --side: 280px;
}

html {
  background: #000000;
}

html,
body {
  margin: 0;
  min-height: 100vh;
  background: #000000;
  color: #ffffff;
  font-family: Montserrat, Helvetica, Arial, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.55;
}

body {
  display: flex;
  flex-direction: column;
}

a {
  color: #F7931A;
}

a:hover {
  color: #ffb14a;
}

.app {
  flex: 1;
  min-height: 0;
  background: #000000;
}

.top {
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding: 16px 20px 14px;
  background: #000000;
  border-bottom: 1px solid #2a2a2a;
}

.logo-link {
  display: block;
  flex: 0 0 auto;
  background: #000000;
}

.logo {
  display: block;
  width: 112px;
  height: auto;
  background: #000000;
}

.top .brand {
  min-width: 0;
}

.top .brand p {
  color: #F7931A;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

.top h1 {
  margin: 4px 0 2px;
  font-size: clamp(1.15rem, 3vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.top .sub {
  color: #a3a3a3;
}

.nav {
  flex: 1 1 100%;
}

.nav a {
  font-family: Montserrat, Helvetica, Arial, sans-serif;
  border: 1px solid #333;
  background: #111111;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

.nav a[data-desk="uploaded"],
.nav a[data-desk="purchased"] {
  display: inline-block;
  line-height: 40px;
  padding-top: 0;
  padding-bottom: 0;
}

.nav-toggle {
  display: none;
  font-family: Montserrat, Helvetica, Arial, sans-serif;
  border: 1px solid #333;
  background: #111111;
  min-height: 40px;
  margin-left: auto;
}

.nav a.active,
.nav a:hover {
  border-color: #F7931A;
  color: #F7931A;
  background: #111111;
}

.sidebar {
  background: #000000;
}

.sidebar h2 {
  font-weight: 600;
}

.card {
  background: #111111;
  border-color: #2a2a2a;
}

.card h2 {
  font-weight: 600;
}

.btn,
.file,
button.send {
  font-family: Montserrat, Helvetica, Arial, sans-serif;
  background: #F7931A;
  color: #000000;
  min-height: 48px;
  padding: 13px 28px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.btn:hover,
.file:hover,
button.send:hover {
  background: #ffb14a;
  color: #000000;
}

.ghost {
  background: transparent;
  color: #ffffff;
  border: 1px solid #444;
}

.ghost:hover {
  background: transparent;
  color: #ffb14a;
  border-color: #F7931A;
}

.msg.me {
  border-left-color: #F7931A;
}

.side-empty,
.empty-state {
  color: #a3a3a3;
  font-size: 15px;
  line-height: 1.45;
  margin: 0 0 8px;
}

.empty-state[hidden] {
  display: none;
}

.stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 32px;
  background: #000000;
  text-align: center;
}

.stage[hidden] {
  display: none;
}

.stage-stack {
  width: min(560px, 100%);
  background: #000000;
}

.stage .logo {
  width: min(240px, 72vw);
  max-width: 280px;
  margin: 0 auto;
}

.stage h1 {
  margin: 22px 0 0;
  font-size: clamp(1.2rem, 4vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.stage p {
  margin: 16px 0 0;
  color: #a3a3a3;
  font-size: 1.05rem;
}

.stage .btn {
  display: inline-block;
  margin-top: 28px;
  text-decoration: none;
}

.page-foot {
  padding: 20px 24px 28px;
  background: #000000;
  color: #777777;
  font-size: 13px;
  text-align: center;
}

.page-foot p {
  margin: 0 0 8px;
}

.page-foot .legal {
  margin: 0;
}

@media (max-width: 860px) {
  .top {
    align-items: flex-start;
  }

  .logo {
    width: 88px;
  }

  .nav {
    display: none;
  }

  .top.open .nav {
    display: flex;
    width: 100%;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
  }

  .stage {
    padding: 32px 18px 24px;
  }
}

/* Net worth track to $1 trillion (networth.js) */
.worth .worth-total {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 700;
}
.worth-bar {
  position: relative;
  height: 14px;
  margin: 34px 4px 30px;
  border: 1px solid #2a2a2a;
  border-radius: 999px;
  background: #1a1a1a;
}
.worth-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 999px;
  background: #F7931A;
}
.worth-tick {
  position: absolute;
  top: 18px;
  transform: translateX(-50%);
  font-size: 12px;
  color: #a3a3a3;
  white-space: nowrap;
}
.worth-tick::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -19px;
  width: 1px;
  height: 14px;
  background: #555;
}
.worth-you {
  position: absolute;
  bottom: 20px;
  transform: translateX(-10%);
  padding: 2px 8px;
  border-radius: 6px;
  background: #F7931A;
  color: #000;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.worth-you.unknown {
  background: #333;
  color: #fff;
}
.worth-list {
  margin: 0 0 8px;
  padding-left: 18px;
  color: #ddd;
  font-size: 15px;
}
.worth-list:empty {
  display: none;
}
.worth-note {
  margin: 0 0 12px;
}
.worth-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.worth-form input {
  flex: 1 1 180px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  background: #000;
  color: #fff;
  font: inherit;
  font-size: 15px;
}
.worth-err {
  margin: 8px 0 0;
  color: #ff8a7a;
  font-size: 14px;
}
.worth-err:empty {
  display: none;
}

.side-empty .side-live-modules {
  margin: 6px 0 0;
  padding-left: 18px;
}
.side-empty .side-live-modules a {
  color: #F7931A;
}

/* BTCTreasuryBot panel */
.btct-card { border-top: 1px solid rgba(0,0,0,.08); padding: 12px 0; }
.btct-card h3 { margin: 0 0 6px; font-size: 1rem; }
.btct-buy, .btct-limits, .btct-live { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.btct-buy input, .btct-limits input, .btct-live input[type=text], .btct-live input:not([type]) { padding: 8px; border: 1px solid #ccc; border-radius: 6px; max-width: 160px; }
.btct-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 6px 0; }
.btct-warn { color: #1b1b1b; background: #fff4e5; border: 1px solid #f0c27a; padding: 8px 12px; border-radius: 8px; }
.btct-check, .btct-radio { display: block; margin: 4px 0; }
.btct-nudge { border-left: 3px solid #f7931a; padding: 8px 12px; margin: 12px 0; }
.btct-confirm .btn { margin: 6px 6px 0 0; }
.btn.danger { background: #b3261e; color: #fff; }
.legal { font-size: .8rem; }
.nav a[hidden] { display: none !important; }
