/* ============================================================
   Future Teach Institute LMS — Public CSS Design System
   Font: Poppins (headings) + Inter (body)
   ============================================================ */


/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --primary:       #1a3a6b;
  --primary-dark:  #0f2444;
  --primary-light: #2a5298;
  --secondary:     #f59e0b;
  --secondary-dark:#d97706;
  --accent:        #06b6d4;
  --success:       #10b981;
  --danger:        #ef4444;
  --warning:       #f59e0b;
  --info:          #3b82f6;

  --bg:            #f0f4f8;
  --bg-alt:        #e8eef5;
  --surface:       #ffffff;
  --surface-2:     #f8fafc;
  --border:        #dde3ea;
  --border-light:  #eef1f5;

  --text:          #1e293b;
  --text-2:        #475569;
  --text-3:        #94a3b8;
  --text-inv:      #ffffff;

  --sidebar-bg:    #0f172a;
  --sidebar-2:     #1e293b;
  --sidebar-active:#2563eb;

  --radius:        10px;
  --radius-sm:     6px;
  --radius-lg:     16px;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.08);
  --shadow:        0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:     0 8px 32px rgba(0,0,0,.14);

  --font-body:     'Inter', system-ui, sans-serif;
  --font-head:     'Poppins', system-ui, sans-serif;
  --transition:    all .2s ease;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  font-size: .9375rem;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.25;
}

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

img { max-width: 100%; height: auto; }

/* ── Navbar ─────────────────────────────────────────────────── */
.navbar-fti {
  background: var(--primary);
  padding: .75rem 0;
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbar-fti .navbar-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
}
.navbar-fti .navbar-brand img { height: 44px; width: auto; }
.navbar-fti .nav-link {
  color: rgba(255,255,255,.88) !important;
  font-weight: 500;
  font-size: .875rem;
  padding: .4rem .85rem !important;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.navbar-fti .nav-link:hover, .navbar-fti .nav-link.active {
  color: #fff !important;
  background: rgba(255,255,255,.12);
}
.navbar-fti .btn-enroll {
  background: var(--secondary);
  color: var(--primary-dark) !important;
  font-weight: 700;
  border-radius: 20px;
  padding: .4rem 1.2rem !important;
}
.navbar-fti .btn-enroll:hover { background: var(--secondary-dark); }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  color: #fff;
  padding: 90px 0 70px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10zM10 10c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10S0 25.523 0 20s4.477-10 10-10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
}
.hero-content { position: relative; z-index: 1; }
.hero h1 { font-size: 2.8rem; font-weight: 800; color: #fff; margin-bottom: 1rem; }
.hero .hero-sub { font-size: 1.125rem; color: rgba(255,255,255,.85); margin-bottom: 2rem; max-width: 560px; }
.hero .badge-cert {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 20px;
  padding: .3rem .9rem;
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.hero .stats-row { display: flex; gap: 2.5rem; margin-top: 2rem; flex-wrap: wrap; }
.hero .stat-item .stat-num { font-size: 1.75rem; font-weight: 800; color: var(--secondary); }
.hero .stat-item .stat-label { font-size: .78rem; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .05em; }

/* ── Section styles ─────────────────────────────────────────── */
.section-title { font-size: 2rem; font-weight: 700; margin-bottom: .5rem; }
.section-sub   { color: var(--text-2); margin-bottom: 2.5rem; font-size: 1rem; }
.section-pad   { padding: 80px 0; }
.section-alt   { background: var(--bg-alt); }

.divider-gold {
  width: 60px; height: 4px;
  background: linear-gradient(90deg, var(--secondary), var(--secondary-dark));
  border-radius: 2px;
  margin-bottom: 1rem;
}

/* ── Cards ──────────────────────────────────────────────────── */
.card-fti {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  overflow: hidden;
}
.card-fti:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

/* Course card */
.course-card { cursor: pointer; }
.course-card .card-img-wrap {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: var(--bg-alt);
}
.course-card .card-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.course-card:hover .card-img-wrap img { transform: scale(1.05); }
.course-card .card-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--secondary);
  color: var(--primary-dark);
  font-size: .7rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.course-card .card-body { padding: 1.2rem; }
.course-card .course-cat {
  font-size: .75rem;
  font-weight: 600;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .4rem;
}
.course-card h5 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .5rem;
  line-height: 1.35;
}
.course-card .course-meta {
  display: flex;
  gap: 1rem;
  font-size: .78rem;
  color: var(--text-3);
  margin-bottom: .8rem;
}
.course-card .course-fee {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}
.course-card .course-fee .fee-old {
  font-size: .8rem;
  color: var(--text-3);
  text-decoration: line-through;
  margin-left: .4rem;
  font-weight: 400;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn-primary-fti {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: .65rem 1.8rem;
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.btn-primary-fti:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26,58,107,.35);
  color: #fff;
}
.btn-secondary-fti {
  background: var(--secondary);
  color: var(--primary-dark);
  border: none;
  border-radius: 25px;
  padding: .65rem 1.8rem;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  transition: var(--transition);
}
.btn-secondary-fti:hover { background: var(--secondary-dark); transform: translateY(-1px); }

