/* BD Link Point - Modern Styles + Multi-Theme */
:root, [data-theme="blue"] {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --tg: #0088cc;
  --tiktok: #000;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --dark: #0f172a;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --body-bg: linear-gradient(180deg, #eff6ff 0%, #f8fafc 40%, #fff 100%);
  --card-bg: #ffffff;
  --header-bg: rgba(255,255,255,0.95);
  --text: #1e293b;
  --text-muted: #64748b;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --font: 'Inter', 'Noto Sans Bengali', system-ui, -apple-system, sans-serif;
}

/* Theme: Midnight Dark */
[data-theme="dark"] {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --tg: #38bdf8;
  --gray-50: #1e293b;
  --gray-100: #1e293b;
  --gray-200: #334155;
  --gray-300: #475569;
  --gray-400: #94a3b8;
  --gray-500: #94a3b8;
  --gray-600: #cbd5e1;
  --gray-700: #e2e8f0;
  --gray-800: #f1f5f9;
  --gray-900: #f8fafc;
  --body-bg: linear-gradient(180deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  --card-bg: #1e293b;
  --header-bg: rgba(15,23,42,0.95);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.4);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.5);
}

/* Theme: Emerald Green */
[data-theme="green"] {
  --primary: #059669;
  --primary-dark: #047857;
  --primary-light: #10b981;
  --tg: #0d9488;
  --body-bg: linear-gradient(180deg, #ecfdf5 0%, #f0fdf4 40%, #fff 100%);
  --card-bg: #ffffff;
  --header-bg: rgba(255,255,255,0.95);
  --text: #1e293b;
  --text-muted: #64748b;
}

/* Theme: Rose Pink */
[data-theme="rose"] {
  --primary: #e11d48;
  --primary-dark: #be123c;
  --primary-light: #f43f5e;
  --tg: #db2777;
  --body-bg: linear-gradient(180deg, #fff1f2 0%, #fdf2f8 40%, #fff 100%);
  --card-bg: #ffffff;
  --header-bg: rgba(255,255,255,0.95);
  --text: #1e293b;
  --text-muted: #64748b;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--body-bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.05);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.header-left { display: flex; align-items: center; gap: 12px; }
.menu-toggle {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--gray-700);
  font-size: 1.2rem;
  transition: background 0.2s;
}
.menu-toggle:hover { background: var(--gray-100); }
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.25rem; color: var(--primary);
}
.logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 0.9rem;
}
.header-right { display: flex; align-items: center; gap: 10px; }
.btn-telegram {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--tg); color: #fff;
  padding: 8px 16px; border-radius: 999px;
  font-weight: 600; font-size: 0.875rem;
  transition: background 0.2s, transform 0.15s;
}
.btn-telegram:hover { background: #006da3; transform: translateY(-1px); }
.search-btn {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; color: var(--gray-600); font-size: 1.1rem;
}
.search-btn:hover { background: var(--gray-100); }

/* Search dropdown */
.search-dropdown {
  display: none;
  padding: 12px 0 16px;
  border-top: 1px solid var(--gray-100);
  background: #fff;
}
.search-dropdown.active { display: block; }
.search-form {
  display: flex; gap: 8px; max-width: 600px; margin: 0 auto;
}
.search-input-wrap {
  flex: 1; position: relative;
}
.search-input-wrap i {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--gray-400);
}
.search-input {
  width: 100%; padding: 12px 16px 12px 42px;
  border: 1px solid var(--gray-200); border-radius: 999px;
  font-size: 0.95rem; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}
.btn-search {
  padding: 12px 24px; background: var(--primary); color: #fff;
  border-radius: 999px; font-weight: 600;
}
.btn-search:hover { background: var(--primary-dark); }

