/* ===========================================================================
 * AI Zone 전용 스타일 (다크 테마)
 * layouts/main.php 의 <body class="page-aizone"> 일 때만 적용된다.
 * ========================================================================= */

.page-aizone {
  --ai-bg: #0B0F19;
  --ai-bg-2: #121722;
  --ai-line: rgba(255, 255, 255, .10);
  --ai-line-soft: rgba(255, 255, 255, .06);
  --ai-surface: rgba(255, 255, 255, .04);
  --ai-accent: #00AEEF;
  --ai-accent-2: #8C5AEF;
  --ai-accent-3: #4A6CF7;
  --ai-text: #FFFFFF;
  --ai-text-sub: #B8C2CC;
  --ai-text-muted: rgba(255, 255, 255, .55);
  --ai-grad: linear-gradient(135deg, #00AEEF 0%, #8C5AEF 100%);

  background: var(--ai-bg);
  color: var(--ai-text);
}

/* 공통 레이아웃(헤더/푸터/로더) 다크 대응 -------------------------------- */
.page-aizone .header {
  background: rgba(11, 15, 25, .88);
  border-bottom-color: var(--ai-line);
  backdrop-filter: blur(10px);
}
.page-aizone .header.is-scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .5); }
.page-aizone .logo,
.page-aizone .gnb > li > a,
.page-aizone .header__me { color: var(--ai-text); }
.page-aizone .logo img { filter: brightness(0) invert(1); }
.page-aizone .gnb > li:hover > a,
.page-aizone .gnb > li > a.is-active { color: var(--ai-accent); }
.page-aizone .gnb > li > a::after { background: var(--ai-accent); }
.page-aizone .gnb__sub { background: #151b28; border-color: var(--ai-line); }
.page-aizone .gnb__sub a { color: var(--ai-text-sub); }
.page-aizone .gnb__sub a:hover { background: rgba(0, 174, 239, .16); color: var(--ai-accent); }
.page-aizone .header__burger span,
.page-aizone .header__burger span::before,
.page-aizone .header__burger span::after { background: var(--ai-text); }
.page-aizone .header__util .btn--line { border-color: var(--ai-line); color: var(--ai-text); }

.page-aizone .footer {
  margin-top: 0;
  background: #070A12;
  border-top-color: var(--ai-line);
  color: var(--ai-text-sub);
}
.page-aizone .footer a,
.page-aizone .footer__tel,
.page-aizone .footer__col-title { color: var(--ai-text-sub); }
.page-aizone .footer__col-title,
.page-aizone .footer__tel,
.page-aizone .footer__links a.is-strong { color: var(--ai-text); }
.page-aizone .footer__links { border-color: var(--ai-line); }

.page-aizone #loader { background: rgba(11, 15, 25, .72); }
.page-aizone .loader__spinner { border-color: rgba(255, 255, 255, .14); border-top-color: var(--ai-accent); }

/* 페이지 컨테이너 --------------------------------------------------------- */
.ai-zone-page { background: var(--ai-bg); }

.ai-zone-wrapper {
  position: relative;
  z-index: 1;
  margin-top: -60px;
  padding-bottom: 100px;
  background: linear-gradient(180deg, transparent 0, var(--ai-bg) 120px);
}

.ai-zone-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.ai-zone-page .section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ai-text);
}
.ai-zone-page .section-title span { font-size: 26px; }
.ai-zone-page .section-subtitle {
  margin-top: 10px;
  font-size: 15.5px;
  color: var(--ai-text-sub);
}

/* ===== 히어로 ============================================================ */
.ai-hero-banner {
  position: relative;
  overflow: hidden;
  padding: 120px 20px 150px;
  background: #0B0F19 url('/assets/img/aizone-bg.svg') center / cover no-repeat;
}
.ai-hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(11, 16, 33, .6), rgba(20, 24, 45, .3)),
    radial-gradient(circle at 20% 30%, rgba(0, 174, 239, .22) 0, transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(140, 92, 239, .22) 0, transparent 50%);
}
.ai-hero-banner::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 180px;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 0, rgba(11, 15, 25, .85) 70%, var(--ai-bg) 100%);
}

.ai-hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.ai-hero-eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 7px 16px;
  border: 1px solid rgba(0, 174, 239, .5);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
  color: #7FE0FF;
  background: rgba(0, 174, 239, .10);
}
.ai-hero-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -.03em;
  background: linear-gradient(135deg, #00AEEF 0%, #33CCFF 50%, #8C5AEF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ai-hero-subtitle {
  margin: 22px 0 40px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ai-text-sub);
}

