* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: #050505;
  color: white;
  overflow-x: hidden;
}

/* BACKGROUND */
.bg-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -1;
}

.glow1 {
  background: var(--primary);
  top: -200px;
  left: -200px;
  opacity: .2;
}

.glow2 {
  background: var(--primary);
  bottom: -200px;
  right: -200px;
  opacity: .18;
}

/* HERO */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* VIDEO */
.hero-video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.35) saturate(1.15) blur(8px);
  transform: scale(1.08);
}

/* OVERLAY */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #050505 5%, transparent 40%);
}

/* CONTENT */
.hero-content {
  position: relative;
  z-index: 5;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* PROFILE */
.profile-image {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,.12);
  box-shadow: 0 0 40px rgba(168,85,247,.35);
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* TEXT */
.hero-content h1 {
  font-size: 72px;
  margin-top: 24px;
  font-weight: 700;
  background: linear-gradient(to right, white, var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  margin-top: 14px;
  color: #d4d4d4;
  font-size: 18px;
  letter-spacing: .5px;
}

/* BUTTON */
.follow-btn {
  margin-top: 28px;
  padding: 14px 34px;
  border-radius: 18px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(16px);
  color: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: .35s ease;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 0 30px rgba(168,85,247,.15);
}

.follow-btn:hover {
  transform: translateY(-4px);
  background: var(--secondary);
}

/* Scroll Mode entry button — lives in the hero, between the chat button
   and the coins bar. Gets a much more intense pulse + a bouncing "EVENT
   LIVE" badge when the creator has an active event, so it's obvious
   there's something special waiting before you even tap it. */
.gp-scroll-hero-btn {
  margin-top: 14px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .5px;
  color: #fff;
  background: linear-gradient(135deg, #a200ff, #ff00c8, #a200ff);
  background-size: 200% 200%;
  animation: gp-hero-btn-shimmer 4s ease infinite;
  box-shadow: 0 0 25px rgba(162,0,255,.45);
  transition: transform .3s ease, box-shadow .3s ease;
}

.gp-scroll-hero-btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 0 40px rgba(255,0,200,.6);
}

.gp-scroll-hero-icon {
  font-size: 20px;
  display: inline-block;
  animation: gp-hero-icon-spin 3s linear infinite;
}

.gp-scroll-hero-event-badge {
  display: none;
  position: absolute;
  top: -14px;
  right: -10px;
  background: #ff2b6d;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 20px;
  box-shadow: 0 0 12px rgba(255,43,109,.8);
  animation: gp-badge-bounce 1.2s ease-in-out infinite;
  white-space: nowrap;
}

.gp-scroll-hero-btn.has-event {
  animation: gp-hero-btn-shimmer 1.6s ease infinite, gp-hero-btn-pulse 1.4s ease-in-out infinite;
}

.gp-scroll-hero-btn.has-event .gp-scroll-hero-event-badge {
  display: inline-block;
}

@keyframes gp-hero-icon-spin { to { transform: rotate(360deg); } }
@keyframes gp-hero-btn-shimmer { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes gp-badge-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes gp-hero-btn-pulse {
  0%, 100% { box-shadow: 0 0 25px rgba(162,0,255,.5); }
  50% { box-shadow: 0 0 55px rgba(255,43,109,.85); }
}

/* CONTENT */
.content {
  width: 92%;
  max-width: 1500px;
  margin: auto;
  padding-top: 60px;
  padding-bottom: 80px;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 26px;
}

/* FEATURED */
.featured-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.featured-video {
  position: relative;
  width: 100%;
  max-width: 900px;
  height: 520px;
  overflow: hidden;
  border-radius: 38px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(20px);
  box-shadow: 0 0 60px rgba(168,85,247,.18);
  transition: .45s ease;
}

.featured-video:hover {
  transform: translateY(-6px);
}

.featured-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.88) saturate(1.1);
  transition: .5s ease;
}

.featured-video:hover video {
  transform: scale(1.03);
}

/* TABS */
.tabs {
  display: flex;
  gap: 14px;
  margin-top: 60px;
  margin-bottom: 30px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px; /* keeps rounded corners from clipping on scroll */
}

.tabs::-webkit-scrollbar { display: none; }

.tab {
  padding: 14px 28px;
  border: none;
  border-radius: 18px;
  background: rgba(255,255,255,.05);
  color: white;
  cursor: pointer;
  transition: .35s;
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.06);
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .tabs {
    gap: 10px;
    margin-top: 40px;
  }
  .tab {
    padding: 11px 18px;
    font-size: 14px;
  }
}