.btn-outline-fti {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 25px;
  padding: .6rem 1.6rem;
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  transition: var(--transition);
}
.btn-outline-fti:hover { background: var(--primary); color: #fff; }

/* ── Features / Why FTI ─────────────────────────────────────── */
.feature-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid var(--border-light);
  transition: var(--transition);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, #e0eaff, #c7d7f7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 1rem;
}

/* ── Testimonials ───────────────────────────────────────────── */
.testimonial-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border-left: 4px solid var(--secondary);
  box-shadow: var(--shadow-sm);
}
.testimonial-card .stars { color: var(--secondary); margin-bottom: .75rem; }
.testimonial-card p { color: var(--text-2); font-style: italic; margin-bottom: 1rem; }
.testimonial-card .t-author { display: flex; align-items: center; gap: .75rem; }
.testimonial-card .t-author img {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.testimonial-card .t-author strong { font-size: .9rem; color: var(--text); display: block; }
.testimonial-card .t-author span  { font-size: .78rem; color: var(--text-3); }

/* ── Enquiry / CTA ──────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 70px 0;
  text-align: center;
}
.cta-section h2 { color: #fff; font-size: 2rem; margin-bottom: 1rem; }
.cta-section p  { color: rgba(255,255,255,.8); font-size: 1.05rem; margin-bottom: 2rem; }

/* ── Footer ─────────────────────────────────────────────────── */
.footer-fti {
  background: var(--primary-dark);
  color: rgba(255,255,255,.75);
  padding: 60px 0 20px;
}
.footer-fti h5 {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--secondary);
  display: inline-block;
}
.footer-fti a { color: rgba(255,255,255,.65); transition: var(--transition); font-size: .875rem; }
.footer-fti a:hover { color: var(--secondary); }
.footer-fti ul { list-style: none; padding: 0; }
.footer-fti ul li { margin-bottom: .5rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  margin-top: 2.5rem;
  text-align: center;
  font-size: .8rem;
  color: rgba(255,255,255,.5);
}
.footer-socials { display: flex; gap: .75rem; margin-top: .75rem; }
.footer-socials a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: .9rem;
}
.footer-socials a:hover { background: var(--secondary); color: var(--primary-dark) !important; }

/* ── Forms ──────────────────────────────────────────────────── */
.form-fti .form-label { font-weight: 600; font-size: .875rem; color: var(--text); margin-bottom: .35rem; }
.form-fti .form-control, .form-fti .form-select {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .6rem .85rem;
  font-size: .9rem;
  transition: var(--transition);
  background: var(--surface);
}
.form-fti .form-control:focus, .form-fti .form-select:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
  outline: none;
}
.form-fti .input-icon { position: relative; }
.form-fti .input-icon .form-control { padding-left: 2.5rem; }
.form-fti .input-icon .icon {
  position: absolute;
  left: .8rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
}

/* ── Auth pages ─────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}
.auth-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-lg);
}
.auth-logo {
  text-align: center;
  margin-bottom: 1.75rem;
}
.auth-logo img { height: 60px; }
.auth-logo h3 {
  font-size: 1.25rem;
  margin-top: .5rem;
  color: var(--primary);
}
.auth-logo p { font-size: .875rem; color: var(--text-3); margin: 0; }

/* ── Admin Layout ───────────────────────────────────────────── */
.admin-layout { display: flex; min-height: 100vh; }

.admin-sidebar {
  width: 260px;
  background: var(--sidebar-bg);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 100;
  transition: width .25s ease;
}
.admin-sidebar.collapsed { width: 68px; }

.sidebar-brand {
  padding: 1.25rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  gap: .75rem;
  min-height: 68px;
}
.sidebar-brand img { width: 36px; height: 36px; border-radius: 8px; flex-shrink: 0; }
.sidebar-brand span {
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  white-space: nowrap;
  overflow: hidden;
}

