.button,
.icon-button,
.tool-item,
.template-chip {
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  min-height: 42px;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  font-weight: 800;
  line-height: 1;
}

.button svg {
  width: 18px;
  height: 18px;
}

.button-primary {
  color: var(--primary-contrast);
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  box-shadow: 0 12px 28px rgba(108, 124, 255, 0.22);
}

.button-secondary,
.button-ghost {
  color: var(--text);
  background: var(--surface-strong);
  border-color: var(--line);
}

.button-ghost {
  background: transparent;
}

.button:hover,
.icon-button:hover,
.tool-item:hover,
.template-chip:hover {
  transform: translateY(-1px);
}

.button-secondary:hover,
.button-ghost:hover,
.icon-button:hover,
.tool-item:hover,
.template-chip:hover {
  border-color: var(--line-strong);
  background: color-mix(in srgb, var(--surface-strong) 88%, var(--primary));
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--text);
  background: var(--surface);
  border-color: var(--line);
}

.icon-button.compact {
  width: 34px;
  height: 34px;
  min-height: 34px;
}

.icon-button svg {
  width: 19px;
  height: 19px;
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid color-mix(in srgb, var(--green) 42%, var(--line));
  border-radius: 999px;
  color: var(--green);
  background: color-mix(in srgb, var(--green) 10%, transparent);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: var(--text);
  background: var(--bg-soft);
  outline: none;
}

.input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108, 124, 255, 0.18);
}

.textarea {
  min-height: 220px;
  resize: vertical;
}

.field {
  display: grid;
  gap: 8px;
  color: var(--text-soft);
  font-weight: 700;
}

.field span {
  font-size: 0.86rem;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.feature-card,
.price-card,
.auth-card,
.dashboard-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.feature-card {
  min-height: 210px;
  padding: 22px;
}

.feature-card svg {
  width: 26px;
  height: 26px;
  margin-bottom: 20px;
  color: var(--blue);
}

.price-card {
  position: relative;
  display: grid;
  gap: 18px;
  align-content: start;
  min-height: 390px;
  padding: 26px;
}

.price-card.highlighted {
  border-color: color-mix(in srgb, var(--primary) 62%, var(--line));
  background:
    linear-gradient(180deg, rgba(108, 124, 255, 0.14), transparent 170px),
    var(--surface);
}

.price {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 800;
}

.price span {
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
}

.price-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  color: var(--text-soft);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  max-width: min(360px, calc(100vw - 36px));
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--text);
  font-weight: 700;
}

.auth-card,
.dashboard-card {
  padding: 26px;
}

.auth-card {
  max-width: 520px;
  margin: 0 auto;
}

.auth-form {
  display: grid;
  gap: 15px;
  margin-top: 22px;
}

.auth-switch {
  margin-top: 18px;
  color: var(--text-muted);
}

.auth-switch a {
  color: var(--teal);
  font-weight: 800;
}

.notice {
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--amber) 45%, var(--line));
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  background: color-mix(in srgb, var(--amber) 10%, transparent);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 14px;
  margin-top: 24px;
}

.metric-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.metric-list li,
.history-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
}

.metric-list strong,
.history-item strong {
  display: block;
  color: var(--text);
}

.metric-list span,
.history-item span {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.history-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

@media (max-width: 820px) {
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
