/* ==========================================================================
   Subhashree Space - Premium Luxury Theme & Layout
   ========================================================================== */

:root {
  /* Warm Luxury Palette (Light Theme - default as in screenshot) */
  --bg-primary: #FAF7F2;
  --bg-secondary: #F3ECE2;
  --bg-card: rgba(255, 255, 255, 0.88);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --bg-glass: rgba(250, 247, 242, 0.85);
  --bg-pill: rgba(0, 0, 0, 0.04);
  --bg-pill-active: #1D1A16;
  
  --text-primary: #1C1917;
  --text-secondary: #665F58;
  --text-muted: #9E968E;
  --text-pill-active: #FFFFFF;
  
  --gold-primary: #C59338;
  --gold-secondary: #DEAC4A;
  --gold-dark: #A37525;
  --gold-light: #FBF4E4;
  --gold-border: rgba(197, 147, 56, 0.35);
  --gold-glow: rgba(197, 147, 56, 0.25);
  
  --vip-bg: linear-gradient(135deg, #FBF0D9 0%, #F5E2B8 100%);
  --vip-text: #96660E;
  --vip-border: rgba(197, 147, 56, 0.5);
  
  --border-light: rgba(0, 0, 0, 0.07);
  --border-subtle: rgba(197, 147, 56, 0.18);
  
  --shadow-sm: 0 2px 8px rgba(30, 24, 16, 0.04);
  --shadow-md: 0 8px 24px rgba(30, 24, 16, 0.08);
  --shadow-lg: 0 16px 40px rgba(30, 24, 16, 0.12);
  --shadow-gold: 0 8px 25px rgba(197, 147, 56, 0.22);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-script: 'Pinyon Script', 'Great Vibes', 'Allura', cursive;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg-primary: #0D0C0E;
  --bg-secondary: #16141B;
  --bg-card: rgba(24, 21, 30, 0.85);
  --bg-card-hover: rgba(30, 27, 38, 0.95);
  --bg-glass: rgba(13, 12, 14, 0.88);
  --bg-pill: rgba(255, 255, 255, 0.06);
  --bg-pill-active: #C59338;
  
  --text-primary: #F7F5F0;
  --text-secondary: #B6AFC5;
  --text-muted: #746C82;
  --text-pill-active: #0D0C0E;
  
  --gold-primary: #E5B24E;
  --gold-secondary: #F5C769;
  --gold-dark: #C59338;
  --gold-light: rgba(229, 178, 78, 0.12);
  --gold-border: rgba(229, 178, 78, 0.35);
  --gold-glow: rgba(229, 178, 78, 0.3);
  
  --vip-bg: linear-gradient(135deg, rgba(229, 178, 78, 0.2) 0%, rgba(197, 147, 56, 0.1) 100%);
  --vip-text: #F8D288;
  --vip-border: rgba(229, 178, 78, 0.4);
  
  --border-light: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(229, 178, 78, 0.2);
  
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.8);
  --shadow-gold: 0 8px 30px rgba(229, 178, 78, 0.25);
}

/* Base Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.5;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(197, 147, 56, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(197, 147, 56, 0.04) 0%, transparent 40%);
}

/* ==========================================================================
   Header & Floating Navigation Pill
   ========================================================================== */

.header-container {
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 0 20px;
  pointer-events: none;
}

.nav-pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 8px 14px 8px 24px;
  box-shadow: var(--shadow-md);
  max-width: 960px;
  width: 100%;
  transition: var(--transition);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-name {
  font-family: var(--font-script);
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: 0.5px;
}

