* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: #e8ecff;
  background:
    radial-gradient(900px 500px at 20% 10%, rgba(43,111,255,.18), transparent 60%),
    radial-gradient(700px 500px at 80% 0%, rgba(122,92,255,.14), transparent 55%),
    radial-gradient(900px 700px at 50% 110%, rgba(0,255,163,.06), transparent 60%),
    linear-gradient(180deg, #070a12, #0b1020);

  /* full-height layout */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

.topbar {
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(5, 8, 16, .35);
  backdrop-filter: blur(10px);
}

.brand {
  height: 64px;
  display: flex;
  align-items: center;
  font-weight: 800;
  letter-spacing: .3px;
}

.hero {
  text-align: center;
  padding: 44px 0 22px;
}

.hero h1 {
  font-size: 44px;
  margin: 0;
  letter-spacing: -.4px;
}

.hero p {
  opacity: .78;
  max-width: 640px;
  margin: 10px auto 0;
  line-height: 1.5;
}

.divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
  margin: 22px 0;
}

.panel {
  position: relative;
  border-radius: 16px;
  padding: 22px;

  /* Glass look */
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  /* Border + depth */
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Subtle highlight line at the top of the panel (premium glass detail) */
.panel::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 10px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.20),
    transparent
  );
  pointer-events: none;
}

/* Soft inner glow to match the reference */
.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: radial-gradient(
    900px 240px at 50% 0%,
    rgba(59, 124, 255, 0.10),
    transparent 60%
  );
  pointer-events: none;
}


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

.field-label {
  font-size: 12px;
  opacity: .72;
  letter-spacing: .2px;
}

input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  margin-top: 8px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: #fff;
  outline: none;
  transition: border-color .15s ease, background .15s ease, transform .05s ease;
}

input:focus {
  border-color: rgba(43,111,255,.55);
  background: rgba(255,255,255,.08);
}


/* Chrome, Edge, Safari */
input::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: 0.85;
  cursor: pointer;
}

input::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

.actions {
  margin-top: 14px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 650;
  letter-spacing: .15px;
  transition: transform .05s ease, filter .15s ease, opacity .15s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(180deg, #3b7cff, #2b6fff);
  color: #fff;
  border: none;
  box-shadow: 0 10px 24px rgba(43,111,255,.18);
}

.btn-primary:hover { filter: brightness(1.06); }

.btn-ghost {
  background: rgba(255,255,255,.03);
  color: #fff;
  border: 1px solid rgba(255,255,255,.16);
}

.btn-ghost:hover { filter: brightness(1.08); }

.hidden { display: none; }

/* make main area flexible */
main.container {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* when results hidden, center content vertically */
main.container:has(.results.hidden) {
  justify-content: center;
}

/* avoid over-centering on short viewports */
@media (max-height: 700px) {
  main.container:has(.results.hidden) {
    justify-content: flex-start;
  }
}

.footer {
  text-align: center;
  margin-top: auto;
  padding: 18px 0 24px;
  opacity: .6;
  font-size: 13px;
}

.bigline {
  text-align: center;
  font-size: 48px;
  font-weight: 900;
  margin: 18px 0 10px;
  letter-spacing: -.6px;
}

.muted { opacity: .75; }

.statusline{
  text-align: center;
  margin: 6px 0 14px;
  font-size: 14px;
  opacity: .82;
}

.statusline.past {
  opacity: .9;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 760px;
  margin: 0 auto;
}

.card {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 16px 18px;
  background: rgba(255,255,255,.035);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 28px rgba(0,0,0,.25);
}

.card-title {
  opacity: .76;
  margin-bottom: 6px;
  letter-spacing: .2px;
}

.card-value {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -.4px;
}

.targetline {
  text-align: center;
  margin-top: 12px;
  opacity: .82;
  font-size: 14px;
}

.toast{
  text-align: center;
  margin-top: 10px;
  font-size: 13px;
  opacity: .85;
}

@media (max-width: 700px) {
  .controls { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
  .bigline { font-size: 44px; }
}


.ad-slot{
  margin: 14px auto 0;
  max-width: 960px;
}

.ad-label{
  text-align: center;
  font-size: 12px;
  opacity: .6;
  margin-bottom: 8px;
}

.ad-box{
  height: 90px;
  border-radius: 14px;
  border: 1px dashed rgba(255,255,255,.18);
  background: rgba(255,255,255,.03);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: .75;
  user-select: none;
}

/* Mobile: shorter ad height */
@media (max-width: 700px){
  .ad-box{ height: 60px; }
}
