/* ═══════════════════════════════════════════════════
   AI MAKERS – Main Stylesheet
   양영중학교 인공지능 메이커스 동아리 신청 페이지
═══════════════════════════════════════════════════ */

/* ── CSS Variables ── */
:root {
  --primary: #00d4ff;
  --primary-dark: #0099cc;
  --accent: #7c3aed;
  --accent-light: #a855f7;
  --bg-dark: #050b18;
  --bg-card: rgba(10, 20, 40, 0.85);
  --bg-input: rgba(0, 212, 255, 0.05);
  --border: rgba(0, 212, 255, 0.2);
  --border-hover: rgba(0, 212, 255, 0.6);
  --text-main: #f0f8ff;
  --text-sub: #b8d8f0;
  --text-muted: #7aaec8;
  --success: #00ff88;
  --error: #ff4566;
  --font-main: 'Noto Sans KR', sans-serif;
  --font-tech: 'Orbitron', sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 40px rgba(0, 212, 255, 0.15);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.5);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  background: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: #fff; }

/* ── Utility ── */
.accent-gradient {
  background: linear-gradient(90deg, var(--primary), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}
.mt-20 { margin-top: 20px; }

/* ══════════════════════════════
   HEADER
══════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 40px;
  transition: background 0.4s, backdrop-filter 0.4s;
}
.site-header.scrolled {
  background: rgba(5, 11, 24, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-tech);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #fff;
}
.logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
  box-shadow: 0 0 16px rgba(0,212,255,0.4);
}
.logo-accent { color: var(--primary); }
.header-nav { display: flex; gap: 28px; }
.header-nav a {
  color: var(--text-sub);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 1px;
  transition: color 0.2s;
}
.header-nav a:hover { color: var(--primary); }
.header-nav .nav-admin {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0,212,255,0.1);
  border: 1px solid rgba(0,212,255,0.25);
  border-radius: 999px;
  padding: 5px 14px;
  color: var(--primary) !important;
  font-size: 0.82rem;
  transition: background 0.2s, box-shadow 0.2s !important;
}
.header-nav .nav-admin:hover {
  background: rgba(0,212,255,0.2) !important;
  box-shadow: 0 0 14px rgba(0,212,255,0.25);
  color: #fff !important;
}

/* ══════════════════════════════
   HERO SECTION
══════════════════════════════ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* 배경 이미지 (스크롤 패럴랙스) */
.hero-bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg {
  width: 100%; height: 120%;
  background: url('../images/hero-bg.webp') center center / cover no-repeat;
  transform: translateY(0);
  will-change: transform;
  transition: transform 0.05s linear;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5,11,24,0.3) 0%,
    rgba(5,11,24,0.55) 50%,
    rgba(5,11,24,0.95) 100%
  );
}

/* 파티클 캔버스 */
#particle-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* 스캔라인 */
.scanlines {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 212, 255, 0.015) 2px,
    rgba(0, 212, 255, 0.015) 4px
  );
  animation: scanMove 8s linear infinite;
}
@keyframes scanMove {
  0%   { background-position: 0 0; }
  100% { background-position: 0 100px; }
}

/* 히어로 콘텐츠 */
.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 24px;
  max-width: 800px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 999px;
  padding: 6px 18px;
  font-family: var(--font-tech);
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 24px;
}
.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.4); opacity: 0.6; }
}

.hero-title {
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
}
.title-line {
  display: block;
  font-size: clamp(2.6rem, 7vw, 5rem);
  letter-spacing: -1px;
}
.title-line.sub {
  font-size: clamp(1.3rem, 3.5vw, 2rem);
  font-weight: 600;
  color: var(--text-sub);
  letter-spacing: 4px;
  margin-top: 8px;
}

.hero-desc {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: #c8e4f8;
  margin-bottom: 40px;
  line-height: 1.9;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 36px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 30px rgba(0,212,255,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 50px rgba(0,212,255,0.6);
  color: #fff;
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--text-main);
  font-weight: 500;
  font-size: 1rem;
  padding: 13px 32px;
  border-radius: 999px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  text-decoration: none;
}
.btn-ghost:hover {
  border-color: var(--primary);
  background: rgba(0,212,255,0.08);
  color: var(--primary);
}

