/* Money — personal expense tracker
 * Palette: sienna + cream + green/rose status
 * © אופיר ברנס (Ofir Baranes) 2026
 */

* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color: transparent; }

:root {
  --bg-1: #15100a;
  --bg-2: #1f1812;
  --bg-3: #2a1f15;
  --sienna-300: #fdba74;
  --sienna-400: #fb923c;
  --sienna-500: #d97706;
  --sienna-600: #b45309;
  --sienna-700: #92400e;
  --sienna-800: #78350f;
  --cream: #fef3c7;
  --cream-light: #fffbeb;
  --gold: #fcd34d;
  --income: #86efac;
  --income-deep: #16a34a;
  --expense: #fb7185;
  --expense-deep: #be123c;
  --text-primary: #fef3c7;
  --text-secondary: rgba(254,243,199,0.72);
  --text-muted: rgba(254,243,199,0.45);
  --surface: rgba(253,186,116,0.05);
  --surface-strong: rgba(253,186,116,0.10);
  --border: rgba(253,186,116,0.16);
  --border-strong: rgba(253,186,116,0.28);
  --shadow-glass: 0 30px 60px -25px rgba(21,16,10,0.7);
  --bezier: cubic-bezier(.34,1.56,.64,1);
  --bezier-soft: cubic-bezier(.4,0,.2,1);
}

