/* ============================================================
   InsertIT Cursos - Main Stylesheet
   Theme: White/Lilac/Purple - Premium Tech Academy
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;750;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ----------------------------------------------------------
   CSS Variables
   ---------------------------------------------------------- */

:root {
  --background: #ffffff;
  --foreground: #17151f;
  --primary: #7c3aed;
  --primary-dark: #5b21b6;
  --primary-soft: #ede9fe;
  --accent: #c084fc;
  --accent-soft: #f5f3ff;
  --muted: #f8f7fb;
  --muted-border: #e7e3f3;
  --text-main: #17151f;
  --text-secondary: #5f5a6f;
  --text-muted: #8b849a;
  --success: #16a34a;
  --warning: #f59e0b;
  --danger: #dc2626;
  --green: #16a34a;
  --red: #dc2626;
  --card: #ffffff;
  --card-border: rgba(124, 58, 237, 0.14);
  --bg-card: var(--card);
  --bg-raised: #f3f0fb;
  --bg-hover: #ebe7f8;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --gradient-main: linear-gradient(135deg, #7c3aed 0%, #c084fc 55%, #ede9fe 100%);
  --gradient-soft: linear-gradient(180deg, #ffffff 0%, #f8f5ff 100%);
  --gradient-hero: radial-gradient(circle at top right, rgba(192,132,252,0.24), transparent 34%), linear-gradient(180deg, #ffffff 0%, #f8f5ff 100%);

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-9: 36px;
  --space-10: 40px;
  --space-11: 44px;
  --space-12: 48px;
  --space-14: 56px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  --max-width: 1200px;
  --max-width-wide: 1280px;
  --nav-height: 76px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* ----------------------------------------------------------
   Reset & Base
   ---------------------------------------------------------- */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  color: var(--text-secondary);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-dark);
}

ul, ol {
  list-style: none;
}

code, pre {
  font-family: var(--font-mono);
  font-size: 14px;
}

input, button, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

::selection {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

/* ----------------------------------------------------------
   Typography
   ---------------------------------------------------------- */

h1, .h1 {
  font-size: 64px;
  line-height: 1.03;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-main);
}

h2, .h2 {
  font-size: 44px;
  line-height: 1.1;
  font-weight: 750;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

h3, .h3 {
  font-size: 24px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--text-main);
}

h4, .h4 {
  font-size: 20px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--text-main);
}

h5, .h5 {
  font-size: 18px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--text-main);
}

h6, .h6 {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--text-main);
}

p {
  margin-bottom: var(--space-4);
}

p:last-child {
  margin-bottom: 0;
}

.text-small {
  font-size: 14px;
  line-height: 1.5;
}

.text-muted {
  color: var(--text-muted);
}

.text-secondary {
  color: var(--text-secondary);
}

.text-primary {
  color: var(--primary);
}

.text-brand {
  color: var(--primary);
}

code {
  display: inline-block;
  padding: 2px 8px;
  background: var(--accent-soft);
  border-radius: 6px;
  color: var(--primary-dark);
  font-size: 14px;
}

