/* =========================================================
   예측 서비스 전용 글로벌 CSS 변수 및 디자인 시스템
   위치: ssPredict/css/style.css
========================================================= */
:root {
  /* 글로벌 색상 변수 — Next Aerospace 스타일 (딥 네이비) */
  --color-primary: #1B2141;  
  --color-primary-dark: #111833;
  --color-primary-light: #F0F1F5;
  --color-accent: #2563EB;   
  --color-accent-hover: #1D4ED8;
  --color-success: #10b981;  
  --color-danger: #e11d48;   
  
  --bg-app: #F5F5F7;         
  --bg-card: #ffffff;        
  --bg-input: #ffffff;
  
  --text-main: #1B2141;      
  --text-sub: #3D4563;     
  --text-desc: #6B7280;     
  --text-muted: #9CA3AF;     
  --text-inverse: #ffffff;
  
  --border-light: #E2E4EA;

  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 16px;
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-focus: 0 0 0 3px rgba(27,33,65,0.1);
  --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.06); 
  --shadow-btn: 0 6px 20px rgba(27,33,65,0.2);
  
  --transition-base: all 0.2s ease-in-out;
}

.prediction-app-container {
  background-color: var(--bg-app);
  color: var(--text-main);
  font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
  padding: 50px 0 80px;
  line-height: 1.5;
  font-size: 15px;
  margin-bottom: 0;
}
.prediction-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px; /* 섹션 간 간격: 40px */
  padding: 0 20px;
}
.prediction-inner h1, 
.prediction-inner h2, 
.prediction-inner h3 { 
  margin: 0; color: var(--text-main); line-height: 1.3; /* 제목 줄간격 1.3 */ letter-spacing: -0.5px;
}
.prediction-inner h1 { font-size: 32px; font-weight: 700; }
.prediction-inner h2 { font-size: 22px; font-weight: 600; }
.prediction-inner h3 { font-size: 18px; font-weight: 500; }
.prediction-inner p, .prediction-inner ul, .prediction-inner ol { margin: 0; padding: 0; list-style: none; }

