@import url("https://fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,300;0,400;0,500;1,300&family=Syne:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #070c12;
  --surface: #0d1520;
  --surface2: #111e2e;
  --surface3: #162438;
  --border: #1e3048;
  --border-bright: #2a4060;
  --text: #dce8f5;
  --muted: #5e7a96;
  --dim: #3a5270;
  --green: #00e5a0;
  --green-dim: rgba(0, 229, 160, 0.12);
  --green-border: rgba(0, 229, 160, 0.35);
  --cyan: #38bdf8;
  --cyan-dim: rgba(56, 189, 248, 0.1);
  --cyan-border: rgba(56, 189, 248, 0.3);
  --amber: #fbbf24;
  --red: #f87171;
  --blue: #6366f1;
  --font-head: "Syne", sans-serif;
  --font-mono: "DM Mono", monospace;
}

::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: var(--surface);
}

::-webkit-scrollbar-thumb {
  background: var(--border-bright);
  border-radius: 3px;
}

/* ── COVER ── */
.finance_section {
  background: radial-gradient(
    ellipse 80% 60% at 50% -10%,
    rgba(0, 229, 160, 0.07),
    transparent
  );
  margin: 0 !important;
  padding: 120px 0;
}
#cover {
  font-family: var(--font-mono);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  width: 100%;
  padding: 40px 20px;
  text-align: center;
  /* background: radial-gradient(
    ellipse 80% 60% at 50% -10%,
    rgba(0, 229, 160, 0.07),
    transparent
  ); */
}

.cover-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--green);
  letter-spacing: 3px;
  text-transform: uppercase;
  border: 1px solid var(--green-border);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 32px;
}

.cover-logo {
  font-family: var(--font-head);
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -2px;
  color: var(--text);
  line-height: 1;
  margin-bottom: 8px;
}

.cover-logo span {
  color: var(--green);
}

.cover-sub {
  color: var(--muted);
  font-size: 18px;
  margin-bottom: 48px;
  font-family: var(--font-head);
}

.cover-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  max-width: 1400px;
  margin-bottom: 48px;
  text-align: left;
}

.cover-feat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
}

.cover-feat .feat-icon {
  font-size: 20px;
  margin-bottom: 8px;
}

.cover-feat h4 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 18px;
  color: var(--text);
  margin: 0 0 6px 0;
}

.cover-feat p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
  line-height: 1.6;
}

.btn-primary {
  background: var(--green);
  color: #070c12;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  border: none;
  padding: 14px 36px;
  border-radius: 8px;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: all 0.2s;
}

.btn-primary:hover {
  background: #00ffb3;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 229, 160, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--muted);
  font-family: var(--font-head);
  font-size: 13px;
  border: 1px solid var(--border);
  padding: 10px 24px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  border-color: var(--border-bright);
  color: var(--text);
}

/* ── INTAKE ── */
#intake {
  display: none;
  max-width: 820px;
  margin: 20px auto;
  padding: 20px;
}

.intake-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
}

.intake-card h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 22px;
  margin: 0 0 6px 0;
}

.intake-card p {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 24px 0;
}

.fgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}

@media (max-width: 560px) {
  .fgrid {
    grid-template-columns: 1fr;
  }
}

.fg label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 5px;
  letter-spacing: 0.5px;
}

.fg input {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 9px 12px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
  outline: none;
  transition: border 0.2s;
}

.fg input:focus {
  border-color: var(--green-border);
  box-shadow: 0 0 0 3px rgba(0, 229, 160, 0.08);
}

.nda-scroll {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px;
  height: 120px;
  overflow-y: auto;
  font-size: 13px;
  color: #9b9b9b;
  line-height: 1.6;
  margin-bottom: 12px;
}

.chk-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 14px;
  color: #94a3b8;
  cursor: pointer;
}

.chk-row input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--green);
}

/* ── DASHBOARD ── */
#dashboard {
  display: none;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 16px;
  color: var(--green);
  letter-spacing: -0.5px;
}

.topbar-session {
  font-size: 14px;
  color: var(--muted);
  border-left: 1px solid var(--border);
  padding-left: 16px;
}

.topbar-right {
  display: flex;
  gap: 8px;
  align-items: center;
}

.tbtn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 7px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 14px;
  transition: all 0.2s;
}

.tbtn:hover {
  border-color: var(--border-bright);
  color: var(--text);
}

.tbtn.green {
  border-color: var(--green-border);
  color: var(--green);
}

