/* =========================================================
   AIPromptHub - Modern Dark Theme v7.3
   Video height বড়, How to Customize Block Style
   ✅ Nav Divider (Image ও Video সেকশন আলাদা) — Label pill সহ
   ========================================================= */

:root {
  --bg:        #10121a;
  --bg-2:      #161a25;
  --bg-3:      #1e2331;
  --card:      #191e2a;
  --card-hover:#212737;

  --border:    #2a3142;
  --border-2:  #384156;

  --text:      #f0f4fb;
  --text-2:    #c5cddd;
  --muted:     #828da3;

  --primary:   #7c5cff;
  --primary-2: #9d85ff;
  --accent:    #14e6c1;
  --accent-2:  #00c9a7;
  --pink:      #ff5ca8;
  --orange:    #ff9558;

  --grad-1: linear-gradient(135deg, #7c5cff, #14e6c1);
  --grad-2: linear-gradient(135deg, #ff5ca8, #ff9558);

  --radius:  14px;
  --radius-s:10px;
  --shadow:  0 10px 30px rgba(0,0,0,.35);
  --shadow-2:0 4px 20px rgba(124,92,255,.18);
  --transition: all .25s cubic-bezier(.4,0,.2,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  color: var(--text);
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  background:
    radial-gradient(ellipse at top left,   rgba(124,92,255,.08), transparent 55%),
    radial-gradient(ellipse at bottom right, rgba(20,230,193,.06), transparent 55%),
    var(--bg);
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1320px; margin: 0 auto; padding: 0 20px; }

/* ================= HEADER ================= */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(16,18,26,.85);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 20px;
  max-width: 1320px; margin: 0 auto;
}

.logo {
  font-size: 22px; font-weight: 800;
  background: var(--grad-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
  letter-spacing: -.5px;
}

.menu-toggle {
  display: none;
  width: 42px; height: 42px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
  align-items: center; justify-content: center;
  font-size: 20px;
  transition: var(--transition);
  flex-shrink: 0;
}
.menu-toggle:hover { border-color: var(--primary); }

.nav {
  display: flex; gap: 4px;
  overflow-x: auto;
  flex: 1;
  scrollbar-width: none;
  scroll-behavior: smooth;
  align-items: center;
}
.nav::-webkit-scrollbar { display: none; }

.nav a {
  padding: 9px 14px;
  border-radius: 9px;
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: var(--transition);
  display: flex; align-items: center; gap: 6px;
}
.nav a:hover {
  background: var(--bg-3);
  color: var(--text);
}
.nav a.active {
  background: var(--grad-1);
  color: #fff;
  font-weight: 600;
}

/* =========================================================
   NAV DIVIDER — "Video Prompts" label সহ
   ========================================================= */

.nav-divider {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: center;
  padding: 0 14px;
  margin: 0 6px;
  flex-shrink: 0;
  color: var(--pink);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  position: relative;
  white-space: nowrap;
}

/* বাম দিকের line */
.nav-divider::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--pink));
  border-radius: 1px;
}

/* Label text */
.nav-divider .nav-divider-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: rgba(255,92,168,.10);
  border: 1px solid rgba(255,92,168,.25);
  border-radius: 20px;
  color: var(--pink);
}

/* ডান দিকের line */
.nav-divider::after {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, var(--pink), transparent);
  border-radius: 1px;
}

/* Video category links — pink রঙ */
.nav a.nav-video {
  color: var(--pink);
  font-weight: 600;
}
.nav a.nav-video:hover {
  background: rgba(255,92,168,.12);
  color: var(--pink);
}
.nav a.nav-video.active {
  background: linear-gradient(135deg, #ff5ca8, #ff9558);
  color: #fff;
  font-weight: 700;
}

.search-box {
  display: flex;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 11px;
  overflow: hidden;
  min-width: 220px;
  transition: var(--transition);
}
.search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124,92,255,.15);
}
.search-box input {
  background: transparent; border: 0; outline: 0;
  padding: 10px 14px; color: var(--text);
  width: 100%; font-size: 14px; font-family: inherit;
}
.search-box input::placeholder { color: var(--muted); }
.search-box button {
  background: var(--grad-1);
  border: 0; color: #fff;
  padding: 0 16px; cursor: pointer;
  font-size: 15px;
  transition: var(--transition);
}
.search-box button:hover { filter: brightness(1.15); }

