/*
Theme Name: BDBOYS Clone Version 2.0
Theme URI: https://bdboys.top
Author: Helim Hasan Akash
Author URI: https://facebook.com/live.helim
Description: Full dark mode blog theme for BDBOYS.TOP — News and Mobile Downloads Portal. Custom write/edit, profile, likes, ads, notifications.
Version: 3.1.1
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bdboys
Tags: blog, dark-mode, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ========== Fonts: Bangla + English ========== */
@font-face {
  font-family: 'Nikosh';
  src: local('Nikosh'), local('NikoshBAN'),
       url('https://cdn.jsdelivr.net/gh/shakib-mia/bangla-web-fonts@main/nikosh/Nikosh.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'SolaimanLipi';
  src: local('SolaimanLipi'),
       url('https://cdn.jsdelivr.net/gh/shakib-mia/bangla-web-fonts@main/solaimanlipi/SolaimanLipi.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-bn: 'Hind Siliguri', 'SolaimanLipi', 'Nikosh', 'Noto Sans Bengali', sans-serif;
  --font-en: 'Roboto', 'Open Sans', 'Montserrat', system-ui, sans-serif;
  --font-heading: 'Montserrat', 'Hind Siliguri', 'SolaimanLipi', sans-serif;
}

html, body {
  font-family: var(--font-bn), var(--font-en) !important;
}

h1, h2, h3, h4, h5, h6,
.post-hero-title,
.entry-title,
.write-page-title,
.auth-brand h1,
.auth-form-box h2 {
  font-family: var(--font-heading) !important;
}

/* Latin / English UI labels lean Roboto */
.auth-btn, .btn, button, input, select, textarea,
.bdboys-header-menu, .hdr-drop-item, .post-hero-meta,
.cat-list, .pagination {
  font-family: var(--font-bn), var(--font-en) !important;
}



:root {
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --accent: #818cf8;
  --bg: #0b0f19;
  --bg-2: #111827;
  --bg-card: #151c2c;
  --bg-card-hover: #1a2336;
  --text: #e5e7eb;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  --border: #1f2937;
  --border-light: #374151;
  --header-bg: #0b0f19;
  --header-text: #ffffff;
  --footer-bg: #070a12;
  --badge-bg: rgba(99,102,241,0.9);
  --shadow: 0 8px 24px rgba(0,0,0,0.4);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: #a5b4fc; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button, input, textarea, select { font-family: inherit; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
}

/* ========== HEADER ========== */
.site-header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 16px;
}
.site-logo a {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
}
.site-logo span { color: var(--primary); }

.main-nav ul { display: flex; gap: 4px; align-items: center; }
.main-nav a {
  color: #d1d5db;
  padding: 7px 13px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.9rem;
}
.main-nav a:hover,
.main-nav .current-menu-item a {
  background: var(--primary);
  color: #fff;
}

.header-actions { display: flex; align-items: center; gap: 8px; }
.auth-btn, .author-req-btn {
  background: var(--bg-2);
  border: 1px solid var(--border-light);
  color: #e5e7eb;
  padding: 7px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
}
.auth-btn:hover { background: #1f2937; color: #fff; }
.author-req-btn {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.author-req-btn:hover { background: var(--primary-hover); }

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
}

/* ========== MAIN LAYOUT ========== */
.site-main { flex: 1; padding: 22px 0 40px; }
.content-area {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 26px;
  align-items: start;
}

/* ========== SECTION HEAD ========== */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.section-head h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.2px;
}

/* ========== POST GRID - 2 Column Modern Cards ========== */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  background: var(--bg-card-hover);
  border-color: #374151;
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.post-card .thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: #0f172a;
  overflow: hidden;
}
.post-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.post-card:hover .thumb img { transform: scale(1.04); }

/* Category Badge on image */
.cat-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--badge-bg);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 5px 12px;
  border-radius: 20px;
  z-index: 2;
  backdrop-filter: blur(4px);
  max-width: 80%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-card .content {
  padding: 14px 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.post-card .entry-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card .entry-title a { color: #f3f4f6; }
.post-card .entry-title a:hover { color: var(--accent); }

.post-card .excerpt {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.post-card .meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.post-card .meta .author-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-muted);
}
.post-card .meta .author-link img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}
.post-card .meta span { display: inline-flex; align-items: center; gap: 3px; }

.post-card .footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: none;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  color: var(--text-dim);
  font-size: 0.85rem;
  transition: var(--transition);
}
.like-btn.liked, .like-btn:hover {
  color: #f87171;
  background: rgba(248,113,113,0.1);
}

/* ========== SIDEBAR ========== */
.sidebar { position: sticky; top: 72px; }

/* Search Box */
.sidebar-search {
  margin-bottom: 18px;
}
.sidebar-search form {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  overflow: hidden;
  transition: var(--transition);
}
.sidebar-search form:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.2);
}
.sidebar-search input[type="search"] {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 18px;
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
}
.sidebar-search input::placeholder { color: var(--text-dim); }
.sidebar-search button {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0 16px;
  cursor: pointer;
  font-size: 1.1rem;
}

/* Categories Widget */
.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 18px;
}
.sidebar-widget-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.cat-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}
.cat-list li:last-child { border-bottom: none; }
.cat-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
}
.cat-list a:hover { color: var(--accent); }
.cat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.count-badge {
  background: #1e293b;
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 600;
  min-width: 28px;
  text-align: center;
}