.sidebar-nav { flex: 1; padding: .75rem 0; }
.sidebar-nav .nav-section {
  padding: .5rem 1rem .25rem;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.3);
  white-space: nowrap;
  overflow: hidden;
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem 1rem;
  color: rgba(255,255,255,.65);
  font-size: .86rem;
  font-weight: 500;
  border-radius: 0;
  transition: var(--transition);
  margin: 1px .5rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  overflow: hidden;
  text-decoration: none;
}
.sidebar-nav a .nav-icon { width: 20px; flex-shrink: 0; font-size: 1.05rem; text-align: center; }
.sidebar-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.sidebar-nav a.active { background: var(--sidebar-active); color: #fff; }
.sidebar-nav .nav-badge {
  margin-left: auto;
  background: var(--secondary);
  color: var(--primary-dark);
  font-size: .65rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 10px;
}

.admin-main {
  flex: 1;
  margin-left: 260px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-left .25s ease;
}

.admin-topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: .75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}

.admin-content { padding: 1.5rem; flex: 1; }
.admin-content .page-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.25rem;
}

/* ── Stats / Metric Cards ───────────────────────────────────── */
.stat-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow); }
.stat-card .stat-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.stat-card .stat-value {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  font-family: var(--font-head);
}
.stat-card .stat-label { font-size: .8rem; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; margin-top: .2rem; }
.stat-card .stat-delta { font-size: .78rem; font-weight: 600; margin-top: .5rem; }
.stat-card .stat-delta.up   { color: var(--success); }
.stat-card .stat-delta.down { color: var(--danger); }