.tbtn.green:hover {
  background: var(--green-dim);
}

.layout {
  display: grid;
  grid-template-columns: 550px 1fr;
  min-height: calc(100vh - 49px);
}

@media (max-width: 1100px) {
  .layout {
    grid-template-columns: 1fr;
  }
}

/* ── INPUTS PANEL ── */
.inputs-panel {
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.panel-header {
  padding: 16px 20px 0;
  border-bottom: 1px solid var(--border);
}

.panel-header h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  margin: 0 0 12px 0;
  color: var(--text);
}

.ptabs {
  display: flex;
  gap: 4px;
  padding-bottom: 0;
  overflow-x: auto;
}

.ptabs::-webkit-scrollbar {
  height: 3px;
}

.ptab {
  background: transparent;
  border: none;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 7px 12px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: all 0.2s;
}

.ptab.active {
  color: var(--green);
  border-bottom-color: var(--green);
}

.panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

.pcontent {
  display: none;
}

.pcontent.active {
  display: block;
}

.section-head {
  font-size: 10px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 16px 0 8px 0;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.section-head:first-child {
  margin-top: 0;
}

.irow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  gap: 8px;
  padding: 5px 0;
}

.irow + .irow {
  border-top: 1px dashed rgba(255, 255, 255, 0.04);
}

.irow label {
  font-size: 14px;
  color: var(--muted);
  flex: 1;
  line-height: 1.4;
}

.irow input[type="number"] {
  width: 90px;
  padding: 6px 8px;
  text-align: right;
  background: var(--green-dim);
  border: 1px solid var(--green-border);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  border-radius: 5px;
  outline: none;
  transition: border 0.2s;
}

.irow input[type="number"]:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0, 229, 160, 0.12);
}

/* Chrome: hide spinner */
.irow input[type="number"]::-webkit-inner-spin-button,
.irow input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

/* ── MED TABLE ── */
.med-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-bottom: 10px;
}

.med-tbl th {
  color: var(--muted);
  font-weight: 500;
  padding: 5px 5px;
  text-align: right;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.5px;
}

.med-tbl th:first-child {
  text-align: left;
}

.med-tbl td {
  padding: 4px 5px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.med-tbl td:first-child {
  color: var(--muted);
}

.med-tbl input {
  width: 68px;
  padding: 3px 6px;
  text-align: right;
  background: var(--green-dim);
  border: 1px solid var(--green-border);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  border-radius: 4px;
  outline: none;
}

.med-tbl td.derived {
  color: var(--cyan);
  text-align: right;
  font-family: var(--font-mono);
}

.med-tbl tr.avg-row td {
  background: var(--surface3);
  font-weight: 600;
  color: var(--cyan);
}

.med-tbl tr.avg-row td:first-child {
  color: var(--muted);
}

.med-tbl tr.grand-avg td {
  background: rgba(56, 189, 248, 0.07);
  border-top: 1px solid var(--cyan-border);
}

.med-group-head {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 10px 5px 4px;
}

/* ── OUTPUTS ── */
.outputs-area {
  overflow-y: auto;
  padding: 24px;
  background: var(--bg);
}

.hl-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

@media (max-width: 900px) {
  .hl-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.hl {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 16px;
  position: relative;
  overflow: hidden;
}

.hl::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--green);
}

.hl.amber::before {
  background: var(--amber);
}

.hl.red::before {
  background: var(--red);
}

.hl.blue::before {
  background: var(--blue);
}

.hl .lbl {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.hl .val {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
}

.hl.amber .val {
  color: var(--amber);
}

.hl.red .val {
  color: var(--red);
}

.hl.blue .val {
  color: var(--blue);
}

.hl .unit {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

.section-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  margin: 0 0 14px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 24px;
}

/* Unit Economics grid */
.ue-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

@media (max-width: 900px) {
  .ue-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.ue-item {
  background: var(--surface2);
  border-radius: 6px;
  padding: 10px 12px;
}

.ue-item .ue-lbl {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 4px;
  line-height: 1.3;
}

.ue-item .ue-val {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--cyan);
}

/* Financial table */
.fin-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.fin-tbl th {
  text-align: right;
  padding: 10px 12px;
  color: var(--cyan);
  border-bottom: 2px solid var(--border);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
}

.fin-tbl th:first-child {
  text-align: left;
  color: var(--muted);
}

.fin-tbl td {
  text-align: right;
  padding: 9px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--cyan);
  font-family: var(--font-mono);
}

