:root {
  --bg: #030712;
  --panel: rgba(10, 18, 35, .78);
  --panel-strong: rgba(12, 23, 43, .95);
  --line: rgba(125, 211, 252, .16);
  --text: #f3f8ff;
  --muted: #8ea0b9;
  --cyan: #20d9ff;
  --blue: #4d7cff;
  --green: #31e6a1;
  --red: #ff637d;
  --shadow: 0 25px 80px rgba(0, 0, 0, .35);
}

* {
  box-sizing: border-box
}

html {
  color-scheme: dark
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 20% 10%, #0a2541 0, transparent 32%), radial-gradient(circle at 90% 80%, #13204c 0, transparent 30%), var(--bg);
  color: var(--text);
  font-family: Inter, sans-serif;
  overflow-x: hidden
}

body:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .11;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 88%)
}

.ambient {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .16;
  pointer-events: none
}

.ambient-one {
  width: 300px;
  height: 300px;
  background: var(--cyan);
  top: -100px;
  right: 15%
}

.ambient-two {
  width: 340px;
  height: 340px;
  background: #604cff;
  bottom: -180px;
  left: 5%
}

.app-shell {
  position: relative;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 54px 0 24px
}

.hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  margin-bottom: 36px
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(32, 217, 255, .35);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(32, 217, 255, .17), rgba(77, 124, 255, .07));
  box-shadow: inset 0 0 26px rgba(32, 217, 255, .08), 0 0 30px rgba(32, 217, 255, .08);
  background-image: url("../img/logo_DF_cor16d8ff.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.brand-mark svg {
  width: 32px;
  fill: var(--cyan)
}

.eyebrow {
  color: var(--cyan);
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .2em
}

.hero h1 {
  font-family: Orbitron, sans-serif;
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 1.05;
  margin: 8px 0 9px
}

.hero h1 span {
  background: linear-gradient(90deg, var(--cyan), #8aeaff);
  -webkit-background-clip: text;
  color: transparent
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: .98rem
}

.status-pill {
  align-self: start;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid rgba(49, 230, 161, .2);
  border-radius: 999px;
  background: rgba(49, 230, 161, .07);
  color: #a8f5d5;
  font-size: .73rem;
  font-weight: 700
}

.status-pill span {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--green)
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
  gap: 22px;
  align-items: start
}

.glass-panel {
  background: linear-gradient(145deg, rgba(14, 25, 46, .88), rgba(7, 14, 28, .76));
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px)
}

.input-panel,
.summary-panel {
  padding: 26px
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px
}

.section-heading>div {
  display: flex;
  align-items: center;
  gap: 12px
}

.step {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid rgba(32, 217, 255, .25);
  border-radius: 9px;
  background: rgba(32, 217, 255, .08);
  color: var(--cyan);
  font: 700 .72rem Orbitron
}

.section-heading h2 {
  margin: 0;
  font-size: 1rem
}

.text-button {
  border: 0;
  background: transparent;
  color: #77dfff;
  font: 600 .75rem Inter;
  cursor: pointer
}

.text-button:hover {
  text-decoration: underline
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 21px
}

.field {
  display: block
}

.field>span {
  display: block;
  margin-bottom: 9px;
  color: #b9c7da;
  font-size: .79rem;
  font-weight: 600
}

.field small {
  display: block;
  margin-top: 7px;
  color: #71829b;
  font-size: .68rem
}

.input-wrap {
  position: relative;
  width: 100%;
}

.input-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 18px;
  transform: translateY(-50%);
  fill: #6682a5;
  pointer-events: none
}

.input-wrap input {
  width: 100%;
  height: 53px;
  padding: 0 14px 0 44px;
  border: 1px solid rgba(120, 159, 201, .19);
  border-radius: 13px;
  outline: none;
  background: rgba(3, 9, 19, .6);
  color: #eaf5ff;
  font: 700 1rem Inter;
  transition: .2s
}

.input-wrap input:focus {
  border-color: rgba(32, 217, 255, .65);
  box-shadow: 0 0 0 4px rgba(32, 217, 255, .08)
}

.error-message {
  min-height: 20px;
  margin-top: 15px;
  color: #ff8da0;
  font-size: .76rem
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 11px
}

.primary-button,
.secondary-button {
  height: 50px;
  border-radius: 13px;
  font: 700 .82rem Inter;
  cursor: pointer;
  transition: .2s
}

.primary-button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  background: linear-gradient(100deg, #19c9ed, #4678f3);
  color: #03101c;
  box-shadow: 0 14px 35px rgba(30, 195, 238, .18)
}

.primary-button svg {
  width: 18px;
  fill: currentColor
}

.primary-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.08)
}

.secondary-button {
  padding: 0 23px;
  border: 1px solid rgba(130, 164, 205, .2);
  background: rgba(255, 255, 255, .025);
  color: #9fb0c6
}

.secondary-button:hover {
  border-color: rgba(32, 217, 255, .35);
  color: #d7f8ff
}

.results-column {
  display: grid;
  gap: 17px
}

.summary-panel {
  padding-bottom: 21px
}

.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px
}

.metric-card {
  display: flex;
  gap: 13px;
  align-items: center;
  min-width: 0;
  padding: 17px;
  border: 1px solid rgba(129, 160, 198, .13);
  border-radius: 15px;
  background: rgba(4, 11, 23, .56)
}

