/* ============ Screen: savings hub ============ */

/* ---------- Top bar + segmented ---------- */
.savings-topbar { padding-bottom: 2px; }
.savings-back { color: var(--color-link); }
.savings-seg { background: #1C333E; margin: 10px 0 26px; }
.savings-seg .seg__opt { color: #C4D3DA; }
.savings-seg .seg__opt.active { background: #0F212B; color: var(--color-text); }

/* Card rhythm from the screenshot: ~24px between cards, 19px headers */
.savings-body .card { margin-bottom: 24px; }
.savings-body .card__header { font-size: 19px; }

/* ---------- Summary card ---------- */
.savings-summary { padding: 22px 18px 20px; }
.savings-summary__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 2px 0;
}
.amount.savings-summary__earnedamt {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-success);
}
.savings-summary__earnedsub {
  color: var(--color-success);
  font-size: var(--text-base);
  margin-top: 6px;
}
.savings-summary__totalcol { text-align: right; }
.amount.savings-summary__totalamt { font-size: var(--text-3xl); }
.savings-summary__totalsub {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  margin-top: 6px;
}
.savings-summary__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.savings-summary__actions .pill { padding: 0 18px; font-size: 15px; }
.savings-addbtn svg { color: #fff; }
.savings-addbtn svg path { stroke: var(--color-primary); }
.savings-schedbtn svg { width: 20px; height: 20px; }

/* ---------- Savings Pots card ---------- */
.savings-pots .card__header { margin-bottom: 4px; }
.savings-kebab svg { width: 22px; height: 22px; }
.savings-potrow { padding: 15px 0; }
.savings-potrow__name {
  font-size: 17.5px;
  font-weight: 600;
  margin-bottom: 8px;
}
.savings-potrow .progress-track { margin-bottom: 8px; }
.savings-potrow__amt { font-size: 20px; }
.savings-potrow__aer {
  color: var(--color-success);
  font-size: var(--text-sm);
  margin-top: 4px;
}
.savings-create { font-size: 18px; padding-top: 14px; }

/* Divider under the last pot row, before "Create Savings Pot" (inset) */
.savings-rows--endline > :last-child { position: relative; }
.savings-rows--endline > :last-child::after {
  content: "";
  position: absolute;
  left: 56px;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--color-border);
}

/* Pot tile tints (mirror the pot-detail hero scenes) */
.savings-pottile { background: var(--color-surface-subtle); font-size: 22px; }
.savings-pottile--pig  { background: #1A2830; }
.savings-pottile--jar  { background: linear-gradient(155deg, #38294B 0%, #252641 45%, #1B2534 100%); }
.savings-pottile--car  { background: linear-gradient(160deg, #33294A 0%, #243043 60%, #1B2A38 100%); }
.savings-pottile--palm { background: linear-gradient(160deg, #1F3B40 0%, #152730 100%); }
.savings-pottile--money{ background: linear-gradient(160deg, #2C2142 0%, #1B2532 100%); }
.savings-pottile--rain { background: linear-gradient(160deg, #253649 0%, #16222E 100%); }

/* ---------- Cash ISA card ---------- */
.savings-isa__header { margin-bottom: 2px; }
.savings-isa__row { padding: 12px 0 4px; }
.savings-isa__title { font-size: 17px; font-weight: 700; margin-bottom: 3px; }
.savings-isa__tile {
  position: relative;
  background: linear-gradient(160deg, #3A2838 0%, #1D2434 100%);
  font-size: 22px;
}
.savings-isa__shades {
  position: absolute;
  top: 13px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-style: normal;
}
.savings-isa__spark {
  position: absolute;
  top: 2px;
  left: 3px;
  font-size: 9px;
  font-style: normal;
}
.savings-isa__open {
  height: 42px;
  padding: 0 22px;
  color: var(--color-link);
}

/* ---------- Investments / Pension empty states ---------- */
.savings-empty { padding: 22px 18px; }
.savings-empty__title { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.savings-empty__copy {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  line-height: 1.5;
  margin-bottom: 18px;
}
