/* ===========================
   루스키 화상러시아어 - Styles
   =========================== */

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

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #eff6ff;
  --accent: #dc2626;
  --accent-light: #fef2f2;
  --text: #111827;
  --text-secondary: #6b7280;
  --border: #e5e7eb;
  --bg: #ffffff;
  --bg-gray: #f9fafb;
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --transition: 0.2s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.hidden {
  display: none !important;
}

/* ===== 버튼 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-color: rgba(255,255,255,0.4);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.7);
}

.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: var(--radius); }
.btn-xl { padding: 16px 40px; font-size: 17px; border-radius: var(--radius); }

/* 무료 체험 신청 버튼 강조 */
@keyframes cta-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37,99,235,0.55); transform: scale(1); }
  50%  { box-shadow: 0 0 0 10px rgba(37,99,235,0); transform: scale(1.04); }
  100% { box-shadow: 0 0 0 0 rgba(37,99,235,0); transform: scale(1); }
}
a[href="#trial"].btn-primary {
  padding: 17px 44px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.3px;
  animation: cta-pulse 1.8s ease-in-out infinite;
}
a[href="#trial"].btn-primary:hover {
  animation: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,99,235,0.45);
}
.btn-full { width: 100%; margin-top: 8px; }

.btn-kakao {
  background: #FEE500;
  color: #3A1D1D;
  border-color: #FEE500;
  font-weight: 600;
}
.btn-kakao:hover { background: #F6DC00; border-color: #F6DC00; }

.btn-naver {
  background: #03C75A;
  color: #fff;
  border-color: #03C75A;
  margin-top: 8px;
}
.btn-naver:hover { background: #02B050; border-color: #02B050; }

/* ===== 헤더 ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon {
  flex-shrink: 0;
  display: block;
}
.logo-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}
.logo-ru {
  font-size: 22px;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.5px;
}
.logo-kr {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}
.logo-white .logo-ru { color: #fff; }
.logo-white .logo-kr { color: rgba(255,255,255,0.7); }

.nav {
  display: flex;
  align-self: stretch;   /* 헤더 높이 전체 차지 */
  align-items: stretch;
  gap: 0;
  flex: 1;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 16px;       /* 헤더 높이 전체를 클릭 영역으로 */
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-link:hover,
.nav-link:focus {
  color: var(--primary);
  background: var(--primary-light);
}
.nav-arrow {
  font-size: 12px;
  opacity: 0.6;
  transition: transform var(--transition);
  line-height: 1;
}

/* 드롭다운 */
.nav-item {
  position: relative;
  display: flex;
  align-items: stretch;
}
.nav-item.open .nav-link {
  color: var(--primary);
  background: var(--primary-light);
}
.nav-item.open .nav-arrow {
  transform: rotate(180deg);
  opacity: 1;
}
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  min-width: 140px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 500;
}
.nav-item.open .nav-dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
/* 드롭다운 위 화살표 */
.nav-dropdown::after {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid var(--border);
  pointer-events: none;
}
.nav-dropdown-item {
  display: block;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
  width: 100%;
  box-sizing: border-box;
}
.nav-dropdown-item + .nav-dropdown-item {
  border-top: 1px solid var(--border);
}
.nav-dropdown-item:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* 유저 버튼 */
.user-area {
  position: relative;
}
.user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-gray);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 6px 14px 6px 6px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: all var(--transition);
}
.user-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}
.user-avatar-small {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  min-width: 200px;
  overflow: hidden;
  z-index: 200;
}
.user-info {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-secondary);
}
.user-menu-item {
  display: block;
  width: 100%;
  padding: 12px 16px;
  text-align: left;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition);
}
.user-menu-item:hover { background: var(--bg-gray); }
.logout-btn { color: var(--accent); }
.logout-btn:hover { background: var(--accent-light) !important; }

/* ===== 히어로 ===== */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 40%, #2563eb 70%, #3b82f6 100%);
  z-index: -2;
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(220, 38, 38, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 40%);
}
.hero-bg::after {
  content: 'Я учусь говорить по-русски';
  position: absolute;
  bottom: 40px;
  right: -20px;
  font-size: 120px;
  font-weight: 900;
  color: rgba(255,255,255,0.04);
  white-space: nowrap;
  letter-spacing: -2px;
  pointer-events: none;
}

.hero-content {
  text-align: center;
  color: #fff;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 6px 18px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 28px;
  letter-spacing: 0.3px;
}

.hero-title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -1.5px;
}
.hero-title .accent {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255,255,255,0.85);
  margin-bottom: 40px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.stat-num {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -1px;
  color: #fff;
}
.stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin-top: 2px;
}
.stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.2);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.6);
  font-size: 12px;
  animation: bounce 2s infinite;
}
.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid rgba(255,255,255,0.5);
  border-bottom: 2px solid rgba(255,255,255,0.5);
  transform: rotate(45deg);
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ===== 섹션 공통 ===== */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: 0.3px;
}
.section-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.8px;
  color: var(--text);
  line-height: 1.25;
}
.section-sub {
  font-size: 16px;
  color: var(--text-secondary);
  margin-top: 12px;
}

/* ===== 특징 ===== */
.features {
  padding: 96px 0;
  background: var(--bg);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--bg-gray);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all var(--transition);
}
.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--primary);
  background: var(--bg);
}
.feature-icon {
  font-size: 40px;
  margin-bottom: 16px;
}
.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}
.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== 강좌 ===== */
.courses {
  padding: 96px 0;
  background: var(--bg-gray);
}
.courses-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.course-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition);
}
.course-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.course-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary);
}
.featured-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  padding: 3px 16px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.course-level {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
  align-self: flex-start;
}
.course-level.beginner { background: #dcfce7; color: #15803d; }
.course-level.intermediate { background: #dbeafe; color: #1d4ed8; }
.course-level.advanced { background: #fce7f3; color: #be185d; }
.course-level.special { background: #fef3c7; color: #b45309; }

.course-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}
.course-card > p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 18px;
}
.course-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  flex: 1;
}
.course-list li {
  font-size: 13px;
  color: var(--text-secondary);
  padding-left: 18px;
  position: relative;
}
.course-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}
.course-info {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.course-info span {
  background: var(--bg-gray);
  padding: 3px 10px;
  border-radius: 100px;
  border: 1px solid var(--border);
}
.course-btn { font-size: 14px; padding: 10px 0; width: 100%; text-align: center; }

/* ===== 강사진 ===== */
.teachers {
  padding: 96px 0;
  background: var(--bg);
}
.teachers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.teacher-card {
  background: var(--bg-gray);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: all var(--transition);
}
.teacher-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.teacher-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
}
.teacher-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}
.teacher-title {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 10px;
}
.teacher-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}
.teacher-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.teacher-tags span {
  background: var(--primary-light);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
}

/* ===== 수강료 ===== */
.pricing {
  padding: 96px 0;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #fff;
}
.pricing .section-tag {
  background: #fbbf24;
  color: #1e3a8a;
  border: none;
  font-size: 16px;
  font-weight: 800;
  padding: 6px 20px;
  letter-spacing: 0.06em;
}
.pricing .section-title { color: #fff; font-size: 2.6rem; }

/* 수강료 임팩트 타이틀 */
.pricing-impact-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  line-height: 1.1;
  margin: 0;
}
.pricing-sub-line {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: #fbbf24;
  letter-spacing: 0.15em;
}
.pricing-main-line {
  display: block;
  font-size: 3.6rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.pricing-main-line em {
  font-style: normal;
  color: #fbbf24;
  position: relative;
}
/* 색연필 두 줄 밑줄 (노란색) */
.pricing-main-line em::after {
  content: '';
  position: absolute;
  left: -6px;
  bottom: -14px;
  width: calc(100% + 12px);
  height: 22px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 22'%3E%3Cpath d='M2 5 C35 3 90 6 150 4 C188 3 220 5 238 4 L238 10 C218 11 185 9 148 11 C90 13 38 10 2 11 Z' fill='%23fbbf24' opacity='0.95'/%3E%3Cpath d='M5 5.5 C50 4 110 7 165 5 C200 4 225 6 236 5 L236 8 C215 8.5 190 7.5 160 8.5 C110 10 55 8 5 9 Z' fill='%23fde68a' opacity='0.5'/%3E%3Cpath d='M2 14 C40 12 100 16 162 13 C196 12 222 14 238 13 L238 19 C218 20 192 18 158 20 C100 22 42 19 2 20 Z' fill='%23fbbf24' opacity='0.92'/%3E%3Cpath d='M5 14.5 C55 13 115 16.5 170 14 C200 13 224 15 236 14.5 L236 17 C215 17.5 196 16.5 165 17.5 C115 19 58 17 5 18 Z' fill='%23fde68a' opacity='0.45'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
}
/* 별 두 개 — 료 오른쪽 상단에 가로로 */
.pricing-stars {
  position: absolute;
  top: 0.15em;
  right: -0.05em;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 3px;
  pointer-events: none;
  transform: translateX(100%);
}
@keyframes star-glow {
  0%, 100% {
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15)) brightness(1);
    opacity: 1;
  }
  50% {
    filter: drop-shadow(0 0 8px rgba(251,191,36,0.95)) drop-shadow(0 0 16px rgba(251,191,36,0.6)) brightness(1.4);
    opacity: 0.6;
  }
}
.pstar-sm {
  display: block;
  margin-bottom: 2px;
  animation: star-glow 1.4s ease-in-out infinite;
}
.pstar-lg {
  display: block;
  animation: star-glow 1.4s ease-in-out infinite;
  animation-delay: 0.5s;  /* 작은별 다음에 불 들어옴 */
}
@media (max-width: 768px) {
  .pricing-main-line { font-size: 2.6rem; }
  .pricing-sub-line { font-size: 1.6rem; }
}
@media (max-width: 480px) {
  .pricing-main-line { font-size: 2rem; }
  .pricing-sub-line { font-size: 1.3rem; }
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}
.pricing-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  position: relative;
  transition: all var(--transition);
  backdrop-filter: blur(8px);
}
.pricing-card:hover { transform: translateY(-4px); background: rgba(255,255,255,0.12); }
.pricing-card.featured {
  background: #fff;
  color: var(--text);
  border-color: #fff;
  box-shadow: var(--shadow-xl);
}
.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #fff;
  padding: 4px 18px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.pricing-name {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 20px;
}
.pricing-card.featured .pricing-name { color: var(--text); }
.pricing-price {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  margin-bottom: 8px;
}
.currency { font-size: 20px; font-weight: 700; padding-bottom: 6px; }
.amount { font-size: 48px; font-weight: 900; letter-spacing: -2px; line-height: 1; }
.period { font-size: 14px; padding-bottom: 8px; opacity: 0.7; }
.pricing-card.featured .currency,
.pricing-card.featured .amount,
.pricing-card.featured .period { color: var(--text); opacity: 1; }
.pricing-card.featured .period { opacity: 0.6; }
.pricing-desc {
  font-size: 13px;
  opacity: 0.75;
  margin-bottom: 24px;
  line-height: 1.5;
}
.pricing-card.featured .pricing-desc { color: var(--text-secondary); opacity: 1; }
.pricing-list {
  list-style: none;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}
.pricing-list li {
  font-size: 14px;
  padding-left: 22px;
  position: relative;
  opacity: 0.9;
}
.pricing-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  font-weight: 700;
  color: #34d399;
}
.pricing-card.featured .pricing-list li { color: var(--text); opacity: 1; }
.pricing-card.featured .pricing-list li::before { color: var(--primary); }
.pricing-card .btn-outline {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}
.pricing-card .btn-outline:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
  border-color: #fff;
}
.pricing-note {
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-top: 24px;
}

/* 수강료 표 */
.pricing-table-wrap {
  display: flex;
  justify-content: center;
}
.pricing-table {
  border-collapse: collapse;
  width: 100%;
  max-width: 520px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 60px rgba(0,0,0,0.4);
}
.pricing-table thead tr {
  background: #0f172a;
}
.pricing-table th {
  padding: 16px 24px;
  font-size: 15px;
  font-weight: 800;
  color: rgba(255,255,255,0.85);
  text-align: center;
  letter-spacing: 0.02em;
}
.pricing-table th:last-child {
  color: #fbbf24;
  font-size: 16px;
  font-weight: 900;
}
.pricing-table td {
  padding: 0 24px;
  height: 52px;
  font-size: 15px;
  color: #1e293b;
  text-align: center;
  border-top: 1px solid #e2e8f0;
  vertical-align: middle;
}
.pricing-plan-cell {
  font-size: 16px;
  font-weight: 800;
  color: #1e3a8a;
  text-align: center;
  border-right: 2px solid #e2e8f0;
  line-height: 1.5;
  white-space: nowrap;
  padding: 0 24px !important;
  background: #f0f5ff;
}
.plan-sub {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: #64748b;
}
.pricing-time-cell {
  color: #475569;
  font-size: 14px;
  font-weight: 600;
  border-right: 1px solid #e2e8f0;
}
.price-cell {
  font-size: 18px;
  font-weight: 900;
  color: #dc2626 !important;
  text-align: right;
  padding-right: 36px !important;
  letter-spacing: -0.02em;
}

@media (max-width: 480px) {
  .pricing-table td, .pricing-table th { padding: 0 12px; height: 44px; font-size: 13px; }
  .pricing-plan-cell { padding: 0 12px !important; font-size: 13px; }
  .price-cell { font-size: 15px; padding-right: 14px !important; }
}

