/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #0057FF;
  --primary-dark: #003FCC;
  --primary-light: #E8EFFF;
  --accent: #FF6B00;
  --accent-light: #FFF3EB;
  --text: #0A0A1A;
  --text-muted: #555577;
  --bg: #FFFFFF;
  --bg-soft: #F7F8FF;
  --bg-mid: #EEF1FF;
  --border: #D8DCFF;
  --card-shadow: 0 4px 24px rgba(0,87,255,.10);
  --card-shadow-hover: 0 12px 48px rgba(0,87,255,.18);
  --radius: 16px;
  --radius-sm: 10px;
  font-family: Arial, Helvetica, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

.highlight {
  color: var(--primary);
  position: relative;
}

/* ===== NAV ===== */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
#navbar.scrolled { box-shadow: 0 4px 24px rgba(0,87,255,.10); }

.nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; gap: 32px;
  padding: 0 32px; height: 68px;
}

.logo {
  font-size: 22px; font-weight: 900; letter-spacing: -1px; color: var(--text);
}
.logo span { color: var(--primary); }

.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { font-size: 15px; font-weight: 600; color: var(--text-muted); transition: color .2s; }
.nav-links a:hover { color: var(--primary); }

.nav-cta {
  background: var(--primary); color: #fff !important;
  padding: 10px 22px; border-radius: 8px;
  font-size: 14px; font-weight: 700; transition: background .2s, transform .2s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--primary-dark); transform: translateY(-1px); }

.hamburger { display: none; background: none; border: none; font-size: 22px; cursor: pointer; }

.mobile-menu {
  display: none; flex-direction: column; gap: 0;
  background: #fff; border-top: 1px solid var(--border);
  padding: 16px 32px 24px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 12px 0; border-bottom: 1px solid var(--bg-soft); font-weight: 600; color: var(--text); }
.mobile-menu .nav-cta { margin-top: 12px; text-align: center; border: none; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  padding: 120px 40px 80px;
  display: flex; align-items: center; justify-content: center; gap: 60px;
  max-width: 1280px; margin: 0 auto;
  position: relative; overflow: hidden;
}

.hero-bg-grid {
  position: fixed; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(0,87,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,87,255,.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero-content { flex: 1; min-width: 300px; max-width: 580px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary-light); color: var(--primary);
  border: 1px solid var(--border);
  padding: 8px 18px; border-radius: 100px;
  font-size: 13px; font-weight: 700;
  margin-bottom: 28px;
  animation: fadeUp .6s ease both;
}

.hero h1 {
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 900; line-height: 1.08; letter-spacing: -2px;
  margin-bottom: 24px;
  animation: fadeUp .6s .1s ease both;
}

.hero-sub {
  font-size: 17px; color: var(--text-muted); line-height: 1.75;
  max-width: 480px; margin-bottom: 36px;
  animation: fadeUp .6s .2s ease both;
}

.hero-btns {
  display: flex; gap: 16px; flex-wrap: wrap;
  margin-bottom: 48px;
  animation: fadeUp .6s .3s ease both;
}

.btn-primary {
  background: var(--primary); color: #fff;
  padding: 14px 28px; border-radius: var(--radius-sm);
  font-weight: 800; font-size: 15px; font-family: Arial;
  transition: background .2s, transform .2s, box-shadow .2s;
  display: inline-block;
}
.btn-primary:hover {
  background: var(--primary-dark); transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,87,255,.3);
}

.btn-ghost {
  background: transparent; color: var(--text);
  padding: 14px 28px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 15px;
  border: 2px solid var(--border);
  transition: border-color .2s, color .2s, transform .2s;
  display: inline-block;
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }

.hero-stats {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  animation: fadeUp .6s .4s ease both;
}
.stat { text-align: center; }
.stat span { display: block; font-size: 28px; font-weight: 900; color: var(--primary); letter-spacing: -1px; }
.stat small { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.stat-divider { width: 1px; height: 36px; background: var(--border); }

/* Hero Visual */
.hero-visual {
  flex: 1; max-width: 460px;
  position: relative;
  animation: fadeUp .7s .2s ease both;
}

.code-card {
  background: #0A0A1A;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,.2);
}
.code-header {
  background: #1a1a2e; padding: 14px 18px;
  display: flex; align-items: center; gap: 6px;
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #28c840; }

.code-body {
  padding: 24px; font-size: 14px; line-height: 1.9;
  color: #e0e0e0; font-family: 'Courier New', monospace;
  overflow-x: auto;
}
.code-body .kw { color: #569cd6; }
.code-body .str { color: #ce9178; }
.code-body .cm { color: #6a9955; }

.floating-chips {
  position: absolute;
  width: 100%; height: 100%;
  top: 0; left: 0; pointer-events: none;
}

.chip {
  position: absolute;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 13px; font-weight: 700;
  box-shadow: var(--card-shadow);
  animation: float 4s ease-in-out infinite;
}
.chip1 { top: -20px; right: 20px; animation-delay: 0s; }
.chip2 { top: 60px; right: -30px; animation-delay: .5s; }
.chip3 { bottom: 100px; right: -40px; animation-delay: 1s; }
.chip4 { bottom: 40px; left: -20px; animation-delay: 1.5s; }
.chip5 { top: 130px; left: -50px; animation-delay: 2s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ===== COUNTRIES BANNER ===== */
.countries-banner {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  overflow: hidden;
  white-space: nowrap;
}

.countries-banner span {
  display: inline-block; margin: 0 24px;
  font-size: 14px; font-weight: 700; color: var(--text-muted);
  animation: scrollLeft 25s linear infinite;
}

@keyframes scrollLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== SECTIONS ===== */
.section-label {
  font-size: 12px; font-weight: 800; letter-spacing: 3px;
  text-transform: uppercase; color: var(--primary);
  margin-bottom: 12px;
}

section { padding: 100px 40px; }

section h2 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 900; letter-spacing: -1.5px;
  margin-bottom: 20px; line-height: 1.1;
}

.section-sub {
  font-size: 17px; color: var(--text-muted);
  max-width: 560px; margin-bottom: 56px; line-height: 1.75;
}

/* ===== WHY SECTION ===== */
.why-section { background: var(--bg-soft); text-align: center; }
.why-section h2 { margin: 0 auto 20px; }
.why-section .section-sub { margin: 0 auto 56px; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px; max-width: 1200px; margin: 0 auto;
}

.why-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px 28px;
  text-align: left;
  transition: box-shadow .3s, transform .3s;
}
.why-card:hover { box-shadow: var(--card-shadow-hover); transform: translateY(-4px); }

.why-icon { font-size: 36px; margin-bottom: 16px; }
.why-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.why-card p { font-size: 15px; color: var(--text-muted); line-height: 1.7; }

/* ===== COURSES ===== */
.courses-section { max-width: 1280px; margin: 0 auto; }

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.course-card {
  border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 36px 28px; background: #fff; position: relative;
  transition: box-shadow .3s, transform .3s;
}
.course-card:hover { box-shadow: var(--card-shadow-hover); transform: translateY(-4px); }
.course-card.featured {
  border-color: var(--primary);
  background: var(--primary-light);
}

.course-tag {
  position: absolute; top: -14px; left: 24px;
  background: var(--primary); color: #fff;
  font-size: 11px; font-weight: 800; letter-spacing: 1px;
  padding: 5px 14px; border-radius: 100px;
}

.course-icon { font-size: 40px; margin-bottom: 16px; }
.course-card h3 { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.course-card > p { font-size: 15px; color: var(--text-muted); margin-bottom: 20px; line-height: 1.7; }
.course-card ul { list-style: none; margin-bottom: 28px; }
.course-card ul li { font-size: 14px; padding: 5px 0; color: var(--text-muted); }

.course-btn {
  display: inline-block;
  background: var(--primary); color: #fff;
  padding: 12px 24px; border-radius: 8px;
  font-weight: 700; font-size: 14px;
  transition: background .2s, transform .2s;
}
.course-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* ===== PROJECTS ===== */
.projects-section { background: var(--bg-soft); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 34px; max-width: 1400px;
}

.project-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: box-shadow .3s, transform .3s;
}
.project-card:hover { box-shadow: var(--card-shadow-hover); transform: translateY(-4px); }

.project-thumb {
  height: 140px; display: flex; align-items: center; justify-content: center;
}
.project-thumb-icon { font-size: 48px; }

.project-info { padding: 24px; }
.project-tag {
  display: inline-block;
  background: var(--primary-light); color: var(--primary);
  font-size: 11px; font-weight: 800; letter-spacing: 1px;
  padding: 4px 12px; border-radius: 100px; margin-bottom: 10px;
}
.project-info h4 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.project-info p { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; line-height: 1.65; }

.project-author {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--text-muted); font-weight: 600;
}

.author-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--primary); color: #fff;
  font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ===== TESTIMONIALS ===== */
.testimonials-section { max-width: 1280px; margin: 0 auto; text-align: center; }
.testimonials-section h2 { margin: 0 auto 52px; }

.testimonials-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 28px; text-align: left;
  transition: box-shadow .3s;
}
.testimonial-card:hover { box-shadow: var(--card-shadow); }

.stars { color: #FFB800; font-size: 18px; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial-card p { font-size: 15px; color: var(--text-muted); line-height: 1.75; margin-bottom: 24px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-author div { display: flex; flex-direction: column; }
.testimonial-author strong { font-size: 15px; }
.testimonial-author small { font-size: 12px; color: var(--text-muted); }

/* ===== PRICING ===== */
.enroll-section { background: var(--bg-soft); text-align: center; }
.enroll-section h2 { margin: 0 auto 16px; }
.enroll-section .section-sub { margin: 0 auto 52px; }

.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px; max-width: 960px; margin: 0 auto;
}

.pricing-card {
  background: #fff; border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 40px 32px;
  text-align: left; position: relative;
  transition: box-shadow .3s, transform .3s;
}
.pricing-card:hover { box-shadow: var(--card-shadow-hover); transform: translateY(-4px); }
.pricing-card.popular { border-color: var(--primary); }

.popular-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff;
  font-size: 11px; font-weight: 800; padding: 5px 16px; border-radius: 100px; white-space: nowrap;
}