/* 스크롤 인디케이터 */
.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-tech);
  font-size: 0.6rem;
  letter-spacing: 3px;
  color: var(--text-muted);
  animation: fadeInDown 1s 1.5s both;
}
.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--primary), transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 1; transform: scaleY(0.7); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateX(-50%) translateY(-16px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ══════════════════════════════
   ABOUT SECTION
══════════════════════════════ */
.about {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}
.about-bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.about-bg {
  width: 100%; height: 100%;
  background: url('../images/circuit-bg.webp') center center / cover no-repeat;
  opacity: 0.12;
}
.about-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg-dark) 0%, transparent 30%, transparent 70%, var(--bg-dark) 100%);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-tech);
  font-size: 0.7rem;
  letter-spacing: 3px;
  color: var(--primary);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 60px;
}
.section-sub {
  color: var(--text-sub);
  margin-top: -40px;
  margin-bottom: 48px;
  font-size: 1rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  backdrop-filter: blur(12px);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0,212,255,0.5);
  box-shadow: 0 12px 40px rgba(0,212,255,0.15);
}
.feature-icon {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, rgba(0,212,255,0.15), rgba(124,58,237,0.15));
  border: 1px solid rgba(0,212,255,0.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
}
.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}
.feature-card p {
  font-size: 0.92rem;
  color: #c0ddf0;
  line-height: 1.7;
}

/* ══════════════════════════════
   APPLY SECTION
══════════════════════════════ */
.apply-section {
  padding: 100px 0 140px;
  position: relative;
}
.apply-section::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(ellipse, rgba(124,58,237,0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Form ── */
.apply-form {
  background: rgba(8, 18, 36, 0.9);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

/* 섹션 블록 */
.form-section-block {
  padding: 40px 48px;
  border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}
.form-section-block:last-child { border-bottom: none; }

.form-section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.form-section-num {
  font-family: var(--font-tech);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(0,212,255,0.1);
  border: 1px solid rgba(0,212,255,0.25);
  border-radius: 6px;
  padding: 4px 10px;
  letter-spacing: 2px;
  white-space: nowrap;
}
.form-section-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

/* ── Label & Input ── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ddeeff;
  margin-bottom: 10px;
}
.form-label.required::after {
  content: ' *';
  color: var(--primary);
}
.char-guide {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-wrap input {
  flex: 1;
}
.input-unit {
  position: absolute;
  right: 14px;
  color: var(--text-muted);
  font-size: 0.85rem;
  pointer-events: none;
}

input[type="text"],
input[type="number"],
textarea {
  width: 100%;
  background: rgba(0, 212, 255, 0.07);
  border: 1px solid rgba(0,212,255,0.3);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: #f0f8ff;
  font-family: var(--font-main);
  font-size: 0.95rem;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
  outline: none;
  -moz-appearance: textfield;
}
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; }
input[type="text"]:focus,
input[type="number"]:focus,
textarea:focus {
  border-color: var(--primary);
  background: rgba(0,212,255,0.12);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.15);
}
input.error, textarea.error {
  border-color: var(--error) !important;
  box-shadow: 0 0 0 3px rgba(255,69,102,0.12) !important;
}
textarea { resize: vertical; min-height: 90px; }
input::placeholder, textarea::placeholder { color: #6a9ab8; }

/* ── Select ── */
.select-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.select-wrap select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(0,212,255,0.07);
  border: 1px solid rgba(0,212,255,0.3);
  border-radius: var(--radius-sm);
  padding: 12px 40px 12px 16px;
  color: #f0f8ff;
  font-family: var(--font-main);
  font-size: 0.95rem;
  cursor: pointer;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.select-wrap select:focus {
  border-color: var(--primary);
  background: rgba(0,212,255,0.12);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.15);
}
.select-wrap select option {
  background: #0d1f3c;
  color: #f0f8ff;
}
.select-wrap select.error {
  border-color: var(--error) !important;
  box-shadow: 0 0 0 3px rgba(255,69,102,0.12) !important;
}
.select-arrow {
  position: absolute;
  right: 14px;
  color: var(--primary);
  font-size: 0.75rem;
  pointer-events: none;
  transition: transform 0.2s;
}
.select-wrap:focus-within .select-arrow {
  transform: rotate(180deg);
}

.char-counter {
  text-align: right;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.field-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--primary);
  margin-top: 8px;
  opacity: 0.7;
}

/* ── Form Row ── */
.form-row.three-col {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: 16px;
}

/* ── Grade Selector ── */
.grade-selector {
  display: flex;
  gap: 16px;
}
.grade-option { cursor: pointer; }
.grade-option input[type="radio"] { display: none; }
.grade-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 110px; height: 110px;
  background: rgba(0,212,255,0.06);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.25s;
  user-select: none;
}
.grade-card:hover {
  border-color: rgba(0,212,255,0.5);
  background: rgba(0,212,255,0.1);
  transform: translateY(-3px);
}
.grade-option input[type="radio"]:checked + .grade-card {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(0,212,255,0.2), rgba(124,58,237,0.2));
  box-shadow: 0 0 24px rgba(0,212,255,0.3), inset 0 0 20px rgba(0,212,255,0.05);
}
.grade-num {
  font-family: var(--font-tech);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}