/* Popular in sidebar */
.pop-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.pop-item:last-child { border-bottom: none; }
.pop-item .pop-thumb {
  width: 64px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #0f172a;
}
.pop-item .pop-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pop-item .pop-title {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pop-item .pop-title:hover { color: var(--accent); }
.pop-item .pop-meta { font-size: 0.7rem; color: var(--text-dim); margin-top: 3px; }

/* ========== CATEGORY SECTION (Home bottom) ========== */
.home-categories {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.cat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  transition: var(--transition);
}
.cat-card:hover {
  border-color: var(--primary);
  background: var(--bg-card-hover);
}
.cat-card h3 { font-size: 0.98rem; margin-bottom: 6px; }
.cat-card h3 a { color: #fff; }
.cat-card h3 a:hover { color: var(--accent); }
.cat-card .count {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}
.cat-card .subcats {
  margin-top: 12px;
  border-top: 1px dashed var(--border);
  padding-top: 10px;
}
.cat-card .subcats a {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.cat-card .subcats a:hover { color: var(--accent); }

/* ========== SINGLE POST ========== */
.single-post {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.single-post .entry-title {
  font-size: 1.7rem;
  line-height: 1.3;
  margin-bottom: 14px;
  color: #fff;
}
.single-post .entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 20px;
  align-items: center;
}
.single-post .entry-meta a { color: var(--accent); }
.entry-content {
  font-size: 1.02rem;
  line-height: 1.75;
  color: #d1d5db;
}
.entry-content p { margin-bottom: 1.15em; }
.entry-content h2, .entry-content h3 { color: #fff; margin: 1.4em 0 0.5em; }

.author-box {
  display: flex;
  gap: 14px;
  align-items: center;
  background: var(--bg-2);
  padding: 16px;
  border-radius: var(--radius-sm);
  margin: 28px 0;
  border: 1px solid var(--border);
}
.author-box img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}
.author-box .info h4 { color: #fff; margin-bottom: 4px; }
.author-box .info p { color: var(--text-muted); font-size: 0.88rem; }

.post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 22px 0;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.social-share { display: flex; gap: 6px; flex-wrap: wrap; }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #fff;
  border: none;
  cursor: pointer;
}
.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.telegram { background: #0088cc; }
.share-btn.linkedin { background: #0a66c2; }
.share-btn:hover { opacity: 0.88; }

.related-posts { margin: 32px 0; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

/* ========== COMMENTS ========== */
.comments-area {
  margin-top: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.comments-title { font-size: 1.15rem; margin-bottom: 18px; color: #fff; }
.comment {
  display: flex;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.comment .avatar img { width: 44px; height: 44px; border-radius: 50%; }
.comment-author { font-weight: 600; color: #fff; margin-bottom: 3px; }
.comment-meta { font-size: 0.75rem; color: var(--text-dim); margin-bottom: 8px; }
.comment-content { font-size: 0.92rem; color: #d1d5db; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-2);
  color: var(--text);
  margin-bottom: 12px;
}
.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.comment-form .submit {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}
.comment-form .submit:hover { background: var(--primary-hover); }

/* ========== ADS ========== */
.ad-slot {
  margin: 16px 0;
  text-align: center;
  overflow: hidden;
  border-radius: 6px;
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  padding: 32px 0 16px;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}
.footer-widget h4 { color: #fff; margin-bottom: 12px; font-size: 1rem; }
.footer-widget ul li { margin-bottom: 6px; }
.footer-widget a { color: var(--text-muted); font-size: 0.9rem; }
.footer-widget a:hover { color: var(--accent); }
.footer-bottom {
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
}

/* ========== AUTH MODAL ========== */
.auth-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.auth-modal.active { display: flex; }
.auth-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  width: 100%;
  max-width: 400px;
  position: relative;
}
.auth-box h2 { margin-bottom: 16px; text-align: center; color: #fff; }
.auth-box .close-modal {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-muted);
}
.auth-box input {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-2);
  color: var(--text);
}
.auth-box button[type="submit"] {
  width: 100%;
  padding: 11px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}
.auth-box .switch-form {
  text-align: center;
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.auth-box .switch-form a { color: var(--accent); font-weight: 600; }

/* ========== PAGINATION ========== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 28px 0 10px;
  flex-wrap: wrap;
}
.pagination a, .pagination span,
.pagination .page-numbers {
  padding: 8px 14px;
  border-radius: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 500;
  font-size: 0.9rem;
}
.pagination .current {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.pagination a:hover {
  background: #1f2937;
  border-color: #374151;
}

.page-title { font-size: 1.4rem; color: #fff; margin-bottom: 6px; }
.archive-header {
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.btn {
  display: inline-block;
  padding: 9px 18px;
  background: var(--primary);
  color: #fff;
  border-radius: 6px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.btn:hover { background: var(--primary-hover); color: #fff; }
.btn-outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.hidden { display: none !important; }

/* ========== MOBILE - Style 2 Horizontal Compact ========== */
@media (max-width: 992px) {
  .content-area { grid-template-columns: 1fr; }
  .sidebar { position: static; order: 2; }
  .posts-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .header-top { flex-wrap: wrap; padding: 8px 0; }
  .main-nav {
    display: none;
    width: 100%;
    order: 3;
  }
  .main-nav.active { display: block; }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px 0 4px;
  }
  .main-nav a { display: block; padding: 11px 14px; }
  .mobile-menu-toggle { display: block; }
  .header-actions { gap: 6px; }
  .auth-btn, .author-req-btn { padding: 6px 10px; font-size: 0.78rem; }
  .site-logo a { font-size: 1.2rem; }

  /* Style 2: Horizontal compact cards */
  .posts-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .post-card {
    flex-direction: row;
    align-items: stretch;
    min-height: 100px;
  }
  .post-card .thumb {
    width: 110px;
    min-width: 110px;
    max-width: 110px;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    border-radius: 0;
  }
  .post-card .thumb img {
    object-fit: cover;
  }
  .post-card .cat-badge {
    top: 6px;
    left: 6px;
    font-size: 0.58rem;
    padding: 3px 7px;
    max-width: 90%;
  }
  .post-card .content {
    padding: 10px 12px;
    justify-content: center;
    flex: 1;
    min-width: 0;
  }
  .post-card .entry-title {
    font-size: 0.88rem;
    line-height: 1.35;
    margin-bottom: 6px;
    -webkit-line-clamp: 2;
  }
  .post-card .excerpt {
    display: none; /* hide excerpt on mobile for compact look */
  }
  .post-card .meta {
    gap: 8px;
    font-size: 0.72rem;
    margin-bottom: 0;
    flex-wrap: wrap;
  }
  .post-card .meta .author-link img {
    width: 14px;
    height: 14px;
  }
  .post-card .meta .like-btn {
    margin-left: auto;
    padding: 2px 6px;
    font-size: 0.75rem;
  }
  /* Hide some meta items on very small to keep clean - keep author, time, views, like */
  .post-card .meta span:nth-of-type(2) { /* comments - optional hide */
    /* keep visible */
  }

  .section-head h2 { font-size: 1.1rem; }

  .home-categories { margin-top: 28px; }
  .category-grid { grid-template-columns: 1fr; }

  .single-post { padding: 16px 14px; }
  .single-post .entry-title { font-size: 1.35rem; }
  .author-box { flex-direction: column; text-align: center; }
  .post-actions { flex-direction: column; align-items: flex-start; }
  .related-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }

  /* Related posts also horizontal on mobile */
  .related-grid .post-card {
    flex-direction: column;
  }
  .related-grid .post-card .thumb {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    aspect-ratio: 16/10;
  }
  .related-grid .post-card .excerpt { display: none; }
}

@media (max-width: 480px) {
  .related-grid { grid-template-columns: 1fr; }
  .container { padding: 0 12px; }
  .post-card .thumb {
    width: 96px;
    min-width: 96px;
    max-width: 96px;
  }
  .post-card .entry-title { font-size: 0.84rem; }
  .post-card .meta { font-size: 0.68rem; gap: 6px; }
}

/* ========== FOOTER - Screenshot Style ========== */
.site-footer {
  background: #111827;
  border-top: 1px solid #1f2937;
  color: #9ca3af;
  padding: 48px 0 0;
  margin-top: auto;
}
.footer-main {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 1.2fr;
  gap: 40px;
  padding-bottom: 36px;
}
.footer-brand .footer-site-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  display: inline-block;
  margin-bottom: 10px;
}
.footer-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 18px;
  color: #9ca3af;
}
.footer-social {
  display: flex;
  gap: 10px;
}
.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1f2937;
  color: #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 0.25s ease;
}
.social-icon:hover {
  background: #6366f1;
  color: #fff;
}

.footer-links h4,
.footer-newsletter h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 16px;
  font-weight: 700;
}
.footer-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
}
.footer-links-grid a {
  color: #9ca3af;
  font-size: 0.9rem;
  display: block;
  padding: 4px 0;
}
.footer-links-grid a:hover { color: #a5b4fc; }

.footer-newsletter p {
  font-size: 0.88rem;
  margin-bottom: 14px;
  line-height: 1.55;
}
.newsletter-form {
  display: flex;
  gap: 0;
  background: #0f172a;
  border: 1px solid #1f2937;
  border-radius: 50px;
  overflow: hidden;
}
.newsletter-form input[type="email"] {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 18px;
  color: #e5e7eb;
  font-size: 0.9rem;
  outline: none;
}
.newsletter-form input::placeholder { color: #6b7280; }
.newsletter-form button {
  background: #7c3aed;
  color: #fff;
  border: none;
  padding: 12px 22px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: 50px;
  margin: 4px;
  transition: background 0.25s;
  white-space: nowrap;
}
.newsletter-form button:hover { background: #6d28d9; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid #1f2937;
  font-size: 0.85rem;
}
.footer-bottom-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-bottom-links a {
  color: #6b7280;
  font-size: 0.82rem;
}
.footer-bottom-links a:hover { color: #a5b4fc; }

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #7c3aed;
  color: #fff;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 4px 16px rgba(124,58,237,0.4);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  background: #6d28d9;
  transform: translateY(-2px);
}

/* Like button inside meta */
.post-card .meta .like-btn {
  margin-left: auto;
  padding: 2px 8px;
  font-size: 0.8rem;
}

@media (max-width: 900px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }
  .footer-social { justify-content: center; }
  .footer-links-grid { justify-items: center; }
  .newsletter-form { max-width: 360px; margin: 0 auto; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-bottom-links { justify-content: center; }
}

/* ========== Badge লেখক ========== */
.badge-lekhok {
  display: inline-block;
  background: #7c3aed;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 6px;
  vertical-align: middle;
  letter-spacing: 0.3px;
}
.badge-contributor {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  border: 2px solid #7c3aed;
  color: #c4b5fd;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 10px;
  white-space: nowrap;
}

/* ========== Mobile Popular Section (only mobile) ========== */
.mobile-popular-section {
  display: none;
  margin-bottom: 24px;
}

/* ========== Single Post refinements ========== */
.single-thumb {
  margin-bottom: 20px;
  border-radius: var(--radius);
  overflow: hidden;
}
.author-box-stats {
  display: flex;
  gap: 14px;
  margin: 8px 0 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.author-view-btn {
  margin-top: 6px;
  padding: 5px 12px;
  font-size: 0.8rem;
}

/* Sidebar Author Card (single post PC) */
.sidebar-author-card {
  text-align: center;
  padding: 20px 16px !important;
}
.sidebar-author-avatar img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin: 0 auto 12px;
  border: 3px solid var(--primary);
  object-fit: cover;
}
.sidebar-author-name {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.sidebar-author-name a { color: #fff; }
.sidebar-author-name a:hover { color: var(--accent); }
.sidebar-author-bio {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 10px;
}
.sidebar-author-site {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 12px;
}
.sidebar-author-stats {
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* ========== Comment Cards (l.png style) ========== */
.comment-list { list-style: none; padding: 0; margin: 0 0 24px; }
.comment-list > li { list-style: none; margin-bottom: 12px; }
.comment-card {
  background: #1a1f2e;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  display: block !important;
}
.comment-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.comment-card .avatar img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}
.comment-header-info { flex: 1; min-width: 0; }
.comment-card .comment-author {
  font-weight: 600;
  color: #fff;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.comment-card .comment-author a { color: #fff; }
.comment-card .comment-meta {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 2px;
}
.comment-reply-btn { flex-shrink: 0; }
.comment-reply-btn a,
.comment-reply-btn .comment-reply-link {
  display: inline-block;
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: var(--transition);
}
.comment-reply-btn a:hover {
  border-color: var(--primary);
  color: var(--accent);
}
.comment-card .comment-content {
  font-size: 0.92rem;
  color: #d1d5db;
  line-height: 1.55;
  padding-left: 54px;
}
.comment-list .children {
  list-style: none;
  margin-left: 24px;
  margin-top: 10px;
}

/* ========== Author Profile Page (r.png) ========== */
.author-profile-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px 40px;
}
.author-profile-header {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px 0;
  margin: 20px 0 24px;
}
.author-profile-top {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.author-profile-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.author-profile-avatar-wrap img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 3px solid var(--primary);
  object-fit: cover;
}
.author-profile-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.author-profile-name-row h1 {
  font-size: 1.6rem;
  color: #fff;
  margin: 0;
}
.author-profile-links {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.author-profile-links a { color: var(--accent); }
.author-profile-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.stat-box {
  background: #0f172a;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 16px;
  text-align: center;
  min-width: 70px;
}
.stat-box strong {
  display: block;
  font-size: 1.15rem;
  color: #fff;
}
.stat-box span {
  font-size: 0.75rem;
  color: var(--text-dim);
}
.stat-date { min-width: 100px; }
.author-profile-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.social-icon-sm {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #1f2937;
  color: #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}
.social-icon-sm:hover { background: var(--primary); color: #fff; }
.btn-profile-edit {
  background: transparent;
  border: 1px solid #7c3aed;
  color: #c4b5fd;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}
.btn-profile-edit:hover {
  background: #7c3aed;
  color: #fff;
}
.author-profile-tabs {
  display: flex;
  gap: 4px;
  border-top: 1px solid var(--border);
  margin: 0 -24px;
  padding: 0 24px;
}
.author-profile-tabs .tab {
  padding: 12px 18px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  border-bottom: 2px solid transparent;
}
.author-profile-tabs .tab.active,
.author-profile-tabs .tab:hover {
  color: #fff;
  border-bottom-color: var(--primary);
}
.author-content-area {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
}
.rank-info { padding: 4px 0; }
.rank-label { font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.rank-bar {
  height: 8px;
  background: #1e293b;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 6px;
}
.rank-fill {
  height: 100%;
  background: linear-gradient(90deg, #7c3aed, #6366f1);
  border-radius: 4px;
}
.rank-next { font-size: 0.8rem; color: var(--text-dim); }
.top-contributors li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}
.top-contributors li:last-child { border-bottom: none; }
.top-contributors .rank-num {
  color: var(--text-dim);
  font-weight: 700;
  min-width: 24px;
}
.top-contributors img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}
.top-contributors a { flex: 1; color: var(--text); }
.top-contributors a:hover { color: var(--accent); }
.contrib-count { color: var(--accent); font-weight: 600; font-size: 0.85rem; }

/* Mobile: show popular, hide author profile complex layout */
@media (max-width: 768px) {
  .mobile-popular-section {
    display: block;
  }
  .author-profile-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .author-profile-name-row { justify-content: center; }
  .author-profile-stats { justify-content: center; }
  .author-profile-actions { justify-content: center; }
  .author-content-area {
    grid-template-columns: 1fr;
  }
  .author-sidebar { order: 2; }
  .comment-card .comment-content {
    padding-left: 0;
  }
  .sidebar-single .sidebar-author-card {
    /* keep on mobile too under content */
  }
}

@media (min-width: 769px) {
  .mobile-popular-section {
    display: none !important;
  }
}

/* =====================================================
   SINGLE POST — PC Style A + Mobile Style D
===================================================== */

/* Default: hide mobile-only elements on PC */
.entry-meta-mobile,
.author-strip.mobile-only,
.mobile-action-bar {
  display: none;
}

/* PC meta */
.entry-meta-pc {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.entry-meta-pc .meta-author {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.entry-meta-pc .meta-author img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}
.entry-meta-pc a { color: var(--accent); }

.post-actions-pc {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.post-actions-pc .share-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-left: 8px;
}

.author-box-pc {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

/* ========== MOBILE Style D — Compact Meta ========== */
@media (max-width: 768px) {

  /* Hide PC meta & large author box on mobile */
  .entry-meta-pc { display: none !important; }
  .author-box-pc { display: none !important; }

  /* Show mobile meta chips */
  .entry-meta-mobile {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
  }
  .chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #1a1f2e;
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.75rem;
    padding: 5px 10px;
    border-radius: 20px;
  }
  .chip-cat {
    background: #7c3aed;
    border-color: #7c3aed;
    color: #fff;
    font-weight: 600;
  }

  /* Title smaller on mobile */
  .single-post .entry-title {
    font-size: 1.35rem;
    line-height: 1.35;
    margin-bottom: 12px;
  }

  .single-thumb {
    margin-bottom: 16px;
    border-radius: 10px;
  }

  .entry-content {
    font-size: 0.98rem;
    line-height: 1.7;
  }

  /* Author strip */
  .author-strip.mobile-only {
    display: flex !important;
    gap: 12px;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    margin: 20px 0 12px;
  }
  .author-strip img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
  }
  .author-strip-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: #fff;
    font-size: 0.92rem;
    margin-bottom: 2px;
  }
  .author-strip-name a { color: #fff; }
  .author-strip-info p {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.35;
  }

  /* Keep a compact share row on mobile (scroll target) */
  .post-actions-pc {
    margin: 12px 0 20px;
    padding: 12px 0;
    gap: 8px;
  }
  .post-actions-pc .share-label { display: none; }

  /* Sticky bottom action bar */
  .mobile-action-bar {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 900;
    background: #111827;
    border-top: 1px solid var(--border);
    padding: 10px 16px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    justify-content: space-around;
    align-items: center;
    gap: 8px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
  }
  .mobile-action-bar .like-btn {
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 0.9rem;
  }
  .mab-share,
  .mab-comment {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
  }
  .mab-share:hover,
  .mab-comment:hover {
    color: var(--accent);
    background: rgba(99,102,241,0.1);
  }

  /* Space for sticky bar */
  .single-post {
    padding-bottom: 70px;
  }
  .site-footer {
    padding-bottom: 60px;
  }

  /* Sidebar below content on mobile */
  .sidebar-single {
    margin-top: 20px;
  }
}

/* PC: ensure sidebar layout */
@media (min-width: 769px) {
  .single-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 26px;
    align-items: start;
  }
  .entry-meta-mobile,
  .author-strip.mobile-only,
  .mobile-action-bar {
    display: none !important;
  }
}

/* =====================================================
   HERO STORY SLIDER — PC only (homepage)
===================================================== */
.hero-slider {
  position: relative;
  margin-bottom: 28px;
  border-radius: 16px;
  overflow: hidden;
}
.hero-slides {
  position: relative;
  height: 380px;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  display: flex;
  align-items: center;
}
.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}
.hero-slide-inner {
  width: 100%;
  padding: 36px 48px;
  max-width: 100%;
}
.hero-slide-content {
  max-width: 520px;
}
.hero-cat-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.hero-title {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 12px;
}
.hero-title a {
  color: #fff;
  text-decoration: none;
}
.hero-title a:hover { color: #fce7f3; }
.hero-excerpt {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.55;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-meta {
  display: flex;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 18px;
}
.hero-btn {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(6px);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 22px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.3);
  transition: all 0.25s ease;
}
.hero-btn:hover {
  background: #fff;
  color: #7c3aed;
}

/* Nav arrows */
.hero-nav {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  z-index: 5;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.hero-nav:hover { background: rgba(0,0,0,0.6); }
.hero-prev { left: 14px; }
.hero-next { right: 14px; }

.hero-counter {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 5;
  background: rgba(0,0,0,0.4);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 12px;
}

/* Thumbnail strip */
.hero-thumbs {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  background: #0f172a;
  overflow-x: auto;
  scrollbar-width: thin;
}
.hero-thumb {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #1e293b;
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 6px 10px 6px 6px;
  cursor: pointer;
  min-width: 160px;
  max-width: 200px;
  transition: all 0.2s;
  color: var(--text-muted);
  text-align: left;
}
.hero-thumb img {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}
.hero-thumb span {
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #d1d5db;
}
.hero-thumb.active {
  border-color: #7c3aed;
  background: #1e1b4b;
}
.hero-thumb:hover {
  border-color: #6366f1;
}

/* Hide slider on mobile */
@media (max-width: 768px) {
  .pc-only-slider,
  .hero-slider {
    display: none !important;
  }
}

@media (min-width: 769px) and (max-width: 992px) {
  .hero-slides { height: 320px; }
  .hero-title { font-size: 1.4rem; }
  .hero-slide-inner { padding: 28px 36px; }
}

/* =====================================================
   HEADER MENU + MEGA DROPDOWN (PC)
===================================================== */
.bdboys-header-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.bdboys-header-menu > li {
  position: relative;
}
.bdboys-header-menu > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #d1d5db;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.9rem;
  white-space: nowrap;
}
.bdboys-header-menu > li > a:hover,
.bdboys-header-menu > li:hover > a {
  background: var(--primary);
  color: #fff;
}
.bdboys-header-menu .caret {
  font-size: 0.7rem;
  opacity: 0.8;
}

/* Mega dropdown — stays open for click (JS .mega-open + hover) */
.mega-dropdown {
  display: none;
  position: absolute;
  top: calc(100% - 4px);
  left: 0;
  z-index: 1100;
  min-width: 420px;
  background: #1a1f2e;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  padding: 14px;
  padding-top: 18px;
}
/* Invisible bridge so mouse can move from link to dropdown */
.mega-dropdown::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 14px;
}
.menu-item.has-mega:hover > .mega-dropdown,
.menu-item.has-mega.mega-open > .mega-dropdown {
  display: block;
}
.menu-item.has-mega.mega-open > a {
  background: var(--primary);
  color: #fff;
}
.mega-posts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.mega-post {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 8px;
  background: #111827;
  border: 1px solid transparent;
  transition: all 0.2s;
  text-decoration: none;
}
.mega-post:hover {
  border-color: #7c3aed;
  background: #1e1b4b;
}
.mega-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #0f172a;
}
.mega-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mega-thumb-empty {
  display: block;
  width: 48px;
  height: 48px;
  background: #1e293b;
}
.mega-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: #e5e7eb;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mega-more {
  display: block;
  text-align: right;
  margin-top: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  padding: 4px 0;
}
.mega-empty {
  color: var(--text-muted);
  font-size: 0.85rem;
  grid-column: 1 / -1;
}

/* All categories list */
.mega-all-cats {
  min-width: 260px;
  max-height: 360px;
  overflow-y: auto;
}
.all-cats-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.all-cats-list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 10px;
  border-radius: 6px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
}
.all-cats-list li a:hover {
  background: #1e293b;
  color: var(--accent);
}

/* =====================================================
   FACEBOOK-STYLE AUTHOR STORIES
===================================================== */
.fb-stories-bar {
  margin-bottom: 20px;
  padding: 12px 0;
}
.fb-stories-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  scrollbar-width: thin;
}
.fb-story-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 72px;
  text-decoration: none;
  flex-shrink: 0;
}
.fb-story-ring {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #7c3aed, #ec4899, #f59e0b);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.fb-story-ring img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg);
}
.fb-story-ring.add-ring {
  background: #1e293b;
  border: 2px dashed #4b5563;
}
.fb-story-plus {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 22px;
  height: 22px;
  background: #7c3aed;
  color: #fff;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg);
  line-height: 1;
}
.fb-story-name {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fb-story-item:hover .fb-story-name { color: var(--accent); }

@media (max-width: 768px) {
  .mega-dropdown { display: none !important; }
  .bdboys-header-menu {
    flex-direction: column;
    align-items: stretch;
  }
  .bdboys-header-menu > li > a {
    padding: 12px 14px;
  }
  .fb-story-ring { width: 60px; height: 60px; }
  .fb-story-ring img { width: 52px; height: 52px; }
  .fb-story-item { min-width: 64px; }
}

/* Story modal form */
.story-box { max-width: 460px; }
.story-box textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-2);
  color: var(--text);
  margin-bottom: 12px;
  resize: vertical;
  min-height: 100px;
}
.story-image-label {
  display: block;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  cursor: pointer;
}
.story-image-label input[type="file"] {
  display: block;
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.story-form-msg {
  font-size: 0.9rem;
  margin-bottom: 10px;
  min-height: 1.2em;
}
.story-form-msg.error { color: #f87171; }
.story-form-msg.success { color: #34d399; }
.fb-story-add {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

/* Hero slider reliability */
.hero-slides {
  position: relative;
  height: 380px;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.55s ease, visibility 0.55s ease;
  z-index: 0;
}
.hero-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

/* ========== Header Icons (search, write, notif, avatar) ========== */
.hdr-icon-btn {
  background: transparent;
  border: none;
  color: #d1d5db;
  font-size: 1.15rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background 0.2s;
}
.hdr-icon-btn:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.hdr-avatar img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  object-fit: cover;
}
.auth-btn-sm {
  padding: 5px 10px;
  font-size: 0.78rem;
}
.notif-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: #ef4444;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.hdr-search-drop,
.hdr-notif-drop {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 1200;
  background: #1a1f2e;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.hdr-search-drop.open,
.hdr-notif-drop.open { display: block; }

.header-actions { position: relative; }

.hdr-search-drop {
  width: 280px;
  padding: 10px;
}
.hdr-search-drop input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--text);
  outline: none;
}
.hdr-search-drop input:focus { border-color: var(--primary); }

.hdr-notif-drop {
  width: 320px;
  max-height: 400px;
  overflow: hidden;
  display: none;
  flex-direction: column;
}
.hdr-notif-drop.open { display: flex; }
.notif-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: #fff;
  font-size: 0.9rem;
}
.notif-head button {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 0.8rem;
  cursor: pointer;
}
.notif-list {
  overflow-y: auto;
  max-height: 340px;
}
.notif-item {
  display: block;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: background 0.15s;
}
.notif-item:hover { background: #111827; }
.notif-item.unread { background: rgba(99,102,241,0.08); }
.notif-text {
  display: block;
  color: #e5e7eb;
  font-size: 0.85rem;
  line-height: 1.4;
  margin-bottom: 4px;
}
.notif-time {
  font-size: 0.72rem;
  color: var(--text-dim);
}
.notif-empty {
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ========== Facebook Story Viewer ========== */
.story-viewer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.story-viewer.active { display: flex; }
.story-viewer-bg {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.92);
}
.story-viewer-close {
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 10;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}
.story-viewer-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}
.story-viewer-prev { left: 16px; }
.story-viewer-next { right: 16px; }
.story-viewer-progress {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 4px;
  width: min(420px, 90vw);
}
.sv-bar {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.3);
  border-radius: 2px;
  overflow: hidden;
}
.sv-bar-fill {
  height: 100%;
  width: 0%;
  background: #fff;
  border-radius: 2px;
}
.story-viewer-content {
  position: relative;
  z-index: 5;
  width: min(400px, 92vw);
  max-height: 85vh;
  background: #111827;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.story-viewer-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(0,0,0,0.4);
}
.sv-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #7c3aed;
}
.sv-author {
  font-weight: 700;
  color: #fff;
  font-size: 0.95rem;
}
.sv-title {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  margin-top: 2px;
}
.story-viewer-body {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}
.sv-image {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  display: block;
}
.sv-text {
  padding: 16px;
  color: #e5e7eb;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}
.sv-full-link {
  display: block;
  text-align: center;
  padding: 14px;
  color: #a5b4fc;
  font-weight: 600;
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
  text-decoration: none;
}
.sv-full-link:hover { color: #fff; background: rgba(99,102,241,0.15); }

body.story-open { overflow: hidden; }

.fb-story-item {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

@media (max-width: 768px) {
  .auth-btn-sm { display: none; }
  .hdr-notif-drop { width: 290px; right: -40px; }
  .story-viewer-content { max-height: 90vh; width: 96vw; }
}

/* ========== Full Page Writer ========== */
.write-page {
  min-height: 70vh;
  padding: 24px 18px 48px;
  max-width: 820px;
  margin: 0 auto;
}
.write-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}
.write-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.write-back {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
}
.write-back:hover { color: var(--accent); }
.write-status {
  flex: 1;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-dim);
}
.write-status.saving { color: #fbbf24; }
.write-status.saved { color: #34d399; }
.write-status.error { color: #f87171; }
.write-actions { display: flex; gap: 8px; }
.write-title {
  width: 100%;
  font-size: 1.6rem;
  font-weight: 800;
  background: transparent;
  border: none;
  color: #fff;
  outline: none;
  margin-bottom: 14px;
  padding: 8px 0;
}
.write-title::placeholder { color: #4b5563; }
.write-meta-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.write-meta-row select {
  flex: 1;
  min-width: 180px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--text);
}
.write-img-btn {
  padding: 10px 16px;
  background: #1e293b;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.88rem;
}
.write-img-btn:hover { color: var(--accent); border-color: var(--primary); }
.write-thumb-preview {
  margin-bottom: 14px;
  border-radius: 10px;
  overflow: hidden;
  max-height: 220px;
}
.write-thumb-preview img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  display: block;
}
.write-content {
  width: 100%;
  min-height: 360px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #0f172a;
  color: #e5e7eb;
  font-size: 1.05rem;
  line-height: 1.75;
  resize: vertical;
  outline: none;
  font-family: inherit;
}
.write-content:focus { border-color: var(--primary); }
.write-hint {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--text-dim);
  text-align: center;
}
@media (max-width: 600px) {
  .write-title { font-size: 1.25rem; }
  .write-topbar { flex-direction: column; align-items: stretch; }
  .write-status { text-align: left; }
}

/* =====================================================
   POST HERO — Trickbd-style (screenshot match)
===================================================== */
.post-hero {
  background: linear-gradient(105deg, #7c3aed 0%, #c026d3 40%, #f97316 100%);
  padding: 28px 0 32px;
  margin-bottom: 28px;
}
.post-hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 28px;
  align-items: center;
}
.post-hero-thumb {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  background: #0f172a;
  aspect-ratio: 16/10;
}
.post-hero-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.post-hero-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  min-height: 180px;
}
.post-hero-cat {
  display: inline-block;
  background: rgba(255,255,255,0.22);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 5px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
  text-decoration: none;
}
.post-hero-cat:hover { background: rgba(255,255,255,0.35); color: #fff; }
.post-hero-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.35;
  margin: 0 0 14px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.post-hero-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.post-hero-author img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.5);
  object-fit: cover;
}
.post-hero-author a {
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}
.post-hero-author a:hover { text-decoration: underline; }
.post-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.88);
}
.post-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Single layout under hero */
.single-layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px 40px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 26px;
  align-items: start;
}
.single-post {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 26px;
}
.single-post .entry-content {
  font-size: 1.02rem;
  line-height: 1.85;
  color: #d1d5db;
}
.single-post .entry-content p { margin-bottom: 1.1em; }
.single-post .entry-content h2,
.single-post .entry-content h3 {
  color: #fff;
  margin: 1.4em 0 0.6em;
}
.single-post .entry-content ul,
.single-post .entry-content ol {
  margin: 0 0 1.1em 1.2em;
}
.single-post .entry-content a { color: var(--accent); }

