/* ============================================
   LACA ACADEMIA — LMS Design System
   Extends the main LACA design tokens
   ============================================ */

/* ---- REUSE MAIN TOKENS ---- */
:root {
  --lms-sidebar: 280px;
  --lms-header: 64px;
  --lms-accent: #78c19a;
  --lms-accent-dark: #5ba37e;
  --lms-bg: #f4f6f8;
  --lms-card-bg: #ffffff;
  --lms-text: #3a4a5c;
  --lms-text-light: #7a8a9c;
  --lms-border: #e2e8f0;
  --lms-success: #48bb78;
  --lms-warning: #ed8936;
  --lms-danger: #e53e3e;
  --lms-radius: 12px;
  --lms-shadow: 0 2px 12px rgba(0,0,0,0.08);
  --lms-shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
}

/* ---- BASE ---- */
.lms-page {
  font-family: 'MuseoSans-300', 'Segoe UI', sans-serif;
  color: var(--lms-text);
  background: var(--lms-bg);
  min-height: 100vh;
}
.lms-page *, .lms-page *::before, .lms-page *::after { box-sizing: border-box; margin: 0; padding: 0; }
.lms-page a { color: var(--lms-accent-dark); text-decoration: none; }

/* ============ LOGIN / REGISTER PAGE ============ */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
}
.auth-brand {
  flex: 1;
  background: linear-gradient(135deg, #475c6d 0%, #3a4f5f 50%, #78c19a 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 60px 40px;
  color: #fff;
  position: relative; overflow: hidden;
}
.auth-brand::before {
  content: ''; position: absolute; inset: 0;
  background: url('assets/img/BannerWebLACA_1600x340px_Institucional.jpg') center/cover;
  opacity: 0.15;
}
.auth-brand-content { position: relative; z-index: 2; text-align: center; max-width: 440px; }
.auth-brand-logo { height: 60px; margin-bottom: 32px; filter: brightness(10); }
.auth-brand h1 {
  font-family: 'MuseoSans-900', sans-serif;
  font-size: 2.2rem; margin-bottom: 16px; line-height: 1.2;
}
.auth-brand p {
  font-family: 'MuseoSans-300', sans-serif;
  font-size: 1.05rem; opacity: 0.9; line-height: 1.6;
}
.auth-features { margin-top: 40px; text-align: left; }
.auth-feature {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px; font-size: 0.95rem;
}
.auth-feature-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* Auth form panel */
.auth-form-panel {
  flex: 0 0 520px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 60px 48px;
  background: #fff;
}
.auth-form-box { width: 100%; max-width: 380px; }
.auth-form-title {
  font-family: 'MuseoSans-900', sans-serif;
  font-size: 1.6rem; margin-bottom: 8px; color: #475c6d;
}
.auth-form-sub {
  font-size: 0.9rem; color: var(--lms-text-light); margin-bottom: 32px;
}
.auth-tabs {
  display: flex; gap: 0; margin-bottom: 32px;
  border: 1px solid var(--lms-border); border-radius: 8px; overflow: hidden;
}
.auth-tab {
  flex: 1; padding: 12px; text-align: center;
  font-family: 'MuseoSans-700', sans-serif; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 1px;
  background: transparent; border: none; cursor: pointer;
  color: var(--lms-text-light); transition: all 0.3s;
}
.auth-tab.active {
  background: var(--lms-accent); color: #fff;
}

/* Form elements */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; font-family: 'MuseoSans-500', sans-serif;
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--lms-text-light); margin-bottom: 6px;
}
.form-input {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--lms-border); border-radius: 8px;
  font-family: 'MuseoSans-300', sans-serif; font-size: 0.95rem;
  color: var(--lms-text); transition: border-color 0.3s;
  background: #fafbfc; outline: none;
}
.form-input:focus { border-color: var(--lms-accent); background: #fff; }
.form-input::placeholder { color: #b0bec5; }

.btn-lms {
  width: 100%; padding: 14px;
  background: var(--lms-accent); color: #fff; border: none;
  border-radius: 8px; font-family: 'MuseoSans-700', sans-serif;
  font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px;
  cursor: pointer; transition: all 0.3s;
}
.btn-lms:hover { background: var(--lms-accent-dark); transform: translateY(-1px); }

.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 24px 0; color: var(--lms-text-light); font-size: 0.8rem;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--lms-border);
}
.auth-link { text-align: center; font-size: 0.85rem; margin-top: 16px; }