/* ----------------------------------------------------------
   Utilities
   ---------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 32px;
  padding-right: 32px;
}

.container-wide {
  max-width: var(--max-width-wide);
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.flex { display: flex; }
.inline-flex { display: inline-flex; }
.block { display: block; }
.inline-block { display: inline-block; }
.hidden { display: none; }

.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }

.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }

.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }
.gap-10 { gap: var(--space-10); }
.gap-12 { gap: var(--space-12); }

.mt-1 { margin-top: var(--space-4); }
.mt-2 { margin-top: var(--space-8); }
.mt-3 { margin-top: var(--space-12); }
.mt-4 { margin-top: var(--space-16); }
.mt-5 { margin-top: var(--space-20); }

.mb-1 { margin-bottom: var(--space-4); }
.mb-2 { margin-bottom: var(--space-8); }
.mb-3 { margin-bottom: var(--space-12); }
.mb-4 { margin-bottom: var(--space-16); }

.p-2 { padding: var(--space-2); }
.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }

.w-full { width: 100%; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

.overflow-hidden { overflow: hidden; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: var(--space-4);
}

.section-title {
  margin-bottom: var(--space-4);
}

.section-description {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 640px;
}

.section-header {
  margin-bottom: var(--space-12);
}

.section-header.text-center .section-description {
  margin-left: auto;
  margin-right: auto;
}

.section {
  padding: var(--space-20) 0;
}

.section-sm {
  padding: var(--space-12) 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-8);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
}

.flash-container {
  margin-top: var(--space-4);
}

.hero-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  margin-right: var(--space-2);
}

.section-header-title {
  margin-bottom: var(--space-3);
}

.section-header-title.title-pulse {
  display: inline-block;
  transform-origin: center;
  animation: pulseSoft 2.4s ease-in-out infinite;
}

.section-header-subtitle {
  margin-bottom: 0;
}

.section-header-badge {
  margin-bottom: var(--space-5);
}

.hero-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* ----------------------------------------------------------
   Navigation
   ---------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--muted-border);
  transition: box-shadow 0.3s ease;
  display: flex;
  align-items: center;
}

.nav.scrolled {
  box-shadow: 0 4px 24px rgba(39, 25, 74, 0.06);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-inner {
  width: 100%;
  gap: var(--space-6);
}

.nav-brand,
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.nav-brand img,
.nav-logo img,
img.nav-logo {
  height: 36px;
  width: auto;
}

.nav-brand img,
.nav-logo img,
img.nav-logo,
.footer-logo img,
.auth-logo img {
  border-radius: 10px;
  border: 1px solid rgba(124, 58, 237, 0.24);
  background: linear-gradient(145deg, #ffffff 0%, #f3efff 100%);
  box-shadow: 0 8px 22px rgba(39, 25, 74, 0.10), inset 0 0 0 1px rgba(255, 255, 255, 0.9);
}

.nav-links,
.nav-links-desktop {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-links a,
.nav-links-desktop a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active,
.nav-links-desktop a:hover,
.nav-links-desktop a.active {
  color: var(--primary);
}

.nav-links a::after,
.nav-links-desktop a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after,
.nav-links-desktop a:hover::after,
.nav-links-desktop a.active::after {
  width: 100%;
}

.nav-link {
  color: inherit;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav-user {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0 12px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--muted-border);
  background: #ffffff;
}

.nav-user:hover {
  color: var(--primary);
  border-color: var(--card-border);
  background: var(--accent-soft);
}

.nav-user svg {
  width: 16px;
  height: 16px;
}

.nav-cta {
  height: 44px;
  padding: 0 22px;
  background: var(--primary);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}

.nav-cta:hover {
  background: var(--primary-dark);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(124, 58, 237, 0.28);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  cursor: pointer;
  z-index: 1001;
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-main);
  transition: transform 0.2s ease;
}

.nav-toggle.open svg {
  transform: rotate(90deg);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 300px;
  background: var(--card);
  padding: 100px 32px 32px;
  box-shadow: -8px 0 40px rgba(39, 25, 74, 0.12);
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  flex-direction: column;
  gap: var(--space-6);
}

.nav-mobile.open {
  transform: translateX(0);
}

.nav-mobile a {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-main);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--muted-border);
  transition: color 0.2s ease;
}

.nav-mobile a:hover,
.nav-mobile a.active {
  color: var(--primary);
}

.nav-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(23, 21, 31, 0.3);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-mobile-overlay.open {
  opacity: 1;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(23, 21, 31, 0.36);
  display: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow: hidden;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu[aria-hidden="false"] {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto;
}

.mobile-menu-panel {
  width: min(380px, 100%);
  margin-left: auto;
  height: 100%;
  background: var(--card);
  box-shadow: -8px 0 40px rgba(39, 25, 74, 0.12);
  transform: translateX(100%);
  display: flex;
  flex-direction: column;
}

.mobile-menu.open .mobile-menu-panel {
  transform: translateX(0);
}

.mobile-menu[aria-hidden="false"] .mobile-menu-panel {
  transform: translateX(0) !important;
}

.mobile-menu-header {
  width: 100%;
  height: var(--nav-height);
  padding: 0 var(--space-6);
  border-bottom: 1px solid var(--muted-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.mobile-menu-close {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--muted-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.mobile-menu-close:hover {
  background: var(--accent-soft);
  color: var(--primary);
}

.mobile-menu-close svg {
  width: 18px;
  height: 18px;
}

.mobile-menu-links {
  width: 100%;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: var(--space-4) var(--space-6) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu-links a {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  padding: 10px 4px;
  border-bottom: 1px solid var(--muted-border);
}

.mobile-menu-links a:hover {
  color: var(--primary);
}

.mobile-menu-links .btn {
  margin-top: var(--space-3);
}

.mobile-menu-login {
  margin-top: var(--space-2);
}

.mobile-menu-logout {
  margin-top: auto;
  color: var(--danger) !important;
  border-bottom-color: rgba(220, 38, 38, 0.2) !important;
}

/* ----------------------------------------------------------
   Buttons
   ---------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-weight: 600;
  font-size: 15px;
  border-radius: 999px;
  padding: 0 24px;
  height: 48px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  text-decoration: none;
  max-width: 100%;
}

.btn-primary,
.btn-brand {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.btn-primary:hover,
.btn-brand:hover {
  background: #6d28d9;
  border-color: #6d28d9;
  color: #ffffff;
  box-shadow: 0 12px 32px rgba(124, 58, 237, 0.28);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #ffffff;
  color: var(--primary);
  border-color: var(--card-border);
}

.btn-secondary:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--primary-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}

.btn-ghost:hover {
  background: var(--accent-soft);
  color: var(--primary);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: rgba(124, 58, 237, 0.18);
}

.btn-outline:hover {
  background: var(--accent-soft);
  border-color: var(--primary);
  color: var(--primary-dark);
}

.btn-lg {
  height: 56px;
  padding: 0 32px;
  font-size: 16px;
}

.btn-sm {
  height: 36px;
  padding: 0 16px;
  font-size: 13px;
}

.btn-block {
  width: 100%;
}

.btn:disabled,
.btn.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.btn-destructive {
  background: var(--danger);
  color: #ffffff;
  border-color: var(--danger);
}

.btn-destructive:hover {
  background: #b91c1c;
  border-color: #b91c1c;
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.24);
}

/* ----------------------------------------------------------
   Cards
   ---------------------------------------------------------- */

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: var(--space-8);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
  box-shadow: 0 20px 60px rgba(39, 25, 74, 0.08);
}