/* =====================================
   1. Glassmorphism Hero Banner
===================================== */
.prediction-glass-banner {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background: linear-gradient(135deg, #0F1629 0%, #1B2141 50%, #2A3160 100%);
  padding: 60px 0;
  display: flex;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

/* 은은한 빛 효과 */
.prediction-glass-banner::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(circle at 15% 40%, rgba(56, 189, 248, 0.08), transparent 35%),
    radial-gradient(circle at 85% 60%, rgba(139, 92, 246, 0.06), transparent 35%);
  pointer-events: none;
  z-index: 1;
}

/* HUD 그리드 + 데이터 라인 */
.prediction-glass-banner::after {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(170deg, transparent 40%, rgba(160,170,210,0.08) 40.5%, rgba(160,170,210,0.08) 41%, transparent 41.5%),
    linear-gradient(165deg, transparent 55%, rgba(255,255,255,0.04) 55.5%, rgba(255,255,255,0.04) 56%, transparent 56.5%);
  background-size: 60px 60px, 60px 60px, 100% 100%, 100% 100%;
  pointer-events: none;
  z-index: 1;
}

/* 글래스 레이어 (inner) */
.glass-banner-inner {
  max-width: 1000px;
  width: 100%;
  padding: 36px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 3;
  background: rgba(25, 30, 50, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.glass-banner-text {
  position: relative;
  z-index: 2;
  flex: 1;
}
.glass-banner-subtitle {
  color: #38BDF8;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.glass-banner-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-inverse);
  margin-bottom: 0;
  line-height: 1.35;
  letter-spacing: -0.5px;
}

.glass-banner-stats {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 280px;
}

/* Stat 카드 글래스모피즘 */
.glass-stat-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 4px 16px rgba(0,0,0,0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.glass-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 8px 28px rgba(0,0,0,0.18);
}
.glass-stat-card.highlight {
  background: rgba(27, 33, 65, 0.6);
  border: 1px solid rgba(56, 189, 248, 0.15);
}
.glass-stat-label { font-size: 15px; color: rgba(255,255,255,0.75); font-weight: 500; }
.glass-stat-num { font-size: 1.8rem; font-weight: 800; color: var(--text-inverse); }

/* 파티클 애니메이션 */
@keyframes floatParticle {
  0%, 100% { transform: translateY(0px) translateX(0px); opacity: 0.06; }
  50% { transform: translateY(-15px) translateX(5px); opacity: 0.18; }
}
@keyframes floatParticle2 {
  0%, 100% { transform: translateY(0px) translateX(0px); opacity: 0.04; }
  50% { transform: translateY(-10px) translateX(-8px); opacity: 0.12; }
}
.prediction-glass-banner .hero-particle {
  position: absolute;
  width: 3px; height: 3px;
  background: rgba(255,255,255,0.25);
  border-radius: 50%;
  z-index: 2;
  pointer-events: none;
}
.prediction-glass-banner .hero-particle:nth-child(1) { top: 20%; left: 10%; animation: floatParticle 4s ease-in-out infinite; }
.prediction-glass-banner .hero-particle:nth-child(2) { top: 60%; left: 25%; animation: floatParticle2 5s ease-in-out infinite 0.5s; }
.prediction-glass-banner .hero-particle:nth-child(3) { top: 30%; left: 55%; animation: floatParticle 6s ease-in-out infinite 1s; }
.prediction-glass-banner .hero-particle:nth-child(4) { top: 70%; left: 75%; animation: floatParticle2 4.5s ease-in-out infinite 0.3s; }
.prediction-glass-banner .hero-particle:nth-child(5) { top: 15%; left: 85%; animation: floatParticle 5.5s ease-in-out infinite 1.5s; }
.prediction-glass-banner .hero-particle:nth-child(6) { top: 80%; left: 45%; animation: floatParticle2 7s ease-in-out infinite 0.8s; }
.prediction-glass-banner .hero-particle:nth-child(7) { top: 45%; left: 90%; animation: floatParticle 3.5s ease-in-out infinite 2s; }
.prediction-glass-banner .hero-particle:nth-child(8) { top: 50%; left: 5%; animation: floatParticle2 6s ease-in-out infinite 1.2s; }

/* =====================================
   2. Cards & Forms
===================================== */
.predict-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 40px;
  border: none;
}
.predict-card-header { margin-bottom: 16px; } /* 카드 내부 요소 간격 16px 베이스 */
.predict-card-title {
  font-size: 22px; /* H2 크기 일치 */
  font-weight: 600;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-grid {
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.form-row {
  display: flex;
  border-bottom: 1px solid var(--border-light);
  align-items: center; /* 라벨과 인풋 박스를 세로 중앙 정렬 */
  padding: 24px 0; /* 여백 분리 */
}
.form-row:last-child { border-bottom: none; }
.form-label-area {
  width: 170px;
  background-color: transparent; /* 배경색 제거로 깔끔하게 */
  padding: 0 20px;
  font-weight: 700;
  font-size: 16px;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.form-label-desc {
  font-size: 13px; color: var(--text-desc); font-weight: 400; margin-top: 4px;
}
.form-input-area {
  flex: 1; padding: 0 20px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; /* 라벨/인풋 6px 간격 지향 */
}

/* 스마트 인풋 통일 UI */
.input-smart {
  box-sizing: border-box !important;
  height: 48px !important; 
  border-radius: 10px !important;
  border: 1.5px solid var(--border-light) !important;
  padding: 0 16px !important;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-main);
  background-color: var(--bg-card) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.input-smart:hover {
  border-color: #93A3B8;
}
.input-smart:focus {
  outline: none; 
  border: 2px solid var(--color-primary);
  box-shadow: 0 0 0 4px rgba(27,33,65,0.10);
}
.input-smart::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}
.input-smart.error {
  border: 2px solid var(--color-danger);
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.1);
}

/* 수강정보 버튼형 탭 UI (입력칸과 통일) */
.course-tab-group { display: flex; flex-wrap: wrap; gap: 10px; }
.course-tab-input { display: none; }
.course-tab-label {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 20px; 
  background-color: var(--bg-card);
  color: var(--text-sub); 
  border-radius: 12px; 
  font-weight: 500; 
  font-size: 16px;
  cursor: pointer; 
  transition: all 0.2s ease; 
  border: 1.5px solid var(--border-light);
}
.course-tab-label:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background-color: rgba(27, 33, 65, 0.04);
}
.course-tab-input:checked + .course-tab-label {
  background-color: var(--color-primary);
  color: #FFFFFF;
  border-color: var(--color-primary);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(27, 33, 65, 0.2);
}

/* 정답 간편입력 UI (스마트 텍스트에리어) */
.input-smart-answer {
  width: 100%;
  background-color: var(--bg-input);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 25px;
  font-family: 'Courier New', Courier, monospace; 
  font-size: 1.8rem; /* 더 크고 시원하게 */
  font-weight: 800;  /* 더 굵게 */
  letter-spacing: 14px; /* 숫자가 딱딱 떨어지게 넓은 자간 설정 */
  color: var(--color-primary);
  line-height: 1.6;
  resize: vertical;
  min-height: 120px;
  transition: var(--transition-base);
}
.input-smart-answer:focus {
  outline: none; border-color: var(--color-accent); background-color: var(--bg-card);
  box-shadow: 0 0 0 4px var(--color-primary-light);
}
.input-smart-answer::placeholder {
  font-size: 1.1rem; letter-spacing: normal; font-weight: 500; color: var(--text-muted); font-family: 'Pretendard', sans-serif;
}

/* 탭 네비게이션 (시맨틱 개편 - 토스/배민 스타일 모던 탭) */
.prediction-tab-nav {
  display: flex;
  margin-left: -40px;
  margin-right: -40px;
  border-bottom: 1px solid var(--border-light); /* 전체 탭 밑바닥을 받쳐주는 얇은 선 */
  background-color: var(--bg-app); /* 비활성화 탭들의 기본 배경색 (회색조) */
}
.tab-item {
  flex: 1;
  padding: 22px 0;
  background: transparent;
  border: none;
  font-size: 19px;
  font-weight: 500; /* 비활성 상태 폰트 굵기 완화 */
  color: var(--text-sub);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  /* 높이 튐 방지: border-bottom 대신 가상요소(::after) 사용 */
}
.tab-item:hover {
  color: var(--text-main);
}
.tab-item.active {
  font-weight: 800;
  color: var(--color-primary);
  background: var(--bg-card); /* 선택된 탭은 본문(흰색 폼)과 완벽하게 이어짐 */
}

/* 탭 텍스트 기준이 아닌 버튼 꽉차게 하단에 두꺼운 포인트 라인 배치는 ::after 로 처리 */
.tab-item.active::after {
  content: '';
  position: absolute;
  bottom: -1px; /* 부모 nav의 1px border-bottom을 완벽히 덮어서 합선 차단 */
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--color-primary);
  z-index: 2;
}

.tab-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(0,0,0,0.05); /* 기본 뱃지도 은은하게 */
  padding: 3px 10px;
  border-radius: 20px;
  margin-left: 8px;
  vertical-align: middle;
}
.tab-item.active .tab-badge {
  color: var(--color-primary);
  background: var(--color-primary-light);
}