/* Actions bar */
.post-actions-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 28px 0 20px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.post-actions-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.post-actions-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.report-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.82rem;
  cursor: pointer;
}
.report-btn:hover {
  border-color: #ef4444;
  color: #f87171;
}

/* Hide old entry headers on single (hero replaces them) */
.single-post > .entry-header { display: none; }

/* Hide FB stories completely */
.fb-stories-bar,
.pc-only-slider.story-mode,
#storyViewer,
#storyModal { display: none !important; }

@media (max-width: 900px) {
  .post-hero-inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .post-hero-title { font-size: 1.35rem; }
  .single-layout {
    grid-template-columns: 1fr;
  }
  .post-hero-thumb { max-width: 100%; }
}
@media (max-width: 768px) {
  .post-hero { padding: 18px 0 22px; margin-bottom: 18px; }
  .single-post { padding: 18px 14px; }
  .post-actions-bar { flex-direction: column; align-items: flex-start; }
}

/* =====================================================
   WRITE PAGE V2 — Screenshot match
===================================================== */
.write-page-v2 {
  max-width: 900px;
  margin: 0 auto;
  padding: 28px 18px 60px;
}
.write-page-v2 .write-container {
  background: transparent;
  border: none;
  padding: 0;
}
.write-page-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 8px;
}
.write-page-v2 .write-status {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 18px;
  text-align: left;
}
.write-title-input {
  width: 100%;
  background: #1a2234;
  border: 1px solid #2a3548;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 1.05rem;
  color: #e5e7eb;
  outline: none;
  margin-bottom: 14px;
}
.write-title-input::placeholder { color: #6b7280; }
.write-title-input:focus { border-color: #6366f1; }

.write-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  background: #1a2234;
  border: 1px solid #2a3548;
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  padding: 8px 10px;
}
.write-toolbar button {
  background: transparent;
  border: none;
  color: #9ca3af;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.write-toolbar button:hover,
.write-toolbar button.active {
  background: #2a3548;
  color: #fff;
}
.write-toolbar .tb-sep {
  width: 1px;
  background: #2a3548;
  margin: 4px 6px;
}

.write-editor {
  min-height: 280px;
  background: #1a2234;
  border: 1px solid #2a3548;
  border-radius: 0 0 12px 12px;
  padding: 16px 18px;
  color: #e5e7eb;
  font-size: 1rem;
  line-height: 1.7;
  outline: none;
  margin-bottom: 20px;
}
.write-editor:empty:before {
  content: attr(data-placeholder);
  color: #6b7280;
  pointer-events: none;
}
.write-editor:focus { border-color: #6366f1; }
.write-editor h2 { font-size: 1.3rem; color: #fff; margin: 0.8em 0 0.4em; }
.write-editor blockquote {
  border-left: 3px solid #6366f1;
  padding-left: 12px;
  color: #9ca3af;
  margin: 0.8em 0;
}
.write-editor pre {
  background: #0f172a;
  padding: 10px 12px;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.9rem;
}
.write-editor img { max-width: 100%; border-radius: 8px; }

.write-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}
.write-meta-card {
  background: #1a2234;
  border: 1px solid #2a3548;
  border-radius: 12px;
  padding: 14px;
}
.write-meta-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #d1d5db;
  margin-bottom: 10px;
}
.write-meta-label .opt {
  font-weight: 400;
  color: #6b7280;
  font-size: 0.78rem;
}
.write-feat-box {
  display: block;
  cursor: pointer;
  min-height: 110px;
}
.write-feat-empty {
  border: 2px dashed #3b4559;
  border-radius: 10px;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #6b7280;
  font-size: 0.88rem;
  transition: border-color 0.2s;
}
.write-feat-empty:hover { border-color: #6366f1; color: #a5b4fc; }
.feat-icon { font-size: 1.5rem; }
.write-thumb-preview {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  min-height: 110px;
}
.write-thumb-preview img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}
.write-thumb-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0,0,0,0.7);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}
.write-select,
.write-input {
  width: 100%;
  background: #111827;
  border: 1px solid #2a3548;
  border-radius: 8px;
  padding: 11px 12px;
  color: #e5e7eb;
  font-size: 0.9rem;
  outline: none;
}
.write-select:focus,
.write-input:focus { border-color: #6366f1; }
.write-input::placeholder { color: #6b7280; }

.write-footer-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.write-back-link {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}
.write-back-link:hover { color: var(--accent); }
.write-btns { display: flex; gap: 10px; }
.btn-draft {
  background: #1e293b;
  border: 1px solid #374151;
  color: #d1d5db;
  padding: 11px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}
.btn-draft:hover { background: #273549; color: #fff; }
.btn-publish {
  background: #7c3aed;
  border: none;
  color: #fff;
  padding: 11px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}
.btn-publish:hover { background: #6d28d9; }

@media (max-width: 768px) {
  .write-meta-grid { grid-template-columns: 1fr; }
  .write-page-v2 { padding: 16px 12px 48px; }
}

/* ========== Profile avatar dropdown ========== */
.hdr-profile-wrap {
  position: relative;
  display: inline-flex;
}
.hdr-avatar {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: 50%;
  line-height: 0;
}
.hdr-avatar img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  object-fit: cover;
  display: block;
}
.hdr-profile-drop {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 1300;
  min-width: 200px;
  background: #1a1f2e;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.5);
  padding: 8px 0;
  overflow: hidden;
}
.hdr-profile-drop.open { display: block; }
.hdr-drop-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  color: #e5e7eb;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s;
}
.hdr-drop-item:hover {
  background: #111827;
  color: #fff;
}
.hdr-drop-icon { font-size: 1rem; width: 20px; text-align: center; }
.hdr-drop-sep {
  height: 1px;
  background: var(--border);
  margin: 6px 0;
}
.hdr-drop-logout { color: #f87171; }
.hdr-drop-logout:hover { background: rgba(239,68,68,0.1); color: #fca5a5; }

/* ========== Edit Profile Page ========== */
.edit-profile-page {
  max-width: 560px;
  margin: 0 auto;
  padding: 28px 18px 60px;
}
.edit-profile-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
}
.edit-profile-box h1 {
  font-size: 1.4rem;
  color: #fff;
  margin: 0 0 4px;
}
.ep-sub {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}
.ep-avatar-section {
  text-align: center;
  margin-bottom: 24px;
}
.ep-avatar-preview {
  width: 100px;
  height: 100px;
  margin: 0 auto 12px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--primary);
}
.ep-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ep-avatar-btn {
  display: inline-block;
  background: #1e293b;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
}
.ep-avatar-btn:hover { color: var(--accent); border-color: var(--primary); }
.ep-hint {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 8px;
}
.ep-fields label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #d1d5db;
  margin-bottom: 14px;
}
.ep-fields label .opt {
  font-weight: 400;
  color: var(--text-dim);
  font-size: 0.78rem;
}
.ep-fields input,
.ep-fields textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  background: #0f172a;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 12px;
  color: #e5e7eb;
  font-size: 0.95rem;
  outline: none;
  font-family: inherit;
}
.ep-fields input:focus,
.ep-fields textarea:focus { border-color: var(--primary); }
.ep-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

