/* ============================================================
   Главная
   ============================================================ */

.home-header {
  display: grid;
  /* боковые колонки одинаковой ширины — иначе логотип уезжает от центра */
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding-top: 2px;
}
.home-header-side { display: flex; align-items: center; gap: 6px; min-width: 0; }
.home-header-right { justify-content: flex-end; }
.home-logo {
  font-family: 'Pacifico', cursive;
  font-size: 30px;
  color: var(--pink-deep);
  text-align: center;
  line-height: 1.1;
  white-space: nowrap;
}
.home-greeting {
  margin: 8px 0 0;
  text-align: center;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.015em;
}
.home-greeting .emo { font-size: 17px; }
.home-days { margin: 4px 0 2px; text-align: center; font-size: 13.5px; color: var(--muted); font-weight: 500; }
.home-days b { color: var(--pink-deep); font-weight: 800; }
.home-days .link { font-size: 13.5px; }

/* ---------- карточка бюджета ---------- */

.hero-card {
  position: relative;
  overflow: hidden;
  background: var(--hero-grad);
  border-radius: var(--r-lg);
  padding: 18px 20px 20px;
  box-shadow: 0 12px 26px rgba(var(--shadow-rgb), 0.14);
  text-align: left;
  border: none;
  color: var(--text);
  transition: transform 0.14s ease;
}
.hero-card:active { transform: scale(0.985); }
.hero-head { display: flex; align-items: center; gap: 11px; padding-right: 48px; }
.hero-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--hero-chip);
  display: flex; align-items: center; justify-content: center;
  color: var(--pink-deep);
}
.hero-icon svg { width: 21px; height: 21px; }
.hero-label { font-size: 14.5px; font-weight: 700; color: var(--hero-text); }
.hero-stats { margin-top: 16px; }
.hero-stat { min-width: 0; }
.hero-stat-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--hero-text-2);
  margin-bottom: 4px;
}
.hero-value {
  display: block;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--hero-amount);
  line-height: 1.15;
}
.hero-go {
  position: absolute;
  right: 18px; top: 18px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 12px rgba(var(--shadow-rgb), 0.18);
  display: flex; align-items: center; justify-content: center;
  color: var(--pink-deep);
}
.hero-go svg { width: 19px; height: 19px; }

/* ---------- ближайшее событие ---------- */

.event-hero {
  display: flex;
  align-items: center;
  gap: 13px;
  background: var(--panel);
  border-radius: var(--r-md);
  padding: 15px 16px;
  box-shadow: var(--shadow);
  text-align: left;
  border: none;
  width: 100%;
}
.event-hero:active { transform: scale(0.99); }
.event-hero-body { flex: 1; min-width: 0; }
.event-hero-title { font-size: 17px; font-weight: 800; margin-top: 2px; letter-spacing: -0.015em; }
.event-hero-date { font-size: 13px; color: var(--muted); font-weight: 500; margin-top: 1px; }
.event-hero-left { font-size: 13px; color: var(--pink-deep); font-weight: 700; margin-top: 4px; }
.event-hero-art { font-size: 34px; line-height: 1; }

/* ---------- панель со строками ---------- */

.panel {
  background: var(--panel);
  border-radius: var(--r-md);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
}
.row + .row { border-top: 1px solid var(--line); }
.row-body { flex: 1; min-width: 0; }
.row-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.row-sub {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 500;
  margin-top: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.row-right { text-align: right; flex-shrink: 0; min-width: 82px; }
.row-amount { font-size: 15.5px; font-weight: 800; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.row-amount.pos { color: var(--green); }
.row-amount.neg { color: var(--pink-deep); }
.row-date { font-size: 12px; color: var(--muted); font-weight: 500; margin-top: 2px; }
.row-heart {
  background: none; border: none; padding: 2px;
  color: var(--pink-deep); display: flex; align-items: center;
  transition: transform 0.14s ease;
}
.row-heart svg { width: 22px; height: 22px; }
.row-heart:active { transform: scale(0.85); }
