/* GMZ Hub panel — sopra sidebar */
.gmz-overlay {
  position: fixed; inset: 0; z-index: 200000 !important;
  background: rgba(0,0,0,.72); backdrop-filter: blur(6px);
  display: flex; align-items: flex-end; justify-content: center;
}
body.gt7p-modal-open #sidebar,
body.gt7p-modal-open .sidebar-shell,
body.gt7p-modal-open #sidebarHandle {
  z-index: 1 !important;
  pointer-events: none !important;
  opacity: 0.3;
}
@media (min-width: 720px) {
  .gmz-overlay { align-items: center; padding: 24px; }
}
.gmz-panel {
  width: min(560px, 100%);
  max-height: min(92vh, 820px);
  background: linear-gradient(165deg, #12151c 0%, #0a0c10 100%);
  border: 1px solid rgba(0,183,255,.25);
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -8px 40px rgba(0,0,0,.5);
  display: flex; flex-direction: column; overflow: hidden;
}
@media (min-width: 720px) { .gmz-panel { border-radius: 18px; } }
.gmz-panel-head {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 12px 8px; border-bottom: 1px solid rgba(255,255,255,.06);
}
.gmz-tabs { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.gmz-tab {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  color: #c8d0dc; border-radius: 999px; padding: 6px 10px; font-size: 11px; cursor: pointer;
}
.gmz-tab.is-active {
  background: rgba(0,183,255,.18); border-color: rgba(0,183,255,.45); color: #fff;
}
.gmz-close { background: transparent; border: 0; color: #889; font-size: 18px; cursor: pointer; padding: 6px 10px; }
.gmz-panel-body { overflow: auto; padding: 14px 16px 28px; -webkit-overflow-scrolling: touch; }
.gmz-loading, .gmz-empty { color: #8a93a3; text-align: center; padding: 24px 8px; }

.gmz-pyr-head { text-align: center; margin-bottom: 10px; }
.gmz-pyr-score { font-size: 36px; font-weight: 800; color: #fff; }
.gmz-pyr-score small { font-size: 14px; color: #6a7384; font-weight: 500; }
.gmz-pyr-lega {
  display: inline-block; margin-top: 4px; padding: 4px 14px; border-radius: 999px;
  background: linear-gradient(135deg, #00b7ff, #6a5cff); color: #fff; font-weight: 700; font-size: 14px;
}
.gmz-pyr-sub { color: #8a93a3; font-size: 12px; margin-top: 6px; }
.gmz-pyr-progress { height: 8px; border-radius: 99px; background: rgba(255,255,255,.06); overflow: hidden; margin: 10px 0 6px; }
.gmz-pyr-progress > div { height: 100%; background: linear-gradient(90deg, #00b7ff, #7CFF6B); border-radius: 99px; }
.gmz-pyr-next { text-align: center; font-size: 12px; color: #aab; margin-bottom: 12px; }
.gmz-pyr-list { display: flex; flex-direction: column; gap: 4px; }
.gmz-pyr-row {
  display: grid; grid-template-columns: 48px 1fr 40px; gap: 8px; align-items: center;
  opacity: .45; font-size: 11px;
}
.gmz-pyr-row.is-reached { opacity: .85; }
.gmz-pyr-row.is-here {
  opacity: 1; background: rgba(0,183,255,.12); border-radius: 8px; padding: 4px 6px;
  box-shadow: 0 0 0 1px rgba(0,183,255,.35);
}
.gmz-pyr-label { font-weight: 700; color: #e8eef8; }
.gmz-pyr-thr { text-align: right; color: #6a7384; }
.gmz-pyr-bar { height: 6px; background: rgba(255,255,255,.06); border-radius: 99px; overflow: hidden; }
.gmz-pyr-fill { height: 100%; background: #00b7ff; border-radius: 99px; }

.gmz-obj-stats { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: #9aa; margin-bottom: 12px; }
.gmz-obj-stats b { color: #fff; }
.gmz-near-tag { color: #ffb347; }
.gmz-sec-title { margin: 16px 0 8px; font-size: 13px; color: #c8d0dc; }
.gmz-obj {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 10px; border-radius: 12px; background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.05); margin-bottom: 6px;
}
.gmz-obj.is-done { opacity: .7; border-color: rgba(124,255,107,.2); }
.gmz-obj.is-near { border-color: rgba(255,179,71,.35); background: rgba(255,179,71,.06); }
.gmz-obj-main { display: flex; gap: 10px; flex: 1; }
.gmz-obj-title { font-weight: 600; color: #eef; font-size: 13px; }
.gmz-obj-desc { font-size: 11px; color: #889; margin-top: 2px; }
.gmz-obj-side { text-align: right; min-width: 72px; }
.gmz-obj-coin { font-size: 12px; color: #ffd200; font-weight: 700; }
.gmz-obj-prog { height: 4px; background: rgba(255,255,255,.08); border-radius: 99px; margin-top: 6px; overflow: hidden; }
.gmz-obj-prog > div { height: 100%; background: #ffb347; }
.gmz-obj-cnt { font-size: 10px; color: #889; }

.gmz-legend h4 { margin: 12px 0 8px; font-size: 13px; color: #c8d0dc; }
.gmz-legend-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.gmz-legend-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gmz-leg-h { font-size: 11px; color: #00b7ff; margin-bottom: 6px; font-weight: 700; }
.gmz-leg-item {
  display: flex; justify-content: space-between; font-size: 12px;
  padding: 6px 8px; background: rgba(255,255,255,.03); border-radius: 8px; color: #aab;
}
.gmz-leg-item b { color: #fff; }

.gmz-wal-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.gmz-wal-kpis > div {
  text-align: center; padding: 12px 8px; border-radius: 12px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06);
}
.gmz-wal-kpis span { display: block; font-size: 11px; color: #889; }
.gmz-wal-kpis b { font-size: 20px; color: #fff; }
.gmz-wal-kpis .is-saldo { border-color: rgba(255,210,0,.35); background: rgba(255,210,0,.08); }
.gmz-wal-kpis .is-saldo b { color: #ffd200; }
.gmz-mov { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.05); font-size: 12px; }
.gmz-mov.is-earn b { color: #7CFF6B; }
.gmz-mov.is-spend b { color: #ff6b7a; }
.gmz-mov-meta { font-size: 10px; color: #667; margin-top: 2px; }
.gmz-unlock-soon {
  margin-top: 16px; padding: 12px; border-radius: 12px;
  border: 1px dashed rgba(255,255,255,.12); background: rgba(255,255,255,.02); text-align: center;
}

.gmz-shop-grid { display: grid; gap: 10px; }
.gmz-shop-item {
  display: flex; justify-content: space-between; gap: 10px; align-items: center;
  padding: 12px; border-radius: 12px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06);
}
.gmz-shop-item.is-owned { border-color: rgba(124,255,107,.25); }
.gmz-shop-item.is-equipped { border-color: rgba(0,183,255,.45); background: rgba(0,183,255,.08); }
.gmz-shop-name { font-weight: 700; color: #eef; font-size: 13px; }
.gmz-shop-desc { font-size: 11px; color: #889; margin-top: 2px; }
.gmz-shop-meta { font-size: 10px; color: #667; margin-top: 4px; text-transform: uppercase; }
.gmz-shop-cost { display: block; color: #ffd200; font-weight: 700; margin-bottom: 6px; font-size: 13px; }
.gmz-shop-btn {
  background: rgba(0,183,255,.2); border: 1px solid rgba(0,183,255,.45);
  color: #fff; border-radius: 8px; padding: 6px 12px; font-size: 12px; cursor: pointer;
}
.gmz-shop-btn:disabled { opacity: .4; cursor: not-allowed; }
.gmz-shop-btn.is-equip { background: rgba(124,255,107,.15); border-color: rgba(124,255,107,.4); }
.gmz-shop-sec { margin: 16px 0 8px; font-size: 13px; color: #00b7ff; font-weight: 700; }

/* Ranking badges (backend HTML) */
.gmz-rank-badge {
  display: inline-flex; flex-direction: column; gap: 2px;
  font-size: 10px; line-height: 1.2; white-space: nowrap;
  padding: 3px 6px; border-radius: 8px;
  background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.08);
}
.gmz-rank-lv { color: #7ec8ff; }
.gmz-rank-coin { color: #ffd200; }
.gmz-av-wrap { display: inline-flex; border-radius: 50%; padding: 2px; }
.gmz-frame--chrome { background: linear-gradient(135deg, #ddd, #888, #eee, #666); padding: 3px; }
.gmz-frame--pulse { background: linear-gradient(135deg, #00b7ff, #6a5cff); padding: 3px; animation: gmzPulse 2s ease-in-out infinite; }
.gmz-frame--legend { background: linear-gradient(135deg, #ffd200, #ff6a00, #c00000, #ffd200); padding: 3px; }
@keyframes gmzPulse {
  0%, 100% { box-shadow: 0 0 4px rgba(0,183,255,.4); }
  50% { box-shadow: 0 0 14px rgba(106,92,255,.7); }
}
.gmz-rank-badge.gmz-skin--neon-blue, .gmz-skin--neon-blue { border-color: rgba(0,183,255,.55); box-shadow: 0 0 10px rgba(0,183,255,.25); }
.gmz-rank-badge.gmz-skin--gold, .gmz-skin--gold { border-color: rgba(255,210,0,.6); box-shadow: 0 0 12px rgba(255,210,0,.2); }
.gmz-rank-badge.gmz-skin--crimson, .gmz-skin--crimson { border-color: rgba(255,40,60,.55); }

.gmz-lobby-name--gold { color: #ffd200 !important; text-shadow: 0 0 8px rgba(255,210,0,.4); font-weight: 700; }
.gmz-lobby-name--cyan { color: #00e5ff !important; text-shadow: 0 0 8px rgba(0,229,255,.35); font-weight: 700; }
.gmz-lobby-name--rainbow {
  background: linear-gradient(90deg, #ff5c5c, #ffd200, #7CFF6B, #00b7ff, #c56bff);
  -webkit-background-clip: text; background-clip: text; color: transparent !important; font-weight: 800;
}
.gmz-profile--gt7 {
  border: 1px solid rgba(0,183,255,.4) !important;
  box-shadow: 0 0 24px rgba(0,183,255,.15);
}
.gmz-profile--carbon { border: 1px solid rgba(255,255,255,.12) !important; }
.gmz-profile--night { border: 1px solid rgba(120,80,255,.35) !important; }

/* Profile view-bar extra buttons */
.view-btn.gmz-btn-extra {
  background: rgba(255,210,0,.1) !important;
  border-color: rgba(255,210,0,.35) !important;
  color: #ffd200 !important;
}
.gt7p-hero-coins {
  cursor: pointer;
}
.gt7p-hero-coins:hover { filter: brightness(1.15); }

/* Shop preview */
.gmz-shop-item { align-items: stretch; }
.gmz-prev {
  width: 52px; min-width: 52px; height: 52px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
  font-size: 11px; color: #aab; overflow: hidden;
}
.gmz-prev-av img { width: 100%; height: 100%; object-fit: cover; }
.gmz-prev-frame { border-radius: 50%; }
.gmz-prev-frame span { font-size: 20px; }
.gmz-prev-skin span { font-weight: 800; letter-spacing: .5px; font-size: 10px; }
.gmz-prev-name { font-weight: 800; font-size: 12px; }
.gmz-prev-theme { font-size: 10px; font-weight: 700; }
.gmz-prev-view { text-align: center; line-height: 1.2; font-size: 10px; }
.gmz-prev-view b { font-size: 9px; color: #fff; }

.gmz-login-gate {
  margin-bottom: 14px; padding: 12px; border-radius: 12px;
  border: 1px solid rgba(255,180,0,.35); background: rgba(255,180,0,.08);
  text-align: center; font-size: 13px; color: #e8d9a8;
}

/* Personalizza: selettore viste */
.gt7p-view-select {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px;
}
.gt7p-view-opt {
  display: flex; flex-direction: column; gap: 4px; align-items: flex-start;
  padding: 10px 12px; border-radius: 12px; cursor: pointer;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  color: #e8eef8; text-align: left;
}
.gt7p-view-opt.on {
  border-color: rgba(0,183,255,.5); background: rgba(0,183,255,.12);
}
.gt7p-view-opt.is-locked { opacity: .75; }
.gt7p-view-lab { font-weight: 700; font-size: 13px; }
.gt7p-view-badge { font-size: 11px; color: #ffd200; }
.gt7p-view-opt.on .gt7p-view-badge { color: #7ec8ff; }
.gt7p-view-select.is-locked { pointer-events: none; opacity: .6; }

.gmz-obj-xp {
  display: inline-block;
  margin-left: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #7ec8ff;
  background: rgba(0,183,255,0.12);
  padding: 2px 6px;
  border-radius: 8px;
}
.gmz-obj-side {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  justify-content: flex-end;
}