.ai-hero-cta { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.ai-cta-primary,
.ai-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border: none;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.ai-cta-primary {
  background: linear-gradient(135deg, #00AEEF 0%, #33CCFF 100%);
  color: #fff;
  box-shadow: 0 8px 30px rgba(0, 174, 239, .4);
}
.ai-cta-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0, 174, 239, .6); }
.ai-cta-secondary {
  background: rgba(140, 92, 239, .18);
  border: 2px solid var(--ai-accent-2);
  color: #C9AEFF;
}
.ai-cta-secondary:hover { transform: translateY(-3px); background: rgba(140, 92, 239, .3); }

/* ===== 로드맵 Lab ======================================================== */
.roadmap-section-wrapper {
  padding-bottom: 48px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--ai-line-soft);
}

.ai-roadmap-lab {
  position: relative;
  overflow: hidden;
  padding: 44px;
  border: 1px solid var(--ai-line);
  border-radius: 28px;
  background: rgba(18, 23, 34, .92);
  box-shadow: 0 35px 90px rgba(3, 5, 15, .75);
}
.ai-roadmap-lab::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(circle at 82% 12%, rgba(140, 90, 239, .16), transparent 55%);
}
.ai-roadmap-heading { position: relative; z-index: 1; margin-bottom: 28px; }

.roadmap-form { position: relative; z-index: 1; }

.roadmap-input-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.roadmap-input-group--wide { grid-column: span 2; }
.roadmap-input-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ai-text-sub);
}
.roadmap-input-group label span { font-weight: 400; color: var(--ai-text-muted); }
.roadmap-input-group select,
.roadmap-input-group input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(0, 174, 239, .3);
  border-radius: 10px;
  background: rgba(0, 0, 0, .25);
  color: #fff;
  font-family: inherit;
  font-size: 14.5px;
}
.roadmap-input-group select:focus-visible,
.roadmap-input-group input:focus-visible {
  outline: 2px solid var(--ai-accent);
  outline-offset: 2px;
}
.roadmap-input-group select option { background: #1a2130; color: #fff; }
.roadmap-input-group input::placeholder { color: rgba(255, 255, 255, .35); }

.roadmap-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
}
.roadmap-generate-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 38px;
  border: none;
  border-radius: 999px;
  background: radial-gradient(50% 50% at 50% 50%, #A47CF3 0%, #683FEA 100%);
  box-shadow: 0 0 1px 4px rgba(255, 255, 255, .10),
    0 -4px 2px 0 rgba(0, 0, 0, .25) inset,
    0 2px 1px 0 rgba(255, 255, 255, .25) inset;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.roadmap-generate-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 35px rgba(104, 63, 234, .6); }
.roadmap-generate-btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.roadmap-hint { font-size: 13.5px; color: var(--ai-text-muted); }

/* 학습 인사이트 패널 */
.user-insight-wrapper {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 30px;
}
.user-insight-panel {
  padding: 24px;
  border: 1px solid var(--ai-line);
  border-radius: 20px;
  background: rgba(255, 255, 255, .02);
}
.insight-title {
  margin-bottom: 14px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
}
.user-insight-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.insight-tag {
  padding: 8px 14px;
  border: 1px solid rgba(74, 108, 247, .4);
  border-radius: 999px;
  background: rgba(74, 108, 247, .2);
  font-size: 13px;
  color: #E1E7FF;
}
.insight-tag.empty { border-style: dashed; opacity: .6; }

