/* ===== 기본 리셋 & 변수 ===== */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

* { margin: 0; padding: 0; box-sizing: border-box; }
html { background: var(--bg, #f8fafc); }

:root {
  --bg: #f8fafc;
  --hero-bg: #2a1a5e;
  --card-bg: #ffffff;
  --blue: #2563eb;
  --blue2: #3b82f6;
  --purple: #7c3aed;
  --text: #0f172a;
  --text2: #64748b;
  --text3: #94a3b8;
  --border: #e2e8f0;
  --tab-h: 64px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Pretendard', -apple-system, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  padding-bottom: 0;
  -webkit-font-smoothing: antialiased;
}

/* Auth 로딩 중 깜빡임 방지 */
body.auth-loading .header .btn-login,
body.auth-loading .header .btn-signup { visibility: hidden; }
body.auth-loading .mypage-guest,
body.auth-loading .mypage-user,
body.auth-loading .session-create,
body.auth-loading .session-submit,
body.auth-loading .write-banner { visibility: hidden; }

/* ===== 상단 헤더 ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 20px;
  height: 56px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.header-top {
  display: contents;
}
.logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
}
.logo span {
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.header-nav::-webkit-scrollbar { display: none; }
.header-nav a {
  color: var(--text2);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  padding: 5px 8px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.header-nav a:hover {
  color: var(--blue);
  background: #f1f5f9;
}
@media (max-width: 639px) {
  .header {
    flex-wrap: wrap;
    height: auto;
    padding: 0 16px;
  }
  .header-top {
    width: 100%;
    display: flex;
    align-items: center;
    height: 48px;
  }
  .header-nav {
    display: flex;
    width: 100%;
    margin-left: 0;
    border-top: 1px solid var(--border);
    justify-content: space-around;
    padding: 0;
  }
  .header-nav a { font-size: 14px; font-weight: 700; color: var(--text); padding: 10px 4px; }
}
.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.btn-signup {
  background: none;
  border: none;
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 4px;
}
.btn-login {
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}
.user-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid var(--blue);
}
.user-avatar-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

/* ===== 히어로 ===== */
.hero {
  padding: 0;
  background: var(--hero-bg);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.hero-inner {
  position: relative;
  z-index: 1;
  min-height: 300px;
  padding: 28px 20px 0;
}
.hero-text {
  position: relative;
  z-index: 2;
  text-align: left;
}
.hero-photo {
  position: absolute;
  right: -120px;
  bottom: -100px;
  width: 480px;
  z-index: 0;
  pointer-events: none;
}
.hero-photo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}
/* 히어로 캔버스 애니메이션 */
#heroCanvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.hero-text .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #93c5fd;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: #34d399;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero h1 {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 14px;
  color: #fff;
  letter-spacing: -1px;
  position: relative;
  z-index: 1;
}
.hero h1 .highlight {
  background: linear-gradient(90deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  font-size: 14px;
  color: #94a3b8;
  margin-bottom: 28px;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}
.hero-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 2;
  padding-bottom: 20px;
  padding-top: 8px;
}
/* 히어로 CTA 버튼 (세련된 화이트) */
.btn-hero-cta {
  display: block;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 28px;
  padding: 15px 28px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  backdrop-filter: blur(8px);
  letter-spacing: -0.3px;
  transition: background 0.2s;
}
.btn-hero-cta:active {
  background: rgba(255,255,255,0.2);
}
.btn-primary {
  display: block;
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  color: #fff;
  border: none;
  border-radius: 28px;
  padding: 15px 28px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 8px 32px rgba(37,99,235,0.4);
  letter-spacing: -0.3px;
}
.btn-secondary {
  display: block;
  background: transparent;
  color: #e2e8f0;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 28px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

/* ===== 통계 ===== */
.stats {
  display: flex;
  background: rgba(255,255,255,0.05);
  border-top: 1px solid rgba(255,255,255,0.08);
  position: relative;
  z-index: 1;
  margin-top: 32px;
  padding: 20px 0 4px;
}
.stat-item {
  flex: 1;
  text-align: center;
  padding: 8px 10px 16px;
}
.stat-num {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
}
.stat-label {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}
.stat-divider {
  width: 1px;
  background: rgba(255,255,255,0.08);
  margin: 8px 0;
}

/* ===== 섹션 공통 ===== */
.section {
  padding: 28px 20px;
  background: var(--bg);
  max-width: var(--max-w, 1120px);
  margin-left: auto;
  margin-right: auto;
}
.section-highlight {
  background: #fef9c3;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.section-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
}
.section-more {
  font-size: 13px;
  color: var(--text2);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 2px;
}

/* ===== AI 툴 카드 ===== */
.tool-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tool-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s;
}
.tool-card:active { box-shadow: 0 4px 16px rgba(37,99,235,0.12); }
.tool-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.tool-icon.blue { background: #eff6ff; }
.tool-icon.purple { background: #f5f3ff; }
.tool-icon.green { background: #f0fdf4; }
.tool-icon.orange { background: #fffbeb; }
.tool-info { flex: 1; min-width: 0; }
.tool-name {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
  color: var(--text);
}
.tool-desc {
  font-size: 12px;
  color: var(--text2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tool-badge {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 700;
  flex-shrink: 0;
}
.badge-free { background: #ecfdf5; color: #059669; }
.badge-pro { background: #fef3c7; color: #d97706; }

/* ===== 커뮤니티 포스트 ===== */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border-radius: 12px;
  max-width: 1120px; margin-left: auto; margin-right: auto;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.post-item {
  background: var(--card-bg);
  padding: 16px;
}
.post-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.post-category {
  display: inline-block;
  font-size: 11px;
  color: var(--blue);
  font-weight: 700;
  background: #eff6ff;
  padding: 2px 8px;
  border-radius: 4px;
}
.post-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
  flex: 1;
}
.post-meta {
  font-size: 11px;
  color: var(--text3);
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ===== 갤러리 카드 ===== */
.gallery-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.gallery-scroll::-webkit-scrollbar { display: none; }
.gallery-card {
  flex-shrink: 0;
  width: 200px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  text-decoration: none;
  color: var(--text);
}
.gallery-thumb {
  height: 110px;
  background: linear-gradient(135deg, #1e3a5f, #2d1b69);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}
.gallery-info { padding: 12px; }
.gallery-name {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
}
.gallery-desc {
  font-size: 11px;
  color: var(--text2);
  margin-bottom: 8px;
}
.gallery-tags { display: flex; gap: 4px; }
.gallery-tag {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 600;
  background: #eff6ff;
  color: var(--blue);
}
.gallery-tag.lock { background: #fef3c7; color: #d97706; }

/* ===== CTA 배너 ===== */
.cta-section {
  padding: 0 20px 28px;
}
.cta-banner {
  background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 50%, #7c3aed 100%);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(59,130,246,0.2) 0%, transparent 70%);
  top: -60px; right: -40px;
  border-radius: 50%;
}
.cta-banner h3 {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
  position: relative;
}
.cta-banner p {
  font-size: 13px;
  color: #93c5fd;
  margin-bottom: 18px;
  position: relative;
}
.cta-banner .btn-primary {
  max-width: 260px;
  margin: 0 auto;
  position: relative;
}

/* ===== 전화 FAB 버튼 ===== */
.fab-phone {
  position: fixed;
  right: 14px;
  bottom: 140px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #7c3aed;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(124,58,237,0.4);
  z-index: 199;
  transition: transform 0.2s;
}
.fab-phone:active {
  transform: scale(0.9);
}

/* 채널톡 커스텀 버튼 */
.fab-channel {
  position: fixed;
  right: 14px;
  bottom: 80px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #3b82f6;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(59,130,246,0.4);
  z-index: 199;
  cursor: pointer;
  transition: transform 0.2s;
}
.fab-channel:active {
  transform: scale(0.9);
}

/* ===== 법률 페이지 (약관/개인정보) ===== */
.legal-content {
  max-width: var(--max-w, 1120px);
  margin: 0 auto;
  padding: 32px 24px 48px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--text2);
}
.legal-content h3 {
  font-size: 16px;
  font-weight: 800;
  margin: 36px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e2e8f0;
  color: var(--text);
}
.legal-content h3:first-child { margin-top: 0; }
.legal-content p {
  margin-bottom: 14px;
  color: var(--text2);
}
.legal-content ul, .legal-content ol {
  padding-left: 24px;
  margin-bottom: 14px;
}
.legal-content li {
  margin-bottom: 6px;
}
.legal-content .legal-date {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
  font-weight: 700;
  color: var(--text);
  font-size: 13px;
}

/* ===== 커리큘럼 카드 그리드 ===== */
.curriculum-content {
  padding: 20px 20px 40px;
}
.curriculum-desc {
  font-size: 13px;
  color: var(--text2);
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.6;
}
.cur-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.cur-card {
  display: block;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s, box-shadow 0.2s;
}
.cur-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.cur-card-emoji {
  font-size: 32px;
  margin-bottom: 10px;
}
.cur-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}
.cur-card p {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.5;
  margin-bottom: 10px;
}
.cur-card-tag {
  display: inline-block;
  background: #ede9fe;
  color: #7c3aed;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}
/* 커리큘럼 상세 페이지 */
.cur-detail {
  padding: 24px 20px 40px;
  max-width: 1120px; margin-left: auto; margin-right: auto;
}
.cur-detail-header {
  text-align: center;
  margin-bottom: 28px;
}
.cur-detail-header .cur-card-emoji { font-size: 48px; }
.cur-detail-header h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 8px 0 4px;
}
.cur-detail-header p {
  font-size: 14px;
  color: var(--text2);
}
.cur-detail-section {
  margin-bottom: 24px;
}
.cur-detail-section h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #1e3a5f, #2563eb);
  color: #fff;
  border-radius: 12px;
  border-bottom: none;
}
.cur-detail-section ul {
  list-style: none;
  padding: 0;
}
.cur-detail-section li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.cur-detail-section li::before {
  content: '✓ ';
  color: var(--blue);
  font-weight: 700;
}
.cur-detail-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}
.cur-info-item {
  background: #f1f5f9;
  border-radius: 10px;
  padding: 14px;
  text-align: center;
}
.cur-info-item strong {
  display: block;
  font-size: 12px;
  color: var(--text2);
  margin-bottom: 4px;
}
.cur-info-item span {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

/* ===== 사이트 푸터 ===== */
.site-footer {
  background: #2d2560;
  color: #94a3b8;
  padding: 16px 20px calc(20px + var(--tab-h));
  font-size: 12px;
  line-height: 1.8;
}
.footer-company {
  font-size: 14px;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 8px;
}
.footer-company span {
  font-weight: 400;
  font-size: 13px;
  color: #94a3b8;
}
.footer-info p {
  margin: 0;
}
.footer-copyright {
  margin-top: 12px;
  color: #64748b;
  font-size: 12px;
}
.footer-links {
  margin-top: 10px;
  display: flex;
  gap: 16px;
  justify-content: center;
}
.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 12px;
}
.footer-links a:last-child {
  font-weight: 700;
  color: #e2e8f0;
}

/* ===== 하단 탭바 ===== */
.tab-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--tab-h);
  background: #2d2560;
  border-top: none;
  display: flex;
  z-index: 200;
}
.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  text-decoration: none;
  color: #ffffff;
  font-size: 10px;
  font-weight: 600;
  transition: color 0.2s, transform 0.2s;
}
.tab-item .tab-icon {
  width: 26px; height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.tab-item svg { width: 22px; height: 22px; }
.tab-item.active {
  color: #fff;
}
.tab-item.active .tab-icon {
  animation: tabPulse 0.5s ease;
}

/* 마이크로 애니메이션 (PC + 모바일) */
.tab-item:hover { color: #fde68a; }
.tab-item:hover .tab-icon {
  transform: translateY(-3px) scale(1.15);
}
.tab-item:hover .tab-icon svg {
  stroke: #fde68a;
  filter: drop-shadow(0 2px 6px rgba(253,230,138,0.4));
}
.tab-item:active .tab-icon {
  transform: translateY(0) scale(0.95);
}

/* 활성 탭 펄스 */
@keyframes tabPulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.25); }
  70% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

/* ===== 구분선 ===== */
.divider {
  height: 8px;
  background: #f1f5f9;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ===== 로그인 모달 ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.7);
  z-index: 300;
  align-items: flex-end;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 28px 20px 40px;
  width: 100%;
}
.modal-handle {
  width: 36px; height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 0 auto 20px;
}
.modal h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}
.modal p {
  font-size: 14px;
  color: var(--text2);
  margin-bottom: 24px;
  line-height: 1.7;
}
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.btn-close-modal {
  width: 100%;
  background: transparent;
  color: var(--text3);
  border: none;
  padding: 12px;
  font-size: 14px;
  cursor: pointer;
}

/* ===== 커뮤니티 페이지 ===== */

/* 카테고리 필터 탭 */
.community-tabs {
  display: flex;
  gap: 8px;
  padding: 16px 20px 0;
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--bg);
  max-width: 1120px; margin-left: auto; margin-right: auto;
}
.community-tabs::-webkit-scrollbar { display: none; }
.community-tab {
  flex-shrink: 0;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text2);
  cursor: pointer;
  transition: all 0.15s;
}
.community-tab.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

/* 글쓰기 FAB */
.fab-write {
  position: fixed;
  bottom: 84px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  color: #fff;
  border: none;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(37,99,235,0.4);
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}
.fab-write:active { transform: scale(0.92); }

/* 작성AI FAB */
.fab-ai-write {
  position: fixed;
  bottom: 148px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #ef4444;
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(239,68,68,0.4);
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  transition: transform 0.2s;
}
.fab-ai-write:active { transform: scale(0.92); }

/* 작성AI 모달 */
.ai-write-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.7);
  z-index: 400;
  justify-content: center;
  align-items: flex-end;
}
.ai-write-overlay.show { display: flex; }
.ai-write-modal {
  background: var(--white);
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px 24px 32px;
  animation: slideUp 0.3s ease;
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.ai-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.ai-modal-header h3 {
  font-size: 1.1rem; font-weight: 800;
}
.ai-modal-close {
  background: none; border: none; font-size: 1.5rem;
  color: var(--gray-400); cursor: pointer;
}
.ai-step-indicator {
  display: flex; gap: 8px; margin-bottom: 20px;
}
.ai-step-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gray-200);
}
.ai-step-dot.active { background: var(--accent); }
.ai-step-dot.done { background: #22c55e; }

/* 토픽 카드 */
.ai-topic-list { display: flex; flex-direction: column; gap: 10px; }
.ai-topic-card {
  padding: 16px; border: 1px solid var(--border);
  border-radius: 12px; cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.ai-topic-card:hover { background: #fef9c3; border-color: #fde68a; }
.ai-topic-card.selected { background: #fef9c3; border-color: var(--accent); }
.ai-topic-cat {
  display: inline-block; padding: 2px 10px; border-radius: 100px;
  font-size: 0.65rem; font-weight: 700; margin-bottom: 6px;
}
.ai-topic-cat.guide { background: #dbeafe; color: #2563eb; }
.ai-topic-cat.coding { background: #dcfce7; color: #16a34a; }
.ai-topic-cat.usecase { background: #fef3c7; color: #d97706; }
.ai-topic-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.ai-topic-summary { font-size: 0.8rem; color: var(--gray-500); }

/* 로딩 */
.ai-loading {
  text-align: center; padding: 40px 0;
}
.ai-loading-spinner {
  width: 40px; height: 40px; border: 4px solid var(--gray-200);
  border-top-color: var(--accent); border-radius: 50%;
  animation: spin 0.8s linear infinite; margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.ai-loading-text { font-size: 0.9rem; color: var(--gray-500); font-weight: 600; }

/* 미리보기 */
.ai-preview-cover {
  width: 100%; border-radius: 12px; margin-bottom: 16px;
  aspect-ratio: 16/9; object-fit: cover;
}
.ai-preview-title {
  font-size: 1.2rem; font-weight: 800; margin-bottom: 12px;
}
.ai-preview-content {
  font-size: 0.9rem; line-height: 1.8; color: var(--text);
  max-height: 400px; overflow-y: auto;
  padding: 16px; background: var(--gray-50, #f8fafc);
  border-radius: 12px; margin-bottom: 16px;
}
.ai-preview-content h2 { font-size: 1.1rem; font-weight: 800; margin: 20px 0 8px; }
.ai-preview-content h3 { font-size: 1rem; font-weight: 700; margin: 16px 0 6px; }
.ai-preview-content p { margin-bottom: 12px; }
.ai-preview-content ul { padding-left: 20px; margin-bottom: 12px; }
.ai-preview-content li { margin-bottom: 4px; }

/* 버튼 */
.ai-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; border-radius: 12px; border: none;
  font-size: 0.9rem; font-weight: 700; cursor: pointer;
  font-family: inherit; transition: opacity 0.2s;
}
.ai-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.ai-btn-primary { background: var(--accent); color: #fff; }
.ai-btn-red { background: #ef4444; color: #fff; }
.ai-btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.ai-btn-row { display: flex; gap: 10px; margin-top: 16px; }

/* 글쓰기 모달 */
.write-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.7);
  z-index: 300;
  align-items: flex-end;
}
.write-overlay.open { display: flex; }
.write-modal {
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 24px 20px 32px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
}
.write-modal h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
.write-field {
  margin-bottom: 14px;
}
.write-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text2);
  margin-bottom: 6px;
}
.write-field input,
.write-field textarea,
.write-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}
.write-field input:focus,
.write-field textarea:focus,
.write-field select:focus {
  border-color: var(--blue);
}
.write-field textarea {
  min-height: 160px;
  resize: vertical;
  line-height: 1.7;
}
.write-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.write-actions .btn-primary {
  flex: 1;
  padding: 14px;
  font-size: 15px;
}
.write-actions .btn-cancel {
  flex-shrink: 0;
  padding: 14px 20px;
  border-radius: 28px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text2);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

/* 글 목록 (커뮤니티 전용 확장) */
.community-posts {
  padding: 16px 20px;
  max-width: 1120px; margin-left: auto; margin-right: auto;
}
.community-posts .post-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  cursor: pointer;
  transition: box-shadow 0.2s;
}
.community-posts .post-item:active {
  box-shadow: 0 4px 16px rgba(37,99,235,0.12);
}
.post-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text2);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.post-like-btn:active,
.post-like-btn.liked {
  background: #eff6ff;
  border-color: var(--blue);
  color: var(--blue);
}

/* 빈 상태 */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text3);
}
.empty-state .empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
}
.empty-state p {
  font-size: 14px;
  line-height: 1.7;
}

