/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #111827;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul, ol { list-style: none; }

/* ===== CSS VARIABLES ===== */
:root {
  --teal-50: #f0fdfa;
  --teal-100: #ccfbf1;
  --teal-200: #99f6e4;
  --teal-300: #5eead4;
  --teal-400: #2dd4bf;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --teal-700: #0f766e;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --radius: 0.75rem;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow: 0 4px 6px -1px rgba(0,0,0,.07);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,.07);
}

/* ===== UTILITIES ===== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 768px; margin: 0 auto; padding: 0 1.5rem; }
.container-md { max-width: 1024px; margin: 0 auto; padding: 0 1.5rem; }
.text-center { text-align: center; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ===== TEAL GRADIENT ===== */
.teal-gradient { background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%); }

/* ===== PAGE LOADER ===== */
.page-loader { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.spinner { width: 2rem; height: 2rem; border: 2px solid var(--teal-200); border-top-color: var(--teal-600); border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== HEADER / NAVBAR ===== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 4rem; gap: 1rem; }
.header-logo { display: inline-flex; align-items: center; border-radius: var(--radius); padding: 0.25rem 0.5rem; margin-left: -0.5rem; transition: background 0.2s; }
.header-logo:hover { background: #000; }
.header-logo:hover img { filter: brightness(0) invert(1); }
.header-logo img { height: 2rem; width: auto; transition: filter 0.2s; }
.header-nav { display: flex; align-items: center; gap: 0.25rem; }
.nav-link {
  padding: 0.5rem 1rem; font-size: 0.875rem; font-weight: 500; border-radius: 0.5rem;
  color: var(--gray-600); transition: all 0.15s;
}
.nav-link:hover { color: var(--gray-900); background: var(--gray-50); }
.nav-link.active { color: var(--teal-600); background: var(--teal-50); }
.header-cta { display: flex; align-items: center; gap: 0.75rem; }
.btn-mobile-menu { display: none; padding: 0.5rem; border-radius: 0.5rem; color: var(--gray-600); }
.btn-mobile-menu:hover { background: var(--gray-100); }
.btn-mobile-menu svg { width: 1.25rem; height: 1.25rem; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.625rem 1.25rem; font-size: 0.875rem; font-weight: 600;
  border-radius: var(--radius); transition: all 0.15s; white-space: nowrap;
  border: 1px solid transparent;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-lg { padding: 0.75rem 2rem; font-size: 1rem; }
.btn-sm { padding: 0.375rem 0.875rem; font-size: 0.8125rem; }
.btn-primary { background: linear-gradient(135deg, #0d9488, #0f766e); color: #fff; }
.btn-primary:hover { background: linear-gradient(135deg, #0f766e, #0d6b62); box-shadow: 0 4px 12px rgba(13,148,136,.3); }
.btn-outline { background: transparent; border-color: var(--gray-200); color: var(--gray-700); }
.btn-outline:hover { border-color: var(--teal-300); background: var(--teal-50); color: var(--teal-700); }
.btn-outline-teal { background: transparent; border-color: var(--teal-300); color: var(--teal-700); }
.btn-outline-teal:hover { background: var(--teal-50); }
.btn-white { background: #fff; color: var(--teal-700); border-color: transparent; }
.btn-white:hover { background: var(--teal-50); }
.btn-ghost { background: transparent; color: var(--gray-600); }
.btn-ghost:hover { background: var(--gray-100); }
.btn-danger { background: transparent; border-color: #fecaca; color: #dc2626; }
.btn-danger:hover { background: #fef2f2; }

/* ===== BADGES ===== */
.badge {
  display: inline-flex; align-items: center; gap: 0.25rem;
  padding: 0.25rem 0.625rem; font-size: 0.75rem; font-weight: 600;
  border-radius: 999px; border: 1px solid transparent;
}
.badge-teal { background: var(--teal-50); color: var(--teal-700); border-color: var(--teal-200); }
.badge-green { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
.badge-yellow { background: #fefce8; color: #a16207; border-color: #fde047; }
.badge-red { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.badge-gray { background: var(--gray-100); color: var(--gray-600); border-color: var(--gray-200); }
.badge-blue { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }

/* ===== CARDS ===== */
.card {
  background: #fff; border: 1px solid var(--gray-100);
  border-radius: 1rem; box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* ===== GRID LAYOUTS ===== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ===== SECTION SPACING ===== */
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-title { font-size: 1.875rem; font-weight: 700; color: var(--gray-900); margin-bottom: 0.75rem; font-family: 'Montserrat', sans-serif; }
.section-subtitle { font-size: 1.125rem; color: var(--gray-500); }

/* ===== HERO ===== */
.hero { padding: 5rem 0 6rem; background: #fff; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.25rem; margin-bottom: 1.5rem; }
.hero-title { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 700; font-family: 'Montserrat', sans-serif; line-height: 1.15; margin-bottom: 1.5rem; color: var(--gray-900); }
.hero-title .accent { color: var(--teal-600); }
.hero-desc { font-size: 1.25rem; color: var(--gray-500); margin-bottom: 2.5rem; max-width: 42rem; margin-left: auto; margin-right: auto; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ===== STATS ===== */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 4rem; }
.stat-value { font-size: 1.875rem; font-weight: 700; color: var(--gray-900); font-family: 'Montserrat', sans-serif; }
.stat-label { font-size: 0.875rem; color: var(--gray-500); margin-top: 0.25rem; }

/* ===== FORM ===== */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--gray-700); margin-bottom: 0.375rem; }
.form-input {
  width: 100%; padding: 0.625rem 0.875rem; font-size: 0.9375rem;
  border: 1px solid var(--gray-200); border-radius: 0.625rem;
  background: #fff; color: var(--gray-900); transition: border-color 0.15s;
  font-family: inherit;
}
.form-input:focus { outline: none; border-color: var(--teal-400); box-shadow: 0 0 0 3px rgba(13,148,136,.1); }
.form-input.error { border-color: #f87171; }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.75rem center; padding-right: 2.5rem; }
textarea.form-input { resize: vertical; min-height: 6rem; }
.form-error { font-size: 0.8125rem; color: #dc2626; margin-top: 0.25rem; }
.form-success { font-size: 0.875rem; color: #16a34a; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 0.625rem; padding: 0.75rem 1rem; }

/* ===== INPUT WITH ICON ===== */
.input-wrapper { position: relative; }
.input-icon { position: absolute; left: 0.875rem; top: 50%; transform: translateY(-50%); color: var(--gray-400); pointer-events: none; }
.input-wrapper .form-input { padding-left: 2.5rem; }
.input-action { position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--gray-400); cursor: pointer; padding: 0.25rem; border-radius: 0.25rem; }
.input-action:hover { color: var(--gray-600); }

/* ===== MOBILE MENU ===== */
.mobile-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 99; }
.mobile-overlay.open { display: block; }
.mobile-menu {
  display: none; position: fixed; top: 0; right: 0; bottom: 0; width: 18rem;
  background: #fff; z-index: 100; box-shadow: -4px 0 20px rgba(0,0,0,.1);
  flex-direction: column; padding: 1.5rem;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 0.25rem; }
.mobile-nav-link { padding: 0.75rem 1rem; font-size: 0.9375rem; font-weight: 500; color: var(--gray-700); border-radius: 0.625rem; transition: all 0.15s; }
.mobile-nav-link:hover, .mobile-nav-link.active { color: var(--teal-600); background: var(--teal-50); }
.mobile-menu-divider { height: 1px; background: var(--gray-100); margin: 1rem 0; }

/* ===== FOOTER ===== */
.footer { background: var(--gray-900); color: var(--gray-400); padding: 3rem 0; }
.footer-top { display: flex; flex-direction: row; align-items: flex-start; justify-content: space-between; gap: 2rem; margin-bottom: 2.5rem; }
.footer-brand p { font-size: 0.875rem; color: var(--gray-500); line-height: 1.6; margin-top: 0.5rem; }
.footer-logo-link { display: inline-flex; align-items: center; border-radius: 0.625rem; padding: 0.25rem 0.5rem; margin-left: -0.5rem; transition: background 0.2s; }
.footer-logo-link:hover { background: rgba(255,255,255,.1); }
.footer-logo-link img { height: 2rem; width: auto; filter: brightness(0) invert(1); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 2rem 3rem; font-size: 0.875rem; }
.footer-nav a:hover { color: var(--teal-400); }
.footer-bottom { border-top: 1px solid #1f2937; padding-top: 1.5rem; display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 0.75rem; font-size: 0.875rem; flex-wrap: wrap; }
.footer-legal { display: flex; gap: 1rem; }
.footer-legal a:hover { color: var(--teal-400); }

/* ===== COURSE CARD ===== */
.course-card { padding: 1.5rem; display: flex; flex-direction: column; gap: 0; border-radius: 1rem; }
.course-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.course-emoji { font-size: 1.5rem; }
.course-title { font-size: 1.0625rem; font-weight: 700; color: var(--gray-900); margin-bottom: 0.25rem; }
.course-desc { font-size: 0.875rem; color: var(--gray-500); line-height: 1.6; flex: 1; margin-bottom: 1rem; }
.course-meta { display: flex; align-items: center; gap: 1rem; font-size: 0.75rem; color: var(--gray-400); margin-bottom: 1.25rem; }
.course-meta span { display: flex; align-items: center; gap: 0.25rem; }

/* ===== PRICING CARDS ===== */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: start; }
.pricing-card { border-radius: 1.25rem; padding: 2rem; border: 1px solid var(--gray-200); }
.pricing-card.popular { border-color: var(--teal-400); box-shadow: 0 0 0 2px var(--teal-400); }
.pricing-name { font-size: 1.125rem; font-weight: 700; color: var(--gray-900); margin-bottom: 0.25rem; }
.pricing-desc { font-size: 0.875rem; color: var(--gray-500); margin-bottom: 1.5rem; }
.pricing-price { font-size: 2.5rem; font-weight: 800; color: var(--gray-900); font-family: 'Montserrat', sans-serif; }
.pricing-period { font-size: 0.875rem; color: var(--gray-500); font-weight: 400; }
.pricing-features { margin: 1.5rem 0; display: flex; flex-direction: column; gap: 0.625rem; }
.pricing-feature { display: flex; align-items: center; gap: 0.625rem; font-size: 0.875rem; }
.pricing-feature.included { color: var(--gray-700); }
.pricing-feature.excluded { color: var(--gray-400); }
.feature-check { width: 1.125rem; height: 1.125rem; color: var(--teal-600); flex-shrink: 0; }
.feature-x { width: 1.125rem; height: 1.125rem; color: var(--gray-300); flex-shrink: 0; }

/* ===== TASK CARD ===== */
.task-card { border-radius: 1rem; border: 1px solid var(--gray-100); padding: 1.5rem; background: #fff; display: flex; flex-direction: column; gap: 0.75rem; cursor: pointer; text-align: left; width: 100%; transition: all 0.2s; }
.task-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.task-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }
.task-category { font-size: 0.75rem; font-weight: 600; padding: 0.25rem 0.625rem; border-radius: 999px; }
.task-title { font-size: 0.9375rem; font-weight: 600; color: var(--gray-900); line-height: 1.4; }
.task-title:hover { color: var(--teal-700); }
.task-desc { font-size: 0.8125rem; color: var(--gray-500); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.task-footer { display: flex; align-items: center; justify-content: space-between; }
.task-meta { display: flex; align-items: center; gap: 0.75rem; font-size: 0.75rem; color: var(--gray-400); }
.task-meta span { display: flex; align-items: center; gap: 0.25rem; }

/* ===== MODAL ===== */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 200; align-items: center; justify-content: center; padding: 1.5rem; }
.modal-overlay.open { display: flex; }
.modal { background: #fff; border-radius: 1.25rem; max-width: 42rem; width: 100%; max-height: 90vh; overflow-y: auto; }
.modal-header { padding: 1.5rem 1.5rem 1rem; display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--gray-100); }
.modal-body { padding: 1.5rem; }
.modal-close { padding: 0.375rem; border-radius: 0.5rem; color: var(--gray-400); flex-shrink: 0; }
.modal-close:hover { background: var(--gray-100); color: var(--gray-700); }

/* ===== PROMPT BOX ===== */
.prompt-box { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: 0.75rem; padding: 1rem; margin: 1rem 0; font-size: 0.8125rem; line-height: 1.7; color: var(--gray-700); white-space: pre-wrap; font-family: 'SF Mono', 'Fira Code', monospace; max-height: 12rem; overflow-y: auto; }
.copy-btn { display: inline-flex; align-items: center; gap: 0.375rem; font-size: 0.8125rem; font-weight: 500; padding: 0.375rem 0.75rem; border-radius: 0.5rem; border: 1px solid var(--gray-200); color: var(--gray-600); transition: all 0.15s; }
.copy-btn:hover { background: var(--gray-100); }
.copy-btn.copied { color: var(--teal-600); border-color: var(--teal-200); background: var(--teal-50); }

/* ===== SEARCH BAR ===== */
.search-bar { position: relative; }
.search-bar input { padding-left: 2.75rem; }
.search-icon { position: absolute; left: 0.875rem; top: 50%; transform: translateY(-50%); color: var(--gray-400); pointer-events: none; }

/* ===== TABS / FILTERS ===== */
.filter-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.filter-btn { padding: 0.375rem 0.875rem; font-size: 0.8125rem; font-weight: 500; border-radius: 999px; border: 1px solid var(--gray-200); color: var(--gray-600); background: #fff; transition: all 0.15s; }
.filter-btn:hover { border-color: var(--teal-300); color: var(--teal-700); }
.filter-btn.active { background: var(--teal-600); color: #fff; border-color: var(--teal-600); }

/* ===== COURSE PLAYER ===== */
.player-layout { display: grid; grid-template-columns: 18rem 1fr; min-height: calc(100vh - 4rem); }
.player-sidebar { border-right: 1px solid var(--gray-100); padding: 1.5rem; overflow-y: auto; background: var(--gray-50); }
.player-main { padding: 2.5rem; overflow-y: auto; }
.lesson-nav { display: flex; flex-direction: column; gap: 1rem; }
.module-item { }
.module-title { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gray-400); padding: 0.5rem 0.75rem; }
.lesson-item { display: flex; align-items: center; gap: 0.625rem; padding: 0.625rem 0.75rem; border-radius: 0.625rem; font-size: 0.875rem; color: var(--gray-600); cursor: pointer; transition: all 0.15s; }
.lesson-item:hover { background: var(--gray-100); color: var(--gray-900); }
.lesson-item.active { background: var(--teal-50); color: var(--teal-700); font-weight: 600; }
.lesson-item.completed { color: var(--teal-600); }
.lesson-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; border: 2px solid var(--gray-300); flex-shrink: 0; }
.lesson-item.active .lesson-dot { background: var(--teal-600); border-color: var(--teal-600); }
.lesson-item.completed .lesson-dot { background: var(--teal-500); border-color: var(--teal-500); }
.lesson-content { line-height: 1.8; }
.lesson-content h2 { font-size: 1.25rem; font-weight: 700; color: var(--gray-900); margin: 1.5rem 0 0.75rem; font-family: 'Montserrat', sans-serif; }
.lesson-content h3 { font-size: 1rem; font-weight: 700; color: var(--gray-900); margin: 1.25rem 0 0.5rem; }
.lesson-content p { margin-bottom: 1rem; color: var(--gray-700); }
.lesson-content ul, .lesson-content ol { margin: 0.75rem 0 1rem 1.25rem; }
.lesson-content li { margin-bottom: 0.375rem; color: var(--gray-700); list-style: disc; }
.lesson-content code { background: var(--gray-100); padding: 0.125rem 0.375rem; border-radius: 0.25rem; font-family: monospace; font-size: 0.875em; }
.lesson-content pre { background: var(--gray-800); color: #e5e7eb; padding: 1rem 1.25rem; border-radius: 0.75rem; overflow-x: auto; margin: 1rem 0; font-size: 0.8125rem; line-height: 1.6; }
.lesson-content pre code { background: none; padding: 0; font-size: inherit; }
.lesson-content blockquote { border-left: 3px solid var(--teal-400); padding-left: 1rem; color: var(--gray-600); font-style: italic; margin: 1rem 0; }
.lesson-content strong { font-weight: 600; color: var(--gray-900); }

/* ===== QUIZ ENGINE ===== */
.quiz-container { max-width: 40rem; }
.quiz-question { font-size: 1.0625rem; font-weight: 600; color: var(--gray-900); margin-bottom: 1.25rem; line-height: 1.5; }
.quiz-options { display: flex; flex-direction: column; gap: 0.625rem; margin-bottom: 1.5rem; }
.quiz-option { display: flex; align-items: center; gap: 0.875rem; padding: 0.875rem 1rem; border: 1px solid var(--gray-200); border-radius: 0.75rem; cursor: pointer; font-size: 0.9375rem; transition: all 0.15s; text-align: left; background: #fff; width: 100%; }
.quiz-option:hover:not(.answered) { border-color: var(--teal-300); background: var(--teal-50); }
.quiz-option.correct { border-color: #22c55e; background: #f0fdf4; color: #15803d; }
.quiz-option.incorrect { border-color: #f87171; background: #fef2f2; color: #b91c1c; }
.quiz-option.selected { border-color: var(--teal-400); background: var(--teal-50); }
.quiz-letter { width: 1.75rem; height: 1.75rem; border-radius: 50%; border: 1.5px solid var(--gray-300); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; flex-shrink: 0; }
.quiz-result { padding: 1rem; border-radius: 0.75rem; margin-bottom: 1rem; font-size: 0.875rem; }
.quiz-result.correct { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; }
.quiz-result.incorrect { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }

/* ===== DASHBOARD ===== */
.dashboard-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; }
.dashboard-card { background: #fff; border: 1px solid var(--gray-100); border-radius: 1rem; padding: 1.5rem; }
.stat-card { display: flex; align-items: center; gap: 1rem; }
.stat-icon { width: 3rem; height: 3rem; border-radius: 0.75rem; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; }
.progress-bar-wrap { background: var(--gray-100); border-radius: 999px; height: 0.5rem; overflow: hidden; margin-top: 0.5rem; }
.progress-bar-fill { height: 100%; background: linear-gradient(90deg, var(--teal-500), var(--teal-600)); border-radius: 999px; transition: width 0.5s ease; }

/* ===== TOAST ===== */
.toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999; display: flex; flex-direction: column; gap: 0.5rem; pointer-events: none; }
.toast { background: var(--gray-900); color: #fff; padding: 0.875rem 1.25rem; border-radius: 0.75rem; font-size: 0.875rem; box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 0.5rem; pointer-events: all; min-width: 16rem; max-width: 24rem; animation: slideIn 0.25s ease; }
.toast.success { background: #064e3b; }
.toast.error { background: #7f1d1d; }
.toast.hiding { animation: slideOut 0.25s ease forwards; }
@keyframes slideIn { from { opacity: 0; transform: translateX(1rem); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideOut { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(1rem); } }

/* ===== USER AVATAR ===== */
.user-avatar { width: 2rem; height: 2rem; border-radius: 50%; background: linear-gradient(135deg, #0d9488, #0f766e); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; flex-shrink: 0; }

/* ===== DROPDOWN ===== */
.dropdown { position: relative; }
.dropdown-toggle { display: flex; align-items: center; gap: 0.5rem; padding: 0.25rem 0.75rem 0.25rem 0.25rem; border-radius: 999px; border: 1px solid var(--gray-200); transition: all 0.15s; }
.dropdown-toggle:hover { border-color: var(--teal-300); background: var(--teal-50); }
.dropdown-menu { display: none; position: absolute; top: calc(100% + 0.5rem); right: 0; min-width: 12rem; background: #fff; border: 1px solid var(--gray-200); border-radius: 0.75rem; box-shadow: var(--shadow-md); z-index: 100; overflow: hidden; }
.dropdown-menu.open { display: block; }
.dropdown-item { display: flex; align-items: center; gap: 0.625rem; padding: 0.625rem 1rem; font-size: 0.875rem; color: var(--gray-700); transition: background 0.1s; cursor: pointer; width: 100%; }
.dropdown-item:hover { background: var(--gray-50); }
.dropdown-item.danger { color: #dc2626; }
.dropdown-item.danger:hover { background: #fef2f2; }
.dropdown-separator { height: 1px; background: var(--gray-100); margin: 0.25rem 0; }

/* ===== FAQ ===== */
.faq-item { background: #fff; border: 1px solid var(--gray-100); border-radius: 1rem; padding: 1.25rem 1.5rem; cursor: pointer; transition: box-shadow 0.15s; text-align: left; width: 100%; }
.faq-item:hover { box-shadow: var(--shadow); }
.faq-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.faq-q { font-size: 0.9375rem; font-weight: 600; color: var(--gray-900); line-height: 1.4; }
.faq-a { font-size: 0.875rem; color: var(--gray-600); line-height: 1.7; margin-top: 0.75rem; display: none; }
.faq-item.open .faq-a { display: block; }

/* ===== PAGE HEADER ===== */
.page-hero { padding: 5rem 0 4rem; background: #fff; border-bottom: 1px solid var(--gray-100); }
.eyebrow { font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--teal-600); margin-bottom: 1rem; }

/* ===== SKELETON / LOADING ===== */
.skeleton { background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 0.5rem; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ===== SIGN IN / REGISTER ===== */
.auth-page { min-height: 100vh; display: flex; flex-direction: column; background: var(--gray-50); }
.auth-card { background: #fff; border: 1px solid var(--gray-200); border-radius: 1.25rem; padding: 2.5rem; width: 100%; max-width: 28rem; margin: 0 auto; box-shadow: var(--shadow-md); }
.auth-logo { display: block; margin: 0 auto 2rem; height: 2.5rem; width: auto; }

/* ===== TOOL CARD ===== */
.tool-card { border-radius: 1.25rem; border: 1px solid; padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; transition: all 0.2s; }
.tool-card-available:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.tool-icon { font-size: 2rem; }
.tool-name { font-size: 1.0625rem; font-weight: 700; color: var(--gray-900); font-family: 'Montserrat', sans-serif; }
.tool-cat { font-size: 0.75rem; color: var(--gray-400); }
.tool-tagline { font-size: 0.875rem; color: var(--gray-600); line-height: 1.6; }
.tool-highlights { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.tool-highlight { font-size: 0.75rem; font-weight: 500; padding: 0.25rem 0.625rem; border-radius: 999px; }

/* ===== ABOUT PAGE ===== */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

/* ===== SOLUTIONS ===== */
.solution-card { border-radius: 1.5rem; border: 1px solid; padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; cursor: pointer; text-align: left; width: 100%; transition: all 0.2s; background: #fff; }
.solution-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.solution-card.premium { background: rgba(240,253,250,.4); border-color: var(--teal-200); }
.solution-card.free-guide { border-color: var(--gray-100); }

/* ===== PASSWORD STRENGTH ===== */
.pw-bars { display: flex; gap: 0.25rem; margin-top: 0.5rem; }
.pw-bar { height: 4px; flex: 1; border-radius: 999px; background: var(--gray-200); transition: background 0.2s; }
.pw-bar.weak { background: #ef4444; }
.pw-bar.fair { background: #f97316; }
.pw-bar.good { background: #eab308; }
.pw-bar.strong { background: #22c55e; }
.pw-rules { display: flex; flex-direction: column; gap: 0.25rem; margin-top: 0.5rem; }
.pw-rule { display: flex; align-items: center; gap: 0.375rem; font-size: 0.75rem; color: var(--gray-400); }
.pw-rule.pass { color: #16a34a; }

/* ===== ICONS (SVG inline) ===== */
.icon { display: inline-flex; width: 1rem; height: 1rem; flex-shrink: 0; }
.icon-lg { width: 1.5rem; height: 1.5rem; }
.icon-xl { width: 2rem; height: 2rem; }

/* ===== STARS ===== */
.stars { display: flex; gap: 0.125rem; }
.star { width: 1rem; height: 1rem; fill: #fbbf24; color: #fbbf24; }

/* ===== CTA BANNER ===== */
.cta-banner { background: var(--teal-600); padding: 4rem 0; }
.cta-banner h2 { color: #fff; font-size: 2rem; font-weight: 700; margin-bottom: 1rem; font-family: 'Montserrat', sans-serif; }
.cta-banner p { color: rgba(255,255,255,.85); font-size: 1.125rem; margin-bottom: 2rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .header-nav, .header-cta { display: none; }
  .btn-mobile-menu { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; }
  .player-layout { grid-template-columns: 1fr; }
  .player-sidebar { display: none; }
  .player-sidebar.mobile-open { display: block; position: fixed; inset: 0; z-index: 50; overflow-y: auto; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 1.5rem; border: none; background: transparent; box-shadow: none; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; gap: 1rem; }
}