.insight-stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.insight-stat {
  padding: 18px;
  border: 1px solid var(--ai-line-soft);
  border-radius: 16px;
  background: rgba(0, 0, 0, .25);
  text-align: center;
}
.insight-stat .stat-value { display: block; font-size: 21px; font-weight: 800; color: #fff; }
.insight-stat .stat-label { font-size: 12.5px; color: var(--ai-text-muted); }

/* ===== 로드맵 결과 ======================================================= */
.ai-loading { padding: 60px 20px; text-align: center; color: var(--ai-text-sub); }
.ai-loading i {
  display: inline-block;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border: 4px solid rgba(0, 174, 239, .2);
  border-top-color: var(--ai-accent);
  border-radius: 50%;
  animation: ai-spin .9s linear infinite;
}
@keyframes ai-spin { to { transform: rotate(360deg); } }

.roadmap-results { margin-top: 34px; }
.roadmap-result-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.roadmap-result-head h3 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.roadmap-result-head p { margin-top: 8px; font-size: 14.5px; color: var(--ai-text-sub); }
.roadmap-result-tools { display: flex; align-items: center; gap: 12px; }
.roadmap-selected-count { font-size: 13.5px; color: var(--ai-accent); font-weight: 700; }
.roadmap-reset-btn {
  padding: 9px 16px;
  border: 1px solid var(--ai-line);
  border-radius: 999px;
  background: transparent;
  color: var(--ai-text-sub);
  font-family: inherit;
  font-size: 13.5px;
  cursor: pointer;
}
.roadmap-reset-btn:hover { border-color: var(--ai-accent); color: var(--ai-accent); }
.roadmap-guide { margin-top: 14px; font-size: 13.5px; color: var(--ai-text-muted); }

.roadmap-step { margin-top: 30px; }
.roadmap-step-header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
.step-no {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--ai-grad);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  color: #fff;
}
.step-title { font-size: 19px; font-weight: 700; }
.step-desc { font-size: 13.5px; color: var(--ai-text-muted); }

.roadmap-cards-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
  max-width: calc(5 * 230px + 4 * 16px);
}
.roadmap-cards-grid.is-dragover { outline: 2px dashed rgba(0, 174, 239, .45); outline-offset: 6px; }

