:root{
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --primary-glow: rgba(37, 99, 235, 0.22);
  --accent: #F59E0B;
  --accent-glow: rgba(245, 158, 11, 0.25);
  --emerald: #10B981;
  --emerald-glow: rgba(16, 185, 129, 0.2);
  --ink: #0F172A;
  --ink-soft: #475569;
  --ink-muted: #64748B;
  --paper: #F8FAFC;
  --paper-card: #FFFFFF;
  --paper-line: #E2E8F0;
  --paper-line-soft: rgba(226, 232, 240, 0.8);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 25px -4px rgba(15, 23, 42, 0.07), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 24px 48px -12px rgba(15, 23, 42, 0.16);
  --shadow-hover: 0 20px 40px -8px rgba(37, 99, 235, 0.18), 0 8px 16px -4px rgba(15, 23, 42, 0.08);
}

*{ box-sizing: border-box; margin: 0; padding: 0; }
html{ scroll-behavior: smooth; overflow-x: hidden; }
body{
  background: var(--paper);
  color: var(--ink);
  font-family: 'Anek Bangla', sans-serif;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a{ text-decoration: none; color: inherit; }
button{ font-family: inherit; cursor: pointer; border: none; background: none; }
.container{ max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 3.5vw, 40px); }

/* ===== নেভবার (Glassmorphism & Unified UX) ===== */
header.nav{
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
}
.nav-inner{
  max-width: 1300px; margin: 0 auto; height: 64px;
  padding: 0 clamp(14px, 3vw, 48px);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand{ display: flex; align-items: center; gap: 10px; }
.brand-logo{
  height: 64px; max-height: 100%; width: auto; aspect-ratio: 3.84/1;
  object-fit: contain; display: block; flex: none;
}
.nav-links{ display: flex; gap: 32px; font-weight: 600; font-size: 15.5px; }
.nav-links a{ position: relative; color: var(--ink-soft); padding: 6px 0; transition: color 0.2s ease; }
.nav-links a:hover, .nav-links a.active{ color: var(--primary); }
.nav-links a::after{
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2.5px;
  background: linear-gradient(90deg, var(--primary), #60A5FA);
  border-radius: 99px; transform: scaleX(0); transform-origin: left;
  transition: transform .25s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-links a:hover::after, .nav-links a.active::after{ transform: scaleX(1); }

.nav-cta{
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 20px; border-radius: 999px;
  font-family: inherit; font-weight: 700; font-size: 14.5px;
  color: #fff !important; text-decoration: none; white-space: nowrap;
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: all .25s cubic-bezier(.16, 1, .3, 1);
  box-sizing: border-box; user-select: none;
}
.nav-cta:hover{
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}
.nav-cta:active{ transform: translateY(0) scale(0.98); }
.nav-cta svg.nav-login-icon{ width: 17px; height: 17px; flex: none; }

/* Logged-in profile badge */
.nav-cta--logged-in{
  padding: 0 14px 0 6px; gap: 8px;
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.nav-cta--logged-in:hover{
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.28), 0 0 14px rgba(56, 189, 248, 0.22);
}
.nav-profile-avatar{
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  position: relative; flex: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3), 0 0 0 1.5px rgba(255, 255, 255, 0.3);
}
.nav-profile-initial{ color: #fff; font-weight: 700; font-size: 13px; line-height: 1; text-transform: uppercase; }
.nav-profile-avatar svg{ width: 14px; height: 14px; fill: currentColor; color: #fff; }
.nav-profile-badge{
  position: absolute; bottom: -1px; right: -1px;
  width: 9px; height: 9px; border-radius: 50%;
  background: #10B981; border: 1.5px solid #0F172A;
  box-shadow: 0 0 5px rgba(16, 185, 129, 0.7);
}
.nav-profile-name{
  font-size: 14px; font-weight: 700; color: #F8FAFC;
  letter-spacing: .2px; max-width: 100px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1;
}
.nav-profile-chevron{ width: 11px; height: 11px; flex: none; opacity: .7; transition: opacity .2s ease, transform .2s ease; }
.nav-cta--logged-in:hover .nav-profile-chevron{ opacity: 1; transform: translateY(1.5px); }

.burger{ display: none; font-size: 26px; color: var(--ink); }

@media(max-width: 860px){
  .nav-links{
    position: absolute; top: 100%; left: 0; right: 0; background: #ffffff;
    flex-direction: column; padding: 20px 30px 28px; gap: 16px;
    border-bottom: 1px solid var(--paper-line);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.1); display: none;
  }
  .nav-links.open{ display: flex; }
  .burger{ display: block; }
}
@media(max-width: 480px){
  .nav-inner{ gap: 8px; padding: 0 14px; height: 64px; }
  .brand-logo{ height: 42px; }
  .nav-cta{ height: 36px; padding: 0 13px; font-size: 13px; gap: 5px; }
  .nav-cta svg.nav-login-icon{ width: 15px; height: 15px; }
  .nav-profile-name{ max-width: 75px; font-size: 12.5px; }
}

/* ===== হিরো সেকশন / পেজ হেড ===== */
.hero-section{
  position: relative;
  padding: 56px 0 36px;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(37, 99, 235, 0.08) 0%, rgba(248, 250, 252, 0) 100%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  text-align: center;
}
.hero-title{
  font-family: 'Anek Bangla', sans-serif;
  font-weight: 800; font-size: clamp(30px, 4.5vw, 46px);
  color: var(--ink); line-height: 1.2; margin-bottom: 24px;
}
.hero-title span{
  background: linear-gradient(135deg, #1E293B 20%, var(--primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ফিল্টার ও সার্চ বার */
.search-control-bar{
  max-width: 580px; margin: 0 auto;
  position: relative;
  display: flex; align-items: center;
}
.search-input-wrap{
  position: relative; width: 100%;
}
.search-input-wrap svg{
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; color: var(--ink-muted); pointer-events: none;
}
.search-input{
  width: 100%; height: 50px;
  padding: 0 20px 0 50px;
  border-radius: 999px;
  border: 1.5px solid var(--paper-line);
  background: #FFFFFF;
  font-family: inherit; font-size: 15px; color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}
.search-input:focus{
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

/* কাউন্ট ইনফো */
.filter-meta-bar{
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 0 16px;
  color: var(--ink-soft); font-size: 15px; font-weight: 600;
}
.teacher-count-badge{
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(37, 99, 235, 0.08); color: var(--primary);
  padding: 4px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 700;
}

/* ===== শিক্ষক কার্ড গ্রিড ===== */
.teacher-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
  padding-bottom: 70px;
}

.teacher-card{
  position: relative;
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--paper-line);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: all .35s cubic-bezier(.22, 1, .36, 1);
}
.teacher-card:hover{
  transform: translateY(-8px);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: var(--shadow-hover);
}

.teacher-photo-wrap{
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.08;
  overflow: hidden;
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
}
.teacher-photo{
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform .5s cubic-bezier(.22, 1, .36, 1);
}
.teacher-card:hover .teacher-photo{
  transform: scale(1.06);
}

/* সাবজেক্ট ব্যাজ অন ফটো */
.subject-pill{
  position: absolute; top: 14px; right: 14px;
  padding: 5px 14px; border-radius: 999px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #F8FAFC; font-size: 12.5px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 2;
}
.subject-pill svg{ width: 13px; height: 13px; color: #F59E0B; }

/* বটম ইনফো বক্স */
.teacher-card-body{
  padding: 20px 22px 22px;
  display: flex; flex-direction: column;
  flex: 1; justify-content: space-between;
  background: #FFFFFF;
  position: relative;
}
.teacher-name{
  font-family: 'Anek Bangla', sans-serif;
  font-weight: 700; font-size: 20.5px;
  color: var(--ink); line-height: 1.3;
  margin-bottom: 4px;
}
.teacher-designation{
  font-size: 14px; font-weight: 600;
  color: var(--ink-soft); line-height: 1.4;
  margin-bottom: 16px;
}
.teacher-action-row{
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--paper-line-soft);
  margin-top: auto;
}
.teacher-cta-text{
  font-size: 14px; font-weight: 700;
  color: var(--primary); display: inline-flex; align-items: center; gap: 6px;
  transition: gap 0.2s ease;
}
.teacher-card:hover .teacher-cta-text{
  gap: 9px;
}
.teacher-action-icon{
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(37, 99, 235, 0.08); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.25s ease;
}
.teacher-card:hover .teacher-action-icon{
  background: var(--primary); color: #ffffff;
  transform: translateX(2px);
}
.teacher-action-icon svg{ width: 16px; height: 16px; }

/* লোডিং স্টেট ও এম্পটি স্টেট */
.teacher-data-state{
  grid-column: 1/-1;
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-soft);
  background: #FFFFFF;
  border: 1.5px dashed var(--paper-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.spinner{
  width: 36px; height: 36px; border-radius: 50%;
  border: 3.5px solid rgba(37, 99, 235, 0.15); border-top-color: var(--primary);
  animation: spin .8s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite; margin: 0 auto 14px;
}
@keyframes spin{ to{ transform: rotate(360deg); } }

/* ===== শিক্ষক বিস্তারিত ও কোর্স মডাল ===== */
.teacher-modal-overlay{
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
  overflow-y: auto;
}
.teacher-modal-overlay.open{ display: flex; }
.teacher-modal{
  background: #FFFFFF;
  border-radius: var(--radius-xl);
  width: 100%; max-width: 640px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.4);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  animation: modalEnter .3s cubic-bezier(.22, 1, .36, 1);
}
@keyframes modalEnter{
  from{ opacity: 0; transform: translateY(20px) scale(0.97); }
  to{ opacity: 1; transform: translateY(0) scale(1); }
}

.teacher-modal-close{
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #FFFFFF; font-size: 18px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  z-index: 10; transition: all 0.2s ease;
}
.teacher-modal-close:hover{
  background: #FFFFFF; color: var(--ink); transform: scale(1.08);
}

.tm-header{
  position: relative;
  padding: 32px 30px 26px;
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
  color: #FFFFFF;
  display: flex; align-items: center; gap: 20px;
}
.tm-avatar-box{
  position: relative; flex: none;
}
.tm-avatar{
  width: 86px; height: 86px; border-radius: 20px;
  object-fit: cover; object-position: top center;
  background: #334155;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.tm-header-info h2{
  font-family: 'Anek Bangla', sans-serif;
  font-size: 23px; font-weight: 800; line-height: 1.25; margin-bottom: 4px;
}
.tm-header-info .designation{
  font-size: 14.5px; opacity: 0.85; font-weight: 600;
}
.tm-header-info .subject{
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #FBBF24; font-size: 13px; font-weight: 700;
  padding: 3px 12px; border-radius: 999px; margin-top: 8px;
}

.tm-body{
  padding: 24px 30px 32px;
  max-height: 60vh;
  overflow-y: auto;
}
.tm-courses-label{
  display: flex; align-items: center; justify-content: space-between;
  font-family: 'Anek Bangla', sans-serif;
  font-size: 16px; font-weight: 800; color: var(--ink);
  margin-bottom: 16px;
}
.tm-courses-count{
  font-size: 13px; font-weight: 700; color: var(--primary);
  background: rgba(37, 99, 235, 0.08); padding: 2px 10px; border-radius: 999px;
}
.tm-course-list{ display: flex; flex-direction: column; gap: 12px; }
.tm-course-row{
  display: flex; align-items: center; gap: 16px;
  padding: 12px 14px; border: 1px solid var(--paper-line);
  border-radius: var(--radius-md); background: #FFFFFF;
  transition: all .25s ease; text-decoration: none;
}
.tm-course-row:hover{
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.09);
  background: #F8FAFC;
}
.tm-course-thumb{
  width: 72px; height: 50px; border-radius: 10px;
  object-fit: cover; flex: none; background: #E2E8F0;
}
.tm-course-meta{ flex: 1; min-width: 0; }
.tm-course-name{
  font-weight: 700; font-size: 15.5px; line-height: 1.35;
  color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tm-course-cat{
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; color: var(--ink-soft); margin-top: 3px;
}
.tm-course-price{
  font-family: 'Anek Bangla', sans-serif; font-weight: 800;
  font-size: 17px; color: var(--emerald); white-space: nowrap;
}
.tm-course-arrow{
  width: 18px; height: 18px; color: var(--ink-muted); flex: none;
  transition: transform 0.2s ease, color 0.2s ease;
}
.tm-course-row:hover .tm-course-arrow{
  transform: translateX(3px); color: var(--primary);
}
.tm-empty{
  text-align: center; color: var(--ink-soft); padding: 40px 16px;
  font-size: 15px; background: #F8FAFC; border-radius: var(--radius-md);
  border: 1px dashed var(--paper-line);
}

/* ===== ডার্ক স্লেট ফুটার ===== */
footer{
  background: #0F172A; color: #94A3B8; padding: 56px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08); margin-top: auto;
}
.footer-grid{
  display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px;
  padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-brand{ display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logo{
  height: 48px; width: auto; object-fit: contain; filter: brightness(0) invert(1); opacity: 0.95;
}
.footer-desc{ font-size: 15px; line-height: 1.7; color: #CBD5E1; max-width: 38ch; }
.footer-heading{
  font-family: 'Anek Bangla', sans-serif; color: #ffffff; font-size: 17px;
  font-weight: 700; margin-bottom: 16px; letter-spacing: 0.02em;
}
.footer-links{ list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-links a{ color: #CBD5E1; text-decoration: none; font-size: 14.5px; transition: all 0.2s ease; display: inline-block; }
.footer-links a:hover{ color: #38BDF8; transform: translateX(4px); }
.footer-contact-item{ color: #CBD5E1; font-size: 14.5px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.footer-bottom{ padding-top: 24px; text-align: center; }
.copyright{ font-size: 13.5px; color: #64748B; margin: 0; }

@media(max-width: 768px){
  .hero-section{ padding: 36px 0 24px; }
  .teacher-grid{ grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
  .footer-grid{ grid-template-columns: 1fr; gap: 28px; }
  .tm-header{ padding: 24px 20px; flex-direction: column; text-align: center; }
  .tm-body{ padding: 20px 18px 24px; }
}

@media(min-width: 1024px){
  body{ zoom: 1.05; }
}

/* =========================================================
   THEME TOGGLE BUTTON & NAVBAR ACTION GROUP
   ========================================================= */
.nav-actions{
  display:inline-flex;
  align-items:center;
  gap:10px;
  flex-shrink:0;
}
.theme-toggle-btn{
  width:38px;
  height:38px;
  border-radius:50%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#F1F5F9;
  border:1.5px solid #CBD5E1;
  color:#1E293B;
  cursor:pointer;
  position:relative;
  transition:all .25s cubic-bezier(.16,1,.3,1);
  box-shadow:0 2px 6px rgba(15,23,42,0.06);
  flex-shrink:0;
  outline:none;
  padding:0;
}
.theme-toggle-btn:hover{
  background:#E2E8F0;
  border-color:#94A3B8;
  transform:translateY(-1px) rotate(15deg);
  box-shadow:0 4px 14px rgba(15,23,42,0.12);
  color:#0F172A;
}
.theme-toggle-btn:active{ transform:scale(.92); }
.theme-toggle-btn .theme-icon{
  width:19px;
  height:19px;
  transition:transform .35s cubic-bezier(.34,1.56,.64,1), opacity .25s ease;
}
.theme-toggle-btn .theme-icon--sun{ display:none; }
.theme-toggle-btn .theme-icon--moon{ display:block; }

@media(max-width:480px){
  .nav-actions{ gap:6px; }
  .theme-toggle-btn{ width:34px; height:34px; }
  .theme-toggle-btn .theme-icon{ width:16px; height:16px; }
}

html.theme-transition,
html.theme-transition *,
html.theme-transition *::before,
html.theme-transition *::after{
  transition:background-color .32s ease, border-color .32s ease, color .32s ease, box-shadow .32s ease !important;
  transition-delay:0s !important;
}

/* =========================================================
   NIGHT MODE (Dark Theme)
   ========================================================= */
[data-theme="dark"], html.dark{
  --ink:#F8FAFC;
  --ink-soft:#94A3B8;
  --ink-muted:#64748B;
  --paper:#090D16;
  --paper-card:#111827;
  --paper-line:rgba(255,255,255,0.08);
  --paper-line-soft:rgba(255,255,255,0.05);
  --shadow-md:0 14px 36px rgba(0,0,0,0.45);
}

[data-theme="dark"] body{
  background-color:#090D16;
  color:#CBD5E1;
  background-image:
    radial-gradient(circle at 12% 10%, rgba(56,189,248,0.06) 0%, transparent 45%),
    radial-gradient(circle at 88% 85%, rgba(129,140,248,0.06) 0%, transparent 45%);
}

[data-theme="dark"] .theme-toggle-btn{
  background:rgba(255,255,255,0.08);
  border-color:rgba(255,255,255,0.16);
  color:#F59E0B;
  box-shadow:0 2px 10px rgba(0,0,0,0.35), 0 0 12px rgba(245,158,11,0.15);
}
[data-theme="dark"] .theme-toggle-btn:hover{
  background:rgba(255,255,255,0.14);
  border-color:rgba(245,158,11,0.5);
  color:#FBBF24;
  transform:translateY(-1px) rotate(-15deg);
  box-shadow:0 4px 16px rgba(0,0,0,0.5), 0 0 18px rgba(245,158,11,0.35);
}
[data-theme="dark"] .theme-toggle-btn .theme-icon--moon{ display:none; }
[data-theme="dark"] .theme-toggle-btn .theme-icon--sun{ display:block; }

[data-theme="dark"] header.nav{
  background:rgba(9,13,22,0.88);
  border-bottom:1px solid rgba(255,255,255,0.08);
  box-shadow:0 4px 24px rgba(0,0,0,0.45);
}
[data-theme="dark"] .brand-logo{
  filter:drop-shadow(0 1px 2px rgba(0,0,0,0.5)) drop-shadow(0 0 1px rgba(255,255,255,0.4));
}
[data-theme="dark"] .nav-links a{ color:#94A3B8; }
[data-theme="dark"] .nav-links a:hover{ color:#F8FAFC; }
[data-theme="dark"] .burger{ color:#F8FAFC; }
@media(max-width:860px){
  [data-theme="dark"] .nav-links{
    background:#0D1424;
    border-bottom:1px solid rgba(255,255,255,0.08);
    box-shadow:0 16px 36px rgba(0,0,0,0.65);
  }
}

[data-theme="dark"] .nav-cta{
  background:linear-gradient(135deg,#2563EB 0%,#1D4ED8 100%);
  border-color:rgba(255,255,255,0.22);
  box-shadow:0 4px 16px rgba(37,99,235,0.4), inset 0 1px 0 rgba(255,255,255,0.25);
  color:#FFFFFF !important;
}
[data-theme="dark"] .nav-cta:hover{
  background:linear-gradient(135deg,#3B82F6 0%,#2563EB 100%);
  box-shadow:0 6px 20px rgba(37,99,235,0.55);
}

[data-theme="dark"] .hero-title{ color:#F8FAFC; }
[data-theme="dark"] .hero-title span{
  background: linear-gradient(135deg, #60A5FA 0%, #38BDF8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .search-input{
  background:#111827;
  border-color:rgba(255,255,255,0.1);
  color:#F8FAFC;
}
[data-theme="dark"] .search-input:focus{
  border-color:#38BDF8;
  box-shadow:0 0 0 4px rgba(56,189,248,0.15);
}
[data-theme="dark"] .filter-meta-bar{
  color:#94A3B8;
}

[data-theme="dark"] .teacher-card{
  background:#111827;
  border-color:rgba(255,255,255,0.08);
  box-shadow:0 8px 24px rgba(0,0,0,0.35);
}
[data-theme="dark"] .teacher-card:hover{
  border-color:#38BDF8;
  box-shadow:0 22px 42px -8px rgba(0,0,0,0.6), 0 0 24px rgba(56,189,248,0.25);
}
[data-theme="dark"] .teacher-card-body{
  background:#111827 !important;
}
[data-theme="dark"] .teacher-name{ color:#F8FAFC; }
[data-theme="dark"] .teacher-subject{ color:#38BDF8; }
[data-theme="dark"] .teacher-designation{ color:#94A3B8; }
[data-theme="dark"] .teacher-action-row{
  border-top-color:rgba(255,255,255,0.08);
}
[data-theme="dark"] .teacher-cta-text{
  color:#38BDF8;
}
[data-theme="dark"] .teacher-action-icon{
  background:rgba(56,189,248,0.15);
  color:#38BDF8;
}
[data-theme="dark"] .teacher-card:hover .teacher-action-icon{
  background:#2563EB;
  color:#ffffff;
}
[data-theme="dark"] .teacher-data-state{
  background:#111827;
  border-color:rgba(255,255,255,0.08);
  color:#94A3B8;
}

[data-theme="dark"] .teacher-modal{
  background:#111827;
  border:1px solid rgba(255,255,255,0.12);
  box-shadow:0 30px 80px rgba(0,0,0,0.6);
}
[data-theme="dark"] .teacher-modal-close{
  background:rgba(255,255,255,0.1);
  border-color:rgba(255,255,255,0.2);
  color:#F8FAFC;
}
[data-theme="dark"] .teacher-modal-close:hover{
  background:#1E293B;
  color:#F8FAFC;
}
[data-theme="dark"] .tm-header{ border-bottom:1px solid rgba(255,255,255,0.08); }
[data-theme="dark"] .tm-courses-label{ color:#F8FAFC; }
[data-theme="dark"] .tm-courses-count{
  background:rgba(56,189,248,0.15);
  color:#38BDF8;
}
[data-theme="dark"] .tm-course-row{
  background:#162035;
  border-color:rgba(255,255,255,0.08);
}
[data-theme="dark"] .tm-course-row:hover{
  background:#1E293B;
  border-color:#38BDF8;
  box-shadow:0 8px 20px rgba(0,0,0,0.4);
}
[data-theme="dark"] .tm-course-name{ color:#F8FAFC; }
[data-theme="dark"] .tm-course-cat{ color:#94A3B8; }
[data-theme="dark"] .tm-course-arrow{ color:#64748B; }
[data-theme="dark"] .tm-course-row:hover .tm-course-arrow{ color:#38BDF8; }
[data-theme="dark"] .tm-empty{
  background:#162035;
  border-color:rgba(255,255,255,0.08);
  color:#94A3B8;
}

[data-theme="dark"] footer{
  background:linear-gradient(180deg,#070B14 0%,#04060B 100%);
  border-top:1px solid rgba(255,255,255,0.06);
}
