/* =========================================================
   AREA PERSONALE ROG — VERSIONE FINALE
   ========================================================= */

.member-dashboard-new {
  width: 100% !important;
  min-height: calc(100vh - 78px) !important;
  padding: 24px clamp(20px, 4vw, 54px) 44px !important;
  color: #ffffff !important;
  background:
    linear-gradient(rgba(3, 34, 84, 0.87), rgba(2, 38, 91, 0.94)),
    url("../images/gia-iscritto-bg.png") center / cover fixed no-repeat !important;
}

/* HERO */

.rog-dashboard-hero {
  position: relative;
  width: min(1400px, 100%);
  min-height: 245px;
  margin: 0 auto 14px;
  padding: 28px 35px 24px;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-align: center;
  background:
    radial-gradient(
      circle at 12% 11%,
      rgba(255, 255, 255, 0.72),
      rgba(99, 205, 255, 0.18) 12%,
      transparent 27%
    ),
    linear-gradient(
      100deg,
      rgba(4, 70, 139, 0.34),
      rgba(2, 48, 110, 0.35)
    ),
    url("../images/gia-iscritto-bg.png") center 47% / cover no-repeat;
  border: 1px solid rgba(73, 203, 255, 0.68);
  border-radius: 23px;
  box-shadow:
    inset 0 0 65px rgba(1, 24, 67, 0.48),
    0 16px 40px rgba(0, 15, 50, 0.33);
}

