/* ═══════════════════════════════════════════════════════════════
   بوت حصريات الخليج — Premium VIP 3D Edition
   Full Reel Display | 3D Effects | Mobile First
   ═══════════════════════════════════════════════════════════════ */

:root {
  --gold: #F5A800;
  --gold-light: #FFD060;
  --gold-dark: #C47D00;
  --gold-accent: #FFE4A0;
  --gold-glow: rgba(245, 168, 0, 0.5);
  --black: #0a0a0a;
  --dark: #141414;
  --darker: #0d0d0d;
  --surface: #1a1a1a;
  --surface-elevated: #232323;
  --border: #2a2a2a;
  --border-light: #3a3a3a;
  --text: #fafafa;
  --text-dim: #b0b0b0;
  --text-muted: #666;
  --success: #10B981;
  --danger: #EF4444;
  --info: #3B82F6;
  
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

html, body {
  width: 100%;
  height: 100%;
  font-family: 'Cairo', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background: var(--black);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior: none;
  text-rendering: optimizeSpeed;
  perspective: 1500px;
}

body {
  overflow: hidden;
  background: 
    radial-gradient(ellipse at top, rgba(245,168,0,0.08), transparent 60%),
    radial-gradient(ellipse at bottom right, rgba(196,125,0,0.06), transparent 50%),
    var(--black);
}

img { -webkit-user-drag: none; user-select: none; }
video { -webkit-user-select: none; user-select: none; }

body::before {
  content: '';
  position: fixed;
  inset: -50%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(245,168,0,0.04), transparent 30%),
    radial-gradient(circle at 80% 70%, rgba(255,208,96,0.03), transparent 35%);
  animation: bgRotate 30s linear infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes bgRotate {
  to { transform: rotate(360deg); }
}

/* ═══════════════ 3D LOADING SCREEN ═══════════════ */

.loading-screen {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(26,16,0,1), var(--black) 70%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  z-index: 9999;
  padding-top: var(--safe-top);
  padding-bottom: var(--safe-bottom);
  perspective: 1000px;
  overflow: hidden;
  transition: opacity 0.6s ease;
}

.loading-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 0%, rgba(245,168,0,0.05) 50%, transparent 70%);
  animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.1); }
}

.loading-logo-wrap {
  position: relative;
  width: 180px;
  height: 180px;
  animation: logo3DEntry 1s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-style: preserve-3d;
}

@keyframes logo3DEntry {
  from { transform: scale(0.3) rotateY(180deg); opacity: 0; }
}

.loading-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 60px rgba(245, 168, 0, 0.8));
  animation: logo3DFloat 4s ease-in-out infinite;
  border-radius: 50%;
  transform-style: preserve-3d;
}

@keyframes logo3DFloat {
  0%, 100% { 
    transform: translateY(0) rotateY(0deg) scale(1); 
    filter: drop-shadow(0 10px 50px rgba(245, 168, 0, 0.7));
  }
  25% { transform: translateY(-12px) rotateY(15deg) scale(1.03); }
  50% { 
    transform: translateY(-18px) rotateY(0deg) scale(1.05);
    filter: drop-shadow(0 30px 70px rgba(245, 168, 0, 0.9));
  }
  75% { transform: translateY(-12px) rotateY(-15deg) scale(1.03); }
}

.loading-ring-outer {
  position: absolute;
  inset: -18px;
  border: 3px solid transparent;
  border-top-color: var(--gold);
  border-right-color: var(--gold-light);
  border-radius: 50%;
  animation: spin3D 3s linear infinite;
  transform-style: preserve-3d;
  box-shadow: 0 0 30px rgba(245, 168, 0, 0.3);
}

.loading-ring-outer::after {
  content: '';
  position: absolute;
  inset: -12px;
  border: 2px solid transparent;
  border-bottom-color: var(--gold-dark);
  border-left-color: var(--gold);
  border-radius: 50%;
  animation: spin3D 4s linear infinite reverse;
}

@keyframes spin3D {
  to { transform: rotate(360deg) rotateX(20deg); }
}

.loading-text {
  font-size: 38px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold-accent), var(--gold), var(--gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
  margin-top: 24px;
  opacity: 0;
  animation: text3DEntry 0.8s 0.4s forwards cubic-bezier(0.34, 1.56, 0.64, 1);
  text-shadow: 0 8px 32px rgba(245, 168, 0, 0.5);
  transform-style: preserve-3d;
  position: relative;
  text-align: center;
}

