:root{
  --ink: #0F172A;
  --ink-soft: #475569;
  --ink-muted: #64748B;
  --paper: #F8FAFC;
  --paper-line: #E2E8F0;
  --card: #FFFFFF;
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --primary-light: #EFF6FF;
  --accent: #F59E0B;
  --accent-dark: #D97706;
  --sky: #0EA5E9;
  --green: #10B981;
  --green-dark: #059669;
  --margin: #EF4444;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow: 0 10px 30px -4px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 45px -10px rgba(15, 23, 42, 0.12), 0 8px 20px -4px rgba(15, 23, 42, 0.06);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 24px;
}
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; overflow-x: hidden; }
body{
  margin: 0;
  background: radial-gradient(circle at 12% 10%, rgba(37, 99, 235, 0.035) 0%, transparent 45%),
              radial-gradient(circle at 88% 85%, rgba(245, 158, 11, 0.035) 0%, transparent 45%),
              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; }
.container{ max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 36px); width: 100%; }

/* ===== নেভবার (গ্লাস মরফিজম) ===== */
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 var(--paper-line);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
  transition: all 0.3s ease;
}
.nav-inner{
  max-width: 1240px; margin: 0 auto; height: 64px;
  padding: 0 clamp(16px, 3vw, 36px);
  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;
  transition: transform 0.2s ease;
}
.brand:hover .brand-logo{ transform: scale(1.02); }
.nav-links{ display: flex; gap: 32px; font-weight: 600; font-size: 15.5px; align-items: center; }
.nav-links a{ position: relative; color: var(--ink-soft); padding: 8px 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: 0; height: 2.5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0); transform-origin: center;
  transition: transform 0.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: 42px; 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.14);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}
.nav-cta:hover{
  background: linear-gradient(135deg, #283a63 0%, #131d35 100%);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-1.5px);
  color: #fff !important;
}
.nav-cta:active{ transform: translateY(0) scale(0.98); box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2); }
.nav-cta svg.nav-login-icon{ width: 16px; height: 16px; flex: none; }

/* Logged-in profile badge button */
.nav-cta--logged-in{
  padding: 0 14px 0 6px; gap: 9px;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.nav-cta--logged-in:hover{
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.28), 0 0 12px rgba(56, 189, 248, 0.18);
}
.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 3px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.25);
}
.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: 8px; height: 8px;
  border-radius: 50%; background: #10b981; border: 1.5px solid #0f172a;
  box-shadow: 0 0 4px rgba(16, 185, 129, 0.6);
}
.nav-profile-name{
  font-size: 14px; font-weight: 600; color: #f1f5f9; letter-spacing: 0.2px;
  max-width: 100px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1;
}
.nav-profile-chevron{ width: 10px; height: 10px; flex: none; opacity: 0.7; transition: opacity 0.2s ease, transform 0.2s ease; }
.nav-cta--logged-in:hover .nav-profile-chevron{ opacity: 1; transform: translateY(1.5px); }

.burger{ display: none; background: none; border: 0; font-size: 26px; color: var(--ink); padding: 4px; }
@media(max-width: 860px){
  .nav-links{
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column; padding: 20px 28px 28px; gap: 16px;
    border-bottom: 1px solid var(--paper-line);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
    display: none;
  }
  .nav-links.open{ display: flex; }
  .burger{ display: block; }
}
@media(max-width: 480px){
  .nav-inner{ gap: 8px; height: 64px; padding: 0 14px; }
  .brand-logo{ height: 42px; }
  .nav-cta{ height: 36px; padding: 0 13px; font-size: 13px; gap: 6px; }
  .nav-cta svg.nav-login-icon{ width: 14px; height: 14px; }
  .nav-cta--logged-in{ padding: 0 10px 0 5px; gap: 6px; }
  .nav-profile-avatar{ width: 24px; height: 24px; }
  .nav-profile-name{ font-size: 12.5px; max-width: 72px; }
  .burger{ font-size: 22px; }
}