.rog-dashboard-hero::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -100px;
  width: 470px;
  height: 285px;
  opacity: 0.42;
  background:
    radial-gradient(circle at 15% 30%, #48d5ff 0 3px, transparent 4px),
    radial-gradient(circle at 43% 15%, #48d5ff 0 3px, transparent 4px),
    radial-gradient(circle at 62% 48%, #48d5ff 0 3px, transparent 4px),
    radial-gradient(circle at 84% 24%, #48d5ff 0 3px, transparent 4px),
    radial-gradient(circle at 91% 67%, #48d5ff 0 3px, transparent 4px);
  pointer-events: none;
}

.rog-hero-emblem {
  width: 52px;
  height: 52px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: rgba(3, 46, 104, 0.82);
  border: 2px solid #6bdcff;
  border-radius: 50%;
  font-size: 0.9rem;
  font-weight: 900;
  box-shadow:
    0 0 0 5px rgba(75, 211, 255, 0.1),
    0 0 24px rgba(75, 211, 255, 0.45);
}

.rog-dashboard-hero h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.02;
}

.rog-dashboard-hero h1 span {
  display: block;
  color: #4ed8ff;
}

.rog-hero-quote {
  margin: 11px 0 1px;
  color: rgba(255, 255, 255, 0.91);
  font-size: 0.84rem;
  font-style: italic;
}

.rog-dashboard-hero small {
  color: #bdd9ed;
  font-size: 0.69rem;
}

.rog-hero-greeting {
  margin: 10px 0 0;
  color: #ffffff;
  font-size: 1.1rem;
}

.rog-hero-greeting strong {
  color: #4ed8ff;
}

.rog-wallet-status {
  position: absolute;
  right: 18px;
  bottom: 15px;
  padding: 7px 11px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #d8ecfa;
  background: rgba(2, 28, 72, 0.65);
  border: 1px solid rgba(83, 209, 255, 0.35);
  border-radius: 999px;
  font-size: 0.65rem;
}

.rog-wallet-status i {
  width: 7px;
  height: 7px;
  background: #43db58;
  border-radius: 50%;
}

/* TOTALI */

.rog-stats-strip {
  width: min(1400px, 100%);
  min-height: 100px;
  margin: 0 auto 14px;
  padding: 15px 20px;
  display: grid;
  grid-template-columns:
    minmax(280px, 1.4fr)
    150px
    minmax(175px, 0.75fr)
    minmax(175px, 0.75fr)
    minmax(220px, 0.9fr);
  align-items: center;
  gap: 12px;
  background: linear-gradient(
    135deg,
    rgba(5, 67, 139, 0.96),
    rgba(3, 39, 96, 0.97)
  );
  border: 1px solid rgba(69, 199, 255, 0.48);
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(0, 15, 53, 0.27);
}

.rog-stats-intro {
  display: flex;
  align-items: center;
  gap: 17px;
}

.rog-stats-icon {
  width: 62px;
  height: 62px;
  display: flex;
  flex: 0 0 62px;
  align-items: center;
  justify-content: center;
  color: #6ce0ff;
  background: rgba(10, 96, 179, 0.38);
  border: 1px solid rgba(91, 216, 255, 0.45);
  border-radius: 50%;
  font-size: 1.8rem;
  box-shadow: 0 0 22px rgba(65, 203, 255, 0.19);
}

.rog-stats-intro span {
  color: #d8ecfc;
  font-size: 0.92rem;
  font-weight: 750;
}

.rog-total-position {
  text-align: center;
}

.rog-total-position strong {
  display: block;
  color: #58d9ff;
  font-size: 3.2rem;
  line-height: 0.9;
}

.rog-total-position span {
  display: block;
  margin-top: 7px;
  color: #cfe3f6;
  font-size: 0.72rem;
}

.rog-mini-stat {
  min-height: 66px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(4, 52, 116, 0.72);
  border: 1px solid rgba(87, 196, 244, 0.24);
  border-radius: 13px;
}

.rog-mini-icon {
  color: #5bd7ff;
  font-size: 1.65rem;
}

.rog-mini-stat span {
  display: block;
  color: #d8e9f8;
  font-size: 0.66rem;
}

.rog-mini-stat strong {
  display: block;
  margin-top: 3px;
  color: #55d6ff;
  font-size: 1.05rem;
}

.rog-last-update strong {
  color: #ffffff;
  font-size: 0.68rem;
  line-height: 1.35;
}

/* POSIZIONI */

.rog-positions-panel {
  width: min(1400px, 100%);
  margin: 0 auto 14px;
  padding: 18px 21px 16px;
  background: linear-gradient(
    145deg,
    rgba(4, 54, 119, 0.97),
    rgba(3, 35, 87, 0.98)
  );
  border: 1px solid rgba(67, 195, 255, 0.48);
  border-radius: 20px;
  box-shadow: 0 15px 36px rgba(0, 14, 48, 0.28);
}

.rog-panel-header {
  margin-bottom: 8px;
  padding-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(84, 194, 241, 0.2);
}

.rog-panel-kicker {
  color: #52d7ff;
  font-size: 0.9rem;
  font-weight: 800;
}

.rog-page-size {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e0effc;
  font-size: 0.72rem;
  font-weight: 700;
}

.rog-page-size select {
  padding: 9px 34px 9px 13px;
  color: #ffffff;
  background: #0968dc;
  border: 1px solid #4bd3ff;
  border-radius: 9px;
  font-size: 0.72rem;
  font-weight: 800;
}

.rog-positions-data {
  color: #ffffff;
}

/* Le card prodotte dal JavaScript diventano righe compatte */

.rog-positions-data .member-positions-list {
  gap: 4px !important;
}

.rog-positions-data .member-position-card {
  min-height: 53px !important;
  padding: 8px 11px !important;
  grid-template-columns:
    180px
    minmax(0, 1.15fr)
    minmax(310px, 0.9fr) !important;
  gap: 14px !important;
  background: rgba(3, 42, 97, 0.47) !important;
  border-color: rgba(77, 181, 228, 0.16) !important;
  border-radius: 7px !important;
}

.rog-positions-data .member-position-header h3 {
  font-size: 0.83rem !important;
}

.rog-positions-data .member-position-status {
  padding: 4px 8px !important;
  font-size: 0.59rem !important;
}

.rog-positions-data .member-position-details {
  gap: 8px !important;
}

.rog-positions-data .member-position-details div > span,
.rog-positions-data .member-position-progress > span {
  margin-bottom: 3px !important;
  font-size: 0.52rem !important;
}

.rog-positions-data .member-position-details strong {
  font-size: 0.65rem !important;
}

.rog-positions-data .member-position-progress strong {
  font-size: 0.78rem !important;
}

.rog-positions-data .member-pagination {
  margin-top: 10px !important;
  padding-top: 11px !important;
}

/* CARTA REGALO */

.rog-gift-strip {
  width: min(1400px, 100%);
  min-height: 112px;
  margin: 0 auto 12px;
  padding: 14px 24px;
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr) 220px;
  align-items: center;
  gap: 28px;
  background: linear-gradient(
    135deg,
    rgba(4, 59, 129, 0.97),
    rgba(3, 37, 91, 0.98)
  );
  border: 1px solid rgba(71, 196, 255, 0.45);
  border-radius: 19px;
}

.rog-gift-art {
  position: relative;
  height: 85px;
  display: flex;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at center, rgba(61, 204, 255, 0.24), transparent 62%),
    linear-gradient(90deg, rgba(7, 76, 148, 0.65), rgba(3, 42, 99, 0.2));
  border-radius: 14px;
}

.rog-infinity-symbol {
  color: #65dcff;
  font-family: Georgia, serif;
  font-size: 6rem;
  line-height: 1;
  text-shadow: 0 0 24px rgba(70, 211, 255, 0.6);
}

.rog-people {
  position: absolute;
  right: 20px;
  bottom: 10px;
  left: 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
}

.rog-people i {
  position: relative;
  width: 9px;
  height: 24px;
  background: #092c68;
  border-radius: 7px 7px 3px 3px;
}

.rog-people i::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 1px;
  width: 7px;
  height: 7px;
  background: #092c68;
  border-radius: 50%;
}