/* 글 상세 뷰 */
.post-detail {
  display: none;
  padding: 20px;
  background: var(--bg);
  min-height: calc(100vh - 56px - var(--tab-h));
  max-width: 1120px; margin-left: auto; margin-right: auto;
}
.post-detail.open { display: block; }
.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  margin-bottom: 20px;
}
.detail-category {
  display: inline-block;
  font-size: 11px;
  color: var(--blue);
  font-weight: 700;
  background: #eff6ff;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}
.detail-title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}
.detail-meta {
  font-size: 12px;
  color: var(--text3);
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.detail-content {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 24px;
  white-space: pre-wrap;
}
.detail-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text2);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 28px;
  transition: all 0.15s;
}
.detail-like-btn:active,
.detail-like-btn.liked {
  background: #eff6ff;
  border-color: var(--blue);
  color: var(--blue);
}

/* 댓글 영역 */
.comments-section {
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.comments-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text);
}
.comment-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.comment-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
}
.comment-item.comment-reply {
  margin-left: 32px;
  background: #f8fafc;
  border-color: #e2e8f0;
}
.comment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.comment-author {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}
.comment-text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
}
.comment-time {
  font-size: 11px;
  color: var(--text3);
}
.comment-actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}
.comment-action-btn {
  font-size: 11px;
  font-weight: 600;
  color: var(--text2);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 0;
  font-family: inherit;
  transition: color 0.15s;
}
.comment-action-btn:hover { color: var(--blue); }
.comment-del-btn:hover { color: #dc2626; }
.comment-edit-area {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--blue);
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  resize: none;
  min-height: 40px;
  outline: none;
  line-height: 1.6;
}
.comment-input-wrap {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}
.comment-input-wrap textarea {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  font-family: inherit;
  background: var(--card-bg);
  color: var(--text);
  resize: none;
  min-height: 44px;
  max-height: 100px;
  outline: none;
}
.comment-input-wrap textarea:focus {
  border-color: var(--blue);
}
.comment-submit {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  color: #fff;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

/* 로딩 스피너 */
.loading {
  text-align: center;
  padding: 40px;
  color: var(--text3);
  font-size: 14px;
}

/* ===== 커뮤니티 히어로 (미니) ===== */
.community-hero {
  background: var(--hero-bg);
  text-align: center;
  padding: 36px 20px 32px;
  position: relative;
  overflow: hidden;
}
.community-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 50% 60%, rgba(255,255,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 20%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 75%, rgba(255,255,255,0.3) 0%, transparent 100%);
  pointer-events: none;
}
/* 히어로 아이콘 애니메이션 */
.community-hero h1 { display: inline; }
.hero-icon {
  font-size: 32px;
  margin-left: 8px;
  position: relative;
  display: inline-block;
  vertical-align: middle;
}
.hero-icon-bounce {
  animation: heroBounce 2s ease-in-out infinite;
}
.hero-icon-float {
  animation: heroFloat 3s ease-in-out infinite;
}
.hero-icon-pulse {
  animation: heroPulse 2.5s ease-in-out infinite;
}
@keyframes heroBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-6px) rotate(3deg); }
  75% { transform: translateY(-3px) rotate(-3deg); }
}
@keyframes heroPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.85; }
}

