:root {
  --bg: #07100e;
  --panel: #0d1815;
  --line: #20322d;
  --text: #f2f6f4;
  --muted: #82958f;
  --lime: #c9ff58;
  --green: #4de59d;
  --red: #ff6d79;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
.hide {
  display: none !important;
}
.logo {
  width: 42px;
  height: 42px;
  border: 1px solid #425947;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--lime);
  font-weight: 900;
  background: linear-gradient(145deg, #1b2a20, #0c1512);
  box-shadow: inset 0 0 20px #c9ff5810;
}
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 8vw;
  padding: 8vw;
  background: radial-gradient(circle at 18% 50%, #193124 0, transparent 38%);
}
.brand-block {
  max-width: 560px;
}
.brand-block h1 {
  font-size: 54px;
  margin: 24px 0 8px;
  letter-spacing: -3px;
}
.brand-block i,
.side-brand i {
  color: var(--lime);
  font-style: normal;
}
.brand-block > p {
  color: var(--muted);
  font-size: 20px;
  margin-bottom: 50px;
}
.feature {
  border-left: 1px solid #3a5147;
  padding: 8px 18px;
  margin: 25px 0;
}
.feature b,
.feature span {
  display: block;
}
.feature span {
  color: var(--muted);
  margin-top: 5px;
}
.auth-card {
  width: min(440px, 100%);
  background: #0d1815e8;
  border: 1px solid var(--line);
  padding: 42px;
  border-radius: 20px;
  box-shadow: 0 30px 90px #0008;
}
.eyebrow,
.panel-title small,
.page-title small,
header small {
  color: var(--lime);
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 700;
}
.auth-card h2 {
  font-size: 32px;
  margin: 14px 0 5px;
}
.auth-card > p {
  color: var(--muted);
  margin-top: 0;
}
.auth-card label,
.setup label,
.journal-grid label {
  display: block;
  color: #a8b7b2;
  font-size: 12px;
  font-weight: 650;
  margin: 20px 0 8px;
}
.auth-card input,
.setup select,
.journal-grid input,
.journal-grid select,
.journal-grid textarea {
  width: 100%;
  background: #07100e;
  color: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  margin-top: 8px;
  outline: none;
}
.auth-card input:focus,
.setup select:focus,
.journal-grid input:focus {
  border-color: #9ecb51;
}
.primary {
  width: 100%;
  border: 0;
  background: var(--lime);
  color: #11190d;
  border-radius: 10px;
  padding: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s;
}
.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px #c9ff5826;
}
.switch {
  text-align: center !important;
  margin: 22px 0 0 !important;
}
.switch button {
  background: none;
  border: 0;
  color: var(--lime);
  cursor: pointer;
}
.error {
  color: var(--red);
  font-size: 13px;
  margin-top: 12px;
  text-align: center;
}
#app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 230px 1fr;
}
aside {
  position: fixed;
  inset: 0 auto 0 0;
  width: 230px;
  border-right: 1px solid var(--line);
  padding: 25px 18px;
  display: flex;
  flex-direction: column;
  background: #08110f;
}
.side-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 8px 45px;
  font-size: 18px;
}
nav button,
.logout {
  width: 100%;
  display: flex;
  gap: 13px;
  border: 0;
  background: none;
  color: var(--muted);
  padding: 13px 14px;
  border-radius: 9px;
  margin: 4px 0;
  cursor: pointer;
  text-align: left;
}
nav button.active {
  background: #c9ff5812;
  color: var(--lime);
}
.risk {
  margin-top: auto;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.risk b {
  font-size: 11px;
  color: #e2ed82;
}
.risk p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 0;
}
.logout {
  margin-top: 14px;
}
main {
  grid-column: 2;
  padding: 0 4vw 60px;
  max-width: 1500px;
  width: 100%;
}
header {
  height: 92px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  gap: 25px;
}
header h2 {
  font-size: 17px;
  margin: 5px 0 0;
}
.status {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}
.status span,
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 8px;
  box-shadow: 0 0 12px var(--green);
}
.avatar {
  width: 38px;
  height: 38px;
  background: #203129;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--lime);
  font-weight: 700;
}
.hero {
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding: 70px 2vw 50px;
}
.hero h1,
.page-title h1 {
  font-size: clamp(38px, 5vw, 68px);
  letter-spacing: -3px;
  line-height: 1.02;
  margin: 12px 0;
}
.hero em {
  color: var(--lime);
  font-style: normal;
}
.hero p,
.page-title p {
  color: var(--muted);
  max-width: 570px;
}
.pulse {
  border: 1px solid var(--line);
  padding: 17px 22px;
  border-radius: 12px;
  text-align: right;
  min-width: 180px;
}
.pulse span,
.pulse small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 1.5px;
}
.pulse strong {
  font:
    26px ui-monospace,
    monospace;
  color: var(--lime);
  display: block;
  margin: 6px 0;
}
.grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.75fr) minmax(420px, 1.25fr);
  gap: 18px;
}
.panel {
  background: linear-gradient(150deg, #101c18, #0b1512);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 27px;
}
.panel-title {
  display: flex;
  justify-content: space-between;
}
.panel h3 {
  font-size: 20px;
  margin: 7px 0;
}
.segments {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 9px;
}
.segments button {
  padding: 11px;
  background: #07100e;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 8px;
  cursor: pointer;
}
.segments button.selected {
  border-color: var(--lime);
  color: var(--lime);
  background: #c9ff5809;
}
.analyze {
  margin-top: 28px;
}
.fine {
  font-size: 10px !important;
  text-align: center;
  color: #5f716b !important;
  line-height: 1.5;
}
.result {
  min-height: 445px;
  display: grid;
  place-items: center;
}
#empty {
  text-align: center;
  color: var(--muted);
}
#empty h3 {
  color: #fff;
}
.radar {
  width: 130px;
  height: 130px;
  border: 1px solid #375047;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: auto;
  position: relative;
  background: radial-gradient(circle, #c9ff5818, transparent 60%);
}
.radar:before,
.radar:after {
  content: "";
  position: absolute;
  background: #375047;
}
.radar:before {
  width: 100%;
  height: 1px;
}
.radar:after {
  height: 100%;
  width: 1px;
}
.radar b {
  color: var(--lime);
  font-size: 24px;
}
#signal {
  width: 100%;
}
.signal-top {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}
.direction {
  text-align: center;
  font-size: 58px;
  letter-spacing: 5px;
  font-weight: 900;
  color: var(--green);
  margin: 30px 0 20px;
}
.direction.put {
  color: var(--red);
}
.direction.no {
  color: #e3c879;
  font-size: 40px;
}
.confidence {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}
.confidence strong {
  color: #fff;
}
.confidence div {
  grid-column: 1/-1;
  height: 5px;
  border-radius: 8px;
  background: #24332e;
  overflow: hidden;
}
.confidence i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--lime);
  transition: 1s;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 25px 0;
}
.metrics article {
  background: #07100e;
  border: 1px solid var(--line);
  padding: 13px;
  border-radius: 8px;
}
.metrics small,
.metrics b {
  display: block;
}
.metrics small {
  color: var(--muted);
  font-size: 8px;
}
.metrics b {
  margin-top: 6px;
  font-size: 12px;
}
.expiry {
  padding: 13px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.expiry b {
  float: right;
  color: #fff;
}
.page-title {
  padding: 65px 0 35px;
}
.page-title h1 {
  font-size: 48px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  text-align: left;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
th {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 1px;
}
.tag {
  padding: 5px 9px;
  border-radius: 5px;
  background: #4de59d14;
  color: var(--green);
  font-weight: 700;
}
.tag.put {
  color: var(--red);
  background: #ff6d7914;
}
.journal-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 18px;
}
.journal-grid textarea {
  min-height: 90px;
  resize: vertical;
}
.entry {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.entry small {
  color: var(--muted);
}
#toast {
  position: fixed;
  right: 25px;
  top: 25px;
  background: #17251f;
  border: 1px solid #355044;
  padding: 12px 18px;
  border-radius: 9px;
  z-index: 10;
  transform: translateY(-100px);
  transition: 0.25s;
}
#toast.show {
  transform: none;
}
@media (max-width: 850px) {
  .auth-shell {
    grid-template-columns: 1fr;
    padding: 30px;
  }
  .brand-block .feature {
    display: none;
  }
  .brand-block h1 {
    font-size: 38px;
  }
  .brand-block > p {
    margin-bottom: 15px;
  }
  .auth-card {
    padding: 26px;
  }
  #app {
    grid-template-columns: 72px 1fr;
  }
  aside {
    width: 72px;
    padding: 20px 9px;
  }
  .side-brand b,
  nav span,
  .risk,
  .logout {
    font-size: 0;
  }
  .side-brand {
    margin-left: 5px;
  }
  .side-brand .logo {
    min-width: 42px;
  }
  nav button {
    justify-content: center;
    font-size: 18px;
  }
  main {
    grid-column: 2;
    padding: 0 18px 45px;
  }
  .hero {
    padding: 45px 0 30px;
    display: block;
  }
  .pulse {
    display: none;
  }
  .grid,
  .journal-grid {
    grid-template-columns: 1fr;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .result {
    min-height: 390px;
  }
  header {
    height: 75px;
  }
  .status {
    display: none;
  }
}
@media (max-width: 520px) {
  #app {
    display: block;
  }
  aside {
    position: fixed;
    z-index: 5;
    inset: auto 0 0;
    width: 100%;
    height: 64px;
    flex-direction: row;
    border: 0;
    border-top: 1px solid var(--line);
    padding: 7px;
    background: #08110ff5;
  }
  .side-brand,
  .risk,
  .logout {
    display: none;
  }
  nav {
    display: flex;
    width: 100%;
    justify-content: space-around;
  }
  nav button {
    width: auto;
    margin: 0;
    padding: 12px 20px;
  }
  main {
    display: block;
    padding: 0 14px 85px;
  }
  .hero h1 {
    font-size: 40px;
  }
  .panel {
    padding: 20px;
  }
  .direction {
    font-size: 44px;
  }
  .auth-shell {
    padding: 22px;
  }
  .brand-block {
    display: none;
  }
}
