.account-dashboard {
  position: relative;
  z-index: 1;
  background: transparent;
}

/* WOW Effect : Orbe lumineuse en arrière-plan qui flotte doucement */
.account-dashboard::before {
  content: "";
  position: absolute;
  top: 5%;
  left: -10%;
  width: 60vw;
  max-width: 600px;
  height: 60vw;
  max-height: 600px;
  background: radial-gradient(circle, rgba(255, 77, 77, 0.15) 0%, transparent 60%);
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
  animation: floatOrb 15s ease-in-out infinite alternate;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(15vw, 15vh) scale(1.3); }
}

/* Animations d'entrée fluides */
@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.account-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
  padding: 1.6rem;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(255, 96, 96, 0.08), transparent 40%),
    radial-gradient(circle at bottom right, rgba(82, 133, 255, 0.08), transparent 40%),
    rgba(10, 10, 24, 0.32);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  animation: slideUpFade 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.account-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.04) 45%, transparent 100%);
  transform: translateX(-100%);
  animation: heroShine 6s linear infinite;
  pointer-events: none;
}

@keyframes heroShine {
  100% {
    transform: translateX(100%);
  }
}

.account-hero__content {
  position: relative;
  z-index: 1;
}

.account-hero__eyebrow {
  display: inline-block;
  margin-bottom: 0.65rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: #ffc1c1;
  background: rgba(255, 106, 106, 0.12);
  border: 1px solid rgba(255, 106, 106, 0.18);
}

.account-hero__title {
  margin: 0 0 0.6rem;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
  color: #ff6c6c;
}

.account-hero__text {
  margin: 0;
  max-width: 700px;
  font-size: 1rem;
  line-height: 1.65;
  color: #c6c7dc;
}

.account-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.4rem;
}

.account-hero__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-panel-card {
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  backdrop-filter: blur(8px);
}

.hero-panel-card__label {
  display: block;
  font-size: 0.8rem;
  color: #a2a6ca;
  margin-bottom: 0.35rem;
}

.hero-panel-card__value {
  display: block;
  font-size: 1.4rem;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.hero-panel-card__sub {
  font-size: 0.86rem;
  color: #c5c8e0;
}

.hero-panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.hero-mini-stat {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-mini-stat:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 106, 106, 0.25);
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.hero-mini-stat__number {
  display: block;
  font-size: 1.45rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.hero-mini-stat__label {
  display: block;
  font-size: 0.82rem;
  color: #aeb3d2;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.2rem;
}

.account-card {
  grid-column: span 4;
  position: relative;
  overflow: hidden;
  padding: 1.3rem;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.01)),
    rgba(9, 11, 26, 0.34);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 16px 40px rgba(0,0,0,0.28);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  animation: slideUpFade 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Effet cascade sur l'entrée des cartes */
.account-card:nth-child(1) { animation-delay: 0.1s; }
.account-card:nth-child(2) { animation-delay: 0.15s; }
.account-card:nth-child(3) { animation-delay: 0.2s; }
.account-card:nth-child(4) { animation-delay: 0.25s; }
.account-card:nth-child(5) { animation-delay: 0.3s; }
.account-card:nth-child(6) { animation-delay: 0.35s; }

.account-card::after {
  content: "";
  position: absolute;
  inset: auto -30% -60% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 106, 106, 0.16), transparent 65%);
  pointer-events: none;
}

.account-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 106, 106, 0.2);
  box-shadow: 0 22px 50px rgba(0,0,0,0.34);
}

.account-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.account-card__eyebrow {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9096b9;
}

.account-card__title {
  margin: 0;
  font-size: 1.45rem;
  color: #ffffff;
}

.account-card__text {
  margin: 0.8rem 0 0;
  line-height: 1.65;
  color: #c3c7de;
}

.account-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.account-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  font-size: 0.74rem;
  white-space: nowrap;
  border: 1px solid transparent;
}

.account-badge--green {
  background: rgba(64, 209, 129, 0.12);
  color: #7bf0aa;
  border-color: rgba(64, 209, 129, 0.22);
}

.account-badge--gray {
  background: rgba(255,255,255,0.07);
  color: #d4d7eb;
  border-color: rgba(255,255,255,0.08);
}