html, body {
  background: var(--bg-1);
  color: var(--text-primary);
  font-family: 'Heebo', system-ui, sans-serif;
  font-weight: 400;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body {
  background:
    radial-gradient(ellipse 700px 800px at 80% -10%, rgba(180,83,9,0.20), transparent 60%),
    radial-gradient(ellipse 500px 600px at -10% 60%, rgba(146,64,14,0.18), transparent 65%),
    radial-gradient(ellipse 800px 1000px at 50% 110%, rgba(120,53,15,0.20), transparent 70%),
    linear-gradient(180deg, #15100a 0%, #1f1812 60%, #2a1f15 110%);
  background-attachment: fixed;
  position: relative;
  padding-bottom: 90px;
}

.ambient-bg {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.orb-blur {
  position: absolute;
  border-radius: 50%;
  filter: blur(85px);
  opacity: 0.45;
}
.orb-blur.o1 { width: 420px; height: 420px; top: -120px; right: -120px; background: radial-gradient(circle, #d97706 0%, transparent 70%); animation: drift1 26s ease-in-out infinite; }
.orb-blur.o2 { width: 340px; height: 340px; bottom: 5%; left: -100px; background: radial-gradient(circle, #fb923c 0%, transparent 70%); opacity: 0.32; animation: drift2 32s ease-in-out infinite; }
.orb-blur.o3 { width: 260px; height: 260px; top: 40%; right: 30%; background: radial-gradient(circle, #92400e 0%, transparent 70%); opacity: 0.42; animation: drift3 38s ease-in-out infinite; }
@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-30px,40px) scale(1.1); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(40px,-30px) scale(1.08); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-25px,-35px) scale(1.12); } }

/* ===== Topbar ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  padding-top: max(14px, env(safe-area-inset-top));
  background: linear-gradient(180deg, rgba(21,16,10,0.85) 0%, rgba(21,16,10,0.55) 100%);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 1px solid var(--border);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--cream-light);
  letter-spacing: -0.01em;
}
.mark {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--sienna-400), var(--sienna-700));
  color: var(--cream-light);
  box-shadow: 0 0 18px rgba(180,83,9,0.45);
}
.mark svg { width: 18px; height: 18px; }

.header-actions { display: flex; gap: 8px; }
.icon-btn, .install-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  border-radius: 12px;
  padding: 7px 12px;
  cursor: pointer;
  transition: all 0.2s var(--bezier-soft);
  backdrop-filter: blur(10px);
}
.icon-btn { padding: 7px 9px; font-size: 16px; }
.icon-btn:hover, .install-btn:hover {
  background: var(--surface-strong);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}
.install-btn {
  background: linear-gradient(135deg, var(--sienna-500), var(--sienna-700));
  border: none;
  color: var(--cream-light);
  font-weight: 700;
}

main {
  position: relative;
  z-index: 1;
  padding: 20px 18px;
  max-width: 720px;
  margin: 0 auto;
}
.hidden { display: none !important; }

/* ===== Hero / month switcher ===== */
.hero { margin-bottom: 24px; }
.month-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.month-nav {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--cream);
  font-size: 22px;
  font-weight: 600;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s;
  font-family: inherit;
}
.month-nav:hover {
  background: var(--surface-strong);
  color: var(--sienna-300);
  transform: scale(1.05);
}
.month-label {
  flex: 1;
  text-align: center;
}
.kicker {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--sienna-300);
  margin-bottom: 4px;
}
.month-title {
  font-family: 'Frank Ruhl Libre', 'Heebo', serif;
  font-size: clamp(28px, 6vw, 36px);
  font-weight: 700;
  color: var(--cream-light);
  letter-spacing: -0.02em;
  line-height: 1;
}

/* Balance card */
.balance-card {
  background: linear-gradient(140deg, var(--surface-strong) 0%, var(--surface) 60%, transparent 100%);
  backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid var(--border-strong);
  border-radius: 26px;
  padding: 26px 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-glass);
}
.balance-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 26px;
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(217,119,6,0.4) 0%, rgba(254,243,199,0.18) 50%, transparent 80%);
  -webkit-mask: linear-gradient(#000,#000) content-box, linear-gradient(#000,#000);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.bal-main {
  text-align: center;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px dashed var(--border);
}
.bal-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.bal-amount {
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(40px, 10vw, 56px);
  font-weight: 300;
  color: var(--cream-light);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.025em;
  line-height: 1;
  text-shadow: 0 0 30px rgba(254,243,199,0.18);
  margin-bottom: 6px;
  direction: ltr;
}
.bal-amount.positive { color: var(--income); text-shadow: 0 0 30px rgba(134,239,172,0.25); }
.bal-amount.negative { color: var(--expense); text-shadow: 0 0 30px rgba(251,113,133,0.25); }
.bal-hint {
  font-size: 12px;
  color: var(--text-muted);
  font-family: 'IBM Plex Mono', monospace;
  font-variant-numeric: tabular-nums;
}

.bal-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.bs-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid;
}
.bs-item.bs-income {
  background: rgba(134,239,172,0.06);
  border-color: rgba(134,239,172,0.20);
}
.bs-item.bs-expense {
  background: rgba(251,113,133,0.06);
  border-color: rgba(251,113,133,0.20);
}
.bs-arrow {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}
.bs-income .bs-arrow { background: rgba(134,239,172,0.18); color: var(--income); }
.bs-expense .bs-arrow { background: rgba(251,113,133,0.18); color: var(--expense); }
.bs-info { flex: 1; min-width: 0; }
.bs-label {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}
.bs-amount {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 17px;
  font-weight: 600;
  color: var(--cream-light);
  font-variant-numeric: tabular-nums;
  direction: ltr;
}

/* Budget */
.budget-row {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--border);
}
.budget-meta {
  display: flex;
  justify-content: space-between;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.budget-meta .mono { font-weight: 600; }
.budget-meta .mono.over { color: var(--expense); }
.budget-bar {
  height: 6px;
  background: rgba(253,186,116,0.08);
  border-radius: 100px;
  overflow: hidden;
}
.budget-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--income), var(--gold));
  border-radius: 100px;
  width: 0;
  transition: width 0.6s var(--bezier);
}
.budget-fill.over {
  background: linear-gradient(90deg, var(--gold), var(--expense));
}

/* ===== Section ===== */
.pie-section, .trend-section, .tx-section {
  background: var(--surface);
  backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 18px;
  margin-bottom: 16px;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}
.section-title {
  font-family: 'Frank Ruhl Libre', 'Heebo', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--cream-light);
  letter-spacing: -0.015em;
}
.section-link {
  background: transparent;
  border: 1px dashed var(--border-strong);
  color: var(--sienna-300);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
}
.section-link:hover {
  background: var(--surface);
  color: var(--cream-light);
}

