/* ================= GLOBAL VARIABLES & ROOT ================= */
:root {
  --bg-gradient: radial-gradient(circle at top left, #e6e9ff 0%, #fce7f3 50%, #f8f9fa 100%);
  --card: rgba(255, 255, 255, 0.45);
  --border: rgba(255, 255, 255, 0.9);
  --text: #0f172a;
  --muted: #64748b;
  --accent1: #6366f1;
  --accent2: #ec4899;
  
  /* Box Glow */
  --glow-shadow: 0 4px 10px rgba(0,0,0,0.03), inset 0 3px 5px rgba(255,255,255,1), inset 0 -2px 5px rgba(0,0,0,0.03);
  
  /* Text & Icon Glass/Glow Effects */
  --text-glass: 0 1px 2px rgba(255, 255, 255, 0.8), 0 -1px 1px rgba(0, 0, 0, 0.05);
  --neon-glow: 0 0 8px rgba(236, 72, 153, 0.6), 0 0 15px rgba(236, 72, 153, 0.4);
}

/* ================= RESET & MOBILE VIEWPORT LOCK ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-tap-highlight-color: transparent; 
}

html, body {
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden; 
  overflow-y: auto; 
  text-shadow: 0 1px 1px rgba(255,255,255,0.5); 
}

body {
  padding-bottom: 80px; 
}

/* ================= TABS (PAGES) SYSTEM ================= */
.tab {
  display: none;
  animation: fadeIn 0.4s ease-in-out;
}

.tab.active {
  display: block;
}

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

/* ================= HEADER (HOME SCREEN) ================= */
#mainHeader {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 16px;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

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

.top-row h1 {
  font-size: 22px;
  background: linear-gradient(45deg, var(--accent1), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
  filter: drop-shadow(0 2px 4px rgba(236, 72, 153, 0.3));
}

.top-row i {
  font-size: 20px;
  color: var(--text);
  text-shadow: var(--text-glass); 
}

/* ================= SEARCH & RECOMMENDATIONS ================= */
.search-container {
  position: relative;
  margin-top: 12px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  padding: 12px 16px;
  border-radius: 14px;
  box-shadow: var(--glow-shadow);
}

.search-box i {
  text-shadow: 0 1px 2px rgba(255,255,255,0.8); 
}

.search-box input {
  width: 100%;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 15px;
  text-shadow: var(--text-glass);
}

.search-box input::placeholder {
  color: var(--muted);
}

.suggestions-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  list-style: none;
  max-height: 220px;
  overflow-y: auto;
  z-index: 1000;
  display: none; 
}

.suggestions-list li {
  padding: 12px 16px;
  color: var(--text);
  font-size: 15px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: background 0.2s;
  text-shadow: 0 1px 1px rgba(255,255,255,0.8);
}

.suggestions-list li:last-child {
  border-bottom: none;
}

.suggestions-list li:hover, 
.suggestions-list li:active {
  background: rgba(236, 72, 153, 0.1); 
  color: var(--accent2);
  font-weight: 500;
}

/* ================= CHIPS ================= */
.chip-row {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto; 
  padding: 0 16px 12px 16px;
  -webkit-overflow-scrolling: touch;
}

.chip-row::-webkit-scrollbar {
  display: none;
}

.chip {
  padding: 8px 20px;
  border-radius: 999px;
  background: var(--card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: var(--glow-shadow);
  font-weight: 500;
  text-shadow: var(--text-glass); 
}

.chip.active {
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
  color: #d11a2a;
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.8), 0 4px 10px rgba(236,72,153,0.3);
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9); 
}

/* ================= TRENDING SECTION ================= */
.section-title {
  font-size: 18px;
  font-weight: 700;
  padding: 16px 16px 8px 16px;
  color: var(--text);
}

.trending {
  display: flex;
  gap: 12px; 
  padding: 10px 16px 20px 16px; 
  overflow-x: auto; 
  -webkit-overflow-scrolling: touch; 
}

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

.trend {
  flex: 0 0 140px; 
  height: 190px;   
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  box-shadow: var(--glow-shadow);
  cursor: pointer;
  position: relative;
  padding: 4px; 
}