/* ================= SECTIONS ================= */
.section { padding: 40px 0; }

.section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px;
  gap: 12px;
}
.section-head h2 {
  font-size: 22px; font-weight: 700;
  display: flex; align-items: center; gap: 10px;
  letter-spacing: -.3px;
}
.section-head h2 .icon {
  font-size: 22px;
  filter: drop-shadow(0 0 8px rgba(124,92,255,.5));
}
.section-head .see-all {
  color: var(--text-2);
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: var(--transition);
  font-weight: 500;
}
.section-head .see-all:hover {
  border-color: var(--primary);
  color: var(--primary-2);
  background: rgba(124,92,255,.08);
}

/* ================= CARD ================= */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex; flex-direction: column;
  position: relative;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: var(--shadow-2);
}

.card-thumb {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--bg-3);
  overflow: hidden;
}
.card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.card:hover .card-thumb img { transform: scale(1.08); }

.card-thumb .badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--grad-2);
  color: #fff;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(255,92,168,.4);
}
.card-thumb .badge.video {
  background: linear-gradient(135deg, #ff5ca8, #ff9558);
  padding: 6px 14px;
  font-size: 11px;
  box-shadow: 0 4px 12px rgba(255,92,168,.45);
}

.card-body {
  padding: 14px 15px;
  display: flex; flex-direction: column;
  gap: 8px; flex: 1;
}
.card-body .cat-tag {
  font-size: 11px; font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .8px;
}
.card-body h3 {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
}
.card-actions { margin-top: auto; }

/* ================= CARD PLACEHOLDER ================= */
.card-placeholder {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #1e2331, #2a3142);
  color: var(--text-2);
  z-index: 1;
}
.card-placeholder.show { display: flex; }
.card-placeholder[data-type="video"] {
  background: linear-gradient(135deg, #2a1e33, #3a2544);
}
.card-placeholder[data-type="image"] {
  background: linear-gradient(135deg, #1e2a33, #243846);
}
.card-placeholder-icon {
  font-size: 42px;
  opacity: .8;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.4));
}
.card-placeholder-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
}

/* ================= BUTTONS ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: var(--radius-s);
  border: 1px solid var(--border);
  background: var(--bg-3);
  color: var(--text);
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}
.btn:hover {
  border-color: var(--primary);
  color: var(--primary-2);
  background: rgba(124,92,255,.08);
}
.btn-primary {
  background: var(--grad-1);
  border: 0;
  color: #fff;
}
.btn-primary:hover {
  filter: brightness(1.12);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(124,92,255,.35);
}
.btn-danger {
  background: linear-gradient(135deg, #ff4d6a, #e63950);
  border: 0; color: #fff;
}
.btn-danger:hover { filter: brightness(1.12); color: #fff; }
.btn-block { width: 100%; }

/* ================= SLIDER ================= */
.slider-wrap {
  position: relative;
  overflow: hidden;
  padding: 4px 0;
}

.slider {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 4px 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-2) transparent;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scroll-snap-type: none;
}
.slider::-webkit-scrollbar { height: 6px; }
.slider::-webkit-scrollbar-track { background: transparent; }
.slider::-webkit-scrollbar-thumb {
  background: var(--border-2);
  border-radius: 3px;
}
.slider::-webkit-scrollbar-thumb:hover { background: var(--primary); }
.slider:active { cursor: grabbing; }

.slider .card,
.slider .see-all-card {
  flex: 0 0 250px;
}