/* ===== 캘린더 ===== */
.calendar-section {
  padding: 96px 0;
  background: var(--bg-gray);
}
.calendar-wrapper {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 600px;
  margin: 0 auto 40px;
  box-shadow: var(--shadow-md);
}
.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.cal-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  background: var(--bg-gray);
  border-radius: 8px;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  color: var(--text);
}
.cal-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.cal-month {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.calendar-grid-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 8px;
}
.calendar-grid-header span {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 6px 0;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: default;
  border: 1px solid transparent;
  transition: all var(--transition);
  color: var(--text-secondary);
}
.cal-day.other-month { opacity: 0.25; }
.cal-day.available {
  background: var(--primary-light);
  color: var(--primary);
  cursor: pointer;
  font-weight: 700;
}
.cal-day.available:hover {
  background: var(--primary);
  color: #fff;
  transform: scale(1.1);
}
.cal-day.today {
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 700;
}
.cal-day.selected {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.cal-day.sunday { color: #ef4444; }
.cal-day.saturday { color: #3b82f6; }
.cal-day.available.sunday { color: var(--primary); }
.cal-day.available.saturday { color: var(--primary); }
.cal-day.selected.sunday, .cal-day.selected.saturday { color: #fff; }

.calendar-legend {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}
.legend-item::before {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 4px;
}
.legend-item.available::before { background: var(--primary-light); border: 1px solid var(--primary); }
.legend-item.selected::before { background: var(--primary); }
.legend-item.today::before { background: transparent; border: 2px solid var(--primary); }

.time-slots {
  max-width: 600px;
  margin: 0 auto;
}
.slots-title {
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.slots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.time-slot {
  padding: 12px 8px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: var(--bg);
  color: var(--text);
  transition: all var(--transition);
}
.time-slot:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}
.time-slot.selected {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.time-slot.booked {
  background: var(--bg-gray);
  color: var(--text-secondary);
  opacity: 0.5;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* ===== 수강신청 ===== */
.register {
  padding: 96px 0;
  background: var(--bg);
}
.register-form {
  max-width: 760px;
  margin: 0 auto;
  background: var(--bg-gray);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group.full-width {
  grid-column: 1 / -1;
}
.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.required { color: var(--accent); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition);
  outline: none;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.form-group input[readonly] {
  background: var(--bg-gray);
  cursor: not-allowed;
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  font-size: 14px;
  color: var(--text-secondary);
}
.form-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  flex-shrink: 0;
}
.signup-agree-wrap {
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 16px;
}
.signup-agree-wrap label {
  flex: 1;
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
}
.link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}
.link:hover { text-decoration: underline; }
.form-submit { width: 100%; }

/* ===== 후기 ===== */
.reviews {
  padding: 96px 0;
  background: var(--bg-gray);
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.review-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all var(--transition);
}
.review-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.review-stars { color: #f59e0b; font-size: 18px; letter-spacing: 2px; }
.review-text {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  flex: 1;
}
.reviewer {
  display: flex;
  align-items: center;
  gap: 12px;
}
.reviewer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.reviewer strong { display: block; font-size: 14px; font-weight: 700; }
.reviewer span { font-size: 12px; color: var(--text-secondary); }

/* ===== 푸터 ===== */
.footer {
  background: #0f172a;
  color: rgba(255,255,255,0.75);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 48px 24px 36px;
  max-width: 960px;
  margin: 0 auto;
}
.footer-logo { margin-bottom: 20px; }
.footer-biz-info p {
  font-size: 13px;
  line-height: 1.9;
  color: rgba(255,255,255,0.6);
}
.footer-biz-info p span {
  color: rgba(255,255,255,0.38);
  font-size: 12px;
  margin-right: 6px;
}
.footer-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  text-align: right;
}
.footer-kakao-title {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}
.footer-kakao-title svg path { fill: #F9E000; }
.footer-kakao-id {
  font-size: 20px;
  font-weight: 800;
  color: #F9E000;
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}
.footer-hours p {
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255,255,255,0.7);
}
.footer-hours-sub {
  color: rgba(255,255,255,0.4) !important;
  font-size: 12px !important;
}
.footer-policy-links {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.footer-policy-links a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-policy-links a:hover { color: #fff; }
.footer-policy-links span { color: rgba(255,255,255,0.25); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  padding: 20px 24px;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}

/* ===== 개인정보 변경 모달 ===== */
.profile-modal {
  max-width: 440px;
  width: min(440px, 95vw);
  padding: 0;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}
.profile-modal-body {
  overflow-y: auto;
  padding: 20px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.profile-section {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.profile-section:last-of-type { border-bottom: none; padding-bottom: 0; }
.profile-section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}
.profile-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  gap: 12px;
}
.profile-toggle-row + .profile-toggle-row {
  border-top: 1px solid var(--border);
}
.profile-toggle-info { flex: 1; }
.profile-toggle-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 2px;
}
.profile-toggle-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 0;
}
/* Toggle switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  cursor: pointer;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: #d1d5db;
  border-radius: 24px;
  transition: background 0.2s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.toggle-switch input:checked + .toggle-slider { background: var(--primary); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }
.profile-modal-footer {
  display: flex;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
}
.profile-modal-footer .btn { flex: 1; }
.pm-notify-block {
  padding: 14px 0 10px;
  border-bottom: 1px dashed var(--border);
}
.pm-notify-block-second { border-bottom: none; padding-bottom: 0; }
.pm-notify-block-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 2px;
}
.pm-notify-block-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 0 0 8px;
}
.pm-toggle-inline { padding: 8px 0 0; }
.profile-modal-error {
  font-size: 13px;
  color: var(--danger);
  margin: 8px 0 0;
  padding: 10px 14px;
  background: #fef2f2;
  border-radius: 8px;
  line-height: 1.5;
}

/* ===== 모달 ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.modal {
  background: var(--bg);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 440px;
  padding: 36px 32px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.25s ease;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-overlay.active .modal {
  transform: translateY(0);
}
.modal-sm {
  max-width: 380px;
  text-align: center;
}
.modal-sm h2 { font-size: 22px; font-weight: 800; margin: 16px 0 12px; }
.modal-sm p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 24px; }
.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: var(--bg-gray);
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition);
  line-height: 1;
}
.modal-close:hover { background: var(--border); color: var(--text); }

.login-notice {
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: var(--radius-sm);
  color: #92400e;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 16px;
  margin-bottom: 16px;
  text-align: center;
}

.modal-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px;
  gap: 0;
}
.modal-tab {
  flex: 1;
  padding: 10px 0;
  background: none;
  border: none;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
}
.modal-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.modal-tab:hover:not(.active) { color: var(--text); }

.modal-title { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.modal-sub { font-size: 14px; color: var(--text-secondary); margin-bottom: 20px; }
.modal-body .form-group { margin-bottom: 14px; }
.modal-body .form-group label { font-size: 13px; font-weight: 600; }
.modal-body .form-group input {
  padding: 10px 12px;
  font-size: 14px;
}

.form-row-check {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 13px;
}
.check-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  cursor: pointer;
}
.check-label input { accent-color: var(--primary); }

.form-error {
  color: var(--accent);
  font-size: 13px;
  margin-bottom: 8px;
  min-height: 20px;
}

.social-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 4px;
  font-size: 12px;
  color: var(--text-secondary);
}
.social-divider::before,
.social-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ===== 강의실 페이지 ===== */
.classroom-page {
  min-height: calc(100vh - 68px);
  background: var(--bg-gray);
  display: flex;
  flex-direction: column;
}
.classroom-page.hidden { display: none; }

.classroom-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  background: var(--primary);
  color: #fff;
  flex-shrink: 0;
}
.cr-back-btn {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}
.cr-back-btn:hover { background: rgba(255,255,255,0.3); }
.classroom-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.classroom-icon { font-size: 22px; }
.classroom-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}
.classroom-user {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  font-weight: 400;
}
.classroom-body {
  flex: 1;
  padding: 28px;
}

.cr-student-picker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 14px 18px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
}
.cr-student-picker label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1d4ed8;
  white-space: nowrap;
}
.cr-student-picker select {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #93c5fd;
  border-radius: 6px;
  font-size: 0.875rem;
  background: #fff;
  outline: none;
}
.cr-student-picker.hidden { display: none; }

.cr-student-ac-wrap {
  position: relative;
  width: 100%;
  max-width: 320px;
}
.cr-student-ac-input {
  width: 100%;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
}
.cr-student-ac-input:focus { border-color: var(--primary); }
.cr-student-ac-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  z-index: 200;
  max-height: 220px;
  overflow-y: auto;
}
.cr-student-ac-list.hidden { display: none; }
.cr-student-ac-item {
  padding: 10px 16px;
  font-size: 14px;
  cursor: pointer;
  outline: none;
}
.cr-student-ac-item:hover,
.cr-student-ac-item:focus { background: #eff6ff; color: var(--primary); }
.cr-selected-student {
  margin-top: 10px;
  padding: 8px 14px;
  background: #eff6ff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cr-badge-student {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}
.cr-badge-teacher {
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
}

/* 달력 네비 */
.cr-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.cr-cal-month {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
}

/* 요일 헤더 */
.cr-cal-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-bottom: 2px solid var(--border);
  margin-bottom: 4px;
}
.cr-dow {
  text-align: center;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
}
.cr-dow.sun { color: #dc2626; }
.cr-dow.sat { color: #2563eb; }

/* 날짜 그리드 */
.cr-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
}
.cr-day {
  min-height: 120px;
  border: 1px solid var(--border);
  border-top: none;
  border-left: none;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #fff;
  transition: background var(--transition);
  cursor: default;
}
.cr-day:nth-child(7n) { border-right: none; }
.cr-day.other-month { background: #fafafa; }
.cr-day.today { background: #eff6ff; }
.cr-day.today .cr-date { background: var(--primary); color: #fff; }

.cr-date {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}
.cr-day.weekday .cr-date { color: #111827; }
.cr-day.saturday .cr-date { color: #2563eb; }
.cr-day.sunday .cr-date { color: #dc2626; }
.cr-day.other-month .cr-date { color: #d1d5db; }
.cr-day.holiday .cr-date { color: #dc2626; }
.cr-holiday-label {
  font-size: 11px;
  color: #dc2626;
  font-weight: 700;
  text-align: center;
  margin-top: 2px;
}

/* 수업 카드 칩 */
.cr-day.has-lesson { cursor: pointer; }
.cr-day.has-lesson:hover { background: #f0f7ff; }
.cr-event {
  border-radius: 6px;
  padding: 5px 7px;
  font-size: 11px;
  font-weight: 500;
  border-left: 3px solid var(--primary);
  background: #dbeafe;
  color: #1d4ed8;
  display: flex;
  flex-direction: column;
  gap: 1px;
  cursor: pointer;
  line-height: 1.4;
}
.cr-event-time   { font-size: 12px; font-weight: 700; }
.cr-event-dur    { font-size: 10px; opacity: .85; }
.cr-event-teacher{ font-size: 10px; opacity: .85; }
.cr-event-session{ font-size: 10px; }
.cr-event-makeup { display:block; font-size:9px; color:#92400e; background:#fef3c7; border-radius:3px; padding:0 3px; margin-top:1px; line-height:1.4; }
.cr-event-status { font-size: 10px; font-weight: 700; margin-top: 2px; }
.cr-event-feedback-btn {
  font-size: 10px; font-weight: 700;
  background: rgba(255,255,255,0.6); border: 1px solid currentColor;
  border-radius: 3px; padding: 1px 5px; cursor: pointer;
  margin-top: 2px; width: fit-content;
}

/* 수업 선택 체크박스 */
.cr-event-checkbox {
  position: absolute;
  top: 4px; right: 4px;
  width: 14px; height: 14px;
  cursor: pointer;
  accent-color: #2563eb;
  z-index: 2;
}
.cr-event { position: relative; }
.cr-event.selected {
  outline: 2px solid #2563eb;
  outline-offset: 1px;
}

/* 선택 삭제 바 */
/* 연기권 바 */
.cr-ticket-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 8px;
  padding: 8px 14px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.cr-ticket-label { font-size: 13px; color: #92400e; }
.cr-ticket-count { font-size: 18px; font-weight: 700; color: #d97706; }
.cr-ticket-unit  { font-size: 13px; color: #92400e; }
.cr-ticket-edit-btn {
  margin-left: 8px;
  padding: 3px 10px;
  font-size: 12px;
  background: #f59e0b;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.cr-ticket-input {
  width: 60px;
  padding: 3px 6px;
  border: 1px solid #fcd34d;
  border-radius: 4px;
  font-size: 14px;
  text-align: center;
}
.cr-ticket-save-btn {
  padding: 3px 10px;
  font-size: 12px;
  background: #16a34a;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.cr-ticket-cancel-btn {
  padding: 3px 10px;
  font-size: 12px;
  background: #9ca3af;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.cr-delete-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: 8px;
  padding: 8px 14px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.cr-delete-bar.hidden { display: none; }
.cr-delete-count { font-size: 13px; color: #991b1b; font-weight: 600; flex: 1; min-width: 80px; }
.cr-delete-btn {
  background: #dc2626; color: #fff;
  border: none; border-radius: 6px;
  padding: 6px 14px; font-size: 13px; font-weight: 600;
  cursor: pointer; min-height: 36px;
}
.cr-delete-btn:hover { background: #b91c1c; }
.cr-edit-lesson-btn {
  background: #2563eb; color: #fff;
  border: none; border-radius: 6px;
  padding: 6px 14px; font-size: 13px; font-weight: 600;
  cursor: pointer; min-height: 36px;
}
.cr-edit-lesson-btn:hover { background: #1d4ed8; }
.cr-create-lesson-btn {
  background: #059669; color: #fff;
  border: none; border-radius: 6px;
  padding: 6px 14px; font-size: 13px; font-weight: 600;
  cursor: pointer; min-height: 36px;
}
.cr-create-lesson-btn:hover { background: #047857; }
.cr-bulk-postpone-btn {
  background: #7c3aed; color: #fff;
  border: none; border-radius: 6px;
  padding: 6px 14px; font-size: 13px; font-weight: 600;
  cursor: pointer; min-height: 36px;
}
.cr-bulk-postpone-btn:hover { background: #6d28d9; }
.cr-delete-cancel-btn {
  background: #f3f4f6; color: #374151;
  border: 1px solid #d1d5db; border-radius: 6px;
  padding: 6px 14px; font-size: 13px;
  cursor: pointer; min-height: 36px;
}
.cr-delete-cancel-btn:hover { background: #e5e7eb; }

/* 빈 날 체크박스 */
.cr-empty-checkbox {
  width: 14px; height: 14px; flex-shrink: 0;
  cursor: pointer; accent-color: #059669;
}
.cr-date { display: flex; align-items: center; gap: 4px; }
.cr-day.cr-empty-selected { background: #d1fae5 !important; outline: 2px solid #059669; border-radius: 4px; }

/* 칩 색상 by status */
.cr-event.type-scheduled   { background: #dbeafe; color: #1d4ed8; border-left-color: #2563eb; }
.cr-event.type-completed   { background: #dcfce7; color: #15803d; border-left-color: #16a34a; }
.cr-event.type-absent      { background: #fee2e2; color: #991b1b; border-left-color: #dc2626; }
.cr-event.type-cancelled   { background: #f3f4f6; color: #6b7280; border-left-color: #9ca3af; opacity: .7; }
.cr-event.type-postponed   { background: #fef3c7; color: #92400e; border-left-color: #d97706; }
.cr-event.type-regular     { background: #dbeafe; color: #1d4ed8; border-left-color: #2563eb; }
.cr-event.type-trial       { background: #dcfce7; color: #15803d; border-left-color: #16a34a; }
/* 50분 수업: 청록(teal) 계열 - scheduled 상태에만 덮어씀 */
.cr-event.type-scheduled.dur-50 { background: #ccfbf1; color: #0f766e; border-left-color: #14b8a6; }

/* ===== 수업 상세 모달 ===== */
.lesson-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.lesson-modal-box {
  background: #fff;
  border-radius: 14px;
  width: 100%; max-width: 520px;
  max-height: 90vh;
  display: flex; flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  overflow: hidden;
}
.lesson-modal-hd {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid #f1f5f9;
  flex-shrink: 0;
}
.lm-title { font-size: 1rem; font-weight: 800; color: #111827; }
.lm-meta  { font-size: 0.8rem; color: #6b7280; margin-top: 3px; }
.lm-close {
  background: none; border: none; font-size: 1.3rem;
  cursor: pointer; color: #6b7280; padding: 0 4px; line-height: 1;
  flex-shrink: 0;
}
.lm-close:hover { color: #111827; }
.lesson-modal-body {
  overflow-y: auto; flex: 1;
  padding: 0 24px 24px;
}
.lm-section {
  padding-top: 20px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 20px;
}
.lm-section:last-child { border-bottom: none; }
.lm-section-title {
  font-size: 0.85rem; font-weight: 800; color: #374151;
  text-transform: uppercase; letter-spacing: .05em;
  margin-bottom: 12px;
}
.lm-textbook {
  font-size: 0.9rem; color: #6b7280;
  padding: 8px 12px; background: #f8fafc;
  border-radius: 6px;
}
/* 출석 버튼 그룹 */
.lm-att-group {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 12px;
}
.lm-att-btn {
  padding: 8px 14px; border-radius: 20px; font-size: 0.82rem; font-weight: 600;
  border: 1.5px solid #e5e7eb; background: #f9fafb; color: #374151;
  cursor: pointer; transition: all .15s;
}
.lm-att-btn:hover { border-color: #2563eb; color: #2563eb; background: #eff6ff; }
.lm-att-btn.selected { background: #2563eb; color: #fff; border-color: #2563eb; }
.lm-att-btn.selected[data-status="absent"]           { background: #dc2626; border-color: #dc2626; }
.lm-att-btn.selected[data-status="student_postponed"]{ background: #d97706; border-color: #d97706; }
.lm-att-btn.selected[data-status="teacher_postponed"]{ background: #7c3aed; border-color: #7c3aed; }
.lm-att-btn.selected[data-status="company_postponed"]{ background: #0f172a; border-color: #0f172a; }
.lm-att-btn:disabled { opacity: .4; cursor: not-allowed; pointer-events: none; }
.lm-save-btn {
  padding: 7px 20px; border-radius: 7px; font-size: 0.85rem; font-weight: 700;
  background: #2563eb; color: #fff; border: none; cursor: pointer; transition: background .15s;
}
.lm-save-btn:hover { background: #1d4ed8; }
.lm-save-btn.lm-save-btn-lg {
  width: 100%; padding: 14px; font-size: 1.05rem; font-weight: 800;
  border-radius: 10px; margin-top: 6px; letter-spacing: 0.03em;
}
.lm-cancel-postpone-btn {
  width: 100%; padding: 12px; font-size: 1rem; font-weight: 800;
  border-radius: 10px; margin-top: 8px; border: 2px solid #dc2626;
  background: #fff; color: #dc2626; cursor: pointer; transition: background .15s, color .15s;
}
.lm-cancel-postpone-btn:hover { background: #dc2626; color: #fff; }
.lm-cancel-postpone-btn.hidden { display: none; }
/* 피드백 textarea */
.lm-feedback-ta {
  width: 100%; padding: 10px 12px;
  border: 1.5px solid #e5e7eb; border-radius: 8px;
  font-family: inherit; font-size: 0.88rem; line-height: 1.6;
  resize: vertical; outline: none;
  transition: border-color .15s;
  margin-bottom: 10px;
  background: #fff;
}
.lm-feedback-ta:focus { border-color: #2563eb; }
.lm-feedback-ta[readonly] { background: #f8fafc; color: #6b7280; }
/* 이력 테이블 */
.lm-history-wrap { overflow-x: auto; }
.lm-history-table {
  width: 100%; border-collapse: collapse; font-size: 12px;
}
.lm-history-table th {
  background: #f8fafc; padding: 7px 10px;
  text-align: left; font-weight: 700; color: #6b7280;
  border-bottom: 1.5px solid #e5e7eb; white-space: nowrap;
}
.lm-history-table td {
  padding: 7px 10px; border-bottom: 1px solid #f1f5f9;
  vertical-align: top; white-space: nowrap;
}
.lm-history-table td:last-child { white-space: normal; }

@media (max-width: 480px) {
  .lesson-modal-box { border-radius: 10px; }
  .lesson-modal-hd { padding: 16px 16px 12px; }
  .lesson-modal-body { padding: 0 16px 16px; }
  .lm-att-btn { font-size: 0.78rem; padding: 6px 10px; }
}

/* ===== 경고 팝업 ===== */
.lm-warn-box {
  max-width: 340px;
  text-align: center;
  padding: 36px 32px 28px;
}
.lm-warn-icon {
  font-size: 2.8rem;
  color: #dc2626;
  margin-bottom: 16px;
  line-height: 1;
}
.lm-warn-msg {
  font-size: 1.25rem;
  font-weight: 800;
  color: #dc2626;
  margin: 0 0 24px;
  line-height: 1.5;
}
.lm-warn-ok {
  padding: 11px 40px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  background: #dc2626;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background .15s;
}
.lm-warn-ok:hover { background: #b91c1c; }

/* ===== 피드백 보기 / 확인 팝업 공통 ===== */
.lm-simple-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 2100;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.lm-simple-box {
  background: #fff;
  border-radius: 12px;
  width: 100%; max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  overflow: hidden;
}
.lm-simple-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid #f1f5f9;
}
.lm-simple-title { font-size: 1rem; font-weight: 800; color: #111827; }
.lm-simple-body { padding: 20px; }
/* 피드백 팝업 상세 */
.fv-box { min-width: 320px; max-width: 480px; width: 90vw; }
.fv-student { font-size: 1.15rem; font-weight: 800; color: #111827; margin-bottom: 6px; }
.fv-date { font-size: 1rem; font-weight: 700; color: #1d4ed8; margin-bottom: 4px; }
.fv-meta { font-size: 0.85rem; color: #6b7280; margin-bottom: 12px; }
.fv-row { display: flex; gap: 10px; font-size: 0.88rem; margin-bottom: 6px; }
.fv-label { color: #9ca3af; font-weight: 600; min-width: 50px; }
.fv-value { color: #374151; }
.fv-divider { border-top: 1px solid #e5e7eb; margin: 14px 0; }
.fv-feedback-label { font-size: 0.85rem; font-weight: 700; color: #6b7280; margin-bottom: 8px; }
.fv-feedback-text {
  font-size: 0.92rem; color: #111827; line-height: 1.8;
  white-space: pre-wrap; word-break: break-word;
  background: #f8fafc; padding: 14px 16px; border-radius: 8px;
  max-height: 260px; overflow-y: auto; border: 1px solid #e5e7eb;
}
/* 확인 팝업 */
.lm-confirm-box { max-width: 360px; }
.lm-confirm-msg {
  font-size: 0.95rem; color: #374151; line-height: 1.75;
  text-align: center; margin: 0 0 24px;
}
.lm-confirm-btns { display: flex; gap: 12px; justify-content: center; }
.lm-confirm-no, .lm-confirm-yes {
  padding: 10px 32px; border-radius: 8px;
  font-size: 0.95rem; font-weight: 700;
  cursor: pointer; border: none; transition: all .15s;
}
.lm-confirm-no  { background: #f1f5f9; color: #374151; }
.lm-confirm-no:hover  { background: #e2e8f0; }
.lm-confirm-yes { background: #2563eb; color: #fff; }
.lm-confirm-yes:hover { background: #1d4ed8; }

/* ===== 요일별 교재 스트립 ===== */
.cr-wdb-strip {
  display: grid;
  grid-template-columns: 1fr repeat(5, 2fr) 1fr;
  gap: 6px;
  padding: 10px 12px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 10px;
  margin-bottom: 14px;
}
.cr-wdb-empty { /* spacer */ }
.cr-wdb-book-label {
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 900; color: #fff;
  letter-spacing: .04em; text-transform: uppercase;
  background: #0369a1; border-radius: 8px;
  padding: 0 10px; min-width: 52px;
  text-shadow: 0 1px 2px rgba(0,0,0,.2);
}
.cr-wdb-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: #fff;
  border: 1px solid #e0f2fe;
  border-radius: 8px;
  padding: 6px 4px;
  min-height: 56px;
}
.cr-wdb-day {
  font-size: 0.7rem;
  font-weight: 700;
  color: #0369a1;
  text-transform: uppercase;
}
.cr-wdb-name {
  font-size: 0.72rem;
  color: #374151;
  text-align: center;
  word-break: keep-all;
  line-height: 1.3;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cr-wdb-edit-btn {
  font-size: 0.65rem;
  padding: 2px 6px;
  border: 1px solid #7dd3fc;
  border-radius: 4px;
  background: #e0f2fe;
  color: #0369a1;
  cursor: pointer;
  line-height: 1.4;
  transition: background .15s;
}
.cr-wdb-edit-btn:hover { background: #bae6fd; }

/* ===== 요일별 교재 설정 모달 ===== */
.wdb-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center;
  z-index: 9100;
}
.wdb-modal-box {
  background: #fff;
  border-radius: 16px;
  width: min(560px, 94vw);
  box-shadow: 0 12px 48px rgba(0,0,0,.22);
  overflow: hidden;
}
.wdb-modal-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
}
.wdb-modal-hd h4 { margin: 0; font-size: 1.1rem; font-weight: 700; color: #111827; }
.wdb-modal-close {
  background: none; border: none; font-size: 1.3rem;
  color: #9ca3af; cursor: pointer; padding: 4px 8px;
}
.wdb-modal-close:hover { color: #111827; }
.wdb-modal-body { padding: 22px 24px; }
.wdb-current-wrap {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 18px;
  padding: 12px 16px;
  background: #f8fafc; border-radius: 10px;
  border: 1px solid #e5e7eb;
}
.wdb-current-label { font-size: 0.82rem; font-weight: 700; color: #9ca3af; white-space: nowrap; }
.wdb-current-name  { font-size: 0.95rem; color: #111827; font-weight: 600; }
.wdb-search-wrap { position: relative; margin-bottom: 6px; }
.wdb-search-input {
  width: 100%; padding: 11px 16px;
  border: 1.5px solid #e5e7eb; border-radius: 10px;
  font-size: 0.95rem; outline: none; box-sizing: border-box;
}
.wdb-search-input:focus { border-color: #2563eb; }
.wdb-results {
  position: absolute; top: 100%; left: 0; right: 0;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
  max-height: 260px; overflow-y: auto;
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
  z-index: 10;
}
.wdb-result-item {
  padding: 11px 16px; font-size: 0.92rem; cursor: pointer;
  border-bottom: 1px solid #f3f4f6;
  display: flex; align-items: center; gap: 10px;
}
.wdb-result-item:last-child { border-bottom: none; }
.wdb-result-item:hover { background: #eff6ff; color: #2563eb; }
.wdb-result-level {
  font-size: 0.75rem; font-weight: 700; color: #fff;
  background: #7c3aed; border-radius: 4px; padding: 2px 7px;
  flex-shrink: 0;
}
.wdb-result-name { flex: 1; }
/* ALL 체크박스 */
.wdb-all-wrap {
  display: flex; align-items: center; gap: 10px;
  margin: 14px 0 18px;
  padding: 10px 14px;
  background: #fefce8; border: 1px solid #fde68a; border-radius: 8px;
}
.wdb-all-wrap label {
  font-size: 0.88rem; font-weight: 600; color: #92400e; cursor: pointer;
  display: flex; align-items: center; gap: 8px; user-select: none;
}
.wdb-all-wrap input[type="checkbox"] {
  width: 16px; height: 16px; cursor: pointer; accent-color: #d97706;
}
.wdb-all-desc { font-size: 0.78rem; color: #b45309; }
.wdb-modal-actions {
  display: flex; gap: 10px; justify-content: flex-end; margin-top: 4px;
}
.wdb-clear-btn {
  padding: 10px 20px; border-radius: 8px;
  border: 1px solid #e5e7eb; background: #f9fafb;
  color: #6b7280; font-size: 0.88rem; cursor: pointer;
}
.wdb-clear-btn:hover { background: #fee2e2; color: #dc2626; border-color: #fca5a5; }
.wdb-cancel-btn {
  padding: 10px 20px; border-radius: 8px;
  border: 1px solid #e5e7eb; background: #f9fafb;
  color: #374151; font-size: 0.88rem; cursor: pointer;
}
.wdb-cancel-btn:hover { background: #e2e8f0; }

/* ===== 수업 모달 교재 편집 UI ===== */
.lm-tb-edit-wrap { margin-top: 6px; }
.lm-tb-search-row {
  display: flex; gap: 8px; align-items: center;
}
.lm-tb-search-input {
  flex: 1; padding: 8px 12px;
  border: 1.5px solid #e5e7eb; border-radius: 8px;
  font-size: 0.88rem; outline: none;
}
.lm-tb-search-input:focus { border-color: #2563eb; }
.lm-tb-clear-btn {
  padding: 8px 12px; border-radius: 8px;
  border: 1px solid #e5e7eb; background: #f9fafb;
  color: #9ca3af; cursor: pointer; font-size: 0.85rem;
  transition: all .15s; flex-shrink: 0;
}
.lm-tb-clear-btn:hover { background: #fee2e2; color: #dc2626; border-color: #fca5a5; }
.lm-tb-dropdown {
  margin-top: 4px;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 8px;
  max-height: 180px; overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
}
.lm-tb-item {
  padding: 8px 12px; font-size: 0.87rem; cursor: pointer;
  border-bottom: 1px solid #f3f4f6;
}
.lm-tb-item:last-child { border-bottom: none; }
.lm-tb-item:hover { background: #eff6ff; color: #2563eb; }

@media (max-width: 768px) {
  .cr-wdb-strip {
    grid-template-columns: auto repeat(5, 1fr) 0;
    gap: 4px;
    padding: 8px;
  }
  .cr-wdb-empty { display: none; }
  .cr-wdb-book-label { font-size: 0.65rem; writing-mode: vertical-rl; }
  .cr-wdb-name { font-size: 0.65rem; }
}
@media (max-width: 480px) {
  .cr-wdb-cell { padding: 4px 2px; min-height: 48px; }
  .cr-wdb-name { font-size: 0.6rem; }
  .cr-wdb-edit-btn { font-size: 0.6rem; padding: 2px 4px; }
}
@media (max-width: 480px) {
  .lm-simple-box { border-radius: 10px; }
  .lm-confirm-msg { font-size: 0.88rem; }
  .lm-confirm-no, .lm-confirm-yes { padding: 9px 22px; }
}

@media (max-width: 768px) {
  .classroom-page-header { padding: 12px 16px; }
  .classroom-body { padding: 16px; }
  .cr-day { min-height: 64px; padding: 4px; }
  .cr-date { width: 24px; height: 24px; font-size: 12px; }
  .cr-event { font-size: 10px; }
  .cr-cal-month { font-size: 18px; }
}

/* ===== 무료 체험수업 페이지 ===== */
.trial-page {
  min-height: calc(100vh - 68px);
  background: var(--bg-gray);
  display: flex;
  flex-direction: column;
}
.trial-page.hidden { display: none; }

.trial-body {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.trial-section {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}

.trial-section-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.trial-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.trial-section-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}

.trial-section-desc {
  font-size: 14px;
  color: var(--text-secondary);
}

/* 날짜 열 */
.trial-date-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.trial-date-col {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.trial-date-header {
  background: var(--primary);
  color: #fff;
  padding: 12px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.trial-date-day { font-size: 17px; font-weight: 700; }
.trial-date-dow { font-size: 12px; opacity: 0.8; }

.trial-time-grid {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.trial-time-btn {
  width: 100%;
  padding: 8px 0;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}

.trial-time-btn:hover:not(.disabled) {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.trial-time-btn.selected {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.trial-time-btn.disabled {
  background: #f9fafb;
  border-color: #e5e7eb;
  color: #d1d5db;
  cursor: not-allowed;
}

/* 선택된 일정 */
.trial-selected-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-height: 28px;
  padding: 4px 0;
}

.selected-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.selected-chip {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid #bfdbfe;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

/* 폼 그리드 */
.trial-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}
.trial-form-grid .form-group.full { grid-column: 1 / -1; }

.trial-form-grid .form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.trial-form-grid .form-group input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.trial-form-grid .form-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.input-row {
  display: flex;
  gap: 8px;
}
.input-row input { flex: 1; }

.field-msg {
  font-size: 12px;
  margin-top: 5px;
  min-height: 16px;
  font-weight: 500;
}
.field-msg.success { color: #16a34a; }
.field-msg.error   { color: #dc2626; }

.field-hint {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 5px;
  line-height: 1.5;
}

/* 동의 체크박스 */
.trial-agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 16px;
  background: var(--bg-gray);
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 24px;
  border: 1px solid var(--border);
}

.trial-agree input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: var(--primary);
}

.trial-agree span {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
  flex: 1;
}

.terms-link-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  white-space: nowrap;
  flex-shrink: 0;
  align-self: center;
}
.terms-link-btn:hover { color: #1d4ed8; }

/* 약관 팝업 */
.terms-modal {
  max-width: 640px;
  width: 95vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  padding: 0;
}
.terms-body {
  overflow-y: auto;
  padding: 24px 28px;
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.8;
  flex: 1;
}
.terms-body h4 {
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
  margin: 20px 0 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
}
.terms-body h4:first-child { margin-top: 0; }
.terms-body p { margin: 0 0 10px; font-size: 13px; line-height: 1.75; color: #374151; }
.terms-body ul { margin: 0 0 12px 20px; padding: 0; }
.terms-body li { font-size: 13px; line-height: 1.8; color: #374151; margin-bottom: 4px; }
.terms-updated { font-size: 12px !important; color: #9ca3af !important; margin-bottom: 16px !important; }
.terms-table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
  font-size: 13px;
}
.terms-table th, .terms-table td {
  border: 1px solid var(--border);
  padding: 8px 12px;
  text-align: left;
}
.terms-table th {
  background: var(--bg-gray);
  font-weight: 700;
  color: #1f2937;
}
.terms-ref {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 6px !important;
}
.terms-footer {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 20px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.terms-footer-btn {
  padding: 16px 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
}

.trial-loggedin-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 0.95rem;
}
.trial-loggedin-banner.hidden { display: none; }
.trial-loggedin-icon {
  font-size: 1.2rem;
  color: #2563eb;
  font-weight: 700;
}
#trialLoggedInText {
  font-weight: 700;
  color: #1e40af;
}
.trial-loggedin-hint {
  color: #3b82f6;
  font-size: 0.875rem;
}
.trial-guest-only.hidden { display: none !important; }

.trial-submit-btn {
  width: 100%;
  justify-content: center;
  font-size: 17px;
  padding: 16px;
}

.trial-submit-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

@media (max-width: 768px) {
  .trial-date-wrap { grid-template-columns: 1fr; }
  .trial-form-grid { grid-template-columns: 1fr; }
  .trial-section { padding: 20px 16px; }
  .trial-body { padding: 16px; }
}

/* ===== 수강신청 페이지 ===== */
.enroll-page {
  min-height: 100vh;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
}
.enroll-page.hidden { display: none; }

/* 헤더 */
.enroll-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  height: 64px;
  background: var(--primary);
  color: #fff;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.enroll-back-btn {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--transition);
  white-space: nowrap;
}
.enroll-back-btn:hover { background: rgba(255,255,255,0.3); }
.enroll-title-wrap { display: flex; align-items: center; gap: 8px; }
.enroll-page-icon { font-size: 20px; }
.enroll-page-title { font-size: 20px; font-weight: 800; letter-spacing: -0.3px; }
.enroll-header-spacer { width: 110px; }

/* 학생 검색 바 (관리자/마스터) */
.enroll-student-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.enroll-student-bar-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.enroll-student-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}
.enroll-ac-wrap { position: relative; flex: 1; min-width: 200px; max-width: 400px; }
.enroll-ac-input {
  width: 100%;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition);
}
.enroll-ac-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.enroll-ac-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  max-height: 200px;
  overflow-y: auto;
}
.enroll-ac-item {
  padding: 10px 14px;
  font-size: 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.enroll-ac-item:last-child { border-bottom: none; }
.enroll-ac-item:hover, .enroll-ac-item.active { background: var(--primary-light); color: var(--primary); }
.enroll-selected-badge {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(37,99,235,0.2);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
}

/* 선생님 접근 불가 */
.enroll-denied {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.enroll-denied-inner {
  text-align: center;
  padding: 48px 24px;
}
.enroll-denied-icon { font-size: 56px; margin-bottom: 20px; }
.enroll-denied-inner h3 { font-size: 22px; font-weight: 800; margin-bottom: 10px; color: var(--text); }
.enroll-denied-inner p { font-size: 15px; color: var(--text-secondary); margin-bottom: 24px; }

/* 메인 컨텐츠 */
.enroll-content { flex: 1; }
.enroll-content-inner {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  padding-top: 32px;
  padding-bottom: 48px;
  align-items: start;
}

/* 폼 섹션 */
.enroll-form-col { display: flex; flex-direction: column; gap: 0; }
.enroll-section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 28px 24px;
  margin-bottom: 16px;
}
.enroll-continue-wrap {
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.enroll-continue-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.enroll-continue-label input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: #2563eb;
  cursor: pointer; flex-shrink: 0;
}
.enroll-continue-text {
  font-size: 15px; font-weight: 700; color: #1e40af;
}
.enroll-continue-hint {
  font-size: 12px; color: #3b82f6; padding-left: 28px;
}
.enroll-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.enroll-step {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.enroll-section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.enroll-note {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.5;
}

/* 옵션 버튼 그룹 */
.enroll-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.enroll-opt-btn {
  padding: 10px 22px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.enroll-opt-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}
.enroll-opt-btn.selected {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37,99,235,0.3);
}
.enroll-day-group .enroll-opt-btn { font-size: 13px; padding: 9px 16px; }

/* 시각 그리드 (6시~23시) */
.enroll-hour-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.enroll-hour-grid .enroll-opt-btn { padding: 10px 6px; text-align: center; }

/* 시작일 달력 */
.enroll-cal-wrap {
  max-width: 380px;
}
.enroll-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.enroll-cal-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  color: var(--text);
}
.enroll-cal-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.enroll-cal-month-label { font-size: 17px; font-weight: 700; color: var(--text); }
.enroll-cal-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 6px;
}
.ecal-dow {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 6px 0;
}
.ecal-dow.sun { color: #dc2626; }
.ecal-dow.sat { color: #2563eb; }
.enroll-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.ecal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: default;
  transition: all var(--transition);
  color: #d1d5db;
}
.ecal-day.selectable {
  color: var(--text);
  cursor: pointer;
  background: #fff;
  border: 1px solid var(--border);
}
.ecal-day.selectable:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }
.ecal-day.selected { background: var(--primary) !important; color: #fff !important; border-color: var(--primary) !important; font-weight: 700; }
.ecal-day.today { border: 2px solid var(--primary); color: var(--primary); font-weight: 700; }
.ecal-day.today.selected { background: var(--primary); color: #fff; }
.ecal-day.out-of-range { color: #e5e7eb; }
.ecal-day.weekend { color: #e5e7eb; }
.ecal-day.holiday { color: #e5e7eb; }

/* 우측 결제 요약 카드 */
.enroll-summary-col { position: sticky; top: 80px; }
.enroll-summary-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.enroll-summary-title {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  background: var(--primary);
  padding: 16px 20px;
  letter-spacing: -0.2px;
}
.enroll-summary-rows { padding: 4px 20px 0; }
.enroll-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}
.enroll-summary-row:last-child { border-bottom: none; }
.esr-label { font-size: 13px; color: var(--text-secondary); }
.esr-val { font-size: 14px; font-weight: 600; color: var(--text); text-align: right; }
.enroll-summary-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}
.enroll-price-row { padding: 16px 0; }
.esr-price {
  font-size: 22px;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.5px;
}

/* 결제 수단 */
.enroll-payment-section { padding: 16px 20px; border-top: 1px solid var(--border); }
.enroll-payment-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.enroll-pay-btns { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.enroll-pay-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition);
  text-align: left;
}
.enroll-pay-btn:hover { border-color: var(--primary); background: var(--primary-light); }
.enroll-pay-btn.active { border-color: var(--primary); background: var(--primary-light); }
.pay-name { font-size: 14px; font-weight: 600; color: var(--text); }
.pay-sub { font-size: 11px; color: var(--text-secondary); background: #f1f5f9; padding: 2px 8px; border-radius: 100px; }
.enroll-pay-note {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
  background: #fef9ec;
  border: 1px solid #fcd34d;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

/* 수강신청하기 버튼 */
.enroll-submit-btn {
  width: 100%;
  padding: 16px;
  background: var(--accent);
  color: #fff;
  border: none;
  font-size: 16px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--transition);
  letter-spacing: -0.2px;
}
.enroll-submit-btn:hover { background: #b91c1c; }
.enroll-submit-btn:disabled { background: #9ca3af; cursor: not-allowed; }

/* ============================
   수강증 페이지
   ============================ */
/* ===== 수강료 페이지 ===== */
/* ===== 수강료 페이지 ===== */
.pricing-page {
  min-height: 100vh;
  background: #f0f4ff;
}
.pricing-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  padding: 14px 24px;
  border-bottom: 1px solid rgba(37,99,235,0.12);
  position: sticky;
  top: 0;
  z-index: 100;
}
.pricing-back-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1.5px solid #2563eb;
  border-radius: 8px;
  padding: 8px 18px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  color: #2563eb;
  transition: all 0.2s;
  min-width: 100px;
}
.pricing-back-btn:hover { background: #2563eb; color: #fff; }
.pricing-title-wrap { display: flex; align-items: center; }
.pricing-page-title { font-size: 1.1rem; font-weight: 700; color: #1e293b; }
.pricing-header-spacer { width: 120px; }

/* 히어로 배너 */
.pricing-hero-banner {
  background: linear-gradient(135deg, #0f2563 0%, #1e3a8a 40%, #2563eb 80%, #3b82f6 100%);
  padding: 72px 24px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.pricing-hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.pricing-hero-orb1 {
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(251,191,36,0.18) 0%, transparent 70%);
  top: -80px; right: -60px;
  animation: orbFloat 7s ease-in-out infinite;
}
.pricing-hero-orb2 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  bottom: -60px; left: -40px;
  animation: orbFloat 9s ease-in-out infinite reverse;
}
.pricing-hero-orb3 {
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(251,191,36,0.12) 0%, transparent 70%);
  top: 30%; left: 10%;
  animation: orbFloat 5s ease-in-out infinite 1s;
}
@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-18px) scale(1.06); }
}

/* 캐릭터 일러스트 */
.pricing-char {
  position: absolute;
  bottom: 0;
  width: 150px;
  z-index: 2;
  filter: drop-shadow(0 6px 18px rgba(0,10,40,0.35));
}
.pricing-char-left {
  left: max(3%, 8px);
  animation: charFloat 4s ease-in-out infinite;
}
.pricing-char-right {
  right: max(3%, 8px);
  animation: charFloat 4s ease-in-out infinite 0.7s;
}
@keyframes charFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@media (max-width: 1100px) {
  .pricing-char { width: 120px; }
}
@media (max-width: 860px) {
  .pricing-char { width: 90px; }
}
@media (max-width: 640px) {
  .pricing-char { display: none; }
}

.pricing-hero-content {
  position: relative;
  z-index: 3;
}
.pricing-page-tag {
  display: inline-block;
  background: #fbbf24;
  color: #1e3a8a;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 5px 18px;
  border-radius: 20px;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.pricing-hero-desc {
  margin-top: 20px;
}
.pricing-hero-quote {
  font-family: 'Nanum Pen Script', cursive;
  font-size: 1.6rem;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.04em;
  line-height: 1.4;
}
@media (max-width: 480px) {
  .pricing-hero-quote { font-size: 1.3rem; }
}

/* 테이블 카드 */
.pricing-page-body {
  padding: 0 24px 60px;
  max-width: 820px;
  margin: 0 auto;
}
.pricing-card-wrap {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(37,99,235,0.14), 0 4px 16px rgba(0,0,0,0.06);
  overflow: hidden;
  margin-top: -48px;
  position: relative;
  z-index: 2;
}
.pricing-table-new {
  width: 100%;
  border-collapse: collapse;
}
.pricing-table-new thead tr {
  background: #1e3a8a;
}
.pricing-table-new th {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 20px 24px;
  text-align: center;
  letter-spacing: 0.05em;
}
.pricing-table-new th:first-child { text-align: center; width: 30%; }
.pricing-table-new th:last-child { color: #fbbf24; }

.pricing-table-new td {
  padding: 0 24px;
  text-align: center;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s;
}
.pricing-table-new tr:last-child td { border-bottom: none; }

.pricing-row-group td:first-child,
.pricing-table-new .pricing-plan-cell-new {
  border-right: 1px solid #e8edf5;
  background: #f8faff;
}
.pricing-plan-cell-new {
  padding: 24px 20px !important;
  vertical-align: middle;
  border-right: 1px solid #e8edf5 !important;
}
.plan-days {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: #1e3a8a;
}
.plan-total {
  display: block;
  font-size: 0.88rem;
  color: #6b7280;
  margin-top: 4px;
}
.plan-best-badge {
  display: inline-block;
  background: linear-gradient(135deg, #dc2626, #ef4444);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.pricing-time-cell-new {
  font-size: 1.05rem;
  color: #374151;
  font-weight: 600;
  height: 68px;
}
.price-cell-new {
  font-weight: 700;
  height: 68px;
}
.price-amount {
  font-size: 1.4rem;
  color: #dc2626;
  font-weight: 800;
}
.price-unit {
  font-size: 0.88rem;
  color: #9ca3af;
  margin-left: 3px;
}

/* BEST 행 강조 */
.pricing-row-best .pricing-plan-cell-new {
  background: linear-gradient(135deg, #fef3c7, #fef9ec) !important;
}
.pricing-row-best .pricing-time-cell-new,
.pricing-row-best .price-cell-new {
  background: #fffbf0;
}
.pricing-row-best .price-amount {
  color: #b45309;
}

/* 행 호버 */
.pricing-table-new tbody tr:hover .pricing-time-cell-new,
.pricing-table-new tbody tr:hover .price-cell-new {
  background: #eff6ff;
}

.pricing-note-new {
  padding: 14px 20px;
  font-size: 0.78rem;
  color: #9ca3af;
  border-top: 1px solid #f1f5f9;
  margin: 0;
  background: #fafbfd;
}

@media (max-width: 768px) {
  .pricing-hero-banner { padding: 56px 16px 80px; }
  .pricing-page-body { padding: 0 16px 48px; }
  .pricing-header-spacer { width: 60px; }
  .pricing-card-wrap { margin-top: -40px; border-radius: 16px; }
  .pricing-table-new th, .pricing-table-new td { padding: 0 14px; }
  .pricing-time-cell-new, .price-cell-new { height: 58px; }
  .price-amount { font-size: 1.2rem; }
  .plan-days { font-size: 1.2rem; }
}
@media (max-width: 480px) {
  .pricing-hero-banner { padding: 44px 12px 72px; }
  .pricing-page-body { padding: 0 12px 40px; }
  .pricing-table-new th { font-size: 0.88rem; padding: 14px 8px; }
  .pricing-table-new td { padding: 0 8px; }
  .pricing-time-cell-new, .price-cell-new { height: 52px; font-size: 0.95rem; }
  .price-amount { font-size: 1.1rem; }
  .plan-days { font-size: 1.05rem; }
  .pricing-back-btn { min-width: 80px; padding: 8px 12px; font-size: 0.82rem; }
  .pricing-header-spacer { width: 40px; }
}

/* ===== 영수증 페이지 ===== */
.receipt-page {
  min-height: 100vh;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
}
.receipt-page.hidden { display: none; }
.receipt-list {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  padding: 32px 0;
  justify-content: center;
}
.receipt-card { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.receipt-card-inner {
  background: #fff;
  border: 2px solid #1e293b;
  border-radius: 4px;
  padding: 32px 36px;
  width: 340px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.receipt-doc-header { text-align: center; margin-bottom: 20px; }
.receipt-doc-brand { font-size: 12px; letter-spacing: 6px; color: #6b7280; margin-bottom: 4px; }
.receipt-doc-title {
  font-size: 24px; font-weight: 800; letter-spacing: 10px; color: #1e293b;
  border-top: 3px double #1e293b; border-bottom: 3px double #1e293b;
  padding: 8px 0; margin-bottom: 12px;
}
.receipt-doc-meta {
  display: flex; justify-content: space-between;
  font-size: 11px; color: #6b7280;
}
.receipt-doc-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.receipt-doc-table td { padding: 9px 6px; font-size: 13px; border-bottom: 1px solid #e2e8f0; }
.receipt-label { color: #6b7280; width: 72px; font-weight: 600; }
.receipt-value { color: #1e293b; font-weight: 600; }
.receipt-price { font-size: 17px !important; font-weight: 800 !important; color: #2563eb !important; }
.receipt-doc-footer { text-align: center; font-size: 12px; color: #374151; padding: 14px 0; border-top: 1px solid #e2e8f0; margin-bottom: 10px; }
.receipt-doc-stamp { text-align: right; font-size: 12px; font-weight: 700; color: #1e293b; }
.receipt-print-btn {
  padding: 10px 28px; background: #2563eb; color: #fff;
  border: none; border-radius: 8px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: background 0.15s;
}
.receipt-print-btn:hover { background: #1d4ed8; }
/* 영수증 검색 히어로 */
.receipt-hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 60%, #fff7ed 100%);
}
.receipt-hero.hidden { display: none; }
.receipt-hero-inner {
  text-align: center;
  max-width: 480px;
  width: 100%;
}
.receipt-hero-icon { font-size: 64px; margin-bottom: 16px; line-height: 1; }
.receipt-hero-title {
  font-size: 26px;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 10px;
}
.receipt-hero-sub {
  font-size: 15px;
  color: #6b7280;
  margin: 0 0 32px;
  line-height: 1.6;
}
.receipt-hero-form { width: 100%; }
.receipt-hero-input-wrap {
  position: relative;
  display: flex;
  gap: 10px;
}
.receipt-hero-input {
  flex: 1;
  padding: 14px 18px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.receipt-hero-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.receipt-hero-btn {
  padding: 14px 26px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, transform 0.1s;
  box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}
.receipt-hero-btn:hover { background: #1d4ed8; transform: translateY(-1px); }
.receipt-hero-btn:active { transform: translateY(0); }

/* 자동완성 */
.receipt-student-ac {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: #fff; border: 1px solid #e2e8f0;
  border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 100; max-height: 220px; overflow-y: auto;
}
.receipt-ac-item {
  padding: 12px 16px; font-size: 14px; cursor: pointer;
  transition: background 0.12s; border-bottom: 1px solid #f1f5f9;
}
.receipt-ac-item:last-child { border-bottom: none; }
.receipt-ac-item:hover { background: #eff6ff; }

/* 다시 검색 바 */
.receipt-research-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0 4px;
  margin-bottom: 8px;
}
.receipt-research-btn {
  padding: 8px 18px;
  background: #f1f5f9;
  color: #374151;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.receipt-research-btn:hover { background: #e2e8f0; }
.receipt-research-name {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
}

@media (max-width: 480px) {
  .receipt-card-inner { width: 100%; padding: 20px 16px; }
  .receipt-hero { padding: 40px 16px; }
  .receipt-hero-icon { font-size: 48px; }
  .receipt-hero-title { font-size: 22px; }
  .receipt-hero-input-wrap { flex-direction: column; }
  .receipt-hero-btn { width: 100%; }
}

.cert-page {
  min-height: 100vh;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
}
.cert-page.hidden { display: none; }

.cert-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  height: 64px;
  background: var(--primary);
  color: #fff;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.cert-logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
  flex-shrink: 0;
}
.cert-logo-img { height: 36px; }
.cert-logo-text {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .cert-logo-text { display: none; }
}
.cert-back-btn {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--transition);
  white-space: nowrap;
}
.cert-back-btn:hover { background: rgba(255,255,255,0.3); }
.cert-title-wrap { display: flex; align-items: center; gap: 8px; }
.cert-page-icon { font-size: 20px; }
.cert-page-title { font-size: 20px; font-weight: 800; letter-spacing: -0.3px; }
.cert-header-spacer { width: 110px; }

/* 검색 바 */
.cert-search-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.cert-search-bar.hidden { display: none; }
.cert-search-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cert-search-input {
  flex: 1;
  max-width: 320px;
  padding: 9px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition);
}
.cert-search-input:focus { border-color: var(--primary); }
.cert-search-btn {
  padding: 9px 20px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--transition);
  min-height: 44px;
}
.cert-search-btn:hover { background: #1d4ed8; }

/* 본문 */
.cert-body {
  padding: 32px 0;
  flex: 1;
}

/* 목록 테이블 */
.cert-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}
.cert-table thead {
  background: var(--primary);
  color: #fff;
}
.cert-table th {
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}
.cert-table td {
  padding: 13px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.cert-table tbody tr:last-child td { border-bottom: none; }
.cert-table tbody tr:hover { background: #f0f4ff; }

.cert-pdf-btn {
  padding: 6px 14px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--transition);
  min-height: 32px;
}
.cert-pdf-btn:hover { background: #1d4ed8; }

/* 수정 버튼 */
.cert-action-cell { display: flex; align-items: center; gap: 6px; justify-content: center; }
.cert-edit-btn {
  padding: 6px 10px;
  background: #f59e0b;
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--transition);
  min-height: 32px;
  line-height: 1;
}
.cert-edit-btn:hover { background: #d97706; }

/* 수강증 편집 모달 */
.cert-edit-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.cert-edit-overlay.hidden { display: none; }
.cert-edit-modal {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.2);
  overflow: hidden;
  animation: certModalIn 0.2s ease;
}
@keyframes certModalIn {
  from { opacity: 0; transform: translateY(-16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.cert-edit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid #e5e7eb;
}
.cert-edit-title { font-size: 1rem; font-weight: 700; color: #1e293b; }
.cert-edit-close {
  background: none;
  border: none;
  font-size: 22px;
  color: #9ca3af;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
  transition: color 0.15s;
}
.cert-edit-close:hover { color: #374151; }
.cert-edit-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.cert-edit-notice {
  font-size: 0.78rem;
  color: #f59e0b;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 8px 12px;
  margin: 0;
}
.cert-edit-field { display: flex; flex-direction: column; gap: 5px; }
.cert-edit-label { font-size: 0.8rem; font-weight: 600; color: #374151; }
.cert-edit-input {
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 0.9rem;
  font-family: inherit;
  color: #1e293b;
  transition: border-color 0.15s;
  outline: none;
}
.cert-edit-input:focus { border-color: #2563eb; }
.cert-edit-footer {
  display: flex;
  gap: 10px;
  padding: 14px 20px 18px;
  border-top: 1px solid #e5e7eb;
}
.cert-edit-cancel {
  flex: 1;
  padding: 10px;
  background: #f3f4f6;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.cert-edit-cancel:hover { background: #e5e7eb; }
.cert-edit-download {
  flex: 2;
  padding: 10px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.15s;
  box-shadow: 0 2px 8px rgba(37,99,235,0.3);
}
.cert-edit-download:hover { opacity: 0.9; }
.cert-edit-download:disabled { opacity: 0.6; cursor: not-allowed; }
@media (max-width: 480px) {
  .cert-edit-modal { border-radius: 12px; }
  .cert-edit-footer { flex-direction: column; }
}

/* 빈 상태 / 로딩 */
.cert-empty,
.cert-loading {
  text-align: center;
  color: var(--text-muted);
  padding: 60px 0;
  font-size: 15px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}

/* 페이지네이션 */
.cert-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.cert-page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1.5px solid var(--border);
  background: #fff;
  border-radius: var(--radius-sm);
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition);
}
.cert-page-btn:hover { background: #f0f4ff; border-color: var(--primary); }
.cert-page-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ===== 수강 확인증 (PDF 템플릿) ===== */
.cert-document {
  width: 794px;
  min-height: 1123px;
  background: #fff;
  padding: 80px 80px 60px;
  box-sizing: border-box;
  font-family: 'Noto Sans KR', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cert-doc-logo {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 60px;
}
.cert-doc-logo-ru {
  font-size: 28px;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: 2px;
}
.cert-doc-logo-kr {
  font-size: 18px;
  font-weight: 700;
  color: #374151;
}
.cert-doc-title {
  font-size: 36px;
  font-weight: 900;
  color: #111827;
  letter-spacing: 8px;
  text-align: center;
  margin: 0 0 60px;
}
.cert-doc-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 60px;
}
.cert-doc-table th,
.cert-doc-table td {
  border: 1.5px solid #d1d5db;
  padding: 18px 24px;
  font-size: 16px;
  text-align: left;
}
.cert-doc-table th {
  background: #f3f4f6;
  font-weight: 700;
  color: #374151;
  width: 140px;
  text-align: center;
  letter-spacing: 2px;
}
.cert-doc-table td {
  font-weight: 500;
  color: #111827;
  font-size: 17px;
}
.cert-doc-statement {
  font-size: 16px;
  color: #374151;
  text-align: center;
  margin: 0 0 80px;
  line-height: 1.8;
}
.cert-doc-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.cert-doc-date {
  font-size: 16px;
  color: #6b7280;
}
.cert-doc-company {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  letter-spacing: 1px;
}

/* 반응형 */
@media (max-width: 1024px) {
  .enroll-content-inner { grid-template-columns: 1fr 300px; gap: 20px; }
}
@media (max-width: 768px) {
  .enroll-page-header { padding: 0 16px; }
  .enroll-page-title { font-size: 17px; }
  .enroll-header-spacer { display: none; }
  .enroll-content-inner {
    grid-template-columns: 1fr;
    padding-top: 20px;
    padding-bottom: 32px;
    gap: 16px;
  }
  .enroll-summary-col { position: static; }
  .enroll-section { padding: 20px 16px 18px; }
  .enroll-hour-grid { grid-template-columns: repeat(4, 1fr); }
  .enroll-cal-wrap { max-width: 100%; }
}
@media (max-width: 480px) {
  .enroll-page-header { height: 56px; }
  .enroll-back-btn { padding: 6px 12px; font-size: 13px; }
  .enroll-hour-grid { grid-template-columns: repeat(3, 1fr); }
  .enroll-opt-btn { padding: 9px 14px; font-size: 13px; }
}

/* ===== 토스트 ===== */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1f2937;
  color: #fff;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  z-index: 3000;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: var(--shadow-xl);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== 반응형 ===== */
@media (max-width: 1024px) {
  .courses-grid { grid-template-columns: repeat(2, 1fr); }
  .teachers-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  /* 네비 모바일 */
  .nav {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
    z-index: 999;
    align-items: stretch;
    gap: 4px;
  }
  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav-link { padding: 12px 16px; width: 100%; align-self: auto; }
  .nav-item { width: 100%; display: block; }
  .nav-dropdown {
    position: static;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: all !important;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--primary-light);
    border-radius: 0;
    margin-left: 16px;
    display: none;
  }
  .nav-dropdown::before,
  .nav-dropdown::after { display: none; }
  .nav-item.open .nav-dropdown { display: block; }
  .nav-dropdown-item { padding: 10px 16px; font-size: 13px; color: var(--text-secondary); }
  .hamburger { display: flex; }
  .auth-btns .btn-outline { display: none; }

  /* 히어로 */
  .hero { padding: 100px 0 60px; }
  .hero-bg::after { display: none; } /* 모바일에서 장식 텍스트 숨김 */
  .hero-title { letter-spacing: -0.5px; }
  .hero-desc { font-size: 16px; }
  .hero-btns .btn-ghost { display: none; }
  .hero-btns { gap: 12px; }
  .stat-num { font-size: 26px; }

  /* 섹션 공통 패딩 축소 */
  .features, .courses, .teachers, .pricing,
  .calendar-section, .register, .reviews { padding: 60px 0; }
  .section-header { margin-bottom: 36px; }

  /* 그리드 */
  .features-grid { grid-template-columns: 1fr 1fr; }
  .courses-grid { grid-template-columns: 1fr; }
  .teachers-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; padding: 40px 24px 32px; }

  /* 수강신청 폼 */
  .register-form { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }

  /* 캘린더 */
  .slots-grid { grid-template-columns: repeat(3, 1fr); }
  .calendar-wrapper { padding: 20px 16px; }

  /* 모달 */
  .modal { padding: 28px 20px; }
  .modal-overlay { align-items: flex-end; }
  .modal { border-radius: var(--radius-lg) var(--radius-lg) 0 0; max-height: 90vh; overflow-y: auto; }

  /* 강의실 */
  .classroom-page-header { padding: 12px 16px; flex-wrap: wrap; gap: 8px; }
  .classroom-title { font-size: 16px; }
  .classroom-body { padding: 16px; }
  .cr-day { min-height: 64px; padding: 4px; }
  .cr-date { width: 24px; height: 24px; font-size: 12px; }
  .cr-event { font-size: 10px; }
  .cr-cal-month { font-size: 18px; }
  .cr-student-picker { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  /* 섹션 패딩 더 축소 */
  .features, .courses, .teachers, .pricing,
  .calendar-section, .register, .reviews { padding: 44px 0; }
  .section-header { margin-bottom: 28px; }
  .container { padding: 0 16px; }

  /* 히어로 */
  .hero { padding: 88px 0 48px; }
  .hero-stats { gap: 20px; }
  .stat-divider { display: none; }
  .hero-btns { flex-direction: column; align-items: center; }
  .hero-btns .btn { width: 100%; max-width: 280px; justify-content: center; }

  /* 그리드 */
  .features-grid { grid-template-columns: 1fr; }
  .teachers-grid { grid-template-columns: 1fr; }
  .slots-grid { grid-template-columns: repeat(2, 1fr); }

  /* 카드 패딩 */
  .feature-card { padding: 24px 20px; }
  .teacher-card { padding: 24px 16px; }

  /* 수강신청 폼 */
  .register-form { padding: 20px 16px; border-radius: var(--radius); }

  /* 강의실 */
  .classroom-page-header { flex-direction: column; align-items: flex-start; }
  .cr-calendar-grid { font-size: 12px; }

  /* 수강료 표 */
  .pricing-table { font-size: 13px; }
  .pricing-table td, .pricing-table th { padding: 0 10px; height: 40px; font-size: 12px; }
  .pricing-plan-cell { padding: 0 10px !important; font-size: 12px; }
  .price-cell { font-size: 13px; padding-right: 12px !important; }
  .pricing-main-line { font-size: 2rem; }
  .pricing-sub-line { font-size: 1.3rem; }

  /* 수강증 */
  .cert-table { font-size: 13px; }
  .cert-table th, .cert-table td { padding: 10px 8px; }
  .cert-search-inner { flex-direction: column; gap: 8px; }
  .cert-search-input { width: 100%; }
}

/* ===== Schedule Page ===== */
.sch-page {
  min-height: 100vh;
  background: #f8fafc;
  padding-bottom: 60px;
}
.sch-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  padding: 16px 24px;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 100;
}
.sch-back-btn {
  background: none;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 0.9rem;
  color: #374151;
  transition: all 0.2s;
}
.sch-back-btn:hover { background: #f3f4f6; border-color: #9ca3af; }
.sch-title-wrap { display: flex; align-items: center; gap: 10px; }
.sch-page-icon { font-size: 1.5rem; }
.sch-page-title { font-size: 1.3rem; font-weight: 700; color: #1e293b; }
.sch-header-spacer { width: 120px; }

/* Admin search */
.sch-admin-search {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 16px 24px;
}
.sch-admin-inner {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.sch-search-input {
  flex: 1;
  min-width: 200px;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.95rem;
  outline: none;
}
.sch-search-input:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.sch-search-btn {
  padding: 10px 20px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background 0.2s;
}
.sch-search-btn:hover { background: #1d4ed8; }
.sch-teacher-results {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.sch-teacher-result-btn {
  padding: 7px 16px;
  border: 2px solid #2563eb;
  border-radius: 20px;
  background: #fff;
  color: #2563eb;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.sch-teacher-result-btn:hover, .sch-teacher-result-btn.active {
  background: #2563eb;
  color: #fff;
}

/* Teacher selector (student) */
.sch-teacher-selector, .sch-enroll-selector {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 14px 24px;
}
.sch-section-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.sch-teacher-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.sch-teacher-btn {
  padding: 8px 20px;
  border: 2px solid #d1d5db;
  border-radius: 20px;
  background: #fff;
  color: #374151;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.sch-teacher-btn:hover { border-color: #2563eb; color: #2563eb; }
.sch-teacher-btn.active { border-color: #2563eb; background: #2563eb; color: #fff; }

/* Enrollment selector */
.sch-enroll-select {
  padding: 9px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.95rem;
  outline: none;
  background: #fff;
  cursor: pointer;
  margin-right: 12px;
}
.sch-enroll-select:focus { border-color: #2563eb; }
.sch-enroll-hint {
  font-size: 0.85rem;
  color: #6b7280;
}

/* Edit actions (teacher/admin) */
.sch-edit-actions {
  background: #fff;
  border-bottom: 2px solid #e5e7eb;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.sch-student-actions {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.sch-edit-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.sch-edit-right {
  margin-left: auto;
}
.sch-divider {
  width: 1px;
  height: 24px;
  background: #e5e7eb;
  margin: 0 4px;
}
.sch-selected-count, .sch-student-hint {
  font-size: 0.9rem;
  color: #6b7280;
  margin-right: 4px;
}
.sch-action-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.sch-btn-select-all { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; }
.sch-btn-select-all:hover { background: #e2e8f0; }
.sch-btn-deselect { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; }
.sch-btn-deselect:hover { background: #e2e8f0; }
.sch-btn-open { background: #10b981; color: #fff; }
.sch-btn-open:hover { background: #059669; }
.sch-btn-close { background: #ef4444; color: #fff; }
.sch-btn-close:hover { background: #dc2626; }
/* Save 버튼 - 강조 */
.sch-btn-save {
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
  color: #fff;
  padding: 10px 28px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(245,158,11,0.5);
  letter-spacing: 0.3px;
  border: none;
  position: relative;
  overflow: hidden;
}
.sch-btn-save::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 60%);
}
.sch-btn-save:hover {
  background: linear-gradient(135deg, #b45309 0%, #d97706 100%);
  box-shadow: 0 6px 22px rgba(245,158,11,0.65);
  transform: translateY(-1px);
}
.sch-btn-save:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(245,158,11,0.4); }
.sch-save-icon { font-size: 1rem; margin-right: 4px; }

/* Timetable */
.sch-table-container {
  padding: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.sch-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.sch-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}
.sch-table thead th {
  background: #1e293b;
  color: #fff;
  padding: 12px 8px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
}
.sch-table thead th.sch-time-th {
  width: 80px;
  min-width: 70px;
}
.sch-table tbody tr:nth-child(odd) { background: #f9fafb; }
.sch-table tbody tr:hover { background: #f0f4ff; }
.sch-table tbody td {
  border: 1px solid #f3f4f6;
  padding: 4px 5px;
  text-align: center;
  vertical-align: middle;
  height: 36px;
}
.sch-time-label {
  font-size: 0.78rem;
  color: #6b7280;
  font-weight: 500;
  white-space: nowrap;
}
.sch-table tbody tr.sch-hour-start td {
  border-top: 1px solid #e5e7eb;
}

/* Schedule cell buttons */
.sch-cell-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  padding: 3px 10px;
  min-width: 52px;
  height: 26px;
  transition: all 0.15s;
  white-space: nowrap;
}
/* Teacher states */
.sch-btn-state-open {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}
.sch-btn-state-open:hover { background: #a7f3d0; }
.sch-btn-state-open.selected {
  background: #10b981;
  color: #fff;
  border-color: #10b981;
  box-shadow: 0 0 0 2px #6ee7b7;
}
.sch-btn-state-closed {
  background: #f3f4f6;
  color: #9ca3af;
  border: 1px dashed #d1d5db;
}
.sch-btn-state-closed:hover { background: #e5e7eb; }
.sch-btn-state-closed.selected {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fbbf24;
  box-shadow: 0 0 0 2px #fde68a;
}
/* Class state */
.sch-btn-state-class {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #93c5fd;
  cursor: default;
  position: relative;
}
.sch-btn-state-class.selectable {
  cursor: pointer;
}
.sch-btn-state-class.selected {
  background: #bfdbfe;
  box-shadow: 0 0 0 2px #93c5fd;
}
/* Student open slot */
.sch-btn-state-avail {
  background: #e0e7ff;
  color: #3730a3;
  border: 1px solid #a5b4fc;
  cursor: pointer;
}
.sch-btn-state-avail:hover { background: #c7d2fe; }
.sch-btn-state-avail.selected {
  background: #4f46e5;
  color: #fff;
  border-color: #4f46e5;
  box-shadow: 0 0 0 2px #a5b4fc;
}
/* Student class (occupied by others) */
.sch-btn-state-busy {
  background: #f3f4f6;
  color: #9ca3af;
  border: 1px solid #d1d5db;
  cursor: not-allowed;
}

/* Tooltip for Class button */
.sch-tooltip-wrap {
  position: relative;
  display: inline-block;
}
.sch-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: #fff;
  font-size: 0.75rem;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  z-index: 200;
  pointer-events: none;
}
.sch-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #1e293b;
}
.sch-tooltip-wrap:hover .sch-tooltip { display: block; }

/* Confirm modal */
.sch-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sch-modal {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  max-width: 440px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.sch-modal-body {
  font-size: 0.95rem;
  color: #374151;
  line-height: 1.8;
  margin-bottom: 24px;
  white-space: pre-line;
}
.sch-modal-footer {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
.sch-modal-cancel {
  padding: 10px 20px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: #374151;
  font-size: 0.95rem;
  cursor: pointer;
}
.sch-modal-cancel:hover { background: #f3f4f6; }
.sch-modal-save {
  padding: 10px 24px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}
.sch-modal-save:hover { background: #1d4ed8; }

/* Responsive */
@media (max-width: 768px) {
  .sch-table-container { padding: 12px; }
  .sch-admin-inner { flex-direction: column; }
  .sch-page-header { padding: 12px 16px; }
  .sch-header-spacer { width: 60px; }
  .sch-cell-btn { min-width: 44px; font-size: 0.65rem; padding: 2px 6px; }
}
@media (max-width: 480px) {
  .sch-table thead th { font-size: 0.8rem; padding: 10px 4px; }
  .sch-time-label { font-size: 0.7rem; }
  .sch-cell-btn { min-width: 36px; }
}

/* ===== 커리큘럼 페이지 ===== */
.curriculum-page {
  min-height: 100vh;
  background: #f8fafc;
}
.curriculum-page.hidden { display: none; }
.curriculum-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  padding: 14px 24px;
  border-bottom: 1px solid rgba(37,99,235,0.12);
  position: sticky;
  top: 0;
  z-index: 100;
}
.curriculum-back-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1.5px solid #2563eb;
  border-radius: 8px;
  padding: 8px 18px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  color: #2563eb;
  transition: all 0.2s;
  min-width: 100px;
  font-family: inherit;
}
.curriculum-back-btn:hover { background: #2563eb; color: #fff; }
.curriculum-title-wrap { display: flex; align-items: center; gap: 8px; }
.curriculum-page-icon { font-size: 20px; }
.curriculum-page-title { font-size: 1.1rem; font-weight: 700; color: #1e293b; }
.curriculum-header-spacer { width: 120px; }

/* 히어로 */
.curriculum-hero {
  background: linear-gradient(135deg, #0f2563 0%, #1e3a8a 50%, #2563eb 100%);
  padding: 52px 24px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.curriculum-hero::before {
  content: '';
  position: absolute;
  top: -40%; right: -5%;
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(251,191,36,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.curriculum-hero-inner {
  position: relative;
  z-index: 2;
}
.curriculum-hero-sub {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.7);
  margin: 0 0 14px;
  letter-spacing: 0.05em;
}
.curriculum-hero-title {
  font-size: 3.4rem;
  font-weight: 900;
  color: #fff;
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.curriculum-hero-title em {
  font-style: normal;
  color: #fbbf24;
}

/* 커리큘럼 일러스트 */
.curr-illo {
  position: absolute;
  bottom: 0;
  width: 200px;
  z-index: 1;
  filter: drop-shadow(0 4px 16px rgba(0,10,40,0.3));
  animation: currIlloFloat 5s ease-in-out infinite;
}
.curr-illo-left  { left: max(2%, 4px); animation-delay: 0s; }
.curr-illo-right { right: max(2%, 4px); animation-delay: 0.8s; }
@keyframes currIlloFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
@media (max-width: 1000px) { .curr-illo { width: 160px; } }
@media (max-width: 780px)  { .curr-illo { width: 120px; } }
@media (max-width: 560px)  { .curr-illo { display: none; } }

/* 필터 + 그리드 */
.curriculum-body {
  max-width: 960px;
  margin: 0 auto;
  padding: 36px 24px 60px;
}
.curriculum-filter-wrap {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.curriculum-filter-btn {
  padding: 9px 24px;
  border: 2px solid #e5e7eb;
  border-radius: 24px;
  background: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.curriculum-filter-btn:hover { border-color: #2563eb; color: #2563eb; }
.curriculum-filter-btn.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
  box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}

.curriculum-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 12px 18px;
  margin-bottom: 24px;
  font-size: 0.88rem;
  color: #92400e;
  line-height: 1.5;
}
.curriculum-notice-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.curriculum-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.curriculum-loading,
.curriculum-empty {
  text-align: center;
  padding: 60px 20px;
  color: #9ca3af;
  font-size: 0.95rem;
}
.curriculum-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  border: 1px solid #e9eef6;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  transition: box-shadow 0.2s;
}
.curriculum-card:hover {
  box-shadow: 0 6px 24px rgba(37,99,235,0.13);
}
.curriculum-card-img-wrap {
  flex-shrink: 0;
  width: 150px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.curriculum-card-img {
  width: 150px;
  height: 100%;
  object-fit: cover;
  display: block;
}
.curriculum-card-placeholder {
  width: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, #f0f4ff, #e8f0fe);
  min-height: 160px;
}
.curriculum-card-body {
  flex: 1;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
.curriculum-card-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  align-self: flex-start;
}
.clr-green { background: #dcfce7; color: #166534; }
.clr-blue  { background: #dbeafe; color: #1e40af; }
.clr-pink  { background: #fce7f3; color: #9d174d; }
.curriculum-card-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.4;
}
.curriculum-card-desc {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.7;
  white-space: pre-wrap;
}
.curriculum-card-no-desc {
  font-size: 0.82rem;
  color: #b0b8c1;
  font-style: italic;
}
.tb-card-desc {
  font-size: 12px; color: #64748b; margin: 4px 0 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

@media (max-width: 768px) {
  .curriculum-hero-title { font-size: 2.4rem; }
  .curriculum-hero-sub { font-size: 1.1rem; }
  .curriculum-body { padding: 24px 16px 48px; }
  .curriculum-grid { gap: 14px; }
  .curriculum-card-img-wrap { width: 120px; }
  .curriculum-card-img { width: 120px; }
  .curriculum-card-placeholder { width: 120px; min-height: 130px; }
  .curriculum-card-body { padding: 18px 20px; }
  .curriculum-header-spacer { width: 60px; }
  .curriculum-back-btn { min-width: 80px; padding: 8px 12px; }
}
@media (max-width: 480px) {
  .curriculum-hero-title { font-size: 2rem; }
  .curriculum-hero-sub { font-size: 1rem; }
  .curriculum-hero { padding: 40px 16px 50px; }
  .curriculum-card { flex-direction: column; }
  .curriculum-card-img-wrap { width: 100%; height: 160px; }
  .curriculum-card-img { width: 100%; height: 160px; object-fit: cover; }
  .curriculum-card-placeholder { width: 100%; min-height: 160px; }
  .curriculum-card-body { padding: 16px 18px; }
}

/* ===== Features 섹션 리디자인 ===== */
.fq-wrap {
  position: relative;
  text-align: center;
  padding: 70px 0 16px;
  margin-bottom: 12px;
  overflow: visible;
}
.fq-scene {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
}
.fqm {
  position: absolute;
  display: block;
  line-height: 0;
}
.fqm svg { overflow: visible; }
@keyframes fqBob {
  0%, 100% { transform: rotate(var(--rot)) translateY(0); }
  50%       { transform: rotate(var(--rot)) translateY(-7px); }
}
.fqm-1 { --rot: -18deg; top: 4px;  left: 2%;   animation: fqBob 3.8s ease-in-out infinite; animation-delay: 0s; }
.fqm-2 { --rot:  13deg; top: 26px; left: 11%;  animation: fqBob 3.4s ease-in-out infinite; animation-delay: -1.3s; }
.fqm-3 { --rot:  -7deg; bottom: 6px; left: 21%; animation: fqBob 4.1s ease-in-out infinite; animation-delay: -2.6s; }
.fqm-4 { --rot:  10deg; bottom: 3px; right: 21%; animation: fqBob 3.6s ease-in-out infinite; animation-delay: -0.8s; }
.fqm-5 { --rot: -15deg; top: 20px; right: 11%; animation: fqBob 3.9s ease-in-out infinite; animation-delay: -2.0s; }
.fqm-6 { --rot:  21deg; top: 2px;  right: 2%;  animation: fqBob 3.5s ease-in-out infinite; animation-delay: -3.2s; }
.features-big-question {
  font-size: 2.4rem;
  font-weight: 900;
  color: #1e3a5f;
  text-align: center;
  margin: 0;
}
.features-answer-row {
  text-align: center;
  margin-bottom: 48px;
}
.features-answer-line {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #2563eb;
  background: #dbeafe;
  border-radius: 20px;
  padding: 4px 16px;
  margin: 0 0 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.features-answer-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: #1e293b;
  margin: 0;
}
.features-answer-title em {
  font-style: normal;
  color: #2563eb;
}
.feature-icon-svg {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 60px;
}

/* ===== section-cta 공통 ===== */
.section-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 48px;
  flex-wrap: wrap;
}

/* ===== 검증된 커리큘럼 + 교재 슬라이더 ===== */
.verified-curriculum {
  padding: 80px 0;
  background: #fff;
}
.verified-curriculum .section-title { white-space: pre-line; }

/* 커리큘럼 그룹 */
.curri-group {
  margin-top: 48px;
}
.curri-group-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  text-align: center;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}
.curri-card-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.curri-home-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1.5px solid #e9eef6;
  border-radius: 16px;
  padding: 24px 20px 20px;
  min-width: 130px;
  flex: 0 1 150px;
  text-align: center;
  transition: box-shadow 0.18s, border-color 0.18s, transform 0.18s;
  cursor: default;
}
.curri-home-card:hover {
  box-shadow: 0 6px 20px rgba(37,99,235,0.1);
  border-color: #c7d9ff;
  transform: translateY(-3px);
}
.curri-home-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -1px;
}
.curri-home-card strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  display: block;
}
.curri-home-card span {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.6;
  display: block;
}

@media (max-width: 768px) {
  .curri-card-row { gap: 12px; }
  .curri-home-card { min-width: 110px; flex: 0 1 130px; padding: 18px 14px 16px; }
  .curri-home-icon { width: 48px; height: 48px; font-size: 1.2rem; }
}
@media (max-width: 480px) {
  .curri-home-card { min-width: 90px; flex: 0 1 105px; padding: 14px 10px 12px; }
  .curri-home-icon { width: 42px; height: 42px; font-size: 1rem; border-radius: 10px; }
  .curri-home-card strong { font-size: 0.85rem; }
  .curri-home-card span { font-size: 0.72rem; }
}

/* ===== 채용 프로세스 ===== */
.hire-process {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  margin-top: 48px;
}
.hire-step {
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  width: 180px;
  flex: 0 0 180px;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.hire-step:hover {
  border-color: #2563eb;
  box-shadow: 0 4px 20px rgba(37,99,235,0.12);
}
.hire-step-final,
.hire-step-active {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 4px 20px rgba(37,99,235,0.15);
}
.hire-step-num {
  font-size: 0.75rem;
  font-weight: 900;
  color: #94a3b8;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  transition: color 0.3s;
}
.hire-step-final .hire-step-num,
.hire-step-active .hire-step-num { color: #2563eb; }
.hire-arrow {
  transition: color 0.3s;
}
.hire-arrow-active { color: #2563eb; }
.hire-step-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}
.hire-step h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 8px;
}
.hire-step p {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}
.hire-arrow {
  font-size: 1.8rem;
  color: #cbd5e1;
  padding: 0 8px;
  flex: 0 0 auto;
  transition: color 0.4s;
}
.hire-arrow-active { color: #2563eb; }

/* ===== 어떤 분께 유용할까요 ===== */
.who-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
  color: white;
}
.who-section .section-header { margin-bottom: 48px; }
.who-title {
  font-size: 2rem;
  font-weight: 900;
  color: white;
  text-align: center;
  line-height: 1.35;
}
.who-title em {
  font-style: normal;
  color: #fbbf24;
}
.who-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.who-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 18px 24px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.15);
}
.who-num {
  font-size: 1.1rem;
  font-weight: 900;
  color: #fbbf24;
  flex-shrink: 0;
  line-height: 1.6;
}
.who-item p {
  margin: 0;
  font-size: 1rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.6;
}
.who-item p strong { color: #fde68a; }
.who-section .section-cta .btn-primary {
  background: #fbbf24;
  color: #1e3a5f;
  border-color: #fbbf24;
}
.who-section .section-cta .btn-primary:hover {
  background: #f59e0b;
  border-color: #f59e0b;
}

/* ===== 스마트 수업 관리 ===== */
.smart-manage {
  padding: 80px 0;
  background: #fff;
}
.smart-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 48px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.smart-item {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #f8faff;
  border: 1px solid #e0eaff;
  border-radius: 14px;
  padding: 20px 24px;
  transition: box-shadow 0.18s, border-color 0.18s;
}
.smart-item:hover {
  box-shadow: 0 4px 16px rgba(37,99,235,0.09);
  border-color: #c7d9ff;
}
.smart-item-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: #eef3ff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.smart-item-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 2px;
}
.smart-item-body p {
  margin: 0;
  font-size: 0.97rem;
  color: #334155;
  line-height: 1.6;
}
.smart-item-body strong {
  color: #1e40af;
  font-weight: 700;
}
.smart-item-sub {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.5;
}

/* ===== 반응형 ===== */
@media (max-width: 1024px) {
  .hire-process { gap: 0; }
  .hire-step { width: 150px; flex: 0 0 150px; padding: 22px 16px; }
}
@media (max-width: 768px) {
  .features-big-question { font-size: 1.8rem; }
  .fq-wrap { padding-top: 58px; }
  .fqm-1, .fqm-6 { display: none; }
  .fqm-2 { left: 4%; }
  .fqm-5 { right: 4%; }
  .features-answer-title { font-size: 1.4rem; }
  .hire-process { flex-direction: column; align-items: center; gap: 0; }
  .hire-step { width: 100%; max-width: 340px; flex: none; }
  .hire-arrow { transform: rotate(90deg); padding: 4px 0; }
  .smart-list { max-width: 100%; }
  .smart-item { padding: 16px 18px; gap: 14px; }
  .who-title { font-size: 1.6rem; }
  .section-cta { gap: 12px; }
  .section-cta .btn-lg { width: 100%; max-width: 340px; text-align: center; }
}
@media (max-width: 480px) {
  .features-big-question { font-size: 1.5rem; }
  .fq-scene { display: none; }
  .fq-wrap { padding-top: 0; }
  .who-title { font-size: 1.3rem; }
  .who-item { padding: 14px 16px; gap: 14px; }
  .smart-item { padding: 14px 16px; gap: 12px; }
  .smart-item-icon { width: 38px; height: 38px; font-size: 1.1rem; }
  .smart-item-body p { font-size: 0.9rem; }
}

/* ===== Trial class 페이지 ===== */
.tc-page { min-height: 100vh; background: #f8fafc; }
.tc-page-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px; background: #fff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky; top: 0; z-index: 100;
}
.tc-page-body {
  max-width: 900px; margin: 0 auto;
  padding: 32px 20px;
  display: flex; flex-direction: column; gap: 24px;
}
.tc-loading, .tc-empty {
  text-align: center; padding: 60px 20px;
  color: #94a3b8; font-size: 1rem;
}
.tc-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  padding: 24px 28px;
}
.tc-card-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
}
.tc-field { display: flex; flex-direction: column; gap: 4px; }
.tc-field-full { grid-column: 1 / -1; }
.tc-label {
  font-size: 0.75rem; font-weight: 700;
  color: #64748b; text-transform: uppercase; letter-spacing: 0.04em;
}
.tc-value {
  font-size: 0.95rem; color: #1e293b; min-height: 1.2em;
}
.tc-field-val { margin-top: 2px; }
.tc-book-select {
  width: 100%; max-width: 400px;
  padding: 8px 12px;
  border: 1px solid #e2e8f0; border-radius: 8px;
  font-size: 0.9rem; font-family: inherit;
  background: #f8fafc; color: #1e293b;
  cursor: pointer;
}
.tc-book-select:focus { outline: none; border-color: #2563eb; background: #fff; }
.tc-comment {
  width: 100%; max-width: 100%;
  min-height: 100px;
  padding: 10px 14px;
  border: 1px solid #e2e8f0; border-radius: 8px;
  font-size: 0.9rem; font-family: inherit;
  background: #f8fafc; color: #1e293b;
  resize: vertical; box-sizing: border-box;
}
.tc-comment::placeholder { color: #cbd5e1; }
.tc-comment:focus { outline: none; border-color: #2563eb; background: #fff; }
.tc-char-wrap { text-align: right; font-size: 0.78rem; color: #94a3b8; margin-top: 4px; }
.tc-comment-view {
  white-space: pre-wrap; font-size: 0.9rem; color: #1e293b;
  padding: 10px 14px;
  background: #f8fafc; border-radius: 8px;
  border: 1px solid #e2e8f0;
}
.tc-comment-empty { color: #cbd5e1; font-size: 0.9rem; }
.tc-card-footer {
  margin-top: 20px; padding-top: 16px;
  border-top: 1px solid #f1f5f9;
  display: flex; justify-content: flex-end;
}
.tc-save-btn { min-width: 100px; }

@media (max-width: 768px) {
  .tc-page-header { padding: 14px 16px; }
  .tc-page-body { padding: 20px 12px; }
  .tc-card { padding: 18px 16px; }
  .tc-card-fields { grid-template-columns: 1fr; gap: 12px; }
  .tc-field-full { grid-column: 1; }
}
@media (max-width: 480px) {
  .tc-card { padding: 14px 12px; }
}

/* ===== 공지 팝업 ===== */
.notice-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.notice-overlay.hidden { display: none !important; }

.notice-popup {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(37,99,235,0.18), 0 4px 16px rgba(0,0,0,0.12);
  width: 100%; max-width: 460px;
  overflow: hidden;
  animation: noticePop 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes noticePop {
  from { transform: scale(0.85) translateY(20px); opacity: 0; }
  to   { transform: scale(1) translateY(0);       opacity: 1; }
}

/* 헤더 — 파란 그라디언트 */
.notice-popup-header {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 60%, #1e40af 100%);
  padding: 24px 20px 18px;
  display: flex; align-items: center; justify-content: center; gap: 14px;
}
.notice-popup-logo-img {
  width: 60px; height: 60px; object-fit: contain;
  border-radius: 16px;
  background: rgba(255,255,255,0.18);
  padding: 4px;
}
.notice-popup-brand {
  display: flex; flex-direction: column; line-height: 1.2;
}
.notice-brand-ru {
  font-size: 1.5rem; font-weight: 900; color: #fff;
  letter-spacing: -0.02em;
}
.notice-brand-kr {
  font-size: 0.88rem; font-weight: 600;
  color: rgba(255,255,255,0.82); letter-spacing: 0.02em;
}

/* 공지사항 데코 레이블 */
.notice-popup-deco {
  text-align: center;
  font-size: 0.88rem; font-weight: 700;
  color: #2563eb;
  background: #eff6ff;
  padding: 8px 0 6px;
  letter-spacing: 0.06em;
}

/* 본문 */
.notice-popup-body {
  padding: 20px 24px 16px;
  font-size: 1rem; line-height: 1.8;
  color: #1e293b;
  text-align: center;
  white-space: pre-wrap;
  min-height: 80px;
  font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;
  font-weight: 500;
  word-break: keep-all;
}

/* 푸터 */
.notice-popup-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px 18px;
  border-top: 1px solid #f1f5f9;
  gap: 12px;
}
.notice-dismiss-label {
  display: flex; align-items: center; gap: 7px;
  font-size: 0.84rem; color: #64748b;
  cursor: pointer; user-select: none;
}
.notice-dismiss-label input[type="checkbox"] {
  width: 16px; height: 16px; cursor: pointer; accent-color: #2563eb;
}
.notice-close-btn {
  padding: 9px 24px;
  background: #2563eb; color: #fff;
  border: none; border-radius: 50px;
  font-size: 0.88rem; font-weight: 700;
  cursor: pointer; font-family: inherit;
  transition: background 0.15s, transform 0.1s;
  white-space: nowrap;
}
.notice-close-btn:hover { background: #1d4ed8; }
.notice-close-btn:active { transform: scale(0.97); }

@media (max-width: 480px) {
  .notice-popup { border-radius: 18px; }
  .notice-popup-body { padding: 16px 18px 12px; font-size: 0.93rem; }
  .notice-popup-footer { padding: 10px 14px 14px; }
}

/* ===== COE 재직증명서 페이지 ===== */
.coe-page { min-height: 100vh; background: #f8fafc; }
.coe-page-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px; background: #fff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky; top: 0; z-index: 100;
}
.coe-page-body {
  max-width: 700px; margin: 0 auto;
  padding: 40px 20px;
  display: flex; flex-direction: column; gap: 28px;
}

/* 관리자 검색 */
.coe-search-wrap { display: flex; flex-direction: column; gap: 12px; }
.coe-search-label {
  font-size: 0.9rem; font-weight: 700; color: #475569;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.coe-search-row { display: flex; gap: 10px; }
.coe-search-input {
  flex: 1; padding: 10px 14px;
  border: 1.5px solid #e2e8f0; border-radius: 8px;
  font-size: 0.95rem; font-family: inherit;
  transition: border-color 0.15s;
}
.coe-search-input:focus { outline: none; border-color: #2563eb; }
.coe-search-results {
  background: #fff; border: 1.5px solid #e2e8f0;
  border-radius: 10px; overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.coe-result-item {
  padding: 12px 16px; cursor: pointer;
  font-size: 0.95rem; color: #1e293b;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.12s;
}
.coe-result-item:last-child { border-bottom: none; }
.coe-result-item:hover { background: #eff6ff; color: #2563eb; }
.coe-no-result { padding: 16px; text-align: center; color: #94a3b8; font-size: 0.9rem; }

/* 발행 대상 카드 */
.coe-target {
  background: #fff; border-radius: 14px;
  border: 1.5px solid #e2e8f0;
  padding: 24px 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.coe-target-info { display: flex; flex-direction: column; gap: 4px; }
.coe-target-label { font-size: 0.78rem; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: 0.06em; }
.coe-target-name { font-size: 1.15rem; font-weight: 700; color: #1e293b; }
.coe-download-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 24px; font-size: 0.95rem; font-weight: 700;
  border-radius: 10px; white-space: nowrap;
}
.coe-download-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.coe-msg {
  text-align: center; font-size: 0.9rem;
  color: #2563eb; font-weight: 600; min-height: 20px;
}

@media (max-width: 600px) {
  .coe-page-header { padding: 12px 16px; }
  .coe-page-body { padding: 24px 16px; }
  .coe-target { padding: 18px 16px; }
  .coe-download-btn { width: 100%; justify-content: center; }
}

/* ===== 카카오톡 플로팅 버튼 ===== */
.kakao-float-btn {
  position: fixed;
  bottom: 32px;
  right: 28px;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  background: #FEE500;
  color: #3C1E1E;
  border-radius: 50px;
  padding: 14px 18px 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform 0.18s, box-shadow 0.18s;
  cursor: pointer;
}
.kakao-float-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.22);
}
.kakao-float-btn svg {
  display: block;
}
.kakao-float-label {
  color: #3C1E1E;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .kakao-float-btn {
    bottom: 20px;
    right: 16px;
    padding: 12px 14px 10px;
  }
}

/* ===== 러시아어 사용 국가 슬라이더 ===== */
.ru-countries {
  padding: 72px 0 80px;
  background: #f8fafc;
  overflow: hidden;
}
.country-slider-wrap {
  overflow: hidden;
  width: 100%;
  margin-top: 48px;
  padding: 8px 0;
  /* 양쪽 페이드 효과 */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.country-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: countryScroll 28s linear infinite;
}
.country-track:hover { animation-play-state: paused; }
@keyframes countryScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.country-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1.5px solid #e9eef6;
  border-radius: 16px;
  padding: 20px 24px;
  min-width: 110px;
  flex-shrink: 0;
  transition: box-shadow 0.18s, border-color 0.18s, transform 0.18s;
  cursor: default;
}
.country-item:hover {
  box-shadow: 0 6px 20px rgba(37,99,235,0.1);
  border-color: #c7d9ff;
  transform: translateY(-3px);
}
.country-flag-img {
  width: 56px;
  height: 38px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  display: block;
}
.country-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
}
@media (max-width: 768px) {
  .country-item { padding: 16px 18px; min-width: 90px; }
  .country-flag-img { width: 48px; height: 32px; }
  .country-name { font-size: 0.8rem; }
}
@media (max-width: 480px) {
  .country-item { padding: 14px 14px; min-width: 80px; border-radius: 12px; }
  .country-flag-img { width: 42px; height: 28px; }
}

/* ===== 카카오톡 CTA 섹션 ===== */
.kakao-cta {
  position: relative;
  background-image: url('/images/cta-bg.jpg');
  background-size: cover;
  background-position: center 30%;
  padding: 100px 24px;
  text-align: center;
  overflow: hidden;
}
.kakao-cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
}
.kakao-cta-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.kakao-cta-text {
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.5;
  margin: 0;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
  letter-spacing: -0.02em;
}
.kakao-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #FEE500;
  color: #3C1E1E;
  font-size: 1.2rem;
  font-weight: 800;
  padding: 18px 48px;
  border-radius: 16px;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(0,0,0,0.3);
  transition: transform 0.18s, box-shadow 0.18s;
  letter-spacing: -0.01em;
}
.kakao-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0,0,0,0.4);
}
.kakao-cta-btn svg { flex-shrink: 0; }

@media (max-width: 768px) {
  .kakao-cta { padding: 72px 24px; }
  .kakao-cta-text { font-size: 1.3rem; }
  .kakao-cta-btn { font-size: 1.05rem; padding: 16px 36px; }
}
@media (max-width: 480px) {
  .kakao-cta { padding: 56px 20px; }
  .kakao-cta-text { font-size: 1.1rem; }
  .kakao-cta-btn { font-size: 1rem; padding: 15px 28px; width: 100%; max-width: 320px; justify-content: center; }
}