.trend img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px; 
}

/* ================= GRID & CARDS (HOME DISPLAY) ================= */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 0 16px 16px 16px;
}

.card {
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  box-shadow: var(--glow-shadow);
  aspect-ratio: 3/4; 
  cursor: pointer;
  position: relative;
  padding: 4px;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

/* ================= HOME VIEW COUNT BADGE ================= */
.view-count {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.55); 
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 10;
  pointer-events: none; 
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.5px;
}

.view-count i {
  font-size: 11px; 
  color: #ffffff;
  margin-right: 2px; 
}

/* ================= AD BANNER ================= */
.ad-banner {
  grid-column: 1 / -1; 
  width: 100%;
  height: 85px; 
  border-radius: 12px;
  overflow: hidden;
  margin: 4px 0; 
  background: var(--card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px dashed var(--border); 
  box-shadow: var(--glow-shadow);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--muted);
  font-weight: 600;
  text-shadow: var(--text-glass);
}

.ad-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ================= CATEGORIES EXPLORE TAB ================= */
.explore-header {
  padding-top: 8px;
}

.explore-header-title {
  padding: 16px 16px 4px 16px;
}

.explore-header-title h2 {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--accent2); 
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.header-line {
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent2), var(--accent1));
  border-radius: 99px;
  margin-top: 4px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 12px;
    padding: 12px 16px 16px 16px;
    box-sizing: border-box;
    width: 100%;
}

.cat-card {
    position: relative;
    height: 160px; 
    border-radius: 16px;
    overflow: hidden;
    background: #1a1a24; 
    display: flex;
    flex-direction: column;
    justify-content: flex-end; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    cursor: pointer;
    box-sizing: border-box;
}

.cat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 40%, rgba(0,0,0,0.75) 100%);
    z-index: 2;
}

.cat-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
    z-index: 1;
    filter: brightness(1.05) contrast(1.02); 
}

.cat-details {
    position: relative;
    z-index: 3; 
    padding: 12px 14px;
    color: #ffffff;
    width: 100%;
    box-sizing: border-box;
}

.cat-details h3 {
    font-size: 15px;
    font-weight: 800; 
    margin: 0 0 1px 0;
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.85);
    letter-spacing: 0.5px;
    color: #ffffff !important;
}

.cat-details span {
    font-size: 11px;
    opacity: 0.95;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    color: #f1f5f9;
}

.cat-share-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 13px;
    z-index: 10; 
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: background 0.2s, transform 0.2s;
}

.cat-share-btn:active {
    transform: scale(0.9);
    background: rgba(255, 255, 255, 0.45);
}

/* ================= PROFILE SECTION ================= */
.profile-box {
  padding: 40px 20px 20px;
  text-align: center;
}

.profile-box i {
  font-size: 70px;
  color: var(--accent1);
  margin-bottom: 12px;
  filter: drop-shadow(0 0 15px rgba(99, 102, 241, 0.5));
}

.profile-box h2 {
  margin-bottom: 20px;
  font-size: 24px;
  text-shadow: var(--text-glass);
}

