/* =============================================
   모두잇 클래스 - 강의 플랫폼 스타일
   ============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cp: #7C3AED;
  --cp-dark: #5B21B6;
  --cp-light: #A78BFA;
  --cp-subtle: #EDE9FE;
  --cp-bg: #F5F3FF;
  --green: #059669;
  --green-subtle: #ECFDF5;
  --dark: #111827;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-700: #374151;
  --white: #FFFFFF;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow: 0 1px 4px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.06);
  --shadow-hover: 0 8px 32px rgba(124,58,237,0.14), 0 2px 8px rgba(0,0,0,0.08);
  --trans: 0.2s ease;
}

body {
  font-family: 'Noto Sans KR', sans-serif;
  color: var(--dark);
  background: var(--gray-50);
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
ul { list-style: none; }

/* ===== CONTAINER ===== */
.cls-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== HEADER ===== */
.cls-header {
  position: sticky; top: 0; z-index: 200;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.cls-header .cls-container {
  display: flex; align-items: center; height: 64px; gap: 24px;
}

/* Logo */
.cls-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.cls-logo img { width: 36px; height: 36px; object-fit: contain; }
.cls-logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.cls-logo-main { font-size: 1rem; font-weight: 800; color: var(--dark); }
.cls-logo-sub {
  font-size: 0.58rem; font-weight: 800; letter-spacing: 3px;
  color: var(--cp); text-transform: uppercase;
}

/* Nav */
.cls-nav { display: flex; align-items: center; gap: 2px; flex: 1; }
.cls-nav-link {
  padding: 6px 10px; font-size: 0.85rem; font-weight: 500;
  color: var(--gray-700); border-radius: 8px;
  transition: all var(--trans); white-space: nowrap;
}
.cls-nav-link:hover { background: var(--cp-subtle); color: var(--cp); font-weight: 600; }
.cls-nav-link.active { background: var(--cp-subtle); color: var(--cp); font-weight: 700; }
.cls-coming { opacity: 0.55; pointer-events: none; }
.cls-coming:hover { background: none !important; color: var(--gray-500) !important; }
.cls-badge-soon {
  display: inline-block; font-size: 0.6rem; font-weight: 700;
  padding: 1px 5px; background: var(--gray-200); color: var(--gray-500);
  border-radius: 4px; margin-left: 3px; vertical-align: middle;
}

/* Header Right */
.cls-header-right { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }
.cls-btn-login {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 20px; background: var(--cp); color: var(--white);
  font-size: 0.85rem; font-weight: 700; border: none; border-radius: 50px;
  transition: all var(--trans);
}
.cls-btn-login:hover { background: var(--cp-dark); transform: translateY(-1px); }

.cls-user-area { display: flex; align-items: center; gap: 8px; }
.cls-user-photo { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 2px solid var(--cp-subtle); }
.cls-user-name { font-size: 0.85rem; font-weight: 600; color: var(--dark); max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cls-btn-logout {
  background: transparent; color: var(--gray-500);
  border: 1px solid var(--gray-200); padding: 6px 14px;
  border-radius: 6px; font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 5px;
  transition: all var(--trans);
}
.cls-btn-logout:hover { background: var(--gray-500); color: #fff; border-color: var(--gray-500); }
.cls-mobile-toggle { display: none; background: none; border: none; font-size: 1.3rem; color: var(--dark); padding: 4px; }

/* ===== HERO ===== */
.cls-hero {
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse at 50% 50%, #1a1145 0%, #0f0b2a 40%, #0C0A1D 70%);
  padding: 80px 0;
}
.cls-hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 1; pointer-events: none;
}
.cls-hero-mouse-glow {
  position: absolute; width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.15) 0%, rgba(217,70,239,0.05) 40%, transparent 70%);
  pointer-events: none; z-index: 1;
  transform: translate(-50%, -50%);
  transition: left 0.3s ease-out, top 0.3s ease-out;
  left: 50%; top: 50%;
}
.cls-hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.cls-hero-orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px);
  animation: clsFloat 10s ease-in-out infinite;
}
.cls-hero-orb-1 { width: 600px; height: 600px; background: rgba(124,58,237,0.25); top: -25%; right: -10%; }
.cls-hero-orb-2 { width: 500px; height: 500px; background: rgba(217,70,239,0.15); bottom: -20%; left: -10%; animation-delay: -4s; }
.cls-hero-orb-3 { width: 400px; height: 400px; background: rgba(99,102,241,0.18); top: 40%; left: 50%; animation-delay: -7s; }
@keyframes clsFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.06); }
  66% { transform: translate(-20px, 20px) scale(0.94); }
}
.cls-hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(124,58,237,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 65%);
}
.cls-hero-glow {
  position: absolute; top: 50%; left: 35%;
  width: 500px; height: 500px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(124,58,237,0.18) 0%, rgba(217,70,239,0.06) 35%, transparent 65%);
  border-radius: 50%;
  animation: clsGlow 5s ease-in-out infinite;
}
@keyframes clsGlow {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(1.12); opacity: 0.6; }
}

