.spc-wrap {
  --spc-bg: #0d0f12;
  --spc-panel: #151922;
  --spc-panel-2: #10141c;
  --spc-border: rgba(126, 255, 92, 0.18);
  --spc-accent: #76ff4c;
  --spc-accent-2: #9dff75;
  --spc-text: #f5f7fa;
  --spc-muted: #a9b1bb;
  --spc-danger-bg: rgba(255, 70, 70, 0.10);
  --spc-danger-border: rgba(255, 90, 90, 0.28);
  --spc-danger-text: #ff8a8a;
  --spc-shadow: 0 14px 38px rgba(0,0,0,0.35);
  max-width: 900px;
  margin: 0 auto;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--spc-text);
}

.spc-card {
  background:
    radial-gradient(circle at top right, rgba(118,255,76,0.12), transparent 28%),
    linear-gradient(180deg, #121720 0%, #0d0f12 100%);
  border: 1px solid var(--spc-border);
  border-radius: 18px;
  padding: 30px;
  box-shadow: var(--spc-shadow);
  overflow: hidden;
}

.spc-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 10px;
  border: 1px solid rgba(118,255,76,0.30);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--spc-accent-2);
  background: rgba(118,255,76,0.08);
}

.spc-header h2 {
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.1;
  color: #fff;
}

.spc-header p {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--spc-muted);
  max-width: 720px;
}

.spc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.spc-field {
  display: flex;
  flex-direction: column;
}

.spc-field label {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.spc-field input,
.spc-field select {
  width: 100%;
  padding: 14px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: var(--spc-panel);
  color: var(--spc-text);
  font-size: 15px;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  appearance: none;
}

.spc-field input::placeholder {
  color: #7c8794;
}

.spc-field input:focus,
.spc-field select:focus {
  outline: none;
  border-color: rgba(118,255,76,0.55);
  box-shadow: 0 0 0 3px rgba(118,255,76,0.12);
  transform: translateY(-1px);
}

.spc-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.spc-btn {
  padding: 14px 22px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--spc-accent) 0%, #5ce236 100%);
  color: #071008;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 10px 24px rgba(118,255,76,0.24);
}

.spc-btn:hover {
  transform: translateY(-1px);
  opacity: 0.98;
}

.spc-btn-secondary {
  background: #232a35;
  color: #edf2f7;
  box-shadow: none;
  border: 1px solid rgba(255,255,255,0.08);
}

.spc-error {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--spc-danger-bg);
  border: 1px solid var(--spc-danger-border);
  color: var(--spc-danger-text);
  font-size: 14px;
  line-height: 1.5;
}

.spc-results {
  margin-top: 26px;
  padding: 22px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, rgba(118,255,76,0.03) 100%);
  border: 1px solid rgba(118,255,76,0.14);
}

.spc-results-head h3 {
  margin: 0 0 18px;
  font-size: 22px;
  color: #fff;
}

.spc-results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.spc-result-box {
  background: var(--spc-panel-2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 16px;
}

.spc-highlight {
  border-color: rgba(118,255,76,0.28);
  box-shadow: inset 0 0 0 1px rgba(118,255,76,0.05);
}

.spc-result-label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--spc-muted);
  margin-bottom: 8px;
}

.spc-result-value {
  display: block;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
}

.spc-note {
  margin-top: 18px;
  color: #8290a0;
  font-size: 12px;
}

@media (max-width: 767px) {
  .spc-card {
    padding: 22px;
  }

  .spc-grid,
  .spc-results-grid {
    grid-template-columns: 1fr;
  }

  .spc-header h2 {
    font-size: 28px;
  }

  .spc-result-value {
    font-size: 20px;
  }
}


/* White, readable entry fields for reconstitution amount and desired dose */
.spc-field input.spc-ml,
.spc-field input.spc-dose {
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #111111 !important;
  -webkit-text-fill-color: #111111 !important;
  border: 1px solid #dcdcdc !important;
  opacity: 1 !important;
}

.spc-field input.spc-ml::placeholder,
.spc-field input.spc-dose::placeholder {
  color: #777777 !important;
  opacity: 1 !important;
}

.spc-field input.spc-ml:focus,
.spc-field input.spc-dose:focus {
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #111111 !important;
  -webkit-text-fill-color: #111111 !important;
  border-color: #76ff4c !important;
  box-shadow: 0 0 0 2px rgba(118,255,76,0.18) !important;
  outline: none !important;
  transform: translateY(-1px);
}

.spc-field input.spc-ml.spc-has-value,
.spc-field input.spc-dose.spc-has-value {
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #111111 !important;
  -webkit-text-fill-color: #111111 !important;
  border-color: #76ff4c !important;
  box-shadow: 0 0 0 2px rgba(118,255,76,0.22), 0 0 14px rgba(118,255,76,0.28) !important;
}

.spc-field input.spc-ml:-webkit-autofill,
.spc-field input.spc-ml:-webkit-autofill:hover,
.spc-field input.spc-ml:-webkit-autofill:focus,
.spc-field input.spc-dose:-webkit-autofill,
.spc-field input.spc-dose:-webkit-autofill:hover,
.spc-field input.spc-dose:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
  -webkit-text-fill-color: #111111 !important;
  border: 1px solid #dcdcdc !important;
}


/* v1.0.2 strong white-input override */
.spc-wrap .spc-field input.spc-ml,
.spc-wrap .spc-field input.spc-dose {
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #111111 !important;
  -webkit-text-fill-color: #111111 !important;
  caret-color: #111111 !important;
  border: 1px solid #dcdcdc !important;
  box-shadow: none;
}

.spc-wrap .spc-field input.spc-ml::placeholder,
.spc-wrap .spc-field input.spc-dose::placeholder {
  color: #777777 !important;
  opacity: 1 !important;
}

.spc-wrap .spc-field input.spc-ml:focus,
.spc-wrap .spc-field input.spc-dose:focus {
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #111111 !important;
  -webkit-text-fill-color: #111111 !important;
  caret-color: #111111 !important;
  border-color: #76ff4c !important;
  box-shadow: 0 0 0 2px rgba(118,255,76,0.18) !important;
  transform: none !important;
}

.spc-wrap .spc-field input.spc-ml.spc-has-value,
.spc-wrap .spc-field input.spc-dose.spc-has-value {
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #111111 !important;
  -webkit-text-fill-color: #111111 !important;
  caret-color: #111111 !important;
  border-color: #76ff4c !important;
  box-shadow: 0 0 0 2px rgba(118,255,76,0.22), 0 0 14px rgba(118,255,76,0.28) !important;
}

.spc-wrap .spc-field input.spc-ml:-webkit-autofill,
.spc-wrap .spc-field input.spc-dose:-webkit-autofill,
.spc-wrap .spc-field input.spc-ml:-webkit-autofill:hover,
.spc-wrap .spc-field input.spc-dose:-webkit-autofill:hover,
.spc-wrap .spc-field input.spc-ml:-webkit-autofill:focus,
.spc-wrap .spc-field input.spc-dose:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
  -webkit-text-fill-color: #111111 !important;
  caret-color: #111111 !important;
  border: 1px solid #dcdcdc !important;
}