.profile-box button {
  padding: 14px 30px;
  border-radius: 30px;
  border: none;
  background: linear-gradient(45deg, var(--accent1), var(--accent2));
  color: white;
  font-weight: 600;
  font-size: 16px;
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.4), 0 4px 15px rgba(236, 72, 153, 0.4);
  cursor: pointer;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.profile-links {
  padding: 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.profile-links a {
  text-decoration: none;
  color: var(--text);
  background: var(--card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  text-align: center;
  font-weight: 600;
  box-shadow: var(--glow-shadow);
  text-shadow: var(--text-glass);
}

/* ================= SOCIAL LINKS ================= */
.social-links-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  padding-bottom: 30px;
}

.social-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: var(--card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  font-size: 24px;
  text-decoration: none;
  box-shadow: var(--glow-shadow);
  transition: transform 0.2s ease;
}

.social-icon.insta { color: #E1306C; text-shadow: 0 0 10px rgba(225, 48, 108, 0.5); }
.social-icon.whatsapp { color: #25D366; text-shadow: 0 0 10px rgba(37, 211, 102, 0.5); }
.social-icon.telegram { color: #0088cc; text-shadow: 0 0 10px rgba(0, 136, 204, 0.5); }
.social-icon.youtube { color: #FF0000; text-shadow: 0 0 10px rgba(255, 0, 0, 0.5); }

/* ================= BOTTOM NAVBAR ================= */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 65px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 200;
  box-shadow: 0 -4px 15px rgba(0,0,0,0.02);
}

.nav-btn {
  background: none;
  border: none;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  gap: 4px;
  cursor: pointer;
}

.nav-btn i {
  font-size: 20px;
}

.nav-btn.active {
  color: var(--accent2);
}

.nav-btn.active i {
  text-shadow: var(--neon-glow);
}

/* ================= DETAILED VIEW SCREEN ================= */
.view-container {
  padding: 12px; 
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}

.prompt-main-card {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.06);
  background: #1e1e2e;
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 🔥 FIX 1: Main Image ko full responsive kiya bina cut-out hue original size me dikhne ke liye */
.prompt-main-card img {
  width: 100%;
  height: auto;
  max-height: 460px; 
  object-fit: contain; /* Pura photo bina crop hue auto vertical compress ho kar dikhega */
  display: block;
}

.view-count-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}

.prompt-text-box {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  padding: 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.5;
  color: #1e293b;
  max-height: 180px; 
  overflow-y: auto;
  margin-bottom: 12px;
}

.action-buttons-row {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.action-btn {
  flex: 1;
  padding: 11px;
  border-radius: 11px;
  border: none;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.action-btn.copy { background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%); color: #d11a2a; }
.action-btn.share { background: #0f172a; color: #ffffff; }

.view-ad-banner {
  width: 100%;
  height: 65px;
  border-radius: 12px;
  border: 1px dashed rgba(0,0,0,0.15);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 14px;
}

.section-divider {
  border: none;
  height: 1px;
  background: rgba(0,0,0,0.05);
  margin: 14px 0;
}

/* ================= SIMILAR PROMPTS SECTION (LOCKED ROW STRUCT) 🎯 ================= */
.similar-title-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.indicator-bar {
  width: 3px;
  height: 14px;
  background: #ec4899;
  border-radius: 99px;
}

.similar-title-bar h2 {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}

.similar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); 
  gap: 10px;
}

/* 🔥 FIX 2: Flex direction column ke saath cards ko exact equal height grid par set kiya */
.similar-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 4px; 
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.01);
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Isse title kitna bhi bada ho, button humesha bottom par lock rahega */
  position: relative;
  box-sizing: border-box;
}

/* Home screen card proportions sync lock */
.similar-img-container {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4; /* Home Screen (.card) ka exact sateek ratio block lock */
  border-radius: 10px;
  overflow: hidden;
  background: #1e1e2e;
}

.similar-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Title text formatting */
.similar-title {
  font-size: 10px; 
  font-weight: 700;
  color: #334155;
  margin: 6px 2px 8px 2px;
  text-transform: uppercase;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Agar title 2 lines se bada ho toh auto dot-dot (...) ho jaye layout bachaane ke liye */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 24px; /* Text alignment box limit locked */
}

.try-prompt-btn {
  width: 100%;
  background: #0f172a;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 8px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: auto; /* Push safely to bottom grid row line */
}

/* Toast System */
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.9);
  color: #fff;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  z-index: 1200;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

/* 🔥 FIXED: Premium Glassmorphism Container with Matching Pink/Purple Neon Border */
.prompt-text-box {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  
  /* Sateek matching dynamic border matching your active color theme */
  border: 1.5px solid transparent;
  background-image: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)), 
                    linear-gradient(135deg, var(--accent2) 0%, var(--accent1) 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  
  padding: 14px;
  border-radius: 16px;
  font-size: 13.5px;
  line-height: 1.6;
  color: #1e293b;
  max-height: 180px; 
  overflow-y: auto;
  margin-bottom: 12px;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.05), inset 0 2px 4px rgba(255, 255, 255, 1);
  
  /* 🔥 STRICT BLOCK: Long press aur double tap select block controller */
  user-select: none;
  -webkit-user-select: none; /* Safari/Chrome core browser support */
  -moz-user-select: none;    /* Mozilla core engine */
  -ms-user-select: none;     /* Internet Explorer */
}
/* ================= VIEW HEADER & ENHANCED BACK BUTTON 🎯 ================= */
.view-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 14px; /* Enhanced gap tracking */
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.view-header h1 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  text-shadow: none;
}