.loading-text::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  animation: lineFade 0.6s 1s forwards;
}

@keyframes lineFade {
  to { opacity: 1; }
}

@keyframes text3DEntry {
  from { opacity: 0; transform: translateZ(-100px) rotateX(-30deg); }
  to { opacity: 1; transform: translateZ(0) rotateX(0); }
}

.loading-sub {
  font-size: 13px;
  color: var(--gold-dark);
  letter-spacing: 4px;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeIn 0.6s 0.9s forwards;
  font-weight: 800;
  margin-top: 16px;
}

@keyframes fadeIn { to { opacity: 1; } }

.loading-progress {
  width: 260px;
  height: 4px;
  background: rgba(245, 168, 0, 0.15);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 14px;
  box-shadow: 0 0 20px rgba(245, 168, 0, 0.2);
}

.loading-progress::before {
  content: '';
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--gold-light), var(--gold), transparent);
  animation: loadProgress 1.5s ease-in-out infinite;
  box-shadow: 0 0 15px var(--gold);
}

@keyframes loadProgress {
  0% { width: 0%; transform: translateX(-100%); }
  50% { width: 100%; }
  100% { width: 100%; transform: translateX(100%); }
}

/* ═══════════════ AGE WARNING ═══════════════ */

.age-warning {
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(ellipse at 50% 30%, rgba(245,168,0,0.18), transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(196,125,0,0.1), transparent 50%),
    var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  padding-top: max(20px, var(--safe-top));
  padding-bottom: max(20px, var(--safe-bottom));
  perspective: 1200px;
  animation: ageFadeIn 0.5s ease;
}

@keyframes ageFadeIn {
  from { opacity: 0; }
}

.age-card {
  background: linear-gradient(160deg, rgba(28,16,0,0.95), rgba(13,13,13,0.95));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(245, 168, 0, 0.25);
  border-radius: 28px;
  padding: 40px 28px;
  text-align: center;
  width: 100%;
  max-width: 380px;
  box-shadow: 
    0 0 80px rgba(245, 168, 0, 0.2),
    0 30px 60px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: card3DEntry 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-style: preserve-3d;
  position: relative;
}

.age-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 28px;
  background: linear-gradient(135deg, transparent, rgba(245,168,0,0.1), transparent);
  pointer-events: none;
  animation: cardShine 4s ease-in-out infinite;
}

@keyframes cardShine {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

@keyframes card3DEntry {
  from {
    transform: translateY(60px) rotateX(-15deg) scale(0.9);
    opacity: 0;
  }
}

.age-logo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 10px 30px rgba(245, 168, 0, 0.5));
  animation: logoFloat 3s ease-in-out infinite;
  border: 3px solid rgba(245, 168, 0, 0.2);
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0) rotateY(0deg); }
  50% { transform: translateY(-10px) rotateY(10deg); }
}

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
  color: var(--black);
  border-radius: 50%;
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 18px;
  box-shadow: 
    0 10px 30px rgba(245, 168, 0, 0.5),
    inset 0 2px 4px rgba(255, 255, 255, 0.4),
    inset 0 -2px 4px rgba(0, 0, 0, 0.2);
  transform: perspective(100px) rotateX(15deg);
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { transform: perspective(100px) rotateX(15deg) scale(1); }
  50% { transform: perspective(100px) rotateX(15deg) scale(1.08); }
}

.age-title {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #fff, var(--gold-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 20px rgba(245, 168, 0, 0.3);
}

.age-desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 28px;
}

.age-desc strong {
  color: var(--gold);
  font-weight: 800;
}

/* ═══════════════ BUTTONS ═══════════════ */

.btn-gold {
  position: relative;
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 50%, var(--gold-light) 100%);
  color: var(--black);
  border: none;
  border-radius: 14px;
  font-family: 'Cairo', sans-serif;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 
    0 10px 30px rgba(245, 168, 0, 0.4),
    0 4px 12px rgba(196, 125, 0, 0.3),
    inset 0 2px 4px rgba(255, 255, 255, 0.4),
    inset 0 -2px 4px rgba(0, 0, 0, 0.15);
  margin-bottom: 10px;
  overflow: hidden;
  letter-spacing: 0.3px;
  transform-style: preserve-3d;
}

