/* ============================================================
   PHASE 1: SCI-FI LOADER
   ============================================================ */
.rasta-loader {
  position: fixed; inset: 0; z-index: 99999;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: #030a06;
  transition: opacity 0.6s ease;
}
.rasta-loader.fade-out { opacity: 0; pointer-events: none; }

.rasta-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, #0a1f12 0%, #030a06 70%, #000 100%);
}

/* Perspective grid background */
.loader-grid-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(rgba(45,212,191,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45,212,191,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(500px) rotateX(45deg);
  transform-origin: center 80%;
  animation: gridPulse 4s ease-in-out infinite;
}
@keyframes gridPulse {
  0%, 100% { opacity: 0.3; background-size: 60px 60px; }
  50% { opacity: 0.6; background-size: 55px 55px; }
}

/* Spinner with concentric rings */
.rasta-spinner {
  position: relative; z-index: 2;
  width: 160px; height: 160px;
}
.rasta-ring {
  position: absolute; border-radius: 50%;
  border: 2px solid transparent;
}
.rasta-ring.r1 {
  inset: 0;
  border-top-color: rgba(255,255,255,0.9);
  border-right-color: rgba(255,255,255,0.3);
  animation: spin1 1.8s linear infinite;
  box-shadow: 0 0 20px rgba(255,255,255,0.1);
}
.rasta-ring.r2 {
  inset: 18px;
  border-bottom-color: rgba(212,175,55,0.8);
  border-left-color: rgba(212,175,55,0.3);
  animation: spin2 2.4s linear infinite;
  box-shadow: 0 0 15px rgba(212,175,55,0.1);
}
.rasta-ring.r3 {
  inset: 36px;
  border-top-color: rgba(45,212,191,0.7);
  border-right-color: rgba(45,212,191,0.2);
  animation: spin1 3s linear infinite;
  box-shadow: 0 0 15px rgba(45,212,191,0.1);
}

.loader-core {
  position: absolute;
  inset: 54px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(212,175,55,0.05) 60%, transparent 100%);
  animation: corePulse 2s ease-in-out infinite;
  box-shadow: 0 0 30px rgba(255,255,255,0.08);
}

@keyframes spin1 { to { transform: rotate(360deg); } }
@keyframes spin2 { to { transform: rotate(-360deg); } }
@keyframes corePulse {
  0%, 100% { transform: scale(0.85); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 1; }
}

.rasta-text {
  position: relative; z-index: 2;
  margin-top: 32px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 4px;
  text-transform: uppercase;
  animation: textPulse 2s ease-in-out infinite;
}
@keyframes textPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.9; }
}

.rasta-bar {
  position: relative; z-index: 2;
  width: 200px; height: 2px;
  margin-top: 20px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  overflow: hidden;
}
.rasta-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255,255,255,0.6), rgba(212,175,55,0.8));
  border-radius: 4px;
  animation: barFill 2.5s ease-in-out forwards;
}
@keyframes barFill {
  0% { width: 0%; }
  60% { width: 70%; }
  100% { width: 100%; }
}


/* ============================================================
   PHASE 2: FULLSCREEN SPLASH — Cannabis.uy Brand Text
   ============================================================ */
.splash-cinematic {
  position: fixed; inset: 0; z-index: 99998;
  display: flex; align-items: center; justify-content: center;
  background: #030a06;
  overflow: hidden;
  transition: opacity 0.8s ease;
}
.splash-cinematic.fade-out { opacity: 0; pointer-events: none; }

.splash-brand-text {
  position: relative; z-index: 2;
  width: 100%; text-align: center;
  padding: 0 16px;
}
.splash-brand-main {
  display: inline-block;
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.5rem, 12vw, 8rem);
  font-weight: 900;
  font-style: italic;
  letter-spacing: 4px;
  color: transparent;
  background: linear-gradient(
    135deg,
    #b8860b 0%, #d4af37 15%, #f5e6a3 28%,
    #c8961e 42%, #d4af37 55%, #f5e6a3 68%,
    #b8860b 82%, #d4af37 100%
  );
  background-size: 200% 200%;
  background-clip: text;
  -webkit-background-clip: text;
  text-shadow: 0 0 60px rgba(212,175,55,0.35), 0 0 120px rgba(212,175,55,0.15);
  filter: drop-shadow(0 4px 20px rgba(212,175,55,0.4))
          drop-shadow(0 0 40px rgba(45,212,191,0.12));
  animation: splashBrandIn 1.2s ease-out both, splashShimmer 3s ease-in-out infinite 1.2s;
}