/* 제출 버튼 영역 */
.predict-btn-area { margin-top: 35px; margin-bottom: 10px; }

/* 제출 버튼 명확화 */
.btn-submit-massive {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1B2141, #2A3160);
  color: #fff;
  border: none;
  border-radius: 12px;
  height: 48px;
  width: 100%;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-base);
  margin-top: 10px;
}
.btn-submit-massive:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(27,33,65,0.3);
  background: linear-gradient(135deg, #2A3160, #3D4A80);
}
.btn-secondary {
  background-color: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  background-color: var(--color-primary-light);
}

/* =====================================
   개인정보 수집 동의 박스 전용 프리미엄 디자인
===================================== */
.privacy-consent-box {
  background-color: var(--bg-app);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 24px;
  margin-top: 30px;
  margin-bottom: 20px;
  box-shadow: inset 0 1px 4px rgba(0,0,0,0.015);
}
.privacy-consent-box strong.privacy-title {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
}
.privacy-consent-box .privacy-text {
  font-size: 15px;      /* 기본 본문 크기로 상향 */
  font-weight: 400;     /* 가독성을 고려한 웨이트 */
  line-height: 1.6;
  color: var(--text-sub);
  margin-bottom: 20px;  /* 하단 체크박스와의 여백 20px 확보 */
}
.privacy-consent-box .privacy-action {
  display: flex;
  align-items: center;
  border-top: 1px dashed rgba(220, 230, 245, 0.8);
  padding-top: 18px;
}
.privacy-consent-box .privacy-action input[type="checkbox"] {
  -webkit-appearance: checkbox;
  appearance: checkbox;
  display: inline-block !important;   /* common.css의 display:none 오버라이드 */
  visibility: visible !important;     /* common.css의 visibility:hidden 오버라이드 */
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  margin: 0 12px 0 0;
  cursor: pointer;
  accent-color: var(--color-primary);
  flex-shrink: 0;
}
.privacy-consent-box .privacy-action label {
  font-weight: 600;     /* 너무 두꺼운 700대신 600으로 고급스럽게 */
  color: var(--text-main);
  font-size: 16px;
  cursor: pointer;
}
/* =====================================
   3. 테이블 & 통계 표 (가로선 위주)
===================================== */
.data-table-clean {
  width: 100%; border-collapse: collapse; text-align: center; font-size: 1.05rem; margin-top: 10px;
}
.data-table-clean th {
  background-color: var(--bg-card); padding: 18px 10px; font-weight: 700; color: var(--text-sub);
  border-top: 2px solid var(--text-main); border-bottom: 2px solid var(--text-main); white-space: nowrap;
}
.data-table-clean td {
  padding: 16px 10px; border-bottom: 1px solid var(--border-light); color: var(--text-main); font-weight: 500;
}
.data-table-clean tr:hover td { background-color: var(--bg-input); }

