/* ==========================================================================
   TabFlix VIP & Supabase Auth Styles
   Glassmorphism, Golden Glow, Premium Badges & 2026 Content Gate
   ========================================================================== */

/* VIP Nav Button */
.tabflix-vip-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  user-select: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.tabflix-vip-btn.is-vip {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.2) 0%, rgba(245, 158, 11, 0.3) 100%);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fef08a;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.25);
}

.tabflix-vip-btn.is-vip:hover {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.3) 0%, rgba(245, 158, 11, 0.45) 100%);
  border-color: rgba(245, 158, 11, 0.8);
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.4);
  transform: translateY(-1px);
}

.tabflix-vip-btn.is-free {
  background: linear-gradient(135deg, #e50914 0%, #b91c1c 100%);
  border: 1px solid rgba(229, 9, 20, 0.6);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(229, 9, 20, 0.3);
}

.tabflix-vip-btn.is-free:hover {
  background: linear-gradient(135deg, #f87171 0%, #dc2626 100%);
  box-shadow: 0 6px 20px rgba(229, 9, 20, 0.5);
  transform: translateY(-1px);
}

/* Modal Overlay */
#tabflix-auth-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

#tabflix-auth-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Modal Card */
.tabflix-modal-card {
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  background: #0d0d12;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 40px rgba(229, 9, 20, 0.15);
  transform: scale(0.96) translateY(10px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  color: #f4f4f5;
  position: relative;
}

#tabflix-auth-modal-overlay.active .tabflix-modal-card {
  transform: scale(1) translateY(0);
}

/* Modal Header */
.tabflix-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
}

.tabflix-modal-close {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #a1a1aa;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.2s ease;
}

.tabflix-modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

/* Tabs */
.tabflix-nav-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px;
  margin: 16px 24px 0 24px;
  border-radius: 14px;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.tabflix-nav-tab {
  flex: 1;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: 10px;
  color: #a1a1aa;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.tabflix-nav-tab.active {
  background: #ffffff;
  color: #09090b;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Tab Content */
.tabflix-tab-pane {
  display: none;
  padding: 20px 24px 28px 24px;
}

.tabflix-tab-pane.active {
  display: block;
  animation: tabflixFadeIn 0.25s ease;
}

@keyframes tabflixFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* User Profile Box */
.tabflix-user-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.tabflix-user-avatar {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  object-fit: cover;
  background: linear-gradient(135deg, #e50914 0%, #3f3f46 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

/* Plan Cards */
.tabflix-plans-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

@media (max-width: 500px) {
  .tabflix-plans-grid {
    grid-template-columns: 1fr;
  }
}

.tabflix-plan-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.tabflix-plan-card:hover {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.03);
  transform: translateY(-2px);
}

.tabflix-plan-card.featured {
  border-color: rgba(245, 158, 11, 0.6);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.08) 0%, rgba(255, 255, 255, 0.01) 100%);
}

.tabflix-plan-card.featured::before {
  content: "BEST VALUE";
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  background: #f59e0b;
  color: #000;
  border-radius: 6px;
  letter-spacing: 0.05em;
}

/* Redeem Section */
.tabflix-redeem-box {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.06) 0%, rgba(229, 9, 20, 0.04) 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 18px;
  padding: 18px;
  margin-top: 14px;
}

.tabflix-input-group {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.tabflix-code-input {
  flex: 1;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 10px 14px;
  color: #ffffff;
  font-family: monospace;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  outline: none;
  transition: border-color 0.2s ease;
}

.tabflix-code-input:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
}

.tabflix-btn-primary {
  background: #ffffff;
  color: #000000;
  border: none;
  border-radius: 12px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}

.tabflix-btn-primary:hover {
  background: #f4f4f5;
  transform: scale(1.02);
}

.tabflix-btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.tabflix-btn-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #000000;
  border: none;
  border-radius: 12px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

.tabflix-btn-gold:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.6);
  transform: scale(1.02);
}

/* Google Sign-in Button */
.tabflix-btn-google {
  width: 100%;
  background: #ffffff;
  color: #1f1f1f;
  border: 1px solid #dadce0;
  border-radius: 14px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.tabflix-btn-google:hover {
  background: #f8f9fa;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
}

/* ==========================================================================
   2026 VIP Content Gate / Lock Screen Styles
   ========================================================================== */
.tabflix-2026-lock {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 380px;
  background: radial-gradient(circle at center, #181822 0%, #07070a 100%);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(245, 158, 11, 0.1);
  color: #ffffff;
  user-select: none;
}

.tabflix-2026-lock::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(245, 158, 11, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.tabflix-lock-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fef08a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.2);
}

.tabflix-lock-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 8px;
}

.tabflix-lock-desc {
  font-size: 13px;
  color: #a1a1aa;
  max-width: 480px;
  line-height: 1.5;
  margin-bottom: 22px;
}

.tabflix-lock-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 2;
}

/* Toast Notice */
.tabflix-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(18, 18, 24, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 10px 20px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  z-index: 100000;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 10px;
}

.tabflix-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.tabflix-toast.success {
  border-color: rgba(34, 197, 94, 0.5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(34, 197, 94, 0.2);
}

.tabflix-toast.error {
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(239, 68, 68, 0.2);
}