.account-badge--red {
  background: rgba(255, 106, 106, 0.12);
  color: #ff9f9f;
  border-color: rgba(255, 106, 106, 0.2);
}

.account-badge--orange {
  background: rgba(255, 170, 84, 0.12);
  color: #ffc58b;
  border-color: rgba(255, 170, 84, 0.18);
}

.account-info-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.account-info-row {
  display: flex;
  flex-direction: column;
  padding: 0.85rem 0.95rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
}

.account-info-row__label {
  font-size: 0.76rem;
  color: #97a0c7;
  margin-bottom: 0.28rem;
}

.account-info-row__value {
  font-size: 0.98rem;
  color: #ffffff;
  word-break: break-word;
}

.support-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 0.8rem;
  margin-top: 0.9rem;
}

.support-stat {
  min-width: 0;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
}

.support-stat--wide {
  grid-column: 1 / -1;
}

.support-stat__label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.76rem;
  color: #98a0c4;
  line-height: 1.3;
}

.support-stat__value {
  display: block;
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.45;
  word-break: break-word;
}

.account-card__text {
  margin: 1rem 0 0;
  color: #c3c7de;
  line-height: 1.6;
}

.account-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.account-card__actions .btn {
  flex: 1 1 180px;
  text-align: center;
}

.account-card--support .account-card__header {
  margin-bottom: 1rem;
}

.support-card-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 1rem;
  align-items: start;
}

.support-card-main {
  min-width: 0;
}

.support-card-side {
  display: grid;
  gap: 0.8rem;
}

.support-card-main .account-card__text {
  margin: 0;
  color: #c3c7de;
  line-height: 1.7;
}

.support-card-main .account-card__actions {
  margin-top: 1.2rem;
}

.support-card-side .support-stat {
  min-width: 0;
  padding: 1rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}

.support-card-side .support-stat__label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.76rem;
  color: #98a0c4;
  line-height: 1.3;
}

.support-card-side .support-stat__value {
  display: block;
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.45;
  word-break: break-word;
}

@media (max-width: 900px) {
  .support-card-layout {
    grid-template-columns: 1fr;
  }

  .support-card-side {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .support-card-side {
    grid-template-columns: 1fr;
  }
}

.activity-list,
.notification-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.activity-item,
.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}

.activity-item__icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 106, 106, 0.12);
  font-size: 1.05rem;
}

.activity-item__title {
  color: #ffffff;
  margin-bottom: 0.2rem;
}

.activity-item__meta {
  font-size: 0.85rem;
  color: #9ea5ca;
}

.notification-item__dot {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: #ff7a7a;
  box-shadow: 0 0 14px rgba(255, 106, 106, 0.8);
}

.notification-item p {
  margin: 0.25rem 0 0;
  color: #aeb4d3;
  line-height: 1.55;
}

.coming-box {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.coming-box__item {
  padding: 0.9rem;
  border-radius: 14px;
  text-align: center;
  color: #e3e6f7;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}

.account-card--coming {
  background:
    radial-gradient(circle at top right, rgba(255, 170, 84, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015)),
    rgba(9, 11, 26, 0.92);
}

.btn-disabled,
button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (max-width: 1200px) {
  .account-card {
    grid-column: span 6;
  }

  .account-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .account-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .account-card {
    grid-column: span 1;
    padding: 1.5rem 1.25rem;
  }
  
  .account-hero {
    padding: 1.5rem 1.25rem;
    gap: 2rem;
  }

  /* On garde 2 items par ligne si possible pour économiser de la place (Mini stats et Coming box) */
  .hero-panel-grid,
  .support-stats,
  .coming-box {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .account-hero__actions,
  .account-card__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
  }

  /* Boutons tactiles parfaits sur mobile */
  .account-card__actions .btn,
  .account-hero__actions .btn {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    border-radius: 12px;
  }
  
  /* Micro animation au tap sur mobile */
  .btn:active {
    transform: scale(0.96);
    transition: transform 0.1s;
  }
}

/* Breakpoint extrême pour les tous petits téléphones */
@media (max-width: 480px) {
  .hero-panel-grid {
    grid-template-columns: 1fr;
  }
  .coming-box {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .hero-mini-stat {
    padding: 0.8rem 1rem;
  }
}