.brand-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  background: var(--gold-light);
  color: var(--gold-dark);
  border: 1px solid var(--gold-border);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-link-btn {
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link-btn:hover {
  color: var(--text-primary);
  background: var(--bg-pill);
}

.nav-link-btn.active {
  background: var(--bg-pill-active);
  color: var(--text-pill-active);
  box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  background: var(--bg-pill);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
}

.icon-btn:hover {
  background: var(--gold-light);
  border-color: var(--gold-primary);
  color: var(--gold-dark);
  transform: translateY(-1px);
}

.btn-vip-unlocked {
  background: linear-gradient(135deg, #DEAC4A 0%, #B88523 100%);
  color: #FFFFFF;
  border: none;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-gold);
  transition: var(--transition);
}

.btn-vip-unlocked:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(197, 147, 56, 0.4);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  padding: 130px 20px 40px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--gold-light);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-dark);
  margin-bottom: 24px;
  animation: fadeInDown 0.8s ease-out;
}

.hero-badge-pulse {
  width: 8px;
  height: 8px;
  background-color: #22C55E;
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(34, 197, 94, 0.4);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.hero-title-italic {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--gold-primary);
  background: linear-gradient(135deg, #B88523 0%, #DEAC4A 50%, #A37525 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 4px;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 32px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.btn-primary {
  background: linear-gradient(135deg, #D4A34B 0%, #B8860B 100%);
  color: #FFFFFF;
  border: none;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: var(--shadow-gold);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(197, 147, 56, 0.4);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--gold-border);
  transform: translateY(-2px);
}

.stats-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.stat-chip {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-sm);
}

.stat-chip strong {
  color: var(--gold-primary);
  font-weight: 700;
}

/* ==========================================================================
   Control & Filter Bar Section
   ========================================================================== */

.feed-header-section {
  max-width: 960px;
  margin: 0 auto 30px;
  padding: 0 20px;
}

.feed-header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.feed-title-wrap h2 {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.feed-title-wrap p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 2px;
}

.filter-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-pill);
  padding: 5px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-btn .badge-count {
  background: rgba(0, 0, 0, 0.08);
  font-size: 0.72rem;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
}

[data-theme="dark"] .filter-btn .badge-count {
  background: rgba(255, 255, 255, 0.12);
}

.filter-btn:hover {
  color: var(--text-primary);
}

.filter-btn.active {
  background: var(--bg-pill-active);
  color: var(--text-pill-active);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.filter-btn.active .badge-count {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

/* Secondary controls (Search + View Switch) */
.controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--bg-card);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 220px;
}

.search-box svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  background: var(--bg-pill);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 9px 16px 9px 40px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--text-primary);
  outline: none;
  transition: var(--transition);
}

.search-input:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px var(--gold-glow);
  background: var(--bg-card);
}

.view-switches {
  display: flex;
  align-items: center;
  gap: 10px;
}

.view-btn-group {
  display: flex;
  background: var(--bg-pill);
  border-radius: var(--radius-pill);
  padding: 3px;
  border: 1px solid var(--border-light);
}

.view-btn {
  background: transparent;
  border: none;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: var(--transition);
}

.view-btn.active {
  background: var(--bg-card);
  color: var(--gold-primary);
  box-shadow: var(--shadow-sm);
}

.btn-leech-tool {
  background: var(--gold-light);
  color: var(--gold-dark);
  border: 1px solid var(--gold-border);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-leech-tool:hover {
  background: var(--gold-primary);
  color: #FFFFFF;
  transform: translateY(-1px);
}

/* ==========================================================================
   Feed Stream (Instagram Post Card Style)
   ========================================================================== */

.feed-container {
  max-width: 680px;
  margin: 0 auto 60px;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}

.post-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-border);
}

/* Card Header */
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-primary);
  box-shadow: 0 2px 8px rgba(197, 147, 56, 0.3);
}

.author-meta {
  display: flex;
  flex-direction: column;
}

.author-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.author-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.verified-icon {
  color: #DEAC4A;
  display: flex;
}

.post-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.badge-vip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--vip-bg);
  color: var(--vip-text);
  border: 1px solid var(--vip-border);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 6px rgba(197, 147, 56, 0.15);
}

.badge-public {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-pill);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

