/* ============================================================
   Düğün Planım — Modern SaaS Tasarım Sistemi
   ============================================================ */
:root {
  --c-bg: #FBF7F1;
  --c-ivory: #FFFDF9;
  --c-card: #FFFFFF;
  --c-border: #EDE3D6;
  --c-border-soft: #F2E9DD;
  --c-text: #2E2A26;
  --c-text-muted: #948B7E;
  --c-rose: #C98A99;
  --c-rose-dark: #B06E7F;
  --c-rose-light: #F7E9EC;
  --c-gold: #C6A15B;
  --c-gold-light: #F5EBD4;
  --c-success: #6FA98A;
  --c-success-light: #E7F3EC;
  --c-warning: #E0A458;
  --c-warning-light: #FBF0E1;
  --c-danger: #D46A6A;
  --c-danger-light: #FBECEC;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 10px rgba(60, 40, 20, 0.05);
  --shadow-md: 0 10px 30px rgba(60, 40, 20, 0.08);
  --shadow-lg: 0 20px 50px rgba(60, 40, 20, 0.12);
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--c-bg);
  color: var(--c-text);
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; }
button { font-family: inherit; }

/* ============================================================
   LOGIN SCREEN
   ============================================================ */
.login-screen {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
  background: linear-gradient(160deg, #FFFCF8 0%, #FBF2EE 45%, #F6EDE4 100%);
}

.login-bg-decor { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.45;
}
.blob-1 { width: 420px; height: 420px; background: var(--c-rose-light); top: -120px; left: -100px; }
.blob-2 { width: 360px; height: 360px; background: var(--c-gold-light); bottom: -140px; right: -80px; }
.blob-3 { width: 260px; height: 260px; background: #EFE6F4; top: 40%; right: 15%; }

.login-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  background: var(--c-card);
  border: 1px solid var(--c-border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 44px 36px 32px;
  animation: fadeUp 0.5s ease;
}

@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

.login-logo { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 6px; }
.login-logo-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--c-rose), var(--c-gold));
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.login-logo-text { font-family: var(--font-heading); font-size: 26px; font-weight: 700; color: var(--c-text); }
.login-subtitle { text-align: center; color: var(--c-text-muted); font-size: 14px; margin-bottom: 28px; }

.login-error {
  background: var(--c-danger-light); color: var(--c-danger); border-radius: var(--radius-sm);
  padding: 10px 14px; font-size: 13.5px; margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
}
.login-error.shake { animation: shake 0.4s ease; }
@keyframes shake { 10%, 90% { transform: translateX(-1px); } 20%, 80% { transform: translateX(2px); } 30%, 50%, 70% { transform: translateX(-4px); } 40%, 60% { transform: translateX(4px); } }

.form-floating > .form-control, .form-control, .form-select {
  border-radius: var(--radius-sm);
  border: 1px solid var(--c-border);
  background: var(--c-ivory);
}
.form-control:focus, .form-select:focus {
  border-color: var(--c-rose);
  box-shadow: 0 0 0 3px rgba(201, 138, 153, 0.15);
}

.password-field { position: relative; }
.password-toggle {
  position: absolute; right: 12px; top: 18px; border: none; background: none; color: var(--c-text-muted); z-index: 5;
}

.forgot-link { font-size: 13px; color: var(--c-rose-dark); }
.form-check-input:checked { background-color: var(--c-rose); border-color: var(--c-rose); }

.btn-login {
  background: linear-gradient(135deg, var(--c-rose), var(--c-rose-dark));
  color: #fff; border: none; border-radius: var(--radius-sm); padding: 12px; font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 8px 20px rgba(201, 138, 153, 0.35);
}
.btn-login:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(201, 138, 153, 0.42); color: #fff; }
.btn-login:disabled { opacity: 0.75; }

.login-demo-hint { margin-top: 18px; text-align: center; font-size: 12px; color: var(--c-text-muted); }

/* ============================================================
   APP SHELL / TOPBAR
   ============================================================ */
.app-shell { min-height: 100vh; display: flex; flex-direction: column; }