/* See All card */
.see-all-card {
  background: linear-gradient(135deg, var(--bg-3), var(--card));
  border: 1px dashed var(--border-2);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  text-align: center;
  transition: var(--transition);
  aspect-ratio: 4/3;
  flex: 0 0 250px;
}
.see-all-card:hover {
  border-color: var(--primary);
  border-style: solid;
  background: linear-gradient(135deg, rgba(124,92,255,.1), rgba(20,230,193,.08));
  transform: translateY(-4px);
}
.see-all-card .icon {
  font-size: 34px;
  background: var(--grad-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.see-all-card .label {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.see-all-card .sub {
  font-size: 12px;
  color: var(--muted);
}

/* ================= GRID ================= */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

/* ================= UTILITY ================= */
.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

.toast {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--grad-1);
  color: #fff;
  padding: 14px 22px;
  border-radius: 12px;
  font-weight: 600;
  box-shadow: 0 10px 40px rgba(124,92,255,.4);
  z-index: 999;
  transform: translateY(120px);
  opacity: 0;
  transition: all .35s cubic-bezier(.4,0,.2,1);
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ================= VIDEO CARD Play overlay ================= */
.video-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.25);
  transition: background .3s;
  pointer-events: none;
  z-index: 2;
}
.card-video:hover .video-play-overlay { background: rgba(0,0,0,.4); }

.video-play-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(0,0,0,.4);
  transition: transform .3s, background .3s;
  padding-left: 3px;
}
.card-video:hover .video-play-btn {
  transform: scale(1.12);
  background: #fff;
  color: var(--primary);
}

/* =========================================================
   SINGLE POST
   ========================================================= */
.post-single {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 0 40px;
}

.post-cat-tag {
  display: inline-block;
  background: rgba(20,230,193,.12);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all .2s;
  border: 1px solid rgba(20,230,193,.25);
}
.post-cat-tag:hover {
  background: rgba(20,230,193,.2);
  border-color: var(--accent);
}

.post-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text);
  letter-spacing: -.6px;
  margin: 0 0 22px 0;
  padding: 0;
  text-align: left;
}

.post-single .post-preview {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-3);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  width: 100%;
}

/* ছবি — স্বাভাবিক */
.post-single .post-preview img {
  width: 100%;
  display: block;
  height: auto;
  max-height: none;
  object-fit: contain;
  background: #000;
}

/* ✅ ভিডিও — বড় ও 16:9 */
.post-single .post-preview video,
.post-preview video {
  width: 100%;
  display: block;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
  border-radius: 0;
}

/* ================= Description ================= */
.post-description {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-s);
  padding: 16px 18px;
  margin-bottom: 20px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--text-2);
}

/* ================= Prompt ================= */
.prompt-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
}
.prompt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
}
.prompt-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .3px;
}
.copy-btn-inline {
  padding: 7px 14px !important;
  font-size: 12.5px !important;
  border-radius: 8px !important;
}
.copy-btn-inline.copied {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #002a25 !important;
}

.prompt-block {
  max-height: 340px;
  overflow-y: auto;
  padding: 16px 18px;
  background: #0d1017;
}
.prompt-block::-webkit-scrollbar { width: 8px; }
.prompt-block::-webkit-scrollbar-track { background: #0a0c12; }
.prompt-block::-webkit-scrollbar-thumb {
  background: var(--border-2);
  border-radius: 4px;
}
.prompt-block::-webkit-scrollbar-thumb:hover { background: var(--primary); }

.prompt-text {
  font-family: 'SF Mono', 'Monaco', 'Consolas', 'Courier New', monospace;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-2);
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
}

.post-ads {
  margin: 24px 0;
  padding: 0;
  text-align: center;
  min-height: 0;
  border: 0;
  background: transparent;
}

.post-back {
  text-align: center;
  margin-top: 20px;
}

/* =========================================================
   HOW TO CUSTOMIZE / HOW TO USE — Block Style
   ========================================================= */

.how-to-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
}

.how-to-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(124,92,255,.12), rgba(20,230,193,.08));
  border-bottom: 1px solid var(--border);
}

.how-to-icon {
  font-size: 22px;
}

.how-to-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  letter-spacing: -.3px;
}

.how-to-body {
  padding: 20px 22px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-2);
  word-break: break-word;
}

/* ---------- Custom Block ---------- */
.custom-block {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-s);
  padding: 14px 18px;
  margin-bottom: 12px;
  transition: var(--transition);
}
.custom-block:last-child {
  margin-bottom: 0;
}
.custom-block:hover {
  border-left-color: var(--primary);
  background: var(--card-hover);
}

.custom-block-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.custom-block-icon {
  font-size: 17px;
}

.custom-block-line {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-2);
  padding: 3px 0;
}