.community-hero h1 {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  position: relative;
  letter-spacing: -0.5px;
}
.community-hero p {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.6;
  position: relative;
}

/* ===== 글쓰기 배너 (aihr 스타일) ===== */
.write-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px auto 0;
  padding: 0 20px;
  max-width: 1120px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #1e3a5f 0%, #2d1b69 100%);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}
.write-banner::before {
  content: '';
  position: absolute;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(59,130,246,0.2) 0%, transparent 70%);
  top: -40px; right: -20px;
  border-radius: 50%;
}
.write-banner-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
}
.write-banner-text strong {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}
.write-banner-text span {
  font-size: 11px;
  color: #93c5fd;
}
.write-banner-ai-btn {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border-radius: 24px;
  background: #ef4444;
  color: #fff;
  border: none;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(239,68,68,0.3);
  transition: transform 0.15s;
}
.write-banner-ai-btn:hover { transform: scale(1.05); }
.write-banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 24px;
  background: #fff;
  color: var(--text);
  border: none;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ===== 정렬 바 ===== */
.sort-bar {
  display: flex;
  gap: 4px;
  padding: 14px 20px 0;
  justify-content: flex-end;
  max-width: 1120px; margin-left: auto; margin-right: auto;
}
.sort-btn {
  padding: 5px 14px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text3);
  cursor: pointer;
  transition: all 0.15s;
}
.sort-btn.active {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

/* ===== 게시글 카드 (aihr 스타일) ===== */
.post-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  cursor: pointer;
  transition: box-shadow 0.2s;
}
.post-card:active {
  box-shadow: 0 4px 16px rgba(37,99,235,0.1);
}
.post-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.post-card-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--blue);
  flex-shrink: 0;
}
.post-card-author-info {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.post-card-author {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.post-card-badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  background: #eff6ff;
  color: var(--blue);
}
.post-card-time {
  font-size: 11px;
  color: var(--text3);
  flex-shrink: 0;
}
.post-card-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}
.post-card-excerpt {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text2);
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card-footer {
  display: flex;
  align-items: center;
  gap: 14px;
}
.post-card-comments {
  font-size: 12px;
  color: var(--text3);
  font-weight: 600;
}

