/* ══════════════════════════════════════════════
   লক্ষ্য GPA 5 — App UI Design System
   Palette: Clean white + Teal accent + Deep Navy
   ══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@300;400;500;600;700&family=Nunito:wght@400;600;700;800;900&display=swap');

:root {
  --primary:        #0EA5E9;
  --primary-dark:   #0284C7;
  --primary-light:  #E0F2FE;
  --accent:         #10B981;
  --accent-light:   #D1FAE5;
  --danger:         #EF4444;
  --danger-light:   #FEE2E2;
  --warning:        #F59E0B;
  --warning-light:  #FEF3C7;
  --navy:           #0F172A;
  --navy-mid:       #1E293B;
  --slate:          #475569;
  --muted:          #94A3B8;
  --border:         #E2E8F0;
  --bg:             #F8FAFC;
  --white:          #FFFFFF;
  --card-shadow:    0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(14,165,233,.08);
  --card-hover:     0 8px 32px rgba(14,165,233,.16);
  --radius:         14px;
  --radius-sm:      8px;
  --radius-lg:      20px;
  --font-body:      'Hind Siliguri', sans-serif;
  --font-display:   'Nunito', sans-serif;
  --transition:     all .22s cubic-bezier(.4,0,.2,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--navy);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ─────────────────────────── */
h1,h2,h3,h4,h5 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.25;
  color: var(--navy);
}
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: 1.2rem; }
p  { color: var(--slate); }

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

/* ── Layout ─────────────────────────────── */
.container     { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-sm  { max-width: 520px;  margin: 0 auto; padding: 0 20px; }

/* ── Navbar ─────────────────────────────── */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 999;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.navbar-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  height: 64px; gap: 16px;
}
.navbar-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 900; font-size: 1.3rem; color: var(--navy);
}
.navbar-brand .brand-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.1rem; font-weight: 900;
}
.navbar-nav   { display: flex; align-items: center; gap: 6px; list-style: none; }
.navbar-nav a {
  padding: 7px 14px; border-radius: var(--radius-sm);
  font-weight: 600; color: var(--slate); font-size: .9rem;
  transition: var(--transition);
}
.navbar-nav a:hover, .navbar-nav a.active {
  background: var(--primary-light); color: var(--primary-dark);
}
.nav-cta {
  background: var(--primary) !important;
  color: var(--white) !important;
  border-radius: 50px !important;
  padding: 8px 20px !important;
  font-weight: 700 !important;
}
.nav-cta:hover { background: var(--primary-dark) !important; }

/* ── Mobile Menu ────────────────────────── */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 5px; }
.hamburger span { width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: var(--transition); }
.mobile-menu {
  display: none; position: fixed; inset: 0; background: var(--white);
  z-index: 998; padding: 80px 24px 24px; flex-direction: column; gap: 8px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 14px 16px; border-radius: var(--radius-sm);
  font-weight: 600; color: var(--navy); border-bottom: 1px solid var(--border);
}

