:root {
  --navy: #031b4e;
  --navy-2: #052869;
  --blue: #0b5cff;
  --cyan: #28d7ff;
  --green: #44f2a1;
  --violet: #a76bff;
  --pink: #ff4fd8;
  --card: rgba(255, 255, 255, 0.1);
  --card-strong: rgba(255, 255, 255, 0.16);
  --text: #f7fbff;
  --muted: #b8c8e8;
  --line: rgba(255, 255, 255, 0.18);
  --danger: #ff6b8b;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 10%, rgba(40, 215, 255, 0.24), transparent 26%),
    radial-gradient(circle at 88% 0%, rgba(167, 107, 255, 0.28), transparent 34%),
    linear-gradient(135deg, #020b24 0%, var(--navy) 48%, #04143a 100%);
  min-height: 100vh;
}

.app-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 48px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--cyan);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 0.82rem;
}

h1, h2, p { margin-top: 0; }

h1 {
  font-size: clamp(2.5rem, 6vw, 5.4rem);
  line-height: 0.94;
  margin-bottom: 18px;
  letter-spacing: -0.07em;
}

h2 { font-size: 1.25rem; margin-bottom: 6px; }

.hero-copy {
  color: var(--muted);
  max-width: 620px;
  font-size: 1.1rem;
  line-height: 1.6;
}

.hero-card, .panel, .metric-card {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255,255,255,0.14), rgba(255,255,255,0.06));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
  border-radius: 28px;
}

.hero-card {
  padding: 28px;
  display: flex;
  gap: 18px;
  align-items: center;
  align-self: center;
}

.logo-mark {
  width: 74px;
  height: 74px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 1.45rem;
  color: #04143a;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  box-shadow: 0 12px 30px rgba(40, 215, 255, 0.3);
}

.hero-card strong, .hero-card span { display: block; }
.hero-card span { color: var(--muted); margin-top: 4px; }

.panel { padding: 26px; margin-bottom: 22px; }
.section-heading { margin-bottom: 20px; }
.section-heading p { color: var(--muted); margin-bottom: 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.field { display: grid; gap: 8px; }
.field-wide { grid-column: span 2; }

.field span, .slider-row label {
  color: #eaf2ff;
  font-weight: 750;
  font-size: 0.94rem;
}

input[type="number"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 15px 15px;
  color: var(--text);
  background: rgba(2, 11, 36, 0.58);
  outline: none;
  font-size: 1rem;
}

input[type="number"]:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(40, 215, 255, 0.12);
}

.slider-row {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
}

.slider-row p { color: var(--muted); margin: 5px 0 0; }
.slider-control { display: flex; align-items: center; gap: 16px; }
.slider-control input { width: 100%; accent-color: var(--cyan); }
.slider-control strong { min-width: 72px; text-align: right; color: var(--green); }

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}

.metric-card { padding: 22px; position: relative; overflow: hidden; }
.metric-card::after {
  content: "";
  position: absolute;
  inset: auto -20px -40px auto;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  opacity: 0.28;
  filter: blur(4px);
}
.accent-one::after { background: var(--cyan); }
.accent-two::after { background: var(--green); }
.accent-three::after { background: var(--pink); }
.accent-four::after { background: var(--violet); }

.metric-card span { color: var(--muted); font-size: 0.9rem; }
.metric-card strong { display: block; font-size: 1.65rem; margin-top: 10px; letter-spacing: -0.04em; }

.table-wrap {
  overflow-x: auto;
  border-radius: 22px;
  border: 1px solid var(--line);
}

table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
  background: rgba(2, 11, 36, 0.42);
}

th, td {
  padding: 14px 16px;
  text-align: right;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

th:first-child, td:first-child, th:nth-child(2), td:nth-child(2) { text-align: left; }
th {
  color: var(--cyan);
  font-size: 0.8rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.06);
}

td { color: #edf5ff; }
tr:last-child td { border-bottom: none; }

.insight-panel p { color: var(--muted); line-height: 1.6; }
.insight-panel small { color: #93a8d0; }

@media (max-width: 900px) {
  .hero, .grid, .summary-grid, .slider-row { grid-template-columns: 1fr; }
  .field-wide { grid-column: span 1; }
  .slider-control { flex-direction: column; align-items: stretch; }
  .slider-control strong { text-align: left; }
}


.hero-actions {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  padding-top: 10px;
}

.reset-btn {
  cursor: pointer;
  border: 1px solid rgba(40, 215, 255, 0.5);
  border-radius: 999px;
  padding: 12px 18px;
  color: var(--text);
  background: rgba(2, 11, 36, 0.44);
  font-weight: 800;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.reset-btn:hover {
  border-color: var(--green);
  transform: translateY(-1px);
}

.section-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 28px 0 14px;
}

.section-divider::before,
.section-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, rgba(40, 215, 255, 0.6), transparent);
}

.section-divider span {
  border: 1px solid rgba(40, 215, 255, 0.36);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--cyan);
  background: rgba(2, 11, 36, 0.42);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.currency-input {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0 15px;
  background: rgba(2, 11, 36, 0.58);
}

.currency-input:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(40, 215, 255, 0.12);
}

.currency-input > span {
  color: var(--green);
  font-weight: 900;
}