.grade-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-sub);
  margin-top: 4px;
}
.grade-option input:checked + .grade-card .grade-num { color: #fff; }
.grade-option input:checked + .grade-card .grade-text { color: var(--primary); }

/* ── Checkbox Grid ── */
.form-hint-text {
  font-size: 0.88rem;
  color: #b8d8f0;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.optional-tag {
  display: inline-block;
  background: rgba(0,212,255,0.1);
  border: 1px solid rgba(0,212,255,0.25);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.75rem;
  color: var(--primary);
}
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}
.check-item {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 12px 16px;
  background: rgba(0,212,255,0.04);
  border: 1px solid rgba(0,212,255,0.1);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  user-select: none;
}
.check-item:hover {
  background: rgba(0,212,255,0.09);
  border-color: rgba(0,212,255,0.35);
}
.check-item input[type="checkbox"] { display: none; }
.check-box {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border: 2px solid var(--border);
  border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem;
  color: transparent;
  transition: all 0.2s;
  background: transparent;
}
.check-item input:checked ~ .check-box {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 10px rgba(0,212,255,0.4);
}
.check-item input:checked ~ .check-content { color: #fff; }
.check-item input:checked { }
.check-item:has(input:checked) {
  background: rgba(0,212,255,0.12);
  border-color: rgba(0,212,255,0.45);
}
.check-content {
  font-size: 0.88rem;
  color: #cce4f5;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}
.check-icon-color { font-size: 0.85rem; }
.c1 { color: #00d4ff; }
.c2 { color: #ff6b9d; }
.c3 { color: #ffd166; }
.c4 { color: #06d6a0; }
.c5 { color: #a855f7; }
.c6 { color: #f59e0b; }
.c7 { color: #94a3b8; }

/* 기타 */
.etc-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.etc-input-wrap {
  display: none;
  padding-left: 34px;
}
.etc-input-wrap.show { display: block; }
.etc-input-wrap input {
  background: rgba(0,212,255,0.05);
  border: 1px dashed var(--border);
}

/* 힌트 별 */
.hint-star { color: #ffd166; font-size: 0.85rem; }

/* ── Pledge ── */
.pledge-block { background: rgba(124,58,237,0.04); }
.pledge-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pledge-item {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  padding: 18px 20px;
  background: rgba(124,58,237,0.06);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: var(--radius-sm);
  transition: all 0.25s;
  user-select: none;
}
.pledge-item:hover {
  background: rgba(124,58,237,0.12);
  border-color: rgba(124,58,237,0.4);
}
.pledge-item input[type="checkbox"] { display: none; }
.pledge-box {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border: 2px solid rgba(124,58,237,0.4);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  color: transparent;
  transition: all 0.25s;
}
.pledge-item input:checked ~ .pledge-box {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 14px rgba(124,58,237,0.5);
}
.pledge-item:has(input:checked) {
  background: rgba(124,58,237,0.15);
  border-color: rgba(168,85,247,0.5);
}
.pledge-text {
  font-size: 0.95rem;
  color: #cce4f5;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.2s;
}
.pledge-item input:checked ~ .pledge-text { color: #fff; }
.pledge-icon {
  color: var(--accent-light);
  font-size: 1rem;
}

/* ── Submit ── */
.submit-wrap {
  padding: 40px 48px;
  text-align: center;
  background: rgba(0,212,255,0.02);
}
.submit-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.submit-hint i { color: var(--primary); opacity: 0.7; }
.btn-submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--accent-light));
  border: none;
  border-radius: 999px;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s;
  min-width: 240px;
}
.btn-submit:hover { transform: translateY(-3px); }
.btn-submit:hover .btn-glow { opacity: 1; }
.btn-submit-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 52px;
  font-family: var(--font-main);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}
.btn-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.25), transparent);
  opacity: 0;
  transition: opacity 0.25s;
}
.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ══════════════════════════════
   PREVIEW MODAL
══════════════════════════════ */
.preview-box {
  background: rgba(6, 16, 36, 0.99);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 24px;
  width: 96%;
  max-width: 620px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 80px rgba(0,212,255,0.18), 0 0 160px rgba(124,58,237,0.1);
  animation: modalIn 0.38s cubic-bezier(0.34,1.56,0.64,1);
  overflow: hidden;
}

/* 헤더 */
.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 20px;
  border-bottom: 1px solid rgba(0,212,255,0.1);
  flex-shrink: 0;
}
.preview-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.preview-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, rgba(0,212,255,0.2), rgba(124,58,237,0.2));
  border: 1px solid rgba(0,212,255,0.3);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: var(--primary);
  flex-shrink: 0;
}
.preview-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 2px;
}
.preview-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.preview-close {
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.06);
  border: none; border-radius: 50%;
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}
.preview-close:hover { background: rgba(255,69,102,0.2); color: var(--error); }