.btn-gold::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.3) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.8s;
}

.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 20px 50px rgba(245, 168, 0, 0.6),
    0 8px 20px rgba(196, 125, 0, 0.4),
    inset 0 2px 4px rgba(255, 255, 255, 0.5);
}

.btn-gold:hover::before { transform: translateX(100%); }

.btn-gold:active {
  transform: translateY(0) scale(0.98);
}

.btn-gold:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-ghost {
  width: 100%;
  padding: 13px 20px;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-family: 'Cairo', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-ghost:hover {
  color: var(--text-dim);
  border-color: var(--text-muted);
  background: rgba(255,255,255,0.02);
  transform: translateY(-2px);
}

.full-width { width: 100%; }

/* ═══════════════ MAIN APP ═══════════════ */

.app {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--black);
  animation: appFadeIn 0.6s ease;
}

@keyframes appFadeIn {
  from { opacity: 0; }
}

.topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: calc(80px + var(--safe-top));
  padding-top: var(--safe-top);
  background: linear-gradient(180deg, rgba(13,13,13,0.97), rgba(13,13,13,0.85));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(245,168,0,0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: max(16px, var(--safe-right));
  padding-left: max(16px, var(--safe-left));
  z-index: 50;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  perspective: 500px;
}

.brand-logo {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(245, 168, 0, 0.6));
  animation: logoRotate 6s linear infinite;
  transform-style: preserve-3d;
  border: 2px solid rgba(245, 168, 0, 0.3);
  padding: 2px;
  background: linear-gradient(135deg, rgba(245,168,0,0.15), rgba(245,168,0,0.02));
}

@keyframes logoRotate {
  0%, 100% { transform: rotateY(0deg); }
  50% { transform: rotateY(360deg); }
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text {
  font-size: 20px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold-accent), var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
  text-shadow: 0 4px 20px rgba(245, 168, 0, 0.5);
  animation: brandShimmer 3s ease-in-out infinite;
  line-height: 1;
  white-space: nowrap;
}

@keyframes brandShimmer {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.3); }
}

.brand-tagline {
  font-size: 11px;
  font-weight: 800;
  color: var(--gold-dark);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-top: 4px;
}

.search-toggle {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--surface), var(--surface-elevated));
  border: 1px solid var(--border);
  color: var(--gold);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.search-toggle:hover, .search-toggle:active {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--black);
  border-color: var(--gold);
  transform: scale(1.08) rotateY(180deg);
  box-shadow: 0 8px 20px rgba(245, 168, 0, 0.4);
}

.search-bar {
  position: fixed;
  top: calc(80px + var(--safe-top));
  right: 0;
  left: 0;
  background: var(--dark);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  display: none;
  align-items: center;
  gap: 10px;
  z-index: 49;
  animation: slideDown3D 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideDown3D {
  from { transform: translateY(-100%) rotateX(-20deg); opacity: 0; }
}

.search-bar.active { display: flex; }

.search-input {
  flex: 1;
  background: var(--darker);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  color: var(--text);
  font-family: 'Cairo';
  font-size: 14px;
  transition: all 0.3s;
}

.search-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245, 168, 0, 0.15);
}

.search-close {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
}

.category-filter {
  position: fixed;
  top: calc(80px + var(--safe-top));
  right: 0;
  left: 0;
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 10px 16px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  z-index: 48;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-bottom: 1px solid rgba(245,168,0,0.1);
}

.category-filter::-webkit-scrollbar { display: none; }
.app.search-active .category-filter { top: calc(140px + var(--safe-top)); }

.cat-pill {
  flex-shrink: 0;
  padding: 10px 18px;
  background: linear-gradient(135deg, var(--surface), var(--surface-elevated));
  border: 1px solid var(--border);
  border-radius: 24px;
  color: var(--text-dim);
  font-family: 'Cairo';
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.cat-pill:hover, .cat-pill.active {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
  color: var(--black);
  border-color: var(--gold);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(245, 168, 0, 0.4);
}

/* ═══════════════ REELS FEED (FIXED!) ═══════════════ */

.feed {
  position: fixed;
  top: calc(134px + var(--safe-top));
  bottom: var(--safe-bottom);
  right: 0;
  left: 0;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  will-change: scroll-position;
}

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

.app.search-active .feed {
  top: calc(194px + var(--safe-top));
}

.reel {
  position: relative;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #050505;
  overflow: hidden;
  contain: layout style paint;
  animation: reelEntry 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes reelEntry {
  from { opacity: 0; transform: scale(0.95); }
}

/* ⭐ FIXED: Video display - object-fit: contain to show full video */
.reel-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  transform: translateZ(0);
  will-change: transform;
  position: relative;
  z-index: 1;
}

/* Background video — blurred for empty space */
.reel-bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.reel-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 110%;
  height: 110%;
  object-fit: cover;
  transform: translate(-50%, -50%) scale(1.2);
  filter: blur(40px) brightness(0.4);
  opacity: 0.7;
}