.currency-input input,
.currency-input input:focus {
  border: 0;
  box-shadow: none;
  padding-left: 0;
  padding-right: 0;
  background: transparent;
}

.phase-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.empty-row {
  text-align: center !important;
  color: var(--muted);
  padding: 28px 16px;
}

.post-grid {
  grid-template-columns: repeat(3, 1fr);
}

.post-grid .field-wide {
  grid-column: span 1;
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-actions { justify-content: flex-start; padding-top: 0; }
  .post-grid { grid-template-columns: 1fr; }
}

/* Final form cleanup: consistent readable inputs and equal-sized value boxes */
.section-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 30px 0 14px;
  color: var(--cyan);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.section-divider::before,
.section-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, rgba(40, 215, 255, 0.48), transparent);
}

input[type="number"],
input[type="text"] {
  width: 100%;
  min-height: 54px;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 15px;
  color: var(--text) !important;
  -webkit-text-fill-color: var(--text) !important;
  background: rgba(2, 11, 36, 0.58);
  outline: none;
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.2;
  appearance: none;
}

input[type="number"]::placeholder,
input[type="text"]::placeholder {
  color: rgba(247, 251, 255, 0.62);
  -webkit-text-fill-color: rgba(247, 251, 255, 0.62);
}

input[type="number"]:focus,
input[type="text"]:focus,
.currency-input:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(40, 215, 255, 0.12);
}

.currency-input {
  width: 100%;
  min-height: 54px;
  height: 54px;
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0 15px;
  background: rgba(2, 11, 36, 0.58);
}

.currency-input > span {
  color: var(--cyan);
  font-weight: 900;
  font-size: 1rem;
}

.currency-input input[type="text"] {
  min-height: 52px;
  height: 52px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.currency-input input[type="text"]:focus {
  box-shadow: none;
}

.field,
.currency-field {
  min-width: 0;
}

.phase-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(40, 215, 255, 0.28);
  border-radius: 999px;
  padding: 4px 10px;
  color: #eaf2ff;
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.empty-row {
  text-align: center !important;
  color: var(--muted);
  padding: 24px 16px;
}

/* Alignment fix: keeps every value box level, even when labels wrap to two lines */
.grid,
.post-grid {
  align-items: end;
}

.field,
.currency-field {
  display: grid;
  grid-template-rows: 44px 54px;
  gap: 8px;
  align-items: end;
}

.field > span,
.currency-field > span {
  min-height: 44px;
  display: flex;
  align-items: flex-end;
  line-height: 1.18;
}

.field input[type="number"],
.currency-input {
  height: 54px;
  min-height: 54px;
  width: 100%;
}

.currency-input input[type="text"] {
  height: 52px;
  min-height: 52px;
}

@media (max-width: 900px) {
  .field,
  .currency-field {
    grid-template-rows: auto 54px;
  }

  .field > span,
  .currency-field > span {
    min-height: 0;
  }
}

/* Floating request information button and modal */
.info-float-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  border: 1px solid rgba(99, 213, 255, 0.38);
  border-radius: 999px;
  padding: 15px 22px;
  color: #021329;
  background: linear-gradient(135deg, var(--cyan), var(--gold, #f5c542));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32), 0 0 28px rgba(99, 213, 255, 0.22);
  cursor: pointer;
  font-weight: 950;
  letter-spacing: -0.01em;
}

.info-float-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.38), 0 0 34px rgba(99, 213, 255, 0.32);
}

.info-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.info-modal.open { display: flex; }

.info-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 8, 24, 0.72);
  backdrop-filter: blur(10px);
}

.info-modal-card {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: calc(100vh - 44px);
  overflow: auto;
  border: 1px solid rgba(99, 213, 255, 0.24);
  border-radius: 26px;
  padding: 30px;
  color: var(--text);
  background: linear-gradient(180deg, rgba(7, 31, 63, 0.98), rgba(2, 13, 29, 0.98));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.48);
}

.info-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.info-modal-card h2 {
  margin: 0 0 10px;
  color: var(--white, #ffffff);
  font-size: clamp(2rem, 6vw, 3.1rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.info-modal-copy {
  margin-bottom: 22px;
  color: var(--muted);
  line-height: 1.55;
}

.info-form,
.info-form label {
  display: grid;
  gap: 8px;
}

.info-form { gap: 14px; }

.info-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.info-form span {
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 850;
}

.info-form input,
.info-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 15px;
  color: #f7fbff;
  background: rgba(2, 11, 36, 0.62);
  outline: none;
  font: inherit;
}

.info-form input:focus,
.info-form textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(99, 213, 255, 0.12);
}

.info-submit {
  border: 0;
  border-radius: 999px;
  padding: 15px 22px;
  color: #021329;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  cursor: pointer;
  font-weight: 950;
}

.info-success {
  min-height: 22px;
  margin: 0;
  color: var(--cyan);
  font-weight: 800;
}

.hidden-field { display: none !important; }

body.info-modal-open { overflow: hidden; }

@media (max-width: 640px) {
  .info-float-btn {
    right: 16px;
    bottom: 16px;
    padding: 13px 16px;
    font-size: 0.9rem;
  }

  .info-modal-card { padding: 26px 20px; }
  .info-form-grid { grid-template-columns: 1fr; }
}