/* 🔥 PREMIUM BACK BUTTON UPGRADE: Large, click-friendly touch target */
.back-btn {
  background: rgba(15, 23, 42, 0.06); /* Soft dark overlay matching root */
  border: 1px solid rgba(15, 23, 42, 0.03);
  width: 36px;
  height: 36px;
  border-radius: 50%; /* Perfect circle asset */
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 15px; /* Icon size optimized */
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
  transition: background 0.2s, transform 0.1s;
}

.back-btn:active {
  transform: scale(0.92); /* Micro click physics animation */
  background: rgba(15, 23, 42, 0.12);
}

/* ================= COMPACT MAIN CARD STYLING ================= */
.prompt-main-card {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.06);
  
  /* 🔥 FIX 2: Black color ko permanent remove karke soft solid white me lock kiya */
  background: #ffffff !important; 
  
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.prompt-main-card img {
  width: 100%;
  height: auto;
  max-height: 400px; 
  object-fit: contain; 
  display: block;
}
/* ================= BUTTON CLICK ANIMATION ================= */
/* Isse sabhi buttons click karne par halka sa andar dabenge (bounce feel) */
button:active, .action-btn:active, .cat-card:active, .similar-card:active {
  transform: scale(0.95);
  transition: transform 0.1s ease;
}

/* ================= PREMIUM CENTER GREEN TOAST ================= */
#premium-toast {
  visibility: hidden;
  position: fixed;
  top: 45%; /* Screen ke center ke thoda upar jahan prompt hota hai */
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  min-width: 280px;
  padding: 14px 28px;
  border-radius: 50px; /* Capsule shape */
  color: #ffffff;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  z-index: 10000; /* Sabse upar dikhega */
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
}

/* Success Theme (Green) */
#premium-toast.success {
  background-color: rgba(38, 194, 129, 0.98); /* Sateek Green Colour */
  border-color: #2ecc71;
}

/* Failed Theme (Red) */
#premium-toast.error {
  background-color: rgba(231, 76, 60, 0.98);
  border-color: #e74c3c;
}

/* Show state jab msg pop-up hoga */
#premium-toast.show {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1); /* Zoom-in effect */
}
/* 1. Purane kisi bhi toast ko screen se gayab karne ke liye */
.toast, #toast, .snackbar, div[class*="toast"] {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

/* 2. Naya Premium Green Toast - Force Position */
#premium-toast {
  visibility: hidden;
  position: fixed !important;
  top: 50% !important; /* Screen ke bilkul beech mein */
  left: 50% !important;
  transform: translate(-50%, -50%) scale(0.8) !important;
  
  min-width: 260px !important;
  padding: 14px 24px !important;
  border-radius: 50px !important;
  color: #ffffff !important;
  text-align: center !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  
  /* Isse ye har cheez ke upar dikhega (Ads aur Buttons ke bhi upar) */
  z-index: 2147483647 !important; 
  
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  backdrop-filter: blur(10px) !important;
  box-shadow: 0 15px 35px rgba(0,0,0,0.4) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.3) !important;
}

/* Success State - Pakka Green Theme */
#premium-toast.success {
  background-color: #2ecc71 !important; /* Bright Green */
  display: block !important;
}

/* Error State - Pakka Red Theme */
#premium-toast.error {
  background-color: #e74c3c !important;
  display: block !important;
}

/* Jab click hoga tab ye class add hogi */
#premium-toast.show {
  visibility: visible !important;
  opacity: 1 !important;
  transform: translate(-50%, -50%) scale(1) !important;
}

/* Button Click Vibration Feel */
.action-btn:active, .cat-card:active {
  transform: scale(0.92) !important;
  transition: transform 0.1s !important;
}