/* 약점 오답률 카드 */
.weakness-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px;
}
.weakness-card {
  background-color: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05); /* 부드러운 그림자! */
  overflow: hidden; transition: transform 0.2s;
}
.weakness-card:hover { transform: translateY(-3px); }
.weakness-card-header {
  padding: 20px 24px; display: flex; justify-content: space-between; align-items: center;
  background-color: var(--bg-input); border-bottom: 2px solid var(--color-primary);
}
.weakness-title { font-weight: 800; font-size: 1.2rem; color: var(--text-main); }
.weakness-avg { font-size: 0.95rem; color: var(--text-sub); font-weight: 600; }
.weakness-list { padding: 15px 24px; list-style: none; margin:0; }
.weakness-list li {
  display: flex; justify-content: space-between; align-items: center; padding: 14px 0;
  border-bottom: 1px dashed var(--border-light); font-size: 1.05rem;
}
.weakness-list li:last-child { border-bottom: none; padding-bottom: 5px; }
.wl-rank { font-weight: 800; width: 26px; color: var(--text-muted); font-size: 1.1rem; font-style: italic; }
.wl-num { font-weight: 600; flex: 1; text-align: center; color: var(--text-main);}
.wl-rate { font-weight: 800; color: var(--color-danger); } /* 세련된 톤타운 Danger Color */

/* =====================================
   4. 댓글 영역
===================================== */
.comment-toolbar {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px;
}
.comment-toolbar-time { font-size: 15px; color: var(--text-muted); margin-right: 10px; }
.btn-refresh {
  background: var(--bg-card); border: 1px solid var(--border-light); padding: 8px 14px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600; cursor: pointer; color: var(--text-sub); transition: var(--transition-base);
}
.btn-refresh:hover { background: var(--bg-input); color: var(--text-main); }