/* Loader */
.reel-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 5;
  pointer-events: none;
}

.reel-loader.show {
  display: flex;
}

.reel-loader-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(245, 168, 0, 0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.reel-loader-text {
  font-size: 12px;
  color: var(--gold);
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Error state */
.reel-error {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 6;
  background: rgba(0, 0, 0, 0.85);
  padding: 24px 32px;
  border-radius: 16px;
  border: 1px solid var(--border);
  text-align: center;
}

.reel-error.show {
  display: flex;
}

.reel-error-icon {
  font-size: 40px;
}

.reel-error-text {
  font-size: 14px;
  color: var(--text);
  font-weight: 700;
}

.reel-error-retry {
  margin-top: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--black);
  border: none;
  border-radius: 10px;
  font-family: 'Cairo';
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

/* Video progress bar */
.reel-progress {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  z-index: 4;
}

.reel-progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
  box-shadow: 0 0 8px var(--gold);
  transition: width 0.1s linear;
}

/* Counter */
.reel-counter {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 20px;
  z-index: 4;
  letter-spacing: 0.5px;
}

/* Mute toggle */
.reel-mute {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  cursor: pointer;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.reel-mute:hover {
  background: rgba(245, 168, 0, 0.3);
  border-color: var(--gold);
  transform: scale(1.1);
}

.reel-mute .mute-on { display: block; }
.reel-mute.muted .mute-on { display: none; }

.reel-mute::after {
  content: '🔇';
  display: none;
  font-size: 18px;
}

.reel-mute.muted::after {
  display: block;
}

.reel-mute.muted svg {
  display: none;
}

/* Subscribe button enhanced */
.subscribe-icon {
  font-size: 18px;
  animation: planeFly 3s ease-in-out infinite;
  display: inline-block;
}

@keyframes planeFly {
  0%, 100% { transform: translateX(0) rotate(0); }
  50% { transform: translateX(-4px) rotate(-10deg); }
}

.subscribe-text {
  flex: 1;
  text-align: center;
}

.subscribe-arrow {
  font-size: 18px;
  font-weight: 900;
  transition: transform 0.3s;
}

.reel-subscribe:hover .subscribe-arrow {
  transform: translateX(-6px);
}

.reel-subscribe.clicked {
  animation: subscribePulse 0.6s ease;
}

@keyframes subscribePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(0.95); box-shadow: 0 0 0 20px rgba(245, 168, 0, 0); }
}

/* Heart burst animation */
.heart-burst {
  position: absolute;
  font-size: 80px;
  pointer-events: none;
  z-index: 10;
  animation: heartBurst 1s ease-out forwards;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 20px rgba(239, 68, 68, 0.8));
}

@keyframes heartBurst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0) rotate(-30deg);
  }
  20% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.3) rotate(0);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -100%) scale(2) rotate(15deg);
  }
}

/* Reel SVG play icon */
.reel-play-btn svg {
  fill: var(--gold);
  filter: drop-shadow(0 0 8px rgba(245, 168, 0, 0.6));
}

.reel-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.5) 25%,
    transparent 50%,
    rgba(0, 0, 0, 0.4) 100%
  );
  pointer-events: none;
  z-index: 2;
}

