/* ============================================================
   উন্নয়ন - Main Stylesheet (Professional + Gen-Z)
   ============================================================ */

:root {
  --primary: #1f2937;
  --secondary: #3b82f6;
  --secondary-dark: #2563eb;
  --accent: #10b981;
  --accent-dark: #059669;
  --danger: #ef4444;
  --danger-dark: #dc2626;
  --warning: #f59e0b;
  --bg: #f9fafb;
  --surface: #ffffff;
  --text: #111827;
  --text-2: #6b7280;
  --border: #e5e7eb;
  --dark: #111827;
  --dark-2: #1f2937;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 4px 16px rgba(17, 24, 39, 0.07);
  --shadow-lg: 0 16px 40px rgba(17, 24, 39, 0.14);
  --transition: 0.3s ease;

  --font-head: "Poppins", "Noto Sans Bengali", sans-serif;
  --font-body: "Inter", "Noto Sans Bengali", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  letter-spacing: 0.3px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  line-height: 1.3;
  color: var(--text);
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--surface);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 44px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin-bottom: 10px;
}

.section-head p {
  color: var(--text-2);
  font-size: 1.02rem;
}

.eyebrow {
  display: inline-block;
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 26px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.97rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition),
    background var(--transition), color var(--transition);
  text-align: center;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.btn:active {
  transform: scale(0.99);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--secondary-dark);
  color: #fff;
}
.btn-primary:hover { background: #1d4ed8; }

.btn-success {
  background: #047857;
  color: #fff;
}
.btn-success:hover { background: #065f46; }

/* Google Drive বাটন — Google-এর নীল (#4285F4) */
.btn-drive {
  background: #4285f4;
  color: #fff;
}

.btn-drive:hover { background: #3367d6; color: #fff; }

.btn-danger {
  background: var(--danger-dark);
  color: #fff;
}
.btn-danger:hover { background: #b91c1c; }

.btn-warning {
  background: var(--warning);
  color: #1f2937;
}

.btn-dark {
  background: var(--dark-2);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border-color: #1d4ed8;
  color: #1d4ed8;
}
.btn-outline:hover { background: #2563eb; border-color: #2563eb; color: #fff; }

.btn-outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}
.btn-outline-light:hover { background: #fff; color: var(--dark); }

.btn-sm {
  min-height: 40px;
  padding: 8px 18px;
  font-size: 0.9rem;
}

.btn-lg {
  min-height: 54px;
  padding: 14px 34px;
  font-size: 1.05rem;
}

.btn-block {
  display: flex;
  width: 100%;
}

/* ---------------- Navbar ---------------- */

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(17, 24, 39, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 18px;
}

.logo {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}

.logo span { color: var(--accent); }

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

.nav-links > li > a {
  color: #d1d5db;
  font-weight: 500;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  font-size: 0.97rem;
}

.nav-links > li > a:hover,
.nav-links > li > a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* profile dropdown */
.nav-user { position: relative; }

.nav-user-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 5px 12px 5px 5px;
  cursor: pointer;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.92rem;
  min-height: 46px;
  transition: var(--transition);
}

.nav-user-btn:hover { background: rgba(255, 255, 255, 0.16); }

.nav-user-name {
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avatar {
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: var(--secondary);
}

.nav-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 210px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
  z-index: 1200;
}

.nav-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  border: none;
  background: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.94rem;
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
}

.nav-dropdown-item:hover { background: var(--bg); color: var(--secondary); }
.nav-dropdown-item.danger { color: var(--danger); }
.nav-dropdown-item.danger:hover { background: #fef2f2; color: var(--danger-dark); }

/* ---------------- Hero ---------------- */

.hero {
  background:
    radial-gradient(1000px 500px at 15% -10%, rgba(59, 130, 246, 0.35), transparent 60%),
    radial-gradient(800px 400px at 100% 0%, rgba(16, 185, 129, 0.25), transparent 55%),
    linear-gradient(160deg, #0f172a 0%, #1f2937 60%, #111827 100%);
  color: #fff;
  padding: 96px 0 110px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 60px;
  background: var(--bg);
  clip-path: ellipse(75% 100% at 50% 100%);
}

.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.4rem);
  max-width: 900px;
  margin: 0 auto 18px;
}

.hero p.lead {
  color: #cbd5e1;
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 640px;
  margin: 0 auto 34px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: clamp(24px, 6vw, 70px);
  margin-top: 54px;
  flex-wrap: wrap;
}

.hero-stats .stat strong {
  display: block;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--accent);
  font-family: var(--font-head);
}

.hero-stats .stat span {
  color: #9ca3af;
  font-size: 0.9rem;
}

/* ---------------- Feature cards ---------------- */

.grid {
  display: grid;
  gap: 24px;
}

.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.icon-box {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(59, 130, 246, 0.12);
  color: var(--secondary);
  margin-bottom: 16px;
  font-size: 1.5rem;
}

.icon-box.green { background: rgba(16, 185, 129, 0.14); color: var(--accent); }
.icon-box.amber { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.icon-box.red { background: rgba(239, 68, 68, 0.13); color: var(--danger); }

.card h3 {
  font-size: 1.14rem;
  margin-bottom: 8px;
}

.card p {
  color: var(--text-2);
  font-size: 0.96rem;
}

/* ---------------- Steps ---------------- */

.step-card {
  text-align: center;
  position: relative;
}

.step-number {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--secondary-dark);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  margin: 0 auto 16px;
  font-family: var(--font-head);
}

.step-card .icon-box { margin-inline: auto; }

/* ---------------- Testimonials ---------------- */

.testimonial {
  text-align: center;
}

.testimonial .avatar {
  width: 74px;
  height: 74px;
  margin: 0 auto 14px;
  border: 3px solid var(--secondary);
}

.testimonial .stars {
  color: var(--warning);
  letter-spacing: 3px;
  margin-bottom: 10px;
}

.testimonial p {
  color: var(--text-2);
  font-style: italic;
  margin-bottom: 12px;
}

.testimonial h3 { font-size: 1.02rem; }
.testimonial .role { color: var(--text-2); font-size: 0.87rem; }

/* ---------------- FAQ ---------------- */

.faq-list { max-width: 820px; margin: 0 auto; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  overflow: hidden;
}

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: none;
  border: none;
  padding: 18px 22px;
  font-family: var(--font-head);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.faq-q::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--secondary);
  transition: var(--transition);
}