/* ===== 갤러리 그리드 페이지 ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 16px 20px;
  max-width: 1120px; margin-left: auto; margin-right: auto;
}
.gallery-grid-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s, transform 0.2s;
}
.gallery-grid-card:active {
  transform: scale(0.98);
  box-shadow: 0 4px 16px rgba(37,99,235,0.1);
}
.gallery-grid-thumb {
  height: 110px;
  background: linear-gradient(135deg, #1e3a5f, #2d1b69);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}
.gallery-grid-info {
  padding: 12px;
}
.gallery-grid-info h4 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
  letter-spacing: -0.3px;
}
.gallery-grid-info p {
  font-size: 11px;
  color: var(--text2);
  line-height: 1.5;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gallery-grid-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.gallery-grid-likes {
  font-size: 11px;
  color: var(--text3);
  font-weight: 600;
}

/* 앱 상세 모달 */
.app-detail-modal {
  text-align: center;
}
.app-detail-emoji {
  font-size: 56px;
  margin-bottom: 12px;
}
.app-detail-modal h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}
.app-detail-modal p {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 16px;
}
.app-detail-tags {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.app-detail-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}
.app-detail-actions .btn-primary {
  text-decoration: none;
}
.btn-source {
  display: block;
  background: var(--bg);
  color: var(--text2);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

/* ===== AI 툴 목록 페이지 ===== */
.tools-list {
  padding: 24px 24px 48px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: var(--max-w, 1120px); margin-left: auto; margin-right: auto;
}
.tool-card-full {
  background: #f1f5f9;
  border-radius: 14px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  transition: background 0.2s, box-shadow 0.2s;
}
.tool-card-full:hover {
  background: #fef9c3;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

/* ===== 마이페이지 ===== */
.mypage-login-prompt {
  text-align: center;
  padding: 60px 20px;
}
.mypage-login-prompt .empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
}
.mypage-login-prompt p {
  font-size: 15px;
  color: var(--text2);
  margin-bottom: 24px;
}
.mypage-login-prompt .btn-primary {
  max-width: 260px;
  margin: 0 auto;
}

.mypage-profile {
  background: var(--hero-bg);
  text-align: center;
  padding: 32px 20px 28px;
  position: relative;
  overflow: hidden;
}
.mypage-profile::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 20%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 75%, rgba(255,255,255,0.3) 0%, transparent 100%);
  pointer-events: none;
}
.mypage-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.3);
  margin-bottom: 12px;
  position: relative;
}
.mypage-name {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
  position: relative;
}
.mypage-email {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 12px;
  position: relative;
}
.mypage-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 20px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #93c5fd;
  font-size: 12px;
  font-weight: 600;
  position: relative;
}
.mypage-badge.pro {
  color: #fbbf24;
  border-color: rgba(251,191,36,0.3);
  background: rgba(251,191,36,0.1);
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
}
.badge-dot.free { background: #34d399; }
.badge-dot.pro { background: #fbbf24; }

/* ===== 마이페이지 2컬럼 레이아웃 ===== */
.mypage-layout {
  display: flex;
  flex-direction: row-reverse;
  gap: 24px;
  max-width: var(--max-w, 1120px);
  margin: 0 auto;
  padding: 32px 24px;
}

/* 좌측 사이드바 */
.mypage-sidebar {
  width: 300px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mypage-sidebar-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 24px 28px;
  text-align: center;
}
.mypage-sidebar-card .mypage-avatar {
  width: 88px; height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(37,99,235,0.15);
  margin-bottom: 14px;
}
.mypage-sidebar-card .mypage-name {
  font-size: 18px; font-weight: 800; color: var(--text);
  margin-bottom: 4px;
}
.mypage-sidebar-card .mypage-email {
  font-size: 13px; color: var(--text2); margin-bottom: 14px;
}
.mypage-sidebar-card .mypage-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px; border-radius: 20px;
  background: #eff6ff; border: 1px solid #dbeafe;
  font-size: 12px; font-weight: 700; color: var(--blue);
}
.mypage-sidebar-card .mypage-badge.pro {
  background: #fffbeb; border-color: #fde68a; color: #b45309;
}

/* 사이드바 메뉴 */
.mypage-sidebar-menu {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.mypage-sidebar-menu .mypage-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  text-decoration: none;
  color: var(--text);
  font-size: 14px; font-weight: 600;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
  cursor: pointer;
}
.mypage-sidebar-menu .mypage-menu-item:last-child { border-bottom: none; }
.mypage-sidebar-menu .mypage-menu-item:hover { background: #f8fafc; }
.mypage-sidebar-menu .mypage-menu-item svg { color: var(--text2); flex-shrink: 0; }
.mypage-sidebar-menu .mypage-menu-item span { flex: 1; }
.mypage-menu-arrow { font-size: 16px; color: var(--text3); flex-shrink: 0; }

/* 로그아웃 */
.mypage-logout {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: #ef4444; font-size: 14px; font-weight: 600;
  cursor: pointer; font-family: inherit;
  transition: background 0.15s;
}
.mypage-logout:hover { background: #fef2f2; }

/* 우측 메인 콘텐츠 */
.mypage-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 공통 카드 */
.mypage-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}
.mypage-card-title {
  font-size: 18px; font-weight: 800; color: var(--text);
  margin-bottom: 20px;
}

/* 프로필 요약 그리드 */
.mypage-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.mypage-summary-item {
  text-align: center;
  padding: 20px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.2s;
}
.mypage-summary-item.active {
  background: #eff6ff;
  border-color: #bfdbfe;
}
.mypage-summary-item svg { margin-bottom: 8px; }
.mypage-summary-num {
  font-size: 24px; font-weight: 800; color: var(--text);
  letter-spacing: -1px; margin-bottom: 2px;
}
.mypage-summary-label {
  font-size: 12px; color: var(--text2);
}

/* PRO 배너 */
.pro-banner {
  background: linear-gradient(135deg, #1e3a5f 0%, #2d1b69 100%);
  border-radius: 16px; padding: 24px;
  position: relative; overflow: hidden;
}
.pro-banner::before {
  content: ''; position: absolute;
  width: 150px; height: 150px;
  background: radial-gradient(circle, rgba(59,130,246,0.2) 0%, transparent 70%);
  top: -50px; right: -30px; border-radius: 50%;
}
.pro-banner-text {
  display: flex; flex-direction: column; gap: 2px;
  margin-bottom: 12px; position: relative;
}
.pro-banner-text strong { font-size: 16px; font-weight: 800; color: #fff; }
.pro-banner-text span { font-size: 12px; color: #93c5fd; }
.pro-banner-price { margin-bottom: 14px; position: relative; }
.pro-banner-price strong { font-size: 20px; font-weight: 800; color: #fbbf24; }
.pro-banner-btn { position: relative; max-width: 200px; }

/* 개인 정보 그리드 */
.mypage-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.mypage-info-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 12px;
}
.mypage-info-item svg { flex-shrink: 0; margin-top: 2px; }
.mypage-info-label { font-size: 11px; color: var(--text3); margin-bottom: 2px; }
.mypage-info-value { font-size: 14px; font-weight: 600; color: var(--text); }

/* 모바일 반응형 */
@media (max-width: 768px) {
  .mypage-layout {
    flex-direction: column;
    padding: 16px;
    gap: 16px;
  }
  .mypage-sidebar { width: 100%; }
  .mypage-info-grid { grid-template-columns: 1fr; }
}

/* ===== 초보자 입문 가이드 페이지 ===== */

.guide-hero {
  background: var(--card-bg);
  text-align: center;
  padding: 40px 20px 32px;
  border-bottom: 1px solid var(--border);
}
.guide-hero h1 {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}
.guide-hero p {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.7;
}

/* 역량진단 배너 */
.guide-diagnosis {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 16px 20px;
  padding: 18px 20px;
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}
.guide-diagnosis::before {
  content: '';
  position: absolute;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  top: -60px; right: -40px;
  border-radius: 50%;
}
.guide-diagnosis-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  position: relative;
}
.guide-diagnosis-icon {
  font-size: 28px;
  flex-shrink: 0;
}
.guide-diagnosis-left strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}
.guide-diagnosis-left span {
  font-size: 11px;
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
}
.guide-diagnosis-btn {
  flex-shrink: 0;
  padding: 10px 20px;
  border-radius: 24px;
  background: #fff;
  color: var(--text);
  border: none;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 섹션 탭 */
.guide-section-tabs {
  display: flex;
  gap: 6px;
  padding: 14px 20px;
  overflow-x: auto;
  scrollbar-width: none;
}
.guide-section-tabs::-webkit-scrollbar { display: none; }
.guide-section-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 10px 18px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text2);
  cursor: pointer;
  transition: all 0.15s;
}
.guide-section-tab.active {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}
.guide-section-tab svg {
  flex-shrink: 0;
}

.guide-divider {
  height: 1px;
  background: var(--border);
  margin: 0 20px;
}

/* 카테고리 필터 */
.guide-filters {
  display: flex;
  gap: 8px;
  padding: 16px 20px;
  overflow-x: auto;
  scrollbar-width: none;
  flex-wrap: nowrap;
  max-width: 1120px; margin-left: auto; margin-right: auto;
}
.guide-filters::-webkit-scrollbar { display: none; }
.guide-filter {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  border: none;
  background: #f1f5f9;
  color: var(--text2);
  cursor: pointer;
  transition: all 0.15s;
}
.guide-filter.active {
  background: var(--blue);
  color: #fff;
}

/* 가이드 패널 */
.guide-panel {
  padding: 0 20px 20px;
  max-width: 1120px; margin-left: auto; margin-right: auto;
}

/* 툴 카드 그리드 (aihr 스타일 3열 → 모바일 1열) */
.guide-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.guide-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s;
}
.guide-card:hover {
  box-shadow: 0 4px 16px rgba(37,99,235,0.1);
}
.guide-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.guide-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.guide-card-cat {
  font-size: 11px;
  font-weight: 600;
  color: var(--blue);
  padding: 2px 8px;
  background: #eff6ff;
  border-radius: 4px;
}
.guide-card-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}
.guide-card-desc {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text2);
  margin-bottom: 14px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.guide-card-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.guide-card-tag {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 600;
  background: #f1f5f9;
  color: var(--text2);
}
.guide-card-btn {
  display: block;
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s;
}
.guide-card-btn:hover {
  background: var(--bg);
  border-color: var(--blue);
  color: var(--blue);
}

