/* === COMPONENTS: Buttons, Inputs, Toast === */

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 18px;
  border: none;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  white-space: nowrap;
}

.btn svg { width: 16px; height: 16px; }

.btn-p {
  background: linear-gradient(135deg, #2d8f4e, #38a169);
  color: #fff;
  box-shadow: 0 4px 16px rgba(45, 143, 78, 0.25);
}

.btn-p:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(45, 143, 78, 0.35);
}

.btn-p:active { transform: scale(0.97); }

.btn-g {
  background: rgba(56, 161, 105, 0.08);
  color: var(--txt2);
  border: 1px solid var(--border);
}

.btn-g:hover {
  background: rgba(56, 161, 105, 0.14);
  color: var(--txt);
}

.btn-d {
  padding: 6px 12px;
  background: rgba(229, 62, 62, 0.08);
  border: 1px solid rgba(229, 62, 62, 0.12);
  border-radius: 8px;
  color: #e53e3e;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.btn-d:hover { background: rgba(229, 62, 62, 0.15); }
.btn-d svg { width: 13px; height: 13px; }

/* TOAST */
.toast-c {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
}

.toast {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  color: var(--txt);
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.3s;
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.toast.show { opacity: 1; transform: translateY(0); }
.toast svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }

/* USAGE BAR */
.usage-bar {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(56, 161, 105, 0.04);
  border: 1px solid var(--border);
  font-size: 11px;
  color: var(--txt2);
}

.usage-bar .ub-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.usage-bar .ub-row:last-child { margin-bottom: 0; }
.usage-bar .ub-track { height: 4px; border-radius: 2px; background: rgba(56, 161, 105, 0.1); overflow: hidden; }
.usage-bar .ub-fill { height: 100%; border-radius: 2px; background: var(--accent); transition: width 0.4s; }