/* ================= BUTTON CLICK BOUNCE ANIMATION ================= */
button:active, .action-btn:active, .cat-card:active, .similar-card:active {
  transform: scale(0.96) !important;
  transition: transform 0.1s ease !important;
}

/* ================= SLEEK ONE-LINE PREMIUM TOAST ================= */
/* Purane baki kisi bhi toast config ko reset karne ke liye */
.toast, #toast, .snackbar, div[class*="toast"] {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

/* Naya Ultra-Sleek Center Toast Box */
#premium-toast {
  visibility: hidden;
  position: fixed !important;
  top: 48% !important; /* Image ke niche aur prompt box ke upar center mein */
  left: 50% !important;
  transform: translate(-50%, -50%) scale(0.8) !important;
  
  /* Minimal Capsule Blueprint */
  min-width: 180px !important; 
  max-width: 85vw !important;
  padding: 8px 16px !important; /* Ekdum patla aur professional ribbon */
  border-radius: 30px !important; /* Rounded Capsule Shape */
  
  color: #ffffff !important;
  text-align: center !important;
  font-weight: 600 !important; 
  font-size: 13px !important;  /* Elegant Small Font */
  white-space: nowrap !important; /* Text ek hi line mein rahega */
  z-index: 2147483647 !important; /* Sabse upar screen par lock */
  
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  background-color: #2ecc71 !important; /* Clean Bright Emerald Green */
  box-shadow: 0 8px 20px rgba(46, 213, 115, 0.25) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* Failed Alert Red Theme */
#premium-toast.error {
  background-color: #ff4757 !important;
  box-shadow: 0 8px 20px rgba(255, 71, 87, 0.25) !important;
}

/* Active Pop-up Trigger state */
#premium-toast.show {
  visibility: visible !important;
  opacity: 1 !important;
  transform: translate(-50%, -50%) scale(1) !important;
}
/* =========================================
   ☰ HAMBURGER MENU & SIDE DRAWER STYLES
   ========================================= */
.profile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}
.menu-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: #333;
  cursor: pointer;
  padding: 5px;
}

/* Background Dark Overlay */
.side-menu-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.side-menu-overlay.active {
  display: block;
  opacity: 1;
}

/* The Sliding Menu Box */
.side-menu {
  position: fixed;
  top: 0; left: -300px; /* Off-screen by default */
  width: 280px;
  height: 100%;
  background: #fff;
  z-index: 1000;
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 2px 0 15px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
}
.side-menu.active {
  left: 0; /* Slide in */
}

/* Menu Header */
.side-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
  border-bottom: 1px solid #e0e0e0;
}
.side-menu-header h2 {
  font-size: 20px;
  color: #333;
  margin: 0;
}
.close-btn {
  background: none; 
  border: none; 
  font-size: 24px; 
  cursor: pointer; 
  color: #555;
  padding: 5px;
}

/* Menu Items */
.side-menu-content {
  padding: 10px 0;
  overflow-y: auto;
}
.menu-item {
  display: flex;
  align-items: center;
  padding: 15px 25px;
  color: #444;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: background 0.2s;
}
.menu-item i {
  width: 24px;
  margin-right: 15px;
  font-size: 20px;
  text-align: center;
}
.menu-item:active {
  background: #f0f0f0;
}

/* Dividers & Subtitles */
.menu-divider {
  height: 1px;
  background: #eee;
  margin: 10px 20px;
}
.menu-subtitle {
  padding: 10px 25px;
  font-size: 13px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0;
}
.menu-socials {
  display: flex;
  gap: 15px;
  padding: 15px 25px;
}