.rog-gift-copy h2 {
  margin: 0 0 6px;
  color: #54d8ff;
  font-size: 1.08rem;
}

.rog-gift-copy p {
  margin: 0;
  color: #d7e8f8;
  font-size: 0.76rem;
  line-height: 1.5;
}

.rog-gift-button {
  padding: 13px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #0864dc, #19a4df);
  border: 1px solid #56d8ff;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 850;
  box-shadow: 0 10px 25px rgba(0, 24, 72, 0.3);
}

/* ASSISTENTE */

.rog-assistant-strip {
  width: min(1400px, 100%);
  min-height: 87px;
  margin: 0 auto;
  padding: 13px 24px;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr) 210px;
  align-items: center;
  gap: 25px;
  background: linear-gradient(
    135deg,
    rgba(3, 48, 110, 0.97),
    rgba(2, 31, 79, 0.98)
  );
  border: 1px solid rgba(69, 190, 245, 0.37);
  border-radius: 18px;
}

.rog-assistant-identity {
  display: flex;
  align-items: center;
  gap: 14px;
}

.rog-assistant-avatar {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(
    circle at 30% 25%,
    #ffffff,
    #72d5ff 48%,
    #0b5ec3 100%
  );
  border-radius: 50%;
  font-size: 1.7rem;
}

.rog-assistant-identity strong {
  display: block;
  color: #ffffff;
  font-size: 0.9rem;
}

.rog-assistant-identity span {
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #c9def2;
  font-size: 0.68rem;
}

.rog-assistant-identity span i {
  width: 7px;
  height: 7px;
  background: #45dc58;
  border-radius: 50%;
  box-shadow: 0 0 9px rgba(69, 220, 88, 0.62);
}

.rog-assistant-copy {
  padding-left: 28px;
  border-left: 1px solid rgba(94, 192, 236, 0.25);
}

.rog-assistant-copy p {
  margin: 0 0 5px;
  color: #dceafa;
  font-size: 0.8rem;
}

.rog-assistant-copy strong {
  color: #4fd7ff;
}

.rog-assistant-copy small {
  color: #b9d2eb;
  font-size: 0.72rem;
}

