/* =============================================
   ImageSEO - upload.css
   업로드 영역 스타일
   ============================================= */

/* ─── 히어로 섹션 ──────────────────────────── */
.hero-section {
  text-align: center;
  padding: 60px 0 40px;
}

/* 비디오 배경 */
.hero-video-bg {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 80px 20px 60px;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 15, 0.7);
  backdrop-filter: blur(2px);
  z-index: 1;
}

.hero-video-bg .hero-title,
.hero-video-bg .hero-desc,
.hero-video-bg .hero-stats {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-family: var(--font-title);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1.1;
  margin-bottom: 16px;
}

/* ─── 히어로 그라디언트 텍스트 ──────────────────── */
.hero-title {
  position: relative; /* 스파클 파티클 기준점 */
}

.hero-title .gradient-text {
  background: linear-gradient(90deg,
    #ffffff  0%,
    #60a5fa 14%,   /* 파랑 */
    #a78bfa 28%,   /* 보라 */
    #f472b6 42%,   /* 핑크 */
    #fbbf24 56%,   /* 노랑 */
    #34d399 70%,   /* 민트 */
    #ffffff 84%,   /* 흰색 */
    #60a5fa 100%
  );
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
  /* 흐르는 그라디언트 + 글로우 펄스 동시 실행 */
  animation: heroGradientFlow 10s linear infinite,
             heroGlowPulse     6s ease-in-out infinite;
}

/* 1) 흐르는 그라디언트: 흰→파랑→보라→핑크→노랑→민트→흰 반복 */
@keyframes heroGradientFlow {
  0%   { background-position:   0% center; }
  100% { background-position: 300% center; }
}

/* 2) 글로우 펄스: 보라→핑크→파랑 빛이 은은하게 번갈아 */
@keyframes heroGlowPulse {
  0%   { filter: drop-shadow(0 0  4px rgba(167,139,250,0.3)); }
  25%  { filter: drop-shadow(0 0 12px rgba(167,139,250,0.7)) drop-shadow(0 0 24px rgba(167,139,250,0.2)); }
  50%  { filter: drop-shadow(0 0 12px rgba(244,114,182,0.7)) drop-shadow(0 0 24px rgba(244,114,182,0.2)); }
  75%  { filter: drop-shadow(0 0 12px rgba( 96,165,250,0.7)) drop-shadow(0 0 24px rgba( 96,165,250,0.2)); }
  100% { filter: drop-shadow(0 0  4px rgba(167,139,250,0.3)); }
}

/* 3) 반짝이는 밑줄: 좌→우로 흐르는 그라디언트 라인 */
.hero-title .gradient-text::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg,
    transparent 0%,
    #a78bfa    20%,
    #60a5fa    40%,
    #f472b6    60%,
    #fbbf24    80%,
    transparent 100%
  );
  background-size: 200% auto;
  border-radius: 2px;
  animation: heroUnderlineFlow 5s linear infinite;
}

@keyframes heroUnderlineFlow {
  0%   { background-position: -100% center; }
  100% { background-position:  100% center; }
}

/* 4) 스파클 파티클 (JS로 동적 생성) */
.hero-sparkle {
  position: absolute;
  pointer-events: none;
  font-size: 14px;
  line-height: 1;
  animation: sparkleFade 2.4s ease-out forwards;
  -webkit-text-fill-color: initial; /* gradient-text 내부 상속 차단 */
}

@keyframes sparkleFade {
  0%   { opacity: 0;   transform: scale(0.4) translateY(0);    }
  30%  { opacity: 1;   transform: scale(1.2) translateY(-6px); }
  70%  { opacity: 0.8; transform: scale(1.0) translateY(-12px);}
  100% { opacity: 0;   transform: scale(0.6) translateY(-20px);}
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 48px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-title);
  font-size: 32px;
  font-weight: 700;
  color: var(--neon-blue);
  display: block;
}

