* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 10% 5%, rgba(255, 55, 177, 0.22), transparent 30%),
    radial-gradient(circle at 80% 15%, rgba(104, 191, 206, 0.15), transparent 30%),
    radial-gradient(circle at 50% 95%, rgba(255, 55, 177, 0.15), transparent 35%),
    linear-gradient(180deg, #080813 0%, #111024 45%, #160f27 100%);
  color: #e5e7eb;
  font: 16px / 1.5 Arial, Helvetica, sans-serif;
  /* font-size / line-height font-family */
}

.container {
  width: min(1100px, calc(100% - 20px));
  margin: clamp(80px, 6vw, 100px) auto 25px;
}

h1 {
  font-size: clamp(20px, 2.2vw, 25px);
  font-weight: 750;
  letter-spacing: 2.5px;
  text-align: center;
}

.title-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.info-icon {
  width: 22px;
  opacity: .7;
  cursor: pointer;
  transition: transform .2s ease, opacity .2s ease;
  vertical-align: middle;
}

.info-icon:hover {
  opacity: 1;
  transform: scale(1.1);
}

.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip-content {
  position: absolute;
  top: calc(100% + 20px);
  right: -20px;

  width: min(500px, 80vw);
  padding: 14px;

  background: rgba(10, 15, 35);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 16px;
  box-shadow:
    0 16px 42px rgba(0, 0, 0, 0.65),
    0 0 18px rgba(109, 247, 255, 0.12);

  color: #dce3ff;
  font-size: 14px;
  line-height: 1.4;
  text-align: left;

  display: none;
  z-index: 100;
}

.tooltip:hover .tooltip-content {
  display: block;
}

.flex {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.card {
  background: rgba(10, 15, 30, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50px;
  box-shadow:
    0 0 40px rgba(0, 0, 0, 0.62),
    0 0 24px rgba(120, 140, 255, 0.14);
  padding: 18px
}

.ok {
  color: #047857;
  font-weight: bold;
}

/* compact, responsive form grid */
.row {
  display: grid;
  grid-template-columns: 160px 160px 160px 160px 160px;
  justify-content: center;
  gap: 12px
}

@media (max-width:1200px) {
  .row {
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr
  }
}

@media (max-width:780px) {
  .row {
    grid-template-columns: 1fr 1fr
  }
}

label {
  display: block;
  font-size: 14px;
  color: #9ca3af;
  margin: 0 0 6px;
  text-align: center;
}

select {
  appearance: base-select;
}

::picker(select) {
  appearance: base-select;
  border-radius: 12px;
  border: 1px solid #1f2937;
  background-color: #0f1a2b;
  color: #e5e7eb;
}

::picker(select)::-webkit-scrollbar {
  display: none;
}

select::picker-icon {
  align-content: center;
  transition: 150ms ease;
}

select:open::picker-icon {
  rotate: 180deg;
}

select option {
  padding: 2px 10px;
}

select option:checked {
  background-color: #0d1626;
}

select option::checkmark {
  color: greenyellow;
}

input,
select,
button {
  width: 100%;
  box-sizing: border-box;
  height: 45px;
  font-size: 16px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #1f2937;
  background: #0d1626;
  color: #e5e7eb;
  transition: border-color .2s, box-shadow .2s, transform .02s
}

input:focus,
select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 4px color-mix(in srgb, #2563eb 18%, transparent)
}

/* Custom number input */
.number-wrap {
  position: relative;
  width: 100%;
}

.number-wrap input[type="number"] {
  padding-right: 42px;
}

.number-controls {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 25px;
  height: calc(100% - 2px);
  
  display: grid;
  grid-template-rows: 1fr 1fr;
  
  border-left: 1px solid color-mix(in srgb, #1f2937 30%, #1f2937);
  border-radius: 0 12px 12px 0;
  overflow: hidden;
  
  background:
  linear-gradient(180deg, #0f1a2b, #0d1626);
}

.number-btn {
  width: 100%;
  height: 100%;
  padding: 0;
  
  border: none;
  border-radius: 0;
  
  background: transparent;
  color: #9ca3af;
  
  font-size: 10px;
  line-height: 1;
  cursor: pointer;
  
  display: flex;
  align-items: center;
  justify-content: center;
  
  transition:
  background .2s ease,
  color .2s ease,
  box-shadow .2s ease;
}

.number-btn:first-child {
  border-bottom: 1px solid #1f2937;
}

.number-btn:hover {
  background: 
  radial-gradient(circle, rgba(37, 99, 235, .28), transparent 70%), #141f34;
  color: #e5e7eb;
  box-shadow: 
  inset 0 0 8px rgba(37, 99, 235, .22);
}

.number-btn:active {
  background: #2563eb;
  color: white;
  transform: none;
}

.number-wrap:focus-within .number-controls {
  border-left-color: #2563eb;
  box-shadow:
  inset 1px 0 0 color-mix(in srgb, #2563eb 35%, transparent),
  0 0 8px color-mix(in srgb, #2563eb 25%, transparent);
}

/* Hide native number arrows */
.number-wrap input[type="number"]::-webkit-outer-spin-button,
.number-wrap input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.number-wrap input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

button {
  background: #e5e7eb;
  color: #0d1626;
  border: none;
  font-weight: 600
}

button:hover {
  background: #fff;
}

button:active {
  transform: translateY(1px)
}

.headline {
  font-size: clamp(16px, 1.8vw, 18px);
  margin: 16px 8px 16px
}

/* compact tables */
.table-wrap {
  overflow: auto;
  border-radius: 22px;
  border: 1px solid #1f2937;
  margin-top: 6px
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px
}

thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #0f1a2b;
  color: #9ca3af;
  text-align: center;
  padding: 6px 8px;
  border-bottom: 1px solid #1f2937;
  font-weight: 600
}

thead th:first-child,
tbody td:first-child {
  text-align: center
}

tbody tr:nth-child(odd) {
  background: #0d1626;
}

tbody tr:nth-child(even) {
  background: #0f1a2b;
}

td {
  padding: 6px 8px;
  border-bottom: 1px solid #1f2937;
  text-align: center;
  font-variant-numeric: tabular-nums
}

.na {
  color: #9ca3af
}

.hl {
  background: #141f34 !important
}

.rb {
  background: #3a2e00 !important
}

/* tabs */
.tabs {
  margin-top: 16px
}

.tab-bar {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid #1f2937;
}

.tab-btn {
  background: transparent;
  border: none;
  border-radius: 8px 8px 0 0;
  padding: 10px;
  cursor: pointer;
  color: #9ca3af;
  font-size: 16px;
  transition: background .2s, color .2s
}

.tab-btn:hover {
  background: #0f1a2b;
  color: #e5e7eb;
}

.tab-btn.active {
  background: #0d1626;
  color: #e5e7eb;
  border-bottom: 3px solid #2563eb;
  font-weight: 700
}

.tab-panel {
  display: none;
  padding: 20px 0
}

.tab-panel.active {
  display: block
}

.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px
}

@media (max-width:900px) {
  .two {
    grid-template-columns: 1fr
  }
}

.caption {
  font-weight: 600;
  margin: 10px 5px 10px;
  color: #9ca3af;
  text-align: center;
}

#headline .credits {
  width: 18px;
  vertical-align: middle;
}

.credits,
.serum {
  width: 14px;
  vertical-align: middle;
}

/* =========================
   Hide Page Scrollbar Only
========================= */

html {
    scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
}