.cls-hero-inner {
  display: flex; align-items: center; gap: 60px;
  position: relative; z-index: 1;
}
.cls-hero-content { flex: 1; }
.cls-hero-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 18px; background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2); border-radius: 50px;
  font-size: 0.82rem; color: rgba(255,255,255,0.9); margin-bottom: 20px;
}
.cls-hero-title {
  font-size: 2.6rem; font-weight: 900; color: var(--white);
  line-height: 1.22; margin-bottom: 16px;
}
.cls-hero-gradient {
  background: linear-gradient(135deg, #C4B5FD, #FCD34D);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.cls-hero-desc { font-size: 1rem; color: rgba(255,255,255,0.72); margin-bottom: 36px; }
.cls-hero-stats { display: flex; align-items: center; gap: 24px; }
.cls-hero-stat { text-align: center; }
.cls-hero-stat strong { display: block; font-size: 1.8rem; font-weight: 900; color: var(--white); }
.cls-hero-stat span { font-size: 0.75rem; color: rgba(255,255,255,0.6); }
.cls-hero-stat-div { width: 1px; height: 40px; background: rgba(255,255,255,0.2); }

/* Hero Visual */
.cls-hero-visual { flex-shrink: 0; }
.cls-hero-card-visual {
  width: 220px; background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2); border-radius: var(--radius-xl);
  padding: 28px 20px; text-align: center;
  backdrop-filter: blur(12px);
}
.cls-hv-icon { font-size: 3.5rem; color: rgba(255,255,255,0.85); margin-bottom: 12px; }
.cls-hv-label { font-size: 0.85rem; font-weight: 700; color: rgba(255,255,255,0.85); margin-bottom: 16px; }
.cls-hv-badges { display: flex; flex-direction: column; gap: 6px; }
.cls-hv-badges span {
  display: block; padding: 5px 12px; background: rgba(255,255,255,0.15);
  border-radius: 50px; font-size: 0.72rem; color: rgba(255,255,255,0.8); font-weight: 600;
}

/* ===== FILTER BAR ===== */
.cls-filter-bar {
  background: var(--white); border-bottom: 1px solid var(--gray-200);
  position: sticky; top: 64px; z-index: 100; padding: 12px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.cls-filter-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.cls-tabs { display: flex; gap: 8px; overflow-x: auto; flex-shrink: 1; padding-bottom: 2px; }
.cls-tabs::-webkit-scrollbar { height: 3px; }
.cls-tabs::-webkit-scrollbar-thumb { background: var(--cp-subtle); border-radius: 4px; }
.cls-tab {
  padding: 7px 18px; font-size: 0.84rem; font-weight: 600; white-space: nowrap;
  border: 1.5px solid var(--gray-200); border-radius: 50px;
  background: var(--white); color: var(--gray-500);
  transition: all var(--trans); flex-shrink: 0;
}
.cls-tab:hover { border-color: var(--cp); color: var(--cp); }
.cls-tab.active { background: var(--cp); color: var(--white); border-color: var(--cp); }
.cls-sort {
  padding: 7px 14px; font-size: 0.84rem; font-weight: 500;
  border: 1.5px solid var(--gray-200); border-radius: 8px;
  background: var(--white); color: var(--gray-700);
  font-family: inherit; cursor: pointer; flex-shrink: 0;
}

/* ===== COURSE GRID ===== */
.cls-main { padding: 40px 0 64px; }
.cls-course-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}

/* ===== COURSE CARD ===== */
.cls-course-card {
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow);
  transition: all var(--trans); cursor: pointer;
  display: flex; flex-direction: column;
  border: 1px solid var(--gray-200);
}
.cls-course-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: var(--cp-subtle); }