.custom-block-line strong {
  color: var(--accent);
  font-weight: 700;
}

.custom-block-line .label {
  color: var(--primary-2);
  font-weight: 600;
  display: inline-block;
  min-width: 80px;
}

.custom-block-line .example {
  color: var(--orange);
  font-weight: 600;
}

/* ---------- How to Use Steps ---------- */
.how-to-use-steps {
  counter-reset: step-counter;
  list-style: none;
  padding: 0;
  margin: 0;
}

.how-to-use-steps li {
  counter-increment: step-counter;
  position: relative;
  padding: 12px 16px 12px 52px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
}
.how-to-use-steps li:last-child {
  margin-bottom: 0;
}

.how-to-use-steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: 12px;
  top: 12px;
  width: 28px;
  height: 28px;
  background: var(--grad-1);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(124,92,255,.3);
}

/* how-to-use section different color */
.how-to-use .how-to-header {
  background: linear-gradient(135deg, rgba(255,92,168,.10), rgba(255,149,88,.08));
}

/* ================= YOUTUBE EMBED ================= */
.yt-embed-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 0;
  overflow: hidden;
}
.yt-embed-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* =========================================================
   ADMIN PANEL
   ========================================================= */
.admin-wrap {
  max-width: 1200px;
  margin: 30px auto;
  padding: 32px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.admin-header h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.5px;
  margin: 0;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 700;
  border: 1px solid var(--border);
  background: var(--bg-3);
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  white-space: nowrap;
  text-decoration: none;
}
.admin-btn:hover {
  border-color: var(--primary);
  color: var(--primary-2);
  background: rgba(124,92,255,.1);
  transform: translateY(-1px);
}
.admin-btn-primary {
  background: var(--grad-1);
  border: 0;
  color: #fff;
  box-shadow: 0 4px 14px rgba(124,92,255,.25);
}
.admin-btn-primary:hover {
  filter: brightness(1.12);
  color: #fff;
  box-shadow: 0 8px 22px rgba(124,92,255,.4);
}
.admin-btn-danger {
  background: linear-gradient(135deg, #ff4d6a, #e63950);
  border: 0;
  color: #fff;
}
.admin-btn-danger:hover {
  filter: brightness(1.12);
  color: #fff;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-bottom: 32px;
}
.admin-stat-card {
  background: linear-gradient(135deg, var(--bg-3), var(--card));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  transition: var(--transition);
}
.admin-stat-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}
.admin-stat-number {
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.5px;
  line-height: 1.1;
}
.admin-stat-label {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-top: 6px;
}

.admin-section-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 18px 0;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-section-title::before {
  content: "";
  width: 4px;
  height: 22px;
  background: var(--grad-1);
  border-radius: 4px;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-2);
}
table.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}
table.admin-table thead {
  background: var(--bg-3);
}
table.admin-table th {
  padding: 16px 18px;
  text-align: left;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
table.admin-table td {
  padding: 18px;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
  color: var(--text-2);
  vertical-align: middle;
}
table.admin-table tbody tr:last-child td { border-bottom: 0; }
table.admin-table tbody tr { transition: background .2s; }
table.admin-table tbody tr:hover { background: rgba(124,92,255,.05); }

.admin-id-cell {
  color: var(--muted);
  font-family: monospace;
  font-size: 14px;
  font-weight: 600;
}
.admin-title-cell {
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  min-width: 200px;
}
.admin-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .3px;
  text-transform: uppercase;
}
.admin-badge-cat {
  background: rgba(20,230,193,.12);
  color: var(--accent);
  border: 1px solid rgba(20,230,193,.25);
}
.admin-badge-type {
  background: rgba(124,92,255,.12);
  color: var(--primary-2);
  border: 1px solid rgba(124,92,255,.25);
}
.admin-badge-trending {
  background: rgba(255,149,88,.15);
  color: var(--orange);
  border: 1px solid rgba(255,149,88,.3);
}
.admin-badge-published {
  background: rgba(20,230,193,.12);
  color: var(--accent);
  border: 1px solid rgba(20,230,193,.25);
}
.admin-badge-draft {
  background: rgba(255,92,168,.12);
  color: var(--pink);
  border: 1px solid rgba(255,92,168,.25);
}
.admin-no-badge { color: var(--muted); font-size: 13px; }

