/* Maquettes fidèles à l’app Pooly (App.js) */
.pooly-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 540px;
  background: #f7f6fb;
}

.pooly-screen__scroll {
  flex: 1;
  padding: 0 16px 100px;
  overflow: hidden;
}

.pooly-screen__scroll--add {
  padding: 12px 24px 24px;
}

/* —— En-tête accueil groupe —— */
.pooly-home-header {
  display: flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: 6px;
  padding: 0 6px 2px;
  background: #f7f6fb;
}

.pooly-home-header__side {
  width: 44px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.pooly-home-header__side--left {
  justify-content: flex-start;
  padding-left: 8px;
}

.pooly-home-header__side--right {
  justify-content: flex-end;
  padding-right: 8px;
}

.pooly-home-header__center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  gap: 8px;
  padding: 0 4px;
  border: none;
  background: transparent;
  cursor: default;
  font: inherit;
}

.pooly-home-header__thumb {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #6b5cf0, #4d3ee8);
  flex-shrink: 0;
}

.pooly-home-header__title {
  font-size: 17px;
  font-weight: 900;
  color: #111124;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.pooly-home-header__settings {
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pooly-icon {
  font-size: 22px;
  color: #111124;
  line-height: 1;
}

.pooly-icon--lg {
  font-size: 28px;
}

.pooly-icon--purple {
  color: #4d3ee8;
}

.pooly-icon--muted {
  color: #74748a;
}

.pooly-icon--white {
  color: #fff;
}

/* —— Stack header (sous-écrans) —— */
.pooly-stack-header {
  display: flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: 14px;
  padding: 0 4px;
  background: #f7f6fb;
}

.pooly-stack-header__title {
  flex: 1;
  font-size: 18px;
  font-weight: 900;
  color: #111124;
  text-align: left;
  margin: 0;
  padding-right: 8px;
}

.pooly-stack-header__spacer {
  width: 40px;
}

/* —— Contenu groupe —— */
.pooly-members-count {
  font-size: 14px;
  font-weight: 700;
  color: #74748a;
  margin: 0 0 8px;
}

.pooly-member-row {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}

.pooly-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #f7f6fb;
  margin-right: -8px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
}

.pooly-avatar:first-child {
  margin-right: -8px;
}

.pooly-avatar--c {
  background: #4d3ee8;
  z-index: 4;
}
.pooly-avatar--t {
  background: #17a964;
  z-index: 3;
}
.pooly-avatar--l {
  background: #e11d48;
  z-index: 2;
}
.pooly-avatar--a {
  background: #f59e0b;
  z-index: 1;
}

.pooly-add-member {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #4d3ee8;
  background: rgba(255, 255, 255, 0.95);
  margin-left: 10px;
  display: grid;
  place-items: center;
  color: #4d3ee8;
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
}

.pooly-balance-card {
  background: #fff;
  border-radius: 22px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(240, 240, 247, 0.9);
  box-shadow: 0 3px 12px rgba(15, 15, 40, 0.08);
  margin-bottom: 0;
}

.pooly-balance-card__main {
  flex: 1;
  min-width: 0;
}

.pooly-balance-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}

.pooly-balance-label {
  font-size: 14px;
  color: #74748a;
  margin: 0;
}

.pooly-balance-amount {
  font-size: 32px;
  font-weight: 900;
  color: #111124;
  margin: 4px 0;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.pooly-balance-sub {
  font-size: 14px;
  color: #74748a;
  margin: 0;
}

.pooly-balance-hint {
  font-size: 12px;
  font-weight: 700;
  color: #4d3ee8;
  margin: 8px 0 0;
}

.pooly-percent-ring {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 8px solid #4d3ee8;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 900;
  color: #111124;
}

.pooly-quick-grid {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  margin-bottom: 8px;
}

.pooly-quick {
  flex: 1;
  aspect-ratio: 1;
  max-height: 118px;
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(240, 240, 247, 0.95);
  box-shadow: 0 3px 12px rgba(15, 15, 40, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 8px;
}

.pooly-quick__label {
  font-size: 11px;
  font-weight: 800;
  color: #111124;
  text-align: center;
  line-height: 1.25;
}

.pooly-section-title {
  font-size: 19px;
  font-weight: 900;
  color: #111124;
  margin: 14px 0 12px;
}

.pooly-expense {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 12px;
  border: 1px solid rgba(240, 240, 247, 0.95);
  box-shadow: 0 3px 12px rgba(15, 15, 40, 0.06);
}

.pooly-expense__logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  flex-shrink: 0;
}

.pooly-expense__body {
  flex: 1;
  min-width: 0;
}

.pooly-expense__title {
  font-size: 15px;
  line-height: 22px;
  color: #111124;
  margin: 0;
  letter-spacing: 0.15px;
}

.pooly-expense__title strong {
  font-weight: 600;
}

.pooly-expense__sub {
  font-size: 13px;
  font-weight: 500;
  color: #74748a;
  margin: 4px 0 0;
  line-height: 19px;
}

.pooly-expense__amount {
  font-size: 15px;
  font-weight: 600;
  color: #111124;
  letter-spacing: 0.2px;
  flex-shrink: 0;
}

.pooly-footer-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 16px 0 8px;
  color: #4d3ee8;
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
}