/* 카테고리 그룹 섹션 (가로) */
.guide-cat-section {
  border-radius: 12px;
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 6px;
  align-items: stretch;
}
.guide-cat-label {
  grid-column: 1 / -1;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 8px;
  text-align: center;
}

/* 가이드 카드 (컴팩트 1줄) */
.guide-card-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  transition: box-shadow 0.2s, background 0.2s;
  text-decoration: none;
  color: inherit;
}
.guide-card-row:hover {
  background: #FDE68A !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.guide-card-row[data-bg="gray"]:hover {
  background: #dde3ea !important;
}
.guide-card-row[data-bg="darkgray"]:hover {
  background: #b0b8c1 !important;
}
.guide-row-sub {
  font-size: 0.7rem;
  font-weight: 400;
  color: #64748b;
  margin-left: 4px;
}
.guide-row-icon {
  font-size: 24px;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.guide-row-icon img {
  display: block;
}
.guide-row-cat {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.guide-row-link {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border-radius: 6px;
  color: var(--blue);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  order: 3;
  margin-left: auto;
}
.guide-row-link:hover {
  background: var(--blue);
  color: #fff;
}
.guide-row-info {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.guide-row-info strong {
  font-size: 14px;
  white-space: nowrap;
}
.guide-row-desc {
  font-size: 12px;
  color: var(--desc-color, var(--text2));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 비교표 */
.guide-compare-section {
  margin-bottom: 28px;
}
.guide-compare-section h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  padding-top: 16px;
  letter-spacing: -0.3px;
}
.compare-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.compare-table {
  width: 100%;
  min-width: 500px;
  border-collapse: collapse;
  font-size: 13px;
}
.compare-table thead {
  background: var(--text);
  color: #fff;
}
.compare-table th {
  padding: 12px 14px;
  text-align: left;
  font-weight: 700;
  font-size: 12px;
  white-space: nowrap;
}
.compare-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  line-height: 1.5;
}
.compare-table tbody tr:last-child td {
  border-bottom: none;
}
.compare-table tbody tr:nth-child(even) {
  background: var(--bg);
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
}
.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.faq-question {
  width: 100%;
  padding: 16px 18px;
  background: none;
  border: none;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  line-height: 1.5;
}
.faq-question::after {
  content: '+';
  font-size: 20px;
  font-weight: 400;
  color: var(--text3);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item.open .faq-question::after {
  content: '−';
}
.faq-answer {
  display: none;
  padding: 0 18px 16px;
}
.faq-item.open .faq-answer {
  display: block;
}
.faq-answer p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--text2);
}

/* ===== 홈 바로가기 카드 ===== */
.home-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text2);
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s;
}
.home-link-card:active {
  box-shadow: 0 4px 16px rgba(37,99,235,0.1);
}
.home-link-arrow {
  font-size: 18px;
  color: var(--blue);
  flex-shrink: 0;
  font-weight: 700;
}