.reel-content {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  padding: 24px 16px max(20px, var(--safe-bottom));
  z-index: 3;
  animation: contentSlide 0.8s 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes contentSlide {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
}

.reel-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
  color: var(--black);
  font-size: 11px;
  font-weight: 900;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
  box-shadow: 
    0 8px 20px rgba(245, 168, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  letter-spacing: 0.3px;
}

.reel-category::before {
  content: '★';
  font-size: 10px;
  animation: starSpin 3s linear infinite;
  display: inline-block;
}

@keyframes starSpin {
  to { transform: rotate(360deg); }
}

.reel-title {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 8px;
  line-height: 1.3;
  text-shadow: 0 4px 16px rgba(0,0,0,0.95), 0 2px 4px rgba(0,0,0,0.5);
  letter-spacing: -0.3px;
}

.reel-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.6;
  margin-bottom: 18px;
  max-height: 60px;
  overflow: hidden;
  text-shadow: 0 2px 8px rgba(0,0,0,0.9);
}

.reel-subscribe {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 50%, var(--gold-light) 100%);
  color: var(--black);
  border: none;
  border-radius: 14px;
  font-family: 'Cairo';
  font-size: 16px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 
    0 12px 30px rgba(245, 168, 0, 0.5),
    0 4px 12px rgba(196, 125, 0, 0.4),
    inset 0 2px 4px rgba(255, 255, 255, 0.4);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  animation: subscribeFloat 3s ease-in-out infinite;
}

@keyframes subscribeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.reel-subscribe::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  transform: translateX(-100%);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  to { transform: translateX(100%); }
}

.reel-subscribe:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(245, 168, 0, 0.7);
}

.reel-subscribe:active {
  transform: translateY(0) scale(0.97);
}

.reel-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  border: 2px solid rgba(245, 168, 0, 0.4);
  color: var(--gold);
  font-size: 34px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 4;
  pointer-events: none;
  animation: playBtnPulse 1.5s ease-in-out infinite;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

@keyframes playBtnPulse {
  0%, 100% { 
    transform: translate(-50%, -50%) scale(1); 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 0 0 rgba(245, 168, 0, 0.4);
  }
  50% { 
    transform: translate(-50%, -50%) scale(1.1); 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 0 15px rgba(245, 168, 0, 0);
  }
}

.reel.paused .reel-play-btn { display: flex; }

/* REELS INTRO OVERLAY - First time users */
.reels-intro {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 20px;
  padding-top: max(20px, var(--safe-top));
  padding-bottom: max(20px, var(--safe-bottom));
  animation: introFadeIn 0.4s ease;
}

.reels-intro.show {
  display: flex;
}

@keyframes introFadeIn {
  from { opacity: 0; }
}

.reels-intro-content {
  text-align: center;
  max-width: 340px;
  animation: introSlideUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes introSlideUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
}

.reels-intro-icon {
  position: relative;
  width: 120px;
  height: 160px;
  margin: 0 auto 30px;
}

.swipe-hand {
  font-size: 70px;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  animation: swipeUpDown 1.8s ease-in-out infinite;
  z-index: 2;
  filter: drop-shadow(0 8px 20px rgba(245, 168, 0, 0.5));
}

@keyframes swipeUpDown {
  0%, 100% { transform: translateX(-50%) translateY(40px); }
  50% { transform: translateX(-50%) translateY(-20px); }
}

.swipe-arrows {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.swipe-arrow {
  font-size: 24px;
  color: var(--gold);
  opacity: 0;
  animation: arrowFade 1.8s ease-in-out infinite;
  text-shadow: 0 0 12px rgba(245, 168, 0, 0.6);
}

.swipe-arrow:nth-child(1) { animation-delay: 0s; }
.swipe-arrow:nth-child(2) { animation-delay: 0.3s; }
.swipe-arrow:nth-child(3) { animation-delay: 0.6s; }

@keyframes arrowFade {
  0%, 100% { opacity: 0; transform: translateY(20px); }
  50% { opacity: 1; transform: translateY(0); }
}

.reels-intro-title {
  font-size: 32px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold-accent), var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
  letter-spacing: -1px;
  text-shadow: 0 4px 20px rgba(245, 168, 0, 0.4);
}

.reels-intro-text {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  margin-bottom: 30px;
}

.reels-intro-text strong {
  color: var(--gold);
  font-weight: 800;
  font-size: 16px;
  display: inline-block;
  margin-top: 8px;
}