.plan-name { font-size: 14px; font-weight: 800; color: var(--text-muted); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px; }
.plan-price { font-size: 44px; font-weight: 900; color: var(--text); letter-spacing: -2px; margin-bottom: 28px; }
.plan-price span { font-size: 18px; color: var(--text-muted); font-weight: 600; letter-spacing: 0; }
.pricing-card ul { list-style: none; margin-bottom: 32px; }
.pricing-card ul li { padding: 8px 0; border-bottom: 1px solid var(--bg-mid); font-size: 15px; color: var(--text-muted); }
.pricing-card ul li:last-child { border: none; }
.pricing-card .btn-primary { width: 100%; text-align: center; }

/* ===== CONTACT ===== */
.contact-section { background: var(--bg); }
.contact-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start;
}
.contact-text .section-label { margin-bottom: 12px; }
.contact-text h2 { margin-bottom: 20px; }
.contact-text > p { font-size: 16px; color: var(--text-muted); line-height: 1.75; margin-bottom: 32px; }

.contact-details { display: flex; flex-direction: column; gap: 12px; }
.contact-details div { font-size: 15px; color: var(--text-muted); font-weight: 600; }

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 14px 18px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-family: Arial;
  font-size: 15px; color: var(--text); background: var(--bg-soft);
  transition: border-color .2s;
  width: 100%;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { outline: none; border-color: var(--primary); background: #fff; }
.contact-form textarea { resize: vertical; }
.contact-form .btn-primary { font-size: 16px; padding: 16px; cursor: pointer; border: none; }
.form-success { color: #16a34a; font-weight: 700; font-size: 15px; padding: 12px; background: #f0fdf4; border-radius: 8px; }

/* ===== FOOTER ===== */
footer {
  background: #0A0A1A; color: #fff; padding: 64px 40px 32px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 2fr; gap: 64px; margin-bottom: 48px;
}
.footer-brand .logo { color: #fff; font-size: 24px; margin-bottom: 16px; display: block; }
.footer-brand p { color: rgba(255,255,255,.5); font-size: 15px; line-height: 1.75; }

.footer-links {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.footer-links div { display: flex; flex-direction: column; gap: 10px; }
.footer-links strong { font-size: 13px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 4px; }
.footer-links a { font-size: 15px; color: rgba(255,255,255,.65); transition: color .2s; }
.footer-links a:hover { color: #fff; }

.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: rgba(255,255,255,.4);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== TUTOR PAGE ===== */
.tutor-hero {
  padding: 140px 40px 80px;
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: center;
}

.tutor-photo-wrap {
  position: relative;
}
.tutor-photo {
  width: 100%; aspect-ratio: 1;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary-light), var(--bg-mid));
  display: flex; align-items: center; justify-content: center;
  font-size: 120px; border: 3px solid var(--border);
}
.tutor-badge {
  position: absolute; bottom: -16px; right: -16px;
  background: var(--primary); color: #fff;
  padding: 16px 20px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 700; line-height: 1.4;
  box-shadow: var(--card-shadow);
}

.tutor-info .section-label { margin-bottom: 8px; }
.tutor-info h1 { font-size: clamp(32px, 4vw, 48px); font-weight: 900; letter-spacing: -1.5px; margin-bottom: 8px; }
.tutor-role { font-size: 18px; color: var(--primary); font-weight: 700; margin-bottom: 20px; }
.tutor-bio { font-size: 16px; color: var(--text-muted); line-height: 1.8; margin-bottom: 28px; }

.tutor-skills-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.skill-chip {
  background: var(--primary-light); color: var(--primary);
  padding: 8px 16px; border-radius: 100px;
  font-size: 13px; font-weight: 700; border: 1px solid var(--border);
}

.tutor-socials { display: flex; gap: 12px; }
.social-btn {
  padding: 10px 20px; border: 1.5px solid var(--border);
  border-radius: 8px; font-size: 14px; font-weight: 700;
  transition: all .2s; display: inline-flex; align-items: center; gap: 6px;
}
.social-btn:hover { border-color: var(--primary); color: var(--primary); }

.tutor-stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  max-width: 800px; margin: 0 auto 80px;
}
.tutor-stat-card {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; text-align: center;
}
.tutor-stat-card span { display: block; font-size: 36px; font-weight: 900; color: var(--primary); letter-spacing: -1px; }
.tutor-stat-card small { font-size: 13px; color: var(--text-muted); font-weight: 600; }

/* ===== BLOG PAGE ===== */
.blog-hero {
  padding: 140px 40px 60px;
  text-align: center;
  max-width: 700px; margin: 0 auto;
}
.blog-hero h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 900; letter-spacing: -2px; margin-bottom: 16px; }
.blog-hero p { font-size: 17px; color: var(--text-muted); }

.blog-filters {
  display: flex; gap: 10px; flex-wrap: wrap;
  justify-content: center; padding: 0 40px 48px;
}
.filter-btn {
  padding: 8px 20px; border-radius: 100px;
  font-size: 13px; font-weight: 700;
  border: 1.5px solid var(--border); cursor: pointer;
  background: #fff; color: var(--text-muted);
  transition: all .2s; font-family: Arial;
}
.filter-btn.active, .filter-btn:hover {
  background: var(--primary); color: #fff; border-color: var(--primary);
}

.blog-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px; max-width: 1200px; margin: 0 auto; padding: 0 40px 80px;
}