/* Nav Drawer */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.4);
  z-index: 1100; opacity: 0; visibility: hidden; transition: 0.3s;
}
.drawer-backdrop.active { opacity: 1; visibility: visible; }
.nav-drawer {
  position: fixed; top: 0; left: 0; bottom: 0; width: 300px;
  background: var(--card-bg); z-index: 1200;
  transform: translateX(-100%); transition: transform 0.3s ease;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.nav-drawer.active { transform: translateX(0); }
.drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--gray-100);
}
.drawer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--primary); }
.drawer-close {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-500);
}
.drawer-close:hover { background: var(--gray-100); }
.drawer-nav { padding: 16px 12px; flex: 1; overflow-y: auto; }
.drawer-label {
  font-size: 0.75rem; font-weight: 600; color: var(--gray-400);
  text-transform: uppercase; letter-spacing: 0.05em;
  padding: 0 12px 8px;
}
.drawer-link {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: var(--radius-sm);
  color: var(--gray-700); font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.drawer-link:hover, .drawer-link.active {
  background: #eff6ff; color: var(--primary);
}
.drawer-link i { width: 20px; text-align: center; }
.drawer-tg {
  margin: 16px 12px; padding: 20px;
  background: linear-gradient(135deg, #e0f2fe, #f0f9ff);
  border-radius: var(--radius); text-align: center;
}
.drawer-tg i { font-size: 2rem; color: var(--tg); margin-bottom: 8px; }
.drawer-tg h4 { font-size: 0.95rem; margin-bottom: 6px; }
.drawer-tg p { font-size: 0.8rem; color: var(--gray-600); margin-bottom: 12px; }

/* Hero */
.hero {
  padding: 48px 0 32px;
  text-align: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--gray-200);
  padding: 6px 14px; border-radius: 999px;
  font-size: 0.85rem; font-weight: 500; color: var(--primary);
  margin-bottom: 16px; box-shadow: var(--shadow);
}
.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800; color: var(--primary);
  margin-bottom: 12px;
}
.hero p {
  max-width: 640px; margin: 0 auto 24px;
  color: var(--gray-600); font-size: 1rem;
}
.hero-cta { margin-bottom: 20px; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary); color: #fff;
  padding: 12px 28px; border-radius: 999px;
  font-weight: 600; font-size: 1rem;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(37,99,235,0.35);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,99,235,0.4);
}
.hero-tags {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
}
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid var(--gray-200);
  padding: 6px 14px; border-radius: 999px;
  font-size: 0.8rem; color: var(--gray-600);
  transition: border-color 0.2s, color 0.2s;
}
.tag:hover { border-color: var(--primary); color: var(--primary); }

/* Category Filter Tabs */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center; padding: 8px 0 24px;
}
.filter-tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: 999px;
  font-weight: 600; font-size: 0.875rem;
  background: var(--card-bg); border: 1px solid var(--gray-200);
  color: var(--text-muted); transition: all 0.2s;
}
.filter-tab:hover { border-color: var(--primary); color: var(--primary); }
.filter-tab.active {
  background: var(--primary); color: #fff; border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(37,99,235,0.3);
}

/* Section */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; flex-wrap: wrap; gap: 8px;
}
.section-title {
  font-size: 1.25rem; font-weight: 700; color: var(--gray-900);
  display: flex; align-items: center; gap: 8px;
}
.section-title::before {
  content: ''; width: 4px; height: 20px;
  background: var(--primary); border-radius: 2px;
}
.section-meta { font-size: 0.875rem; color: var(--gray-500); }