.reels-intro-btn {
  max-width: 280px;
  margin: 0 auto;
}
.scroll-indicator {
  position: fixed;
  bottom: calc(120px + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  font-weight: 700;
  z-index: 5;
  pointer-events: none;
  animation: scrollHint 2s ease-in-out infinite;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  opacity: 0;
}

.scroll-indicator.show {
  opacity: 1;
  transition: opacity 0.5s;
}

.scroll-arrow {
  font-size: 18px;
  color: var(--gold);
}

@keyframes scrollHint {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

/* SKELETON */
.loading-feed { padding: 20px; }

.skeleton-card {
  width: 100%;
  height: calc(100vh - 200px - var(--safe-top));
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-elevated) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  border-radius: 20px;
  animation: shimmerBg 1.5s infinite;
}

@keyframes shimmerBg {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.empty-feed {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
}

.empty-feed-icon {
  font-size: 80px;
  opacity: 0.4;
  margin-bottom: 20px;
  animation: emptyFloat 3s ease-in-out infinite;
}

@keyframes emptyFloat {
  0%, 100% { transform: translateY(0) rotateY(0deg); }
  50% { transform: translateY(-15px) rotateY(180deg); }
}

.empty-feed-text {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-dim);
}

.empty-feed-sub {
  font-size: 13px;
  color: var(--text-muted);
}

/* TOAST */
.toast-area {
  position: fixed;
  bottom: max(20px, var(--safe-bottom));
  right: 16px;
  left: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 9000;
  pointer-events: none;
  align-items: center;
}

.toast {
  background: linear-gradient(135deg, var(--surface), var(--surface-elevated));
  border: 1px solid var(--border-light);
  border-right: 3px solid var(--gold);
  border-radius: 14px;
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.6),
    0 4px 12px rgba(245, 168, 0, 0.2);
  animation: toast3DIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: auto;
  max-width: 400px;
  width: fit-content;
  backdrop-filter: blur(16px);
}

.toast.error { border-right-color: var(--danger); }
.toast.success { border-right-color: var(--success); }

@keyframes toast3DIn {
  from { transform: translateY(40px) scale(0.9); opacity: 0; }
}

/* ═══════════════ ADMIN PANEL ═══════════════ */

.login-screen {
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(ellipse at 50% 30%, rgba(245,168,0,0.15), transparent 60%),
    radial-gradient(ellipse at 50% 80%, rgba(196,125,0,0.08), transparent 50%),
    var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  perspective: 1200px;
}

.login-card {
  background: linear-gradient(160deg, rgba(28,16,0,0.95), rgba(13,13,13,0.95));
  backdrop-filter: blur(24px);
  border: 1px solid rgba(245, 168, 0, 0.25);
  border-radius: 28px;
  padding: 40px 30px;
  text-align: center;
  width: 100%;
  max-width: 400px;
  box-shadow: 
    0 0 80px rgba(245, 168, 0, 0.2),
    0 30px 60px rgba(0, 0, 0, 0.7);
  animation: card3DEntry 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.login-logo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 15px 35px rgba(245, 168, 0, 0.6));
  animation: logoFloat 3s ease-in-out infinite;
  border: 3px solid rgba(245, 168, 0, 0.2);
}

.login-title {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #fff, var(--gold-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 20px rgba(245, 168, 0, 0.3);
}

.login-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 28px;
  letter-spacing: 2px;
  font-weight: 700;
}

.login-input {
  width: 100%;
  background: var(--darker);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  color: var(--text);
  font-family: 'Cairo';
  font-size: 16px;
  text-align: center;
  letter-spacing: 4px;
  margin-bottom: 12px;
  direction: ltr;
  transition: all 0.3s;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.login-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 
    0 0 0 4px rgba(245, 168, 0, 0.15),
    0 8px 20px rgba(245, 168, 0, 0.2);
  transform: translateY(-2px);
}

.login-error {
  color: var(--danger);
  font-size: 12px;
  margin-bottom: 12px;
  min-height: 18px;
  font-weight: 700;
}

.back-link {
  display: block;
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 12px;
  text-decoration: none;
}

.back-link:hover { color: var(--gold); }

.admin-panel {
  position: fixed;
  inset: 0;
  display: flex;
  background: 
    radial-gradient(ellipse at top right, rgba(245,168,0,0.05), transparent 50%),
    var(--black);
}

.admin-sidebar {
  width: 260px;
  background: linear-gradient(180deg, var(--dark), var(--darker));
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  gap: 8px;
  flex-shrink: 0;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.4);
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.admin-brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: contain;
  background: linear-gradient(135deg, rgba(245,168,0,0.2), rgba(245,168,0,0.05));
  padding: 4px;
  border: 1px solid rgba(245,168,0,0.3);
  box-shadow: 0 4px 12px rgba(245, 168, 0, 0.2);
  animation: logoPulseSmall 3s ease-in-out infinite;
}