.tab.active,
.tab:hover {
  background: var(--primary);
  box-shadow: 0 0 30px rgba(168,85,247,.35);
}

/* VIDEO GALLERY */
.video-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 20px;
}

@media(max-width:1200px){ .video-gallery { grid-template-columns: repeat(3, 1fr); } }
@media(max-width:1000px){ .video-gallery { grid-template-columns: repeat(2, 1fr); } }
@media(max-width:700px){
  .hero-content h1 { font-size: 52px; }
  .video-gallery { grid-template-columns: 1fr; }
}

/* VIDEO CARD */
.video-card {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 34px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(18px);
  box-shadow: 0 0 30px rgba(168,85,247,.12);
  transition: .45s ease;
}

.video-card video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 40px rgba(168,85,247,.25);
}

.video-card:hover video {
  transform: scale(1.08);
}

/* =========================
   MEDIA CONTROLS & PLAYER
========================= */

.video-wrapper {
  position: relative !important;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 34px;
  overflow: hidden;
}

/* iOS-ONLY FIX: on iPhone/iPad Safari, "height: 100%" above is ambiguous
   because .video-gallery is a CSS grid with auto row height - WebKit can
   render the card at 0 height until a click forces a reflow, which is
   why media looked "empty" until tapped. Giving it a real aspect-ratio
   instead of a percentage height fixes it. Scoped to body.gp-ios (added
   by creator.js/creator2.js only for iOS), so Android/desktop are
   completely unaffected and keep the original height:100% behavior. */
body.gp-ios .video-wrapper {
  height: auto;
  aspect-ratio: 9 / 16;
}

.video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-cover {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: linear-gradient(100deg, #14081f 30%, #1f0f30 50%, #14081f 70%);
  background-size: 300% 100%;
  animation: gp-cover-shimmer 1.8s ease-in-out infinite;
  transition: opacity .25s ease;
}

.video-cover.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.video-cover-play {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.5);
  border: 2px solid rgba(255,255,255,.7);
  color: #fff;
  font-size: 22px;
  padding-left: 4px; /* optically center the ▶ glyph */
  backdrop-filter: blur(6px);
}

@keyframes gp-cover-shimmer {
  0% { background-position: 0% 0; }
  100% { background-position: -300% 0; }
}

video::-webkit-media-controls { display: none !important; }
video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }

.controls {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 14px;
  box-sizing: border-box;
  background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,.2), transparent);
  z-index: 10;
  opacity: 0;
  transition: opacity .2s ease;
  display: flex;
  flex-direction: column;
}

.video-wrapper.show-controls .controls {
  opacity: 1;
}

.progress-area {
  width: 100%;
  height: 5px;
  background: rgba(255,255,255,.2);
  border-radius: 999px;
  overflow: hidden;
  cursor: pointer;
  margin-bottom: 12px;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #ff00ff, #8f00ff);
  border-radius: 999px;
  transition: width .1s linear;
  box-shadow: 0 0 12px var(--secondary);
}

.bottom-controls {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100%;
  gap: 10px;
}

.right-controls {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.play, .fs, .download {
  width: 36px !important;
  height: 36px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(255, 255, 255, 0.2) !important;
  border: none !important;
  border-radius: 8px !important;
  color: white !important;
  font-size: 16px !important;
  cursor: pointer !important;
  backdrop-filter: blur(4px);
  transition: background 0.2s ease, transform 0.1s ease !important;
  padding: 0 !important;
  margin: 0 !important;
  text-decoration: none;
}

.play:hover, .fs:hover, .download:hover {
  background: rgba(176, 38, 255, 0.8) !important;
  transform: scale(1.05) !important;
  box-shadow: 0 0 15px rgba(147,51,234,.4);
}

.volume-box {
  display: flex !important;
  align-items: center !important;
  background: rgba(255, 255, 255, 0.2);
  padding: 0 10px !important;
  border-radius: 8px;
  height: 36px !important;
  backdrop-filter: blur(4px);
  gap: 8px;
}

.volume-icon {
  font-size: 16px;
  color: white;
}

.volume {
  -webkit-appearance: none;
  appearance: none;
  width: 65px !important;
  height: 4px !important;
  background: rgba(255, 255, 255, 0.3) !important;
  border-radius: 5px;
  outline: none;
  margin: 0 !important;
  cursor: pointer;
  transition: 0.2s ease;
}

.volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--secondary);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(176, 38, 255, 0.9);
  transition: transform 0.2s ease, background 0.2s ease;
}