.admin-row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  white-space: nowrap;
}
.admin-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--border);
  background: var(--bg-3);
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
  min-width: 78px;
}
.admin-action-btn:hover {
  border-color: var(--primary);
  color: var(--primary-2);
  background: rgba(124,92,255,.1);
  transform: translateY(-1px);
}
.admin-action-edit {
  background: linear-gradient(135deg, rgba(124,92,255,.15), rgba(124,92,255,.08));
  border-color: rgba(124,92,255,.3);
  color: var(--primary-2);
}
.admin-action-edit:hover {
  background: rgba(124,92,255,.25);
  color: #fff;
  border-color: var(--primary);
}
.admin-action-delete {
  background: linear-gradient(135deg, rgba(255,92,168,.15), rgba(255,77,106,.08));
  border-color: rgba(255,77,106,.3);
  color: #ff85b8;
}
.admin-action-delete:hover {
  background: rgba(255,77,106,.25);
  color: #fff;
  border-color: #ff4d6a;
}

/* Bulk action bar */
.bulk-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, rgba(124,92,255,.15), rgba(20,230,193,.10));
  border: 1px solid var(--primary);
  border-radius: var(--radius-s);
  box-shadow: 0 4px 18px rgba(124,92,255,.2);
  flex-wrap: wrap;
}
.bulk-bar-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.bulk-bar-text span {
  color: var(--accent);
  font-size: 18px;
}
.bulk-bar-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.bulk-check {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
  cursor: pointer;
  vertical-align: middle;
}

table.admin-table tbody tr:has(.row-check:checked) {
  background: rgba(124,92,255,.08);
}
table.admin-table tbody tr:has(.row-check:checked) td {
  border-color: rgba(124,92,255,.3);
}

/* ---------- Admin Form ---------- */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  margin-bottom: 9px;
  font-size: 14.5px;
  color: var(--text);
  font-weight: 600;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  transition: var(--transition);
  line-height: 1.5;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 0;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(124,92,255,.15);
}
.form-group textarea { min-height: 150px; resize: vertical; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}
.checkbox-row input {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}
.checkbox-row label {
  margin: 0;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
}

.flash {
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 24px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
}
.flash.success {
  background: rgba(20,230,193,.12);
  color: var(--accent);
  border: 1px solid rgba(20,230,193,.35);
}
.flash.error {
  background: rgba(255,92,168,.12);
  color: #ff85b8;
  border: 1px solid rgba(255,92,168,.35);
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer-floating-bar {
  background: linear-gradient(135deg, rgba(124,92,255,.08), rgba(20,230,193,.06));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-top: 50px;
  padding: 18px 0;
}
.footer-floating-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.floating-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}
.floating-home {
  background: var(--grad-1);
  color: #fff;
  box-shadow: 0 4px 14px rgba(124,92,255,.25);
}
.floating-home:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(124,92,255,.4);
}
.floating-yt {
  background: #ff0000;
  color: #fff;
  box-shadow: 0 4px 14px rgba(255,0,0,.25);
}
.floating-yt:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(255,0,0,.4);
  color: #fff;
}

.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 44px 0 0;
  color: var(--text-2);
  font-size: 14px;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}