/* ===== 교육 세션 ===== */

/* 세션 카드 */
.session-card {
  display: block;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 12px;
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s;
}
.session-card:active {
  box-shadow: 0 4px 16px rgba(37,99,235,0.1);
}
.session-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.session-card-top h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
}
.session-status {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.session-status.active {
  background: #d1fae5;
  color: #059669;
}
.session-status.closed {
  background: #f1f5f9;
  color: #94a3b8;
}
.session-card-meta {
  display: flex;
  gap: 14px;
  font-size: 13px;
  color: var(--text2);
}

.session-admin-btns {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.session-admin-btns button {
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: none;
}
.btn-edit-session {
  background: var(--blue);
  color: #fff;
}
.btn-delete-session {
  background: #fee2e2;
  color: #dc2626;
}

.btn-photo {
  flex: 1;
  padding: 14px 0;
  border: none;
  border-radius: 12px;
  background: #fef9c3;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  color: #92400e;
  transition: background 0.15s;
}
.btn-photo:active {
  background: #fde68a;
}

/* 세션 히어로 */
.session-hero {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
  padding: 20px 24px 24px;
  position: relative;
  overflow: hidden;
}
.session-hero::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(37,99,235,0.15), transparent 60%);
  pointer-events: none;
}
.session-hero > * {
  max-width: var(--max-w, 1120px);
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}
.session-hero h1 {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}
.session-hero p {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 12px;
}
.session-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.session-participants {
  font-size: 13px;
  color: #93c5fd;
  font-weight: 600;
}
.session-qr-btn {
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.session-close-btn {
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(220,38,38,0.15);
  border: 1px solid rgba(220,38,38,0.3);
  color: #fca5a5;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

/* 제출 카드 */
.submit-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.submit-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.submit-card-header strong {
  font-size: 14px;
  color: var(--text);
}
.submit-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}
.submit-card-desc {
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 10px;
  line-height: 1.6;
}
.submit-card-image {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 8px;
  max-height: 300px;
  object-fit: cover;
}
.submit-card-link {
  display: block;
  font-size: 13px;
  color: var(--blue);
  word-break: break-all;
  margin-bottom: 4px;
}

/* 전체화면 (프로젝터) */
.fullscreen-view {
  display: none;
  position: fixed;
  inset: 0;
  background: #0f1729;
  z-index: 500;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.fullscreen-view.open {
  display: flex;
}
.fullscreen-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
}
.fullscreen-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.fullscreen-info {
  text-align: center;
  padding: 20px;
}
.fullscreen-info h2 {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}
.fullscreen-info p {
  font-size: 14px;
  color: #94a3b8;
}

/* 세션 제출 폼 영역 */
.session-submit {
  padding: 16px 20px 0;
  max-width: var(--max-w, 1120px);
  margin-left: auto;
  margin-right: auto;
}

/* 세션 갤러리 그리드 (aihr 스타일) */
.session-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 640px) {
  .session-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .session-gallery { grid-template-columns: repeat(3, 1fr); }
}
.gallery-submit-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.15s;
}
.gallery-submit-card:active {
  transform: scale(0.98);
  box-shadow: 0 4px 16px rgba(37,99,235,0.1);
}
.gallery-submit-thumb {
  width: 100%;
  height: 140px;
  background: linear-gradient(135deg, #1e3a5f, #2d1b69);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.gallery-submit-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-submit-thumb .thumb-link {
  font-size: 36px;
  color: rgba(255,255,255,0.6);
}
.gallery-submit-info {
  padding: 12px;
}
.gallery-submit-info h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  letter-spacing: -0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gallery-submit-info p {
  font-size: 11px;
  color: var(--text2);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}
.gallery-submit-author {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text3);
}
.gallery-submit-author .mini-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  color: var(--blue);
  flex-shrink: 0;
}