/* ========== Unified Back Button (Dark Mode) ========== */
.bdboys-back-btn,
a.bdboys-back-btn,
.write-back-link,
.write-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1e293b;
  border: 1px solid #374151;
  color: #e5e7eb !important;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  line-height: 1.2;
}
.bdboys-back-btn:hover,
a.bdboys-back-btn:hover,
.write-back-link:hover,
.write-back:hover {
  background: #273549;
  border-color: #6366f1;
  color: #fff !important;
  transform: translateX(-2px);
  box-shadow: 0 4px 14px rgba(99,102,241,0.2);
}
.bdboys-back-btn:active {
  transform: translateX(0);
}

/* Write / edit profile footer row alignment */
.write-footer-actions .bdboys-back-btn,
.ep-actions .bdboys-back-btn {
  margin-right: auto;
}
.ep-actions {
  justify-content: space-between;
  width: 100%;
}

/* Sidebar author card v2 — screenshot style */
.sidebar-author-v2 {
  text-align: center;
  padding: 22px 16px !important;
}
.sidebar-author-v2 .sidebar-author-avatar img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 3px solid #3b82f6;
  object-fit: cover;
  margin: 0 auto 12px;
  display: block;
}
.sidebar-author-v2 .sidebar-author-name {
  font-size: 1.1rem;
  margin: 0 0 4px;
}
.sidebar-author-v2 .sidebar-author-name a {
  color: #fff;
  font-weight: 700;
}
.sidebar-author-links-text {
  font-size: 0.85rem;
  color: #9ca3af;
  margin: 0 0 12px;
  word-break: break-all;
}
.sidebar-author-v2 .sidebar-author-stats {
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 0.85rem;
  color: #9ca3af;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}
.sidebar-author-socials {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.sa-social {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1e293b;
  color: #d1d5db;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
}
.sa-social:hover {
  background: #6366f1;
  color: #fff;
}

/* Post edit button */
.post-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 1px solid #6366f1;
  color: #a5b4fc;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}
.post-edit-btn:hover {
  background: #6366f1;
  color: #fff;
}

/* Hide residual author boxes on single if any */
.single-post .author-box { display: none !important; }

/* Hero author avatar — ensure visible */
.post-hero-author {
  display: flex !important;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.post-hero-author img,
.post-hero-author .avatar {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px;
  border-radius: 50% !important;
  border: 2px solid rgba(255,255,255,0.6) !important;
  object-fit: cover !important;
  display: block !important;
  flex-shrink: 0;
}
.post-hero-author a {
  color: #fff !important;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

/* Hide residual subtitle under author name in sidebar */
.sidebar-author-links-text,
.sidebar-author-bio {
  display: none !important;
}

/* ========== Custom Login / Register Split ========== */
body.bdboys-auth-body {
  margin: 0;
  background: #0b0f19;
  min-height: 100vh;
}
.auth-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.auth-split-left {
  background: linear-gradient(145deg, #5b21b6 0%, #7c3aed 45%, #4c1d95 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 36px;
  color: #fff;
}
.auth-brand { max-width: 420px; }
.auth-logo-img { max-height: 48px; margin-bottom: 24px; }
.auth-logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 20px;
}
.auth-brand h1 {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 12px;
}
.auth-brand > p {
  opacity: 0.9;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 28px;
}
.auth-stats {
  display: flex;
  gap: 28px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}
.auth-stats strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
}
.auth-stats span {
  font-size: 0.8rem;
  opacity: 0.85;
}
.auth-features {
  list-style: none;
  padding: 0;
  margin: 0;
}
.auth-features li {
  margin-bottom: 10px;
  font-size: 0.92rem;
  opacity: 0.95;
}
.auth-split-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 28px;
  background: #0f1419;
}
.auth-form-box {
  width: 100%;
  max-width: 400px;
}
.auth-form-box h2 {
  color: #fff;
  font-size: 1.5rem;
  margin: 0 0 6px;
}
.auth-form-sub {
  color: #9ca3af;
  margin-bottom: 22px;
  font-size: 0.9rem;
}
.bdboys-auth-form label {
  display: block;
  color: #d1d5db;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.auth-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  background: #1a2234;
  border: 1px solid #2a3548;
  border-radius: 10px;
  padding: 0 12px;
}
.auth-input-wrap:focus-within { border-color: #7c3aed; }
.auth-ico { opacity: 0.6; }
.auth-input-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  padding: 12px 4px;
  outline: none;
  font-size: 0.95rem;
}
.auth-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 0.85rem;
}
.auth-row a { color: #a78bfa; }
.auth-check {
  display: flex !important;
  align-items: center;
  gap: 8px;
  font-weight: 400 !important;
  color: #9ca3af !important;
  margin-bottom: 16px !important;
}
.auth-submit {
  width: 100%;
  background: #7c3aed;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 13px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}
.auth-submit:hover { background: #6d28d9; }
.auth-switch, .auth-home {
  text-align: center;
  margin-top: 16px;
  color: #9ca3af;
  font-size: 0.9rem;
}
.auth-switch a, .auth-home a { color: #a78bfa; }
.auth-error {
  background: rgba(239,68,68,0.15);
  border: 1px solid #ef4444;
  color: #fca5a5;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 14px;
  font-size: 0.9rem;
}
.auth-btn-primary {
  background: #7c3aed !important;
  color: #fff !important;
  border: none !important;
  padding: 8px 14px !important;
  border-radius: 20px !important;
}
.bdboys-logo { max-height: 40px; width: auto; }
.footer-copy {
  text-align: center;
  padding: 16px;
  color: #6b7280;
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

/* Post hero closer to screenshot */
.post-hero {
  background: linear-gradient(100deg, #7c3aed 0%, #c026d3 35%, #fb7185 70%, #fb923c 100%) !important;
  padding: 36px 0 !important;
}
.post-hero-inner {
  max-width: 1100px !important;
  gap: 36px !important;
}
.post-hero-thumb {
  border-radius: 16px !important;
  box-shadow: 0 16px 48px rgba(0,0,0,0.35) !important;
}

@media (max-width: 900px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-split-left { min-height: auto; padding: 36px 24px; }
  .auth-stats { gap: 16px; }
}

/* Trainer / Be a Trainer button */
.trainer-req-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #7c3aed, #c026d3);
  color: #fff !important;
  border: none;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(124,58,237,0.35);
  transition: transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}
.trainer-req-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(124,58,237,0.5);
  color: #fff !important;
}
.trainer-req-btn.trainer-pending {
  background: #374151;
  box-shadow: none;
  cursor: default;
  opacity: 0.85;
}
.trainer-box { max-width: 420px; }
.trainer-intro { color: #9ca3af; font-size: 0.9rem; margin-bottom: 14px; }
.trainer-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  padding: 12px;
  background: #0f172a;
  border-radius: 10px;
}
.trainer-stats div { flex: 1; text-align: center; }
.trainer-stats strong { display: block; color: #fff; font-size: 1.2rem; }
.trainer-stats span { font-size: 0.75rem; color: #9ca3af; }

.bdboys-rank-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  margin: 6px 0 10px;
  padding: 3px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
}
.notif-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1e293b;
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid #6366f1;
  z-index: 9999;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  font-size: 0.9rem;
}

/* ========== Most Liked + Discussions (Home) ========== */
.home-section { margin-bottom: 36px; }
.section-head-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.section-head-row h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
  color: #fff;
  margin: 0;
}
.sec-all {
  color: #a78bfa;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}
.sec-all:hover { color: #fff; }

.most-liked-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.ml-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.ml-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.35);
}
.ml-thumb {
  display: block;
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #111827;
}
.ml-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ml-cat {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #6366f1;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
}
.ml-body { padding: 14px; }
.ml-title {
  font-size: 0.98rem;
  margin: 0 0 8px;
  line-height: 1.4;
}
.ml-title a { color: #f3f4f6; text-decoration: none; }
.ml-title a:hover { color: var(--accent); }
.ml-excerpt {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 10px;
  line-height: 1.5;
}
.ml-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-dim);
}
.ml-meta img { border-radius: 50%; }
.ml-likes {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #9ca3af;
}

.discuss-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 16px;
  align-items: start;
}
.discuss-list { display: flex; flex-direction: column; gap: 10px; }
.discuss-item {
  display: flex;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  text-decoration: none;
  transition: border-color 0.15s;
}
.discuss-item:hover { border-color: #6366f1; }
.discuss-votes {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 48px;
}
.discuss-votes span {
  background: #1e293b;
  border-radius: 8px;
  text-align: center;
  padding: 6px 4px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #e5e7eb;
  line-height: 1.2;
}
.discuss-votes small { font-weight: 500; font-size: 0.65rem; color: #9ca3af; }
.discuss-votes .v-ans.has { background: #065f46; color: #6ee7b7; }
.discuss-main h3 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  color: #f3f4f6;
  font-weight: 600;
}
.discuss-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--text-dim);
  align-items: center;
}
.discuss-meta img { border-radius: 50%; vertical-align: middle; }
.d-cat { color: #34d399; font-weight: 600; }
.discuss-cta {
  background: linear-gradient(145deg, #6d28d9, #7c3aed);
  border-radius: 14px;
  padding: 20px 16px;
  color: #fff;
  text-align: center;
}
.discuss-cta h3 { margin: 0 0 8px; font-size: 1.05rem; }
.discuss-cta p { font-size: 0.85rem; opacity: 0.9; margin: 0 0 14px; line-height: 1.5; }
.discuss-cta-btn {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff !important;
  padding: 10px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none !important;
}
.discuss-cta-btn:hover { background: rgba(255,255,255,0.25); }
.discuss-empty { color: var(--text-muted); padding: 20px; }

/* ========== Forum Page ========== */
.forum-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 16px 48px;
}
.forum-topbar {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.forum-search { flex: 1; }
.forum-search input {
  width: 100%;
  padding: 11px 16px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: #1a2234;
  color: #fff;
  outline: none;
}
.forum-new-btn {
  background: #7c3aed;
  color: #fff !important;
  border: none;
  padding: 11px 18px;
  border-radius: 24px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none !important;
  white-space: nowrap;
}
.forum-banner {
  background: linear-gradient(120deg, #6d28d9, #8b5cf6);
  border-radius: 16px;
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  margin-bottom: 16px;
}
.forum-banner h1 { margin: 0 0 6px; font-size: 1.35rem; }
.forum-banner p { margin: 0; opacity: 0.9; font-size: 0.9rem; }
.forum-count {
  background: rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 12px 18px;
  text-align: center;
}
.forum-count strong { display: block; font-size: 1.4rem; }
.forum-count span { font-size: 0.8rem; opacity: 0.9; }
.forum-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.fcat {
  background: #1a2234;
  border: 1px solid var(--border);
  color: #d1d5db;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 0.82rem;
  text-decoration: none;
}
.fcat.active, .fcat:hover {
  background: #6366f1;
  border-color: #6366f1;
  color: #fff;
}
.forum-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 18px;
  align-items: start;
}
.forum-topic-row {
  display: flex;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
}
.ft-votes {
  min-width: 44px;
  text-align: center;
  background: #1e293b;
  border-radius: 10px;
  padding: 8px 6px;
  height: fit-content;
}
.ft-votes span { display: block; font-weight: 800; color: #fff; }
.ft-votes small { font-size: 0.65rem; color: #9ca3af; }
.ft-author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  margin-bottom: 4px;
}
.ft-author img { border-radius: 50%; }
.ft-author a { color: #e5e7eb; font-weight: 600; text-decoration: none; }
.ft-time { color: var(--text-dim); font-size: 0.78rem; }
.ft-title {
  margin: 0 0 6px;
  font-size: 1.05rem;
}
.ft-title a { color: #f9fafb; text-decoration: none; }
.ft-title a:hover { color: var(--accent); }
.ft-meta {
  display: flex;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-dim);
  flex-wrap: wrap;
}
.ft-cat {
  background: #312e81;
  color: #c7d2fe;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
}
.forum-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 14px;
}
.forum-widget h3 {
  margin: 0 0 12px;
  font-size: 0.95rem;
  color: #fff;
}
.forum-widget ul { list-style: none; padding: 0; margin: 0; }
.forum-widget li {
  margin-bottom: 10px;
  font-size: 0.85rem;
}
.forum-widget li a { color: #d1d5db; text-decoration: none; }
.forum-widget li a:hover { color: var(--accent); }
.top-contributors li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tc-num {
  width: 20px;
  font-weight: 800;
  color: #a78bfa;
}
.tc-name { flex: 1; color: #e5e7eb; }
.tc-rank {
  font-size: 0.7rem;
  color: #9ca3af;
  background: #1e293b;
  padding: 2px 6px;
  border-radius: 6px;
}
.forum-single-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 16px;
}
.forum-single-card h1 {
  color: #fff;
  font-size: 1.4rem;
  margin: 0 0 14px;
}

@media (max-width: 900px) {
  .most-liked-grid { grid-template-columns: 1fr; }
  .discuss-layout, .forum-layout { grid-template-columns: 1fr; }
  .discuss-cta { order: -1; }
}

.post-hero-meta {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 4px !important;
  font-size: 0.88rem !important;
  color: rgba(255,255,255,0.92) !important;
}
.post-hero-meta .phm-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.post-hero-meta .phm-dot {
  opacity: 0.5;
  margin: 0 4px;
  user-select: none;
}

/* ========== Comments — Screenshot style ========== */
.cmt-area {
  margin-top: 28px;
  padding-top: 8px;
}
.cmt-title {
  font-size: 1.15rem;
  color: #fff;
  margin: 0 0 18px;
  font-weight: 700;
}
.cmt-list,
.cmt-list .children {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cmt-list > li {
  margin-bottom: 12px;
}
.cmt-list .children {
  margin: 10px 0 0 28px;
  padding: 0;
}
.cmt-list .children > li {
  margin-bottom: 10px;
}

.cmt-card {
  background: #151c2c;
  border: 1px solid #1f2937;
  border-radius: 14px;
  padding: 14px 16px;
}
.cmt-card.is-reply,
.cmt-list .children .cmt-card {
  background: #1a1440;
  border: 1px solid #2e2166;
  border-left: 3px solid #7c3aed;
  border-radius: 12px;
}
.cmt-card.is-post-author {
  background: #1a1440;
  border-color: #2e2166;
  border-left: 3px solid #7c3aed;
}

.cmt-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.cmt-user {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.cmt-avatar img,
.cmt-avatar .avatar {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  object-fit: cover;
  display: block;
}
.cmt-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: #e5e7eb;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.cmt-name a {
  color: #f3f4f6;
  text-decoration: none;
}
.cmt-name a:hover { color: #a78bfa; }
.cmt-lekhok {
  display: inline-block;
  background: #6d28d9;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  line-height: 1.4;
}
.cmt-time {
  font-size: 0.78rem;
  color: #6b7280;
  margin-top: 2px;
}
.cmt-reply a,
.cmt-reply .comment-reply-link {
  display: inline-block;
  background: #1e293b;
  color: #d1d5db !important;
  border: 1px solid #334155;
  padding: 5px 12px;
  border-radius: 16px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
}
.cmt-reply a:hover {
  background: #312e81;
  border-color: #6366f1;
  color: #fff !important;
}
.cmt-body {
  color: #d1d5db;
  font-size: 0.92rem;
  line-height: 1.65;
  padding-left: 50px;
}
.cmt-body p { margin: 0 0 0.5em; }
.cmt-body p:last-child { margin-bottom: 0; }

/* Comment form */
.cmt-form {
  margin-top: 22px;
  background: #151c2c;
  border: 1px solid #1f2937;
  border-radius: 14px;
  padding: 18px;
}
.cmt-form .comment-reply-title {
  color: #fff;
  font-size: 1.05rem;
  margin: 0 0 12px;
}
.cmt-form textarea {
  width: 100%;
  background: #0f172a;
  border: 1px solid #1f2937;
  border-radius: 10px;
  color: #e5e7eb;
  padding: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
  outline: none;
}
.cmt-form textarea:focus { border-color: #6366f1; }
.cmt-form .form-submit { margin: 12px 0 0; }
.cmt-submit,
.cmt-form .submit {
  background: #7c3aed !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 10px 20px !important;
  font-weight: 700 !important;
  cursor: pointer;
}
.cmt-submit:hover,
.cmt-form .submit:hover { background: #6d28d9 !important; }
.cmt-form #cancel-comment-reply-link {
  color: #a78bfa;
  font-size: 0.85rem;
  margin-left: 10px;
}

@media (max-width: 600px) {
  .cmt-list .children { margin-left: 12px; }
  .cmt-body { padding-left: 0; }
  .cmt-head { flex-wrap: wrap; }
}


/* ========== Comments list — user vs author colors ========== */
.cmt-area { margin-top: 28px; }
.cmt-title {
  font-size: 1.2rem;
  color: #fff;
  margin: 0 0 18px;
  font-weight: 700;
}
.cmt-list,
.cmt-list .children {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.cmt-list > li { margin-bottom: 14px; }
.cmt-list .children {
  margin: 12px 0 0 20px !important;
  padding-left: 12px !important;
  border-left: 2px solid rgba(124, 58, 237, 0.35);
}
.cmt-list .children > li { margin-bottom: 12px; }

/* Regular user comment */
.cmt-card {
  background: #121826 !important;
  border: 1px solid #243044 !important;
  border-left: 3px solid #3b82f6 !important;
  border-radius: 14px !important;
  padding: 14px 16px !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}
.cmt-card .cmt-name a,
.cmt-card .cmt-name { color: #e5e7eb !important; }
.cmt-card .cmt-body { color: #cbd5e1 !important; }

/* Author (লেখক) answer — purple section */
.cmt-card.is-post-author,
.cmt-list .children .cmt-card.is-post-author {
  background: linear-gradient(135deg, #1a1040 0%, #25165a 100%) !important;
  border: 1px solid #4c1d95 !important;
  border-left: 3px solid #a78bfa !important;
  box-shadow: 0 4px 18px rgba(124, 58, 237, 0.25);
}
.cmt-card.is-post-author .cmt-body {
  color: #e9d5ff !important;
}
.cmt-card.is-post-author .cmt-name a,
.cmt-card.is-post-author .cmt-name {
  color: #f5f3ff !important;
}

/* Nested reply (non-author) slightly different blue-gray */
.cmt-list .children .cmt-card:not(.is-post-author) {
  background: #0f172a !important;
  border-left: 3px solid #64748b !important;
}

.cmt-head {
  display: flex !important;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.cmt-user {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.cmt-avatar img,
.cmt-avatar .avatar {
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  object-fit: cover;
  border: 2px solid #334155;
}
.cmt-card.is-post-author .cmt-avatar img,
.cmt-card.is-post-author .cmt-avatar .avatar {
  border-color: #a78bfa !important;
}
.cmt-name {
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.cmt-name a { text-decoration: none; }
.cmt-name a:hover { color: #a78bfa !important; }
.cmt-lekhok {
  display: inline-block !important;
  background: linear-gradient(135deg, #7c3aed, #a855f7) !important;
  color: #fff !important;
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  padding: 2px 9px !important;
  border-radius: 999px !important;
  letter-spacing: 0.02em;
}
.cmt-time {
  font-size: 0.78rem;
  color: #6b7280 !important;
  margin-top: 2px;
}
.cmt-reply a,
.cmt-reply .comment-reply-link {
  display: inline-block !important;
  background: #1e293b !important;
  color: #d1d5db !important;
  border: 1px solid #334155 !important;
  padding: 5px 14px !important;
  border-radius: 999px !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}
.cmt-reply a:hover {
  background: #312e81 !important;
  border-color: #7c3aed !important;
  color: #fff !important;
}
.cmt-body {
  font-size: 0.93rem;
  line-height: 1.7;
  padding-left: 52px;
}
.cmt-body p { margin: 0 0 0.4em; }
.cmt-body p:last-child { margin-bottom: 0; }

.cmt-form {
  margin-top: 24px;
  background: #121826;
  border: 1px solid #243044;
  border-radius: 14px;
  padding: 18px;
}
.cmt-form .comment-reply-title { color: #fff; margin: 0 0 12px; font-size: 1.05rem; }
.cmt-form textarea {
  width: 100%;
  background: #0b1220;
  border: 1px solid #243044;
  border-radius: 10px;
  color: #e5e7eb;
  padding: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
}
.cmt-form textarea:focus { border-color: #7c3aed; }
.cmt-submit, .cmt-form .submit {
  background: linear-gradient(135deg, #7c3aed, #a855f7) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 10px 20px !important;
  font-weight: 700 !important;
  cursor: pointer;
}

@media (max-width: 600px) {
  .cmt-list .children { margin-left: 8px !important; padding-left: 8px !important; }
  .cmt-body { padding-left: 0; }
}

/* Answer comments as clear nested LIST */
.cmt-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none !important;
  margin: 0;
  padding: 0;
}
.cmt-list > li {
  display: block;
  margin: 0 !important;
  list-style: none !important;
}
/* Nested answers = vertical list under parent */
.cmt-list .children {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  list-style: none !important;
  margin: 12px 0 0 0 !important;
  padding: 12px 0 0 16px !important;
  border-left: 2px solid rgba(167, 139, 250, 0.4) !important;
  width: 100%;
  box-sizing: border-box;
}
.cmt-list .children > li {
  display: block !important;
  margin: 0 !important;
  list-style: none !important;
  width: 100%;
}
/* Author answer list item highlight */
.cmt-list .children .cmt-card.is-post-author,
.cmt-list li.by-author > .cmt-card {
  background: linear-gradient(135deg, #1a1040 0%, #2a1860 100%) !important;
  border: 1px solid #5b21b6 !important;
  border-left: 4px solid #a78bfa !important;
}
/* User comment list item */
.cmt-list > li.by-user > .cmt-card {
  background: #121826 !important;
  border-left: 4px solid #3b82f6 !important;
}
/* Deeper nesting still list */
.cmt-list .children .children {
  margin-top: 10px !important;
  padding-left: 14px !important;
}

/* Header advanced icons */
.hdr-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1a2234;
  border: 1px solid #2a3548;
  color: #e5e7eb;
  transition: all 0.2s;
  position: relative;
}
.hdr-icon-btn:hover {
  background: #312e81;
  border-color: #6366f1;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99,102,241,0.25);
}
.hdr-icon-btn svg { display: block; }
.hdr-notif-btn .notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* Community promo bar */
.community-promo-bar {
  background: linear-gradient(90deg, #7c3aed 0%, #4f46e5 50%, #2563eb 100%);
  padding: 10px 0;
}
.community-promo-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.cp-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: #fff;
  font-size: 0.9rem;
}
.cp-badge {
  background: rgba(255,255,255,0.18);
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.8rem;
}
.cp-btn {
  background: #fff;
  color: #4f46e5 !important;
  padding: 7px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none !important;
  white-space: nowrap;
}
.cp-btn:hover { background: #f5f3ff; }

.cat-ico {
  display: inline-flex;
  width: 22px;
  font-size: 1rem;
  margin-right: 6px;
  vertical-align: middle;
}

.wallet-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  margin: 16px 0 24px;
  max-width: 520px;
}
.wallet-box h3 { margin: 0 0 8px; color: #fff; }
.wallet-bal {
  font-size: 1.8rem;
  font-weight: 800;
  color: #34d399;
  margin: 0 0 6px;
}
.wallet-hint { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 14px; }
.wallet-form {
  display: grid;
  gap: 10px;
}
.wallet-form input,
.wallet-form select {
  background: #0f172a;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  color: #fff;
}
.wd-history { list-style: none; padding: 0; margin: 12px 0 0; }
.wd-history li {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.2fr;
  gap: 6px;
  font-size: 0.82rem;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  color: #d1d5db;
}
.wd-st { font-weight: 700; text-transform: uppercase; }
.wd-pending { color: #fbbf24; }
.wd-success { color: #34d399; }
.wd-rejected { color: #f87171; }

@media (max-width: 700px) {
  .cp-text { font-size: 0.8rem; }
}

/* Header icons + profile — same square size */
.header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}
.hdr-icon-btn,
.header-actions .hdr-icon-btn {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  padding: 0 !important;
  border-radius: 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #1a2234 !important;
  border: 1px solid #2a3548 !important;
  color: #e5e7eb !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
}
.hdr-icon-btn svg {
  width: 18px !important;
  height: 18px !important;
  display: block !important;
}
.hdr-icon-btn:hover {
  background: #312e81 !important;
  border-color: #6366f1 !important;
  color: #fff !important;
}

.hdr-profile-wrap {
  display: inline-flex !important;
  align-items: center !important;
  height: 36px !important;
}
.hdr-avatar,
button.hdr-avatar,
#hdrProfileBtn {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  padding: 0 !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  border: 1px solid #2a3548 !important;
  background: #1a2234 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  line-height: 0 !important;
  box-sizing: border-box !important;
}
.hdr-avatar img,
.hdr-avatar .avatar,
#hdrProfileBtn img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 9px !important;
  border: none !important;
  display: block !important;
}
.hdr-avatar:hover,
#hdrProfileBtn:hover {
  border-color: #6366f1 !important;
  box-shadow: 0 0 0 2px rgba(99,102,241,0.25);
}

.hdr-notif-btn .notif-badge {
  top: -5px !important;
  right: -5px !important;
}

.author-profile-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}
.author-profile-tabs .tab {
  background: transparent;
  border: none;
  color: #9ca3af;
  padding: 10px 16px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-family: inherit;
}
.author-profile-tabs .tab:hover { color: #e5e7eb; }
.author-profile-tabs .tab.active {
  color: #a78bfa;
  border-bottom-color: #7c3aed;
}
.author-tab-panel { animation: fadeIn .2s ease; }
.wallet-sub {
  margin: 18px 0 10px;
  color: #e5e7eb;
  font-size: 0.95rem;
}
.author-comment-list { list-style: none; padding: 0; margin: 0; }
.author-comment-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
}
.author-comment-item a { color: #a78bfa; text-decoration: none; }
.author-comment-item p { color: #d1d5db; margin: 8px 0; font-size: 0.9rem; }

/* Static info pages */
.bdboys-static { max-width: 820px; margin: 0 auto; }
.bs-hero {
  text-align: center;
  padding: 12px 0 28px;
}
.bs-badge {
  display: inline-block;
  background: rgba(124,58,237,.2);
  color: #c4b5fd;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.bs-hero h2 {
  color: #fff;
  font-size: 1.75rem;
  margin: 0 0 10px;
}
.bs-hero p { color: #94a3b8; font-size: 1rem; line-height: 1.6; margin: 0; }
.bs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.bs-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}
.bs-card h3 { color: #fff; margin: 0 0 8px; font-size: 1.05rem; }
.bs-card p { color: #94a3b8; font-size: 0.9rem; line-height: 1.55; margin: 0; }
.bs-card a { color: #a78bfa; }
.bs-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 20px;
}
.bs-block h3 { color: #e5e7eb; margin: 18px 0 8px; font-size: 1.05rem; }
.bs-block h3:first-child { margin-top: 0; }
.bs-block p, .bs-block li { color: #94a3b8; line-height: 1.65; font-size: 0.95rem; }
.bs-block ul, .bs-block ol { padding-left: 1.2rem; margin: 8px 0; }
.bs-note { margin-top: 16px; font-size: 0.85rem; opacity: 0.85; }
.bs-faq details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
}
.bs-faq summary {
  color: #f3f4f6;
  font-weight: 600;
  cursor: pointer;
}
.bs-faq details p { color: #94a3b8; margin: 10px 0 0; line-height: 1.6; }
.bs-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.bs-cat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  text-decoration: none;
  color: #e5e7eb;
  transition: border-color .15s;
}
.bs-cat-item:hover { border-color: #6366f1; }
.bs-cat-ico { font-size: 1.2rem; }
.bs-cat-name { flex: 1; font-weight: 600; }
.bs-cat-count {
  background: #1e293b;
  color: #9ca3af;
  font-size: 0.8rem;
  padding: 2px 8px;
  border-radius: 8px;
}
.page .entry-title, .page-title {
  color: #fff;
  text-align: center;
  margin-bottom: 8px;
}
@media (max-width: 800px) {
  .bs-grid { grid-template-columns: 1fr; }
}

/* Most liked uses post-card — PC 3 columns */
.most-liked-as-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) {
  .most-liked-as-cards {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  /* Match recent posts card look on mobile */
  .most-liked-as-cards .post-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
  }
  .most-liked-as-cards .post-card .thumb {
    width: 110px;
    min-width: 110px;
    flex-shrink: 0;
  }
  .most-liked-as-cards .post-card .content {
    flex: 1;
    padding: 10px 12px;
  }
  .most-liked-as-cards .post-card .excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.82rem;
  }
  .most-liked-as-cards .post-card .entry-title {
    font-size: 0.95rem;
    margin-bottom: 4px;
  }
}
