/* ============================================================
   🍔 HAMBURGER MENU + SLIDE PANEL + PROFILE/MOZ MODALS
   ============================================================ */

/* Hamburger button (mobile only) */
.gp-hamburger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(162, 0, 255, 0.15);
  border: 2px solid rgba(162, 0, 255, 0.4);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  flex-shrink: 0;
}

.gp-hamburger span {
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.gp-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.gp-hamburger.open span:nth-child(2) { opacity: 0; }
.gp-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Desktop Moz pill (mirrors .navbar-coins) */
.navbar-moz {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(162, 0, 255, 0.15);
  padding: 12px 18px;
  border-radius: 25px;
  border: 2px solid rgba(162, 0, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.navbar-moz:hover {
  background: rgba(162, 0, 255, 0.25);
  transform: scale(1.05);
}

.navbar-moz .moz-icon { font-size: 18px; }
.navbar-moz .moz-amount { font-weight: 700; font-size: 13px; color: #fff; }

/* Overlay + slide-in panel (mobile nav) */
.gp-panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 0, 6, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 998;
}

.gp-panel-overlay.active { opacity: 1; pointer-events: auto; }

.gp-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(340px, 86vw);
  background: linear-gradient(160deg, rgba(15, 0, 32, 0.98), rgba(5, 0, 10, 0.98));
  border-left: 2px solid var(--primary);
  box-shadow: -10px 0 50px rgba(0, 0, 0, 0.6);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.4,0,.2,1);
  z-index: 999;
  padding: 22px 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gp-panel.active { transform: translateX(0); }

.gp-panel-close {
  align-self: flex-end;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
}

.gp-panel-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(162, 0, 255, 0.12);
  border: 2px solid rgba(162, 0, 255, 0.35);
  cursor: pointer;
  transition: all 0.3s ease;
}

.gp-panel-profile:hover {
  background: rgba(162, 0, 255, 0.22);
  transform: translateY(-2px);
}

.gp-panel-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
  overflow: hidden;
}

.gp-panel-avatar img { width: 100%; height: 100%; object-fit: cover; }

.gp-panel-name { font-weight: 800; font-size: 15px; text-transform: uppercase; letter-spacing: 1px; }
.gp-panel-tier { font-size: 11px; color: #00ff88; font-weight: 700; text-transform: uppercase; margin-top: 3px; }
.gp-panel-bio-preview { font-size: 11px; color: #a9a0b8; margin-top: 4px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gp-panel-chevron { margin-left: auto; opacity: 0.5; font-size: 20px; }

.gp-panel-section {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.3s ease;
}

.gp-panel-section:hover { border-color: var(--primary); background: rgba(162, 0, 255, 0.1); }
.gp-panel-section .moz-icon,
.gp-panel-section .coins-icon { font-size: 22px; }
.gp-panel-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: #a9a0b8; }
.gp-panel-value { font-weight: 800; font-size: 16px; }

.gp-panel-themes .gp-panel-label { margin-bottom: 10px; display: block; }
.gp-theme-grid { display: flex; flex-direction: column; gap: 8px; }
.gp-theme-grid .theme-option { width: 100%; }

.gp-panel-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.gp-panel-links a {
  color: #fff;
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  font-weight: 600;
  font-size: 13px;
  transition: all 0.3s ease;
}

.gp-panel-links a:hover { background: var(--primary); }

/* Shared modal shell (profile + moz counter) */
.gp-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 0, 6, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1001;
  padding: 20px;
}

.gp-modal-overlay.active { opacity: 1; pointer-events: auto; }

.gp-modal {
  width: min(380px, 100%);
  background: linear-gradient(160deg, rgba(20, 0, 35, 0.98), rgba(8, 0, 15, 0.98));
  border: 2px solid var(--primary);
  border-radius: 22px;
  padding: 28px 24px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.gp-modal-overlay.active .gp-modal { transform: scale(1); }

.gp-modal h3 {
  margin-bottom: 18px;
  font-size: 18px;
  letter-spacing: 1px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gp-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
}

.gp-avatar-picker { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }

.gp-avatar-picker button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gp-avatar-picker button.active { border-color: var(--primary); background: rgba(162, 0, 255, 0.25); }

.gp-modal label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: #a9a0b8; margin-bottom: 6px; }

.gp-modal textarea {
  width: 100%;
  min-height: 80px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-family: inherit;
  resize: vertical;
  outline: none;
}

.gp-modal textarea:focus { border-color: var(--primary); }

.gp-save-btn {
  margin-top: 16px;
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-weight: 800;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gp-save-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px var(--glow); }

.gp-refresh-cache-btn {
  margin-top: 10px;
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gp-refresh-cache-btn:hover:not(:disabled) {
  border-color: var(--primary);
  background: rgba(162, 0, 255, 0.15);
  transform: translateY(-2px);
}

.gp-refresh-cache-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

/* Moz Counter modal */
.moz-display {
  font-size: 52px;
  font-weight: 900;
  text-align: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 8px 0 20px;
  transition: transform 0.15s ease;
}

.moz-display.pop { transform: scale(1.18); }

.moz-controls { display: flex; gap: 10px; }

.moz-controls button {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.moz-controls button:hover { transform: translateY(-2px); box-shadow: 0 8px 24px var(--glow); }

.moz-custom { display: flex; gap: 8px; margin-top: 14px; }

.moz-custom input {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  outline: none;
}

.moz-custom input:focus { border-color: var(--primary); }

.moz-custom button {
  padding: 12px 18px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.moz-custom button:hover { background: var(--primary); }

.moz-reset {
  margin-top: 12px;
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 80, 80, 0.12);
  border: 2px solid rgba(255, 80, 80, 0.3);
  color: #ff8080;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.moz-reset:hover { background: rgba(255, 80, 80, 0.22); }

/* ------------------------------------------------------------ */
/* Responsive: collapse profile/coins/moz into the hamburger    */
/* ------------------------------------------------------------ */
@media (max-width: 768px) {
  .gp-hamburger { display: flex; }
  .navbar-profile,
  .navbar-coins,
  .navbar-moz { display: none; }
}