/* 조 배지 */
.gallery-team-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(37,99,235,0.9);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
}

/* ===== 교육일정 캘린더 ===== */
.calendar-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 75%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin: 20px 0;
}
.calendar-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}
@media (max-width: 768px) {
  .calendar-wrap { padding-bottom: 100%; }
}
@media (max-width: 480px) {
  .calendar-wrap { padding-bottom: 130%; }
}
.schedule-content {
  padding: 20px 20px 40px;
  max-width: 1120px; margin-left: auto; margin-right: auto;
}
.schedule-desc {
  font-size: 14px;
  color: var(--text2);
  text-align: center;
  margin-bottom: 16px;
}

/* 접근 차단 */
.session-locked {
  padding: 20px;
  max-width: var(--max-w, 1120px);
  margin-left: auto;
  margin-right: auto;
}

/* ===== 커리큘럼 심플 텍스트 리스트 (nanumcon/23 스타일) ===== */
.cur-text-list {
  padding: 20px 20px 40px;
  max-width: 1120px; margin-left: auto; margin-right: auto;
}
.cur-text-desc {
  font-size: 14px;
  color: var(--text2);
  margin-bottom: 20px;
  text-align: center;
}
.cur-text-category {
  background: linear-gradient(135deg, #1e3a6f 0%, #3b2d7a 50%, #4a3590 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 4px;
}
.cur-text-item {
  display: block;
  padding: 14px 16px;
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px dashed var(--border);
  transition: color 0.15s, background 0.15s;
}
.cur-text-item:hover {
  color: var(--blue);
  background: #f8fafc;
}
.cur-text-item::before {
  content: '· ';
  font-weight: 700;
}

/* ===== 커리큘럼 상세 모듈 (nanumcon/272 스타일) ===== */
.cur-detail-meta {
  background: #f1f5f9;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--text2);
  text-align: center;
  margin-bottom: 20px;
}
.cur-detail-desc {
  font-size: 14px;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 24px;
}
.cur-detail-clients {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.8;
  margin-bottom: 24px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.cur-detail-clients strong {
  display: block;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 6px;
}
.cur-module {
  margin-bottom: 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.cur-module-title {
  background: linear-gradient(135deg, #1e3a6f 0%, #3b2d7a 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 16px;
}
.cur-module-items {
  padding: 12px 16px;
}
.cur-module-items li {
  padding: 8px 0;
  font-size: 13px;
  color: var(--text);
  border-bottom: 1px solid #f1f5f9;
  list-style: none;
  line-height: 1.6;
}
.cur-module-items li:last-child { border-bottom: none; }
.cur-module-items li::before {
  content: '·';
  color: var(--blue);
  font-weight: 700;
  margin-right: 8px;
}
.cur-faq {
  margin-top: 24px;
}
.cur-faq-item {
  margin-bottom: 12px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid var(--border);
  overflow: hidden;
}
.cur-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  cursor: pointer;
  list-style: none;
  transition: background 0.2s;
}
.cur-faq-item summary::-webkit-details-marker { display: none; }
.cur-faq-item summary::after {
  content: '';
  width: 8px; height: 8px;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(45deg);
  transition: transform 0.25s;
  flex-shrink: 0;
  margin-left: 12px;
}
.cur-faq-item[open] summary::after {
  transform: rotate(-135deg);
}
.cur-faq-item summary:hover { background: #f1f5f9; }
.cur-faq-item .cur-faq-answer {
  padding: 0 16px 14px;
  font-size: 13px;
  color: var(--text2);
  line-height: 1.7;
}

/* ===== 문의하기 폼 ===== */
.contact-form-wrap {
  padding: 20px 20px 40px;
  max-width: 1120px; margin-left: auto; margin-right: auto;
}
.contact-form-wrap h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}
.contact-field {
  margin-bottom: 16px;
}
.contact-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font-family: inherit;
  transition: border-color 0.2s;
}
.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.contact-field textarea {
  resize: vertical;
  min-height: 120px;
}
.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 480px) {
  .contact-row { grid-template-columns: 1fr; }
}
.contact-submit {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  border: none;
  border-radius: 50px;
  cursor: pointer;
  margin-top: 8px;
}
.contact-info-box {
  margin-top: 32px;
  padding: 20px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.contact-info-box h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
}
.contact-info-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text);
}
.contact-info-row a {
  color: var(--blue);
  text-decoration: none;
}