.volume::-webkit-slider-thumb:hover {
  transform: scale(1.4);
  background: var(--tertiary);
}

.volume::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--secondary);
  cursor: pointer;
  border: none;
  box-shadow: 0 0 10px rgba(176, 38, 255, 0.9);
  transition: transform 0.2s ease, background 0.2s ease;
}

.volume::-moz-range-thumb:hover {
  transform: scale(1.4);
  background: var(--tertiary);
}

.delete-btn {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  width: 32px !important;
  height: 32px !important;
  background-color: rgba(20, 20, 20, 0.6) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  border-radius: 50% !important;
  font-size: 14px !important;
  cursor: pointer !important;
  z-index: 99 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  transition: all 0.2s ease !important;
  backdrop-filter: blur(8px) !important;
}

.delete-btn:hover {
  background-color: rgba(239, 68, 68, 0.9) !important;
  transform: scale(1.1) !important;
  border-color: transparent !important;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
}

.video-wrapper:fullscreen {
  border-radius: 0 !important;
  width: 100vw;
  height: 100vh;
  background: black;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-wrapper:fullscreen .video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* =========================
   ADMIN PANEL
========================= */
.admin-btn {
  position: fixed;
  top: 90px;
  left: 20px;
  padding: 12px 18px;
  border-radius: 14px;
  border: none;
  background: rgba(255,255,255,.08);
  color: white;
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.12);
  cursor: pointer;
  z-index: 9999;
  transition: .3s ease;
}

.admin-btn:hover {
  background: var(--secondary);
  transform: translateY(-2px);
}

.admin-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.hidden { display: none; }

.admin-box {
  width: 340px;
  padding: 25px;
  border-radius: 18px;
  background: rgba(20, 0, 40, 0.7);
  border: 1px solid rgba(180, 0, 255, 0.35);
  box-shadow: 0 0 35px rgba(160, 0, 255, 0.35);
  backdrop-filter: blur(20px);
  color: white;
  text-align: center;
  animation: pop 0.2s ease;
}

@keyframes pop {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.admin-box h2 {
  margin-bottom: 15px;
  color: var(--secondary);
}

.admin-box input {
  width: 100%;
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 12px;
  border: 1px solid rgba(160,0,255,0.4);
  background: rgba(0,0,0,0.4);
  color: white;
  outline: none;
}

.admin-box button {
  width: 100%;
  padding: 10px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #7b2cbf, var(--secondary));
  color: white;
  margin-top: 5px;
  transition: 0.2s;
}

.admin-box button:hover {
  transform: scale(1.05);
}

.close-modal {
  background: transparent !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
  margin-top: 10px;
}

.error-msg {
  color: #ff4d6d;
  font-size: 13px;
  margin-top: 5px;
}

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  50% { transform: translateX(6px); }
  75% { transform: translateX(-6px); }
  100% { transform: translateX(0); }
}