/* ===== Pie chart ===== */
.pie-wrap {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto 14px;
}
.pie-wrap svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 12px 24px rgba(21,16,10,0.5));
  transform: rotate(-90deg);
  transition: transform 0.6s var(--bezier);
}
.pie-slice {
  transition: all 0.3s var(--bezier-soft);
  cursor: pointer;
  stroke: var(--bg-1);
  stroke-width: 2;
}
.pie-slice:hover { transform: scale(1.04); transform-origin: center; }
.pie-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  text-align: center;
}
.pc-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.pc-amount {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 24px;
  font-weight: 600;
  color: var(--cream-light);
  font-variant-numeric: tabular-nums;
  direction: ltr;
  text-shadow: 0 0 20px rgba(254,243,199,0.15);
}

.cat-legend {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 14px;
}
.cl-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  padding: 4px 0;
}
.cl-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.cl-name {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cl-amount {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--cream);
  font-variant-numeric: tabular-nums;
  direction: ltr;
}

.pie-empty {
  text-align: center;
  padding: 30px 20px;
  color: var(--text-muted);
}
.pie-empty .icon { font-size: 36px; margin-bottom: 8px; opacity: 0.5; }
.pie-empty p { font-size: 13px; }

/* ===== Trend chart ===== */
.trend-chart-wrap {
  position: relative;
  margin-bottom: 4px;
}
#trendSvg {
  width: 100%;
  height: 140px;
  overflow: visible;
}
.trend-bar {
  transition: opacity 0.2s;
  cursor: pointer;
}
.trend-bar:hover { opacity: 0.85; }
.trend-x-labels {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  text-align: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 6px;
}
.trend-x-labels div.current { color: var(--sienna-300); font-weight: 600; }

/* ===== Transactions ===== */
.tx-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 480px;
  overflow-y: auto;
}
.tx-list::-webkit-scrollbar { width: 4px; }
.tx-list::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }

.tx-day-header {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  padding: 8px 4px 4px;
  font-variant-numeric: tabular-nums;
}

.tx-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px 11px 12px;
  background: rgba(253,186,116,0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s var(--bezier-soft);
}
.tx-row:hover {
  background: rgba(253,186,116,0.08);
  border-color: var(--border-strong);
  transform: translateX(-2px);
}
.tx-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--tx-color) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--tx-color) 30%, transparent);
  flex-shrink: 0;
}
.tx-icon svg { width: 20px; height: 20px; color: var(--tx-color); }
.tx-body { flex: 1; min-width: 0; }
.tx-title {
  font-size: 14px;
  color: var(--cream-light);
  font-weight: 500;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tx-cat {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.tx-amount {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  direction: ltr;
  flex-shrink: 0;
}
.tx-amount.income { color: var(--income); }
.tx-amount.expense { color: var(--expense); }

.tx-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}
.tx-empty .icon { font-size: 36px; margin-bottom: 8px; opacity: 0.5; }
.tx-empty p { font-size: 13px; line-height: 1.6; max-width: 280px; margin: 0 auto; }

/* ===== FAB ===== */
.fab {
  position: fixed;
  bottom: 24px;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 60px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sienna-500), var(--sienna-800));
  color: var(--cream-light);
  cursor: pointer;
  z-index: 60;
  box-shadow: 0 14px 30px rgba(146,64,14,0.55), 0 0 24px rgba(180,83,9,0.3);
  display: grid;
  place-items: center;
  transition: all 0.3s var(--bezier);
}
.fab:hover {
  transform: translateX(-50%) translateY(-3px) scale(1.05);
  box-shadow: 0 18px 40px rgba(146,64,14,0.7), 0 0 32px rgba(180,83,9,0.5);
}
.fab:active { transform: translateX(-50%) scale(0.95); }
.fab svg { width: 26px; height: 26px; }