/* ── Hero ───────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #EFF6FF 0%, #F0FDF4 50%, #F0F9FF 100%);
  padding: 80px 0 60px;
  position: relative; overflow: hidden;
}
.hero::before {
  content:''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 40%, rgba(14,165,233,.12) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(16,185,129,.10) 0%, transparent 50%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary-light); color: var(--primary-dark);
  border-radius: 50px; padding: 6px 16px;
  font-size: .8rem; font-weight: 700; margin-bottom: 16px;
}
.hero-badge::before { content:'🎯'; }
.hero h1 { margin-bottom: 16px; }
.hero-subtitle { font-size: 1.1rem; margin-bottom: 32px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 32px; margin-top: 40px;
}
.hero-stat strong {
  font-size: 1.6rem; font-family: var(--font-display);
  font-weight: 900; color: var(--primary); display: block;
}
.hero-stat span { font-size: .82rem; color: var(--slate); }
.hero-img-wrap {
  position: relative; display: flex; justify-content: center;
}
.hero-mockup {
  width: 100%; max-width: 420px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-hover);
  overflow: hidden;
  border: 1px solid var(--border);
}
.hero-mockup-bar {
  height: 44px; background: var(--navy);
  display: flex; align-items: center; gap: 6px; padding: 0 16px;
}
.hero-mockup-bar span {
  width: 10px; height: 10px; border-radius: 50%;
}
.hero-mockup-content { padding: 20px; }

/* ── Buttons ────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 50px;
  font-weight: 700; font-size: .92rem; cursor: pointer;
  transition: var(--transition); border: none; text-decoration: none;
  font-family: var(--font-body);
}
.btn-primary   { background: var(--primary); color: var(--white); }
.btn-primary:hover   { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(14,165,233,.35); }
.btn-success   { background: var(--accent); color: var(--white); }
.btn-success:hover   { background: #059669; transform: translateY(-1px); }
.btn-outline   { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover   { background: var(--primary); color: var(--white); }
.btn-danger    { background: var(--danger); color: var(--white); }
.btn-danger:hover    { background: #DC2626; }
.btn-white     { background: var(--white); color: var(--navy); }
.btn-white:hover     { background: var(--primary-light); }
.btn-sm        { padding: 8px 16px; font-size: .82rem; }
.btn-lg        { padding: 16px 36px; font-size: 1.05rem; }
.btn-block     { width: 100%; justify-content: center; border-radius: var(--radius-sm); }
.btn:disabled  { opacity: .55; cursor: not-allowed; transform: none !important; }

/* ── Cards ──────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
  transition: var(--transition);
  overflow: hidden;
}
.card:hover { box-shadow: var(--card-hover); transform: translateY(-2px); }
.card-body  { padding: 24px; }
.card-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.card-header h3 { font-size: 1rem; margin: 0; }
.card-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

/* ── Course Card ────────────────────────── */
.course-card { cursor: pointer; }
.course-card .thumb {
  height: 160px; background: linear-gradient(135deg, var(--primary), var(--accent));
  position: relative; display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.course-card .thumb .badge-level {
  position: absolute; top: 12px; right: 12px;
  background: rgba(255,255,255,.25); backdrop-filter: blur(8px);
  color: white; border-radius: 20px; padding: 4px 12px; font-size: .75rem; font-weight: 700;
}
.course-card .card-body { padding: 18px; }
.course-card .price {
  font-size: 1.4rem; font-weight: 900; color: var(--primary);
  font-family: var(--font-display);
}
.course-card .price-old {
  font-size: .85rem; color: var(--muted); text-decoration: line-through;
}
.course-card .enroll-btn { margin-top: 14px; }

/* ── Courses Grid ───────────────────────── */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* ── Forms ──────────────────────────────── */
.form-group  { margin-bottom: 18px; }
.form-label  { display: block; font-weight: 600; margin-bottom: 7px; font-size: .88rem; color: var(--navy); }
.form-control {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--white); color: var(--navy);
  font-size: .93rem; font-family: var(--font-body);
  transition: var(--transition); outline: none;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(14,165,233,.15); }
.form-control::placeholder { color: var(--muted); }
.form-control.is-invalid   { border-color: var(--danger); }
.form-hint  { font-size: .78rem; color: var(--muted); margin-top: 5px; }
.form-error { font-size: .78rem; color: var(--danger); margin-top: 5px; font-weight: 600; }

/* Payment Method Selector */
.payment-methods { display: flex; gap: 12px; flex-wrap: wrap; }
.payment-method  {
  flex: 1; min-width: 90px;
  border: 2px solid var(--border); border-radius: var(--radius-sm);
  padding: 14px 10px; text-align: center; cursor: pointer;
  transition: var(--transition); user-select: none;
}
.payment-method:hover   { border-color: var(--primary-light); }
.payment-method.active  { border-color: var(--primary); background: var(--primary-light); }
.payment-method img     { width: 42px; height: 42px; object-fit: contain; margin-bottom: 6px; }
.payment-method span    { display: block; font-size: .78rem; font-weight: 700; }

/* ── Auth Page ──────────────────────────── */
.auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #EFF6FF, #F0FDF4);
  display: flex; align-items: center; justify-content: center;
  padding: 40px 20px;
}
.auth-card {
  width: 100%; max-width: 480px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(14,165,233,.15);
  overflow: hidden;
}
.auth-header {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  padding: 32px 32px 28px; text-align: center; color: white;
}
.auth-header h2 { color: white; margin-bottom: 6px; }
.auth-header p  { color: rgba(255,255,255,.8); font-size: .9rem; }
.auth-body      { padding: 32px; }

/* Tab switcher in auth */
.auth-tabs {
  display: flex; gap: 4px;
  background: var(--bg); border-radius: var(--radius-sm);
  padding: 4px; margin-bottom: 24px;
}
.auth-tab {
  flex: 1; text-align: center; padding: 10px;
  border-radius: 6px; cursor: pointer;
  font-weight: 700; font-size: .88rem; color: var(--slate);
  transition: var(--transition); border: none; background: transparent;
  font-family: var(--font-body);
}
.auth-tab.active { background: var(--white); color: var(--primary); box-shadow: 0 2px 6px rgba(0,0,0,.08); }