@keyframes splashBrandIn {
  0% { transform: scale(0.7) translateY(30px); opacity: 0; letter-spacing: -4px; }
  60% { transform: scale(1.02) translateY(-4px); opacity: 1; }
  100% { transform: scale(1) translateY(0); opacity: 1; letter-spacing: 4px; }
}

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

/* Green sparkle particles */
.splash-brand-particles::before,
.splash-brand-particles::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  animation: sparkle 2.5s ease-in-out infinite;
}
.splash-brand-particles::before {
  width: 6px; height: 6px;
  background: rgba(45,212,191,0.8);
  top: 30%; left: 15%;
  box-shadow: 0 0 12px rgba(45,212,191,0.6), 0 0 30px rgba(45,212,191,0.3);
  animation-delay: 0.5s;
}
.splash-brand-particles::after {
  width: 4px; height: 4px;
  background: rgba(227,239,38,0.7);
  top: 50%; right: 18%;
  box-shadow: 0 0 10px rgba(227,239,38,0.5), 0 0 25px rgba(227,239,38,0.2);
  animation-delay: 1.2s;
}
@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(0); }
  50% { opacity: 1; transform: scale(1.5); }
}

.splash-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(3,10,6,0.7) 100%);
  z-index: 10;
}


/* ============================================================
   CANNABIS CLUBS LANDING
   ============================================================ */
