/* 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: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  min-width: 0;
  background: #000000;
  text-decoration: none;
}

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

.brand-slogan {
  display: block;
  flex: 1 0 100%;
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  white-space: nowrap;
}

.slogan-know {
  color: #ffffff;
}

.slogan-bank {
  color: #F7931A;
}

[hidden] {
  display: none !important;
}

.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,
.nav button {
  font-family: Montserrat, Helvetica, Arial, sans-serif;
  border: 1px solid #333;
  background: #111111;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

.nav button {
  cursor: pointer;
}

.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,
.nav button: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,
.btn-teal-outline,
label.file.btn-teal-outline,
.help-actions .btn-teal-outline {
  font-family: Montserrat, Helvetica, Arial, sans-serif;
  background: transparent;
  color: #5EEAD4;
  border: 2px solid #14B8A6;
  min-height: 48px;
  padding: 13px 28px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.btn:hover,
.file:hover,
.btn-teal-outline:hover {
  background: transparent;
  color: #99f6e4;
  border-color: #2dd4bf;
}

.btn-primary,
#stageBtn.btn {
  background: #F7931A;
  color: #0F1B2D;
  border: 0;
}

.btn-primary:hover,
#stageBtn.btn:hover {
  background: #ffb14a;
  color: #0F1B2D;
}

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

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

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

.msg.saved {
  color: #a3a3a3;
  font-size: 14px;
  border-left-color: #14B8A6;
}

.offer-card {
  border: 1px solid #24344d;
  border-left: 3px solid #F7931A;
  background: #0F1B2D;
  padding: 12px;
  margin: 0 0 12px;
  border-radius: 8px;
}

.offer-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
}

.offer-card p {
  margin: 0 0 10px;
  color: #cfcfcf;
  font-size: 15px;
  line-height: 1.4;
}

.offer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.offer-tray {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.offer-tray:empty {
  display: none;
}

.offer-connect {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.offer-connect input,
.offer-connect textarea {
  width: 100%;
  min-height: 44px;
  font-size: 16px;
  background: #000000;
  border: 1px solid #24344d;
  color: #ffffff;
  padding: 8px 10px;
}

.offer-connect textarea {
  min-height: 88px;
}

.offer-err {
  margin: 0;
  color: #f87171;
  font-size: 14px;
}

.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;
}

.hello {
  display: none;
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.phone-block {
  display: none;
}

.lead,
.talk-note,
.upload-note,
.worth-slate {
  margin: 0 0 12px;
  color: #a3a3a3;
}

.talk-note,
.upload-note,
.worth-slate {
  margin-top: 12px;
}

.help-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (max-width: 1023px) {
  html,
  body {
    background: #0F1B2D;
    color: #ffffff;
    font-size: 18px;
  }

  html {
    background: #0F1B2D;
  }

  a {
    color: #14B8A6;
  }

  a:hover {
    color: #2dd4bf;
  }

  .app {
    background: #0F1B2D;
  }

  .top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 12px;
    padding: 10px 14px;
    background: #0F1B2D;
    border-bottom: 1px solid #24344d;
    position: static;
  }

  .top .brand-slogan {
    grid-column: 1 / -1;
    grid-row: 1;
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    white-space: normal;
  }

  .top .logo-link {
    grid-column: 1;
    grid-row: 2;
    background: transparent;
  }

  .top .brand {
    grid-column: 1;
    grid-row: 3;
  }

  .top .nav-toggle {
    grid-column: 2;
    grid-row: 2 / 4;
    align-self: center;
  }

  .top .nav {
    grid-column: 1 / -1;
    grid-row: 4;
  }

  .logo-link,
  .logo {
    background: transparent;
  }

  .logo {
    width: 88px;
    height: auto;
    object-fit: contain;
    object-position: center;
    flex: 0 0 auto;
  }

  .stage .logo {
    width: 120px;
    height: auto;
    object-fit: contain;
    object-position: center;
    margin: 0 auto;
  }

  .stage .brand-slogan {
    margin: 8px 0 0;
    font-size: 18px;
    white-space: normal;
  }

  .talk-composer {
    position: sticky;
    bottom: 0;
    z-index: 6;
    margin: 0 -16px -4px;
    padding: 10px 16px 8px;
    background: #16263D;
    border-top: 1px solid #24344d;
  }

  .top .brand #who,
  .top .brand #name,
  .top .sub {
    display: none;
  }

  .top .brand .hello {
    display: block;
    color: #ffffff;
    text-transform: none;
    letter-spacing: -0.02em;
    font-weight: 600;
  }

  .nav {
    display: none;
    grid-column: 1 / -1;
  }

  .top.open .nav {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .nav a,
  .nav button {
    min-height: 48px;
    justify-content: center;
    background: #16263D;
    border-color: #14B8A6;
    color: #14B8A6;
  }

  .nav a[data-desk="talk"],
  .nav a[data-desk="uploaded"],
  .nav a[data-desk="purchased"] {
    display: none !important;
  }

  .top.open .nav a[data-desk="notes"]:not([hidden]) {
    display: inline-flex;
  }

  .nav a.active,
  .nav a:hover,
  .nav button:hover {
    border-color: #14B8A6;
    color: #14B8A6;
    background: #16263D;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    min-width: 72px;
    margin-left: 0;
    padding: 0 16px;
    border: 2px solid #14B8A6;
    background: transparent;
    color: #14B8A6;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
  }

  .shell {
    display: block;
  }

  .sidebar,
  .app.show-side .sidebar {
    display: none !important;
  }

  .main {
    padding: 12px 14px 20px;
    max-width: none;
  }

  .phone-block:not([hidden]) {
    display: block;
  }

  .card {
    background: #16263D;
    border-color: #24344d;
  }

  .card h2 {
    color: #ffffff;
    text-transform: none;
    letter-spacing: 0;
    font-size: 20px;
    font-weight: 700;
  }

  .lead,
  .talk-note,
  .upload-note,
  .worth-slate,
  .side-empty,
  .empty-state,
  .worth-note {
    color: #94a3b8;
    font-size: 16px;
  }

  .worth-slate {
    color: #94a3b8;
  }

  .worth-note {
    display: none;
  }

  .btn,
  .file,
  .ghost,
  .side-delete,
  .help-actions button,
  .chip {
    background: transparent;
    color: #14B8A6;
    border: 2px solid #14B8A6;
    min-height: 48px;
    box-shadow: none;
  }

  .btn:hover,
  .file:hover,
  .ghost:hover,
  .help-actions button:hover,
  .chip:hover {
    background: transparent;
    color: #2dd4bf;
    border-color: #2dd4bf;
  }

  .btn-teal-outline,
  label.file.btn-teal-outline,
  .help-actions .btn-teal-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #14B8A6;
    border: 2px solid #14B8A6;
    min-height: 48px;
    padding: 12px 20px;
    border-radius: 10px;
    font-family: Montserrat, Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
  }

  .btn-teal-outline[hidden],
  label.file.btn-teal-outline[hidden],
  .help-actions .btn-teal-outline[hidden],
  .side-delete[hidden],
  [hidden] {
    display: none !important;
  }

  .btn-primary,
  #stageBtn.btn {
    background: #F7931A;
    color: #0F1B2D;
    border: 0;
  }

  .chips {
    gap: 10px;
  }

  .chip {
    padding: 10px 14px;
    font-size: 15px;
    border-radius: 999px;
  }

  form.talk input[type="text"],
  .worth-form input,
  input[type="text"] {
    min-height: 48px;
    font-size: 18px;
    background: #0F1B2D;
    border-color: #24344d;
    color: #ffffff;
  }

  form.talk input[type="text"]:focus,
  .worth-form input:focus,
  input[type="text"]:focus,
  .nav-toggle:focus,
  .chip:focus,
  button.send:focus,
  .btn-teal-outline:focus {
    outline: 2px solid #14B8A6;
    outline-offset: 2px;
    border-color: #14B8A6;
  }

  .msg {
    background: #0F1B2D;
  }

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

  .worth-bar {
    background: #0F1B2D;
    border-color: #24344d;
  }

  .worth-form {
    flex-direction: column;
  }

  .worth-form input {
    flex: 0 0 auto;
    width: 100%;
    height: 48px;
    min-height: 48px;
    box-sizing: border-box;
  }

  .help-actions .btn-teal-outline {
    width: 100%;
  }

  .avatar-panel,
  .app.has-avatar .avatar-panel,
  .app:has(#avatarPanel) .avatar-panel {
    display: none !important;
  }

  .btct-phone-action,
  .btct-bubble,
  .btct-toast,
  .btct-follow,
  .btct-controls,
  .btct-hear {
    display: none !important;
  }

  .stage {
    padding: 32px 18px 24px;
    background: #0F1B2D;
  }

  .page-foot {
    background: #0F1B2D;
  }
}

/* Net worth track to $1 trillion (networth.js) */
.worth .worth-total {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 700;
}
#worthTrack:empty {
  display: none;
}
.worth-start {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: #a3a3a3;
}
.worth-bar {
  position: relative;
  height: 14px;
  margin: 16px 4px 30px;
  border: 1px solid #2a2a2a;
  border-radius: 999px;
  background: #1a1a1a;
}
.worth-bar.has-you {
  margin-top: 34px;
}
.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-form input::placeholder {
  color: #888888;
  opacity: 1;
}
.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-connect {
  margin: 0 0 10px;
  color: #ddd;
  font-size: 15px;
  line-height: 1.45;
}
.worth-connect-actions {
  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],