.shake { animation: shake 0.25s ease; }
.success { box-shadow: 0 0 25px #00ffb3; border-color: #00ffb3; }

/* =========================
   UPLOAD PANEL (FIXED & BEAUTIFIED)
========================= */
.upload-panel {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(15px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.upload-panel:not(.hidden) {
  opacity: 1;
  pointer-events: auto;
}

.panel-box {
  background: linear-gradient(145deg, #151520, #0a0a10);
  border: 1px solid rgba(147, 51, 234, 0.4);
  box-shadow: 0 15px 40px rgba(0,0,0,0.9), 0 0 30px rgba(147, 51, 234, 0.2);
  padding: 35px 30px;
  border-radius: 20px;
  width: 90%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.upload-panel:not(.hidden) .panel-box {
  transform: scale(1);
}

.panel-box h3 { margin: 0; color: #e9d5ff; font-size: 1.4rem; font-weight: 600; }

.close-panel {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  color: #6b7280;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.close-panel:hover { color: #ef4444; transform: rotate(90deg); }

.hidden-file-input, .hidden-input { display: none !important; }

.file-input-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 15px;
}

.panel-box input[type="text"] {
  width: 100%;
  padding: 12px 15px;
  border-radius: 10px;
  border: 1px solid rgba(147, 51, 234, 0.3);
  background: rgba(0,0,0,0.3);
  color: white;
  font-size: 14px;
  outline: none;
  transition: border 0.3s;
}

.panel-box input[type="text"]:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.2);
}

.custom-file-label {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  background: rgba(147, 51, 234, 0.1);
  color: var(--secondary);
  padding: 15px 0;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  border: 2px dashed rgba(147, 51, 234, 0.5);
  box-sizing: border-box;
}

.custom-file-label:hover {
  background: rgba(147, 51, 234, 0.2);
  border-color: var(--secondary);
  transform: translateY(-2px);
}

.progress-container {
  width: 100%;
  background-color: #1f2937;
  border-radius: 999px;
  overflow: hidden;
  height: 8px;
  margin-top: 5px;
}

.purple-btn {
  background: linear-gradient(135deg, var(--primary), #7e22ce);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s;
  width: 100%;
  font-size: 15px;
  box-shadow: 0 4px 15px rgba(147, 51, 234, 0.3);
}

.purple-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(147, 51, 234, 0.5);
}

/* =========================
   DELETE CONFIRMATION MODAL (NEW & BEAUTIFUL)
========================= */
.delete-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.delete-box {
  background: rgba(20, 5, 10, 0.9);
  border: 1px solid rgba(239, 68, 68, 0.4);
  box-shadow: 0 0 40px rgba(239, 68, 68, 0.15);
  padding: 30px;
  border-radius: 20px;
  width: 90%;
  max-width: 350px;
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.delete-modal.active .delete-box {
  transform: scale(1);
}

.delete-box h3 {
  color: #fca5a5;
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.delete-box p {
  color: #9ca3af;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.delete-box input {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid rgba(239, 68, 68, 0.3);
  background: rgba(0,0,0,0.5);
  color: white;
  outline: none;
  text-align: center;
  font-family: monospace;
  letter-spacing: 2px;
}

.delete-box input:focus {
  border-color: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}

.del-confirm-btn {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 10px;
  width: 100%;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.del-confirm-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
}

.del-cancel-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  color: #9ca3af;
  padding: 10px;
  margin-top: 10px;
  width: 100%;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
}

.del-cancel-btn:hover {
  background: rgba(255,255,255,0.05);
  color: white;
}

/* PAGE TRANSITION */
.page-transition {
  position: fixed;
  inset: 0;
  background: #05010a;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: .4s;
}

.page-transition.active {
  opacity: 1;
  pointer-events: auto;
}

.page-transition img {
  width: 120px;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 10px #ff00ff); }
  50% { transform: scale(1.08); filter: drop-shadow(0 0 25px #ff00ff); }
}
/* =========================================
   استایل‌های مودال (پنجره) حذف سفارشی
========================================= */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85); /* پس زمینه تاریک */
    backdrop-filter: blur(8px); /* تار کردن بک‌گراند */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 1;
    transition: opacity 0.3s ease, visibility 0.3s;
    direction: rtl; /* راست‌چین کردن متن‌ها */
}

.custom-modal-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.custom-modal-box {
    background: #1e1e1e;
    border: 2px solid #ff4444;
    border-radius: 16px;
    padding: 30px;
    width: 90%;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(255, 68, 68, 0.2);
    transform: translateY(0) scale(1);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.custom-modal-overlay.hidden .custom-modal-box {
    transform: translateY(20px) scale(0.9);
}

.custom-modal-box h3 {
    color: #ff4444;
    font-size: 1.6rem;
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: bold;
}

.custom-modal-box p {
    color: #cccccc;
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.custom-modal-input {
    width: 100%;
    padding: 12px;
    margin-bottom: 25px;
    background: #2a2a2a;
    border: 2px solid #444;
    border-radius: 8px;
    color: white;
    font-size: 1.1rem;
    text-align: center;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.custom-modal-input:focus {
    border-color: #ff4444;
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.3);
}

.custom-modal-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.custom-modal-buttons button {
    padding: 12px 25px;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-confirm {
    background-color: #ff4444;
    color: white;
    flex: 1;
}

.btn-confirm:hover {
    background-color: #ff1111;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 68, 68, 0.4);
}

.btn-cancel {
    background-color: #444;
    color: white;
    flex: 1;
}

.btn-cancel:hover {
    background-color: #666;
    transform: translateY(-2px);
}

/* =========================
   FRESH DROP ALERT MODAL (NEW)
========================= */
.drop-alert-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.drop-alert-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.drop-alert-box {
  background: linear-gradient(145deg, #11001c, #240046);
  border: 2px solid var(--primary);
  box-shadow: 0 0 50px rgba(147, 51, 234, 0.4), inset 0 0 20px rgba(147, 51, 234, 0.2);
  border-radius: 24px;
  padding: 40px;
  text-align: center;
  width: 90%;
  max-width: 420px;
  transform: scale(0.8) translateY(30px);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.drop-alert-modal.active .drop-alert-box {
  transform: scale(1) translateY(0);
}

.drop-alert-icon {
  font-size: 55px;
  margin-bottom: 10px;
  animation: drop-bounce 2s infinite;
  text-shadow: 0 0 20px rgba(168, 85, 247, 0.8);
}

.drop-alert-title {
  font-size: 30px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: linear-gradient(to right, var(--tertiary), var(--primary), var(--tertiary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 3s linear infinite;
  background-size: 200% auto;
}

.drop-alert-text {
  font-size: 18px;
  color: var(--tertiary);
  margin-bottom: 30px;
  line-height: 1.6;
}

.drop-alert-text b {
  color: #fff;
  font-size: 22px;
  text-shadow: 0 0 10px var(--secondary);
}

.drop-alert-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary));
  color: white;
  border: none;
  padding: 16px 36px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 14px;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 5px 20px rgba(147, 51, 234, 0.4);
  width: 100%;
}

.drop-alert-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(147, 51, 234, 0.7);
  background: linear-gradient(135deg, var(--secondary), var(--primary));
}

@keyframes drop-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes shine {
  to { background-position: 200% center; }
}
#sexy-loader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 10, 15, 0.8); /* یه پس‌زمینه تاریک */
    backdrop-filter: blur(25px); /* این جادوشه که همه‌چی رو تار می‌کنه */
    z-index: 99999; /* میاد روی همه چی */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, backdrop-filter 0.8s ease;
}
/* ==========================================
   Eyes On Me Popup
========================================== */
#eyes-on-me-alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    background: rgba(15, 5, 10, 0.9);
    border: 1px solid #ff0055;
    box-shadow: 0 0 20px rgba(255, 0, 85, 0.5);
    color: #fff;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 24px;
    font-weight: bold;
    z-index: 999999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}

#eyes-on-me-alert.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

#eyes-on-me-alert span {
    text-shadow: 0 0 10px #ff0055;
}

.buy-all-btn {
  background: linear-gradient(135deg, #ffd700, #ff8c00) !important;
  color: #000 !important;
  font-weight: 700 !important;
  border: none !important;
  margin-top: 12px;
}

.buy-all-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.creator-coins-bar {
  margin-top: 10px;
  font-size: 14px;
  color: #ffd700;
  font-weight: 600;
}

.profile-image.holding {
  box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.8);
  transform: scale(0.96);
  transition: 0.2s ease;
}

.like-btn {
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}

/* ===================== SCROLL MODE ===================== */

.gp-scroll-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: #000;
  display: flex;
  flex-direction: column;
}

.gp-scroll-topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(to bottom, rgba(0,0,0,.75), transparent);
}

.gp-scroll-close,
.gp-scroll-playlists-btn {
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 14px;
  cursor: pointer;
}

.gp-scroll-close { padding: 8px 12px; }

.gp-scroll-label {
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-shadow: 0 0 10px rgba(162,0,255,.7);
}

.gp-scroll-feed {
  flex: 1;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
}

.gp-scroll-feed::-webkit-scrollbar { display: none; }

.gp-scroll-slide {
  position: relative;
  width: 100%;
  height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0510;
}

.gp-scroll-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.gp-scroll-add {
  position: absolute;
  right: 16px;
  bottom: 40px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(162,0,255,.55);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
}

/* One shared volume control docked to the right edge, controlling
   whichever video is currently playing — not per-video, so the level you
   pick stays put as you scroll instead of resetting each time. */
.gp-scroll-volume {
  position: absolute;
  top: 90px;
  right: 16px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.gp-scroll-volume-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.gp-scroll-volume-slider {
  writing-mode: vertical-lr;
  direction: rtl;
  appearance: none;
  -webkit-appearance: none;
  width: 6px;
  height: 110px;
  background: rgba(255,255,255,.2);
  border-radius: 6px;
  outline: none;
  cursor: pointer;
  accent-color: #a200ff;
}

.gp-scroll-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px rgba(162,0,255,.8);
  cursor: pointer;
}

.gp-scroll-volume-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: none;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px rgba(162,0,255,.8);
  cursor: pointer;
}

.gp-scroll-countdown {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(4px);
}

.gp-scroll-countdown.is-visible { display: flex; }

.gp-scroll-countdown span {
  font-size: 120px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 40px rgba(162,0,255,.9);
  animation: gp-countdown-pop 0.7s ease;
}

@keyframes gp-countdown-pop {
  0% { transform: scale(0.4); opacity: 0; }
  40% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.gp-playlist-add-menu {
  position: fixed;
  z-index: 100010;
  background: #12081d;
  border: 1px solid rgba(162,0,255,.3);
  border-radius: 14px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 180px;
  box-shadow: 0 10px 40px rgba(0,0,0,.6);
}

.gp-playlist-add-menu button {
  background: transparent;
  border: none;
  color: #e0b3ff;
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
}

.gp-playlist-add-menu button:hover { background: rgba(162,0,255,.15); }

.gp-playlists-panel {
  position: fixed;
  top: 0; right: 0;
  width: min(340px, 100%);
  height: 100dvh;
  z-index: 100005;
  background: #0d0616;
  border-left: 1px solid rgba(162,0,255,.25);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 40px rgba(0,0,0,.5);
}

.gp-playlists-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 16px;
  color: #fff;
  font-weight: 700;
  border-bottom: 1px solid rgba(162,0,255,.2);
}

.gp-playlists-panel-close {
  background: rgba(255,255,255,.1);
  border: none;
  color: #fff;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
}

.gp-playlists-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}

.gp-playlist-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(162,0,255,.06);
  border: 1px solid rgba(162,0,255,.15);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
}