.clubs-landing {
  position: fixed; inset: 0;
  background: linear-gradient(165deg, #030a06 0%, #071a0e 30%, #0a2415 60%, #040d08 100%);
  z-index: 9000;
  display: flex; flex-direction: column;
  overflow-y: auto;
  animation: clubsReveal 0.8s ease-out both;
}
@keyframes clubsReveal {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* Ambient background */
.clubs-bg-particles {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.clubs-ambient-glow {
  position: fixed; top: -200px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, rgba(45,212,191,0.06) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}
.clubs-float-particle {
  position: absolute;
  width: 2px; height: 2px;
  background: rgba(45,212,191,0.4);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(45,212,191,0.3);
  animation: clubParticleFloat linear infinite;
}
@keyframes clubParticleFloat {
  0%   { transform: translateY(100vh) scale(0); opacity: 0; }
  15%  { opacity: 0.7; transform: scale(1); }
  85%  { opacity: 0.4; }
  100% { transform: translateY(-10vh) scale(0.5); opacity: 0; }
}

/* ---- Centered wrapper ---- */
.clubs-center-wrapper {
  position: relative; z-index: 2;
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 40px 24px;
  text-align: center;
}

.clubs-title {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 800;
  font-style: italic;
  color: transparent;
  background: linear-gradient(135deg, #d4af37 0%, #f5e6a3 30%, #c5a028 50%, #b8860b 70%, #d4af37 100%);
  background-clip: text;
  -webkit-background-clip: text;
  letter-spacing: 2px;
  line-height: 1.1;
  filter: drop-shadow(0 2px 8px rgba(212,175,55,0.3));
  animation: brandSlideIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}
.clubs-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 400;
  color: rgba(45,212,191,0.7);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 8px;
  animation: brandSlideIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both;
}
@keyframes brandSlideIn {
  0% { transform: translateY(-30px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* ---- Clubs grid (prepared for multi-club) ---- */
.clubs-single-card {
  margin-top: 40px;
  width: 70vw;
  max-width: 900px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  justify-items: center;
  animation: brandSlideIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}
/* When 2+ clubs exist, switch to 2-col grid */
.clubs-single-card.multi-clubs {
  grid-template-columns: repeat(2, 1fr);
}

.club-card-new {
  position: relative;
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 36px 48px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  backdrop-filter: blur(8px);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  min-width: 0;
  box-sizing: border-box;
}
.club-card-new::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(45,212,191,0.05) 0%, transparent 50%, rgba(212,175,55,0.03) 100%);
  opacity: 0; transition: opacity 0.4s;
  border-radius: 20px;
}
.club-card-new:hover {
  border-color: rgba(45,212,191,0.3);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 30px rgba(45,212,191,0.1);
}
.club-card-new:hover::before { opacity: 1; }
.club-card-new:active { transform: translateY(-2px) scale(0.98); }

/* Logo image in card */
.club-card-logo-img {
  width: 80px; height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(212,175,55,0.4);
  box-shadow: 0 0 25px rgba(212,175,55,0.2);
  transition: all 0.3s;
}
.club-card-new:hover .club-card-logo-img {
  border-color: rgba(45,212,191,0.4);
  box-shadow: 0 0 30px rgba(45,212,191,0.2);
  transform: scale(1.05);
}

.club-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem; font-weight: 700;
  color: #e6edf3;
  text-align: center;
  transition: color 0.3s;
}
.club-card-new:hover .club-card-title { color: rgba(45,212,191,0.9); }

.club-card-location {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem; color: rgba(255,255,255,0.35);
  letter-spacing: 1px; text-transform: uppercase;
}
.club-card-members {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem; color: rgba(212,175,55,0.6);
  font-weight: 500;
}
.club-card-status {
  display: inline-block;
  padding: 3px 12px; border-radius: 20px;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.5px;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
}
.club-card-status.active {
  background: rgba(45,212,191,0.12);
  color: rgba(45,212,191,0.9);
  border: 1px solid rgba(45,212,191,0.25);
}

/* ---- Footer ---- */
.clubs-footer {
  position: relative; z-index: 2;
  text-align: center; padding: 20px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.2);
  letter-spacing: 1px;
}


/* ============================================================
   CLUB LOGIN OVERLAY
   ============================================================ */
.club-login-overlay {
  position: fixed; inset: 0; z-index: 9500;
  display: flex; align-items: center; justify-content: center;
}
.club-login-backdrop {
  position: absolute; inset: 0;
  background: rgba(3,10,6,0.85);
  backdrop-filter: blur(16px);
  animation: fadeIn 0.4s ease-out;
}
@keyframes fadeIn { 0% { opacity: 0; } 100% { opacity: 1; } }

.club-login-card {
  position: relative; z-index: 2;
  width: 70vw; max-width: 600px;
  background: linear-gradient(165deg, rgba(10,40,28,0.95) 0%, rgba(5,20,14,0.98) 100%);
  border: 1px solid rgba(212,175,55,0.15);
  border-radius: 24px;
  padding: 40px 36px 32px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 60px rgba(212,175,55,0.05);
  animation: loginCardIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  box-sizing: border-box;
}
@keyframes loginCardIn {
  0% { transform: translateY(40px) scale(0.95); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

.club-login-back {
  position: absolute; top: 16px; left: 20px;
  background: none; border: none;
  color: rgba(255,255,255,0.4);
  font-size: 14px; font-family: 'Inter', sans-serif;
  cursor: pointer; transition: color 0.3s;
  padding: 4px 8px;
}
.club-login-back:hover { color: rgba(45,212,191,0.8); }

.club-login-logo-container {
  text-align: center; margin-bottom: 28px;
}
.club-login-logo-img {
  width: 90px; height: 90px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  display: block;
  border: 2px solid rgba(212,175,55,0.3);
  box-shadow: 0 0 30px rgba(212,175,55,0.15);
  animation: logoFloat 5s ease-in-out infinite;
}
@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.club-login-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-weight: 700;
  color: #e6edf3;
  margin-bottom: 4px;
}
.club-login-location {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: rgba(45,212,191,0.5);
  letter-spacing: 2px; text-transform: uppercase;
}

.club-login-exclusive {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  margin-top: 12px;
}
.club-login-exclusive-line {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.7rem;
  color: rgba(212,175,55,0.45);
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 600;
}
.club-login-exclusive-title {
  font-family: 'Playfair Display', serif;
  font-size: 0.85rem;
  font-style: italic;
  color: rgba(212,175,55,0.55);
  letter-spacing: 2px;
}

.club-login-form { display: flex; flex-direction: column; gap: 18px; }
.club-input-group {
  display: flex; flex-direction: column; gap: 6px;
}
.club-input-group label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem; font-weight: 500;
  color: rgba(255,255,255,0.5);
  letter-spacing: 1px;
}
.club-input-group input {
  padding: 14px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  color: #e6edf3; font-size: 14px; font-family: 'Inter', sans-serif;
  transition: all 0.3s;
}
.club-input-group input:focus {
  outline: none;
  border-color: rgba(212,175,55,0.4);
  box-shadow: 0 0 20px rgba(212,175,55,0.08);
  background: rgba(255,255,255,0.06);
}
.club-input-group input::placeholder { color: rgba(255,255,255,0.2); }

.club-login-error {
  padding: 10px 14px;
  background: rgba(255,60,60,0.1);
  border: 1px solid rgba(255,60,60,0.3);
  border-radius: 8px;
  color: #ff6b6b;
  font-size: 13px; font-family: 'Inter', sans-serif;
  text-align: center;
}

.club-login-submit {
  padding: 16px;
  background: linear-gradient(135deg, rgba(212,175,55,0.2) 0%, rgba(212,175,55,0.1) 100%);
  border: 1px solid rgba(212,175,55,0.35);
  border-radius: 12px;
  color: #d4af37;
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem; font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.4s;
  margin-top: 4px;
}
.club-login-submit:hover {
  background: linear-gradient(135deg, rgba(212,175,55,0.3) 0%, rgba(212,175,55,0.15) 100%);
  box-shadow: 0 0 30px rgba(212,175,55,0.15);
  transform: translateY(-2px);
}
.club-login-submit:active { transform: translateY(0); opacity: 0.9; }
.club-login-footer-text {
  text-align: center; margin-top: 20px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.8rem; color: rgba(255,255,255,0.15);
  letter-spacing: 1px;
}

.club-login-card.outro {
  animation: loginCardOut 0.4s ease-in forwards !important;
}
@keyframes loginCardOut {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(-30px) scale(0.95); opacity: 0; }
}


/* ============================================================
   POST-LOGIN SPLASH
   ============================================================ */
.splash-screen {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(165deg, #030a06, #071a0e);
}
.splash-glow {
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,55,0.15) 0%, transparent 70%);
  animation: splashGlowPulse 2s ease-in-out infinite;
}
@keyframes splashGlowPulse {
  0%, 100% { transform: scale(0.9); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 1; }
}
.splash-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  align-items: center; gap: 20px;
}
.splash-logo {
  width: 120px; height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(212,175,55,0.4);
  box-shadow: 0 0 40px rgba(212,175,55,0.2);
}
.splash-logo-enter {
  animation: splashLogoIn 0.8s ease-out both;
}
@keyframes splashLogoIn {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.splash-welcome {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem; font-weight: 700;
  color: rgba(212,175,55,0.8);
  letter-spacing: 2px;
}
.splash-screen.splash-outro {
  animation: splashFadeOut 0.8s ease-out forwards;
}
@keyframes splashFadeOut {
  to { opacity: 0; }
}


/* ============================================================
   RESPONSIVE — 70vw across all breakpoints
   ============================================================ */

/* Desktop / Notebook (> 1024px) — 70vw, max 900px */
@media (min-width: 1025px) {
  .clubs-single-card { width: 70vw; max-width: 900px; }
  .club-login-card { width: 70vw; max-width: 600px; }
}

/* Tablet landscape (769-1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .clubs-single-card { width: 70vw; max-width: 700px; }
  .club-login-card { width: 70vw; max-width: 520px; }
  .club-card-new { padding: 30px 36px; }
}

/* Tablet portrait / large phones (481-768px) */
@media (max-width: 768px) {
  .clubs-title { font-size: 2rem; }
  .clubs-subtitle { font-size: 0.8rem; letter-spacing: 2px; }
  .clubs-single-card { width: 75vw; max-width: 560px; }
  .clubs-single-card.multi-clubs { grid-template-columns: 1fr; }
  .club-card-new { padding: 28px 32px; }
  .club-login-card { width: 75vw; max-width: 420px; padding: 28px 24px 24px; }
  .club-login-name { font-size: 1.25rem; }
  .rasta-spinner { width: 130px; height: 130px; }
}

/* Smartphones (< 480px) */
@media (max-width: 480px) {
  .clubs-title { font-size: 1.6rem; letter-spacing: 1px; }
  .clubs-subtitle { font-size: 0.7rem; }
  .clubs-single-card { width: 85vw; max-width: none; }
  .clubs-single-card.multi-clubs { grid-template-columns: 1fr; }
  .clubs-center-wrapper { padding: 30px 16px; }
  .clubs-footer { font-size: 0.75rem; }
  .club-card-new { padding: 24px 20px; }
  .club-login-card { width: 88vw; max-width: none; padding: 24px 20px 20px; border-radius: 18px; }
  .rasta-spinner { width: 110px; height: 110px; }
  .rasta-ring.r2 { inset: 14px; }
  .rasta-ring.r3 { inset: 28px; }
  .loader-core { inset: 42px; }
}