/* ===== 저서 소개 ===== */
.book-content {
  padding: 20px 20px 40px;
  max-width: 1120px; margin-left: auto; margin-right: auto;
}
.book-top {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
}
.book-cover {
  flex-shrink: 0;
  width: 400px;
}
.book-cover img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.book-info {
  flex: 1;
  min-width: 0;
}
.book-spec {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.book-spec th {
  text-align: left;
  padding: 8px 12px;
  color: var(--text2);
  font-weight: 600;
  width: 80px;
  border-bottom: 1px solid var(--border);
}
.book-spec td {
  padding: 8px 12px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.book-detail-img {
  margin-bottom: 32px;
}
@media (max-width: 600px) {
  .book-top {
    flex-direction: column;
    align-items: center;
  }
  .book-cover { width: 100% !important; }
  .book-cover img { width: 220px !important; margin: 0 auto; }
}
.book-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 24px;
}
.book-card-body {
  padding: 20px;
}
.book-card-body h2 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 4px;
}
.book-badge {
  display: inline-block;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.book-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 16px;
}
.book-meta dt {
  font-weight: 600;
  color: var(--text);
}
.book-desc {
  font-size: 14px;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 20px;
}
.book-toc {
  margin-top: 20px;
}
.book-toc h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--blue);
}
.book-toc-part {
  margin-bottom: 16px;
}
.book-toc-part h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 6px;
}
.book-toc-part ul {
  list-style: none;
  padding: 0;
}
.book-toc-part li {
  padding: 5px 0;
  font-size: 13px;
  color: var(--text2);
  border-bottom: 1px solid #f1f5f9;
}
.book-toc-part li::before {
  content: '· ';
  color: var(--blue);
  font-weight: 700;
}
