/* screen: home — topbar, account card deck, activity, pots, savings, suggested */

/* ---------- Top bar ---------- */
.home-topbar { padding: 14px 0 16px; }
.home-sparklebtn { background: rgba(255, 255, 255, 0.06); }
.home-sparklebtn svg { width: 22px; height: 22px; }

/* ---------- Account card stack (overlapping deck) ---------- */
.home-stack { margin: 2px 0 24px; }
.home-acct { position: relative; color: #fff; }
.home-acct--back {
  display: flex; justify-content: space-between; align-items: center;
  border-radius: 26px 26px 0 0;
  padding: 15px 22px 40px;
  margin-bottom: -40px; /* next card overlaps the padded strip exactly */
}
.home-acct--flex { background: var(--color-flex-card); z-index: 1; }
.home-acct--nw   { background: var(--color-nationwide); z-index: 2; padding-top: 17px;
  box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.22); }
.home-acct__amt { font-size: 26px; line-height: 1.1; }

/* Flex brand block: "monzo" + letterspaced FLEX + coral squiggle */
.home-flex-brand { display: flex; align-items: center; gap: 16px; }
.home-flex-word { display: flex; flex-direction: column; }
.home-flex-word .wordmark { font-size: 25px; line-height: 1; color: #fff; }
.home-flex-tag { font-size: 10px; font-weight: 700; letter-spacing: 3.5px; margin-top: 3px; color: #fff; }
.home-flex-squiggle svg { width: 46px; height: 34px; color: var(--color-accent); }

/* Nationwide brand: red house-mark approximation + wordmark */
.home-nw-brand { display: flex; align-items: center; gap: 11px; }
.home-nw-word { font-size: 21px; font-weight: 700; color: #fff; letter-spacing: -0.01em; }
.home-nw-glyph { position: relative; width: 24px; height: 22px; flex: none; }
.home-nw-glyph::before {
  content: ""; position: absolute; left: 0; top: 0;
  width: 20px; height: 14px; background: #E8402F;
  border-radius: 10px 10px 0 0;
}
.home-nw-glyph::after {
  content: ""; position: absolute; left: 13px; top: 11px;
  width: 9px; height: 9px; background: #E8402F; border-radius: 2px;
  box-shadow: -2px -2px 0 var(--color-nationwide);
}

/* Front coral card */
.home-acct--front {
  background: linear-gradient(160deg, #FF5A47 0%, #F4452F 100%);
  border-radius: 28px;
  padding: 19px 20px 18px;
  z-index: 3;
  box-shadow: 0 -10px 26px rgba(0, 0, 0, 0.28), var(--shadow-lg);
}
.home-front__row1 { display: flex; justify-content: space-between; align-items: flex-start; }
.home-front__wordmark { font-size: 30px; line-height: 1.15; color: #fff; }
.home-front__amt { font-size: 33px; line-height: 1.1; }
.home-front__row2 {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 14px; font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, 0.92);
}
.home-front__acct { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.home-front__acct svg { width: 18px; height: 18px; flex: none; }
.home-front__label { color: #fff; }
.home-front__actions { display: flex; align-items: center; gap: 10px; margin-top: 24px; }
.home-front__actions .pill--icon { margin-left: auto; }
.home-front__plus {
  width: 19px; height: 19px; border-radius: 50%; background: #fff;
  display: grid; place-items: center; flex: none;
}
.home-front__plus svg { width: 11px; height: 11px; color: #7C2B20; }

/* ---------- Activity ---------- */
.home-activity { margin-bottom: 14px; }
.home-activity .row-tile { margin: 4px 0 6px; }
.home-sq .sq__mono { font-weight: 800; font-size: 13px; letter-spacing: -0.2px; }
.home-activity .sq__badge--squiggle {
  right: -9px; bottom: -9px; width: 25px; height: 25px;
  border-radius: 8px; background: #0C1922;
}
.home-activity .sq__badge--squiggle svg { width: 17px; height: 17px; color: var(--color-accent); }
.home-activity .row__note { font-size: 13px; }
.home-rowkebab {
  display: grid; place-items: center; width: 28px; height: 28px;
  color: var(--color-text-muted); margin-left: auto;
}
.home-rowkebab svg { width: 22px; height: 22px; }
.home-activity__empty { text-align: center; padding: 26px 0 14px; color: var(--color-text-muted); }
.home-activity__empty svg { width: 34px; height: 34px; margin: 0 auto 10px; color: var(--color-text-subtle); }
.home-hbtn { display: grid; place-items: center; width: 30px; height: 30px; }
.row__body { min-width: 0; }
.row__body .row__sub { display: block; }

/* ---------- Pots ---------- */
.home-pots { margin-bottom: 14px; }
.home-htotal { color: var(--color-text-muted); font-weight: 700; }
.home-pots .hscroll { padding-top: 6px; }
.home-potcard {
  width: 172px; height: 192px; border-radius: 16px; overflow: hidden;
  position: relative; padding: 0; text-align: left; flex: none;
  background: radial-gradient(130% 100% at 50% 0%, #1C2830 0%, #0D161C 65%);
  transition: transform 120ms ease;
}
.home-potcard:active { transform: scale(0.97); }
.home-potcard__emoji {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -56%);
  font-size: 70px; line-height: 1;
}
.home-potcard__meta {
  position: absolute; left: 14px; bottom: 12px; z-index: 2;
  display: flex; flex-direction: column; gap: 1px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
.home-potcard__name { font-size: 15px; font-weight: 600; color: #fff; }
.home-potcard__amt { font-size: 17px; color: #fff; }

/* Pot illustration scenes */
.home-scene--pig .home-potcard__emoji { top: 54%; font-size: 78px; }
.home-scene--pig::before {
  content: ""; position: absolute; left: 50%; top: 18px; transform: translateX(-58%);
  width: 40px; height: 40px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #D9EC61 0%, #AECF33 55%, #8FB223 100%);
  box-shadow: inset -4px -5px 0 rgba(90, 120, 20, 0.35);
}
.home-scene--car { background: linear-gradient(150deg, #46345A 0%, #2C3247 45%, #1C2A36 100%); }
.home-scene--car::before {
  content: ""; position: absolute; left: 14px; top: 24px;
  width: 50px; height: 64px; border-radius: 26px;
  background: #33503E; box-shadow: 30px -12px 0 -6px #2A4534;
}
.home-scene--car .home-potcard__emoji {
  left: auto; top: auto; right: -6px; bottom: 38px;
  transform: scaleX(-1); font-size: 76px;
}
.home-scene--jar  { background: radial-gradient(130% 100% at 50% 0%, #1B2A33 0%, #0E181F 65%); }
.home-scene--palm { background: linear-gradient(160deg, #3E2D50 0%, #22303F 60%, #16232E 100%); }
.home-scene--money { background: linear-gradient(160deg, #173A32 0%, #10222B 70%); }
.home-scene--rain { background: linear-gradient(165deg, #27405C 0%, #14222E 70%); }
.home-potcard--create { background: #243239; display: grid; place-items: center; }
.home-potcard__createlabel { font-size: 15px; font-weight: 600; color: #fff; }

/* ---------- Savings ---------- */
.home-savings { margin-bottom: 14px; }
.home-savings .card__header { margin-bottom: 4px; }
.home-challenge .row__sub { font-size: 14.5px; margin-top: 3px; }
.home-join { height: 38px; padding: 0 22px; font-size: 15px; }
.home-challenge-tile {
  position: relative; overflow: hidden;
  background:
    linear-gradient(125deg,
      rgba(255, 110, 160, 0.45) 0%, rgba(255, 180, 80, 0.30) 22%,
      rgba(255, 255, 255, 0.12) 38%, rgba(110, 220, 150, 0.28) 55%,
      rgba(90, 160, 255, 0.32) 75%, rgba(190, 120, 255, 0.38) 100%),
    #131E28;
}
.home-challenge-tile::before {
  content: ""; position: absolute; left: 8px; top: 7px;
  width: 25px; height: 28px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #FF8A74 0%, #F0564A 45%, #D22B1D 100%);
  box-shadow: 2px 3px 6px rgba(0, 0, 0, 0.45),
    inset -2px -3px 0 rgba(150, 20, 10, 0.55),
    inset 2px 2px 0 rgba(255, 190, 175, 0.8);
  transform: rotate(-16deg);
}
.home-challenge-spark {
  position: absolute; right: 3px; top: 5px; z-index: 2;
  font-size: 13px; color: #fff; text-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}
.home-savrow { grid-template-columns: auto 1fr auto; padding: 15px 0; }
.home-savrow__title { font-size: 17px; }
.home-savstack { position: relative; height: 44px; display: block; flex: none; }
.home-savstack__tile {
  position: absolute; top: 0; width: 44px; height: 44px;
  border-radius: 34%; border: 3px solid var(--color-surface);
  background: #20404A; display: grid; place-items: center; font-size: 19px;
}
.home-savings__total { font-size: 24px; }

/* Snap Subscription shapes logo (declined row) */
.home-snap { position: relative; width: 24px; height: 24px; display: block; }
.home-snap i { position: absolute; background: #fff; }
.home-snap i:nth-child(1) { left: 0; top: 2px; width: 11px; height: 11px; border-radius: 3px; }
.home-snap i:nth-child(2) { right: 0; top: 0; width: 12px; height: 12px; border-radius: 50%; }
.home-snap i:nth-child(3) {
  left: 4px; bottom: 0; width: 0; height: 0; background: none;
  border-left: 8px solid transparent; border-right: 8px solid transparent;
  border-bottom: 12px solid #fff;
}

/* ---------- Suggested for you ---------- */
.home-suggested { margin: 22px 0 8px; }
.home-suggested__header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.home-suggested__header h2 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.home-suggested__more { color: var(--color-link); font-weight: 600; font-size: 16px; }
.home-suggested .hscroll { margin: 0 -32px; padding: 2px 32px 8px; }
.home-sugcard {
  width: 176px; height: 240px; border-radius: var(--radius-md);
  background: var(--color-surface-subtle);
  position: relative; padding: 14px 14px 16px;
  display: flex; flex-direction: column; text-align: left; flex: none;
}
.home-sugcard__x {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; color: var(--color-link);
}
.home-sugcard__x svg { width: 17px; height: 17px; }
.home-sugcard__caption { font-size: 15.5px; font-weight: 600; line-height: 1.32; }
.home-sugart { flex: 1; position: relative; display: grid; place-items: center; }
.home-sugart__main { font-size: 58px; line-height: 1; }
.home-sugart--overdraft .home-sugart__main {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
}
.home-sugart--overdraft .home-sugart__sub {
  position: absolute; top: 78px; left: 50%;
  transform: translateX(-50%) rotate(-8deg); font-size: 30px;
}
.home-sugart--isa .home-sugart__main { font-size: 64px; }
.home-taxbadge {
  position: absolute; left: 50%; top: 58%;
  transform: translate(-50%, -50%) rotate(-12deg);
  width: 46px; height: 46px; border-radius: 50%;
  background: #F5821F; border: 2px solid #FFD9AD;
  color: #fff; font-size: 9px; font-weight: 800; letter-spacing: 0.4px;
  display: grid; place-items: center; text-align: center; line-height: 1.15;
}
.home-sugart__spark { position: absolute; right: 16px; top: 12px; font-size: 22px; }
.home-sugart--invest .home-sugart__main { font-size: 54px; }
.home-sugart--invest .home-sugart__spark { font-size: 26px; right: 22px; top: 20px; }