.card-brand {
  border-color: rgba(124, 58, 237, 0.22);
}

.card-brand:hover {
  box-shadow: 0 20px 60px rgba(124, 58, 237, 0.12);
}

.card-glass {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.card-lg {
  padding: var(--space-12);
  border-radius: 32px;
}

.card-flat {
  border: none;
  background: var(--muted);
}

.card-flat:hover {
  box-shadow: none;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
}

.card-body {
  flex: 1;
}

.card-footer {
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--muted-border);
}

/* ----------------------------------------------------------
   Course Cards
   ---------------------------------------------------------- */

.course-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 80px rgba(124, 58, 237, 0.16);
}

.course-card-image,
.course-card-img {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.course-card-image img,
.course-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-card-image::after,
.course-card-img-overlay {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(23, 21, 31, 0.7) 100%);
  pointer-events: none;
}

.course-card-badge {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  z-index: 2;
}

.course-card-body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.course-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: var(--space-2);
  line-height: 1.3;
}

.course-card-description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-4);
  flex: 1;
}

.course-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

.course-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

.course-card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
  padding-top: var(--space-4);
  border-top: 1px solid var(--muted-border);
}

.course-card-footer .btn {
  flex-shrink: 0;
}

.course-card-price,
.course-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.15;
  white-space: nowrap;
}

/* ----------------------------------------------------------
   Hero
   ---------------------------------------------------------- */

.hero {
  background: var(--gradient-hero);
  min-height: 720px;
  padding-top: 140px;
  padding-bottom: var(--space-24);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.hero-content {
  animation: fadeUp 0.8s ease forwards;
}

.hero-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: var(--space-6);
}

.hero-title {
  margin-bottom: var(--space-6);
  animation: fadeUp 0.8s ease 0.1s forwards;
  opacity: 0;
  animation-fill-mode: forwards;
}

.hero-subtitle {
  font-size: 20px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
  max-width: 520px;
  animation: fadeUp 0.8s ease 0.2s forwards;
  opacity: 0;
  animation-fill-mode: forwards;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  animation: fadeUp 0.8s ease 0.3s forwards;
  opacity: 0;
  animation-fill-mode: forwards;
}

.hero-visual {
  animation: mockupFloat 6s ease-in-out infinite;
}

/* ----------------------------------------------------------
   Stats
   ---------------------------------------------------------- */

.stats-section {
  padding: var(--space-16) 0;
  background: var(--background);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
}

.stat-card {
  text-align: center;
  padding: var(--space-8);
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.stat-card:hover {
  box-shadow: 0 20px 60px rgba(39, 25, 74, 0.08);
  transform: translateY(-2px);
}

.stat-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-soft);
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  font-size: 24px;
  color: var(--primary);
}

.stat-number {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
  line-height: 1.1;
  margin-bottom: var(--space-1);
}

.stat-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: var(--space-2);
}