.cls-card-thumb {
  position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--gray-100);
}
.cls-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.cls-course-card:hover .cls-card-thumb img { transform: scale(1.05); }

.cls-card-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0); transition: background var(--trans);
}
.cls-course-card:hover .cls-card-play { background: rgba(0,0,0,0.22); }
.cls-card-play i {
  font-size: 2.8rem; color: white; opacity: 0; transition: opacity var(--trans);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}
.cls-course-card:hover .cls-card-play i { opacity: 1; }

.cls-card-badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 5px; }
.cls-badge-free { padding: 3px 10px; background: var(--green); color: white; font-size: 0.67rem; font-weight: 700; border-radius: 20px; }
.cls-badge-paid { padding: 3px 10px; background: var(--cp); color: white; font-size: 0.67rem; font-weight: 700; border-radius: 20px; }
.cls-badge-level { padding: 3px 9px; background: rgba(0,0,0,0.52); color: white; font-size: 0.67rem; font-weight: 600; border-radius: 20px; }

.cls-card-body { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; }
.cls-card-cat { font-size: 0.72rem; font-weight: 700; color: var(--cp); margin-bottom: 5px; }
.cls-card-title {
  font-size: 0.9rem; font-weight: 700; color: var(--dark); line-height: 1.4;
  margin-bottom: 10px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cls-card-meta {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 10px; border-top: 1px solid var(--gray-100);
}
.cls-card-views { font-size: 0.72rem; color: var(--gray-400); }
.cls-card-views i { margin-right: 3px; }
.cls-card-period { font-size: 0.72rem; color: var(--green); font-weight: 600; }
.cls-card-period i { margin-right: 3px; font-size: 0.65rem; }
.cls-card-price { font-size: 0.82rem; font-weight: 800; color: var(--cp); }
.cls-card-price.is-free { color: var(--green); }

/* Empty */
.cls-empty { text-align: center; padding: 80px 0; color: var(--gray-400); }
.cls-empty i { font-size: 3rem; display: block; margin-bottom: 14px; }
.cls-empty p { font-size: 0.95rem; }

/* ===== CATEGORY SECTIONS (전체 보기 시) ===== */
.cls-course-sections {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.cls-category-section {
  margin-bottom: 48px;
}
.cls-category-section:last-child {
  margin-bottom: 0;
}
.cls-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--cp-subtle);
}
.cls-category-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 10px;
}
.cls-category-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 22px;
  background: var(--cp);
  border-radius: 2px;
  flex-shrink: 0;
}
.cls-category-count {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray-500);
  background: var(--gray-100);
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
}
.cls-category-section .cls-course-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* 더보기 버튼 */
.cls-more-btn-wrap {
  text-align: center;
  margin-top: 20px;
}
.cls-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 32px;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-700);
  cursor: pointer;
  transition: all var(--trans);
}
.cls-more-btn:hover {
  border-color: var(--cp);
  color: var(--cp);
  background: var(--cp-bg);
}
.cls-more-btn i { font-size: 0.75rem; }
.cls-more-count {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cp);
  background: var(--cp-subtle);
  padding: 2px 8px;
  border-radius: 10px;
}
.cls-more-btn i.fa-chevron-right { font-size: 0.7rem; transition: transform var(--trans); }
.cls-more-btn:hover i.fa-chevron-right { transform: translateX(3px); }

/* ===== SECTIONS ===== */
.cls-section { padding: 64px 0; }
.cls-reviews-section { background: var(--cp-bg); }
.cls-faq-section { background: var(--white); }

.cls-sec-header { text-align: center; margin-bottom: 44px; }
.cls-sec-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px; background: var(--cp-subtle); color: var(--cp);
  border-radius: 50px; font-size: 0.78rem; font-weight: 700; margin-bottom: 12px;
}
.cls-sec-title { font-size: 1.9rem; font-weight: 900; color: var(--dark); margin-bottom: 8px; }
.cls-title-accent { color: var(--cp); }
.cls-sec-sub { font-size: 0.9rem; color: var(--gray-500); }