/* 스크롤 본문 */
.preview-body {
  overflow-y: auto;
  padding: 20px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.preview-body::-webkit-scrollbar { width: 5px; }
.preview-body::-webkit-scrollbar-track { background: transparent; }
.preview-body::-webkit-scrollbar-thumb { background: rgba(0,212,255,0.2); border-radius: 3px; }

/* 각 섹션 */
.pv-section {
  background: rgba(0,212,255,0.03);
  border: 1px solid rgba(0,212,255,0.09);
  border-radius: 14px;
  padding: 16px 18px;
  transition: border-color 0.2s;
}
.pv-section:hover { border-color: rgba(0,212,255,0.2); }

.pv-section-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pv-num {
  font-family: var(--font-tech);
  background: rgba(0,212,255,0.12);
  border: 1px solid rgba(0,212,255,0.25);
  border-radius: 5px;
  padding: 2px 7px;
  font-size: 0.68rem;
  letter-spacing: 1.5px;
}

/* 기본정보 그리드 */
.pv-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.pv-info-item {
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(0,212,255,0.12);
  border-radius: 10px;
  padding: 10px 12px;
  text-align: center;
}
.pv-info-key {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.pv-info-val {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
}

/* 텍스트 박스 */
.pv-text-box {
  font-size: 0.9rem;
  color: #cce4f5;
  line-height: 1.75;
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(0,212,255,0.1);
  border-radius: 10px;
  padding: 12px 14px;
  white-space: pre-wrap;
  word-break: break-all;
}
.pv-text-box.empty { color: var(--text-muted); font-style: italic; }

/* 경험 태그 */
.pv-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 32px;
  align-items: center;
}
.pv-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0,212,255,0.1);
  border: 1px solid rgba(0,212,255,0.25);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
}
.pv-tag-none {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

/* 기억에 남는 활동 */
.pv-memorable-wrap { margin-top: 12px; }
.pv-memorable-label {
  font-size: 0.75rem;
  color: #ffd166;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.pv-memorable-label i { font-size: 0.7rem; }

/* 서약 */
.pv-pledge-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pv-pledge-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: #cce4f5;
  background: rgba(124,58,237,0.08);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 10px;
  padding: 11px 14px;
}
.pv-pledge-item i { color: #a855f7; font-size: 1rem; flex-shrink: 0; }
.pv-pledge-item.unchecked {
  color: var(--text-muted);
  background: rgba(255,69,102,0.05);
  border-color: rgba(255,69,102,0.15);
}
.pv-pledge-item.unchecked i { color: var(--error); }

/* 푸터 버튼 */
.preview-footer {
  display: flex;
  gap: 12px;
  padding: 18px 28px 22px;
  border-top: 1px solid rgba(0,212,255,0.1);
  flex-shrink: 0;
}
.pv-btn-edit {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  border: 1px solid rgba(0,212,255,0.3);
  border-radius: 999px;
  color: var(--text-sub);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-main);
  padding: 14px 20px;
  cursor: pointer;
  transition: all 0.2s;
}
.pv-btn-edit:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(0,212,255,0.06);
}
.pv-btn-submit {
  flex: 2;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent-light));
  border: none;
  border-radius: 999px;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-main);
  padding: 14px 28px;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 24px rgba(0,212,255,0.3);
}
.pv-btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(0,212,255,0.5);
}
.pv-btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.pv-btn-submit .btn-glow {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0; transition: opacity 0.2s;
}
.pv-btn-submit:hover .btn-glow { opacity: 1; }