.blog-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: box-shadow .3s, transform .3s;
  cursor: pointer;
}
.blog-card:hover { box-shadow: var(--card-shadow-hover); transform: translateY(-4px); }

.blog-thumb {
  height: 180px; display: flex; align-items: center; justify-content: center;
  font-size: 56px;
}
.blog-body { padding: 24px; }
.blog-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.blog-cat {
  background: var(--primary-light); color: var(--primary);
  font-size: 11px; font-weight: 800; padding: 4px 12px; border-radius: 100px;
}
.blog-date { font-size: 12px; color: var(--text-muted); }
.blog-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 10px; line-height: 1.35; }
.blog-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; }
.blog-read { font-size: 14px; font-weight: 700; color: var(--primary); }

/* ===== ADMIN PAGE ===== */
.admin-login {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: #0A0A1A; padding: 40px;
}
.login-box {
  background: #fff; border-radius: var(--radius);
  padding: 48px; width: 100%; max-width: 440px;
  box-shadow: 0 32px 96px rgba(0,0,0,.3);
}
.login-box .logo { display: block; margin-bottom: 8px; }
.login-box h2 { font-size: 24px; font-weight: 900; margin-bottom: 8px; }
.login-box p { color: var(--text-muted); font-size: 14px; margin-bottom: 32px; }
.login-box input {
  width: 100%; padding: 14px 18px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: Arial; font-size: 15px; margin-bottom: 16px;
  transition: border-color .2s;
}
.login-box input:focus { outline: none; border-color: var(--primary); }
.login-box button {
  width: 100%; padding: 15px; background: var(--primary);
  color: #fff; border: none; border-radius: var(--radius-sm);
  font-family: Arial; font-size: 16px; font-weight: 700; cursor: pointer;
  transition: background .2s;
}
.login-box button:hover { background: var(--primary-dark); }
.login-error { color: #dc2626; font-size: 14px; font-weight: 600; margin-top: 12px; display: none; }

.admin-panel { display: none; min-height: 100vh; background: var(--bg-soft); }
.admin-header {
  background: #0A0A1A; color: #fff; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between; height: 64px;
  position: sticky; top: 0; z-index: 100;
}
.admin-header .logo { color: #fff; }
.admin-header-right { display: flex; align-items: center; gap: 16px; }
.admin-user { font-size: 14px; color: rgba(255,255,255,.6); font-weight: 600; }
.admin-logout {
  padding: 8px 18px; background: transparent; border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px; color: #fff; font-family: Arial; font-size: 13px; cursor: pointer;
  transition: all .2s;
}
.admin-logout:hover { background: rgba(255,255,255,.1); }

.admin-body { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 64px); }

.admin-sidebar {
  background: #fff; border-right: 1px solid var(--border);
  padding: 24px 0;
}
.admin-nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 24px; font-size: 15px; font-weight: 600;
  color: var(--text-muted); cursor: pointer; transition: all .2s;
  border-left: 3px solid transparent;
}
.admin-nav-item:hover { background: var(--bg-soft); color: var(--text); }
.admin-nav-item.active { color: var(--primary); background: var(--primary-light); border-left-color: var(--primary); }
.admin-nav-icon { font-size: 18px; width: 24px; text-align: center; }