/* ============ HERO CAROUSEL ============ */
.carousel-wrapper {
  position: relative;
  width: 100%;
  max-height: 340px;
  overflow: hidden;
  background: #1a1a2e;
}
.carousel-track {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 21.25%; /* 340 / 1600 = 21.25% aspect ratio */
}
.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 1;
}
.carousel-slide.active {
  opacity: 1;
  z-index: 2;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(71,92,109,0.45);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 1.4rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.carousel-arrow:hover {
  background: rgba(71,92,109,0.7);
  transform: translateY(-50%) scale(1.1);
}
.carousel-prev { left: 16px; }
.carousel-next { right: 16px; }

/* Dots */
.carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
}
.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.9);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.35);
}
.carousel-dot.active {
  background: #fff;
  border-color: #fff;
  transform: scale(1.2);
  box-shadow: 0 1px 6px rgba(0,0,0,0.4);
}
.carousel-dot:hover:not(.active) {
  background: rgba(255,255,255,0.4);
}

/* ============ SEARCH SECTION ============ */
.catalog-search-section {
  background: #fff;
  padding: 28px 24px 20px;
  text-align: center;
  border-bottom: 1px solid var(--lms-border);
}
.catalog-search-inner {
  max-width: 700px;
  margin: 0 auto;
}
.catalog-search-title {
  font-family: 'MuseoSans-700', sans-serif;
  font-size: 1.3rem;
  color: #475c6d;
  margin-bottom: 6px;
}
.catalog-search-subtitle {
  font-family: 'MuseoSans-300', sans-serif;
  font-size: 0.9rem;
  color: var(--lms-text-light);
  margin-bottom: 18px;
}
.catalog-search {
  max-width: 500px; margin: 0 auto; position: relative;
}
.catalog-search input {
  width: 100%; padding: 14px 20px 14px 48px;
  border: 1.5px solid var(--lms-border); border-radius: 50px;
  font-family: 'MuseoSans-300', sans-serif; font-size: 0.95rem;
  outline: none; box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  background: #fafbfc; transition: border-color 0.3s, box-shadow 0.3s;
}
.catalog-search input:focus {
  border-color: var(--lms-accent);
  box-shadow: 0 2px 12px rgba(120,193,154,0.2);
  background: #fff;
}
.catalog-search svg {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  color: #999;
}

.catalog-nav {
  background: #fff; border-bottom: 1px solid var(--lms-border);
  position: sticky; top: 0; z-index: 50;
}
.catalog-nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 60px;
}
.catalog-nav-logo { height: 32px; }
.catalog-nav-links { display: flex; gap: 28px; align-items: center; }
.catalog-nav-links a {
  font-family: 'RobotoCondensed-Bold', sans-serif;
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--lms-text); transition: color 0.3s;
}
.catalog-nav-links a:hover { color: var(--lms-accent); }
.catalog-user {
  display: flex; align-items: center; gap: 10px;
  font-family: 'MuseoSans-500', sans-serif; font-size: 0.85rem;
}
.catalog-user-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--lms-accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'MuseoSans-700', sans-serif; font-size: 0.8rem;
}

/* Filter tabs */
.catalog-filters {
  max-width: 1200px; margin: 0 auto; padding: 28px 24px 0;
  display: flex; gap: 10px; flex-wrap: wrap;
}
.filter-chip {
  padding: 8px 20px; border-radius: 50px;
  border: 1.5px solid var(--lms-border); background: #fff;
  font-family: 'MuseoSans-500', sans-serif; font-size: 0.8rem;
  color: var(--lms-text-light); cursor: pointer; transition: all 0.3s;
}
.filter-chip:hover, .filter-chip.active {
  background: var(--lms-accent); color: #fff; border-color: var(--lms-accent);
}