/* 모바일 */
@media (max-width: 480px) {
  .preview-box { max-height: 96vh; border-radius: 18px; }
  .preview-header { padding: 18px 18px 16px; }
  .preview-body { padding: 14px 16px; }
  .preview-footer { padding: 14px 16px 18px; gap: 10px; }
  .pv-info-grid { grid-template-columns: repeat(2, 1fr); }
  .pv-btn-edit { font-size: 0.88rem; padding: 13px 14px; }
  .pv-btn-submit { font-size: 0.92rem; padding: 13px 18px; }
}

/* ── Error / Validation ── */
.error-msg {
  display: none;
  font-size: 0.8rem;
  color: var(--error);
  margin-top: 6px;
}
.error-msg.show { display: block; }

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(5,11,24,0.88);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
}
.modal-overlay.show { display: flex; }
.modal-box {
  background: rgba(8,18,36,0.98);
  border: 1px solid rgba(0,212,255,0.3);
  border-radius: 24px;
  padding: 60px 48px 48px;
  max-width: 460px;
  width: 90%;
  text-align: center;
  box-shadow: 0 0 80px rgba(0,212,255,0.2);
  animation: modalIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes modalIn {
  from { transform: scale(0.7); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
.modal-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}
.modal-circle {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  color: #fff;
  position: relative;
  z-index: 2;
  animation: checkPop 0.5s 0.2s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes checkPop {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}
.modal-rings { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid;
  animation: ringExpand 1.5s ease-out infinite;
}
.ring.r1 { width: 80px; height: 80px; border-color: rgba(0,212,255,0.6); animation-delay: 0s; }
.ring.r2 { width: 100px; height: 100px; border-color: rgba(0,212,255,0.3); animation-delay: 0.3s; }
.ring.r3 { width: 120px; height: 120px; border-color: rgba(0,212,255,0.15); animation-delay: 0.6s; }
@keyframes ringExpand {
  0%   { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}
.modal-title {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 16px;
  background: linear-gradient(90deg, var(--primary), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.modal-desc {
  color: var(--text-sub);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 36px;
}
.btn-modal-close {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 14px 48px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  font-family: var(--font-main);
}
.btn-modal-close:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0,212,255,0.4);
}

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
.site-footer {
  text-align: center;
  padding: 48px 24px;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.4);
}
.footer-logo {
  font-family: var(--font-tech);
  font-size: 1rem;
  color: var(--primary);
  letter-spacing: 3px;
  margin-bottom: 10px;
}
.footer-school {
  font-size: 0.9rem;
  color: var(--text-sub);
  margin-bottom: 8px;
}
.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.footer-contact {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.footer-contact a {
  color: var(--text3, #7aaec8);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-contact a:hover { color: var(--primary); }

/* ══════════════════════════════
   REVEAL ANIMATIONS (Scroll)
══════════════════════════════ */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/* ══════════════════════════════
   RESPONSIVE – 모바일 우선
══════════════════════════════ */

/* ─ Tablet (768px 이하) ─ */
@media (max-width: 768px) {

  /* Header */
  .site-header { padding: 12px 16px; }
  .header-nav { gap: 10px; }
  .header-nav a { font-size: 0.8rem; letter-spacing: 0; }
  .header-nav .nav-admin { padding: 4px 10px; font-size: 0.76rem; }
  .logo-text { font-size: 0.95rem; }
  .logo-icon { width: 30px; height: 30px; font-size: 0.82rem; }

  /* Hero */
  .hero { min-height: 100svh; }
  .hero-content { padding: 0 20px; max-width: 100%; }
  .title-line { font-size: clamp(2.2rem, 10vw, 3.5rem); }
  .title-line.sub { font-size: clamp(1rem, 4vw, 1.4rem); letter-spacing: 2px; }
  .hero-desc { font-size: 0.95rem; margin-bottom: 28px; }
  .hero-badge { font-size: 0.68rem; padding: 5px 14px; }
  .scroll-indicator { bottom: 24px; }

  /* Hero CTA – 모바일에서 전체 너비 */
  .hero-cta { flex-direction: column; align-items: center; gap: 12px; }
  .btn-primary,
  .btn-ghost {
    width: 100%;
    max-width: 320px;
    justify-content: center;
    padding: 14px 24px;
    font-size: 0.95rem;
  }

  /* About */
  .about { padding: 72px 0; }
  .section-title { font-size: clamp(1.5rem, 5vw, 2.2rem); margin-bottom: 36px; }
  .feature-grid { grid-template-columns: 1fr; gap: 14px; }
  .feature-card { padding: 28px 22px; }

  /* Apply Section */
  .apply-section { padding: 72px 0 100px; }
  .container { padding: 0 16px; }

  /* Form */
  .apply-form { border-radius: 18px; }
  .form-section-block { padding: 24px 20px; }
  .submit-wrap { padding: 24px 20px; }

  /* 반/번호/이름 그리드 – 모바일: 반+번호 / 이름 */
  .form-row.three-col {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .form-row.three-col .form-group:last-child {
    grid-column: 1 / -1;
  }

  /* Grade Cards */
  .grade-selector { gap: 12px; }
  .grade-card { width: 96px; height: 96px; }
  .grade-num { font-size: 2.4rem; }
  .grade-text { font-size: 0.85rem; }

  /* Checkbox Grid */
  .checkbox-grid { grid-template-columns: 1fr; gap: 8px; }
  .check-item { padding: 13px 14px; }

  /* Pledge */
  .pledge-item { padding: 15px 16px; gap: 12px; }
  .pledge-text { font-size: 0.9rem; }

  /* Submit Button */
  .btn-submit { width: 100%; max-width: 360px; }
  .btn-submit-inner { padding: 16px 32px; font-size: 1rem; }

  /* Modal */
  .modal-box { padding: 40px 24px 32px; border-radius: 18px; }
  .modal-title { font-size: 1.7rem; }
  .modal-desc { font-size: 0.88rem; }
  .btn-modal-close { padding: 12px 36px; }

  /* Footer */
  .site-footer { padding: 36px 20px; }
}

/* ─ Mobile S (480px 이하) ─ */
@media (max-width: 480px) {

  /* Header – 로고만 + nav 간략화 */
  .site-header { padding: 10px 14px; }
  .logo-text { font-size: 0.88rem; }
  .header-nav { gap: 7px; }
  .header-nav a:not(.nav-admin) { display: none; } /* 소개/신청하기 숨기고 관리자만 */
  .header-nav .nav-admin { font-size: 0.72rem; padding: 4px 10px; }

  /* Hero */
  .title-line { font-size: clamp(1.9rem, 11vw, 2.8rem); }
  .title-line.sub { font-size: clamp(0.85rem, 4.5vw, 1.15rem); letter-spacing: 1.5px; margin-top: 6px; }
  .hero-desc { font-size: 0.88rem; line-height: 1.75; }

  /* Form – 반/번호/이름 세로 */
  .form-row.three-col { grid-template-columns: 1fr; }
  .form-row.three-col .form-group:last-child { grid-column: auto; }

  /* Grade Cards – 더 코습게 */
  .grade-selector { gap: 10px; width: 100%; }
  .grade-option { flex: 1; }
  .grade-card { width: 100%; height: 88px; }
  .grade-num { font-size: 2.1rem; }

  /* 복수행 placeholder 텍스트 축약 */
  .select-wrap select { font-size: 0.9rem; padding: 12px 36px 12px 14px; }
  input[type="text"],
  input[type="number"],
  textarea { font-size: 0.9rem; padding: 11px 14px; }

  /* Section 제목 폰트 */
  .form-section-header h3 { font-size: 1.02rem; }
  .form-section-num { font-size: 0.7rem; }

  /* 충분한 터치 영역 */
  .check-item { padding: 14px 12px; min-height: 48px; }
  .check-box { width: 24px; height: 24px; flex-shrink: 0; }
  .pledge-item { min-height: 54px; }
  .pledge-box { width: 28px; height: 28px; flex-shrink: 0; }

  /* 제출 버튼 */
  .btn-submit-inner { padding: 15px 20px; font-size: 0.95rem; }

  /* 모달 */
  .modal-box { padding: 36px 18px 28px; }
  .modal-circle { width: 60px; height: 60px; font-size: 1.5rem; }
}