.comment-input-area {
  display: flex; gap: 15px; margin-bottom: 30px; border-radius: var(--radius-md); padding: 20px;
  background-color: var(--color-primary-light); /* 입력창 배경 분리 설계 */
  border: 1px solid var(--border-focus);
}
.comment-textarea {
  flex: 1; border: 1px solid var(--border-light); border-radius: var(--radius-sm); padding: 16px;
  resize: none; font-family: inherit; font-size: 16px; color: var(--text-main); background-color: var(--bg-card);
  transition: var(--transition-base); box-shadow: inset 0 1px 3px rgba(0,0,0,0.03); min-height: 80px;
}
.comment-textarea:focus { outline: none; border-color: var(--color-accent); }
.comment-actions { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; min-width: 90px; }
.comment-btn {
  background: var(--color-accent); color: var(--text-inverse); border: none; padding: 12px 24px;
  border-radius: var(--radius-sm); font-weight: 700; cursor: pointer; display:block; width: 100%; transition: background-color 0.2s;
}
.comment-btn:hover { background-color: var(--color-accent-hover); box-shadow: var(--shadow-sm); }
.char-count { font-size: 14px; color: var(--text-sub); font-weight: 500;}

/* 댓글 목록 */
.comment-thread-list {
  display: flex; flex-direction: column; gap: 16px; max-height: 400px; overflow-y: auto; padding-right: 12px;
}
.comment-thread-list::-webkit-scrollbar { width: 6px; }
.comment-thread-list::-webkit-scrollbar-track { background: transparent; }
.comment-thread-list::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

.thread-item {
  background: var(--bg-input); border-radius: var(--radius-md); padding: 22px; border: 1px solid var(--border-light);
}
.thread-item.admin-notice {
  background-color: #f0f5ff; border-color: #c7d2fe;
}
.thread-text { font-size: 16px; margin-bottom: 12px; color: var(--text-main); line-height: 1.5; }
.thread-info { font-size: 15px; color: var(--text-muted); display: flex; gap: 12px; align-items: center; }
.thread-author { font-weight: 700; color: var(--color-accent); } /* 닉네임 메인 컬러 강조 */