.roadmap-course-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  width: 230px;
  min-height: 165px;
  padding: 18px;
  border: 1px solid rgba(0, 174, 239, .2);
  border-radius: 20px;
  background: rgba(255, 255, 255, .03);
  cursor: move;
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.roadmap-course-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 174, 239, .5);
  background: rgba(255, 255, 255, .08);
  box-shadow: 0 8px 30px rgba(0, 174, 239, .3);
}
.roadmap-course-card.is-dragging { opacity: .45; }
.roadmap-course-card.is-off { opacity: .45; border-style: dashed; }
.roadmap-course-card h4 {
  margin-right: 30px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.roadmap-course-card h4 a { color: #fff; }
.roadmap-course-card h4 a:hover { color: var(--ai-accent); }
.roadmap-course-reason {
  font-size: 11.5px;
  line-height: 1.45;
  color: #9AA6B6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.roadmap-course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11.5px;
  color: var(--ai-text-sub);
}
.roadmap-course-meta span { display: inline-block; }

.course-card-checkbox {
  position: absolute;
  top: 18px;
  right: 16px;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #00AEEF;
  cursor: pointer;
}

.roadmap-save-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 34px; }
.save-roadmap-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 44px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(232deg, #2146DC 5.66%, #00AEEF 83.03%);
  box-shadow: 0 0 1px 4px rgba(255, 255, 255, .10),
    0 -4px 2px 0 rgba(0, 0, 0, .25) inset,
    0 2px 1px 0 rgba(255, 255, 255, .25) inset;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.save-roadmap-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 35px rgba(0, 174, 239, .5); }
.save-roadmap-btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

/* ===== AI 리포트 ========================================================= */
.ai-roadmap-report {
  margin: 50px 0;
  padding: 36px;
  border: 1px solid var(--ai-line);
  border-radius: 24px;
  background: rgba(4, 7, 20, .85);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}
.ai-roadmap-report .report-header h3 { margin-bottom: 8px; font-size: 24px; font-weight: 800; }
.ai-roadmap-report .report-header p { margin-bottom: 24px; font-size: 14px; color: rgba(255, 255, 255, .7); }

.ai-report-tabs { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.ai-report-tab-btn {
  padding: 12px 22px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  color: rgba(255, 255, 255, .8);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s var(--ease);
}
.ai-report-tab-btn.active {
  border-color: transparent;
  background: linear-gradient(135deg, #4A6CF7 0%, #8C5AEF 100%);
  color: #fff;
  box-shadow: 0 12px 30px rgba(74, 108, 247, .4);
}

.ai-report-panel[hidden] { display: none; }

.my-roadmap-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.my-roadmap-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--ai-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .03);
}
.my-roadmap-card-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px; }
.my-roadmap-card h4 { font-size: 17px; font-weight: 700; line-height: 1.4; }
.my-roadmap-chip {
  flex: 0 0 auto;
  padding: 6px 12px;
  border: 1px solid rgba(74, 108, 247, .4);
  border-radius: 999px;
  background: rgba(74, 108, 247, .15);
  font-size: 11.5px;
  color: #DFE4FF;
}
.my-roadmap-reason { font-size: 13.5px; line-height: 1.5; color: rgba(255, 255, 255, .85); }
.my-roadmap-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: rgba(255, 255, 255, .7); }
.my-roadmap-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .45);
}
.my-roadmap-btns { display: flex; gap: 8px; }
.my-roadmap-actions button {
  padding: 9px 16px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #00AEEF 0%, #4A6CF7 100%);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.my-roadmap-actions .my-roadmap-del {
  background: transparent;
  border: 1px solid var(--ai-line);
  color: var(--ai-text-muted);
}
.my-roadmap-actions .my-roadmap-del:hover { border-color: #E0526A; color: #FF8DA0; }

.ai-report-placeholder {
  padding: 30px;
  border: 1px dashed rgba(255, 255, 255, .2);
  border-radius: 18px;
  text-align: center;
  color: rgba(255, 255, 255, .7);
}
.ai-report-placeholder small { display: block; margin-top: 10px; color: rgba(255, 255, 255, .5); }
.ai-report-placeholder a { color: var(--ai-accent); }

.my-roadmap-empty {
  padding: 40px;
  border: 1px dashed rgba(255, 255, 255, .2);
  border-radius: 18px;
  text-align: center;
  color: rgba(255, 255, 255, .7);
}
.my-roadmap-empty[hidden] { display: none; }

.insight-stat-grid--wide { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.insight-bars { display: grid; gap: 12px; margin-top: 14px; }
.insight-bars li { display: grid; grid-template-columns: 130px 1fr 56px; align-items: center; gap: 14px; font-size: 13.5px; }
.insight-bar__name { color: var(--ai-text-sub); }
.insight-bar__track { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.insight-bar__fill { display: block; height: 100%; border-radius: 999px; background: var(--ai-grad); }
.insight-bar__val { text-align: right; color: var(--ai-text-muted); }

.reason-lead { margin-bottom: 18px; font-size: 14px; color: var(--ai-text-sub); }
.reason-lead strong { color: var(--ai-accent); }
.reason-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.reason-list a {
  display: flex;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--ai-line-soft);
  border-radius: 14px;
  background: rgba(255, 255, 255, .02);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.reason-list a:hover { border-color: rgba(0, 174, 239, .5); background: rgba(255, 255, 255, .05); }
.reason-list img { flex: 0 0 108px; width: 108px; height: 68px; border-radius: 10px; object-fit: cover; }
.reason-list__body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.reason-list__body strong {
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.reason-list__body em { font-style: normal; font-size: 12.5px; color: var(--ai-accent-2); }
.reason-list__body span { font-size: 12.5px; color: var(--ai-text-muted); }

/* ===== CTA 배너 ========================================================== */
.ai-roadmap-cta-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 40px 0;
  padding: 26px 32px;
  border: 1px solid rgba(74, 108, 247, .35);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(74, 108, 247, .2), rgba(140, 90, 239, .2));
}
.ai-roadmap-cta-banner h3 { font-size: 21px; font-weight: 700; }
.ai-roadmap-cta-banner p { margin-top: 6px; color: rgba(255, 255, 255, .8); font-size: 14.5px; }
.ai-roadmap-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #4A6CF7 0%, #8C5AEF 100%);
  box-shadow: 0 15px 40px rgba(74, 108, 247, .35);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.ai-roadmap-cta-btn:hover { transform: translateY(-2px); }

/* ===== 콘텐츠 허브 ======================================================= */
.ai-content-hub { position: relative; margin-top: 60px; }

.ai-content-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.ai-content-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.ai-search { display: flex; align-items: center; }
.ai-search input {
  width: 240px;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--ai-line);
  border-right: none;
  border-radius: 12px 0 0 12px;
  background: rgba(255, 255, 255, .05);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
}
.ai-search input::placeholder { color: rgba(255, 255, 255, .4); }
.ai-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 46px;
  border: none;
  border-radius: 0 12px 12px 0;
  background: var(--ai-grad);
  color: #fff;
  cursor: pointer;
}

