.creo-wallet-recap {
  margin: 18px auto 26px;
  padding: 0 30px;
}

.creo-wallet-card {
  position: relative;
  border-radius: 28px;
  padding: 34px 34px 26px;

  background: var(--couleur-fond-theme);
  border: 1px solid var(--couleur-bordure-theme);
  box-shadow: var(--shadow-theme);

  overflow: hidden;
}

.creo-wallet-card::before {
  content: "";
  position: absolute;
  inset: -120px auto auto 45%;
  width: 420px;
  height: 260px;
  background: radial-gradient(circle, rgba(255, 0, 51, 0.18), transparent 65%);
  pointer-events: none;
}

.creo-wallet-grid {
  position: relative;
  z-index: 1;

  display: grid;
  grid-template-columns: 1fr 1px 1.15fr 1px 1.15fr;
  align-items: center;
  gap: 28px;
}

.creo-wallet-separator {
  width: 1px;
  height: 130px;
  background: var(--couleur-bordure-theme);
}

.creo-wallet-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 22px;
  min-height: 145px;
}

.creo-wallet-item > div:nth-child(2) {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 145px;
  padding-top: 4px;
}

.creo-wallet-label {
  height: 22px;

  display: flex;

  align-items: center;

  margin-bottom: 12px;

  text-transform: uppercase;

  font-size: 0.82rem;

  letter-spacing: 0.7px;

  font-weight: 800;

  color: var(--couleur-texte-theme);

  opacity: 0.72;
}

.creo-wallet-eye {
  position: absolute;

  right: 0;

  top: 0;
}

.creo-wallet-icon {
  width: 76px;
  height: 76px;
  border-radius: 24px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 30px;
}

.creo-wallet-icon.red {
  color: #ff3347;
  background: rgba(255, 51, 71, 0.12);
}

.creo-wallet-icon.green {
  color: #00e68a;
  background: rgba(0, 230, 138, 0.12);
}

.creo-wallet-label {
  margin-bottom: 8px;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.7px;
  font-weight: 800;
  color: var(--couleur-texte-theme);
  opacity: 0.72;
}

.creo-wallet-value {
  display: flex;
  align-items: baseline;
  gap: 10px;

  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-weight: 900;
  color: var(--couleur-texte-theme);
  line-height: 1;
}

.creo-wallet-value small {
  font-size: 0.95rem;
  font-weight: 800;
}

.creo-wallet-value.gain {
  color: #00e68a;
}

.creo-wallet-value em {
  margin-left: 8px;
  font-style: normal;
  font-size: 0.95rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 230, 138, 0.12);
}

.creo-wallet-sub {
  margin-top: 10px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--couleur-texte-theme);
  opacity: 0.58;
}

.creo-wallet-eye {
  position: absolute;
  right: 0;
  top: 18px;

  width: 42px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--couleur-bordure-theme);

  background: var(--couleur-surface-theme);
  color: var(--couleur-texte-theme);

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
}

.creo-wallet-actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.creo-wallet-action-btn {
  min-width: 125px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--couleur-bordure-theme);

  font-weight: 800;
  cursor: pointer;
}

.creo-wallet-action-btn.deposit {
  border: none;
  background: #ff3347;
  color: #fff;
}

.creo-wallet-action-btn.withdraw {
  background: transparent;
  color: var(--couleur-texte-theme);
}

.creo-wallet-switch-wrap {
  position: relative;
  z-index: 1;

  display: flex;
  justify-content: center;
  margin-top: 8px;
}

.creo-wallet-switch {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 8px;
  border-radius: 999px;

  border: 1px solid #ff3347;
  background: rgba(0, 0, 0, 0.18);
  box-shadow: 0 0 28px rgba(255, 51, 71, 0.18);
}

.creo-wallet-switch button {
  height: 46px;
  min-width: 170px;
  padding: 0 22px;

  border: none;
  border-radius: 999px;

  background: transparent;
  color: var(--couleur-texte-theme);
  opacity: 0.65;

  font-weight: 900;
  cursor: pointer;
}

.creo-wallet-switch button.active {
  opacity: 1;
  color: #fff;
  background: linear-gradient(135deg, #ff3347, #c91527);
}

.creo-wallet-switch .switch-center {
  min-width: 48px;
  width: 48px;
  padding: 0;

  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.creo-wallet-hidden .creo-wallet-value span,
.creo-wallet-hidden .creo-wallet-sub span,
.creo-wallet-hidden #creoWalletRendementPct {
  filter: blur(7px);
}

@media (max-width: 1100px) {
  .creo-wallet-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .creo-wallet-separator {
    width: 100%;
    height: 1px;
  }

  .creo-wallet-item {
    min-height: auto;
  }

  .creo-wallet-eye {
    right: 0;
    top: 0;
  }
}

@media (max-width: 576px) {
  .creo-wallet-recap {
    padding: 0 10px;
  }

  .creo-wallet-card {
    padding: 24px 18px;
  }

  .creo-wallet-switch {
    width: 100%;
  }

  .creo-wallet-switch button {
    min-width: 0;
    flex: 1;
    padding: 0 10px;
    font-size: 0.8rem;
  }
}