.stat-label {
  color: var(--text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* ─── 작동 원리 섹션 ──────────────────────────── */
.how-it-works {
  max-width: 900px;
  margin: 0 auto 64px;
  text-align: center;
}

.process-flow {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  margin: 36px auto 32px;
  max-width: 1100px;
}

.process-step {
  width: 190px;
  min-width: 190px;
  max-width: 190px;
  flex: 0 0 190px;
  text-align: center;
  position: relative;
  padding: 24px 12px 20px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.process-step:hover {
  border-color: var(--neon-blue);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 212, 255, 0.1);
}

.process-step.highlight {
  border-color: rgba(0, 212, 255, 0.5);
  background: linear-gradient(180deg, rgba(0,212,255,0.06) 0%, var(--bg-card) 100%);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.08);
}

.process-num {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
  color: #fff;
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.process-icon {
  color: var(--neon-blue);
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
  opacity: 0.8;
}

.process-icon svg {
  width: 32px;
  height: 32px;
}

.process-step.highlight .process-icon {
  opacity: 1;
  color: var(--neon-blue);
  filter: drop-shadow(0 0 6px rgba(0, 212, 255, 0.4));
}

.process-title {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.4;
}

.process-step.highlight .process-title {
  color: var(--neon-blue);
}

.process-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.process-arrow {
  display: flex;
  align-items: center;
  align-self: center;
  justify-content: center;
  width: 32px;
  flex: 0 0 32px;
  color: var(--border);
}

.process-bottom-msg {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  padding: 20px 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  max-width: 600px;
  margin: 0 auto;
}

.process-bottom-msg strong {
  color: var(--neon-blue);
  font-weight: 700;
}

/* 모바일 대응 */
@media (max-width: 768px) {
  .process-flow {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .process-step {
    flex: 0 0 auto;
    width: 100%;
    max-width: 280px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    padding: 14px 16px 14px 20px;
  }
  .process-num {
    position: static;
    transform: none;
    flex-shrink: 0;
  }
  .process-icon {
    margin-bottom: 0;
    flex-shrink: 0;
  }
  .process-icon svg {
    width: 22px;
    height: 22px;
  }
  .process-arrow {
    padding-top: 0;
    transform: rotate(90deg);
  }
  .process-title { font-size: 14px; }
  .process-desc { font-size: 12px; }
}

/* ─── 업로드 드롭존 ────────────────────────── */
.upload-section {
  max-width: 700px;
  margin: 0 auto 60px;
}

.dropzone {
  background: var(--bg-card);
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.dropzone::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,212,255,0.03) 0%, transparent 70%);
  pointer-events: none;
}

.dropzone:hover,
.dropzone.drag-over {
  border-color: var(--neon-blue);
  background: var(--bg-card-hover);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.1), inset 0 0 30px rgba(0, 212, 255, 0.03);
}

.dropzone.drag-over {
  transform: scale(1.01);
}

.dropzone-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  color: var(--neon-blue);
  opacity: 0.6;
  transition: all var(--transition);
}

.dropzone:hover .dropzone-icon {
  opacity: 1;
  transform: scale(1.1);
}

.dropzone-title {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.dropzone-desc {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 24px;
}

.dropzone-desc span {
  color: var(--neon-blue);
  font-weight: 500;
}

.dropzone-formats {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.format-tag {
  background: rgba(123, 47, 255, 0.1);
  border: 1px solid rgba(123, 47, 255, 0.3);
  color: var(--neon-purple);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

#fileInput { display: none; }

/* ─── 키워드 입력 영역 ─────────────────────── */
.keyword-input-wrap {
  margin-top: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  transition: border-color var(--transition);
}

.keyword-input-wrap:focus-within {
  border-color: var(--neon-purple);
  box-shadow: 0 0 0 3px rgba(123,47,255,0.1);
}

.keyword-input-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 6px;
}

.keyword-input-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--neon-purple);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.keyword-input-hint {
  font-size: 11px;
  color: var(--text-muted);
}

.keyword-input-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.keyword-input-field {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 11px 14px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition);
}

.keyword-input-field:focus {
  border-color: var(--neon-purple);
}

.keyword-input-field::placeholder {
  color: var(--text-muted);
}

.keyword-tags-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 0;
}

.keyword-tag-preview {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(123,47,255,0.12);
  border: 1px solid rgba(123,47,255,0.3);
  color: var(--neon-purple);
  font-size: 12px;
  font-weight: 500;
  animation: tagIn 0.15s ease;
}