.gp-playlist-name { color: #fff; font-weight: 600; font-size: 14px; }
.gp-playlist-count { color: #8844cc; font-size: 12px; }
.gp-playlist-row-actions { display: flex; gap: 6px; }

.gp-playlist-row-actions button {
  background: rgba(255,255,255,.08);
  border: none;
  color: #fff;
  border-radius: 8px;
  width: 34px;
  height: 34px;
  cursor: pointer;
}

@media (max-width: 700px) {
  .gp-scroll-volume { top: 80px; right: 12px; gap: 8px; }
  .gp-scroll-volume-icon { width: 38px; height: 38px; font-size: 16px; }
  .gp-scroll-volume-slider { height: 90px; }
  .gp-scroll-add { bottom: 36px; right: 12px; width: 42px; height: 42px; font-size: 17px; }
  .gp-scroll-countdown span { font-size: 90px; }
}

/* ===================== EVENT INTRO CARD ===================== */

.gp-event-intro {
  position: fixed;
  inset: 0;
  z-index: 100020;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5,0,10,.85);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity .3s ease;
  padding: 20px;
}

.gp-event-intro.is-visible { opacity: 1; }

.gp-event-intro-card {
  width: 100%;
  max-width: 380px;
  background: linear-gradient(160deg, #180a26, #0a0512);
  border: 1px solid rgba(162,0,255,.35);
  border-radius: 24px;
  padding: 30px 26px;
  text-align: center;
  box-shadow: 0 0 60px rgba(162,0,255,.35);
  transform: translateY(16px) scale(.97);
  transition: transform .35s ease;
}

.gp-event-intro.is-visible .gp-event-intro-card {
  transform: translateY(0) scale(1);
}

.gp-event-intro-badge {
  display: inline-block;
  background: #ff2b6d;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .5px;
  padding: 6px 14px;
  border-radius: 20px;
  box-shadow: 0 0 16px rgba(255,43,109,.6);
  margin-bottom: 16px;
  animation: gp-badge-bounce 1.2s ease-in-out infinite;
}

.gp-event-intro-title {
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 6px;
  text-shadow: 0 0 20px rgba(162,0,255,.6);
}

.gp-event-intro-time {
  color: #b366ff;
  font-size: 13px;
  margin-bottom: 4px;
}

.gp-event-intro-count {
  color: #888;
  font-size: 12px;
  margin-bottom: 22px;
}

.gp-event-intro-modes-label {
  color: #b366ff;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.gp-event-intro-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 24px;
}

.gp-event-intro-modes button {
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.05);
  color: #ccc;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: .2s ease;
}

.gp-event-intro-modes button.active {
  background: linear-gradient(135deg, #a200ff, #ff00c8);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 16px rgba(162,0,255,.5);
}

.gp-event-intro-start {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #a200ff, #ff00c8);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(162,0,255,.5);
  margin-bottom: 10px;
}

.gp-event-intro-cancel {
  width: 100%;
  padding: 10px;
  border: none;
  background: transparent;
  color: #888;
  font-size: 13px;
  cursor: pointer;
}

/* ===================== RHYTHM EFFECT ===================== */

.gp-rhythm-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 170px;
  height: 40px;
  z-index: 4;
  pointer-events: none;
}

.gp-rhythm-bar::before {
  content: '';
  position: absolute;
  left: 6%;
  right: 6%;
  top: 50%;
  height: 2px;
  background: rgba(255,255,255,.2);
  transform: translateY(-50%);
}

.gp-rhythm-target {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 32px;
  height: 32px;
  border: 2px solid rgba(255,255,255,.55);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 14px var(--stage-c2, rgba(162,0,255,.55));
}

.gp-rhythm-circle {
  position: absolute;
  top: 50%;
  right: 6%;
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, var(--stage-c1, #ff6be0), var(--stage-c2, #a200ff));
  border-radius: 50%;
  transform: translate(0, -50%);
  box-shadow: 0 0 10px var(--stage-c2, rgba(255,0,200,.8));
  /* Duration comes from --travel-duration (set inline per-circle by JS to
     match rhythm.travel_ms exactly). It used to be hardcoded to 2.2s here
     while JS scheduled the burst off the admin-configurable travel_ms —
     any event with a different travel_ms (fast Beat Sync in particular)
     made the burst fire before the circle visually reached the target,
     so it either never looked like it arrived or burst mid-flight. */
  transition: right var(--travel-duration, 2.2s) linear, opacity .35s ease, box-shadow .35s ease;
}

.gp-rhythm-circle.travel {
  right: calc(50% - 10px);
}

.gp-rhythm-circle.burst {
  opacity: 0;
  width: 3px;
  height: 3px;
  box-shadow:
    -16px -9px 0 2px var(--stage-c1, rgba(255,107,224,.9)),
    16px -9px 0 2px var(--stage-c2, rgba(162,0,255,.9)),
    -12px 11px 0 2px var(--stage-c1, rgba(255,107,224,.9)),
    12px 11px 0 2px var(--stage-c2, rgba(162,0,255,.9)),
    0 -16px 0 2px rgba(255,255,255,.8),
    0 16px 0 2px rgba(255,255,255,.5);
}

@media (max-width: 700px) {
  .gp-rhythm-bar { bottom: 150px; height: 32px; }
  .gp-rhythm-target { width: 26px; height: 26px; }
  .gp-rhythm-circle { width: 16px; height: 16px; }
  .gp-rhythm-circle.travel { right: calc(50% - 8px); }
}
