/* ===== 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;
}

.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 below the profile widget, not inside the dropdown */
.profile-telegram-external {
  position: fixed;
  top: 62px;
  right: 16px;
  z-index: 9998;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  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: 20px;
  height: 20px;
  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: 5200;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  cursor: pointer;
  font-weight: 900;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #0a0a0f;
  background: linear-gradient(135deg, #22d3ee, #7c3aed, #ff4d6d);
  box-shadow: 0 14px 60px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.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: 6200;
  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;
}

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

.disclaimer-box h1 {
  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;
}

/* ===== 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: 6500;
  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;
}

.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;
  text-align: center;
  text-decoration: none;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #0a0a0f;
  background: linear-gradient(135deg, #22d3ee, #7c3aed, #ff4d6d);
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.referral-premium-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
}

/* ===== 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;
}

.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: 320px;
  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: 46px 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-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;
}

/* ===== 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;
}

.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: 50px 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: 20px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #fff;
  text-decoration: none;
  padding: 18px 50px;
  border-radius: 14px;
  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: absolute;
  top: 30px;
  left: 40px;
  color: #c084fc;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border: 1px solid rgba(192, 132, 252, 0.3);
  border-radius: 8px;
  transition: all 0.3s ease;
  background: rgba(20, 20, 40, 0.6);
  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: 6000;
  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);
}

.social-btn.discord { border-top: 3px solid #5865F2; 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;
}

.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;
}

.lightbox.active {
  display: flex;
}

.lightbox img,
.lightbox video {
  max-width: 90%;
  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;
}

/* ===== 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;
  }
}

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

  .folder-card {
    width: 100%;
  }

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