@keyframes logoPulseSmall {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.nav-btn {
  padding: 14px 16px;
  background: transparent;
  border: none;
  border-radius: 12px;
  color: var(--text-dim);
  text-align: right;
  font-family: 'Cairo';
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-btn:hover {
  background: var(--surface);
  color: var(--text);
  transform: translateX(-4px);
}

.nav-btn.active {
  background: linear-gradient(135deg, rgba(245,168,0,0.2), rgba(245,168,0,0.05));
  color: var(--gold);
  border: 1px solid rgba(245,168,0,0.3);
  box-shadow: 0 4px 12px rgba(245, 168, 0, 0.1);
  transform: translateX(-4px);
}

.logout-btn {
  padding: 14px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 12px;
  color: var(--danger);
  font-family: 'Cairo';
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.logout-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
}

.admin-main {
  flex: 1;
  padding: 32px;
  overflow-y: auto;
}

.admin-main::-webkit-scrollbar { width: 6px; }
.admin-main::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 3px; }

.admin-tab-content {
  display: none;
  max-width: 880px;
}

.admin-tab-content.active {
  display: block;
  animation: tab3DFade 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes tab3DFade {
  from { opacity: 0; transform: translateY(20px); }
}

.admin-title {
  font-size: 32px;
  font-weight: 900;
  background: linear-gradient(135deg, #fff, var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 28px;
  letter-spacing: -0.5px;
  text-shadow: 0 4px 20px rgba(245, 168, 0, 0.2);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: linear-gradient(160deg, var(--surface), var(--surface-elevated));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(245,168,0,0.15), transparent 70%);
  transform: translate(40%, -40%);
}

.stat-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245,168,0,0.4);
  box-shadow: 0 16px 40px rgba(245, 168, 0, 0.2);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(245,168,0,0.25), rgba(245,168,0,0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 12px rgba(245, 168, 0, 0.2);
}

.stat-num {
  font-size: 36px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold-accent), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  letter-spacing: -1px;
  position: relative;
  z-index: 1;
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 1;
}

.info-box {
  background: linear-gradient(160deg, var(--surface), var(--surface-elevated));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.info-row:last-child { border-bottom: none; }
.info-row span:first-child { color: var(--text-dim); font-weight: 600; }
.info-row span:last-child { color: var(--gold); font-weight: 800; }

.admin-form {
  background: linear-gradient(160deg, var(--surface), var(--surface-elevated));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input {
  width: 100%;
  background: var(--darker);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text);
  font-family: 'Cairo';
  font-size: 14px;
  transition: all 0.3s;
}

.form-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(245, 168, 0, 0.1);
  background: var(--surface);
  transform: translateY(-2px);
}

textarea.form-input { min-height: 100px; resize: vertical; }

.file-drop {
  border: 2px dashed var(--border);
  border-radius: 16px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: var(--darker);
}

.file-drop:hover {
  border-color: var(--gold);
  background: var(--surface);
  transform: translateY(-4px);
}

.file-drop.dragover {
  border-color: var(--gold);
  background: rgba(245, 168, 0, 0.08);
  transform: scale(1.03);
}

.file-drop-icon {
  font-size: 52px;
  margin-bottom: 12px;
  animation: fileIconFloat 3s ease-in-out infinite;
}

@keyframes fileIconFloat {
  0%, 100% { transform: translateY(0) rotateY(0deg); }
  50% { transform: translateY(-8px) rotateY(15deg); }
}

.file-drop-text {
  font-size: 14px;
  color: var(--text-dim);
  font-weight: 700;
}

.file-name {
  margin-top: 14px;
  font-size: 12px;
  color: var(--gold);
  font-weight: 800;
  padding: 8px 16px;
  background: rgba(245, 168, 0, 0.1);
  border-radius: 8px;
  display: inline-block;
}

.file-drop input { display: none; }