@keyframes tagIn {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

.keyword-input-tip {
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ─── 업로드 진행 표시 ─────────────────────── */
.upload-progress {
  display: none;
  margin-top: 20px;
}

.upload-progress.show { display: block; }

.progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.progress-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 13px;
}

.progress-percent {
  color: var(--neon-blue);
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
}

.progress-bar-wrap {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
  border-radius: 2px;
  transition: width 0.3s ease;
  width: 0%;
  box-shadow: 0 0 8px var(--neon-blue);
}

.progress-status {
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 8px;
}

/* ─── AI 처리 단계 표시 ────────────────────── */
.ai-steps {
  display: none;
  margin-top: 24px;
  padding: 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.ai-steps.show { display: block; }

.ai-steps-title {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 14px;
}

.ai-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  color: var(--text-muted);
  font-size: 13px;
  transition: all var(--transition);
}

.ai-step.active { color: var(--neon-blue); }
.ai-step.done   { color: var(--neon-green); }

.ai-step-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ─── 결과 모달 ─────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.show { display: flex; }

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 0 60px rgba(0, 212, 255, 0.1);
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(20px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.modal-title {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 700;
  color: var(--neon-green);
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition);
}
.modal-close:hover { color: var(--text-primary); }

.modal-body {
  padding: 24px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
}

.modal-image-preview {
  position: sticky;
  top: 0;
}

.modal-image-preview img {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.modal-image-info {
  margin-top: 12px;
  font-size: 11px;
  color: var(--text-muted);
}

.seo-results { display: flex; flex-direction: column; gap: 16px; }

.seo-item {}

.seo-item-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--neon-purple);
  margin-bottom: 6px;
}

.seo-item-value {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.6;
  word-break: break-all;
  position: relative;
}

.seo-item-value .copy-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  background: var(--border);
  border: none;
  border-radius: var(--radius-sm);
  padding: 3px 8px;
  color: var(--text-muted);
  font-size: 11px;
  cursor: pointer;
  transition: all var(--transition);
}
.seo-item-value .copy-btn:hover { color: var(--neon-blue); background: var(--border-glow); }

.crawl-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(0,255,136,0.05);
  border: 1px solid rgba(0,255,136,0.2);
  border-radius: var(--radius-md);
  color: var(--neon-green);
  font-size: 13px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* ─── 최근 업로드 갤러리 ───────────────────── */
.gallery-section { margin-top: 60px; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.gallery-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
}

.gallery-item:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
  box-shadow: var(--shadow-neon);
}

.gallery-thumb {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--bg-secondary);
}

.gallery-info {
  padding: 10px 12px;
}

.gallery-name {
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.gallery-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gallery-date { font-size: 10px; color: var(--text-muted); }

/* ─── 업로드 준비 영역 (미리보기 + 키워드 + 시작) ─── */
.upload-ready-wrap {
  max-width: 700px;
  margin: 0 auto;
  animation: fadeSlideIn 0.3s ease;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 이미지 미리보기 */
.upload-preview-area {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.upload-preview-img-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
}

.upload-preview-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.upload-preview-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  background: rgba(0,0,0,0.7);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 2;
}

.upload-preview-remove:hover {
  background: var(--neon-red);
  border-color: var(--neon-red);
  transform: scale(1.15);
}

.upload-preview-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: var(--text-secondary);
  min-width: 0;
}

.upload-preview-info span:first-child {
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upload-preview-info span:last-child {
  font-size: 11px;
  color: var(--text-muted);
}

/* SEO 최적화 시작 버튼 */
.btn-start-upload {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 24px;
  margin-top: 16px;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
  border: none;
  border-radius: var(--radius-md);
  color: #fff;
  font-family: var(--font-title);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.25);
}

.btn-start-upload:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.35);
}

.btn-start-upload:active {
  transform: translateY(0);
}