.ai-content-favorite-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  border: 1px solid var(--ai-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s var(--ease);
}
.ai-content-favorite-btn em {
  font-style: normal;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  font-size: 12px;
}
.ai-content-favorite-btn[aria-pressed="true"] {
  border-color: transparent;
  background: linear-gradient(135deg, #FF4D6D 0%, #C13584 100%);
}

.ai-zone-filter-layout {
  display: grid;
  gap: 16px;
  padding: 26px 28px;
  border: 1px solid var(--ai-line);
  border-radius: 20px;
  background: rgba(255, 255, 255, .025);
}
.filter-row { display: flex; align-items: flex-start; gap: 16px; }
.filter-row__label {
  flex: 0 0 52px;
  padding-top: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ai-text-muted);
}
.tab-control { display: flex; flex-wrap: wrap; gap: 8px; }
.tab-btn {
  padding: 9px 20px;
  border: 1px solid var(--ai-line);
  border-radius: 999px;
  background: transparent;
  color: var(--ai-text-sub);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s var(--ease);
}
.tab-btn:hover { border-color: rgba(0, 174, 239, .6); color: #fff; }
.tab-btn.active {
  border-color: transparent;
  background: linear-gradient(135deg, #00AEEF 0%, #8C5AEF 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 174, 239, .35);
}
.tab-control--tags .tab-btn { font-size: 13px; padding: 8px 16px; }

.ai-content-results { min-height: 400px; padding: 26px 0 0; }
.ai-content-results-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.ai-results-meta h3 { font-size: 20px; font-weight: 700; }
.ai-results-meta p { margin-top: 6px; font-size: 13px; color: rgba(255, 255, 255, .7); }
.ai-results-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.ai-results-controls .search-count { font-size: 14px; color: rgba(255, 255, 255, .8); }
.ai-results-controls .search-count strong { color: var(--ai-accent); }
.ai-results-controls select {
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--ai-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .05);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
}
.ai-results-controls select option { background: #1a2130; color: #fff; }

.ai-content-hub .content-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ai-content-hub .content-grid[hidden] { display: none; }

.ai-course-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ai-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .03);
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.ai-course-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 174, 239, .5);
  background: rgba(255, 255, 255, .07);
  box-shadow: 0 12px 40px rgba(0, 174, 239, .28);
}
.ai-course-card .course-thumbnail {
  position: relative;
  display: block;
  height: 190px;
  background-color: #101623;
  background-position: center;
  background-size: cover;
}
.ai-course-card .course-thumbnail::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 55%;
  background: linear-gradient(to top, rgba(11, 15, 25, .92) 0, transparent 100%);
}
.course-difficulty {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #00AEEF 0%, #33CCFF 100%);
  font-size: 11.5px;
  font-weight: 700;
  color: #fff;
}
.course-difficulty[data-level="중급"] { background: linear-gradient(135deg, #4A6CF7 0%, #6E8BFF 100%); }
.course-difficulty[data-level="심화"] { background: linear-gradient(135deg, #8C5AEF 0%, #B48CFF 100%); }
.course-category-pill {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 2;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  background: rgba(11, 15, 25, .85);
  font-size: 11.5px;
  color: #F0F4FF;
}
.course-ai-flag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(140, 92, 239, .9);
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}

.ai-course-card .course-info { display: flex; flex: 1 1 auto; flex-direction: column; gap: 10px; padding: 18px 20px 16px; }
.course-meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 12.5px; color: var(--ai-text-sub); }
.course-meta-row .course-type {
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(0, 174, 239, .16);
  color: #7FE0FF;
  font-weight: 700;
}
.ai-course-card h4 {
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.42;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ai-course-card h4 a { color: #fff; }
.ai-course-card h4 a:hover { color: var(--ai-accent); }
.course-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.course-tags span {
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  font-size: 11.5px;
  color: var(--ai-text-muted);
}
.course-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 6px;
}
.course-date { font-size: 12px; color: var(--ai-text-muted); }
.course-fav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--ai-line);
  border-radius: 50%;
  background: transparent;
  color: var(--ai-text-muted);
  cursor: pointer;
  transition: all .2s var(--ease);
}
.course-fav:hover { border-color: #FF6B85; color: #FF6B85; }
.course-fav.is-on { border-color: transparent; background: #FF4D6D; color: #fff; }
.course-fav.is-on svg path { fill: currentColor; }

.ai-no-results {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 50px 40px;
  border: 1px dashed rgba(255, 255, 255, .15);
  border-radius: 16px;
  text-align: center;
  color: rgba(255, 255, 255, .7);
}
.ai-no-results i { font-size: 34px; font-style: normal; }

.pagination-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 40px;
  padding: 20px 0;
}
.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .25s var(--ease);
}
.pagination-btn:hover:not(:disabled) { transform: translateY(-2px); border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .15); }
.pagination-btn:disabled { opacity: .4; cursor: not-allowed; }
.pagination-btn.active {
  border-color: transparent;
  background: linear-gradient(135deg, #00AEEF 0%, #8C5AEF 100%);
  box-shadow: 0 4px 20px rgba(0, 174, 239, .45);
}
.pagination-ellipsis { align-self: center; padding: 12px 4px; color: rgba(255, 255, 255, .6); font-weight: 600; }

/* ===== 실습 랩 / 수료 트랙 =============================================== */
.hands-on-section { margin: 70px 0; }
.hands-on-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 26px; }
.hands-on-card {
  display: block;
  padding: 30px;
  border: 1px solid rgba(140, 92, 239, .3);
  border-radius: 16px;
  background: rgba(140, 92, 239, .1);
  text-align: center;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.hands-on-card:hover {
  transform: translateY(-5px);
  border-color: rgba(140, 92, 239, .6);
  background: rgba(140, 92, 239, .16);
  box-shadow: 0 8px 30px rgba(140, 92, 239, .35);
}
.hands-on-icon { margin-bottom: 18px; font-size: 44px; filter: drop-shadow(0 0 15px rgba(140, 92, 239, .55)); }
.hands-on-card h4 { margin-bottom: 10px; font-size: 19px; font-weight: 700; color: #fff; }
.hands-on-card p { font-size: 14px; line-height: 1.6; color: var(--ai-text-sub); }

.certification-section {
  margin: 70px 0 0;
  padding: 40px;
  border: 1px solid rgba(0, 174, 239, .2);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(0, 174, 239, .05) 0, rgba(140, 92, 239, .05) 100%);
}
.cert-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 26px; }
.cert-card {
  padding: 25px;
  border: 1px solid var(--ai-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .05);
  text-align: center;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.cert-card:hover { transform: scale(1.04); border-color: rgba(0, 174, 239, .5); box-shadow: 0 8px 25px rgba(0, 174, 239, .28); }
.cert-icon { margin-bottom: 14px; font-size: 36px; }
.cert-card h5 { margin-bottom: 8px; font-size: 16px; font-weight: 700; color: #fff; }
.cert-card p { font-size: 13px; color: var(--ai-text-sub); }

/* ===== 토스트 ============================================================ */
.ai-toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  z-index: 950;
  transform: translate(-50%, 20px);
  padding: 14px 26px;
  border: 1px solid var(--ai-line);
  border-radius: 999px;
  background: rgba(11, 15, 25, .95);
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease);
}
.ai-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.ai-toast.is-error { border-color: rgba(255, 109, 133, .6); color: #FFB3C0; }

/* ===== 반응형 ============================================================ */
@media (max-width: 1200px) {
  .ai-content-hub .content-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hands-on-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cert-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reason-list { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .ai-hero-banner { padding: 90px 20px 130px; }
  .ai-hero-title { font-size: 34px; }
  .ai-roadmap-lab { padding: 30px 22px; }
  .roadmap-input-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .roadmap-input-group--wide { grid-column: span 2; }
  .user-insight-wrapper { grid-template-columns: 1fr; }
  .insight-bars li { grid-template-columns: 96px 1fr 48px; }
}

@media (max-width: 768px) {
  .ai-zone-wrapper { margin-top: -40px; padding-bottom: 60px; }
  .ai-hero-title { font-size: 28px; }
  .ai-hero-subtitle { font-size: 15px; }
  .ai-cta-primary, .ai-cta-secondary { padding: 14px 24px; font-size: 15px; }
  .ai-zone-page .section-title { font-size: 22px; }
  .roadmap-input-grid { grid-template-columns: 1fr; }
  .roadmap-input-group--wide { grid-column: span 1; }
  .insight-stat-grid, .insight-stat-grid--wide { grid-template-columns: 1fr; }
  .roadmap-cards-grid { flex-direction: column; }
  .roadmap-course-card { width: 100%; }
  .ai-roadmap-report { padding: 24px 18px; }
  .ai-zone-filter-layout { padding: 20px 16px; }
  .filter-row { flex-direction: column; gap: 8px; }
  .filter-row__label { padding-top: 0; }
  .ai-content-hub .content-grid,
  .hands-on-grid,
  .cert-grid,
  .my-roadmap-list { grid-template-columns: 1fr; }
  .certification-section { padding: 26px 18px; }
  .ai-search input { width: 100%; flex: 1 1 auto; }
  .ai-content-toolbar { width: 100%; }
  .ai-search { flex: 1 1 200px; }
}

.roadmap-empty-step {
  padding: 26px;
  border: 1px dashed rgba(255, 255, 255, .18);
  border-radius: 16px;
  font-size: 13.5px;
  color: var(--ai-text-muted);
}
