/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #0a0a0f;
  color: #e0e0e0;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== PROFILE MENU ===== */
.profile {
  position: fixed;
  top: 22px;
  right: 24px;
  z-index: 5500;
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.profile[hidden] {
  display: none;
}

.profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(20, 20, 40, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #eaeaea;
  font-weight: 900;
  letter-spacing: 0.6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.profile-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(192, 132, 252, 0.35);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.35);
}

.profile-avatar {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  font-size: 14px;
  font-weight: 900;
  color: #0a0a0f;
  background: linear-gradient(135deg, #22d3ee, #7c3aed, #ff4d6d);
}

.profile-caret {
  opacity: 0.75;
  font-weight: 900;
}

.profile-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 240px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(145deg, #141420, #1a1a2e);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.55);
  padding: 12px;
  display: none;
}

.profile-dropdown.active {
  display: block;
  animation: fadeScale 0.16s ease-out;
}

.profile-username {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.4px;
  color: rgba(255, 255, 255, 0.92);
  padding: 10px 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-tier {
  padding: 0 10px 12px;
  margin-top: -2px;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(192, 132, 252, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Telegram icon — sits to the LEFT of the profile button, same height */
.profile-telegram-external {
  position: relative;
  z-index: 5400;
  width: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(20, 20, 40, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.2s ease;
  text-decoration: none;
}

.profile-telegram-external:hover {
  transform: translateY(-1px);
  border-color: rgba(42, 171, 238, 0.35);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.profile-telegram-external svg {
  width: 22px;
  height: 22px;
  fill: #2AABEE;
}

.profile-telegram-external[hidden] {
  display: none !important;
}

.profile-logout {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 77, 109, 0.22);
  background: rgba(255, 77, 109, 0.08);
  color: #ff6b8a;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.profile-logout:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 77, 109, 0.35);
  box-shadow: 0 12px 50px rgba(0, 0, 0, 0.35);
}

/* ===== TIER UNLOCKED BUTTON (TOP) ===== */
.tier-unlocked-btn {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9990;
  padding: 14px 28px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  cursor: pointer;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #0a0a0f;
  background: linear-gradient(135deg, #22d3ee, #7c3aed, #ff4d6d);
  background-size: 200% 200%;
  animation: tierGlow 3s ease infinite;
  box-shadow: 0 14px 60px rgba(0, 0, 0, 0.35), 0 0 30px rgba(124, 58, 237, 0.3);
  transition: transform 0.2s ease, filter 0.2s ease;
}

@keyframes tierGlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.tier-unlocked-btn:hover {
  transform: translateX(-50%) translateY(-1px);
  filter: brightness(1.05);
}

.tier-unlocked-btn:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

/* ===== MEGA POPUP ===== */
.mega-overlay {
  position: fixed;
  inset: 0;
  z-index: 9995;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 20px;
}

.mega-overlay.active {
  display: flex;
}

.mega-modal {
  width: min(720px, 96vw);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(145deg, #141420, #1a1a2e);
  box-shadow: 0 0 90px rgba(120, 80, 255, 0.18), 0 0 260px rgba(120, 80, 255, 0.08);
  padding: 28px 26px 22px;
  position: relative;
  animation: fadeScale 0.2s ease-out;
}

.mega-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(20, 20, 40, 0.55);
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  opacity: 0.9;
}

.mega-modal h2 {
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 6px;
  background: linear-gradient(135deg, #22d3ee, #7c3aed, #ff4d6d);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mega-sub {
  color: #888;
  font-size: 13px;
  margin-bottom: 14px;
}

.mega-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.mega-link {
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(20, 20, 40, 0.55);
  color: #eaeaea;
  font-weight: 800;
}

.mega-copy {
  padding: 12px 14px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #0a0a0f;
  background: linear-gradient(135deg, #22d3ee, #7c3aed);
}

.mega-copied {
  min-height: 16px;
  margin-top: 10px;
  font-size: 12px;
  color: rgba(125, 211, 252, 0.95);
}

/* ===== ANIMATED BACKGROUND ===== */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.page-content {
  position: relative;
  z-index: 1;
}

/* ===== DISCLAIMER OVERLAY ===== */
.disclaimer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  background: rgba(0, 0, 0, 0.75);
}

.disclaimer-overlay.hidden {
  display: none;
}

.disclaimer-box {
  background: linear-gradient(145deg, #141420, #1a1a2e);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  max-width: 800px;
  width: 92%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 50px 55px;
  box-shadow: 0 0 80px rgba(120, 80, 255, 0.12), 0 0 200px rgba(120, 80, 255, 0.05);
  animation: fadeScale 0.4s ease-out;
}

.disclaimer-top-preview {
  display: block;
  width: 100%;
  max-width: 520px;
  margin: 0 auto 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

@keyframes fadeScale {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

.disclaimer-box h1,
.disclaimer-box h2 {
  font-size: 32px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #ff4d6d, #c084fc);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.disclaimer-box .subtitle {
  text-align: center;
  color: #888;
  font-size: 15px;
  margin-bottom: 30px;
  letter-spacing: 0.5px;
}

.disclaimer-box .divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(192, 132, 252, 0.3), transparent);
  margin: 24px 0;
}

.disclaimer-box p {
  font-size: 16px;
  line-height: 1.7;
  color: #b8b8b8;
  margin-bottom: 18px;
}

.disclaimer-box p strong {
  color: #e0e0e0;
}

.disclaimer-box .warning-badge {
  display: inline-block;
  background: rgba(255, 77, 109, 0.15);
  border: 1px solid rgba(255, 77, 109, 0.3);
  color: #ff6b8a;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}

.disclaimer-box ul {
  list-style: none;
  padding: 0;
  margin-bottom: 14px;
}

.disclaimer-box ul li {
  position: relative;
  padding-left: 22px;
  font-size: 13.5px;
  color: #aaa;
  margin-bottom: 8px;
  line-height: 1.6;
}

.disclaimer-box ul li::before {
  content: '›';
  position: absolute;
  left: 4px;
  color: #c084fc;
  font-weight: bold;
  font-size: 16px;
}

.btn-accept {
  display: block;
  width: 100%;
  margin-top: 28px;
  padding: 16px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  background: linear-gradient(135deg, #7c3aed, #c084fc);
  color: #fff;
  transition: all 0.3s ease;
  box-shadow: 0 4px 25px rgba(124, 58, 237, 0.35);
}

.btn-accept:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 35px rgba(124, 58, 237, 0.5);
  background: linear-gradient(135deg, #8b5cf6, #d4a5ff);
}

.btn-accept:active {
  transform: translateY(0);
}

/* ===== HOMEPAGE ===== */
.homepage {
  padding: 60px 40px 80px;
  max-width: 1400px;
  margin: 0 auto;
}

.homepage.blurred {
  filter: blur(25px) brightness(0.4);
  pointer-events: none;
  user-select: none;
}

.site-header {
  text-align: center;
  margin-bottom: 50px;
  padding-top: 30px;
}

.site-header h1 {
  font-size: 42px;
  font-weight: 900;
  background: linear-gradient(135deg, #c084fc, #7c3aed, #ff4d6d);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.site-header p {
  color: #666;
  font-size: 14px;
  letter-spacing: 4px;
  text-transform: uppercase;
}

/* ===== FOLDER GRID ===== */
.folder-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 26px;
}

/* ===== SEO ABOUT SECTION ===== */
.seo-about {
  max-width: 820px;
  margin: 48px auto 0;
  padding: 0 20px;
  text-align: center;
}

.seo-about h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #22d3ee, #7c3aed, #ff4d6d);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.seo-about p {
  color: #999;
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 12px;
}

.seo-about p:last-child {
  margin-bottom: 0;
}

.seo-about strong {
  color: #c8c8c8;
}

/* ===== REFERRAL FOOTER (HOME) ===== */
.referral-footer {
  margin-top: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.referral-footer[hidden] {
  display: none !important;
}

.referral-goal {
  width: min(720px, 92vw);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(20, 20, 40, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 14px 16px 16px;
}

.referral-goal-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.referral-goal-title {
  font-weight: 900;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
}

.referral-goal-count {
  font-weight: 900;
  color: rgba(192, 132, 252, 0.95);
  letter-spacing: 1px;
}

.referral-bar {
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.referral-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #22d3ee, #7c3aed, #ff4d6d);
  box-shadow: 0 10px 40px rgba(124, 58, 237, 0.22);
  transition: width 0.35s ease;
}

.referral-tutorial {
  padding: 14px 18px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.7px;
  color: #fff;
  background: linear-gradient(135deg, #ff4d6d, #7c3aed);
  box-shadow: 0 10px 40px rgba(255, 77, 109, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.referral-tutorial:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 60px rgba(255, 77, 109, 0.22);
}

/* ===== REFERRAL TUTORIAL POPUP ===== */
.referral-overlay {
  position: fixed;
  inset: 0;
  z-index: 9993;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 20px;
}

.referral-overlay.active {
  display: flex;
}

.referral-modal {
  width: min(860px, 96vw);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(145deg, #141420, #1a1a2e);
  box-shadow: 0 0 90px rgba(120, 80, 255, 0.18), 0 0 260px rgba(120, 80, 255, 0.08);
  padding: 44px 40px 36px;
  position: relative;
  animation: fadeScale 0.2s ease-out;
  max-height: 92vh;
  overflow-y: auto;
}

.referral-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(20, 20, 40, 0.55);
  color: #ff6b8a;
  font-size: 28px;
  cursor: pointer;
  opacity: 0.9;
  transition: transform 0.2s ease;
}

.referral-close:hover {
  transform: translateY(-1px);
}

.referral-modal h2 {
  font-size: 38px;
  font-weight: 900;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #22d3ee, #7c3aed, #ff4d6d);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.referral-sub {
  color: #888;
  font-size: 16px;
  margin-bottom: 16px;
}

.referral-body {
  color: #bbb;
  font-size: 18px;
  line-height: 1.8;
  margin-top: 16px;
}

.referral-tiers {
  margin: 14px 0 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ref-tier {
  border-radius: 16px;
  padding: 18px 16px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  font-size: 17px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ref-tier.t1 {
  background: rgba(124, 58, 237, 0.16);
  color: rgba(192, 132, 252, 0.95);
}

.ref-tier.t2 {
  background: rgba(255, 77, 109, 0.14);
  color: rgba(255, 107, 138, 0.95);
}

.referral-reddit {
  font-weight: 900;
  color: #c084fc;
  text-decoration: none;
}

.referral-reddit:hover {
  text-decoration: underline;
}

/* ===== TOS / DMCA POPUP ===== */
.tos-dmca-link {
  position: fixed;
  right: 10px;
  bottom: 6px;
  z-index: 9992;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  font-size: 9px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 0;
  cursor: pointer;
}

.tos-dmca-link:hover {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: underline;
}

/* ===== REDDIT SUBREDDITS POPUP ===== */
.reddit-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 9996;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.reddit-popup-overlay.active {
  display: flex;
}
.reddit-popup-modal {
  background: #111118;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 30px 28px;
  max-width: 440px;
  width: 90%;
  position: relative;
  text-align: center;
}
.reddit-popup-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 22px;
  color: rgba(255, 255, 255, 0.5);
  background: none;
  border: none;
  cursor: pointer;
}
.reddit-popup-close:hover { color: #fff; }
.reddit-popup-instruction {
  font-size: 14px;
  font-weight: 700;
  color: #eee;
  margin-bottom: 22px;
  line-height: 1.5;
}
.reddit-popup-grid {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.reddit-popup-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  background: rgba(255, 69, 0, 0.08);
  border: 1px solid rgba(255, 69, 0, 0.2);
  border-radius: 12px;
  padding: 16px 14px;
  min-width: 110px;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}
.reddit-popup-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 69, 0, 0.5);
  background: rgba(255, 69, 0, 0.14);
}
.reddit-popup-card .reddit-logo {
  width: 42px;
  height: 42px;
}
.reddit-popup-name {
  font-size: 11px;
  font-weight: 700;
  color: #FF4500;
  letter-spacing: 0.3px;
}
.reddit-popup-linkbox {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 18px;
}
.reddit-popup-linklabel {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.reddit-popup-linkrow {
  display: flex;
  gap: 8px;
}
.reddit-referral-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px 12px;
  color: #ccc;
  font-size: 12px;
  font-family: monospace;
  outline: none;
}
.reddit-referral-copy {
  background: #FF4500;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
}
.reddit-referral-copy:hover { background: #e03d00; }

.tos-dmca-overlay {
  position: fixed;
  inset: 0;
  z-index: 9994;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 20px;
}

.tos-dmca-overlay.active {
  display: flex;
}

.tos-dmca-modal {
  width: min(540px, 94vw);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(145deg, #141420, #1a1a2e);
  box-shadow: 0 0 80px rgba(120, 80, 255, 0.16);
  padding: 26px 24px 20px;
  position: relative;
  animation: fadeScale 0.2s ease-out;
  max-height: 90vh;
  overflow-y: auto;
}

.tos-dmca-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(20, 20, 40, 0.55);
  color: #ff6b8a;
  font-size: 22px;
  cursor: pointer;
  opacity: 0.9;
}

.tos-dmca-modal h2 {
  font-size: 18px;
  font-weight: 900;
  margin: 2px 0 8px;
  letter-spacing: 0.6px;
}

.tos-dmca-sub {
  color: #8c8c8c;
  font-size: 12px;
  margin-bottom: 10px;
}

.tos-dmca-body {
  color: #bdbdbd;
  font-size: 12px;
  line-height: 1.6;
}

.tos-dmca-body strong {
  color: #e9e9e9;
}

.referral-linkbox {
  margin-top: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 10, 16, 0.35);
  padding: 14px;
}

.referral-linklabel {
  font-size: 15px;
  color: #888;
  font-weight: 800;
  letter-spacing: 0.6px;
  margin-bottom: 12px;
}

.referral-linkrow {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.referral-link {
  width: 100%;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(20, 20, 40, 0.55);
  color: #eaeaea;
  font-weight: 800;
  font-size: 16px;
}

.referral-copy {
  padding: 14px 18px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #0a0a0f;
  background: linear-gradient(135deg, #22d3ee, #7c3aed);
  font-size: 15px;
}

.referral-copied {
  min-height: 16px;
  margin-top: 10px;
  font-size: 15px;
  color: rgba(125, 211, 252, 0.95);
}

.referral-tierhint {
  margin-top: 10px;
  display: grid;
  gap: 6px;
}

.referral-tierhint .hint-line {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.referral-premium-btn {
  margin-top: 14px;
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  padding: 16px 18px;
  border-radius: 14px;
  border: none;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #1a1a0a;
  background: linear-gradient(135deg, #ffd700, #ffb300, #ffc800);
  box-shadow: 0 6px 24px rgba(255, 215, 0, 0.3);
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.referral-premium-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 10px 36px rgba(255, 215, 0, 0.45);
}

/* ===== PAYMENT POPUP ===== */
.payment-overlay {
  position: fixed; inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.payment-overlay.active {
  opacity: 1; pointer-events: auto;
}
.payment-modal {
  position: relative;
  background: #13131a;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  width: min(680px, 94vw);
  max-height: 92vh;
  overflow-y: auto;
  padding: 32px 28px 28px;
  box-shadow: 0 24px 80px rgba(0,0,0,.55);
}
.payment-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none;
  color: rgba(255,255,255,.5); font-size: 28px;
  cursor: pointer; line-height: 1;
}
.payment-close:hover { color: #fff; }

/* Step visibility */
.payment-step { display: none; }
.payment-step.active { display: block; }

/* ---- STEP 1: Tier T-chart ---- */
.payment-title {
  text-align: center;
  font-size: 22px; font-weight: 800;
  color: #fff; margin-bottom: 24px;
  letter-spacing: .5px;
}
.tier-chart {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.tier-card {
  border-radius: 14px;
  padding: 24px 20px 20px;
  display: flex; flex-direction: column;
  position: relative;
  overflow: hidden;
}
.tier-card--basic {
  background: #1e1e28;
  border: 1px solid rgba(255,255,255,.08);
}
.tier-card--premium {
  background: linear-gradient(160deg, rgba(255,215,0,.12), rgba(255,180,0,.06));
  border: 1.5px solid rgba(255,215,0,.45);
  box-shadow: 0 0 30px rgba(255,215,0,.08);
}
.tier-card__badge {
  display: inline-block;
  font-size: 11px; font-weight: 800;
  letter-spacing: 1.4px; text-transform: uppercase;
  padding: 5px 12px; border-radius: 6px;
  margin-bottom: 16px; width: fit-content;
}
.tier-card--basic .tier-card__badge {
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.55);
}
.tier-card--premium .tier-card__badge {
  background: linear-gradient(135deg, #ffd700, #ffb300);
  color: #1a1a0a;
}
.tier-card__features {
  list-style: none; padding: 0; margin: 0 0 auto;
  display: flex; flex-direction: column; gap: 10px;
}
.tier-card__features li {
  font-size: 14px; color: rgba(255,255,255,.82);
  display: flex; align-items: center; gap: 8px;
}
.tier-card__features li::before {
  content: '✓'; color: #22d3ee; font-weight: 700; font-size: 13px;
}
.tier-card--premium .tier-card__features li::before {
  color: #ffd700;
}
.tier-card__features li.strikethrough {
  text-decoration: line-through;
  color: rgba(255,255,255,.3);
}
.tier-card__features li.strikethrough::before {
  content: '✗'; color: #ff4d6d;
}
.tier-card__buy {
  display: block; width: 100%; margin-top: 20px;
  padding: 14px 0; border: none; border-radius: 10px;
  font-weight: 800; font-size: 15px;
  letter-spacing: .8px; text-transform: uppercase;
  cursor: pointer; transition: transform .15s, filter .15s;
}
.tier-card__buy:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}
.tier-card--basic .tier-card__buy {
  background: rgba(255,255,255,.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,.15);
}
.tier-card--premium .tier-card__buy {
  background: linear-gradient(135deg, #ffd700, #ffb300);
  color: #1a1a0a;
  box-shadow: 0 6px 24px rgba(255,215,0,.25);
}

/* ---- STEP 2: Payment methods ---- */
.payment-methods-title {
  text-align: center;
  font-size: 20px; font-weight: 800;
  color: #fff; margin-bottom: 6px;
}
.payment-methods-sub {
  text-align: center;
  font-size: 14px; color: rgba(255,255,255,.45);
  margin-bottom: 22px;
}
.payment-methods-grid {
  display: flex; flex-direction: column; gap: 10px;
}
.payment-method-btn {
  display: flex; align-items: center; gap: 14px;
  width: 100%;
  padding: 16px 20px;
  background: #1e1e28;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  color: #fff; font-size: 16px; font-weight: 700;
  cursor: pointer; transition: border-color .15s, background .15s;
}
.payment-method-btn:hover {
  border-color: rgba(255,255,255,.22);
  background: #26263a;
}
.payment-method-btn .pm-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800;
  flex-shrink: 0;
}
.pm-paypal .pm-icon  { background: #003087; }
.pm-cashapp .pm-icon { background: #00d632; color: #000; }
.pm-zelle .pm-icon   { background: #6c1cd3; }
.pm-venmo .pm-icon   { background: #008cff; }
.pm-apple .pm-icon   { background: #fff; color: #000; }
.payment-method-btn .pm-label { font-size: 15px; }
.payment-method-btn .pm-note {
  margin-left: auto;
  font-size: 12px; font-weight: 400;
  color: rgba(255,255,255,.35);
}
.payment-back {
  display: block; margin: 18px auto 0;
  background: none; border: none;
  color: rgba(255,255,255,.4); font-size: 13px;
  cursor: pointer; text-decoration: underline;
}
.payment-back:hover { color: rgba(255,255,255,.7); }

/* ---- STEP 3: Send payment + screenshot ---- */
.payment-info-box {
  background: #1e1e28;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 24px; margin-bottom: 20px;
  text-align: center;
}
.payment-info-amount {
  font-size: 32px; font-weight: 900;
  color: #ffd700; margin-bottom: 8px;
}
.payment-info-to {
  font-size: 16px; color: rgba(255,255,255,.82);
  margin-bottom: 4px;
}
.payment-info-detail {
  font-size: 22px; font-weight: 800;
  color: #fff; word-break: break-all;
  margin-bottom: 6px;
}
.payment-info-warn {
  font-size: 12px; font-weight: 700;
  color: #ff4d6d; letter-spacing: .5px;
  text-transform: uppercase; margin-top: 8px;
}
.payment-upload-label {
  display: block;
  text-align: center;
  font-size: 15px; font-weight: 700;
  color: rgba(255,255,255,.7);
  margin-bottom: 12px;
}
.payment-dropzone {
  border: 2px dashed rgba(255,255,255,.15);
  border-radius: 14px;
  padding: 36px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  margin-bottom: 8px;
}
.payment-dropzone:hover,
.payment-dropzone.dragover {
  border-color: rgba(255,215,0,.5);
  background: rgba(255,215,0,.04);
}
.payment-dropzone__text {
  font-size: 14px; color: rgba(255,255,255,.45);
}
.payment-dropzone__text strong { color: #ffd700; }
.payment-dropzone__preview {
  max-width: 260px; max-height: 200px;
  border-radius: 8px; margin-top: 10px;
  display: none;
}
.payment-submit {
  display: block; width: 100%; margin-top: 14px;
  padding: 16px 0; border: none; border-radius: 12px;
  font-weight: 800; font-size: 16px;
  letter-spacing: .8px; text-transform: uppercase;
  background: linear-gradient(135deg, #ffd700, #ffb300);
  color: #1a1a0a; cursor: pointer;
  transition: transform .15s, filter .15s, opacity .15s;
}
.payment-submit:hover { transform: translateY(-2px); filter: brightness(1.08); }
.payment-submit:disabled { opacity: .4; cursor: default; transform: none; filter: none; }
.payment-review-note {
  text-align: center;
  font-size: 12px; color: rgba(255,255,255,.35);
  margin-top: 10px;
}

/* ---- Processing animation ---- */
.payment-processing {
  text-align: center;
  padding: 40px 20px;
}
.payment-spinner {
  width: 48px; height: 48px;
  margin: 0 auto 20px;
  border: 4px solid rgba(255,255,255,.1);
  border-top-color: #ffd700;
  border-radius: 50%;
  animation: pay-spin 0.8s linear infinite;
}
@keyframes pay-spin {
  to { transform: rotate(360deg); }
}
.payment-processing-text {
  font-size: 20px; font-weight: 800;
  color: #fff; margin-bottom: 8px;
}
.payment-processing-sub {
  font-size: 14px;
  color: rgba(255,255,255,.45);
}
.payment-processing.success .payment-processing-text {
  color: #22d3ee;
}
.payment-success-check {
  font-size: 52px; font-weight: 900;
  color: #22d3ee;
  margin-bottom: 12px;
  animation: pay-pop 0.4s cubic-bezier(.17,.67,.28,1.3);
}
@keyframes pay-pop {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@media (max-width: 560px) {
  .tier-chart { grid-template-columns: 1fr; }
  .payment-modal { padding: 24px 16px 20px; }
}

/* ===== PREMIUM PAGE ===== */
.premium-page {
  max-width: 980px;
  margin: 0 auto;
  padding: 60px 20px 80px;
  text-align: center;
}

.premium-hero {
  margin-bottom: 26px;
}

.premium-hero h1 {
  font-size: 42px;
  font-weight: 900;
  background: linear-gradient(135deg, #22d3ee, #7c3aed, #ff4d6d);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
}

.premium-hero p {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 1.6px;
  text-transform: uppercase;
  font-size: 12px;
}

.premium-top-preview {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  display: block;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  margin: 18px auto 18px;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.30);
}

.premium-embed {
  margin: 0 auto 30px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(20, 20, 40, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  text-align: left;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.30);
}

.premium-embed-content {
  padding: 18px 18px 8px;
}

.premium-embed-line {
  padding: 14px 2px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.6;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.premium-embed-line:last-child {
  border-bottom: none;
}

.premium-embed-line strong {
  display: inline-block;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 4px;
}

.premium-features {
  margin: 28px auto 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.premium-feature {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(20, 20, 40, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 18px 16px;
  text-align: left;
}

.premium-feature h3 {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 8px;
}

.premium-feature p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.6;
}

.premium-buywrap {
  margin-top: 18px;
  margin-bottom: 24px;
}

.premium-buy {
  display: inline-block;
  padding: 22px 36px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #0a0a0f;
  background: linear-gradient(135deg, #ff4d6d, #7c3aed);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, filter 0.2s ease;
  font-size: 14px;
  min-width: min(520px, 90vw);
  text-align: center;
}

.premium-buy:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.folder-card {
  background: linear-gradient(160deg, #16162a, #1c1c35);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  width: 310px;
  padding: 16px 16px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.35s ease;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.folder-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #7c3aed, #c084fc, #ff4d6d);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.folder-card:hover {
  transform: translateY(-6px);
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.15);
}

.folder-card:hover::before {
  opacity: 1;
}

.folder-icon {
  font-size: 62px;
  margin-bottom: 18px;
  display: block;
}

.folder-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 16px;
  display: block;
  transition: transform 0.35s ease;
}

.folder-card:hover .folder-thumb {
  transform: scale(1.03);
}

.folder-card h2,
.folder-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #e0e0e0;
  letter-spacing: 0.5px;
}

.folder-card .file-count {
  font-size: 13px;
  color: #666;
  margin-top: 12px;
}

/* ===== SEO SECTIONS ===== */
.seo-about {
  max-width: 1100px;
  margin: 60px auto 0;
  padding: 0 20px;
  color: #888;
  line-height: 1.8;
}
.seo-about h2 {
  color: #ccc;
  font-size: 22px;
  margin-bottom: 16px;
}
.seo-about h3 {
  color: #aaa;
  font-size: 17px;
  margin: 28px 0 8px;
}
.seo-about p {
  font-size: 14px;
  margin-bottom: 12px;
}
.seo-about strong {
  color: #999;
}

.seo-faq {
  max-width: 1100px;
  margin: 48px auto 40px;
  padding: 0 20px;
}
.seo-faq h2 {
  color: #ccc;
  font-size: 20px;
  margin-bottom: 16px;
}
.seo-faq details {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  margin-bottom: 10px;
  padding: 14px 18px;
}
.seo-faq summary {
  color: #bbb;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}
.seo-faq details p {
  color: #888;
  font-size: 14px;
  margin: 10px 0 0;
  line-height: 1.6;
}

/* Folder page SEO section */
.folder-seo {
  max-width: 1260px;
  margin: 40px 0 24px;
  color: #777;
  line-height: 1.7;
}
.folder-seo h2 {
  color: #bbb;
  font-size: 22px;
  margin-bottom: 14px;
  font-weight: 700;
}
.folder-seo .seo-intro {
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.8;
}
.folder-seo p {
  font-size: 13px;
  margin-bottom: 8px;
}
.folder-seo strong {
  color: #999;
}

/* SEO content sections */
.folder-seo .seo-section {
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #1a1a1a;
}
.folder-seo .seo-section:last-of-type {
  border-bottom: none;
}
.folder-seo .seo-section h3 {
  color: #aaa;
  font-size: 16px;
  margin-bottom: 8px;
  font-weight: 600;
}
.folder-seo .seo-section p {
  font-size: 13px;
  line-height: 1.8;
  color: #777;
}

/* Folder-page FAQ */
.folder-seo .seo-page-faq {
  margin: 24px 0 20px;
}
.folder-seo .seo-page-faq > h3 {
  color: #aaa;
  font-size: 16px;
  margin-bottom: 12px;
  font-weight: 600;
}
.folder-seo .seo-faq-item {
  background: #111;
  border: 1px solid #222;
  border-radius: 8px;
  margin-bottom: 8px;
  overflow: hidden;
}
.folder-seo .seo-faq-item summary {
  cursor: pointer;
  padding: 12px 16px;
  font-size: 14px;
  color: #ccc;
  font-weight: 500;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.folder-seo .seo-faq-item summary::before {
  content: '+';
  font-size: 18px;
  color: #e94560;
  font-weight: 700;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}
.folder-seo .seo-faq-item[open] summary::before {
  content: '−';
}
.folder-seo .seo-faq-item summary::-webkit-details-marker {
  display: none;
}
.folder-seo .seo-faq-item p {
  padding: 0 16px 14px 46px;
  font-size: 13px;
  color: #888;
  line-height: 1.7;
  margin: 0;
}

/* Related searches */
.folder-seo .seo-related {
  margin: 20px 0 12px;
}
.folder-seo .seo-related h3 {
  color: #aaa;
  font-size: 14px;
  margin-bottom: 8px;
  font-weight: 600;
}
.folder-seo .seo-related p {
  font-size: 12px;
  color: #555;
  line-height: 2;
  word-spacing: 3px;
}

/* SEO tags */
.folder-seo .seo-tags {
  font-size: 11px;
  color: #444;
  margin-top: 12px;
  word-spacing: 4px;
  padding-top: 12px;
  border-top: 1px solid #1a1a1a;
}

/* Media title (h3) inside grid items */
.media-title {
  font-size: 13px;
  font-weight: 600;
  color: #ccc;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== FOLDER VIEW PAGE ===== */
.folder-page {
  padding: 40px;
  max-width: 1300px;
  margin: 0 auto;
}

.folder-page .breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
  font-size: 14px;
}

.folder-page .breadcrumb a {
  color: #c084fc;
  text-decoration: none;
  transition: color 0.2s;
}

.folder-page .breadcrumb a:hover {
  color: #d4a5ff;
}

.folder-page .breadcrumb span {
  color: #555;
}

.folder-page .breadcrumb .current {
  color: #999;
}

.folder-page h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 30px;
  color: #e0e0e0;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 60px;
}

.media-item {
  background: #141422;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.media-item:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 58, 237, 0.25);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.media-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  background: #1a1a2e;
}

.media-info {
  padding: 12px 14px;
}

.media-info .name {
  font-size: 13px;
  color: #ccc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.media-info .meta {
  font-size: 11px;
  color: #555;
  margin-top: 4px;
}

/* Video indicator */
.media-item.video-item .media-thumb-wrapper {
  position: relative;
}

.video-poster {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-poster-icon {
  font-size: 36px;
  color: rgba(255, 255, 255, 0.6);
  width: 56px;
  height: 56px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.media-item.video-item:hover .video-poster-icon {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(124, 58, 237, 0.5);
}

.media-item.video-item .play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.media-item.video-item .play-icon::after {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent #fff;
  margin-left: 3px;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  text-align: center;
  padding: 60px 30px;
  margin-top: 40px;
  background: linear-gradient(160deg, rgba(124, 58, 237, 0.08), rgba(255, 77, 109, 0.06));
  border: 1px solid rgba(124, 58, 237, 0.15);
  border-radius: 20px;
}

.cta-banner a {
  display: inline-block;
  font-size: 24px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: #fff;
  text-decoration: none;
  padding: 24px 70px;
  border-radius: 16px;
  background: linear-gradient(135deg, #7c3aed, #ff4d6d);
  box-shadow: 0 6px 35px rgba(124, 58, 237, 0.3);
  transition: all 0.35s ease;
  animation: pulse-glow 2.5s ease-in-out infinite;
}

.cta-banner a:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 50px rgba(124, 58, 237, 0.45);
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 6px 35px rgba(124, 58, 237, 0.3); }
  50% { box-shadow: 0 6px 50px rgba(124, 58, 237, 0.5), 0 0 80px rgba(255, 77, 109, 0.15); }
}

/* ===== BACK BUTTON ===== */
.back-btn {
  position: fixed;
  top: 24px;
  left: 24px;
  z-index: 5500;
  color: #c084fc;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 22px;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(192, 132, 252, 0.3);
  border-radius: 12px;
  transition: all 0.3s ease;
  background: rgba(20, 20, 40, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.back-btn:hover {
  background: rgba(124, 58, 237, 0.15);
  border-color: rgba(192, 132, 252, 0.5);
  transform: translateY(-1px);
}

/* ===== HOME LOGIN BUTTON (TOP LEFT) ===== */
.home-login-btn {
  position: fixed;
  top: 22px;
  left: 26px;
  z-index: 6200;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(192, 132, 252, 0.28);
  background: rgba(20, 20, 40, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(192, 132, 252, 0.95);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.home-login-btn:hover {
  transform: translateY(-1px);
  background: rgba(124, 58, 237, 0.14);
  border-color: rgba(192, 132, 252, 0.5);
}

/* ===== ACCESS PAGE ===== */
.access-page {
  padding: 60px 40px 80px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.access-header h1 {
  font-size: 52px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 6px;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #22d3ee, #7c3aed, #ff4d6d, #f59e0b);
  background-size: 300% 300%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 4s ease infinite;
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.access-header p {
  color: #666;
  font-size: 15px;
  letter-spacing: 2px;
  margin-bottom: 50px;
}

/* ===== T-CHART / TIERS ===== */
.tier-chart {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 60px;
  align-items: stretch;
}

@keyframes tier-bounce {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.02); }
  100% { transform: translateY(0) scale(1.01); }
}

@keyframes tier-bounce {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.02); }
  100% { transform: translateY(0) scale(1.01); }
}

.tier-card {
  background: linear-gradient(160deg, #141428, #1a1a35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 36px 30px;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: all 0.35s ease;
  cursor: pointer;
  height: 100%;
  width: 100%;
}

.tier-card:hover {
  border-color: rgba(124, 58, 237, 0.25);
  box-shadow: 0 8px 40px rgba(124, 58, 237, 0.1);
  animation: tier-bounce 0.35s ease-out;
}

.tier-card:active {
  transform: translateY(-2px) scale(0.99);
}

.tier-auth-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.tier-auth-btn:focus-visible {
  outline: 2px solid rgba(192, 132, 252, 0.7);
  outline-offset: 4px;
}

/* ===== AUTH MODAL ===== */
.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 9992;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 20px;
}

.auth-overlay.active {
  display: flex;
}

.auth-modal {
  width: min(520px, 96vw);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(145deg, #141420, #1a1a2e);
  box-shadow: 0 0 80px rgba(120, 80, 255, 0.16), 0 0 220px rgba(120, 80, 255, 0.06);
  padding: 34px 30px 26px;
  position: relative;
  animation: fadeScale 0.25s ease-out;
}

.auth-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(20, 20, 40, 0.55);
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  opacity: 0.85;
  transition: all 0.2s ease;
}

.auth-close:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.auth-modal h2 {
  font-size: 30px;
  font-weight: 900;
  margin-bottom: 6px;
  background: linear-gradient(135deg, #22d3ee, #7c3aed, #ff4d6d);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.auth-subtitle {
  color: #777;
  font-size: 13px;
  margin-bottom: 18px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.auth-tab {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(20, 20, 40, 0.55);
  color: #cfcfcf;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.auth-tab.active {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.35), rgba(255, 77, 109, 0.18));
  border-color: rgba(192, 132, 252, 0.35);
  color: #fff;
}

.auth-message {
  min-height: 18px;
  margin: 10px 0 6px;
  font-size: 13px;
  color: #aaa;
}

.auth-message.error { color: #ff6b8a; }
.auth-message.success { color: #7dd3fc; }

.auth-form {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.auth-form.hidden { display: none; }

.auth-form label span {
  display: block;
  font-size: 12px;
  color: #888;
  margin-bottom: 6px;
  letter-spacing: 0.4px;
}

.auth-form input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 10, 16, 0.55);
  color: #eaeaea;
  outline: none;
}

.auth-form input:focus {
  border-color: rgba(192, 132, 252, 0.5);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.16);
}

.auth-primary {
  margin-top: 4px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #ff4d6d);
  box-shadow: 0 10px 40px rgba(124, 58, 237, 0.22);
  transition: all 0.25s ease;
}

.auth-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 50px rgba(124, 58, 237, 0.34);
}

.auth-divider {
  margin: 18px 0 14px;
  position: relative;
  text-align: center;
}

.auth-divider span {
  display: inline-block;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 13.5px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  padding: 0 10px;
  background: linear-gradient(145deg, #141420, #1a1a2e);
}

.auth-divider::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(192, 132, 252, 0.25), transparent);
  transform: translateY(-50%);
}

.auth-social {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  justify-items: center;
}

.social-btn {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(20, 20, 40, 0.55);
  color: #eaeaea;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.25s ease;
  width: 100%;
  max-width: 260px;
}

.social-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(192, 132, 252, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

/* IP error alert banner */
.ip-error-alert {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100000;
  background: #dc2626;
  color: #fff;
  text-align: center;
  padding: 14px 20px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
  transform: translateY(-100%);
  transition: transform 0.35s ease;
}
.ip-error-alert.visible {
  transform: translateY(0);
}

.social-btn.discord { border-top: 3px solid #5865F2; display: flex; align-items: center; justify-content: center; gap: 8px; }
.social-btn.google { border-top: 3px solid #4285F4; display: flex; align-items: center; justify-content: center; gap: 8px; }
.social-btn.telegram { border-top: 3px solid #2AABEE; }

.social-icon-svg {
  width: 20px;
  height: 20px;
  fill: #5865F2;
  flex-shrink: 0;
}
.social-icon-svg.google-icon {
  fill: none;
}

.tier-link:focus-visible .tier-card {
  outline: 2px solid rgba(192, 132, 252, 0.7);
  outline-offset: 4px;
}

.tier-card.tier-1 {
  border-top: 3px solid #7c3aed;
}

.tier-card.tier-2 {
  border-top: 3px solid #ff4d6d;
}

.tier-card h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 24px;
  text-decoration: underline;
  text-underline-offset: 6px;
}

.tier-card.tier-1 h2 {
  color: #c084fc;
  text-decoration-color: rgba(192, 132, 252, 0.4);
}

.tier-card.tier-2 h2 {
  color: #ff6b8a;
  text-decoration-color: rgba(255, 107, 138, 0.4);
}

.tier-card ul {
  list-style: none;
  padding: 0;
}

.tier-card ul li {
  position: relative;
  padding: 10px 0 10px 32px;
  font-size: 15px;
  color: #bbb;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  line-height: 1.5;
}

.tier-card ul li:last-child {
  border-bottom: none;
}

.tier-card ul li::before {
  content: '✦';
  position: absolute;
  left: 4px;
  font-size: 12px;
}

.tier-card.tier-1 ul li::before {
  color: #7c3aed;
}

.tier-card.tier-2 ul li::before {
  color: #ff4d6d;
}

/* (Big CTA removed) */

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(10px);
  z-index: 5000;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 24px;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: min(90vw, 1200px);
}
.lightbox-media {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  font-size: 36px;
  color: #fff;
  cursor: pointer;
  background: none;
  border: none;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.lightbox-close:hover {
  opacity: 1;
}


/* ===== LIGHTBOX ARROWS ===== */
.lightbox-arrow {
  position: relative;
  top: auto;
  transform: none;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 48px;
  line-height: 1;
  width: 56px;
  height: 80px;
  cursor: pointer;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  z-index: 5010;
  padding: 0;
}
.lightbox-arrow:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}
.lightbox-arrow-left {
  left: auto;
}
.lightbox-arrow-right {
  right: auto;
}
@media (max-width: 600px) {
  .lightbox-arrow {
    width: 40px;
    height: 60px;
    font-size: 32px;
  }
}

/* ===== SUBFOLDER GRID ===== */
.subfolder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  padding: 20px 0;
  align-items: stretch;
  justify-items: stretch;
}
.subfolder-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 32px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  text-decoration: none;
  color: #fff;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
  cursor: pointer;
}
.subfolder-card:hover {
  transform: translateY(-4px);
  border-color: rgba(168, 85, 247, 0.4);
  background: rgba(168, 85, 247, 0.08);
}
.subfolder-card .folder-icon {
  font-size: 48px;
  margin-bottom: 12px;
}
.subfolder-card h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 6px;
}
.subfolder-card .file-count {
  font-size: 13px;
  color: #888;
}

/* ===== TIER CONGRATS POPUP ===== */
.tier-congrats-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9000;
  align-items: center;
  justify-content: center;
}
.tier-congrats-overlay.active {
  display: flex;
}
.tier-congrats-modal {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 20px;
  padding: 48px 40px;
  max-width: 440px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 0 60px rgba(168, 85, 247, 0.15);
}
.tier-congrats-modal h2 {
  color: #fff;
  font-size: 28px;
  margin: 0 0 12px;
}
.tier-congrats-modal p {
  color: #ccc;
  font-size: 16px;
  line-height: 1.6;
  margin: 8px 0;
}
.tier-congrats-modal strong {
  color: #a855f7;
}
.tier-congrats-close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 28px;
  color: #888;
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.2s;
}
.tier-congrats-close:hover {
  color: #fff;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0a0a0f;
}

::-webkit-scrollbar-thumb {
  background: #2a2a3e;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3a3a55;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .homepage {
    padding: 40px 20px 60px;
  }

  .site-header h1 {
    font-size: 28px;
  }

  .folder-grid {
    gap: 14px;
  }

  .folder-card {
    width: calc(50% - 14px);
    padding: 28px 16px;
  }

  .folder-icon {
    font-size: 52px;
    margin-bottom: 14px;
  }

  .tier-chart {
    grid-template-columns: 1fr;
  }

  .access-header h1 {
    font-size: 32px;
    letter-spacing: 3px;
  }

  .big-cta {
    padding: 18px 40px;
    font-size: 16px;
    letter-spacing: 2px;
  }

  .disclaimer-box {
    padding: 28px 24px;
  }

  .media-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .back-btn {
    top: 16px;
    left: 16px;
    font-size: 13px;
    padding: 10px 18px;
  }

  .tier-unlocked-btn {
    top: 72px;
    padding: 12px 22px;
    font-size: 13px;
    letter-spacing: 1.2px;
    max-width: calc(100vw - 32px);
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .folder-grid {
    gap: 10px;
  }

  .folder-card {
    width: 100%;
  }

  .media-grid {
    grid-template-columns: 1fr;
  }

  .back-btn {
    top: 12px;
    left: 12px;
    padding: 10px 16px;
  }

  .tier-unlocked-btn {
    top: 66px;
    padding: 10px 18px;
    font-size: 12px;
    letter-spacing: 1px;
  }
}

/* ===== REFERRAL LEADERBOARD (LEFT SIDE) ===== */
.leaderboard-widget {
  position: fixed;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5000;
  width: 200px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(14, 14, 28, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 14px 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.leaderboard-title {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(192, 132, 252, 0.6);
  margin-bottom: 4px;
  text-align: center;
}

.leaderboard-subtitle {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.6px;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 12px;
  text-align: center;
}

.leaderboard-list {
  list-style: none;
  width: 100%;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.leaderboard-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 11px;
  padding: 4px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
}

.leaderboard-list li .lb-rank {
  font-weight: 900;
  color: rgba(192, 132, 252, 0.85);
  min-width: 18px;
  text-align: center;
  font-size: 10px;
}

.leaderboard-list li .lb-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
}

.leaderboard-list li .lb-count {
  font-weight: 900;
  color: rgba(34, 211, 238, 0.85);
  font-size: 10px;
}

.leaderboard-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.leaderboard-arrow {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.6);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
  padding: 0;
  line-height: 1;
}

.leaderboard-arrow:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(192, 132, 252, 0.35);
}

.leaderboard-arrow:disabled {
  opacity: 0.25;
  cursor: default;
}

.leaderboard-page {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.4px;
}

@media (max-width: 1100px) {
  .leaderboard-widget {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    z-index: auto;
    width: 100%;
    max-width: 500px;
    margin: 30px auto;
    border-radius: 14px;
  }
}