/* Social Icons Style */
.social-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
  text-decoration: none;
  transition: transform 0.2s;
}
.insta { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.whatsapp { background: #25D366; }
.telegram { background: #0088cc; }
.youtube { background: #FF0000; }

/* Isse icon zabardasti white aur perfect size ka dikhega */
.social-icon i { color: #ffffff !important; font-size: 22px !important; }

/* ================= PREMIUM UI OVERRIDE & BADA GRID (Final Match) ================= */
:root {
  --bg-pro: #fffcf9; /* Light Peach Cream Background */
  --pink-gradient: linear-gradient(135deg, #ff0844 0%, #ffb199 100%);
  --text-dark: #1a1a24;
}
body { background: var(--bg-pro); color: var(--text-dark); }

/* --- Top Header & Logo --- */
#mainHeader { background: var(--bg-pro); padding: 12px 6px; border: none; box-shadow: none; }
.top-row-pro { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; padding: 0 4px; }
.pro-icon-btn { background: #ffffff; border: 1px solid #f0e6e6; width: 40px; height: 40px; border-radius: 12px; display: flex; justify-content: center; align-items: center; font-size: 18px; color: var(--text-dark); box-shadow: 0 4px 10px rgba(0,0,0,0.03); cursor: pointer; position: relative; }
.bell-btn .dot { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; background: #ff0844; border-radius: 50%; border: 2px solid #fff; }

.logo-container { text-align: center; }
.logo-container h1 { font-family: 'Arial Black', Impact, sans-serif; font-size: 24px; font-style: italic; margin: 0; color: #1a1a24; letter-spacing: 1px; }
.mx-m { color: #a128ff; } .mx-x { color: #ff3b7c; }
.subtitle { font-size: 11px; font-weight: 600; color: #555; margin: 2px 0; }
.subtitle span { color: #ff3b7c; }
.logo-divider { font-size: 10px; color: #eebb99; margin-top: -2px; }

/* --- Search Bar Pro --- */
.search-container-pro { display: flex; gap: 10px; align-items: center; margin: 15px 4px; position: relative; }
.search-box-pro { flex: 1; background: #ffffff; border: 1px solid #f0e6e6; padding: 12px 16px; border-radius: 50px; display: flex; align-items: center; gap: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); }
.search-box-pro input { border: none; outline: none; background: transparent; width: 100%; font-size: 14px; color: var(--text-dark); }
.search-action-btn { width: 45px; height: 45px; border-radius: 14px; background: var(--pink-gradient); border: none; color: #fff; font-size: 18px; box-shadow: 0 4px 12px rgba(255, 8, 68, 0.3); display: flex; justify-content: center; align-items: center; cursor: pointer; }

/* --- Chips with Icons --- */
.chip-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto; 
  padding: 0 6px 12px 6px;
  -webkit-overflow-scrolling: touch;
}
.chip { display: flex; align-items: center; gap: 6px; padding: 10px 20px; border-radius: 50px; background: #ffffff; border: 1px solid #f0e6e6; color: var(--text-dark); font-weight: 600; font-size: 13px; box-shadow: 0 4px 10px rgba(0,0,0,0.02); }
.chip i { font-size: 14px; color: #6a11cb; }
.chip.active { background: var(--pink-gradient); color: #fff; border: none; box-shadow: 0 4px 15px rgba(255, 8, 68, 0.3); }
.chip.active i { color: #fff; }

/* --- Section Headers --- */
.section-header-pro { display: flex; justify-content: space-between; align-items: center; padding: 10px 6px 12px 6px; }
.section-header-pro h2 { font-size: 16px; font-weight: 800; color: var(--text-dark); display: flex; align-items: center; gap: 6px; margin: 0; }

/* --- Promo Slider Overrides (Size Locked & Cropped) --- */
.promo-slider { 
  aspect-ratio: 3.2 / 1; 
  border-radius: 18px; 
  box-shadow: 0 8px 25px rgba(0,0,0,0.08); 
  margin: 0 4px 15px 4px; /* Neeche thodi jagah di taaki search bar me na ghuse */
  border: none; 
  overflow: hidden; /* 🔥 Ye box ka size fix rakhega */
  position: relative;
}

.promo-track { 
  display: flex; 
  height: 100%; 
  transition: transform 0.5s ease; 
}

.promo-slide { 
  min-width: 100%; 
  height: 100%; 
  cursor: pointer; 
}

.promo-slide img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; /* 🔥 Ye image ko bina stretch kiye perfect crop karega */
  display: block;
}

.promo-dots { 
  position: absolute; 
  bottom: 8px; 
  left: 50%; 
  transform: translateX(-50%); 
  display: flex; 
  gap: 6px; 
  background: rgba(255,255,255,0.8); 
  padding: 4px 10px; 
  border-radius: 20px; 
  z-index: 10; /* Dots ko image ke upar dikhane ke liye */
}

.dot-indicator { 
  width: 6px; 
  height: 6px; 
  background: #ccc; 
  border-radius: 50%; 
  transition: background 0.3s; 
}

.dot-indicator.active { 
  background: #ff0844; 
}

/* --- Bottom Nav Pro --- */
.bottom-nav { background: #ffffff; border-top: 1px solid #f0e6e6; box-shadow: 0 -4px 20px rgba(0,0,0,0.04); height: 70px; border-radius: 25px 25px 0 0; padding: 0 10px; }
.nav-btn { color: #888; font-weight: 600; font-size: 11px; }
.nav-btn.active { color: #ff0844; }
.nav-btn i { font-size: 22px; margin-bottom: 4px; }

/* ================= GRID & CARDS (ZERO-BLINK OPTIMIZATION) ================= */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  padding: 0 6px 16px 6px;
  min-height: 100vh; /* Grid ko pehle se hi full height de di taaki screen collapse na ho */
}

.card {
  background: #f5ede4; /* Image aane se pehle dabba is rang ka ready rahega */
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  /* 🔥 BADA FIX: Card ka aspect ratio lock kar diya (Jaise 4:5 portrait) */
  aspect-ratio: 4 / 5; 
  box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* 🔥 BLINK FIX: Kisi bhi tarah ka default fade-in delay hata diya */
  transition: none !important; 
}

.trending {
  display: flex;
  gap: 8px;
  padding: 5px 6px 20px 6px; 
  overflow-x: auto; 
  -webkit-overflow-scrolling: touch; 
}

.trend {
  min-width: 110px;
  width: 110px;
  aspect-ratio: 3 / 4;
  background: #f5ede4;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.trend img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: none !important;
}

/* 🔥 NAYA FIX: PROFILE SOCIAL ICONS PERFECT CENTERING */
.social-links-row a {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center; /* Horizontally center */
  align-items: center; /* Vertically center */
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.social-links-row a i {
  font-size: 24px !important;
  color: #ffffff !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important; /* Default font height hata di */
  display: flex;
  justify-content: center;
  align-items: center;
}


.social-icon.insta { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.social-icon.whatsapp { background: #25D366; }
.social-icon.telegram { background: #0088cc; }
.social-icon.youtube { background: #ff0000; }

.social-links-row a i {
  font-size: 24px !important;
  color: #ffffff !important;
}
/* ================= PREMIUM SHIMMER LOADING EFFECT ================= */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Jab tak image load nahi hoti, yeh animation chalega */
.card, .trend {
  background: linear-gradient(90deg, #f5ede4 25%, #ffffff 50%, #f5ede4 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite linear;
}

/* Image load hone ke baad uska apna background white ho jayega */
.card img, .trend img {
  background-color: #fffcf9; 
}
/* ================= PREMIUM SPLASH SCREEN ANIMATION ================= */
.splash-anim-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Logo ko halke se zoom in/out (Heartbeat) karne ka animation */
  animation: heartbeat 1.5s infinite ease-in-out;
}

@keyframes heartbeat {
  0% { transform: scale(1); }
  50% { transform: scale(1.06); } /* Halka sa bada hoga */
  100% { transform: scale(1); }
}

/* Subtitle ke aage 3 Dots (...) ka loading animation */
.loading-dots {
  color: #ff3b7c;
  font-weight: 900;
}

.loading-dots::after {
  content: '';
  animation: typingDots 1.5s infinite steps(4, end);
}

@keyframes typingDots {
  0% { content: ''; }
  25% { content: '.'; }
  50% { content: '..'; }
  75% { content: '...'; }
  100% { content: ''; }
}
@keyframes fadeTextIn {
  0% { opacity: 0; transform: translateY(5px); }
  100% { opacity: 1; transform: translateY(0); }
}
/* 🌟 PREMIUM VIP TOAST POPUP 🌟 */
#customToast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: rgba(19, 27, 47, 0.95);
  color: #fff;
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  z-index: 999999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.08);
}

#customToast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.toast-icon {
  background: #10b981;
  color: #fff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}