.stat-description {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ----------------------------------------------------------
   Features
   ---------------------------------------------------------- */

.features-section {
  padding: var(--space-24) 0;
  background: var(--muted);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: var(--space-8);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.feature-card:hover {
  box-shadow: 0 20px 60px rgba(39, 25, 74, 0.08);
  transform: translateY(-2px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-soft);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  color: var(--primary);
  font-size: 22px;
}

.feature-icon-lg {
  width: 56px;
  height: 56px;
  background: var(--primary-soft);
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: var(--space-3);
}

.feature-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ----------------------------------------------------------
   FAQ
   ---------------------------------------------------------- */

.faq-section {
  padding: var(--space-24) 0;
  background: var(--background);
}

.faq-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 8px 32px rgba(39, 25, 74, 0.04);
}

.faq-question {
  width: 100%;
  padding: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-main);
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-arrow {
  width: 28px;
  height: 28px;
  background: var(--accent-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease, background 0.2s ease;
  color: var(--primary);
  font-size: 12px;
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
  background: var(--primary-soft);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding: 0 var(--space-6) var(--space-6);
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ----------------------------------------------------------
   Testimonials
   ---------------------------------------------------------- */

.testimonials-section {
  padding: var(--space-24) 0;
  background: var(--muted);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.testimonial-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: var(--space-8);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.testimonial-card:hover {
  box-shadow: 0 20px 60px rgba(39, 25, 74, 0.08);
  transform: translateY(-2px);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  flex-shrink: 0;
}

.testimonial-meta h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 2px;
}

.testimonial-meta span {
  font-size: 13px;
  color: var(--text-muted);
}

.testimonial-rating {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-3);
  color: var(--warning);
}

.testimonial-quote {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-style: italic;
}

/* ----------------------------------------------------------
   CTA Block
   ---------------------------------------------------------- */

.cta-section {
  padding: var(--space-24) 0;
  background: var(--background);
}

.cta-block {
  background: var(--accent-soft);
  border: 2px solid rgba(124, 58, 237, 0.18);
  border-radius: 32px;
  padding: var(--space-20) var(--space-16);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-block::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(192, 132, 252, 0.2), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-block::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.12), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-block h2 {
  margin-bottom: var(--space-4);
  position: relative;
  z-index: 1;
}

.cta-block p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto var(--space-8);
  position: relative;
  z-index: 1;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  position: relative;
  z-index: 1;
}

/* ----------------------------------------------------------
   Forms
   ---------------------------------------------------------- */

.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: var(--space-2);
}

.form-label-required::after {
  content: '*';
  color: var(--danger);
  margin-left: 2px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  color: var(--text-main);
  background: #ffffff;
  border: 1px solid var(--muted-border);
  border-radius: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-input.error,
.form-textarea.error,
.form-select.error {
  border-color: var(--danger);
}

.form-input.error:focus,
.form-textarea.error:focus,
.form-select.error:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.10);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: var(--space-1);
}

.form-error {
  font-size: 13px;
  color: var(--danger);
  margin-top: var(--space-1);
}

.form-checkbox,
.form-radio {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
}

.form-checkbox input[type="checkbox"],
.form-radio input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.form-checkbox span,
.form-radio span {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ----------------------------------------------------------
   Auth Pages
   ---------------------------------------------------------- */

.auth-page {
  min-height: 100vh;
  background: var(--gradient-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
}

.auth-page-compact {
  padding: var(--space-5);
}

.auth-split {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-12);
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
}

.auth-split .auth-card {
  flex-shrink: 0;
}

.auth-split-single {
  max-width: 560px;
}

.auth-visual {
  display: none;
  flex: 1;
  max-width: 420px;
}

@media (min-width: 900px) {
  .auth-visual {
    display: block;
  }
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 32px;
  padding: var(--space-12);
  box-shadow: 0 24px 80px rgba(39, 25, 74, 0.10);
  animation: fadeUp 0.5s ease forwards;
}

.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: var(--space-8);
  letter-spacing: -0.02em;
}

.auth-logo img {
  height: 40px;
  width: auto;
}

.auth-title {
  text-align: center;
  margin-bottom: var(--space-2);
}

.auth-subtitle {
  text-align: center;
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: var(--space-8);
}

.auth-form {
  margin-bottom: var(--space-6);
}

.auth-footer {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

.auth-footer a {
  font-weight: 600;
  color: var(--primary);
}

.auth-separator {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: var(--space-6) 0;
}

.auth-separator::before,
.auth-separator::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--muted-border);
}

.auth-separator span {
  font-size: 13px;
  color: var(--text-muted);
}

.social-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
}

.social-btn {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--muted-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.social-btn:hover {
  border-color: var(--primary);
  background: var(--accent-soft);
}

/* ----------------------------------------------------------
   Dashboard / Admin Layout
   ---------------------------------------------------------- */

.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 280px;
  background: var(--muted);
  border-right: 1px solid var(--muted-border);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.admin-sidebar-header {
  padding: var(--space-6);
  border-bottom: 1px solid var(--muted-border);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  min-height: 76px;
}

.admin-sidebar-nav {
  padding: var(--space-4);
  flex: 1;
}

.admin-sidebar-section {
  margin-bottom: var(--space-6);
}

.admin-sidebar-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  padding: 0 var(--space-3);
  margin-bottom: var(--space-2);
}

.admin-sidebar-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 10px var(--space-3);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background 0.2s ease, color 0.2s ease;
  margin-bottom: 2px;
  text-decoration: none;
}

.admin-sidebar-link:hover {
  background: var(--accent-soft);
  color: var(--primary);
}

.admin-sidebar-link.active {
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 600;
}

.admin-sidebar-link .icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admin-sidebar-link .badge {
  margin-left: auto;
}

.admin-main {
  flex: 1;
  min-width: 0;
  background: var(--background);
}