/* Reviews */
.cls-reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cls-review-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow);
  border: 1px solid rgba(124,58,237,0.1);
}
.cls-review-text {
  font-size: 0.88rem; color: var(--gray-700); line-height: 1.75;
  margin-bottom: 16px;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.cls-review-footer { display: flex; align-items: flex-end; justify-content: space-between; }
.cls-review-stars { color: #FBBF24; font-size: 0.8rem; margin-bottom: 3px; }
.cls-review-name { font-size: 0.82rem; font-weight: 700; color: var(--dark); }
.cls-review-course { font-size: 0.72rem; color: var(--gray-400); margin-top: 2px; }
.cls-review-badge {
  font-size: 0.68rem; font-weight: 700; padding: 3px 10px;
  background: var(--cp-subtle); color: var(--cp); border-radius: 20px;
}

/* 후기 작성 버튼 */
.cls-review-write-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; background: var(--cp); color: var(--white);
  border: none; border-radius: 50px; font-size: 0.9rem; font-weight: 700;
  font-family: inherit; transition: all var(--trans); margin-bottom: 24px;
}
.cls-review-write-btn:hover { background: var(--cp-dark); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(124,58,237,0.3); }

/* 사용자 후기 카드 */
.cls-review-user { border: 1.5px solid rgba(124,58,237,0.2); background: linear-gradient(135deg, #faf5ff 0%, #ffffff 100%); }
.cls-review-author-area { display: flex; align-items: center; gap: 10px; }
.cls-review-avatar { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--cp-subtle); object-fit: cover; flex-shrink: 0; }
.cls-review-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.cls-review-date { font-size: 0.68rem; color: var(--gray-400); }
.cls-review-del-btn { background: none; border: none; color: var(--gray-400); font-size: 0.72rem; padding: 2px 6px; border-radius: 4px; transition: all var(--trans); }
.cls-review-del-btn:hover { color: #EF4444; background: #FEF2F2; }

/* 후기 작성 모달 */
.cls-review-modal { width: 480px; max-width: 96vw; padding: 36px; }
.cls-review-modal-title { font-size: 1.3rem; font-weight: 900; color: var(--dark); margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.cls-review-modal-title i { color: #FBBF24; }
.cls-review-modal-sub { font-size: 0.85rem; color: var(--gray-500); margin-bottom: 24px; }
.cls-review-form { display: flex; flex-direction: column; gap: 18px; }
.cls-review-form-field label { display: block; font-size: 0.85rem; font-weight: 700; color: var(--gray-700); margin-bottom: 6px; }
.cls-rv-required { color: #EF4444; }
.cls-review-form-field select,
.cls-review-form-field textarea { width: 100%; padding: 11px 14px; border: 1.5px solid var(--gray-200); border-radius: 10px; font-size: 0.9rem; font-family: inherit; color: var(--dark); outline: none; transition: border-color var(--trans), box-shadow var(--trans); background: var(--white); }
.cls-review-form-field select:focus,
.cls-review-form-field textarea:focus { border-color: var(--cp); box-shadow: 0 0 0 3px rgba(124,58,237,0.1); }
.cls-review-form-field textarea { resize: vertical; min-height: 100px; line-height: 1.7; }
.cls-rv-char-count { text-align: right; font-size: 0.72rem; color: var(--gray-400); margin-top: 4px; }
.cls-rv-custom-input { margin-top: 8px; width: 100%; padding: 11px 14px; border: 1.5px solid var(--gray-200); border-radius: 10px; font-size: 0.9rem; font-family: inherit; color: var(--dark); outline: none; transition: border-color var(--trans), box-shadow var(--trans); }
.cls-rv-custom-input:focus { border-color: var(--cp); box-shadow: 0 0 0 3px rgba(124,58,237,0.1); }

/* 별점 선택 */
.cls-star-select { display: flex; gap: 6px; }
.cls-star-btn { font-size: 1.6rem; color: var(--gray-200); cursor: pointer; transition: color 0.15s, transform 0.15s; }
.cls-star-btn:hover { transform: scale(1.15); }
.cls-star-btn.active { color: #FBBF24; }

.cls-review-submit-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 14px; background: var(--cp); color: var(--white); border: none; border-radius: 12px; font-size: 1rem; font-weight: 700; font-family: inherit; transition: all var(--trans); }
.cls-review-submit-btn:hover { background: var(--cp-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(124,58,237,0.3); }
.cls-review-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* FAQ */
.cls-faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.cls-faq-item { border: 1.5px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; }
.cls-faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; font-size: 0.95rem; font-weight: 600;
  background: var(--white); border: none; text-align: left; color: var(--dark);
  transition: background var(--trans);
}
.cls-faq-q:hover { background: var(--gray-50); }
.cls-faq-q.open { color: var(--cp); background: var(--cp-bg); }
.cls-faq-q i { color: var(--gray-400); transition: transform var(--trans); flex-shrink: 0; }
.cls-faq-q.open i { transform: rotate(180deg); color: var(--cp); }
.cls-faq-a {
  display: none; padding: 0 22px 18px;
  font-size: 0.88rem; color: var(--gray-500); line-height: 1.75;
}
.cls-faq-a.open { display: block; }
.cls-faq-a a { color: var(--cp); text-decoration: underline; }

/* ===== FOOTER ===== */
.cls-footer { background: #111827; color: rgba(255,255,255,0.65); padding: 44px 0 24px; }
.cls-footer-top { display: flex; gap: 48px; margin-bottom: 36px; flex-wrap: wrap; }
.cls-footer-brand { flex: 2; }
.cls-footer-logo-wrap { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.cls-footer-logo-wrap img { width: 32px; height: 32px; object-fit: contain; filter: brightness(10); }
.cls-footer-logo-wrap span { font-size: 1rem; font-weight: 800; color: white; }
.cls-footer-brand p { font-size: 0.82rem; line-height: 1.6; }
.cls-footer-links, .cls-footer-contact { flex: 1; }
.cls-footer-links strong, .cls-footer-contact strong { display: block; color: white; font-size: 0.85rem; margin-bottom: 12px; }
.cls-footer-links a { display: block; font-size: 0.82rem; margin-bottom: 8px; transition: color var(--trans); }
.cls-footer-links a:hover { color: white; }
.cls-footer-contact p { font-size: 0.82rem; margin-bottom: 7px; }
.cls-footer-contact i { margin-right: 6px; color: var(--cp-light); }
.cls-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.cls-footer-bottom p { font-size: 0.78rem; }
.cls-footer-socials { display: flex; gap: 10px; }
.cls-footer-socials a {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.18); border-radius: 50%;
  transition: all var(--trans); font-size: 0.9rem;
}
.cls-footer-socials a:hover { background: var(--cp); border-color: var(--cp); color: white; }

/* ===== MODAL ===== */
.cls-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.55); z-index: 500;
  align-items: center; justify-content: center;
  backdrop-filter: blur(4px); padding: 20px;
}
.cls-overlay.open { display: flex; }
.cls-modal {
  background: var(--white); border-radius: var(--radius-xl);
  padding: 40px; width: 420px; max-width: 100%;
  position: relative; box-shadow: 0 24px 64px rgba(0,0,0,0.2);
  animation: modalIn 0.25s ease;
}
@keyframes modalIn { from { transform: translateY(16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.cls-modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--gray-100); border: none; font-size: 0.9rem;
  color: var(--gray-500); display: flex; align-items: center; justify-content: center;
  transition: all var(--trans);
}
.cls-modal-close:hover { background: var(--gray-200); }

/* Login Modal */
.cls-modal-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.cls-modal-logo img { width: 36px; height: 36px; object-fit: contain; }
.cls-modal-brand { font-size: 1rem; font-weight: 800; color: var(--dark); }
.cls-modal-title { font-size: 1.55rem; font-weight: 900; color: var(--dark); margin-bottom: 6px; }
.cls-modal-sub { font-size: 0.85rem; color: var(--gray-500); margin-bottom: 28px; line-height: 1.5; }
.cls-login-btns { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.cls-btn-google, .cls-btn-kakao {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px; font-size: 0.95rem; font-weight: 700; border-radius: var(--radius);
  border: none; transition: all var(--trans); font-family: inherit;
}
.cls-btn-google { background: var(--white); border: 1.5px solid var(--gray-200); color: var(--dark); }
.cls-btn-google:hover { background: var(--gray-50); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.cls-btn-google img { width: 20px; height: 20px; }
.cls-btn-kakao { background: #FEE500; color: #3C1E1E; }
.cls-btn-kakao:hover { background: #F5DC00; }
.cls-modal-terms { font-size: 0.72rem; color: var(--gray-400); text-align: center; }
.cls-modal-terms a { color: var(--cp); text-decoration: underline; }

/* Course Modal */
.cls-course-modal {
  width: 880px; max-width: 98vw; padding: 0;
  overflow: hidden; max-height: 92vh; overflow-y: auto;
}
.cls-video-wrap { aspect-ratio: 16/9; background: #000; flex-shrink: 0; }
.cls-video-wrap iframe { width: 100%; height: 100%; display: block; }
.cls-course-info { padding: 24px 28px; }
.cls-course-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.cls-course-badge {
  padding: 4px 12px; border-radius: 20px; font-size: 0.78rem; font-weight: 700;
}
.cls-course-badge.free { background: var(--green-subtle); color: var(--green); }
.cls-course-badge.paid { background: var(--cp-subtle); color: var(--cp); }
.cls-course-badge.cat { background: var(--gray-100); color: var(--gray-700); }
.cls-course-badge.lv { background: var(--gray-100); color: var(--gray-500); }
.cls-course-title { font-size: 1.15rem; font-weight: 800; color: var(--dark); margin-bottom: 10px; line-height: 1.4; }
.cls-course-desc { font-size: 0.88rem; color: var(--gray-500); line-height: 1.75; margin-bottom: 16px; }
.cls-course-meta { display: flex; gap: 20px; font-size: 0.82rem; color: var(--gray-400); margin-bottom: 20px; flex-wrap: wrap; }
.cls-course-meta i { color: var(--cp); margin-right: 4px; }
.cls-course-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cls-btn-enroll {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border: none; border-radius: 50px;
  font-size: 0.92rem; font-weight: 700; font-family: inherit;
  transition: all var(--trans);
}
.cls-btn-enroll.free-btn { background: var(--green); color: white; }
.cls-btn-enroll.free-btn:hover { background: #047857; transform: translateY(-1px); }
.cls-btn-enroll.paid-btn { background: var(--cp); color: white; }
.cls-btn-enroll.paid-btn:hover { background: var(--cp-dark); transform: translateY(-1px); }
.cls-btn-enroll.soon-btn { background: var(--gray-100); color: var(--gray-400); pointer-events: none; }
.cls-contact-link { font-size: 0.85rem; color: var(--cp); font-weight: 600; }
.cls-contact-link:hover { text-decoration: underline; }

/* ===== ENROLLMENT PREVIEW ===== */
.cls-enroll-preview {
  position: relative;
  aspect-ratio: 16/9;
  background: #111;
  overflow: hidden;
}
.cls-enroll-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: blur(2px);
}
.cls-enroll-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  gap: 10px;
}
.cls-enroll-overlay i { font-size: 2.8rem; opacity: 0.85; }
.cls-enroll-overlay p { font-size: 0.9rem; font-weight: 600; opacity: 0.9; }

/* Period badge in modal */
.cls-course-badge.period {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.cls-course-badge.period i { font-size: 0.65rem; }

/* Toast */
.cls-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--dark);
  color: white;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  z-index: 999;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  white-space: nowrap;
}
.cls-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .cls-course-grid { grid-template-columns: repeat(3, 1fr); }
  .cls-category-section .cls-course-grid { grid-template-columns: repeat(3, 1fr); }
  .cls-hero-title { font-size: 2.2rem; }
}
@media (max-width: 900px) {
  .cls-nav { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: white; padding: 12px 16px; border-top: 1px solid var(--gray-200); box-shadow: 0 8px 24px rgba(0,0,0,0.08); gap: 4px; }
  .cls-nav.open { display: flex; }
  .cls-mobile-toggle { display: block; }
  .cls-header { position: relative; }
  .cls-filter-bar { top: 64px; }
  .cls-course-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .cls-category-section .cls-course-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .cls-category-section { margin-bottom: 36px; }
  .cls-category-title { font-size: 1.1rem; }
  .cls-hero-inner { flex-direction: column; gap: 36px; }
  .cls-hero-visual { display: none; }
  .cls-hero-title { font-size: 1.9rem; }
  .cls-reviews-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .cls-course-grid { grid-template-columns: 1fr; }
  .cls-category-section .cls-course-grid { grid-template-columns: 1fr; }
  .cls-category-section { margin-bottom: 28px; }
  .cls-category-title { font-size: 1rem; }
  .cls-hero-title { font-size: 1.6rem; }
  .cls-hero-stats { gap: 16px; }
  .cls-hero-stat strong { font-size: 1.4rem; }
  .cls-reviews-grid { grid-template-columns: 1fr; }
  .cls-footer-top { flex-direction: column; gap: 24px; }
  .cls-footer-bottom { flex-direction: column; align-items: flex-start; }
  .cls-course-modal { max-height: 100vh; border-radius: 0; }
  .cls-modal { padding: 28px 20px; }
}

/* ===== 마이페이지 버튼 ===== */
.cls-btn-mypage {
  background: transparent;
  color: #7c3aed;
  border: 1px solid #7c3aed;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.cls-btn-mypage:hover { background: #7c3aed; color: #fff; }

/* ===== 마이페이지 모달 ===== */
.cls-mypage-modal {
  max-width: 560px;
  width: 95%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 0 !important;
}
.cls-mypage-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 28px 28px 16px;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff;
  border-radius: 16px 16px 0 0;
}
/* cls-mypage-photo 제거 → cls-mypage-avatar 로 대체 */
.cls-mypage-info h2 { font-size: 18px; margin-bottom: 2px; }
.cls-mypage-email { font-size: 13px; opacity: .8; }
.cls-mypage-stats {
  display: flex;
  gap: 0;
  background: #f8f6ff;
  border-bottom: 1px solid #ede9fe;
}
.cls-mypage-stat {
  flex: 1;
  text-align: center;
  padding: 16px 12px;
  border-right: 1px solid #ede9fe;
}
.cls-mypage-stat:last-child { border-right: none; }
.cls-mypage-stat strong { display: block; font-size: 22px; color: #7c3aed; }
.cls-mypage-stat span { font-size: 12px; color: #888; }
.cls-mypage-section-title {
  padding: 20px 28px 8px;
  font-size: 15px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cls-mypage-section-title i { color: #7c3aed; }
.cls-mypage-history { padding: 0 16px 20px; }
.my-history-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background .15s;
}
.my-history-item:hover { background: #f8f6ff; }
.my-history-thumb {
  width: 80px;
  height: 45px;
  border-radius: 6px;
  object-fit: cover;
  background: #f3f4f6;
  flex-shrink: 0;
}
.my-history-info { min-width: 0; flex: 1; }
.my-history-title {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}
.my-history-meta {
  display: flex;
  gap: 8px;
  font-size: 11px;
  color: #999;
}
.my-history-meta span { display: inline-flex; align-items: center; }
.my-history-play {
  flex-shrink: 0;
  color: #7c3aed;
  font-size: 24px;
  opacity: 0.5;
  transition: opacity 0.15s;
}
.my-history-item:hover .my-history-play { opacity: 1; }

/* ===== 프로필 수정 (아바타 & 닉네임) ===== */
.cls-mypage-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.3);
  object-fit: cover;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}
.cls-mypage-profile {
  padding: 20px 28px;
  border-bottom: 1px solid #ede9fe;
}
.cls-mypage-profile .cls-mypage-section-title {
  padding: 0 0 12px;
}
.cls-profile-field {
  margin-bottom: 16px;
}
.cls-profile-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 8px;
}
.cls-nickname-row {
  display: flex;
  gap: 8px;
}
.cls-nickname-input {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  color: #111827;
}
.cls-nickname-input:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 3px rgba(124,58,237,0.1);
}
.cls-avatar-grid {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.cls-avatar-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 10px 8px 8px;
  border-radius: 14px;
  border: 2.5px solid transparent;
  transition: all 0.2s;
  background: #f9fafb;
  min-width: 72px;
}
.cls-avatar-option:hover {
  background: #ede9fe;
  border-color: #c4b5fd;
  transform: translateY(-2px);
}
.cls-avatar-option.selected {
  border-color: #7c3aed;
  background: #ede9fe;
  box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
}
.cls-avatar-option img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  transition: transform 0.2s;
}
.cls-avatar-option:hover img {
  transform: scale(1.08);
}
.cls-avatar-option span {
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
}
.cls-avatar-option.selected span {
  color: #7c3aed;
  font-weight: 700;
}
.cls-profile-save-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 12px;
  background: #7c3aed;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 4px;
}
.cls-profile-save-btn:hover {
  background: #6d28d9;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(124,58,237,0.3);
}
.cls-profile-save-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}
@media (max-width: 440px) {
  .cls-avatar-option img { width: 42px; height: 42px; }
  .cls-avatar-grid { gap: 6px; }
  .cls-avatar-option { padding: 8px 6px 6px; min-width: 60px; border-radius: 10px; }
  .cls-avatar-option span { font-size: 10px; }
  .cls-mypage-profile { padding: 16px 16px; }
}
