* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #09090b;
  color: #e4e4e7;
  min-height: 100vh;
}

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

.title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.subtitle {
  text-align: center;
  color: #a1a1aa;
  font-size: 1.125rem;
  margin-top: 8px;
  margin-bottom: 40px;
}

.panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

@media (max-width: 768px) {
  .panel {
    grid-template-columns: 1fr;
  }
}

.inputs-section {
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 12px;
  padding: 28px;
}

.section-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #e4e4e7;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: 0.875rem;
  color: #a1a1aa;
  margin-bottom: 6px;
}

.input-wrap {
  position: relative;
}

.prefix {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #a1a1aa;
  font-size: 0.875rem;
  pointer-events: none;
}

.input-wrap input {
  width: 100%;
  padding: 10px 12px 10px 32px;
  background: #27272a;
  border: 1px solid #3f3f46;
  border-radius: 8px;
  color: #e4e4e7;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.15s;
}

.input-wrap input:focus {
  border-color: #34d399;
}

.input-wrap input::placeholder {
  color: #a1a1aa;
}

input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

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

button#calc-btn {
  width: 100%;
  padding: 12px;
  background: #047857;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  margin-top: 4px;
}

button#calc-btn:hover {
  background: #065f46;
}

button#calc-btn:disabled {
  background: #3f3f46;
  color: #d4d4d8;
  cursor: not-allowed;
}

.error {
  color: #f87171;
  font-size: 0.875rem;
  text-align: center;
  margin-top: 12px;
  min-height: 20px;
}

.results-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 300px;
  color: #a1a1aa;
  font-size: 1.125rem;
  gap: 16px;
}

.results {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.results.hidden {
  display: none;
}

.result-card {
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-green  { background: #064e3b; color: #34d399; }
.icon-blue   { background: #1e3a5f; color: #60a5fa; }
.icon-amber  { background: #451a03; color: #fbbf24; }
.icon-purple { background: #3b0764; color: #c084fc; }

.result-label {
  display: block;
  font-size: 0.875rem;
  color: #a1a1aa;
}

.result-value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