.btn-start-upload:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* 모바일 대응 */
@media (max-width: 480px) {
  .upload-preview-area {
    flex-direction: column;
    text-align: center;
  }
  .upload-preview-img-wrap {
    width: 100%;
    height: 200px;
  }
  .btn-start-upload {
    font-size: 15px;
    padding: 14px 20px;
  }
  .bulk-preview-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)) !important;
  }
  .bulk-preview-item {
    height: 80px !important;
  }
}

/* ─── 벌크 업로드 미리보기 ──────────────── */
.bulk-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.bulk-preview-item {
  position: relative;
  height: 100px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-darker);
}

.bulk-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bulk-preview-item .bulk-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  background: rgba(255, 60, 60, 0.9);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s;
}

.bulk-preview-item:hover .bulk-remove {
  opacity: 1;
}

.bulk-preview-item .bulk-item-num {
  position: absolute;
  bottom: 4px;
  left: 4px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

/* 업로드 중 상태 */
.bulk-preview-item.uploading {
  border-color: var(--neon-blue);
  box-shadow: 0 0 8px rgba(0,212,255,0.3);
}

.bulk-preview-item.done {
  border-color: var(--neon-green);
}

.bulk-preview-item.failed {
  border-color: var(--neon-red);
}

.bulk-preview-item .bulk-item-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.5);
  font-size: 24px;
}

.bulk-preview-info {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.bulk-add-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: transparent;
  border: 1px dashed var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 16px;
}

.bulk-add-more:hover {
  border-color: var(--neon-blue);
  color: var(--neon-blue);
}

/* ─── 벌크 진행 바 ───────────────────── */
.bulk-progress-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
}

.bulk-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.bulk-progress-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-primary);
}

.bulk-progress-count {
  font-size: 14px;
  color: var(--neon-blue);
  font-weight: 600;
}

.bulk-progress-bar-wrap {
  width: 100%;
  height: 6px;
  background: var(--bg-darker);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 16px;
}

.bulk-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-green));
  border-radius: 3px;
  transition: width 0.3s ease;
}

.bulk-progress-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 200px;
  overflow-y: auto;
}

.bulk-progress-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  padding: 6px 10px;
  background: var(--bg-darker);
  border-radius: 6px;
}

.bulk-progress-item .bpi-num {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 10px;
  flex-shrink: 0;
}

.bulk-progress-item .bpi-name {
  flex: 1;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bulk-progress-item .bpi-status {
  font-weight: 600;
  flex-shrink: 0;
}

.bulk-progress-item.uploading .bpi-num {
  background: var(--neon-blue);
  color: #fff;
}

.bulk-progress-item.done .bpi-num {
  background: var(--neon-green);
  color: #fff;
}

.bulk-progress-item.done .bpi-status {
  color: var(--neon-green);
}

.bulk-progress-item.failed .bpi-num {
  background: var(--neon-red);
  color: #fff;
}

.bulk-progress-item.failed .bpi-status {
  color: var(--neon-red);
}

/* ─── 벌크 결과 요약 모달 ─────────────── */
.bulk-result-summary {
  padding: 20px;
}

.bulk-result-stats {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 20px;
}

.bulk-stat {
  text-align: center;
}

.bulk-stat-num {
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
}

.bulk-stat-num.success {
  color: var(--neon-green);
}

.bulk-stat-num.fail {
  color: var(--neon-red);
}

.bulk-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ─── 갤러리 페이지네이션 ────────────── */
.gallery-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
  padding: 16px 0;
}

.gallery-pagination .pg-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.gallery-pagination .pg-btn:hover {
  border-color: var(--neon-blue);
  color: var(--neon-blue);
  background: rgba(0, 212, 255, 0.05);
}

.gallery-pagination .pg-num {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.gallery-pagination .pg-num:hover {
  border-color: var(--neon-blue);
  color: var(--neon-blue);
}

.gallery-pagination .pg-num.active {
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 212, 255, 0.3);
}

.gallery-pagination .pg-dots {
  color: var(--text-muted);
  font-size: 14px;
  padding: 0 4px;
}

@media (max-width: 600px) {
  .gallery-pagination {
    gap: 4px;
  }
  .gallery-pagination .pg-btn {
    padding: 6px 10px;
    font-size: 12px;
  }
  .gallery-pagination .pg-num {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }
}