.faq-item.open .faq-q::after { transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  color: var(--text-2);
}

.faq-item.open .faq-a {
  max-height: 320px;
}

.faq-a p { padding: 0 22px 20px; }

/* ---------------- Footer ---------------- */

.footer {
  background: var(--dark);
  color: #9ca3af;
  padding: 56px 0 22px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.footer h3 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.footer .logo { display: inline-block; margin-bottom: 12px; }

.footer p { font-size: 0.94rem; }

.footer li { margin-bottom: 10px; }
.footer li a { transition: var(--transition); font-size: 0.94rem; }
.footer li a:hover { color: var(--accent); padding-left: 4px; }

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  color: #e5e7eb;
  transition: var(--transition);
  font-size: 0.85rem;
}

.footer-social a:hover { background: var(--accent); color: #fff; transform: translateY(-3px); }

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  font-size: 0.9rem;
}

/* মিনিমাল ফুটার (গোপনীয়তা: কোনো যোগাযোগ/সোশ্যাল তথ্য নেই) */

.footer-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.footer-links li { margin-bottom: 0; }
.footer-links li a { color: #d1d5db; }
.footer-links li a:hover { color: var(--accent); padding-left: 0; }

/* ---------------- Page header (inner pages) ---------------- */

.page-hero {
  background: linear-gradient(140deg, #111827, #1f2937 70%, #263244);
  color: #fff;
  padding: 54px 0;
}

.page-hero h1 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.page-hero p { color: #cbd5e1; margin-top: 8px; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.92rem;
  color: var(--text-2);
  margin-bottom: 22px;
}

.breadcrumb a { color: var(--secondary); font-weight: 500; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { color: var(--border); }

/* ---------------- Auth card ---------------- */

.auth-wrap {
  min-height: calc(100vh - 68px);
  display: grid;
  place-items: center;
  padding: 48px 16px;
  background:
    radial-gradient(700px 300px at 20% 0%, rgba(59, 130, 246, 0.16), transparent 60%),
    var(--bg);
}

.auth-card {
  width: min(440px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 40px 32px;
  text-align: center;
}

.auth-logo {
  width: 78px;
  height: 78px;
  margin: 0 auto 18px;
  border-radius: 20px;
  object-fit: cover;
  background: var(--dark-2);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  font-family: var(--font-head);
}

.auth-card h1 { font-size: 1.6rem; margin-bottom: 6px; }
.auth-card .sub { color: var(--text-2); margin-bottom: 26px; font-size: 0.96rem; }

.auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  margin-bottom: 14px;
  transition: var(--transition);
}

.auth-btn:hover {
  border-color: var(--secondary);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.auth-btn .brand-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.auth-btn.google .brand-icon { color: #ea4335; }

.auth-error {
  background: #fef2f2;
  color: var(--danger-dark);
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.auth-note {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--text-2);
}

/* ---------------- Status pages (waiting / rejected) ---------------- */

.status-icon {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
  font-size: 2.4rem;
}

.status-icon.pending {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
}

.status-icon.rejected {
  background: rgba(239, 68, 68, 0.14);
  color: var(--danger);
}

.spinner {
  width: 46px;
  height: 46px;
  border: 4px solid rgba(245, 158, 11, 0.25);
  border-top-color: var(--warning);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.status-meta {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin: 20px 0;
  font-size: 0.93rem;
  text-align: left;
}

.status-meta div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 0;
}

.status-meta span:last-child { color: var(--text); font-weight: 600; text-align: right; }

.status-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---------------- Dashboard ---------------- */

.dash-hero {
  background: linear-gradient(140deg, #0f172a, #1f2937 55%, #164e63);
  color: #fff;
  padding: 56px 0;
}

.dash-hero h1 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.dash-hero .muted { color: #94a3b8; }

.member-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 26px;
  backdrop-filter: blur(6px);
}

.member-card .row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.member-badge {
  display: inline-block;
  background: #047857;
  color: #fff;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.87rem;
  font-weight: 700;
}

.member-badge.pending { background: var(--warning); }
.member-badge.rejected { background: var(--danger); }

.progress {
  height: 10px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 16px;
}

.progress > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #34d399);
  border-radius: 999px;
  transition: width 0.6s ease;
}

.quick-start {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 22px;
}

/* ---------------- Subject / chapter lists ---------------- */

.subject-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.subject-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: var(--transition);
}

.subject-card:hover {
  transform: translateY(-5px);
  border-color: var(--secondary);
  box-shadow: var(--shadow-lg);
}

.subject-card .subject-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.13);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
}

.subject-card h3 { font-size: 1.05rem; flex: 1; }

.chip {
  display: inline-block;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 0.8rem;
  padding: 3px 10px;
  border-radius: 999px;
}

/* chapter list */
.chapter-list {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.chapter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.chapter-row:last-child { border-bottom: none; }
.chapter-row:hover { background: var(--bg); }

.chapter-row .c-title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
}

.chapter-row .c-num {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.12);
  color: var(--secondary);
  display: grid;
  place-items: center;
  font-weight: 700;
  flex-shrink: 0;
}

/* ---------------- Classes viewer ---------------- */

.viewer-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: start;
}