.admin-content { padding: 40px; overflow-y: auto; }

.admin-section { display: none; }
.admin-section.active { display: block; }

.admin-section h2 { font-size: 26px; font-weight: 900; margin-bottom: 8px; letter-spacing: -.5px; }
.admin-section .sub { color: var(--text-muted); font-size: 15px; margin-bottom: 32px; }

.admin-cards-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 40px; }
.admin-stat-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 4px;
}
.admin-stat-card .stat-val { font-size: 36px; font-weight: 900; color: var(--primary); letter-spacing: -1px; }
.admin-stat-card .stat-label { font-size: 13px; color: var(--text-muted); font-weight: 600; }

.admin-form-section {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px; margin-bottom: 32px;
}
.admin-form-section h3 { font-size: 18px; font-weight: 800; margin-bottom: 20px; }

.admin-form { display: flex; flex-direction: column; gap: 16px; }
.admin-form input,
.admin-form select,
.admin-form textarea {
  padding: 13px 16px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-family: Arial;
  font-size: 15px; color: var(--text); background: var(--bg-soft);
  transition: border-color .2s; width: 100%;
}
.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus { outline: none; border-color: var(--primary); background: #fff; }
.admin-form textarea { resize: vertical; min-height: 120px; }

.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.admin-btn {
  padding: 13px 28px; background: var(--primary); color: #fff;
  border: none; border-radius: var(--radius-sm); font-family: Arial;
  font-size: 15px; font-weight: 700; cursor: pointer; transition: background .2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.admin-btn:hover { background: var(--primary-dark); }
.admin-btn.secondary { background: var(--bg-soft); color: var(--text); border: 1.5px solid var(--border); }
.admin-btn.secondary:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.admin-btn.danger { background: #dc2626; }
.admin-btn.danger:hover { background: #b91c1c; }

.admin-table-wrap { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 32px; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
  background: var(--bg-soft); padding: 14px 18px;
  text-align: left; font-size: 12px; font-weight: 800;
  letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.admin-table td {
  padding: 14px 18px; border-bottom: 1px solid var(--bg-soft);
  font-size: 14px; color: var(--text-muted);
}
.admin-table tr:last-child td { border: none; }
.admin-table tr:hover td { background: var(--bg-soft); }

.status-badge {
  padding: 3px 12px; border-radius: 100px;
  font-size: 11px; font-weight: 700;
}
.status-badge.published { background: #dcfce7; color: #16a34a; }
.status-badge.draft { background: #fef3c7; color: #92400e; }

.upload-area {
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 40px; text-align: center; cursor: pointer;
  transition: border-color .2s, background .2s;
}
.upload-area:hover { border-color: var(--primary); background: var(--primary-light); }
.upload-area input[type=file] { display: none; }
.upload-icon { font-size: 40px; margin-bottom: 12px; }
.upload-area p { font-size: 15px; color: var(--text-muted); }
.upload-area span { color: var(--primary); font-weight: 700; }

.success-toast {
  position: fixed; bottom: 32px; right: 32px;
  background: #16a34a; color: #fff;
  padding: 16px 24px; border-radius: 10px;
  font-weight: 700; font-size: 15px;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  display: none; z-index: 9999;
  animation: slideIn .3s ease;
}
@keyframes slideIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero { flex-direction: column; padding: 100px 24px 60px; text-align: center; }
  .hero-visual { width: 100%; }
  .hero-btns { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-sub { margin: 0 auto 36px; }
  .hero-badge { margin: 0 auto 28px; }
  .contact-inner { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .tutor-hero { grid-template-columns: 1fr; padding: 120px 24px 60px; }
  .tutor-stats-row { grid-template-columns: repeat(2, 1fr); }
  .admin-body { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .nav-links { display: none; }
  .hamburger { display: block; margin-left: auto; }
  section { padding: 72px 24px; }
  .blog-grid { padding: 0 24px 60px; }
  .blog-hero { padding: 120px 24px 40px; }
  .admin-content { padding: 24px; }
}

@media (max-width: 600px) {
  .hero-stats { gap: 16px; }
  .stat-divider { display: none; }
  .stat span { font-size: 22px; }
  .tutor-stats-row { grid-template-columns: 1fr 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
}

/* ===== FLOATING ACTION BUTTONS ===== */
.vn-fab-cluster {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 2100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.vn-fab {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(0,0,0,.25);
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
  position: relative;
}
.vn-fab:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 28px rgba(0,0,0,.32);
}
.vn-fab svg { width: 24px; height: 24px; flex-shrink: 0; }

.vn-fab-tooltip {
  position: absolute;
  right: 62px;
  background: #0f172a;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.vn-fab-tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: #0f172a;
}
.vn-fab:hover .vn-fab-tooltip { opacity: 1; }

.vn-fab-wa  { background: #25D366; }
.vn-fab-mail { background: #0057FF; }
.vn-fab-enroll {
  background: var(--accent);
  width: 60px;
  height: 60px;
}
.vn-fab-enroll::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  opacity: 0;
  animation: vn-pulse-ring 2s ease-out infinite;
}
@keyframes vn-pulse-ring {
  0%   { transform: scale(.8); opacity: .8; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ===== STICKY ENROLL BAR ===== */
.vn-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2050;
  background: linear-gradient(90deg, #0057FF 0%, #FF6B00 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 13px 20px;
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(.22,1,.36,1);
  box-shadow: 0 -4px 24px rgba(0,87,255,.25);
}
.vn-sticky-bar.vn-show { transform: translateY(0); }

.vn-sticky-bar p {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  flex: 1;
  text-align: center;
  letter-spacing: .2px;
}
.vn-sticky-bar .vn-bar-cta {
  background: #fff;
  color: #0057FF;
  border: none;
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s;
}
.vn-sticky-bar .vn-bar-cta:hover { background: #e8efff; }
.vn-sticky-bar .vn-bar-close {
  background: none;
  border: none;
  color: rgba(255,255,255,.7);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
  transition: color .2s;
}
.vn-sticky-bar .vn-bar-close:hover { color: #fff; }

/* ===== ENROLL MODAL ===== */
.vn-overlay {
  position: fixed;
  inset: 0;
  z-index: 2200;
  background: rgba(10,10,26,.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.vn-overlay.vn-show {
  opacity: 1;
  pointer-events: all;
}

.vn-modal {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 480px;
  padding: 36px 32px 32px;
  position: relative;
  transform: translateY(24px) scale(.97);
  transition: transform .35s cubic-bezier(.22,1,.36,1);
  box-shadow: 0 24px 80px rgba(0,87,255,.2);
}
.vn-overlay.vn-show .vn-modal {
  transform: translateY(0) scale(1);
}

.vn-modal-close {
  position: absolute;
  top: 14px; right: 16px;
  background: none; border: none;
  font-size: 22px; cursor: pointer;
  color: #aaa; line-height: 1;
  transition: color .2s;
}
.vn-modal-close:hover { color: #333; }

.vn-modal-badge {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.vn-modal h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.25;
}
.vn-modal p.vn-modal-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.vn-modal-form .vn-field {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  color: var(--text);
  background: var(--bg-soft);
  margin-bottom: 12px;
  transition: border-color .2s;
  outline: none;
  font-family: inherit;
}
.vn-modal-form .vn-field:focus { border-color: var(--primary); background: #fff; }
.vn-modal-form .vn-field::placeholder { color: #aab; }

.vn-modal-submit {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 13px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .15s;
  margin-top: 4px;
}
.vn-modal-submit:hover { background: var(--primary-dark); transform: translateY(-1px); }

.vn-modal-success {
  display: none;
  text-align: center;
  padding: 20px 0 8px;
}
.vn-modal-success .vn-success-icon {
  font-size: 44px;
  display: block;
  margin-bottom: 12px;
}
.vn-modal-success h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; color: var(--text); }
.vn-modal-success p { font-size: 14px; color: var(--text-muted); }

.vn-modal-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}
.vn-modal-trust span { display: flex; align-items: center; gap: 4px; }

@media (max-width: 600px) {
  .vn-sticky-bar { flex-wrap: wrap; gap: 10px; padding: 12px 16px; }
  .vn-sticky-bar p { font-size: 12px; }
  .vn-fab-cluster { bottom: 80px; right: 16px; }
  .vn-modal { padding: 28px 20px 24px; }
}