/* ===== পেজ হেডার ===== */
.page-head{ text-align: center; padding: clamp(34px, 5vw, 48px) 0 20px; }
.page-eyebrow{
  display: inline-flex; align-items: center; gap: 6px;
  background: #EFF6FF; color: #1D4ED8;
  border: 1px solid rgba(37, 99, 235, 0.2);
  padding: 4px 14px; border-radius: 999px;
  font-family: 'Anek Bangla', sans-serif;
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
  margin-bottom: 12px;
}
.page-eyebrow::before{
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: #2563EB;
}
.page-head h1{
  font-family: 'Anek Bangla', sans-serif;
  font-weight: 800; font-size: clamp(28px, 4vw, 40px);
  line-height: 1.22; margin: 0;
  color: var(--ink);
}
.page-head p{
  margin: 0 auto; color: var(--ink-soft); font-size: 16px; max-width: 58ch;
}

/* ===== ফিল্টার বার (লেভেল বাটনস) ===== */
.level-bar{
  display: flex; gap: 10px; flex-wrap: wrap;
  justify-content: center; margin: 8px 0 32px;
}

.level-btn{
  border: 1.5px solid var(--paper-line);
  background: #ffffff; color: var(--ink-soft);
  border-radius: 12px; padding: 10px 20px;
  font-size: 15px; font-weight: 700;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
  display: inline-flex; align-items: center; justify-content: center;
}
@media(hover:hover) and (pointer:fine){
  .level-btn:hover{
    transform: translateY(-2px);
    border-color: var(--cat-color, var(--primary));
    color: var(--cat-color, var(--ink));
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  }
}
.level-btn.active{
  background: var(--cat-color, var(--ink));
  border-color: var(--cat-color, var(--ink));
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.2);
}
.level-btn .count{ opacity: 0.8; font-size: 12.5px; margin-left: 5px; }

/* স্পেশাল সাবজেক্ট ওয়াইজ বাটন */
.subject-wise-nav{
  background: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%) !important;
  border: 1.5px solid transparent !important;
  color: #ffffff !important;
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.32) !important;
  display: inline-flex; align-items: center; gap: 8px;
}
.subject-wise-nav svg{ width: 17px; height: 17px; stroke-width: 2.2; flex: none; }
@media(hover:hover) and (pointer:fine){
  .subject-wise-nav:hover{
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(79, 70, 229, 0.45) !important;
    filter: brightness(1.06);
  }
}

/* ===== সার্চ বার ===== */
.course-search-bar{
  position: relative;
  max-width: 560px;
  margin: 0 auto 30px;
}
.course-search-bar .search-icon{
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; color: var(--ink-muted); pointer-events: none;
}
.course-search-bar input{
  width: 100%;
  border: 1.5px solid var(--paper-line);
  background: #ffffff;
  border-radius: 999px;
  padding: 14px 20px 14px 48px;
  font-size: 15px; font-weight: 600; font-family: inherit; color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}