.viewer-sidebar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: sticky;
  top: 88px;
  overflow: hidden;
}

.viewer-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: var(--dark-2);
  color: #fff;
}

.viewer-sidebar-head h3 { color: #fff; font-size: 1rem; }

.sidebar-close {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}

.class-list {
  max-height: 62vh;
  overflow-y: auto;
  padding: 8px;
}

.class-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  font-family: var(--font-body);
  font-size: 0.94rem;
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
  min-height: 48px;
}

.class-item:hover { background: var(--bg); }

.class-item.active {
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
  font-weight: 600;
}

.class-item .play-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-2);
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}

.class-item.active .play-dot { background: var(--secondary); color: #fff; }

.sidebar-open-btn {
  display: none;
  margin-bottom: 16px;
}

/* ডেস্কটপে ব্যাকড্রপ থাকবে না (শুধু মোবাইল সাইডবারের জন্য) */
.sidebar-backdrop {
  display: none;
}

.video-frame {
  background: var(--dark);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9;
}

.video-frame iframe,
.video-frame video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.video-placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  color: #9ca3af;
  padding: 30px;
  gap: 10px;
}

/* ============================================================
   কাস্টম YouTube প্লেয়ার
   ============================================================ */

.yt-player {
  --yt-accent: #60a5fa;
  --yt-cc-space: 58px;
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.yt-player iframe {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
  display: block;
  pointer-events: none; /* সব ইনপুট শিল্ড/কন্ট্রোলের কাছে যায় */
}

/* ভিডিওর ঘর — ক্যাপশন চালু থাকলে নিচে কন্ট্রোল বারের জায়গা ছাড়া হয় */
.yt-mount {
  position: absolute;
  inset: 0;
  background: #000;
  transition: bottom 0.2s ease;
}

.yt-player.has-captions .yt-mount {
  bottom: var(--yt-cc-space);
}

/* ক্লিক শিল্ড — iframe-এর উপরে, কন্ট্রোলের নিচে */
.yt-shield {
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: pointer;
  background: transparent;
  touch-action: manipulation;
}

/* বড় কেন্দ্রীয় প্লে/পজ বাটন — টাচে ৮০px, ডেস্কটপে ৭২px */
.yt-bigplay {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 5;
  width: 72px;
  height: 72px;
  margin: -36px 0 0 -36px;
  padding: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  cursor: pointer;
  font: inherit;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  backdrop-filter: blur(4px);
}

.yt-bigplay svg {
  width: 36px;
  height: 36px;
  fill: currentColor;
  margin-left: 3px;
}

.yt-bigplay:focus-visible {
  outline: 2px solid var(--yt-accent, #60a5fa);
  outline-offset: 2px;
}

/* পজ/শেষ অথবা ওভারলে দেখা গেলে বড় বাটন থাকে */
.yt-player.show-bigplay .yt-bigplay,
.yt-player:not(.is-idle) .yt-bigplay {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.yt-player.is-touch .yt-bigplay {
  width: 80px;
  height: 80px;
  margin: -40px 0 0 -40px;
}

.yt-player.is-touch .yt-bigplay svg {
  width: 40px;
  height: 40px;
}

/* ডাবল-ট্যাপ/ডাবল-ক্লিকে ±১০ সেকেন্ডের ইঙ্গিত ও রিপল */
.yt-tap-ind {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  transform: translate(-50%, -50%) scale(0.94);
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.yt-tap-ind.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.yt-tap-ind.left {
  left: 20%;
  right: auto;
  transform: translate(-50%, -50%) scale(0.94);
}

.yt-tap-ind.left.show {
  transform: translate(-50%, -50%) scale(1);
}

.yt-tap-ind.right {
  left: auto;
  right: 20%;
  transform: translate(50%, -50%) scale(0.94);
}

.yt-tap-ind.right.show {
  transform: translate(50%, -50%) scale(1);
}

.yt-ripple {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 4;
  width: 33.33%;
  opacity: 0;
  pointer-events: none;
  border-radius: 50%;
  transform: scale(0.55);
}

.yt-ripple.left { left: 0; }
.yt-ripple.right { right: 0; }

.yt-ripple.show {
  animation: yt-ripple-fade 0.55s ease-out forwards;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 70%);
}

@keyframes yt-ripple-fade {
  0% { opacity: 0.85; transform: scale(0.55); }
  100% { opacity: 0; transform: scale(1); }
}

/* ইউটিউবের নিজের টাইটেল/শেয়ার বার ঢাকার জন্য উপরের স্ট্রিপ */
.yt-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  height: clamp(52px, 34%, 72px);
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.8rem;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  background: linear-gradient(to bottom, #0b1220 0%, #0b1220 80%, rgba(11, 18, 32, 0) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.yt-topbar span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.yt-player:not(.is-idle) .yt-topbar { opacity: 1; }
.yt-player.is-idle .yt-topbar { opacity: 0; }

/* প্রথমবার প্লে করার আগে ইউটিউবের পোস্টার/টাইটেল/লাল প্লে বাটন ঢেকে রাখে */
.yt-poster {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle at 50% 45%, rgba(17, 24, 39, 0.92), rgba(3, 7, 18, 0.97) 70%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.yt-player.show-poster .yt-poster {
  opacity: 1;
  visibility: visible;
}

.yt-spinner {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: none;
  place-items: center;
  pointer-events: none;
}

.yt-player.is-buffering .yt-spinner { display: grid; }

.yt-spinner::after {
  content: "";
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.22);
  border-top-color: #fff;
  animation: yt-spin 0.8s linear infinite;
}

@keyframes yt-spin { to { transform: rotate(360deg); } }

/* ---------- কন্ট্রোল বার ---------- */
.yt-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 28px 12px 10px;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.5) 55%, transparent);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.yt-player.is-idle .yt-controls {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

.yt-player.is-idle .yt-shield { cursor: none; }

.yt-player:focus-visible .yt-controls {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.yt-seek-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.yt-time {
  flex-shrink: 0;
  min-width: 42px;
  text-align: center;
  font-size: 0.74rem;
  font-variant-numeric: tabular-nums;
  color: #e5e7eb;
}

.yt-seek {
  position: relative;
  flex: 1;
  height: 24px;
  display: flex;
  align-items: center;
  cursor: pointer;
  touch-action: none;
  outline: none;
}

.yt-seek:focus-visible {
  box-shadow: 0 0 0 2px var(--yt-accent, #60a5fa);
  border-radius: 4px;
}

.yt-seek-track {
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.26);
  overflow: hidden;
  pointer-events: none;
}

.yt-seek-buffer {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0;
  background: rgba(255, 255, 255, 0.42);
}

.yt-seek-played {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0;
  background: var(--yt-accent, #60a5fa);
}

.yt-seek-thumb {
  position: absolute;
  top: 50%;
  left: 0;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: #fff;
  transform: translateY(-50%);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.35);
  pointer-events: none;
  transition: box-shadow 0.15s ease;
}

.yt-seek:hover .yt-seek-thumb,
.yt-seek:focus-within .yt-seek-thumb {
  box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.4);
}

.yt-btn-row {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-top: 2px;
}

.yt-spacer { flex: 1; }

.yt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
  transition: background 0.15s ease;
}

.yt-btn:hover { background: rgba(255, 255, 255, 0.16); }

.yt-btn:focus-visible {
  outline: 2px solid var(--yt-accent, #60a5fa);
  outline-offset: 1px;
}

.yt-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  pointer-events: none;
}

.yt-btn-text {
  width: auto;
  min-width: 42px;
  padding: 0 8px;
  font-size: 0.76rem;
  font-weight: 600;
}

.yt-cc-btn.active {
  color: var(--yt-accent, #60a5fa);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.yt-volume {
  display: flex;
  align-items: center;
  gap: 2px;
}

.yt-vol-range {
  width: 62px;
  height: 16px;
  accent-color: var(--yt-accent, #60a5fa);
  cursor: pointer;
  touch-action: none;
}

/* ---------- মেনু ---------- */
.yt-menu-wrap { position: relative; }

.yt-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  z-index: 6;
  min-width: 118px;
  max-height: 46vh;
  overflow-y: auto;
  padding: 6px;
  border-radius: 10px;
  background: rgba(17, 24, 39, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  display: none;
}

.yt-menu.open { display: block; }

.yt-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: #e5e7eb;
  font: inherit;
  font-size: 0.78rem;
  text-align: left;
  cursor: pointer;
}

.yt-menu button:hover { background: rgba(255, 255, 255, 0.12); }
.yt-menu button.active { color: var(--yt-accent, #60a5fa); font-weight: 700; }
.yt-menu button svg { width: 15px; height: 15px; fill: currentColor; }

/* ---------- ভিডিও শেষ ---------- */
.yt-end {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.74);
  text-align: center;
}

.yt-player.is-ended .yt-end { display: flex; }

.yt-end-inner { max-width: 320px; }

.yt-end-badge {
  width: 44px;
  height: 44px;
  margin: 0 auto 10px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(96, 165, 250, 0.2);
  color: var(--yt-accent, #60a5fa);
}

.yt-end-badge svg { width: 26px; height: 26px; fill: currentColor; }
.yt-end h3 { color: #fff; font-size: 1rem; margin-bottom: 14px; }

.yt-end-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.yt-end .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.yt-end .btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.7);
}

/* ---------- ফুলস্ক্রিন ---------- */
.yt-player:fullscreen,
.yt-player:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  border-radius: 0;
  background: #000;
}

.yt-player:fullscreen .yt-controls,
.yt-player:-webkit-full-screen .yt-controls {
  padding-bottom: max(10px, env(safe-area-inset-bottom));
}

/* iPhone Safari-র জন্য ফলব্যাক (Element fullscreen নেই) */
.yt-player.yt-pseudo-fs {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 99999;
  border-radius: 0;
  background: #000;
}

body.yt-fs-lock { overflow: hidden; }

/* ফলব্যাক ফুলস্ক্রিনের এক্সিট বাটন */
.yt-fs-exit {
  position: absolute;
  top: max(10px, env(safe-area-inset-top));
  right: 10px;
  z-index: 7;
  display: none;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(4px);
}

.yt-fs-exit svg { width: 18px; height: 18px; fill: currentColor; }
.yt-fs-exit:hover { background: rgba(0, 0, 0, 0.8); }

.yt-player.yt-pseudo-fs .yt-fs-exit { display: inline-flex; }

.yt-player.yt-pseudo-fs .yt-controls {
  padding-bottom: max(10px, env(safe-area-inset-bottom));
}

/* ফুলস্ক্রিনেও ক্যাপশনের জায়গা বজায় থাকে */
.yt-player:fullscreen.has-captions,
.yt-player:-webkit-full-screen.has-captions,
.yt-player.yt-pseudo-fs.has-captions {
  --yt-cc-space: 74px;
}

/* iPhone ফলব্যাক: পোর্ট্রেটে প্লেয়ার ৯০° ঘুরিয়ে ল্যান্ডস্কেপ দেখানো হয় */
.yt-player.yt-pseudo-fs.is-rotated {
  inset: auto;
  top: 50%;
  left: 50%;
  width: 100vh;
  width: 100dvh;
  height: 100vw;
  transform: translate(-50%, -50%) rotate(90deg);
  transform-origin: center center;
}

/* পাশাপাশি (ল্যান্ডস্কেপ) অবস্থায় কন্ট্রোল যেন ঠিক থাকে */
@media (orientation: landscape) and (max-height: 500px) {
  .yt-player.yt-pseudo-fs .yt-controls { padding: 16px 14px max(6px, env(safe-area-inset-bottom)); }
  .yt-player.yt-pseudo-fs .yt-seek-row { gap: 8px; }
}

@media (max-width: 768px) {
  .yt-player { --yt-cc-space: 68px; }
  .yt-controls { padding: 18px 8px 6px; }
  .yt-btn { width: 44px; height: 44px; }
  .yt-btn svg { width: 22px; height: 22px; }
  /* ছোট পর্দায় এক সারিতে সব বাটন ধরাতে টেক্সট বাটন সরু + মিউট বাদ */
  .yt-btn-text { width: auto; min-width: 34px; padding: 0 4px; font-size: 0.7rem; }
  .yt-btn[data-yt-mute] { display: none; }
  /* সিক বারে আঙুলের জন্য কমপক্ষে ৪৪px উঁচু হিট এরিয়া */
  .yt-seek { height: 44px; }
  .yt-seek-track { height: 5px; }
  .yt-seek-thumb { width: 16px; height: 16px; margin-left: -8px; }
  .yt-time { min-width: 38px; font-size: 0.7rem; }
  .yt-vol-range { display: none; }
  .yt-end h3 { font-size: 0.95rem; }
}

@media (max-width: 400px) {
  .yt-time.yt-duration { display: none; }
  .yt-btn-row {
    gap: 0;
    flex-wrap: wrap;
  }
}

@media (hover: none) {
  .yt-vol-range { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .yt-controls,
  .yt-bigplay,
  .yt-tap-ind,
  .yt-seek-thumb,
  .yt-btn,
  .yt-mount { transition: none; }
  .yt-spinner::after { animation-duration: 2s; }
  .yt-ripple.show { animation: none; opacity: 0; }
}

/* ---------- স্টুডেন্ট পেজে টেক্সট সিলেকশন/রাইট-ক্লিক প্রতিরোধ ----------
   শুধু js/protect.js যেসব পেজে চালু হয় সেখানেই (html.protect) প্রযোজ্য,
   তাই অ্যাডমিন পেজ স্বাভাবিক থাকে। */
html.protect body {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

html.protect img,
html.protect a {
  -webkit-user-drag: none;
  -webkit-user-select: none;
  user-select: none;
}

html.protect input,
html.protect textarea,
html.protect select,
html.protect [contenteditable="true"],
html.protect [contenteditable=""] {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

.video-meta {
  margin-top: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.video-meta h2 { font-size: 1.35rem; margin-bottom: 16px; }

.meta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* ---------------- Forms ---------------- */

.form-card {
  width: min(560px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 36px 32px;
}

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.97rem;
  background: var(--bg);
  color: var(--text);
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-group input[readonly] {
  background: #f3f4f6;
  color: var(--text-2);
  cursor: not-allowed;
}

.field-error {
  color: var(--danger);
  font-size: 0.85rem;
  margin-top: 6px;
  display: none;
}

.form-group.invalid input,
.form-group.invalid textarea { border-color: var(--danger); }
.form-group.invalid .field-error { display: block; }

.package-summary {
  background: var(--bg);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 18px;
}

.package-summary .row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 0.95rem;
}

.package-summary .total {
  font-weight: 700;
  color: var(--accent);
  font-size: 1.05rem;
  border-top: 1px solid var(--border);
  margin-top: 6px;
  padding-top: 10px;
}

.success-box {
  text-align: center;
  padding: 20px 0;
}

.success-box .status-icon { background: rgba(16, 185, 129, 0.15); color: var(--accent); }

/* ---------------- Toast ---------------- */

.toast-container {
  position: fixed;
  top: 84px;
  right: 20px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--dark-2);
  color: #fff;
  padding: 13px 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-size: 0.93rem;
  transform: translateX(120%);
  transition: transform 0.3s ease;
  border-left: 4px solid var(--accent);
  max-width: 320px;
}

.toast.show { transform: translateX(0); }
.toast-error { border-left-color: var(--danger); }
.toast-warning { border-left-color: var(--warning); }
.toast-info { border-left-color: var(--secondary); }

/* ---------------- Modal ---------------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.55);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 2500;
}

.modal-overlay.open { display: flex; }

.modal {
  background: var(--surface);
  border-radius: var(--radius);
  width: min(520px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  padding: 28px;
  animation: pop 0.25s ease;
}

@keyframes pop {
  from { transform: scale(0.94); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal h3 { margin-bottom: 18px; font-size: 1.2rem; }

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 22px;
  flex-wrap: wrap;
}

/* ---------------- Admin panel ---------------- */

.admin-body {
  background: #0b1220;
  min-height: 100vh;
  color: #e5e7eb;
}

.admin-navbar {
  background: #111827;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 900;
}

.admin-navbar .nav-container { min-height: auto; }

.admin-user {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #9ca3af;
  font-size: 0.9rem;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  padding: 22px 0 6px;
  flex-wrap: wrap;
}

.admin-tab {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  padding: 11px 20px;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.93rem;
  transition: var(--transition);
  min-height: 44px;
}

.admin-tab:hover { background: rgba(255, 255, 255, 0.12); }

.admin-tab.active {
  background: var(--secondary-dark);
  border-color: var(--secondary-dark);
  color: #fff;
  font-weight: 600;
}

.admin-panel {
  display: none;
  padding: 24px 0 60px;
}

.admin-panel.active { display: block; }

.admin-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-card {
  background: #161f30;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  flex-wrap: wrap;
  justify-content: space-between;
}

.admin-card .who {
  display: flex;
  gap: 14px;
  align-items: center;
  min-width: 240px;
  flex: 1;
}

.admin-card .avatar { width: 60px; height: 60px; border: 2px solid rgba(255,255,255,.2); }

.admin-card .info h3 { color: #fff; font-size: 1.02rem; }
.admin-card .info .email { color: #9ca3af; font-size: 0.88rem; }
.admin-card .info .meta { color: #6b7280; font-size: 0.83rem; margin-top: 3px; }

.provider-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 9px;
  border-radius: 999px;
  color: #d1d5db;
  margin-left: 6px;
}

.admin-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.status-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.pill-green { background: rgba(16, 185, 129, 0.18); color: #34d399; }
.pill-yellow { background: rgba(245, 158, 11, 0.18); color: #fbbf24; }
.pill-red { background: rgba(239, 68, 68, 0.18); color: #f87171; }
.pill-blue { background: rgba(59, 130, 246, 0.18); color: #60a5fa; }

.admin-empty {
  text-align: center;
  padding: 50px 20px;
  color: #6b7280;
  background: #161f30;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
}

/* ---------- Admin: dashboard / তথ্য ---------- */

.admin-section {
  background: #161f30;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 18px;
}

.admin-section h3 {
  color: #fff;
  font-size: 1.04rem;
  margin-bottom: 14px;
}

.lock-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  color: #9ca3af;
  padding: 3px 10px;
  border-radius: 999px;
  margin-left: 8px;
  vertical-align: middle;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}

.stat-box {
  background: #111a29;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: 18px 12px;
  text-align: center;
}

.stat-box strong {
  display: block;
  font-size: 1.8rem;
  color: #fff;
  line-height: 1.2;
}

.stat-box span { color: #9ca3af; font-size: 0.85rem; }

.info-rows .info-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.93rem;
}

.info-rows .info-row:last-child { border-bottom: 0; }
.info-rows .info-row .k { color: #9ca3af; flex-shrink: 0; }
.info-rows .info-row .v { color: #e5e7eb; text-align: right; word-break: break-word; }
.info-rows .info-row .v a { color: #34d399; }

.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  max-height: 190px;
  overflow-y: auto;
  padding: 4px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  font-size: 0.85rem;
  color: var(--text);
  cursor: pointer;
}

.check-item input { accent-color: var(--secondary); }

/* ---------------- About / misc ---------------- */

.timeline-list li,
.bullet-list li {
  display: flex;
  gap: 12px;
  padding: 9px 0;
  color: var(--text-2);
}

.bullet-list .tick { font-size: 1.1rem; }

.team-card { text-align: center; }
.team-card .avatar { width: 96px; height: 96px; margin: 0 auto 14px; }

.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.contact-item .icon-box { margin-bottom: 0; flex-shrink: 0; }

.notice {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: var(--secondary-dark);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 0.92rem;
  margin-bottom: 18px;
}

.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-2 { margin-bottom: 16px; }
.text-center { text-align: center; }
.text-muted { color: var(--text-2); }
.hidden { display: none !important; }

/* প্যারাগ্রাফের ভিতরের লিংক রঙের বাইরেও চেনা যায় */
p a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.protected-note {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-2);
}

/* ---------------- Login page ---------------- */
/* লগইন কার্ড শুরুতে লুকানো থাকে — লগইন অবস্থা যাচাই শেষ হলে তবেই দেখানো হয় */
.login-card { display: none; }
.login-card.ready { display: block; animation: pop 0.25s ease; }

/* ---------------- WhatsApp button ---------------- */
.btn-whatsapp { background: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1ebe5b; color: #fff; }

/* ---------------- Class selection grid ---------------- */
.list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.list-head h1 { font-size: 1.5rem; margin-bottom: 4px; }

.class-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.class-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  color: var(--text);
  transition: var(--transition);
}

.class-card:hover {
  transform: translateY(-5px);
  border-color: var(--secondary);
  box-shadow: var(--shadow-lg);
}

.class-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #1f2937, #111827);
  overflow: hidden;
}

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

.thumb-placeholder {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  color: #9ca3af;
  font-size: 2rem;
  background: linear-gradient(135deg, #1f2937, #111827);
}

.class-thumb.no-thumb .thumb-placeholder,
.class-thumb.thumb-failed .thumb-placeholder { display: grid; }
.class-thumb.thumb-failed img { display: none; }

.thumb-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  color: #fff;
  background: rgba(17, 24, 39, 0.25);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.class-card:hover .thumb-play { opacity: 1; }

.class-num-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(17, 24, 39, 0.78);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.class-card-body { padding: 14px 16px; }
.class-card-body h3 { font-size: 1rem; line-height: 1.45; }

/* ---------------- Viewer: previous / next ---------------- */
.class-pager {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.class-pager .btn { flex: 1; min-width: 140px; }

/* ---------------- Viewer: notes panel ---------------- */
.notes-panel {
  margin-top: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.notes-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 22px;
  background: none;
  border: none;
  font: inherit;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
}

.notes-toggle:hover { background: var(--bg); }

.notes-chevron { transition: transform 0.2s ease; }
.notes-panel.open .notes-chevron { transform: rotate(180deg); }

.notes-body { padding: 0 22px 22px; }

.notes-body-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.notes-frame {
  height: 75vh;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.notes-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