/* Course cards */
.catalog-grid {
  max-width: 1200px; margin: 0 auto; padding: 28px 24px 60px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.course-card {
  background: #fff; border-radius: var(--lms-radius);
  overflow: hidden; border: 1px solid var(--lms-border);
  transition: transform 0.3s, box-shadow 0.3s; cursor: pointer;
}
.course-card:hover { transform: translateY(-4px); box-shadow: var(--lms-shadow-lg); }
.course-card-img {
  width: 100%; height: 180px; overflow: hidden; position: relative;
}
.course-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.course-card:hover .course-card-img img { transform: scale(1.05); }
.course-card-badge {
  position: absolute; top: 12px; left: 12px;
  padding: 4px 12px; border-radius: 50px;
  font-family: 'MuseoSans-700', sans-serif; font-size: 0.65rem;
  text-transform: uppercase; letter-spacing: 1px;
}
.badge-new { background: var(--lms-accent); color: #fff; }
.badge-popular { background: #ed8936; color: #fff; }
.badge-advanced { background: #475c6d; color: #fff; }
.course-card-body { padding: 20px; }
.course-card-category {
  font-family: 'MuseoSans-700', sans-serif; font-size: 0.65rem;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--lms-accent-dark); margin-bottom: 8px;
}
.course-card-title {
  font-family: 'MuseoSans-700', sans-serif; font-size: 1.05rem;
  margin-bottom: 8px; color: #2d3a4a; line-height: 1.3;
}
.course-card-desc {
  font-size: 0.85rem; color: var(--lms-text-light);
  line-height: 1.5; margin-bottom: 16px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.course-card-meta {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; border-top: 1px solid var(--lms-border);
  font-size: 0.78rem; color: var(--lms-text-light);
}
.course-card-meta span { display: flex; align-items: center; gap: 4px; }
.course-card-progress { margin-top: 12px; }
.progress-bar {
  width: 100%; height: 4px; background: #edf2f7; border-radius: 2px; overflow: hidden;
}
.progress-fill { height: 100%; background: var(--lms-accent); border-radius: 2px; transition: width 0.5s; }
.progress-text {
  font-size: 0.72rem; color: var(--lms-text-light); margin-top: 4px;
  font-family: 'MuseoSans-500', sans-serif;
}

/* ============ COURSE PLAYER ============ */
.player-layout {
  display: grid; grid-template-columns: 1fr var(--lms-sidebar);
  min-height: calc(100vh - var(--lms-header));
}
.player-main { padding: 0; overflow-y: auto; height: calc(100vh - var(--lms-header)); }

/* Video */
.video-container {
  width: 100%; aspect-ratio: 16/9; background: #000;
  position: relative;
}
.video-container iframe, .video-container video {
  width: 100%; height: 100%; border: none;
}
.video-placeholder {
  width: 100%; height: 100%; display: flex;
  align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #fff; flex-direction: column; gap: 12px;
}
.video-placeholder svg { opacity: 0.5; }

/* Content area below video */
.player-content { padding: 28px 32px 60px; }
.player-course-title {
  font-family: 'MuseoSans-900', sans-serif; font-size: 1.5rem;
  margin-bottom: 4px; color: #2d3a4a;
}
.player-lesson-title {
  font-family: 'MuseoSans-500', sans-serif; font-size: 1rem;
  color: var(--lms-text-light); margin-bottom: 20px;
}

/* Tabs */
.player-tabs {
  display: flex; gap: 0; border-bottom: 2px solid var(--lms-border); margin-bottom: 24px;
}
.player-tab {
  padding: 12px 24px; font-family: 'MuseoSans-700', sans-serif;
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px;
  color: var(--lms-text-light); background: none; border: none;
  cursor: pointer; border-bottom: 2px solid transparent;
  margin-bottom: -2px; transition: all 0.3s;
}
.player-tab.active { color: var(--lms-accent-dark); border-bottom-color: var(--lms-accent); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Description tab */
.lesson-desc { font-size: 0.92rem; line-height: 1.7; color: var(--lms-text); }
.lesson-desc h3 {
  font-family: 'MuseoSans-700', sans-serif; font-size: 1.1rem;
  margin: 20px 0 10px;
}

/* Materials tab */
.materials-list { list-style: none; }
.material-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border: 1px solid var(--lms-border);
  border-radius: 8px; margin-bottom: 10px;
  transition: background 0.3s; cursor: pointer;
}
.material-item:hover { background: #f7fafc; }
.material-icon {
  width: 40px; height: 40px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.material-icon.pdf { background: #fee2e2; color: #e53e3e; }
.material-icon.video { background: #e0f2fe; color: #0284c7; }
.material-icon.doc { background: #e0e7ff; color: #4f46e5; }
.material-info { flex: 1; }
.material-name { font-family: 'MuseoSans-500', sans-serif; font-size: 0.9rem; }
.material-size { font-size: 0.75rem; color: var(--lms-text-light); }
.material-download {
  padding: 6px 16px; border-radius: 6px;
  background: var(--lms-accent); color: #fff; border: none;
  font-family: 'MuseoSans-700', sans-serif; font-size: 0.72rem;
  text-transform: uppercase; cursor: pointer; transition: background 0.3s;
}
.material-download:hover { background: var(--lms-accent-dark); }

/* ---- SIDEBAR (Syllabus) ---- */
.player-sidebar {
  background: #fff; border-left: 1px solid var(--lms-border);
  overflow-y: auto; height: calc(100vh - var(--lms-header));
  position: sticky; top: var(--lms-header);
}
.sidebar-header {
  padding: 18px 20px; border-bottom: 1px solid var(--lms-border);
  font-family: 'MuseoSans-700', sans-serif; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 1px; color: #475c6d;
  display: flex; align-items: center; justify-content: space-between;
}
.sidebar-progress-text { font-size: 0.72rem; color: var(--lms-text-light); font-family: 'MuseoSans-300', sans-serif; }

.module-group { border-bottom: 1px solid var(--lms-border); }
.module-header {
  padding: 14px 20px; display: flex; align-items: center;
  justify-content: space-between; cursor: pointer;
  font-family: 'MuseoSans-700', sans-serif; font-size: 0.82rem;
  color: var(--lms-text); transition: background 0.2s;
}
.module-header:hover { background: #f7fafc; }
.module-header .chevron { transition: transform 0.3s; font-size: 0.7rem; }
.module-group.open .chevron { transform: rotate(90deg); }
.module-lessons { display: none; }
.module-group.open .module-lessons { display: block; }

.lesson-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px 10px 36px; cursor: pointer;
  font-size: 0.82rem; color: var(--lms-text-light);
  transition: all 0.2s; border-left: 3px solid transparent;
}
.lesson-item:hover { background: #f0faf4; }
.lesson-item.active { background: #e6f7ee; border-left-color: var(--lms-accent); color: var(--lms-text); font-family: 'MuseoSans-500', sans-serif; }
.lesson-item.completed { color: var(--lms-success); }
.lesson-check {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--lms-border); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 0.6rem;
}
.lesson-item.completed .lesson-check { background: var(--lms-success); border-color: var(--lms-success); color: #fff; }
.lesson-item.active .lesson-check { border-color: var(--lms-accent); }
.lesson-duration { margin-left: auto; font-size: 0.7rem; white-space: nowrap; }

/* ---- ACADEMIC CHATBOT ---- */
.acad-chat-toggle {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  width: 56px; height: 56px; border-radius: 50%;
  background: #475c6d; color: #fff; border: none;
  cursor: pointer; box-shadow: var(--lms-shadow-lg);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s; font-size: 1.4rem;
}
.acad-chat-toggle:hover { transform: scale(1.08); }
.acad-chat-panel {
  position: fixed; bottom: 90px; right: 24px; z-index: 998;
  width: 380px; max-height: 520px;
  background: #fff; border-radius: 16px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.18);
  display: none; flex-direction: column; overflow: hidden;
}
.acad-chat-panel.open { display: flex; }
.acad-chat-head {
  padding: 16px 20px; background: #475c6d; color: #fff;
  display: flex; align-items: center; gap: 12px;
}
.acad-chat-head h4 { font-family: 'MuseoSans-700', sans-serif; font-size: 0.9rem; flex: 1; }
.acad-chat-close { background: none; border: none; color: #fff; cursor: pointer; font-size: 1.1rem; }
.acad-chat-msgs {
  flex: 1; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
  max-height: 340px; min-height: 200px;
}
.acad-msg {
  max-width: 85%; padding: 10px 14px; border-radius: 12px;
  font-size: 0.85rem; line-height: 1.5;
}
.acad-msg.bot { background: #f1f5f9; align-self: flex-start; border-bottom-left-radius: 4px; }
.acad-msg.user { background: var(--lms-accent); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.acad-chat-input-area {
  padding: 12px 16px; border-top: 1px solid var(--lms-border);
  display: flex; gap: 8px;
}
.acad-chat-input {
  flex: 1; padding: 10px 14px; border: 1.5px solid var(--lms-border);
  border-radius: 8px; font-family: 'MuseoSans-300', sans-serif;
  font-size: 0.85rem; outline: none;
}
.acad-chat-input:focus { border-color: var(--lms-accent); }
.acad-chat-send {
  width: 38px; height: 38px; border-radius: 8px;
  background: var(--lms-accent); color: #fff; border: none;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}

/* ============ PHONE FLAG SELECTOR ============ */
.phone-input-wrapper {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 1.5px solid var(--lms-border);
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  overflow: visible;
}
.phone-input-wrapper:focus-within {
  border-color: var(--lms-accent);
  box-shadow: 0 0 0 3px rgba(120,193,154,0.15);
}

/* Flag button */
.phone-flag-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 12px 0 14px;
  background: #f7f9fb;
  border: none;
  border-right: 1.5px solid var(--lms-border);
  border-radius: 10px 0 0 10px;
  cursor: pointer;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--lms-text);
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s;
  min-width: 94px;
  height: 46px;
  flex-shrink: 0;
}
.phone-flag-btn:hover { background: #eef2f7; }
.phone-flag-btn #selectedFlag { font-size: 1.3rem; line-height: 1; }
.phone-flag-btn #selectedDialCode { font-size: 0.82rem; letter-spacing: -0.2px; }
.phone-chevron {
  margin-left: 2px;
  opacity: 0.5;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.phone-flag-btn[aria-expanded="true"] .phone-chevron { transform: rotate(180deg); }

/* The number input inside the wrapper */
.phone-number-input {
  flex: 1;
  border: none !important;
  border-radius: 0 10px 10px 0 !important;
  box-shadow: none !important;
  height: 46px;
  padding-left: 14px;
  background: transparent;
}
.phone-number-input:focus { outline: none; box-shadow: none !important; }

/* Country dropdown panel */
.country-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 9999;
  background: #fff;
  border: 1.5px solid var(--lms-border);
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.14);
  width: 280px;
  max-height: 300px;
  overflow: hidden;
  flex-direction: column;
  animation: dropFadeIn 0.18s ease;
}
.country-dropdown.open { display: flex; }

@keyframes dropFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Search inside dropdown */
.country-search-box {
  padding: 10px 12px 8px;
  border-bottom: 1px solid var(--lms-border);
  flex-shrink: 0;
}
.country-search-box input {
  width: 100%;
  border: 1.5px solid var(--lms-border);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
  color: var(--lms-text);
  transition: border-color 0.15s;
}
.country-search-box input:focus { border-color: var(--lms-accent); }

/* Country list */
#countryList {
  list-style: none;
  overflow-y: auto;
  max-height: 230px;
  padding: 6px 0;
  margin: 0;
}
#countryList::-webkit-scrollbar { width: 5px; }
#countryList::-webkit-scrollbar-track { background: transparent; }
#countryList::-webkit-scrollbar-thumb { background: var(--lms-border); border-radius: 10px; }

#countryList li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  cursor: pointer;
  transition: background 0.12s;
  font-size: 0.875rem;
  color: var(--lms-text);
}
#countryList li:hover { background: #f0faf5; }

.c-flag { font-size: 1.2rem; flex-shrink: 0; }
.c-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-dial {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--lms-accent-dark);
  background: #eef8f3;
  padding: 2px 7px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .auth-brand { display: none; }
  .auth-form-panel { flex: 1; padding: 40px 24px; }
  .player-layout { grid-template-columns: 1fr; }
  .player-sidebar { display: none; }
  .catalog-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .catalog-search-title { font-size: 1.1rem; }
  .catalog-search-section { padding: 20px 16px 16px; }
  .carousel-arrow { width: 34px; height: 34px; font-size: 1rem; }
  .carousel-prev { left: 8px; }
  .carousel-next { right: 8px; }
  .acad-chat-panel { width: calc(100vw - 32px); right: 16px; }
}