.rog-open-chat {
  padding: 12px 20px;
  color: #ffffff;
  background: linear-gradient(135deg, #0964da, #159edc);
  border: 1px solid rgba(91, 216, 255, 0.7);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

/* MOBILE */

@media (max-width: 1100px) {
  .rog-stats-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rog-stats-intro {
    grid-column: 1 / -1;
  }

  .rog-gift-strip,
  .rog-assistant-strip {
    grid-template-columns: 1fr;
  }

  .rog-gift-button,
  .rog-open-chat {
    justify-self: start;
  }

  .rog-assistant-copy {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 700px) {
  .member-dashboard-new {
    padding: 18px 13px 35px !important;
  }

  .rog-dashboard-hero {
    min-height: 300px;
    padding: 26px 18px 65px;
  }

  .rog-wallet-status {
    right: 50%;
    transform: translateX(50%);
    white-space: nowrap;
  }

  .rog-stats-strip {
    grid-template-columns: 1fr;
  }

  .rog-total-position {
    text-align: left;
  }

  .rog-panel-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .rog-positions-data .member-position-card {
    grid-template-columns: 1fr !important;
  }
}

/* =========================================================
   ASSET REALI DEL MOCKUP — HERO, CARTA REGALO, ASSISTANT
   ========================================================= */

/* HERO CON MARE A SINISTRA E RETE A DESTRA */

.rog-dashboard-hero {
  position: relative !important;
  isolation: isolate !important;
  min-height: 260px !important;
  overflow: hidden !important;
  background:
    linear-gradient(
      90deg,
      rgba(2, 38, 92, 0.30),
      rgba(4, 77, 145, 0.72) 47%,
      rgba(2, 47, 108, 0.32)
    ) !important;
}

.rog-dashboard-hero::before {
  content: "" !important;
  position: absolute !important;
  z-index: -2 !important;
  inset: 0 auto 0 0 !important;
  width: 48% !important;
  height: 100% !important;
  display: block !important;
  opacity: 1 !important;
  background:
    url("../images/rog-hero-ocean.png") left center / cover no-repeat !important;
  -webkit-mask-image:
    linear-gradient(to right, #000 0%, #000 67%, transparent 100%) !important;
  mask-image:
    linear-gradient(to right, #000 0%, #000 67%, transparent 100%) !important;
  pointer-events: none !important;
}

.rog-dashboard-hero::after {
  content: "" !important;
  position: absolute !important;
  z-index: -2 !important;
  inset: 0 0 0 auto !important;
  width: 47% !important;
  height: 100% !important;
  display: block !important;
  opacity: 1 !important;
  background:
    url("../images/rog-hero-network.png") right center / cover no-repeat !important;
  -webkit-mask-image:
    linear-gradient(to left, #000 0%, #000 67%, transparent 100%) !important;
  mask-image:
    linear-gradient(to left, #000 0%, #000 67%, transparent 100%) !important;
  pointer-events: none !important;
}

.rog-dashboard-hero h1,
.rog-dashboard-hero .rog-hero-quote,
.rog-dashboard-hero small,
.rog-dashboard-hero .rog-hero-greeting,
.rog-dashboard-hero .rog-hero-emblem {
  position: relative !important;
  z-index: 2 !important;
}

.rog-dashboard-hero h1 {
  text-shadow: 0 3px 14px rgba(0, 20, 65, 0.68) !important;
}

.rog-dashboard-hero .rog-hero-quote,
.rog-dashboard-hero .rog-hero-greeting {
  text-shadow: 0 2px 10px rgba(0, 18, 58, 0.72) !important;
}

/* CARTA REGALO COME FASCIA ORIZZONTALE */

.rog-gift-strip {
  min-height: 116px !important;
  padding: 13px 22px !important;
  display: grid !important;
  grid-template-columns: 380px minmax(0, 1fr) 230px !important;
  align-items: center !important;
  gap: 28px !important;
}

.rog-gift-art {
  width: 100% !important;
  height: 88px !important;
  display: block !important;
  overflow: hidden !important;
  background:
    url("../images/rog-gift-infinity.png") center / cover no-repeat !important;
  border-radius: 14px !important;
  box-shadow: inset 0 0 24px rgba(0, 21, 65, 0.25) !important;
}

.rog-infinity-symbol,
.rog-people {
  display: none !important;
}

.rog-gift-copy h2 {
  margin: 0 0 7px !important;
  color: #54d8ff !important;
  font-size: 1.18rem !important;
}

.rog-gift-copy p {
  margin: 0 !important;
  color: #dbeeff !important;
  font-size: 0.82rem !important;
  line-height: 1.5 !important;
}

.rog-gift-button {
  justify-self: end !important;
  min-width: 205px !important;
  padding: 14px 23px !important;
  white-space: nowrap !important;
}

/* ASSISTANT COME BARRA COMPATTA */

.rog-assistant-strip {
  min-height: 92px !important;
  padding: 13px 24px !important;
  display: grid !important;
  grid-template-columns: 285px minmax(0, 1fr) 205px !important;
  align-items: center !important;
  gap: 26px !important;
}

.rog-assistant-identity {
  display: flex !important;
  align-items: center !important;
  gap: 15px !important;
}

.rog-assistant-avatar {
  width: 72px !important;
  height: 72px !important;
  flex: 0 0 72px !important;
  display: block !important;
  background:
    url("../images/rog-assistant-robot.png") center / contain no-repeat !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-size: 0 !important;
}

.rog-assistant-copy {
  padding-left: 28px !important;
  border-left: 1px solid rgba(86, 198, 246, 0.28) !important;
}

.rog-assistant-copy p {
  margin: 0 0 6px !important;
  font-size: 0.83rem !important;
}

.rog-assistant-copy small {
  font-size: 0.75rem !important;
}

.rog-open-chat {
  justify-self: end !important;
  min-width: 180px !important;
  white-space: nowrap !important;
}

/* SOLO MOBILE: IMPILAMENTO */

@media (max-width: 700px) {
  .rog-dashboard-hero::before,
  .rog-dashboard-hero::after {
    width: 70% !important;
    opacity: 0.62 !important;
  }

  .rog-gift-strip,
  .rog-assistant-strip {
    grid-template-columns: 1fr !important;
  }

  .rog-gift-button,
  .rog-open-chat {
    justify-self: start !important;
  }

  .rog-assistant-copy {
    padding-left: 0 !important;
    border-left: 0 !important;
  }
}