.course-search-bar input::placeholder{ color: #94A3B8; font-weight: 500; }
.course-search-bar input:focus{
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

/* ===== BBA ফিল্টার বার ===== */
.bba-filter-bar{
  display: flex; gap: 16px; justify-content: center;
  align-items: flex-end; margin: 0 0 30px;
}
.bba-filter-group{ display: flex; flex-direction: column; gap: 6px; min-width: 240px; }
.bba-filter-group label{
  font-family: 'Anek Bangla', sans-serif;
  font-size: 13.5px; font-weight: 600; color: var(--ink-soft); padding-left: 2px;
  letter-spacing: 0.2px;
  transition: color 0.2s ease;
}
.bba-filter-group--institute label{
  color: #0284C7;
}
.bba-filter-group--year label{
  color: #9333EA;
}

.bba-filter-group select{
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  font-family: 'Anek Bangla', sans-serif;
  font-size: 14.5px;
  font-weight: 500;
  line-height: normal;
  border-radius: 12px;
  height: 44px;
  padding: 0 36px 0 16px;
  box-sizing: border-box;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer; width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ইন্সটিটিউট স্পিনার - প্রিমিয়াম সফট স্কাই ব্লু */
#bbaUniversitySelect,
.bba-select--institute{
  background-color: #F0F9FF;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%230284C7" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"/></svg>'), linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
  background-repeat: no-repeat, no-repeat;
  background-position: right 14px center, center;
  background-size: 15px 15px, 100% 100%;
  border: 1.5px solid #BAE6FD;
  color: #0369A1;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.08);
}
#bbaUniversitySelect:hover,
.bba-select--institute:hover{
  border-color: #38BDF8;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.16);
}
#bbaUniversitySelect:focus,
.bba-select--institute:focus{
  outline: none;
  border-color: #0284C7;
  box-shadow: 0 0 0 3.5px rgba(2, 132, 199, 0.22);
}

/* বর্ষ স্পিনার - প্রিমিয়াম সফট ভায়োলেট/পার্পল */
#bbaYearSelect,
.bba-select--year{
  background-color: #FAF5FF;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%239333EA" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"/></svg>'), linear-gradient(135deg, #FAF5FF 0%, #F3E8FF 100%);
  background-repeat: no-repeat, no-repeat;
  background-position: right 14px center, center;
  background-size: 15px 15px, 100% 100%;
  border: 1.5px solid #E9D5FF;
  color: #7E22CE;
  box-shadow: 0 2px 8px rgba(126, 34, 206, 0.08);
}
#bbaYearSelect:hover,
.bba-select--year:hover{
  border-color: #C084FC;
  box-shadow: 0 4px 14px rgba(126, 34, 206, 0.16);
}
#bbaYearSelect:focus,
.bba-select--year:focus{
  outline: none;
  border-color: #9333EA;
  box-shadow: 0 0 0 3.5px rgba(147, 51, 234, 0.22);
}

.bba-filter-group select option{
  font-family: 'Anek Bangla', sans-serif;
  font-weight: 500;
  font-size: 14.5px;
  color: var(--ink);
  background: #ffffff;
}

/* ===== কোর্স কার্ড গ্রিড ===== */
.course-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
  gap: 26px;
  padding-bottom: 70px;
}
.course-card{
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--paper-line);
  display: flex; flex-direction: column;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.course-card:hover{
  transform: translateY(-8px) scale(1.012);
  box-shadow: 0 22px 42px -8px rgba(15, 23, 42, 0.14), 0 0 28px 2px rgba(37, 99, 235, 0.1);
}
.course-image{
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #0f172a; display: block;
  transition: transform 0.35s ease;
}
.course-card:hover .course-image{ transform: scale(1.03); }

.course-top{
  padding: 10px 18px 8px;
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  border-bottom: 1.5px dashed var(--paper-line);
}
.course-category{
  font-family: 'Anek Bangla', sans-serif;
  font-size: 12px; font-weight: 800; line-height: 1.15; letter-spacing: 0.03em; text-transform: uppercase;
  margin: 0; padding: 0; min-width: 0; flex: 1; word-break: break-word;
}
.course-tag{
  font-family: 'Anek Bangla', sans-serif; font-size: 11.5px; font-weight: 700;
  line-height: 1.15;
  color: #7C3AED; background: #F5F3FF; border: 1px solid #DDD6FE;
  padding: 4px 10px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  flex-shrink: 0; box-sizing: border-box;
}
.course-body{
  padding: 12px 20px 20px; flex: 1; display: flex; flex-direction: column; gap: 6px;
}
.course-body h3{
  font-family: 'Anek Bangla', sans-serif;
  font-size: 20px; font-weight: 800; margin: 0; line-height: 1.35; color: var(--ink);
}
.course-body p{
  color: var(--ink-soft); font-size: 14.5px; margin: 0; line-height: 1.55;
}
.course-foot{
  margin-top: auto; padding-top: 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.price{ display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.price-row{ display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price-now{
  font-family: 'Anek Bangla', sans-serif; font-weight: 800; font-size: 24px; color: var(--primary-dark);
}
.price-old{
  font-weight: 400; font-size: 14px; color: #94A3B8;
  text-decoration: line-through; text-decoration-thickness: 1.5px;
}
.price small{ font-weight: 600; font-size: 12.5px; color: var(--green-dark); }

.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: 999px; border: 0;
  font-weight: 700; font-size: 14px; white-space: nowrap;
  line-height: 1;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}
.course-foot .btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  font-size: 14px;
  line-height: 1;
  font-family: 'Anek Bangla', sans-serif;
  font-weight: 700;
  white-space: nowrap;
}
.btn-primary{
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}
.btn-primary:hover{
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.42);
  background: linear-gradient(135deg, #1D4ED8 0%, #1E40AF 100%);
}
.course-enrolled-trigger{
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
  box-shadow: 0 4px 14px rgba(16,185,129,0.35) !important;
}
.course-enrolled-trigger:hover{
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16,185,129,0.5) !important;
  color: #ffffff !important;
}

.course-empty{
  grid-column: 1 / -1; text-align: center; padding: 60px 20px;
  color: var(--ink-soft); background: #fff; border: 1.5px dashed var(--paper-line);
  border-radius: var(--radius-lg); font-size: 16px;
}
.course-empty strong{
  font-family: 'Anek Bangla', sans-serif; font-size: 18px; color: var(--ink); display: block; margin-bottom: 6px;
}
.status{
  grid-column: 1 / -1; text-align: center; padding: 50px 20px;
  color: var(--ink-muted); background: #fff; border: 1.5px dashed var(--paper-line);
  border-radius: var(--radius-lg);
  font-family: 'Anek Bangla', sans-serif;
  font-size: 14.5px;
  font-weight: 400 !important;
  line-height: 1.6;
}
.status strong{
  font-family: 'Anek Bangla', sans-serif; font-size: 15px; font-weight: 500 !important; color: var(--ink-soft); display: block; margin-bottom: 4px;
}
.status-msg{
  font-family: 'Anek Bangla', sans-serif;
  font-size: 14.5px;
  font-weight: 400 !important;
  color: var(--ink-muted);
}
.spinner{
  width: 32px; height: 32px; border-radius: 50%;
  border: 3px solid rgba(37, 99, 235, 0.15); border-top-color: var(--primary);
  animation: spin 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite; margin: 0 auto 12px;
}
@keyframes spin{ to{ transform: rotate(360deg); } }

/* ===== টোস্ট মেসেজ ===== */
.va-toast{
  position: fixed; left: 50%; bottom: 28px;
  transform: translateX(-50%) translateY(16px);
  background: #0F172A; color: #fff;
  padding: 12px 24px; border-radius: 999px;
  font-family: 'Anek Bangla', sans-serif; font-weight: 700; font-size: 15px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.35);
  z-index: 9998; opacity: 0; pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
  max-width: min(90vw, 440px); text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.va-toast.show{ opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }

/* ===== ফুটার (ডার্ক স্লেট) ===== */
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){
  .footer-grid{ grid-template-columns: 1fr; gap: 28px; }
  .page-head{ padding: 28px 0 16px; }
  .level-bar{ gap: 8px; margin-bottom: 24px; }
  .level-btn{ padding: 8px 14px; font-size: 14px; border-radius: 10px; }
  .course-grid{ grid-template-columns: 1fr; gap: 18px; padding-bottom: 45px; }
  .course-card{ transform: none !important; }
  .course-card:hover{ transform: none !important; }
}
@media(max-width: 420px){
  .bba-filter-bar{ flex-direction: column; gap: 10px; }
  .bba-filter-group{ min-width: 100%; }
}

@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-line:rgba(255,255,255,0.08);
  --card:#111827;
  --accent:#F59E0B;
  --shadow: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"] .page-head h1{ color:#F8FAFC; }
[data-theme="dark"] .page-head p{ color:#94A3B8; }

[data-theme="dark"] .level-btn{
  background:#111827;
  border-color:rgba(255,255,255,0.08);
  color:#94A3B8;
  box-shadow:0 4px 12px rgba(0,0,0,0.25);
}
[data-theme="dark"] .level-btn:hover{
  border-color:var(--cat-color, #38BDF8);
  color:#F8FAFC;
  box-shadow:0 8px 20px rgba(0,0,0,0.4);
}
[data-theme="dark"] .level-btn.active{
  background:var(--cat-color, #2563EB);
  border-color:var(--cat-color, #2563EB);
  color:#FFFFFF;
  box-shadow:0 10px 24px rgba(37,99,235,0.35);
}

[data-theme="dark"] .course-search-bar input{
  background:#111827;
  border-color:rgba(255,255,255,0.1);
  color:#F8FAFC;
}
[data-theme="dark"] .course-search-bar input:focus{
  border-color:#38BDF8;
  box-shadow:0 0 0 3px rgba(56,189,248,0.18);
}
[data-theme="dark"] .bba-filter-group--institute label{ color: #7DD3FC; }
[data-theme="dark"] #bbaUniversitySelect,
[data-theme="dark"] .bba-select--institute{
  background-color: transparent;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%237DD3FC" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"/></svg>'), linear-gradient(135deg, rgba(3, 105, 161, 0.24) 0%, rgba(14, 165, 233, 0.14) 100%);
  border-color: rgba(56, 189, 248, 0.35);
  color: #BAE6FD;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
[data-theme="dark"] #bbaUniversitySelect:focus,
[data-theme="dark"] .bba-select--institute:focus{
  border-color: #38BDF8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
}

[data-theme="dark"] .bba-filter-group--year label{ color: #E9D5FF; }
[data-theme="dark"] #bbaYearSelect,
[data-theme="dark"] .bba-select--year{
  background-color: transparent;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23E9D5FF" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"/></svg>'), linear-gradient(135deg, rgba(126, 34, 206, 0.24) 0%, rgba(168, 85, 247, 0.14) 100%);
  border-color: rgba(192, 132, 252, 0.35);
  color: #F3E8FF;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
[data-theme="dark"] #bbaYearSelect:focus,
[data-theme="dark"] .bba-select--year:focus{
  border-color: #C084FC;
  box-shadow: 0 0 0 3px rgba(192, 132, 252, 0.25);
}

[data-theme="dark"] .bba-filter-group select option{
  background: #111827;
  color: #F8FAFC;
}

[data-theme="dark"] .course-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"] .course-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"] .course-top{ border-bottom-color:rgba(255,255,255,0.08); }
[data-theme="dark"] .course-tag{
  color:#34D399;
  background:rgba(16,185,129,0.12);
  border-color:rgba(52,211,153,0.3);
}
[data-theme="dark"] .course-body h3{ color:#F8FAFC; }
[data-theme="dark"] .course-body p{ color:#94A3B8; }
[data-theme="dark"] .course-foot{ border-top-color:rgba(255,255,255,0.08); }
[data-theme="dark"] .price-now{ color:#60A5FA; }
[data-theme="dark"] .price-old{ color:#64748B; }
[data-theme="dark"] .price small{ color:#34D399; }

[data-theme="dark"] .course-empty,
[data-theme="dark"] .status{
  background:#111827;
  border-color:rgba(255,255,255,0.08);
  color:#94A3B8;
}
[data-theme="dark"] .status strong,
[data-theme="dark"] .course-empty strong{
  color:#F8FAFC;
}

[data-theme="dark"] footer{
  background:linear-gradient(180deg,#070B14 0%,#04060B 100%);
  border-top:1px solid rgba(255,255,255,0.06);
}
