/* ============================================================
   Big — Components
   Import AFTER colors_and_type.css
   ------------------------------------------------------------
   Buttons, badges, cards, toasts, inputs, toolbars, feature
   cards, pricing cards, hero blocks. Everything a product UI
   needs from the design vocabulary.
   ============================================================ */

/* ============================================================ */
/* BUTTONS                                                      */
/* ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: all var(--dur-base) var(--ease-out);
  letter-spacing: 0.1px;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover {
  background: var(--surface-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-0.5px);
}
.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  stroke-width: 1.8;
  opacity: 0.7;
}

.btn .mono {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 2px;
}

.btn-sm { padding: 10px 18px; font-size: 13px; border-radius: 10px; gap: 7px; }
.btn-sm svg { width: 15px; height: 15px; }

.btn-lg { padding: 16px 32px; font-size: 16px; border-radius: var(--radius-md); font-weight: 600; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-accent);
}
.dark-mode .btn-primary { color: #111; }
.btn-primary svg { opacity: 0.9; }
.btn-primary:hover {
  background: var(--accent);
  color: #fff;
}
.dark-mode .btn-primary:hover { color: #111; }

.btn-soft {
  background: var(--accent-soft);
  color: var(--accent-text);
  border-color: transparent;
  box-shadow: none;
}
.btn-soft:hover { background: var(--accent-hover); border-color: transparent; box-shadow: none; transform: translateY(0); }

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-soft);
  box-shadow: none;
}
.btn-ghost:hover { background: var(--accent-soft); color: var(--text); box-shadow: none; transform: translateY(0); }

.btn-danger {
  background: var(--danger-soft);
  color: var(--danger-text);
  border-color: transparent;
  box-shadow: none;
}
.btn-danger:hover { background: rgba(194,79,58,0.14); }

.btn-pill { border-radius: var(--radius-pill); }

/* ============================================================ */
/* BADGES                                                       */
/* ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 600;
}
.badge-count { background: var(--accent-soft); color: var(--accent-text); }
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: #E87B5A; padding: 0; }
.badge-success { background: var(--success-soft); color: var(--success-text); }
.badge-warn { background: var(--warning-soft); color: #8A5E16; }
.badge-danger { background: var(--danger-soft); color: var(--danger-text); }

.dark-mode .badge-warn { color: #E0A84A; }

/* ============================================================ */
/* CARDS                                                        */
/* ============================================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.card-header { display: flex; align-items: center; justify-content: space-between; }
.card-title { font-size: 15px; font-weight: 600; color: var(--text); }
.card-subtitle { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.card-amount { font-family: var(--font-mono); font-size: 36px; font-weight: 500; letter-spacing: -1px; color: var(--text); }
.card-amount .decimal { color: var(--text-muted); font-weight: 400; }
.card-address { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-muted); background: var(--bg-warm); padding: 10px 14px; border-radius: 10px; letter-spacing: 0.3px; }
.card-divider { height: 1px; background: var(--border); }
.card-row { display: flex; align-items: center; justify-content: space-between; }
.card-row-label { font-size: 13.5px; color: var(--text-soft); }
.card-row-value { font-size: 13.5px; font-weight: 500; color: var(--text); }
.card-actions { display: flex; gap: 8px; }
.card-actions .btn { flex: 1; justify-content: center; }

/* ============================================================ */
/* TOAST                                                        */
/* ============================================================ */
.toast {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  max-width: 440px;
}
.toast-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.toast-icon svg { width: 20px; height: 20px; color: var(--accent-text); stroke-width: 1.8; }
.toast-body { flex: 1; min-width: 0; }
.toast-title { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.toast-desc { font-size: 13px; color: var(--text-soft); }
.toast-desc .mono { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }
.toast-actions { display: flex; gap: 6px; flex-shrink: 0; }

/* ============================================================ */
/* TOOLBAR / TABS                                               */
/* ============================================================ */
.toolbar {
  display: inline-flex;
  gap: 2px;
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 5px;
}
.toolbar .tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px;
  border: none; border-radius: var(--radius-sm);
  font-family: var(--font-sans); font-size: 14px; font-weight: 500;
  cursor: pointer; background: transparent;
  color: var(--text-muted);
  transition: all var(--dur-fast) var(--ease-out);
}
.toolbar .tab svg { width: 16px; height: 16px; stroke-width: 1.8; opacity: 0.5; }
.toolbar .tab:hover { color: var(--text-soft); }
.toolbar .tab.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.toolbar .tab.active svg { opacity: 0.8; }

/* ============================================================ */
/* INPUTS                                                       */
/* ============================================================ */
.input-group {
  display: flex; align-items: center;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 4px 4px 4px 18px;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.input-group:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.input-group input {
  flex: 1; border: none; background: transparent;
  font-family: var(--font-mono); font-size: 14px;
  color: var(--text); outline: none;
  padding: 10px 0;
}
.input-group input::placeholder { color: var(--text-muted); font-family: var(--font-sans); }
.input-group .btn { flex-shrink: 0; box-shadow: none; border: none; }

.input {
  width: 100%;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: all var(--dur-fast) var(--ease-out);
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* ============================================================ */
/* FEATURE CARD                                                 */
/* ============================================================ */
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex; flex-direction: column; gap: 14px;
  transition: box-shadow var(--dur-base), transform var(--dur-base);
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.feature-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; }
.feature-icon svg { width: 20px; height: 20px; color: var(--accent-text); stroke-width: 1.8; }
.feature-card h4 { font-size: 15px; font-weight: 600; }
.feature-card p { font-size: 13.5px; line-height: 1.55; color: var(--text-soft); }

/* ============================================================ */
/* PRICING                                                      */
/* ============================================================ */
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 16px;
}
.price-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-md); }
.price-tier { font-size: 13px; font-weight: 500; color: var(--text-muted); letter-spacing: 0.3px; }
.price-amount { font-family: var(--font-mono); font-size: 40px; font-weight: 500; letter-spacing: -1.5px; }
.price-amount .per { font-size: 15px; font-weight: 400; color: var(--text-muted); letter-spacing: 0; }
.price-desc { font-size: 14px; line-height: 1.55; color: var(--text-soft); flex: 1; }
.price-card .btn { justify-content: center; }