.upload-progress {
  margin: 20px 0;
  padding: 16px;
  background: var(--darker);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.progress-label {
  font-size: 12px;
  color: var(--gold);
  margin-bottom: 10px;
  font-weight: 800;
  display: flex;
  justify-content: space-between;
}

.progress-bar {
  width: 100%;
  height: 10px;
  background: var(--border);
  border-radius: 5px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
  transition: width 0.3s ease;
  border-radius: 5px;
  box-shadow: 0 0 10px var(--gold);
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: progressShimmer 1.5s infinite;
}

@keyframes progressShimmer {
  to { transform: translateX(100%); }
}

.progress-text { font-size: 12px; color: var(--text-dim); text-align: center; margin-top: 8px; font-weight: 700; }
.progress-eta { font-size: 11px; color: var(--text-muted); text-align: center; margin-top: 4px; }

.video-list { display: flex; flex-direction: column; gap: 12px; }

.video-row {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, var(--surface), var(--surface-elevated));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.video-row:hover {
  border-color: rgba(245,168,0,0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.video-thumb {
  width: 64px;
  height: 84px;
  border-radius: 10px;
  background: var(--darker);
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--border);
}

.video-thumb video { width: 100%; height: 100%; object-fit: cover; }

.video-info { flex: 1; min-width: 0; }

.video-info-title {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-info-meta {
  font-size: 11px;
  color: var(--text-dim);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.video-info-meta span {
  padding: 3px 10px;
  background: var(--darker);
  border-radius: 12px;
  font-weight: 700;
}

.video-info-meta .meta-cat { background: rgba(245,168,0,0.15); color: var(--gold); }

.video-actions { display: flex; gap: 6px; }

.video-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--darker);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
}

.video-btn:hover {
  border-color: var(--gold);
  transform: scale(1.1);
}

.video-btn.danger:hover {
  border-color: var(--danger);
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

.categories-list {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cat-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--surface), var(--surface-elevated));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 800;
  color: var(--gold);
  transition: all 0.3s;
}

.cat-tag:hover {
  border-color: var(--gold);
  transform: translateY(-3px) scale(1.05);
}

.cat-tag-delete {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(239,68,68,0.15);
  border: none;
  color: var(--danger);
  cursor: pointer;
  font-size: 11px;
  transition: all 0.3s;
}

.cat-tag-delete:hover {
  background: var(--danger);
  color: white;
  transform: rotate(90deg);
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(16px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
}

.modal.show { display: flex; }

.modal-content {
  background: linear-gradient(160deg, var(--surface), var(--surface-elevated));
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 32px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0,0,0,0.7);
  animation: modal3DEntry 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modal3DEntry {
  from { transform: translateY(40px) scale(0.9); opacity: 0; }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 {
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(135deg, #fff, var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.modal-close {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--darker);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
}

.modal-close:hover {
  border-color: var(--danger);
  color: var(--danger);
  transform: rotate(90deg);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .admin-sidebar { width: 64px; padding: 16px 8px; }
  .admin-brand { justify-content: center; padding: 8px 0 16px; }
  .admin-brand > div:last-child { display: none; }
  .nav-btn { justify-content: center; padding: 14px 0; font-size: 0; }
  .nav-btn::before { content: attr(data-icon); font-size: 18px; }
  .logout-btn { font-size: 16px; padding: 12px 0; }
  .admin-main { padding: 20px 16px; }
  .admin-title { font-size: 24px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-card { padding: 16px; }
  .stat-num { font-size: 28px; }
  .video-row { flex-wrap: wrap; padding: 12px; }
  .video-thumb { width: 56px; height: 72px; }
  .brand-text { font-size: 16px; }
  .brand-logo { width: 44px; height: 44px; }
  .loading-text { font-size: 26px; }
  .loading-logo-wrap { width: 140px; height: 140px; }
}

@media (max-width: 480px) {
  .reel-title { font-size: 20px; }
  .reel-desc { font-size: 12px; }
  .reel-subscribe { font-size: 15px; padding: 14px 18px; }
  .age-card { padding: 32px 20px; }
  .login-card { padding: 32px 20px; }
  .brand-text { font-size: 14px; }
  .brand-tagline { font-size: 8px; letter-spacing: 1.5px; margin-top: 2px; }
  .brand-logo { width: 38px; height: 38px; }
  .loading-text { font-size: 22px; }
  .reels-intro-title { font-size: 26px; }
  .swipe-hand { font-size: 60px; }
}

@media (pointer: coarse) {
  .btn-gold, .btn-ghost, .video-btn, .cat-pill { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