.fin-tbl td:first-child {
  text-align: left;
  color: var(--muted);
  font-family: var(--font-mono);
}

.fin-tbl tr.bold-row td {
  font-weight: 600;
}

.fin-tbl tr.separator td {
  border-top: 1px solid var(--border-bright);
}

.fin-tbl tr.positive td:not(:first-child) {
  color: var(--green);
}

.fin-tbl tr.negative td:not(:first-child) {
  color: var(--red);
}

.fin-tbl tr.invest-row td:not(:first-child) {
  color: var(--amber);
}

/* Metrics row */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.metric-box {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  text-align: center;
}

.metric-box .m-lbl {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.metric-box .m-val {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--amber);
}

/* Charts */
.charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .charts-grid {
    grid-template-columns: 1fr;
  }
}

.chart-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
}

.chart-box h4 {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 12px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.chart-box canvas {
  max-height: 280px;
}

/* Monthly table toggle */
.toggle-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 5px 12px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s;
}

.toggle-btn:hover {
  border-color: var(--border-bright);
  color: var(--text);
}

.monthly-table-wrap {
  overflow-x: auto;
  margin-top: 12px;
  max-height: 320px;
  overflow-y: auto;
  display: none;
}

.monthly-table-wrap.open {
  display: block;
}

.monthly-tbl {
  border-collapse: collapse;
  font-size: 11px;
  min-width: 900px;
  width: 100%;
}

.monthly-tbl th {
  padding: 7px 10px;
  background: var(--surface2);
  color: var(--muted);
  text-align: right;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  font-weight: 500;
  position: sticky;
  top: 0;
  z-index: 1;
}

.monthly-tbl th:first-child {
  text-align: left;
}

.monthly-tbl td {
  padding: 6px 10px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.04);
  text-align: right;
  font-family: var(--font-mono);
  color: var(--cyan);
}

.monthly-tbl td:first-child {
  text-align: left;
  color: var(--muted);
}

.monthly-tbl tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.otp-wrapper {
  max-width: 400px;
  margin: 8px auto;
  text-align: center;
  display: none;
}

.otp-label {
  font-size: 14px;
  color: #9aa4b2;
  margin-bottom: 12px;
  display: block;
}

.otp-container {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.disclaimer {
  font-size: 11px !important;
  color: var(--muted) !important;
  font-style: italic;
  margin: 6px 0 6px 0 !important;
}
.otp-input {
  width: 34px !important;
  height: 34px;
  padding: 8px !important;
  font-size: 22px;
  text-align: center;
  border: 1px solid #2d3748;
  background: #111827;
  color: #ffffff;
  border-radius: 8px;
  outline: none;
  transition: all 0.2s ease;
}

.otp-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

.verify-btn {
  margin-top: 15px;
  padding: 10px 20px;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.verify-email-btn {
  margin: 5px auto;
  padding: 10px 20px;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.verify-email-btn:hover,
.verify-btn:hover {
  background: #2563eb;
}

.otp-message {
  margin-top: 10px;
  font-size: 13px;
}

button.verify-email-btn:disabled {
  background: #4b4b4b;
  color: #ffffff;
  opacity: 0.5;
  cursor: not-allowed;
}
.financeDashboard {
  width: 100%;
}
.otpvalidetedGrp {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
@media only screen and (max-width: 767px) {
  .fg input {
    font-size: 16px;
  }
  #cover {
    width: 100%;
    padding: 40px 0px;
  }
  .cover-features {
    grid-template-columns: 1fr;
  }
  .cover-logo {
    font-size: 34px;
  }
  #intake {
    margin: 10px auto;
    padding: 4px;
  }
  .intake-card {
    padding: 20px 12px;
  }
  .intake-card h2 {
    font-size: 20px;
  }
  .topbar {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: space-between;
    padding: 12px 8px;
    position: relative;
  }
  .panel-header {
    padding: 16px 10px 0;
  }
  .ptabs {
    width: 303px;
  }
  .hl-grid {
    grid-template-columns: 1fr;
  }
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  .ue-grid {
    grid-template-columns: 1fr;
  }
  .chart-box canvas {
    max-height: 180px;
  }
  .outputs-area {
    padding: 24px 10px;
  }
  .chart-box {
    padding: 12px 6px;
  }
  .finance_section .gridContainer {
    width: 98dvw;
  }
}