/* ── Dashboard Layout ───────────────────── */
.dash-layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 250px; flex-shrink: 0;
  background: var(--navy);
  padding: 0;
  position: fixed; top: 0; left: 0; height: 100vh;
  overflow-y: auto; z-index: 100;
  transition: var(--transition);
}
.sidebar-logo {
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 900; font-size: 1.1rem; color: white;
}
.sidebar-logo .brand-icon {
  width: 36px; height: 36px; border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center; font-size: 1rem; font-weight: 900;
}
.sidebar-nav   { padding: 16px 12px; }
.sidebar-label {
  font-size: .7rem; font-weight: 700; color: rgba(255,255,255,.35);
  letter-spacing: .08em; text-transform: uppercase;
  padding: 14px 10px 6px; margin-top: 6px;
}
.sidebar-link {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px; border-radius: var(--radius-sm);
  color: rgba(255,255,255,.65); font-weight: 600; font-size: .88rem;
  transition: var(--transition); cursor: pointer; text-decoration: none; margin-bottom: 2px;
}
.sidebar-link:hover  { background: rgba(255,255,255,.08); color: white; }
.sidebar-link.active { background: var(--primary); color: white; }
.sidebar-link i { width: 18px; text-align: center; font-size: .95rem; }
.sidebar-link .badge-count {
  margin-left: auto; background: var(--danger); color: white;
  border-radius: 50px; padding: 2px 8px; font-size: .7rem; font-weight: 700;
}
.dash-content {
  margin-left: 250px; flex: 1;
  min-height: 100vh; padding: 24px;
}
.dash-topbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; background: var(--white);
  padding: 14px 24px; border-radius: var(--radius);
  box-shadow: var(--card-shadow); border: 1px solid var(--border);
}
.dash-topbar h2 { font-size: 1.1rem; margin: 0; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.avatar-circle {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 800; font-size: .85rem;
  cursor: pointer;
}
.notification-btn {
  position: relative; cursor: pointer;
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--bg); border: 1px solid var(--border);
  font-size: 1rem; color: var(--slate);
}
.notification-btn .dot {
  position: absolute; top: 5px; right: 5px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--danger); border: 2px solid var(--white);
}

/* ── Stats Cards ────────────────────────── */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px; margin-bottom: 24px;
}
.stat-card {
  background: var(--white); border-radius: var(--radius);
  padding: 20px; border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
  display: flex; align-items: center; gap: 16px;
}
.stat-icon {
  width: 50px; height: 50px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0;
}
.stat-icon.blue   { background: var(--primary-light); }
.stat-icon.green  { background: var(--accent-light); }
.stat-icon.yellow { background: var(--warning-light); }
.stat-icon.red    { background: var(--danger-light); }
.stat-value { font-size: 1.6rem; font-weight: 900; font-family: var(--font-display); color: var(--navy); }
.stat-label { font-size: .78rem; color: var(--muted); font-weight: 600; }

/* ── Tables ─────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
table th {
  background: var(--bg); padding: 12px 16px;
  text-align: left; font-size: .78rem; font-weight: 700;
  color: var(--slate); text-transform: uppercase; letter-spacing: .05em;
  border-bottom: 2px solid var(--border);
}
table td {
  padding: 14px 16px; border-bottom: 1px solid var(--border);
  font-size: .88rem; color: var(--navy);
}
table tr:last-child td { border-bottom: none; }
table tr:hover td { background: var(--bg); }

/* ── Status Badges ──────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; border-radius: 50px;
  font-size: .75rem; font-weight: 700;
}
.badge-pending  { background: var(--warning-light); color: #92400E; }
.badge-approved { background: var(--accent-light);  color: #065F46; }
.badge-rejected { background: var(--danger-light);  color: #991B1B; }
.badge-primary  { background: var(--primary-light); color: var(--primary-dark); }
.badge::before  { content:''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ── Progress Bar ───────────────────────── */
.progress-wrap  { background: var(--border); border-radius: 50px; height: 8px; overflow: hidden; }
.progress-fill  { height: 100%; border-radius: 50px; background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width .5s ease; }

/* ── Streak Counter ─────────────────────── */
.streak-badge {
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #FEF3C7, #FDE68A);
  border: 1.5px solid #F59E0B;
  border-radius: 50px; padding: 8px 18px;
  font-weight: 800; color: #92400E; font-size: .9rem;
}