/* Card Media Section */
.card-media-wrapper {
  position: relative;
  background: #000000;
  width: 100%;
  max-height: 720px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-media-img {
  width: 100%;
  height: auto;
  max-height: 720px;
  object-fit: contain;
  display: block;
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

.card-media-img:hover {
  transform: scale(1.01);
}

/* Custom Video Container */
.video-player-container {
  width: 100%;
  position: relative;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-video {
  width: 100%;
  max-height: 720px;
  object-fit: contain;
  display: block;
}

/* Card Action Bar */
.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 8px;
}

.card-actions-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.action-icon-btn {
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
  padding: 4px;
}

.action-icon-btn svg {
  width: 22px;
  height: 22px;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.action-icon-btn:hover svg {
  transform: scale(1.18);
}

.action-icon-btn.liked {
  color: #EF4444;
}

.action-icon-btn.liked svg {
  fill: #EF4444;
}

.btn-copy-url {
  background: var(--bg-pill);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-copy-url:hover {
  background: var(--gold-light);
  color: var(--gold-dark);
  border-color: var(--gold-border);
}

/* Card Caption & Info */
.card-body {
  padding: 0 20px 18px;
}

.card-caption {
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--text-primary);
  white-space: pre-line;
  word-break: break-word;
}

.card-caption strong {
  font-weight: 700;
  margin-right: 6px;
}

.card-footer-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Grid Gallery View (3x3 Instagram / Pinterest style)
   ========================================================================== */

.grid-container {
  max-width: 1080px;
  margin: 0 auto 60px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.grid-item {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #000000;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.grid-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-border);
}

.grid-item img, .grid-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.grid-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.grid-item:hover .grid-item-overlay {
  opacity: 1;
}

.grid-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.grid-type-badge {
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.grid-item-caption {
  color: #FFFFFF;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

/* ==========================================================================
   Lightbox Modal (Full resolution viewer)
   ========================================================================== */

.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(25px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  width: 94vw;
  max-width: 1200px;
  height: 90vh;
  display: flex;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gold-border);
  box-shadow: 0 25px 60px rgba(0,0,0,0.6);
  position: relative;
}

.lightbox-media-side {
  flex: 1.6;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.lightbox-media-side img,
.lightbox-media-side video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.lightbox-info-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  background: var(--bg-card);
  overflow-y: auto;
  border-left: 1px solid var(--border-light);
}

.lightbox-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}

.lightbox-close-btn:hover {
  background: var(--gold-primary);
  transform: rotate(90deg);
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}

.lightbox-nav-btn:hover {
  background: var(--gold-primary);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev-btn { left: 16px; }
.lightbox-next-btn { right: 16px; }

/* ==========================================================================
   Telegram Leech & Export Tools Modal
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2100;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 20px;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-panel {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  max-width: 650px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  padding: 28px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active .modal-panel {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.leech-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.leech-btn {
  background: var(--bg-pill);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.leech-btn:hover {
  background: var(--gold-light);
  border-color: var(--gold-primary);
  transform: translateY(-2px);
}

.leech-btn-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.leech-btn-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.url-preview-area {
  width: 100%;
  height: 160px;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--text-secondary);
  overflow-y: auto;
  white-space: pre;
  resize: none;
  margin-bottom: 16px;
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: var(--text-primary);
  color: var(--bg-primary);
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-lg);
  animation: slideInUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  pointer-events: auto;
}

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

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  text-align: center;
  padding: 40px 20px;
  border-top: 1px solid var(--border-light);
  background: var(--bg-card);
}

.footer-logo {
  font-family: var(--font-script);
  font-size: 2.2rem;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.footer-text {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 768px) {
  .nav-links { display: none; }
  .header-container { top: 10px; padding: 0 12px; }
  .nav-pill { padding: 6px 12px 6px 18px; }
  .brand-name { font-size: 1.8rem; }
  .hero-section { padding-top: 100px; }
  .lightbox-content { flex-direction: column; height: 95vh; }
  .lightbox-media-side { flex: 1.2; }
  .lightbox-info-side { flex: 1; padding: 16px; }
  .controls-row { flex-direction: column; align-items: stretch; }
  .search-box { width: 100%; }
}