/* Posts Grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.post-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.post-thumb {
  position: relative;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  overflow: hidden;
}
.post-thumb img {
  width: 100%; height: 100%; object-fit: cover;
}
.post-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-500); font-size: 2.5rem;
}
.badge-cat {
  position: absolute; top: 10px; left: 10px;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 6px;
  font-size: 0.7rem; font-weight: 700; color: #fff;
  text-transform: uppercase; letter-spacing: 0.03em;
}
.badge-duration {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(0,0,0,0.75); color: #fff;
  padding: 3px 8px; border-radius: 4px;
  font-size: 0.75rem; font-weight: 600;
  display: flex; align-items: center; gap: 4px;
}
.post-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.post-meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.8rem; color: var(--gray-500); margin-bottom: 8px;
}
.post-meta i { margin-right: 3px; }
.post-title {
  font-size: 1rem; font-weight: 700; color: var(--gray-900);
  margin-bottom: 6px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-desc {
  font-size: 0.85rem; color: var(--gray-500);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 12px; flex: 1;
}
.post-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; border-top: 1px solid var(--gray-100);
}
.read-more {
  font-size: 0.85rem; font-weight: 600; color: var(--primary);
  display: flex; align-items: center; gap: 4px;
}
.read-more:hover { text-decoration: underline; }
.trending-badge {
  font-size: 0.75rem; color: var(--warning); font-weight: 600;
  display: flex; align-items: center; gap: 3px;
}

/* Single Post */
.single-post {
  max-width: 800px; margin: 0 auto; padding: 32px 16px 60px;
}
.single-thumb {
  border-radius: var(--radius); overflow: hidden;
  margin-bottom: 24px; background: var(--gray-900);
  aspect-ratio: 16/9;
}
.single-thumb img { width: 100%; height: 100%; object-fit: cover; }
.single-cat {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 6px; color: #fff;
  font-size: 0.8rem; font-weight: 700; margin-bottom: 12px;
}
.single-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800; margin-bottom: 12px; line-height: 1.3;
}
.single-meta {
  display: flex; flex-wrap: wrap; gap: 16px;
  font-size: 0.9rem; color: var(--gray-500); margin-bottom: 24px;
}
.single-content {
  font-size: 1.05rem; line-height: 1.8; color: var(--gray-700);
  margin-bottom: 32px;
}
.single-actions {
  display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px;
}
.btn-tg-large {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--tg); color: #fff;
  padding: 14px 28px; border-radius: 999px;
  font-weight: 700; font-size: 1rem;
  transition: background 0.2s, transform 0.15s;
}
.btn-tg-large:hover { background: #006da3; transform: translateY(-2px); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  border: 2px solid var(--gray-200); color: var(--gray-700);
  padding: 12px 24px; border-radius: 999px; font-weight: 600;
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* Pagination */
.pagination {
  display: flex; justify-content: center; gap: 6px;
  margin: 32px 0 48px; flex-wrap: wrap;
}
.page-btn {
  min-width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px; font-weight: 600; font-size: 0.9rem;
  background: #fff; border: 1px solid var(--gray-200);
  color: var(--gray-600); transition: all 0.15s;
}
.page-btn:hover, .page-btn.active {
  background: var(--primary); color: #fff; border-color: var(--primary);
}

/* Footer */
.site-footer {
  background: var(--gray-900); color: var(--gray-300);
  padding: 48px 0 24px; margin-top: auto;
}
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px; margin-bottom: 32px;
}
.footer-brand h3 { color: #fff; font-size: 1.25rem; margin-bottom: 8px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.6; }
.footer-links h4 {
  color: #fff; font-size: 0.95rem; margin-bottom: 12px;
}
.footer-links a {
  display: block; padding: 4px 0; font-size: 0.9rem;
  color: var(--gray-400); transition: color 0.15s;
}
.footer-links a:hover { color: #fff; }
.footer-social { display: flex; gap: 12px; margin-top: 12px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--gray-800); display: flex;
  align-items: center; justify-content: center;
  color: #fff; font-size: 1.1rem; transition: background 0.2s;
}
.footer-social a:hover { background: var(--primary); }
.footer-bottom {
  border-top: 1px solid var(--gray-800);
  padding-top: 20px; text-align: center;
  font-size: 0.85rem; color: var(--gray-500);
}

/* Empty state */
.empty-state {
  text-align: center; padding: 60px 20px; color: var(--gray-500);
}
.empty-state i { font-size: 3rem; margin-bottom: 16px; opacity: 0.5; }

/* Responsive */
@media (max-width: 640px) {
  .hero { padding: 32px 0 24px; }
  .posts-grid { grid-template-columns: 1fr; }
  .btn-telegram span { display: none; }
  .header-inner { height: 56px; }
}

/* ========== Splash Screen ========== */
.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: linear-gradient(145deg, var(--primary, #2563eb), var(--primary-dark, #1d4ed8));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.45s ease, visibility 0.45s;
}
.splash-screen.splash-hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.splash-inner { text-align: center; color: #fff; }
.splash-logo {
  width: 72px; height: 72px;
  background: rgba(255,255,255,0.2);
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 16px;
  animation: splashPulse 1.2s ease-in-out infinite;
}
.splash-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.splash-loader {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.splash-loader span {
  width: 10px; height: 10px;
  background: #fff;
  border-radius: 50%;
  animation: splashDot 1s ease-in-out infinite;
}
.splash-loader span:nth-child(2) { animation-delay: 0.15s; }
.splash-loader span:nth-child(3) { animation-delay: 0.3s; }
@keyframes splashPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
@keyframes splashDot {
  0%, 80%, 100% { opacity: 0.3; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-8px); }
}

/* ========== Page Transitions ========== */
.page-enter {
  animation: pageIn 0.4s ease-out;
}
.page-exit {
  animation: pageOut 0.28s ease-in forwards;
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pageOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-8px); }
}

/* Card hover / stagger feel */
.post-card {
  animation: cardIn 0.45s ease-out both;
}
.posts-grid .post-card:nth-child(1) { animation-delay: 0.05s; }
.posts-grid .post-card:nth-child(2) { animation-delay: 0.1s; }
.posts-grid .post-card:nth-child(3) { animation-delay: 0.15s; }
.posts-grid .post-card:nth-child(4) { animation-delay: 0.2s; }
.posts-grid .post-card:nth-child(5) { animation-delay: 0.25s; }
.posts-grid .post-card:nth-child(6) { animation-delay: 0.3s; }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Smooth filter tab */
.filter-tab { transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); }
.filter-tab.active { transform: scale(1.03); }