.footer-brand { max-width: 420px; }
.footer-logo {
  display: inline-block;
  font-size: 24px;
  font-weight: 800;
  background: var(--grad-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -.5px;
  margin-bottom: 12px;
}
.footer-tagline {
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.7;
  margin: 0;
}

.footer-col h4 {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  color: var(--muted);
  font-size: 13.5px;
  transition: var(--transition);
  display: inline-block;
}
.footer-col ul li a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-bottom {
  text-align: center;
  padding: 22px 0;
  color: var(--muted);
  font-size: 12.5px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .search-box { min-width: 160px; }
  .header-inner { flex-wrap: wrap; }
}

@media (max-width: 720px) {
  .menu-toggle { display: flex; }

  .nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    padding: 10px;
    max-height: 70vh;
    overflow-y: auto;
    gap: 2px;
    box-shadow: var(--shadow);
    z-index: 99;
    align-items: stretch;
  }
  .nav.open { display: flex; }
  .nav a {
    padding: 12px 16px;
    font-size: 14.5px;
    border-radius: 8px;
  }

  /* Mobile divider — label pill horizontal layout */
  .nav-divider {
    display: flex;
    width: 100%;
    height: auto;
    margin: 8px 0;
    padding: 8px 0;
    justify-content: center;
    align-items: center;
    gap: 10px;
  }
  .nav-divider::before,
  .nav-divider::after {
    width: auto;
    flex: 1;
    height: 1px;
  }
  .nav-divider::before {
    background: linear-gradient(90deg, transparent, var(--pink));
  }
  .nav-divider::after {
    background: linear-gradient(90deg, var(--pink), transparent);
  }
  .nav-divider .nav-divider-label {
    padding: 5px 14px;
    font-size: 11px;
  }

  .nav a.nav-video {
    padding-left: 24px;
    border-left: 2px solid var(--pink);
    border-radius: 0 9px 9px 0;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 10px;
    position: relative;
  }

  .search-box {
    order: 3;
    width: 100%;
    min-width: unset;
    margin-top: 4px;
  }

  .logo { flex: 1; }

  .section { padding: 28px 0; }
  .section-head h2 { font-size: 18px; }
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
  }
  .slider .card,
  .slider .see-all-card,
  .see-all-card { flex: 0 0 200px; }

  .form-row { grid-template-columns: 1fr; }

  /* Single post mobile */
  .post-single { padding: 18px 0 30px; }
  .post-title {
    font-size: 22px;
    line-height: 1.3;
    margin-bottom: 16px;
  }
  .post-cat-tag {
    font-size: 10.5px;
    padding: 5px 12px;
    margin-bottom: 12px;
  }
  .post-description { font-size: 13.5px; padding: 14px; }
  .prompt-header { padding: 10px 14px; }
  .prompt-block { max-height: 280px; padding: 14px; }
  .prompt-text { font-size: 12.5px; }

  /* How to mobile */
  .how-to-header { padding: 14px 16px; }
  .how-to-title { font-size: 15px; }
  .how-to-body { padding: 16px; font-size: 13.5px; line-height: 1.6; }
  .custom-block { padding: 12px 14px; }
  .custom-block-title { font-size: 13.5px; }
  .custom-block-line { font-size: 13px; }
  .how-to-use-steps li {
    padding: 10px 12px 10px 46px;
    font-size: 13.5px;
  }
  .how-to-use-steps li::before {
    width: 24px; height: 24px;
    font-size: 12px;
    left: 10px; top: 10px;
  }

  /* মোবাইলে video 16:9 */
  .post-single .post-preview video,
  .post-preview video {
    aspect-ratio: 16 / 9;
    width: 100%;
    height: auto;
    max-height: none;
    min-height: 180px;
  }
  .post-single .post-preview img { max-height: none; }
  .yt-embed-wrap { aspect-ratio: 16 / 9; }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 28px;
  }
  .footer-brand { max-width: none; }
  .footer-floating-inner { flex-direction: column; gap: 10px; }
  .floating-btn { width: 100%; justify-content: center; }

  .admin-wrap {
    margin: 16px;
    padding: 22px 18px;
    border-radius: 12px;
  }
  .admin-header {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .admin-header h1 { font-size: 22px; text-align: center; }
  .admin-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .admin-btn {
    padding: 14px 12px;
    font-size: 14px;
    justify-content: center;
  }
  .admin-stats { grid-template-columns: 1fr; gap: 12px; }
  .admin-stat-card { padding: 18px; text-align: left; }
  .admin-stat-number { font-size: 24px; }
  .admin-stat-label { font-size: 12px; margin-top: 2px; }
  .admin-section-title { font-size: 17px; }
  table.admin-table th { padding: 12px 12px; font-size: 11px; }
  table.admin-table td { padding: 14px 12px; font-size: 13.5px; }
  .admin-row-actions { flex-direction: column; gap: 6px; }
  .admin-action-btn {
    padding: 10px 14px;
    font-size: 13px;
    justify-content: center;
    width: 100%;
  }

  .bulk-bar {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .bulk-bar-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
}