.admin-header {
  background: var(--card);
  border-bottom: 1px solid var(--muted-border);
  padding: var(--space-5) var(--space-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.admin-content {
  padding: var(--space-8);
}

.admin-content-title {
  margin-bottom: var(--space-8);
}

.admin-content-title h2 {
  margin-bottom: var(--space-1);
}

.admin-content-title p {
  font-size: 15px;
  color: var(--text-muted);
}

/* ----------------------------------------------------------
   Progress Bar
   ---------------------------------------------------------- */

.progress {
  width: 100%;
  height: 8px;
  background: var(--muted);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-main);
  border-radius: 999px;
  transition: width 0.6s ease;
}

.progress-lg {
  height: 12px;
}

.progress-sm {
  height: 4px;
}

.progress-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.progress-label .progress-text {
  color: var(--text-secondary);
}

.progress-label .progress-percent {
  color: var(--primary);
}

/* ----------------------------------------------------------
   Badges
   ---------------------------------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  line-height: 1.4;
}

.badge-brand {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.badge-success {
  background: #dcfce7;
  color: #15803d;
}

.badge-warning {
  background: #fef3c7;
  color: #b45309;
}

.badge-danger {
  background: #fee2e2;
  color: #b91c1c;
}

.badge-neutral {
  background: var(--muted);
  color: var(--text-muted);
}

.badge-lg {
  font-size: 13px;
  padding: 6px 14px;
}

/* ----------------------------------------------------------
   Tables
   ---------------------------------------------------------- */

.table-container {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table thead th {
  background: var(--muted);
  padding: var(--space-3) var(--space-4);
  font-weight: 600;
  color: var(--text-secondary);
  text-align: left;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--muted-border);
  white-space: nowrap;
}

.table thead th:first-child {
  border-radius: 12px 0 0 12px;
}

.table thead th:last-child {
  border-radius: 0 12px 12px 0;
}

.table tbody td {
  padding: var(--space-4);
  color: var(--text-main);
  border-bottom: 1px solid var(--muted-border);
  vertical-align: middle;
}

.table tbody tr {
  transition: background 0.2s ease;
}

.table tbody tr:hover {
  background: rgba(124, 58, 237, 0.03);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

.table .cell-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.table .cell-status {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.table .cell-user {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.table-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}

/* ----------------------------------------------------------
   Alerts
   ---------------------------------------------------------- */

.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  border-left: 4px solid;
}

.alert-info {
  background: #eff6ff;
  border-left-color: #3b82f6;
  color: #1e40af;
}

.alert-success {
  background: #f0fdf4;
  border-left-color: var(--success);
  color: #15803d;
}

.alert-warning {
  background: #fffbeb;
  border-left-color: var(--warning);
  color: #92400e;
}

.alert-danger {
  background: #fef2f2;
  border-left-color: var(--danger);
  color: #991b1b;
}

.alert-error {
  background: #fef2f2;
  border-left-color: var(--danger);
  color: #991b1b;
}

.alert-icon {
  flex-shrink: 0;
  font-size: 18px;
  margin-top: 1px;
}

.alert-dismiss {
  margin-left: auto;
  padding: 2px;
  color: inherit;
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.alert-dismiss:hover {
  opacity: 1;
}

/* ----------------------------------------------------------
   Breadcrumbs
   ---------------------------------------------------------- */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 14px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb-separator {
  color: var(--text-muted);
  opacity: 0.5;
  user-select: none;
}

.breadcrumb .current {
  color: var(--text-muted);
  pointer-events: none;
}

/* ----------------------------------------------------------
   Search
   ---------------------------------------------------------- */

.search-bar {
  position: relative;
  max-width: 480px;
}

.search-input {
  width: 100%;
  height: 48px;
  padding: 0 var(--space-4) 0 48px;
  font-size: 15px;
  color: var(--text-main);
  background: var(--card);
  border: 1px solid var(--muted-border);
  border-radius: 999px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 18px;
  pointer-events: none;
}

.search-large .search-input {
  height: 56px;
  font-size: 16px;
  padding-left: 56px;
  border-radius: 16px;
}

.search-large .search-icon {
  font-size: 20px;
  left: 20px;
}

/* ----------------------------------------------------------
   Footer
   ---------------------------------------------------------- */

.footer {
  background: var(--muted);
  border-top: 1px solid var(--muted-border);
  padding: var(--space-20) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: var(--space-12);
}

.footer-brand p {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 300px;
  margin-top: var(--space-4);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.footer-logo img {
  height: 32px;
  width: auto;
}

.footer-column h4,
.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: var(--space-5);
}

.footer-column ul,
.footer-col ul,
.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-column ul a,
.footer-col ul a,
.footer-links a {
  font-size: 15px;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer-column ul a:hover,
.footer-col ul a:hover,
.footer-links a:hover {
  color: var(--primary);
}

.footer-hours {
  font-size: 15px;
  color: var(--text-muted);
}

.testimonial-icon svg {
  margin-left: auto;
  margin-right: auto;
}

.footer-bottom {
  margin-top: var(--space-16);
  padding-top: var(--space-8);
  border-top: 1px solid var(--muted-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-bottom p {
  font-size: 14px;
  color: var(--text-muted);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--muted-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.footer-social a:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--accent-soft);
}

/* ----------------------------------------------------------
   Empty State
   ---------------------------------------------------------- */

.empty-state {
  text-align: center;
  padding: var(--space-20) var(--space-8);
}

.empty-state-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-soft);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--primary);
  margin-bottom: var(--space-6);
}

.empty-state h3 {
  margin-bottom: var(--space-3);
}

.empty-state p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 400px;
  margin: 0 auto var(--space-6);
}

/* ----------------------------------------------------------
   Toast Notifications
   ---------------------------------------------------------- */

.toast-container {
  position: fixed;
  top: var(--space-6);
  right: var(--space-6);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 400px;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: var(--space-4) var(--space-5);
  box-shadow: 0 16px 48px rgba(39, 25, 74, 0.14);
  animation: slideRight 0.4s ease forwards;
  font-size: 14px;
  color: var(--text-main);
  min-width: 280px;
}

.toast-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
}