/* OMR 그리드 스타일 */
.omr-cell {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 8px 4px; border: 1px solid var(--border-light); cursor: pointer;
  transition: all 0.1s; user-select: none; min-height: 58px;
}
.omr-cell:hover { background: var(--color-primary-light); }
.omr-cell.active { background: #EFF6FF; border-color: var(--color-accent); box-shadow: inset 0 0 0 2px var(--color-accent); z-index: 1; }
.omr-cell.filled { background: #F0FDF4; }
.omr-cell.filled .omr-val { color: #16a34a; }
.omr-num { font-size: 11px; color: var(--text-muted); font-weight: 600; margin-bottom: 2px; }
.omr-val { font-size: 18px; font-weight: 800; color: var(--color-primary); min-height: 22px; line-height: 22px; }

/* =====================================
   5. Mobile Responsive
===================================== */
@media (max-width: 768px) {
  /* 히어로 배너 */
  .prediction-glass-banner {
    padding: 40px 0;
  }
  .glass-banner-inner {
    flex-direction: column;
    text-align: center;
    gap: 24px;
    padding: 28px 20px;
    max-width: 100%;
    margin: 0 16px;
    border-radius: 16px;
  }
  .glass-banner-title {
    font-size: 24px;
  }
  .glass-banner-subtitle {
    font-size: 13px;
    letter-spacing: 1px;
  }
  .glass-banner-stats {
    width: 100%;
    flex-direction: row;
    gap: 10px;
  }
  .glass-stat-card {
    flex: 1;
    padding: 14px 16px;
    border-radius: 12px;
  }
  .glass-stat-num {
    font-size: 1.4rem;
  }

  /* 앱 컨테이너 */
  .prediction-app-container {
    padding: 30px 0 60px;
  }
  .prediction-inner {
    padding: 0 12px;
    gap: 24px;
  }

  /* 카드 */
  .predict-card {
    padding: 0 16px 24px;
    border-radius: 16px;
  }

  /* 탭 */
  .prediction-tab-nav {
    margin-left: -16px;
    margin-right: -16px;
  }
  .tab-item {
    font-size: 15px;
    padding: 16px 0;
  }
  .tab-badge {
    font-size: 10px;
    padding: 2px 7px;
    margin-left: 4px;
  }

  /* 폼 */
  .form-grid {
    border-top: none;
  }
  .form-row {
    flex-direction: column;
    padding: 0;
  }
  .form-label-area {
    width: 100%;
    min-width: unset;
    border-right: none;
    border-bottom: none;
    padding: 10px 16px 4px;
    font-size: 14px;
  }
  .form-input-area {
    padding: 4px 16px 10px;
    width: 100%;
  }
  .input-smart {
    max-width: 100% !important;
    width: 100% !important;
    font-size: 14px !important;
    height: 42px !important;
  }

  /* 응시분야/지역 flex 세로 전환 */
  .form-input-area[style*="display:flex"] {
    flex-direction: column !important;
  }

  /* 수강정보 탭 */
  .course-tab-group {
    flex-wrap: wrap;
  }
  .course-tab-label {
    font-size: 13px;
    padding: 10px 16px;
  }

  /* OMR 그리드 */
  #omr-grid {
    grid-template-columns: repeat(5, 1fr) !important;
  }
  .omr-cell { min-height: 50px; }
  .omr-val { font-size: 16px; }

  /* 개인정보 동의 */
  .privacy-consent-box {
    padding: 16px;
    border-radius: 12px;
    margin-top: 20px;
  }
  .privacy-consent-box strong.privacy-title {
    font-size: 15px;
  }
  .privacy-consent-box .privacy-text {
    font-size: 13px;
  }
  .privacy-consent-box .privacy-action label {
    font-size: 14px;
  }

  /* 제출 버튼 */
  .btn-submit-massive {
    font-size: 15px;
    padding: 14px;
    border-radius: 12px;
  }

  /* 댓글 빈 상태 / 기타 텍스트 */
  .comment-thread-list {
    font-size: 14px;
  }
  .predict-card [style*="text-align:center"] {
    font-size: 14px !important;
  }

  /* 2차 전용: 약점 분석 그리드 */
  .weakness-grid {
    grid-template-columns: 1fr;
  }

  /* 테이블 */
  .table-wrapper {
    overflow-x: auto;
  }

  /* 댓글 섹션 */
  .comment-input-area {
    flex-direction: column;
    padding: 14px;
    gap: 10px;
  }
  .comment-textarea {
    min-height: 60px;
    font-size: 14px;
    padding: 12px;
  }
  .comment-actions {
    flex-direction: row;
    width: 100%;
    min-width: unset;
    align-items: center;
  }
  .comment-btn {
    width: auto;
    flex: 1;
    padding: 10px 16px;
  }
  .char-count {
    display: none;
  }
  .comment-toolbar {
    padding-top: 16px;
  }
  .thread-item {
    padding: 16px;
  }
  .thread-text {
    font-size: 15px;
  }
  .thread-info {
    font-size: 13px;
    flex-wrap: wrap;
  }

  /* 섹션 제목 */
  .prediction-inner h1 {
    font-size: 24px;
  }
  .prediction-inner h2 {
    font-size: 18px;
  }
}

/* 초소형 화면 (480px 이하) */
@media (max-width: 480px) {
  .glass-banner-inner {
    padding: 24px 16px;
  }
  .glass-banner-title {
    font-size: 20px;
  }
  .glass-banner-stats {
    flex-direction: column;
  }
  .tab-item {
    font-size: 14px;
    padding: 14px 0;
  }
  .tab-badge {
    display: block;
    margin: 4px auto 0;
  }
  .predict-card {
    padding: 0 12px 20px;
    border-radius: 12px;
  }
  .prediction-tab-nav {
    margin-left: -12px;
    margin-right: -12px;
  }
  .form-label-area {
    padding: 10px 12px;
  }
  .form-input-area {
    padding: 10px 12px;
  }
}
