.calc-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.tab-btn {
  flex: 1;
  min-width: 140px;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
}

.tab-btn:hover {
  border-color: var(--accent);
  color: var(--text);
}

.tab-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.tab-description {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.calc-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.result-box {
  padding: 16px;
  background: var(--surface);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
  color: var(--accent);
  margin-top: 4px;
}

/* ================================
   MOBILE RESPONSIVE â€” Tool Page Fix
   ================================ */

/* Inherit from global */
input, textarea, select {
  font-size: 16px; /* prevents iOS auto-zoom */
  width: 100%;
  max-width: 100%;
}

/* Responsive tool UI */
@media (max-width: 540px) {
  .tool-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}