.toast-success .toast-icon {
  background: var(--success);
}

.toast-error .toast-icon {
  background: var(--danger);
}

.toast-warning .toast-icon {
  background: var(--warning);
}

.toast-info .toast-icon {
  background: var(--primary);
}

.toast-content {
  flex: 1;
  min-width: 0;
}

.toast-body {
  flex: 1;
  min-width: 0;
}

.toast-title {
  font-weight: 600;
  margin-bottom: 2px;
}

.toast-message {
  color: var(--text-muted);
  font-size: 13px;
}

.toast-dismiss {
  flex-shrink: 0;
  padding: 2px;
  color: var(--text-muted);
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.toast-dismiss:hover {
  opacity: 1;
}

.toast-close {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.toast-close:hover {
  background: var(--accent-soft);
  color: var(--text-main);
}

.toast.removing {
  animation: fadeIn 0.3s ease reverse forwards;
}

/* ----------------------------------------------------------
   Mockup Card
   ---------------------------------------------------------- */

.mockup-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 28px;
  box-shadow: 0 30px 100px rgba(124, 58, 237, 0.18);
  padding: var(--space-6);
  overflow: hidden;
}

.mockup-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--muted-border);
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mockup-dot:nth-child(1) { background: #ef4444; }
.mockup-dot:nth-child(2) { background: #f59e0b; }
.mockup-dot:nth-child(3) { background: #16a34a; }

.mockup-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.mockup-row {
  display: flex;
  gap: var(--space-3);
}

.mockup-sidebar {
  width: 140px;
  flex-shrink: 0;
  background: var(--muted);
  border-radius: 12px;
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.mockup-sidebar-item {
  height: 10px;
  background: var(--muted-border);
  border-radius: 5px;
}

.mockup-sidebar-item:first-child {
  background: var(--primary);
  opacity: 0.6;
}

.mockup-main {
  flex: 1;
  background: var(--muted);
  border-radius: 12px;
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.mockup-title {
  height: 14px;
  background: var(--muted-border);
  border-radius: 7px;
  width: 40%;
}

.mockup-line {
  height: 8px;
  background: var(--muted-border);
  border-radius: 4px;
}

.mockup-line.short { width: 60%; }

.mockup-card-mini {
  background: var(--card);
  border: 1px solid var(--muted-border);
  border-radius: 10px;
  padding: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.mockup-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-soft);
  flex-shrink: 0;
}

/* ----------------------------------------------------------
   Lesson Components
   ---------------------------------------------------------- */

.lesson-layout {
  display: flex;
  min-height: calc(100vh - var(--nav-height));
}

.lesson-sidebar {
  width: 340px;
  background: var(--muted);
  border-right: 1px solid var(--muted-border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.lesson-sidebar-header {
  padding: var(--space-5);
  border-bottom: 1px solid var(--muted-border);
}

.lesson-sidebar-header h3 {
  font-size: 16px;
  margin-bottom: var(--space-1);
}

.lesson-sidebar-progress {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

.lesson-list {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-3);
}

.lesson-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease;
  margin-bottom: 2px;
}

.lesson-item:hover {
  background: var(--accent-soft);
}

.lesson-item.active {
  background: var(--primary-soft);
}

.lesson-item.completed .lesson-indicator {
  background: var(--success);
  color: #ffffff;
}

.lesson-indicator {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--muted-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.lesson-item.active .lesson-indicator {
  border-color: var(--primary);
  color: var(--primary);
}

.lesson-item-content {
  flex: 1;
  min-width: 0;
}

.lesson-item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 2px;
}

.lesson-item-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.lesson-item-locked {
  opacity: 0.5;
  pointer-events: none;
}

.lesson-check {
  flex-shrink: 0;
  color: var(--success);
}

.lesson-info {
  flex: 1;
  min-width: 0;
}

.lesson-body {
  flex: 1;
  padding: var(--space-10);
  overflow-y: auto;
  background: var(--background);
}

.lesson-body h1 {
  font-size: 32px;
  margin-bottom: var(--space-4);
}

.lesson-body h2 {
  font-size: 24px;
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
}

.lesson-body p {
  margin-bottom: var(--space-4);
}

.lesson-body pre {
  background: var(--muted);
  border: 1px solid var(--muted-border);
  border-radius: 12px;
  padding: var(--space-5);
  overflow-x: auto;
  margin-bottom: var(--space-4);
}

.lesson-body ul,
.lesson-body ol {
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
}

.lesson-body ul {
  list-style: disc;
}

.lesson-body ol {
  list-style: decimal;
}

.lesson-body li {
  margin-bottom: var(--space-2);
  line-height: 1.7;
}

.lesson-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid var(--muted-border);
}

/* ----------------------------------------------------------
   Timeline
   ---------------------------------------------------------- */

.timeline {
  position: relative;
  padding-left: var(--space-8);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--muted-border);
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-8);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: calc(-1 * var(--space-8) + 15px);
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--muted-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  z-index: 1;
}

.timeline-item.active .timeline-dot {
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
}

.timeline-item.completed .timeline-dot {
  border-color: var(--success);
  background: var(--success);
  color: #ffffff;
}

.timeline-content h4 {
  margin-bottom: var(--space-1);
}

.timeline-content p {
  font-size: 14px;
  color: var(--text-muted);
}

.timeline-horizontal {
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
}

.timeline-horizontal .timeline-item {
  flex: 1;
  text-align: center;
  padding-bottom: 0;
  padding-right: var(--space-4);
}

.timeline-horizontal .timeline-item:last-child {
  padding-right: 0;
}

.timeline-horizontal .timeline-dot {
  position: relative;
  left: auto;
  transform: none;
  margin: 0 auto var(--space-3);
}

.timeline-horizontal .timeline-connector {
  position: absolute;
  top: 16px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--muted-border);
  z-index: 0;
}

.tabs {
  width: 100%;
}

.tab-nav {
  display: flex;
  gap: var(--space-2);
  border-bottom: 1px solid var(--muted-border);
  padding-bottom: var(--space-2);
  flex-wrap: wrap;
}

.tab-btn {
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  background: transparent;
  color: var(--text-muted);
  transition: background 0.2s ease, color 0.2s ease;
}

.tab-btn:hover {
  background: var(--accent-soft);
  color: var(--text-main);
}

.tab-btn.active {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
}

.tab-panel {
  padding-top: var(--space-5);
}

/* ----------------------------------------------------------
   Animations
   ---------------------------------------------------------- */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

@keyframes mockupFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

@keyframes pulseSoft {
  0%, 100% {
    transform: scale(1);
    text-shadow: 0 0 0 rgba(124, 58, 237, 0);
  }
  50% {
    transform: scale(1.02);
    text-shadow: 0 10px 24px rgba(124, 58, 237, 0.20);
  }
}

@media (prefers-reduced-motion: reduce) {
  .section-header-title.title-pulse {
    animation: none;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.animate-fade-up {
  animation: fadeUp 0.6s ease forwards;
}

.animate-fade-in {
  animation: fadeIn 0.5s ease forwards;
}

.animate-up {
  animation: fadeUp 0.55s ease both;
}

.animate-fade {
  animation: fadeIn 0.45s ease both;
}

/* Staggered children */
.stagger-children > * {
  opacity: 0;
  animation: fadeUp 0.5s ease forwards;
}

.stagger-children > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.15s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.25s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(7) { animation-delay: 0.35s; }
.stagger-children > *:nth-child(8) { animation-delay: 0.4s; }

/* ----------------------------------------------------------
   Responsive - 1280px
   ---------------------------------------------------------- */

@media (max-width: 1280px) {
  .container {
    padding-left: 24px;
    padding-right: 24px;
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-8);
  }

  .hero-grid {
    gap: var(--space-10);
  }
}

/* ----------------------------------------------------------
   Responsive - 1024px
   ---------------------------------------------------------- */

@media (max-width: 1024px) {
  h1, .h1 {
    font-size: 48px;
  }

  h2, .h2 {
    font-size: 36px;
  }

  .nav-links,
  .nav-links-desktop,
  .nav-actions,
  .nav-cta-desktop {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-inner {
    gap: var(--space-3);
  }

  .mobile-menu {
    display: flex;
  }

  .mobile-menu-panel {
    width: min(420px, 100%);
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .grid-3,
  .course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section {
    padding: var(--space-16) 0;
  }

  .nav-mobile {
    display: none;
  }

  .nav-mobile-overlay {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 120px;
    padding-bottom: var(--space-16);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    max-width: 600px;
    margin: 0 auto;
    order: 1;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-benefits {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 500;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .admin-sidebar.open {
    transform: translateX(0);
  }

  .lesson-sidebar {
    position: fixed;
    left: 0;
    top: var(--nav-height);
    bottom: 0;
    z-index: 400;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .lesson-sidebar.open {
    transform: translateX(0);
  }
}

@media (min-width: 1025px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ----------------------------------------------------------
   Responsive - 768px
   ---------------------------------------------------------- */

@media (max-width: 768px) {
  h1, .h1 {
    font-size: 40px;
  }

  h2, .h2 {
    font-size: 32px;
  }

  h3, .h3 {
    font-size: 22px;
  }

  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .section {
    padding: var(--space-14) 0;
  }

  .hero {
    padding-top: 100px;
  }

  .hero-subtitle {
    font-size: 17px;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .grid-3,
  .course-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .course-card {
    border-radius: 20px;
  }

  .course-card-body {
    padding: var(--space-5);
  }

  .course-card-meta {
    gap: var(--space-2);
    row-gap: var(--space-2);
  }

  .course-card-footer {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
  }

  .course-card-footer .btn {
    width: 100%;
    justify-content: center;
  }

  .course-card-price,
  .course-price {
    font-size: clamp(20px, 6.2vw, 24px);
  }

  .btn.btn-block {
    min-height: 48px;
    height: auto;
    padding: 12px 16px;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
  }

  .btn.btn-lg.btn-block {
    min-height: 56px;
    padding: 14px 18px;
  }

  .course-search-form {
    flex-direction: column;
    align-items: stretch;
  }

  .course-search-form .btn {
    width: 100%;
    justify-content: center;
  }

  .mobile-menu-panel {
    width: min(360px, 100%);
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .cta-block {
    padding: var(--space-12) var(--space-6);
    border-radius: 24px;
  }

  .cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .cta-actions .btn {
    width: 100%;
  }

  .auth-card {
    padding: var(--space-8);
    border-radius: 24px;
  }

  .admin-content {
    padding: var(--space-4);
  }

  .search-bar {
    max-width: 100%;
  }

  .lesson-body {
    padding: var(--space-6);
  }

  .lesson-body h1 {
    font-size: 26px;
  }

  .lesson-nav {
    flex-direction: column;
    gap: var(--space-3);
  }

  .lesson-nav .btn {
    width: 100%;
  }
}

/* ----------------------------------------------------------
   Responsive - 480px
   ---------------------------------------------------------- */

@media (max-width: 480px) {
  h1, .h1 {
    font-size: 32px;
  }

  h2, .h2 {
    font-size: 28px;
  }

  .card {
    padding: var(--space-5);
  }

  .card-lg {
    padding: var(--space-6);
  }

  .hero {
    padding-top: 80px;
  }

  .section-title {
    font-size: 26px;
  }

  .section-header {
    margin-bottom: var(--space-8);
  }

  .features-section,
  .faq-section,
  .testimonials-section,
  .cta-section {
    padding: var(--space-12) 0;
  }

  .stats-section {
    padding: var(--space-12) 0;
  }

  .mobile-menu-panel,
  .mobile-menu-header,
  .mobile-menu-links {
    width: 100%;
  }

  .course-card-img,
  .course-card-image {
    height: 180px;
  }

  .course-card-body {
    padding: var(--space-4);
  }

  .course-card-price,
  .course-price {
    font-size: 20px;
  }

  .tab-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .tab-btn {
    width: 100%;
    text-align: left;
  }

  .table thead {
    display: none;
  }

  .table tbody tr {
    display: block;
    border-bottom: 1px solid var(--muted-border);
    padding: var(--space-3) 0;
  }

  .table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-2) var(--space-3);
    border-bottom: none;
  }

  .table tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
  }

  .toast-container {
    left: var(--space-4);
    right: var(--space-4);
    max-width: none;
  }

  .toast {
    width: 100%;
  }
}

/* ----------------------------------------------------------
   Print Styles
   ---------------------------------------------------------- */

@media print {
  .nav,
  .mobile-menu,
  .nav-mobile,
  .nav-mobile-overlay,
  .footer,
  .toast-container,
  .btn,
  button,
  .alert,
  .cert-hide-print,
  .flash-container,
  .breadcrumb,
  .lv2-wa-float,
  .section-header,
  form,
  .card-glass,
  .grid-3,
  h3 {
    display: none !important;
  }

  body {
    color: #17151f;
    background: #fff;
    font-size: 12pt;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .section-sm {
    padding: 0 !important;
  }

  .card {
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
  }

  .cert-logo-print {
    display: flex !important;
    align-items: center;
    gap: 12px;
    justify-content: center;
    margin: 24px 0;
    padding: 16px;
    border-top: 2px solid #7c3aed;
    border-bottom: 2px solid #7c3aed;
  }

  #certificado-print {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    page-break-inside: avoid;
    box-shadow: none !important;
  }

  .container {
    max-width: 100% !important;
    padding: 0 !important;
  }

  @page {
    margin: 0.8cm;
    size: A4;
  }
}