.nav button[hidden] { display: none !important; }
.nav a[data-desk="notes"] { display: none; }
.side-list .side-delete {
  margin-left: 8px;
  padding: 2px 8px;
  border: 1px solid #555;
  border-radius: 6px;
  background: transparent;
  color: #ccc;
  font-size: 12px;
  cursor: pointer;
}
.side-list .side-delete:hover {
  border-color: #F7931A;
  color: #F7931A;
}

/* Sign-in gate (emailed 6-digit code) and statement-data controls */
.signin-gate { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; background: rgba(10,10,10,.82); padding: 16px; }
.signin-card { background: #161616; color: #f2f2f2; border: 1px solid #333; border-radius: 12px; max-width: 420px; width: 100%; padding: 24px; }
.signin-card h2 { margin: 0 0 8px; font-size: 1.2rem; }
.signin-card form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.signin-card form[hidden], .signin-card [hidden] { display: none !important; }
.signin-card input { flex: 1 1 140px; padding: 10px; font-size: 1.1rem; letter-spacing: .2em; border-radius: 8px; border: 1px solid #555; background: #0d0d0d; color: #fff; }
.signin-card .linkish { background: none; border: 0; color: #F7931A; text-decoration: underline; cursor: pointer; padding: 4px 0; }
.signin-msg { min-height: 1.2em; font-size: .9rem; color: #ccc; }
.side-data { margin: 8px 0 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.side-data .side-delete { margin-left: 0; }

@media (max-width: 1023px) {
  .worth-start {
    color: #94a3b8;
    font-size: 14px;
  }

  .worth-bar.has-you .worth-you {
    max-width: calc(100% - 8px);
  }

  /* Later .worth-form input { background: #000 } must not win on the phone card. */
  .worth-form input {
    flex: 0 0 auto;
    width: 100%;
    height: 48px;
    min-height: 48px;
    box-sizing: border-box;
    background: #0F1B2D;
    border-color: #24344d;
    color: #ffffff;
  }

  .worth-form input::placeholder {
    color: #94a3b8;
    opacity: 1;
  }
}