.couple-banner {
  text-align: center; padding: 14px 12px 4px; background: var(--c-card);
}
.couple-title {
  font-family: var(--font-heading); font-size: 24px; font-weight: 700; margin: 0;
  color: var(--c-rose-dark); letter-spacing: 0.5px; cursor: pointer; user-select: none;
  display: inline-block; transition: transform 0.15s ease;
}
.couple-title:active { transform: scale(0.97); }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px; background: var(--c-card); border-bottom: 1px solid var(--c-border-soft);
  position: sticky; top: 0; z-index: 1000;
}
.brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-heading); font-weight: 700; font-size: 19px; color: var(--c-text); }
.brand .bi-gem { color: var(--c-rose); }
.page-title { font-family: var(--font-heading); font-size: 19px; font-weight: 600; margin: 0; text-align: center; color: var(--c-text); }

.user-menu-btn {
  display: flex; align-items: center; gap: 10px; background: none; border: none; padding: 6px 10px; border-radius: 999px;
  transition: background 0.15s ease;
}
.user-menu-btn:hover { background: var(--c-rose-light); }
.user-avatar {
  width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--c-gold), var(--c-rose));
  color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px;
}
.user-name { font-weight: 600; font-size: 14px; color: var(--c-text); }

.app-main { flex: 1; max-width: 1400px; width: 100%; margin: 0 auto; padding: 24px 28px 60px; }

.card-surface {
  background: var(--c-card); border: 1px solid var(--c-border-soft); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}

/* ============================================================
   STATS ROW
   ============================================================ */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.stat-card {
  background: var(--c-card); border: 1px solid var(--c-border-soft); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); padding: 18px 20px; display: flex; align-items: center; gap: 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-icon {
  width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 19px; flex-shrink: 0;
}
.stat-icon-total { background: var(--c-rose-light); color: var(--c-rose-dark); }
.stat-icon-completed { background: var(--c-success-light); color: var(--c-success); }
.stat-icon-pending { background: var(--c-warning-light); color: var(--c-warning); }
.stat-info { display: flex; flex-direction: column; gap: 2px; }
.stat-label { font-size: 11px; letter-spacing: 0.06em; color: var(--c-text-muted); font-weight: 700; }
.stat-value { font-size: 19px; font-weight: 700; color: var(--c-text); }
.stat-card-progress { flex-direction: column; align-items: stretch; }
.mini-progress { height: 7px; border-radius: 999px; background: var(--c-border-soft); margin-top: 8px; overflow: hidden; }
.mini-progress .progress-bar { background: linear-gradient(90deg, var(--c-gold), var(--c-rose)); border-radius: 999px; }

/* ============================================================
   BUDGET SUMMARY
   ============================================================ */
.budget-summary { padding: 20px 22px; margin-bottom: 20px; }
.budget-totals { display: flex; flex-wrap: wrap; gap: 24px; margin-bottom: 16px; }
.budget-total-item { display: flex; flex-direction: column; gap: 2px; }
.budget-total-label { font-size: 11px; letter-spacing: 0.05em; color: var(--c-text-muted); font-weight: 700; }
.budget-total-value { font-size: 20px; font-weight: 700; font-family: var(--font-heading); }
.text-rose { color: var(--c-rose-dark); }
.text-gold { color: var(--c-gold); }
.budget-breakdown { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--c-border-soft); padding-top: 14px; }
.budget-row { display: grid; grid-template-columns: 150px 1fr 110px; align-items: center; gap: 12px; }
.budget-row-label { font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 6px; color: var(--c-text); }
.budget-row-label i { color: var(--c-rose); }
.budget-bar { background: linear-gradient(90deg, var(--c-gold), var(--c-rose)) !important; }
.budget-row-value { font-size: 13px; font-weight: 700; text-align: right; color: var(--c-text-muted); }

/* ============================================================
   TOOLBAR
   ============================================================ */
.toolbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.search-box {
  display: flex; align-items: center; gap: 8px; background: var(--c-card); border: 1px solid var(--c-border);
  border-radius: 999px; padding: 9px 16px; flex: 1 1 240px; max-width: 340px;
}
.search-box i { color: var(--c-text-muted); }
.search-box input { border: none; outline: none; background: none; flex: 1; font-size: 13.5px; }
.search-clear { border: none; background: none; color: var(--c-text-muted); }
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; flex: 2 1 auto; }
.chip {
  border: 1px solid var(--c-border); background: var(--c-card); color: var(--c-text-muted);
  padding: 7px 15px; border-radius: 999px; font-size: 12.5px; font-weight: 600; transition: all 0.15s ease;
}
.chip:hover { border-color: var(--c-rose); color: var(--c-rose-dark); }
.chip.active { background: linear-gradient(135deg, var(--c-rose), var(--c-rose-dark)); color: #fff; border-color: transparent; }
.btn-add-category {
  background: linear-gradient(135deg, var(--c-gold), #B8935A); color: #fff; border: none; border-radius: 999px;
  padding: 9px 18px; font-weight: 600; font-size: 13.5px; white-space: nowrap; box-shadow: 0 6px 16px rgba(198, 161, 91, 0.3);
}
.btn-add-category:hover { color: #fff; transform: translateY(-1px); }

.btn-brand {
  background: linear-gradient(135deg, var(--c-rose), var(--c-rose-dark)); color: #fff; border: none; border-radius: var(--radius-sm); font-weight: 600;
}
.btn-brand:hover { color: #fff; opacity: 0.92; }
.btn-outline-brand { border: 1px solid var(--c-rose); color: var(--c-rose-dark); background: none; border-radius: var(--radius-sm); font-weight: 600; }
.btn-outline-brand:hover { background: var(--c-rose-light); color: var(--c-rose-dark); }

/* ============================================================
   SPLIT PANEL: TREE + DETAIL
   ============================================================ */
.split-panel { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.tree-panel { padding: 20px; }
.panel-header { margin-bottom: 12px; }
.panel-header h2 { font-family: var(--font-heading); font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 8px; margin: 0; }
.panel-header h2 i { color: var(--c-rose); }

.detail-panel {
  padding: 22px; position: sticky; top: 84px; max-height: calc(100vh - 110px); overflow-y: auto; flex-direction: column;
}
.detail-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--c-text-muted); padding: 60px 20px; text-align: center; }
.detail-empty i { font-size: 40px; color: var(--c-border); }

.tree-empty-msg { text-align: center; padding: 40px 10px; color: var(--c-text-muted); }
.tree-empty-msg i { font-size: 26px; margin-bottom: 8px; display: block; }

/* Tree list & connector lines */
.tree-list { list-style: none; margin: 0; padding-left: 0; }
.tree-list .tree-list { padding-left: 24px; margin-top: 4px; border-left: 2px dashed var(--c-border-soft); margin-left: 20px; }
.tree-node { position: relative; margin-bottom: 6px; }

.tree-node-row {
  display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: var(--radius-sm);
  cursor: pointer; transition: background 0.15s ease, box-shadow 0.15s ease; border: 1px solid transparent;
}
.tree-node-row:hover { background: var(--c-rose-light); }
.tree-node-row.active { background: var(--c-rose-light); border-color: var(--c-rose); box-shadow: var(--shadow-sm); }
.tree-node-row.dragging { opacity: 0.4; }
.tree-node-row.drag-over { border-color: var(--c-gold); background: var(--c-gold-light); }

.depth-0 > .tree-node-row {
  background: var(--c-ivory); border: 1px solid var(--c-border-soft); box-shadow: var(--shadow-sm); padding: 14px 14px; margin-bottom: 8px;
}
.depth-0 > .tree-node-row:hover, .depth-0 > .tree-node-row.active { background: linear-gradient(135deg, var(--c-rose-light), var(--c-gold-light)); }

.tree-toggle, .tree-toggle-spacer { width: 20px; flex-shrink: 0; text-align: center; }
.tree-toggle { border: none; background: none; color: var(--c-text-muted); }

.tree-checkbox {
  width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--c-border); background: #fff; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; color: #fff; transition: all 0.15s ease;
}
.tree-checkbox.checked { background: var(--c-success); border-color: var(--c-success); }
.tree-checkbox:hover { border-color: var(--c-rose); }

.tree-node-icon { width: 30px; height: 30px; border-radius: 9px; background: var(--c-gold-light); color: var(--c-gold); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 14px; }
.tree-node-icon-main { width: 38px; height: 38px; font-size: 17px; background: linear-gradient(135deg, var(--c-rose-light), var(--c-gold-light)); color: var(--c-rose-dark); }

.tree-node-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.tree-node-name { font-weight: 600; font-size: 14px; color: var(--c-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.depth-0 .tree-node-name { font-size: 15.5px; font-family: var(--font-heading); font-weight: 700; }
.tree-node-meta { font-size: 11.5px; color: var(--c-text-muted); }

.is-completed > .tree-node-row .tree-node-name { opacity: 0.6; text-decoration: line-through; }

.tree-node-badges { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.badge-priority { font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.badge-priority-low { background: var(--c-success-light); color: var(--c-success); }
.badge-priority-medium { background: var(--c-warning-light); color: var(--c-warning); }
.badge-priority-high { background: var(--c-danger-light); color: var(--c-danger); }
.badge-pct { font-size: 11px; font-weight: 700; color: var(--c-gold); background: var(--c-gold-light); padding: 3px 9px; border-radius: 999px; }

.tree-node-actions { flex-shrink: 0; }
.btn-icon-action { width: 28px; height: 28px; border-radius: 8px; border: none; background: none; color: var(--c-text-muted); }
.btn-icon-action:hover { background: rgba(0,0,0,0.05); }

/* ============================================================
   DETAIL CONTENT (shared: desktop panel + mobile modal)
   ============================================================ */
.detail-header { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.detail-header-icon { width: 46px; height: 46px; border-radius: 14px; background: var(--c-gold-light); color: var(--c-gold); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.detail-title { font-family: var(--font-heading); font-size: 20px; font-weight: 700; margin: 0 0 4px; }
.detail-subtitle { font-size: 13px; color: var(--c-text-muted); }
.text-strike { text-decoration: line-through; opacity: 0.65; }

.detail-big-checkbox {
  width: 40px; height: 40px; border-radius: 12px; border: 2px solid var(--c-border); background: #fff; color: #fff; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 18px; transition: all 0.15s ease;
}
.detail-big-checkbox.checked { background: var(--c-success); border-color: var(--c-success); }
.detail-big-checkbox:hover { border-color: var(--c-rose); transform: scale(1.05); }

.status-badge { font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.status-completed { background: var(--c-success-light); color: var(--c-success); }
.status-pending { background: var(--c-warning-light); color: var(--c-warning); }

.detail-desc { font-size: 13.5px; color: var(--c-text); background: var(--c-ivory); padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 14px; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 10px; margin-bottom: 14px; }
.detail-mini-stat {
  background: var(--c-ivory); border: 1px solid var(--c-border-soft); border-radius: var(--radius-sm); padding: 10px 12px;
  display: flex; flex-direction: column; gap: 4px;
}
.detail-mini-stat span { font-size: 10.5px; color: var(--c-text-muted); font-weight: 700; letter-spacing: 0.03em; }
.detail-mini-stat strong { font-size: 14px; }

.detail-notes { display: flex; gap: 10px; background: var(--c-gold-light); padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 14px; }
.detail-notes i { color: var(--c-gold); margin-top: 2px; }
.detail-notes p { margin: 0; font-size: 13px; }

.detail-section { margin-bottom: 16px; }
.detail-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.detail-section-head h4 { font-size: 13.5px; font-weight: 700; margin: 0; display: flex; align-items: center; gap: 6px; color: var(--c-text); }
.detail-section-head h4 i { color: var(--c-rose); }
.btn-add-mini { border: 1px dashed var(--c-rose); background: none; color: var(--c-rose-dark); font-size: 12px; font-weight: 600; border-radius: 999px; padding: 4px 12px; }
.btn-add-mini:hover { background: var(--c-rose-light); }

.link-list { display: flex; flex-direction: column; gap: 8px; }
.link-card {
  display: flex; align-items: center; gap: 8px; background: var(--c-ivory); border: 1px solid var(--c-border-soft);
  border-radius: var(--radius-sm); padding: 9px 12px; font-size: 13px; color: var(--c-text); position: relative;
  transition: border-color 0.15s ease;
}
.link-card:hover { border-color: var(--c-rose); color: var(--c-text); }
.link-card i:first-child { color: var(--c-rose); }
.link-card span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-remove { margin-left: auto; border: none; background: none; color: var(--c-text-muted); flex-shrink: 0; }
.link-remove:hover { color: var(--c-danger); }

.image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.image-thumb { aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; border: 1px solid var(--c-border-soft); }
.image-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.2s ease; }
.image-thumb:hover img { transform: scale(1.08); }

.detail-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }

/* ============================================================
   MODALS
   ============================================================ */
.modal-content { border-radius: var(--radius-lg); border: none; box-shadow: var(--shadow-lg); }
.modal-header { border-bottom: 1px solid var(--c-border-soft); padding: 18px 22px; }
.modal-title { font-family: var(--font-heading); font-weight: 700; font-size: 17px; display: flex; align-items: center; gap: 8px; }
.modal-title i { color: var(--c-rose); }
.modal-body { padding: 20px 22px; }
.modal-footer { border-top: 1px solid var(--c-border-soft); padding: 14px 22px; }
.detail-modal-dialog .modal-body { padding: 18px; }

.icon-picker { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.icon-option {
  width: 100%; aspect-ratio: 1; border-radius: var(--radius-sm); border: 1px solid var(--c-border); background: var(--c-ivory);
  color: var(--c-text-muted); display: flex; align-items: center; justify-content: center; font-size: 16px; transition: all 0.15s ease;
}
.icon-option:hover { border-color: var(--c-rose); }
.icon-option.selected { background: linear-gradient(135deg, var(--c-rose), var(--c-rose-dark)); color: #fff; border-color: transparent; }

/* Lightbox */
.lightbox-content { background: rgba(20, 15, 12, 0.96); border-radius: var(--radius-lg); position: relative; }
.lightbox-close { position: absolute; top: 14px; right: 14px; z-index: 5; }
.lightbox-body { display: flex; align-items: center; justify-content: center; min-height: 60vh; padding: 40px; position: relative; }
.lightbox-body img { max-width: 100%; max-height: 70vh; border-radius: var(--radius-md); box-shadow: 0 20px 50px rgba(0,0,0,0.4); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,0.15); border: none; color: #fff; font-size: 18px; display: flex; align-items: center; justify-content: center;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.28); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-footer { display: flex; align-items: center; justify-content: space-between; padding: 14px 22px; color: #fff; border-top: 1px solid rgba(255,255,255,0.1); }

/* ============================================================
   TOASTS
   ============================================================ */
.toast-container-custom { position: fixed; bottom: 24px; right: 24px; z-index: 2000; display: flex; flex-direction: column; gap: 10px; }
.app-toast {
  display: flex; align-items: center; gap: 10px; background: var(--c-card); border: 1px solid var(--c-border-soft);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-md); padding: 12px 18px; font-size: 13.5px; font-weight: 600;
  transform: translateX(20px); opacity: 0; transition: all 0.3s ease;
}
.app-toast.show { transform: translateX(0); opacity: 1; }
.app-toast-success { border-left: 4px solid var(--c-success); color: var(--c-success); }
.app-toast-error { border-left: 4px solid var(--c-danger); color: var(--c-danger); }
.app-toast-info { border-left: 4px solid var(--c-gold); color: var(--c-gold); }
.app-toast span { color: var(--c-text); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1199.98px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 991.98px) {
  .split-panel { grid-template-columns: 1fr; }
  .app-main { padding: 18px 16px 50px; }
  .page-title { display: none; }
  .budget-row { grid-template-columns: 110px 1fr 80px; }
}

@media (max-width: 575.98px) {
  .stats-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { padding: 14px; }
  .stat-value { font-size: 16px; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .search-box { max-width: none; }
  .btn-add-category { align-self: flex-start; }
  .topbar { padding: 12px 14px; }
  .login-card { padding: 32px 22px 24px; }
  .tree-list .tree-list { padding-left: 14px; margin-left: 12px; }
  .icon-picker { grid-template-columns: repeat(5, 1fr); }
}