.icon-blue   { background: #dbeafe; color: #1d4ed8; }
.icon-green  { background: #d1fae5; color: #059669; }
.icon-amber  { background: #fef3c7; color: #d97706; }
.icon-red    { background: #fee2e2; color: #dc2626; }
.icon-purple { background: #ede9fe; color: #7c3aed; }
.icon-teal   { background: #ccfbf1; color: #0d9488; }

/* ── Data Tables ────────────────────────────────────────────── */
.table-fti { background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border-light); }
.table-fti table { width: 100%; border-collapse: collapse; }
.table-fti thead th {
  background: var(--surface-2);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-3);
  padding: .875rem 1rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table-fti tbody tr { border-bottom: 1px solid var(--border-light); transition: var(--transition); }
.table-fti tbody tr:last-child { border-bottom: none; }
.table-fti tbody tr:hover { background: var(--surface-2); }
.table-fti tbody td { padding: .875rem 1rem; font-size: .875rem; color: var(--text); vertical-align: middle; }

/* ── Student Sidebar ────────────────────────────────────────── */
.student-layout { display: flex; min-height: 100vh; }
.student-sidebar {
  width: 260px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  position: fixed;
  top: 0; left: 0; bottom: 0;
  overflow-y: auto;
  z-index: 100;
  display: flex;
  flex-direction: column;
}
.student-sidebar .sidebar-brand {
  background: var(--primary);
  border-bottom: none;
}
.student-sidebar .sidebar-nav a { color: var(--text-2); }
.student-sidebar .sidebar-nav a:hover { background: var(--bg-alt); color: var(--primary); }
.student-sidebar .sidebar-nav a.active { background: #dbeafe; color: var(--primary); font-weight: 600; }
.student-sidebar .sidebar-nav .nav-section { color: var(--text-3); }

.student-main { flex: 1; margin-left: 260px; }
.student-topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: .75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}
.student-content { padding: 1.5rem; }

/* ── Course Player ──────────────────────────────────────────── */
.player-layout { display: flex; height: 100vh; overflow: hidden; }
.player-sidebar {
  width: 320px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  flex-shrink: 0;
}
.player-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.player-video-wrap {
  background: #000;
  aspect-ratio: 16/9;
  width: 100%;
  position: relative;
}
.player-video-wrap iframe,
.player-video-wrap video { width: 100%; height: 100%; border: 0; }
.player-lesson-info { padding: 1.25rem 1.5rem; overflow-y: auto; flex: 1; }

.module-accordion .module-head {
  background: var(--surface-2);
  padding: .85rem 1rem;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.module-accordion .lesson-item {
  padding: .7rem 1.25rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: var(--transition);
  font-size: .85rem;
}
.module-accordion .lesson-item:hover { background: var(--bg-alt); }
.module-accordion .lesson-item.active { background: #dbeafe; color: var(--primary); }
.module-accordion .lesson-item.completed { color: var(--success); }
.lesson-icon { width: 28px; height: 28px; border-radius: 50%; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; font-size: .8rem; flex-shrink: 0; }
.lesson-item.completed .lesson-icon { background: #d1fae5; color: var(--success); }
.lesson-item.active .lesson-icon { background: #dbeafe; color: var(--primary); }

/* ── Certificate Preview ────────────────────────────────────── */
.cert-preview {
  background: linear-gradient(135deg, #fff9ee 0%, #fffaf5 100%);
  border: 3px solid var(--secondary);
  border-radius: var(--radius-lg);
  padding: 3rem;
  text-align: center;
  position: relative;
  max-width: 740px;
  margin: 0 auto;
}
.cert-preview::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(245,158,11,.3);
  border-radius: 10px;
  pointer-events: none;
}
.cert-preview .cert-logo { height: 70px; margin-bottom: 1.5rem; }
.cert-preview h1 { font-size: 2.2rem; color: var(--primary); margin-bottom: .25rem; }
.cert-preview .cert-subtitle { color: var(--text-3); text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; }
.cert-preview .cert-student { font-size: 2rem; font-weight: 800; color: var(--primary-dark); margin: 1.5rem 0 .5rem; font-family: 'Georgia', serif; }
.cert-preview .cert-course  { font-size: 1.25rem; color: var(--primary-light); font-weight: 600; margin-bottom: 1rem; }
.cert-preview .cert-meta    { color: var(--text-2); font-size: .9rem; margin-bottom: 2rem; }
.cert-preview .cert-grade   { font-size: 1.5rem; font-weight: 800; color: var(--secondary-dark); }
.cert-preview .cert-number  { font-size: .8rem; color: var(--text-3); margin-top: 1.5rem; }
.cert-preview .cert-qr      { position: absolute; bottom: 1.5rem; right: 1.5rem; }
.cert-preview .cert-sign    { margin-top: 2rem; }
.cert-preview .cert-sign .sign-line { border-top: 1.5px solid var(--text-3); width: 160px; margin: .5rem auto 0; }

/* ── Alerts / Toasts ────────────────────────────────────────── */
.toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999; }
.fti-toast {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--primary);
  padding: 1rem 1.25rem;
  min-width: 280px;
  animation: slideInRight .25s ease;
}
.fti-toast.success { border-color: var(--success); }
.fti-toast.danger  { border-color: var(--danger); }
.fti-toast.warning { border-color: var(--warning); }
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 992px) {
  .admin-sidebar, .student-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open, .student-sidebar.open { transform: translateX(0); }
  .admin-main, .student-main { margin-left: 0; }
  .hero h1 { font-size: 2rem; }
  .player-layout { flex-direction: column; height: auto; }
  .player-sidebar { width: 100%; height: 300px; border-right: none; border-top: 1px solid var(--border); order: 2; }
  .player-main { order: 1; }
}

@media (max-width: 768px) {
  .hero { padding: 60px 0 50px; }
  .hero h1 { font-size: 1.7rem; }
  .section-pad { padding: 50px 0; }
  .auth-card { padding: 2rem 1.25rem; }
  .cert-preview { padding: 2rem 1rem; }
  .cert-preview h1 { font-size: 1.5rem; }
  .cert-preview .cert-student { font-size: 1.5rem; }
}

/* ── Utilities ──────────────────────────────────────────────── */
.text-gold { color: var(--secondary); }
.text-primary-fti { color: var(--primary); }
.bg-primary-fti { background: var(--primary); }
.bg-gold { background: var(--secondary); }
.gap-2 { gap: .5rem; }
.fw-700 { font-weight: 700; }
.cursor-pointer { cursor: pointer; }

.shimmer {
  background: linear-gradient(90deg, var(--bg-alt) 25%, var(--border-light) 50%, var(--bg-alt) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* ── WhatsApp Float ─────────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 998;
  background: #25d366;
  color: #fff;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 16px rgba(37,211,102,.4);
  transition: var(--transition);
}
.whatsapp-float:hover { transform: scale(1.1); color: #fff; }

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* Dark mode */
@media (prefers-color-scheme: dark) {
  .dark-mode {
    --bg: #0f172a; --bg-alt: #1e293b; --surface: #1e293b; --surface-2: #263548;
    --border: #334155; --border-light: #2d3f55;
    --text: #e2e8f0; --text-2: #94a3b8; --text-3: #64748b;
  }
}