/* —— Tab bar (Accueil · Carte · + · Dépenses · PREMIUM) —— */
.pooly-tabbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  padding: 8px 4px 22px;
  background: #fff;
  border-top: 1px solid #ededf3;
  z-index: 5;
}

.pooly-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 4px;
  color: #ada0dc;
  font-size: 10px;
  font-weight: 800;
  gap: 4px;
}

.pooly-tab.is-active {
  color: #4d3ee8;
}

.pooly-tab--premium {
  font-size: 8.5px;
  letter-spacing: 0.4px;
}

.pooly-tab ion-icon {
  font-size: 22px;
}

.pooly-tabbar__plus {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #4d3ee8;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  flex-shrink: 0;
  box-shadow: 0 10px 24px rgba(77, 62, 232, 0.35);
}

/* —— Ajouter de l’argent —— */
.pooly-card-block {
  background: #fff;
  border-radius: 20px;
  padding: 18px;
  margin-bottom: 14px;
  border: 1px solid rgba(240, 240, 247, 0.98);
  box-shadow: 0 3px 12px rgba(15, 15, 40, 0.06);
}

.pooly-card-block__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.pooly-card-block__icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: #f2eeff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.pooly-card-block__title {
  font-size: 16px;
  font-weight: 900;
  color: #111124;
  margin: 0;
}

.pooly-add-amount {
  text-align: center;
  padding: 4px 0;
}

.pooly-add-amount__value {
  font-size: 40px;
  font-weight: 900;
  color: #4d3ee8;
  margin: 8px 0 0;
  line-height: 1.1;
}

.pooly-add-amount__hint {
  font-size: 13px;
  font-weight: 600;
  color: #74748a;
  margin: 10px 0 0;
}

.pooly-bank-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pooly-bank-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #f2eeff;
  display: grid;
  place-items: center;
}

.pooly-bank-row__title {
  font-size: 15px;
  font-weight: 600;
  color: #111124;
  margin: 0;
}

.pooly-bank-row__sub {
  font-size: 13px;
  color: #74748a;
  margin: 4px 0 0;
}

.pooly-pay-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f6;
}

.pooly-pay-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.pooly-pay-row:first-child {
  padding-top: 0;
}

.pooly-pay-row--selected {
  background: rgba(77, 62, 232, 0.04);
  margin: 0 -12px;
  padding-left: 12px;
  padding-right: 12px;
  border-radius: 12px;
  border-bottom-color: transparent;
}

.pooly-pay-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #f4f4f8;
  border: 2px solid #eeeef5;
  display: grid;
  place-items: center;
}

.pooly-pay-row--selected .pooly-pay-icon {
  background: rgba(77, 62, 232, 0.1);
  border-color: #4d3ee8;
}

.pooly-pay-row__title {
  font-size: 15px;
  font-weight: 600;
  color: #111124;
  margin: 0;
}

.pooly-pay-row__sub {
  font-size: 13px;
  color: #74748a;
  margin: 4px 0 0;
}

.pooly-btn-primary {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 17px;
  border: none;
  border-radius: 999px;
  background: #4d3ee8;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 10px 24px rgba(77, 62, 232, 0.35);
}

/* —— Fil dépenses —— */
.pooly-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.pooly-filter-pill {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid #eeeef5;
  background: #fff;
  font-size: 13px;
  font-weight: 800;
  color: #111124;
}

.pooly-filter-pill.is-active {
  background: #4d3ee8;
  border-color: #4d3ee8;
  color: #fff;
  font-weight: 900;
}

.screens-section .phone-stage {
  animation: none;
}

.screens-section .phone-device {
  width: min(320px, 100%);
}

.screens-section .phone-screen {
  min-height: 580px;
  border-radius: 26px;
}