/* ===== Modal ===== */
.modal {
  position: fixed; inset: 0;
  background: rgba(10,7,4,0.7);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: modal-fade 0.25s var(--bezier-soft);
}
@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }
.modal-card {
  width: 100%;
  max-width: 540px;
  background: linear-gradient(180deg, #2a1f15 0%, #15100a 100%);
  border: 1px solid var(--border-strong);
  border-bottom: none;
  border-radius: 28px 28px 0 0;
  padding: 20px 22px 32px;
  padding-bottom: max(32px, env(safe-area-inset-bottom));
  animation: modal-slide 0.4s var(--bezier);
  max-height: 92vh;
  overflow-y: auto;
}
@keyframes modal-slide { from { transform: translateY(100%); } to { transform: translateY(0); } }
.handle {
  width: 38px; height: 4px;
  background: var(--border-strong);
  border-radius: 4px;
  margin: 0 auto 16px;
}
.modal-card h3 {
  font-family: 'Frank Ruhl Libre', 'Heebo', serif;
  color: var(--cream-light);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 14px;
}
.modal-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 14px;
}
.mark-big {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--sienna-400), var(--sienna-700));
  border-radius: 18px;
  color: var(--cream-light);
  margin: 4px auto 14px;
  box-shadow: 0 0 30px rgba(180,83,9,0.4);
}
.mark-big svg { width: 32px; height: 32px; }

/* Type toggle */
.type-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 4px;
  margin-bottom: 18px;
}
.tt-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 8px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 10px;
  transition: all 0.25s var(--bezier);
}
.tt-btn .tt-arrow {
  font-size: 18px;
  font-weight: 700;
}
.tt-btn:hover { color: var(--cream-light); }
.tt-btn.active[data-type="expense"] {
  background: linear-gradient(135deg, var(--expense), var(--expense-deep));
  color: var(--cream-light);
  box-shadow: 0 6px 14px rgba(251,113,133,0.35);
}
.tt-btn.active[data-type="income"] {
  background: linear-gradient(135deg, var(--income), var(--income-deep));
  color: var(--cream-light);
  box-shadow: 0 6px 14px rgba(134,239,172,0.35);
}

/* Big amount input */
.amount-input-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  background: rgba(253,186,116,0.04);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px 14px;
  margin-bottom: 14px;
  transition: all 0.2s;
}
.amount-input-wrap:focus-within {
  border-color: var(--sienna-400);
  background: rgba(253,186,116,0.08);
  box-shadow: 0 0 0 4px rgba(217,119,6,0.10);
}
.ai-currency {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 28px;
  color: var(--sienna-300);
  font-weight: 500;
}
.amount-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--cream-light);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 44px;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  text-align: center;
  direction: ltr;
}
.amount-input::placeholder { color: var(--text-muted); }

.modal-input {
  width: 100%;
  padding: 13px 14px;
  background: rgba(253,186,116,0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--cream-light);
  font-family: 'Heebo', sans-serif;
  font-size: 15px;
  margin-bottom: 12px;
  transition: all 0.2s;
  text-align: right;
  direction: rtl;
}
.modal-input.mono { font-family: 'IBM Plex Mono', monospace; font-variant-numeric: tabular-nums; direction: ltr; text-align: left; }
.modal-input:focus {
  outline: none;
  border-color: var(--sienna-400);
  background: rgba(253,186,116,0.10);
}
.modal-input::placeholder { color: var(--text-muted); }

.form-label {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sienna-300);
  margin-bottom: 8px;
}

.cat-picker {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}
@media (max-width: 480px) { .cat-picker { grid-template-columns: repeat(4, 1fr); } }
.cat-pick {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 10px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s var(--bezier-soft);
}
.cat-pick:hover { background: var(--surface-strong); }
.cat-pick.active {
  background: color-mix(in srgb, var(--cp-color) 22%, transparent);
  border-color: var(--cp-color);
  color: var(--cream-light);
  font-weight: 600;
}
.cat-pick svg { width: 18px; height: 18px; color: var(--cp-color); }

.modal-actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}
.btn-primary, .btn-secondary, .btn-mini {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 13px 18px;
  border-radius: 14px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s var(--bezier);
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--sienna-500), var(--sienna-800));
  color: var(--cream-light);
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(146,64,14,0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(146,64,14,0.55); }
.btn-secondary {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--cream-light);
}
.btn-mini {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  flex: 0 1 auto;
  padding: 13px 18px;
}
.btn-mini.danger { color: #fda4af; border-color: rgba(253,164,175,0.3); }
.btn-mini.danger:hover { background: rgba(253,164,175,0.1); }