.metric-card.accent {
  border-color: rgba(32, 217, 255, .19);
  background: linear-gradient(135deg, rgba(32, 217, 255, .09), rgba(4, 11, 23, .5))
}

.metric-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 39px;
  height: 39px;
  border-radius: 11px;
  background: rgba(32, 217, 255, .09)
}

.metric-icon svg {
  width: 18px;
  fill: var(--cyan)
}

.metric-card span,
.metric-card small {
  display: block
}

.metric-card span {
  color: #8395ad;
  font-size: .68rem
}

.metric-card strong {
  display: block;
  margin: 4px 0;
  font: 700 1.45rem Orbitron;
  white-space: nowrap
}

.metric-card small {
  color: #5f718b;
  font-size: .62rem
}

.metric-card.positive strong {
  color: var(--green)
}

.metric-card.negative strong {
  color: var(--red)
}

.recommendation {
  padding: 22px;
  border: 1px solid rgba(32, 217, 255, .23);
  border-radius: 20px;
  background: linear-gradient(130deg, rgba(15, 74, 92, .34), rgba(9, 22, 40, .9));
  box-shadow: inset 0 0 40px rgba(32, 217, 255, .035), var(--shadow)
}

.recommendation-top {
  display: flex;
  align-items: center;
  gap: 15px
}

.recommendation-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(32, 217, 255, .2), rgba(77, 124, 255, .12));
  box-shadow: 0 0 25px rgba(32, 217, 255, .08)
}

.recommendation-icon svg {
  width: 24px;
  fill: var(--cyan)
}

.recommendation-top span {
  display: block;
  color: #7e91aa;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .13em
}

.recommendation-top strong {
  display: block;
  margin-top: 4px;
  color: var(--cyan);
  font: 700 1.65rem Orbitron
}

.recommendation p {
  margin: 17px 0 0;
  padding-top: 15px;
  border-top: 1px solid rgba(128, 188, 220, .12);
  color: #9fb1c6;
  font-size: .75rem;
  line-height: 1.55
}

.recommendation.warning {
  border-color: rgba(255, 99, 125, .32);
  background: linear-gradient(130deg, rgba(105, 26, 43, .32), rgba(30, 12, 22, .9))
}

.recommendation.warning .recommendation-top strong {
  color: #ff8095
}

.recommendation.warning .recommendation-icon {
  background: rgba(255, 99, 125, .12)
}

.recommendation.warning .recommendation-icon svg {
  fill: #ff8095
}

.rules-card {
  padding: 20px 22px;
  border: 1px solid rgba(126, 157, 196, .13);
  border-radius: 18px;
  background: rgba(6, 14, 28, .66)
}

.rules-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px
}

.rules-title h3 {
  margin: 0;
  font-size: .82rem
}

.rules-title span {
  color: #657890;
  font-size: .62rem
}

.rule-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 10px 0;
  border-top: 1px solid rgba(133, 162, 199, .09);
  font-size: .69rem
}

.rule-row span {
  color: #8193aa
}

.rule-row strong {
  color: #b9c7d9;
  text-align: right
}

.rule-row.danger strong {
  color: #ff8095
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
  padding: 0 4px;
  color: #43526a;
  font-size: .58rem;
  letter-spacing: .08em
}

@media(max-width:900px) {
  .workspace {
    grid-template-columns: 1fr
  }

  .hero {
    grid-template-columns: auto 1fr
  }

  .status-pill {
    display: none
  }
}

@media(max-width:600px) {
  .app-shell {
    width: min(100% - 22px, 1180px);
    padding-top: 30px
  }
  
  .primary-button{
      min-height: 50px;
  }

  .hero {
    gap: 13px;
    margin-bottom: 25px
  }

  .brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 15px
  }

  .brand-mark svg {
    width: 26px
  }


  .hero p {
    font-size: .82rem
  }

  .input-panel,
  .summary-panel {
    padding: 19px
  }

  .form-grid,
  .metrics {
    grid-template-columns: 1fr
  }

  .form-actions {
    flex-direction: column
  }

  .secondary-button {
    width: 100%
  }

  .section-heading {
    margin-bottom: 20px
  }

  .workspace {
    gap: 15px
  }

  footer {
    flex-direction: column;
    text-align: center
  }

  .text-button {
    font-size: .68rem
  }
}

.long-line {
  margin-inline: auto;
}

.long-line {
  display: block;
  width: 100%;
  height: 5px;
  margin-top: 20px;
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(22, 216, 255, 0.5);
}

input[type=time]::-webkit-calendar-picker-indicator {
  filter: brightness(0) saturate(100%)
          invert(77%) sepia(82%) saturate(2700%)
          hue-rotate(152deg) brightness(101%) contrast(102%);
  opacity: .55;
  cursor: pointer
}

.input-wrap {
  overflow: hidden;
}

input[type="time"] {
  /*display: block;*/
  width: 100%;
  max-width: 100%;
  min-width: 100%;
  appearance: none;
  -webkit-appearance: none;
}

footer {
  padding: 34px 20px;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(1, 6, 12, 0.58);
  display: flex;
  justify-content: center;
}