/* Hero fade */
.hero { animation: pageIn 0.5s ease-out; }

/* Video player */
.video-player-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  margin-bottom: 24px;
  box-shadow: var(--shadow-lg);
}
.video-player-wrap iframe,
.video-player-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.btn-video-large {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  color: #fff !important;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.btn-video-large:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

/* Share box */
.share-box {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px;
  background: var(--card-bg);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 24px;
}
.share-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.share-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.share-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff !important;
  font-size: 1rem;
  transition: transform 0.15s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}
.share-btn:hover { transform: scale(1.1); }
.share-fb { background: #1877f2; }
.share-wa { background: #25d366; }
.share-tg { background: #0088cc; }
.share-x { background: #000; }
.share-copy { background: var(--primary); }

/* Extra micro-interactions */
.btn-primary, .btn-tg-large, .btn-video-large {
  position: relative;
  overflow: hidden;
}
.post-card:hover .post-thumb img {
  transform: scale(1.05);
  transition: transform 0.4s ease;
}
.post-thumb img { transition: transform 0.4s ease; }

.single-title {
  animation: pageIn 0.45s ease-out 0.1s both;
}
.single-actions {
  animation: pageIn 0.45s ease-out 0.2s both;
}

/* =========================================================
   ADVANCED UNIQUE LAYOUT THEMES
   ========================================================= */

/* ---------- Theme: Cyber Neon ---------- */
[data-theme="neon"] {
  --primary: #00f5ff;
  --primary-dark: #00c4cc;
  --primary-light: #67ffff;
  --tg: #00f5ff;
  --body-bg: radial-gradient(ellipse at 20% 20%, #1a0a2e 0%, #0a0a12 50%, #050510 100%);
  --card-bg: rgba(10, 10, 25, 0.85);
  --header-bg: rgba(5, 5, 15, 0.9);
  --text: #e0f7ff;
  --text-muted: #7dd3fc;
  --gray-100: #12121f;
  --gray-200: #1e1e35;
  --gray-500: #67e8f9;
  --gray-600: #a5f3fc;
  --radius: 4px;
  --shadow: 0 0 20px rgba(0, 245, 255, 0.15);
  --shadow-lg: 0 0 40px rgba(0, 245, 255, 0.25);
}
[data-theme="neon"] body {
  background: var(--body-bg) !important;
  color: var(--text);
}
[data-theme="neon"] .site-header {
  border-bottom: 1px solid rgba(0, 245, 255, 0.3);
  box-shadow: 0 0 30px rgba(0, 245, 255, 0.1);
}
[data-theme="neon"] .logo { color: #00f5ff; text-shadow: 0 0 12px rgba(0,245,255,0.6); }
[data-theme="neon"] .logo-icon {
  background: linear-gradient(135deg, #00f5ff, #ff00e5);
  box-shadow: 0 0 20px rgba(0,245,255,0.5);
  border-radius: 4px;
}
[data-theme="neon"] .hero {
  background: linear-gradient(180deg, rgba(0,245,255,0.08) 0%, transparent 100%);
  border-bottom: 1px solid rgba(0,245,255,0.2);
  position: relative;
  overflow: hidden;
}
[data-theme="neon"] .hero::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 2px,
    rgba(0,245,255,0.03) 2px, rgba(0,245,255,0.03) 4px
  );
  animation: neonScan 8s linear infinite;
  pointer-events: none;
}
@keyframes neonScan {
  0% { transform: translateY(0); }
  100% { transform: translateY(50px); }
}
[data-theme="neon"] .hero h1 {
  color: #00f5ff;
  text-shadow: 0 0 20px rgba(0,245,255,0.5), 0 0 40px rgba(255,0,229,0.3);
  letter-spacing: 1px;
}
[data-theme="neon"] .posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
[data-theme="neon"] .post-card {
  background: var(--card-bg);
  border: 1px solid rgba(0,245,255,0.35);
  border-radius: 4px;
  box-shadow: 0 0 15px rgba(0,245,255,0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}
[data-theme="neon"] .post-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 4px;
  padding: 1px;
  background: linear-gradient(135deg, #00f5ff, transparent, #ff00e5);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
[data-theme="neon"] .post-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 0 30px rgba(0,245,255,0.35), 0 0 60px rgba(255,0,229,0.15);
  border-color: #00f5ff;
}
[data-theme="neon"] .post-card:hover::before { opacity: 1; }
[data-theme="neon"] .post-thumb img {
  filter: saturate(1.2) contrast(1.1);
  transition: transform 0.5s ease, filter 0.3s;
}
[data-theme="neon"] .post-card:hover .post-thumb img {
  transform: scale(1.08);
  filter: saturate(1.4) brightness(1.1);
}
[data-theme="neon"] .btn-primary, [data-theme="neon"] .btn-tg-large, [data-theme="neon"] .btn-video-large {
  background: transparent !important;
  border: 2px solid #00f5ff !important;
  color: #00f5ff !important;
  box-shadow: 0 0 15px rgba(0,245,255,0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
}
[data-theme="neon"] .btn-primary:hover, [data-theme="neon"] .btn-tg-large:hover {
  background: rgba(0,245,255,0.15) !important;
  box-shadow: 0 0 25px rgba(0,245,255,0.5);
  transform: translateY(-2px);
}
[data-theme="neon"] .filter-tab {
  border: 1px solid rgba(0,245,255,0.3);
  border-radius: 4px;
  background: transparent;
}
[data-theme="neon"] .filter-tab.active {
  background: rgba(0,245,255,0.15) !important;
  border-color: #00f5ff;
  box-shadow: 0 0 12px rgba(0,245,255,0.3);
  color: #00f5ff !important;
}
[data-theme="neon"] .single-title {
  color: #00f5ff;
  text-shadow: 0 0 15px rgba(0,245,255,0.4);
}
[data-theme="neon"] .nav-drawer {
  background: #0a0a15 !important;
  border-right: 1px solid rgba(0,245,255,0.3);
}
[data-theme="neon"] .share-btn { border-radius: 4px; }

/* ---------- Theme: Editorial Magazine ---------- */
[data-theme="magazine"] {
  --primary: #1a1a2e;
  --primary-dark: #0f0f1a;
  --primary-light: #e94560;
  --tg: #e94560;
  --body-bg: #f8f5f0;
  --card-bg: #ffffff;
  --header-bg: rgba(248,245,240,0.97);
  --text: #1a1a2e;
  --text-muted: #5c5c6e;
  --gray-100: #f0ebe3;
  --gray-200: #e0d9ce;
  --radius: 0;
  --shadow: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.1);
  --font: 'Georgia', 'Noto Serif Bengali', 'Noto Sans Bengali', serif;
}
[data-theme="magazine"] body {
  background: #f8f5f0 !important;
  font-family: var(--font);
}
[data-theme="magazine"] .site-header {
  border-bottom: 3px solid #1a1a2e;
  box-shadow: none;
}
[data-theme="magazine"] .logo {
  font-family: Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #1a1a2e;
}
[data-theme="magazine"] .logo-icon {
  background: #e94560;
  border-radius: 0;
}
[data-theme="magazine"] .hero {
  background: #1a1a2e;
  color: #f8f5f0;
  padding: 80px 0 60px;
  text-align: left;
  border-bottom: 6px solid #e94560;
}
[data-theme="magazine"] .hero .container { max-width: 900px; }
[data-theme="magazine"] .hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  color: #f8f5f0;
  letter-spacing: -1px;
  margin-bottom: 16px;
}
[data-theme="magazine"] .hero p {
  font-size: 1.2rem;
  color: #c0b8a8;
  max-width: 600px;
}
[data-theme="magazine"] .hero-badge { display: none; }
[data-theme="magazine"] .btn-primary {
  background: #e94560 !important;
  border-radius: 0 !important;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.85rem;
  padding: 14px 28px;
}
[data-theme="magazine"] .posts-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px 40px;
  max-width: 1100px;
}
@media (max-width: 768px) {
  [data-theme="magazine"] .posts-grid { grid-template-columns: 1fr; }
}
[data-theme="magazine"] .post-card {
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: magFade 0.6s ease both;
}
[data-theme="magazine"] .post-card:nth-child(1) {
  grid-column: 1 / -1;
  flex-direction: row;
  gap: 28px;
  padding-bottom: 32px;
  border-bottom: 2px solid #1a1a2e;
  margin-bottom: 8px;
}
[data-theme="magazine"] .post-card:nth-child(1) .post-thumb {
  flex: 1.3;
  aspect-ratio: 16/10;
  max-height: 360px;
}
[data-theme="magazine"] .post-card:nth-child(1) .post-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
[data-theme="magazine"] .post-card:nth-child(1) .post-title {
  font-size: 1.75rem;
  line-height: 1.25;
}
[data-theme="magazine"] .post-thumb {
  border-radius: 0;
  overflow: hidden;
  aspect-ratio: 16/11;
}
[data-theme="magazine"] .post-thumb img {
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
[data-theme="magazine"] .post-card:hover .post-thumb img {
  transform: scale(1.04);
}
[data-theme="magazine"] .post-title {
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.3;
  letter-spacing: -0.3px;
}
[data-theme="magazine"] .post-title a:hover { color: #e94560; }
[data-theme="magazine"] .post-desc {
  font-size: 0.95rem;
  color: #5c5c6e;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
[data-theme="magazine"] .badge-cat, [data-theme="magazine"] .badge-duration {
  border-radius: 0;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
[data-theme="magazine"] .filter-bar {
  border-bottom: 2px solid #1a1a2e;
  padding-bottom: 0;
  margin-bottom: 32px;
}
[data-theme="magazine"] .filter-tab {
  border-radius: 0;
  border: none;
  border-bottom: 3px solid transparent;
  background: transparent;
  padding: 12px 18px;
}
[data-theme="magazine"] .filter-tab.active {
  border-bottom-color: #e94560;
  background: transparent !important;
  color: #e94560 !important;
  transform: none;
}
[data-theme="magazine"] .section-title {
  font-family: Georgia, serif;
  font-size: 1.6rem;
  border-left: 4px solid #e94560;
  padding-left: 14px;
}
[data-theme="magazine"] .single-post {
  max-width: 780px;
  margin: 0 auto;
}
[data-theme="magazine"] .single-title {
  font-family: Georgia, serif;
  font-size: 2.2rem;
  line-height: 1.2;
  letter-spacing: -0.5px;
}
[data-theme="magazine"] .single-thumb, [data-theme="magazine"] .video-player-wrap {
  border-radius: 0;
}
[data-theme="magazine"] .btn-tg-large, [data-theme="magazine"] .btn-video-large {
  border-radius: 0 !important;
  text-transform: uppercase;
  letter-spacing: 1px;
}
@keyframes magFade {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
[data-theme="magazine"] .post-card:nth-child(2) { animation-delay: 0.1s; }
[data-theme="magazine"] .post-card:nth-child(3) { animation-delay: 0.2s; }
[data-theme="magazine"] .post-card:nth-child(4) { animation-delay: 0.3s; }
[data-theme="magazine"] .post-card:nth-child(5) { animation-delay: 0.4s; }
[data-theme="magazine"] .post-card:nth-child(6) { animation-delay: 0.5s; }

/* ---------- Theme: Glassmorphism ---------- */
[data-theme="glass"] {
  --primary: #818cf8;
  --primary-dark: #6366f1;
  --primary-light: #a5b4fc;
  --tg: #38bdf8;
  --body-bg: linear-gradient(135deg, #0f172a 0%, #1e1b4b 40%, #312e81 70%, #1e293b 100%);
  --card-bg: rgba(255,255,255,0.08);
  --header-bg: rgba(15,23,42,0.7);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --gray-100: rgba(255,255,255,0.05);
  --gray-200: rgba(255,255,255,0.12);
  --radius: 20px;
  --shadow: 0 8px 32px rgba(0,0,0,0.3);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.4);
}
[data-theme="glass"] body {
  background: var(--body-bg) !important;
  min-height: 100vh;
}
[data-theme="glass"] .site-header {
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
[data-theme="glass"] .logo-icon {
  background: linear-gradient(135deg, #818cf8, #c084fc);
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(129,140,248,0.4);
}
[data-theme="glass"] .hero {
  background: transparent;
  position: relative;
}
[data-theme="glass"] .hero::after {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(129,140,248,0.25) 0%, transparent 70%);
  top: -50px; right: 10%;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  animation: glassFloat 6s ease-in-out infinite alternate;
}
@keyframes glassFloat {
  from { transform: translate(0, 0); }
  to { transform: translate(-30px, 20px); }
}
[data-theme="glass"] .hero h1 {
  background: linear-gradient(90deg, #a5b4fc, #c084fc, #f0abfc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
[data-theme="glass"] .posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
[data-theme="glass"] .post-card {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
[data-theme="glass"] .post-card:hover {
  transform: translateY(-12px) scale(1.02);
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.3);
  box-shadow: 0 20px 50px rgba(129,140,248,0.25);
}
[data-theme="glass"] .post-thumb {
  border-radius: 20px 20px 0 0;
}
[data-theme="glass"] .post-thumb img {
  transition: transform 0.6s ease;
}
[data-theme="glass"] .post-card:hover .post-thumb img {
  transform: scale(1.08);
}
[data-theme="glass"] .btn-primary, [data-theme="glass"] .btn-tg-large, [data-theme="glass"] .btn-video-large {
  background: linear-gradient(135deg, #818cf8, #a78bfa) !important;
  border: none !important;
  border-radius: 999px;
  box-shadow: 0 4px 20px rgba(129,140,248,0.4);
}
[data-theme="glass"] .btn-primary:hover {
  box-shadow: 0 8px 30px rgba(129,140,248,0.55);
  transform: translateY(-3px);
}
[data-theme="glass"] .filter-tab {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
[data-theme="glass"] .filter-tab.active {
  background: linear-gradient(135deg, #818cf8, #a78bfa) !important;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(129,140,248,0.4);
}
[data-theme="glass"] .nav-drawer {
  background: rgba(15,23,42,0.85) !important;
  backdrop-filter: blur(24px);
  border-right: 1px solid rgba(255,255,255,0.1);
}
[data-theme="glass"] .share-box, [data-theme="glass"] .single-thumb {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
}
[data-theme="glass"] .single-title {
  background: linear-gradient(90deg, #a5b4fc, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Theme: Minimal Clean ---------- */
[data-theme="minimal"] {
  --primary: #111827;
  --primary-dark: #030712;
  --primary-light: #374151;
  --tg: #0ea5e9;
  --body-bg: #fafafa;
  --card-bg: #ffffff;
  --header-bg: rgba(250,250,250,0.95);
  --text: #111827;
  --text-muted: #6b7280;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --radius: 8px;
  --shadow: none;
  --shadow-lg: 0 1px 3px rgba(0,0,0,0.04);
  --font: 'Inter', 'Noto Sans Bengali', system-ui, sans-serif;
}
[data-theme="minimal"] body {
  background: #fafafa !important;
  letter-spacing: -0.01em;
}
[data-theme="minimal"] .site-header {
  border-bottom: 1px solid #e5e7eb;
  box-shadow: none;
}
[data-theme="minimal"] .logo {
  font-weight: 600;
  color: #111827;
  letter-spacing: -0.5px;
}
[data-theme="minimal"] .logo-icon {
  background: #111827;
  border-radius: 6px;
}
[data-theme="minimal"] .hero {
  background: transparent;
  padding: 60px 0 40px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}
[data-theme="minimal"] .hero .container { max-width: 720px; margin: 0; }
[data-theme="minimal"] .hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -1.5px;
  color: #111827;
  line-height: 1.15;
}
[data-theme="minimal"] .hero p {
  font-size: 1.1rem;
  color: #6b7280;
  max-width: 480px;
}
[data-theme="minimal"] .hero-badge { display: none; }
[data-theme="minimal"] .btn-primary {
  background: #111827 !important;
  border-radius: 6px !important;
  font-weight: 500;
  padding: 12px 24px;
}
[data-theme="minimal"] .btn-primary:hover {
  background: #030712 !important;
  transform: none;
}
[data-theme="minimal"] .posts-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 720px;
}
[data-theme="minimal"] .post-card {
  background: transparent;
  border: none;
  border-bottom: 1px solid #e5e7eb;
  border-radius: 0;
  box-shadow: none;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 28px 0;
  transition: background 0.2s;
}
[data-theme="minimal"] .post-card:hover {
  background: #f3f4f6;
  transform: none;
}
[data-theme="minimal"] .post-thumb {
  aspect-ratio: 16/11;
  border-radius: 6px;
  overflow: hidden;
}
[data-theme="minimal"] .post-thumb img {
  transition: opacity 0.3s;
}
[data-theme="minimal"] .post-card:hover .post-thumb img {
  opacity: 0.9;
  transform: none;
}
[data-theme="minimal"] .post-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
}
[data-theme="minimal"] .post-title {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin-bottom: 6px;
}
[data-theme="minimal"] .post-title a:hover { color: #0ea5e9; }
[data-theme="minimal"] .post-desc {
  font-size: 0.9rem;
  color: #6b7280;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}
[data-theme="minimal"] .badge-cat, [data-theme="minimal"] .badge-duration {
  font-size: 0.65rem;
  border-radius: 4px;
  font-weight: 500;
}
[data-theme="minimal"] .filter-bar {
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 8px;
  gap: 4px;
}
[data-theme="minimal"] .filter-tab {
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #6b7280;
  font-weight: 500;
  padding: 8px 14px;
}
[data-theme="minimal"] .filter-tab.active {
  background: #111827 !important;
  color: #fff !important;
  transform: none;
}
[data-theme="minimal"] .section-title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: #111827;
}
[data-theme="minimal"] .single-post {
  max-width: 680px;
  margin: 0 auto;
}
[data-theme="minimal"] .single-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.2;
}
[data-theme="minimal"] .single-thumb, [data-theme="minimal"] .video-player-wrap {
  border-radius: 8px;
}
[data-theme="minimal"] .btn-tg-large, [data-theme="minimal"] .btn-video-large {
  border-radius: 6px !important;
  font-weight: 500;
}
[data-theme="minimal"] .btn-tg-large {
  background: #0ea5e9 !important;
}
[data-theme="minimal"] .share-box {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}
@media (max-width: 600px) {
  [data-theme="minimal"] .post-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  [data-theme="minimal"] .post-thumb { max-width: 100%; }
}

/* Shared enhancements for advanced themes */
[data-theme="neon"] .page-enter,
[data-theme="magazine"] .page-enter,
[data-theme="glass"] .page-enter,
[data-theme="minimal"] .page-enter {
  animation: pageIn 0.5s ease-out;
}

/* ---- Extra polish for advanced themes on single post & mobile ---- */
[data-theme="neon"] .single-thumb,
[data-theme="neon"] .video-player-wrap {
  border: 1px solid rgba(0,245,255,0.4);
  box-shadow: 0 0 25px rgba(0,245,255,0.2);
  border-radius: 4px;
}
[data-theme="neon"] .single-cat {
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
[data-theme="neon"] .share-box {
  border: 1px solid rgba(0,245,255,0.25);
  background: rgba(10,10,25,0.9);
}

[data-theme="magazine"] .single-content {
  font-size: 1.1rem;
  line-height: 1.75;
  color: #333;
}
[data-theme="magazine"] .single-meta {
  border-bottom: 1px solid #e0d9ce;
  padding-bottom: 12px;
  margin-bottom: 20px;
}
[data-theme="magazine"] .share-box {
  border: none;
  border-top: 2px solid #1a1a2e;
  border-radius: 0;
  background: transparent;
}

[data-theme="glass"] .single-thumb img {
  border-radius: 16px;
}
[data-theme="glass"] .single-actions .btn-outline {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  border-radius: 999px;
}
[data-theme="glass"] .single-actions .btn-outline:hover {
  background: rgba(255,255,255,0.2);
}

[data-theme="minimal"] .single-content {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #374151;
}
[data-theme="minimal"] .single-meta span {
  font-size: 0.85rem;
}
[data-theme="minimal"] .btn-outline {
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  color: #374151;
}
[data-theme="minimal"] .btn-outline:hover {
  background: #f3f4f6;
}

/* Smooth card stagger for neon & glass */
[data-theme="neon"] .post-card,
[data-theme="glass"] .post-card {
  animation: pageIn 0.5s ease both;
}
[data-theme="neon"] .post-card:nth-child(1),
[data-theme="glass"] .post-card:nth-child(1) { animation-delay: 0.05s; }
[data-theme="neon"] .post-card:nth-child(2),
[data-theme="glass"] .post-card:nth-child(2) { animation-delay: 0.1s; }
[data-theme="neon"] .post-card:nth-child(3),
[data-theme="glass"] .post-card:nth-child(3) { animation-delay: 0.15s; }
[data-theme="neon"] .post-card:nth-child(4),
[data-theme="glass"] .post-card:nth-child(4) { animation-delay: 0.2s; }
[data-theme="neon"] .post-card:nth-child(5),
[data-theme="glass"] .post-card:nth-child(5) { animation-delay: 0.25s; }
[data-theme="neon"] .post-card:nth-child(6),
[data-theme="glass"] .post-card:nth-child(6) { animation-delay: 0.3s; }