/* ── Alert / Toast ──────────────────────── */
.alert {
  padding: 14px 18px; border-radius: var(--radius-sm);
  margin-bottom: 16px; font-weight: 600; font-size: .88rem;
  display: flex; align-items: center; gap: 10px;
}
.alert-success { background: var(--accent-light);  color: #065F46; border-left: 4px solid var(--accent); }
.alert-danger  { background: var(--danger-light);  color: #991B1B; border-left: 4px solid var(--danger); }
.alert-info    { background: var(--primary-light); color: var(--primary-dark); border-left: 4px solid var(--primary); }
.alert-warning { background: var(--warning-light); color: #92400E; border-left: 4px solid var(--warning); }

/* ── Section ────────────────────────────── */
.section       { padding: 64px 0; }
.section-title { text-align: center; margin-bottom: 48px; }
.section-title p { max-width: 540px; margin: 10px auto 0; }

/* ── Leaderboard ────────────────────────── */
.leaderboard-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.leaderboard-rank {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: .85rem;
}
.rank-1 { background: #FEF3C7; color: #92400E; }
.rank-2 { background: #F1F5F9; color: var(--navy); }
.rank-3 { background: #FEE2E2; color: #991B1B; }
.rank-n { background: var(--bg); color: var(--muted); }

/* ── Modal ──────────────────────────────── */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.45); backdrop-filter: blur(4px);
  z-index: 9000; align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 32px; max-width: 500px; width: 90%;
  box-shadow: 0 24px 64px rgba(0,0,0,.2);
  animation: modalIn .3s ease;
}
@keyframes modalIn {
  from { opacity:0; transform: scale(.92) translateY(10px); }
  to   { opacity:1; transform: scale(1) translateY(0); }
}
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.modal-close  { cursor: pointer; font-size: 1.2rem; color: var(--muted); border: none; background: none; transition: var(--transition); }
.modal-close:hover { color: var(--danger); }

/* ── Admin Layout ───────────────────────── */
.admin-sidebar .sidebar-logo  { background: linear-gradient(135deg, var(--primary-dark), var(--navy)); }

/* ── Empty State ────────────────────────── */
.empty-state { text-align: center; padding: 48px 20px; }
.empty-state .icon { font-size: 3.5rem; margin-bottom: 16px; }
.empty-state h3    { margin-bottom: 10px; }

/* ── Loading Spinner ────────────────────── */
.spinner {
  width: 20px; height: 20px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.3);
  border-top-color: white;
  animation: spin .7s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Footer ─────────────────────────────── */
.footer {
  background: var(--navy); color: rgba(255,255,255,.65);
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
.footer h4 { color: white; font-size: .95rem; margin-bottom: 14px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 8px; }
.footer ul a  { color: rgba(255,255,255,.55); font-size: .85rem; transition: var(--transition); }
.footer ul a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px; display: flex; align-items: center; justify-content: space-between;
  font-size: .82rem;
}

/* ── Responsive ─────────────────────────── */
@media (max-width: 1024px) {
  .sidebar      { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .dash-content { margin-left: 0; }
  .footer-grid  { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .hero-inner   { grid-template-columns: 1fr; }
  .hero-img-wrap{ display: none; }
  .hero-stats   { gap: 20px; flex-wrap: wrap; }
  .navbar-nav   { display: none; }
  .hamburger    { display: flex; }
  .stats-grid   { grid-template-columns: 1fr 1fr; }
  .footer-grid  { grid-template-columns: 1fr; }
  .footer-bottom{ flex-direction: column; gap: 8px; text-align: center; }
}
@media (max-width: 480px) {
  .stats-grid   { grid-template-columns: 1fr; }
  .courses-grid { grid-template-columns: 1fr; }
}

/* ── Utility ────────────────────────────── */
.mt-0{margin-top:0}.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}.mt-4{margin-top:32px}
.mb-0{margin-bottom:0}.mb-1{margin-bottom:8px}.mb-2{margin-bottom:16px}.mb-3{margin-bottom:24px}
.text-center{text-align:center}.text-right{text-align:right}
.text-primary{color:var(--primary)}.text-success{color:var(--accent)}.text-danger{color:var(--danger)}
.text-muted{color:var(--muted)}.text-sm{font-size:.82rem}.text-xs{font-size:.75rem}
.fw-bold{font-weight:700}.fw-black{font-weight:900}
.d-flex{display:flex}.align-center{align-items:center}.justify-between{justify-content:space-between}
.gap-2{gap:8px}.gap-3{gap:16px}.gap-4{gap:24px}
.w-100{width:100%}.hidden{display:none!important}
