/* 폰트 및 기본 설정 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;600;700;800;900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #6366f1;
  --primary-dark: #4f46e5;
  --secondary-color: #8b5cf6;
  --accent-color: #06b6d4;
  --success-color: #10b981;
  --error-color: #ef4444;
  --warning-color: #f59e0b;

  --bg-primary: #0f0f23;
  --bg-secondary: #1a1a2e;
  --bg-tertiary: #16213e;
  --bg-card: rgba(26, 26, 46, 0.8);
  --bg-input: rgba(255, 255, 255, 0.05);

  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;

  --border-color: rgba(255, 255, 255, 0.1);
  --border-focus: var(--primary-color);

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Updated font-family from Pretendard to Noto Sans KR */
body {
  font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-tertiary) 100%);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* 배경 장식 요소들 */
.background-decoration {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.floating-shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
}

.shape-1 {
  width: 200px;
  height: 200px;
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 150px;
  height: 150px;
  top: 60%;
  right: 15%;
  animation-delay: 2s;
}

.shape-3 {
  width: 100px;
  height: 100px;
  bottom: 20%;
  left: 20%;
  animation-delay: 4s;
}

.shape-4 {
  width: 80px;
  height: 80px;
  top: 30%;
  right: 30%;
  animation-delay: 1s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-20px) rotate(120deg);
  }
  66% {
    transform: translateY(10px) rotate(240deg);
  }
}

/* 메시지 컨테이너 */
.message-container {
  margin-bottom: 0;
  padding: 1rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  opacity: 0;
  transform: translateY(-10px);
  transition: all var(--transition-normal);
  max-height: 0;
  overflow: hidden;
  margin-top: 0;
  white-space: pre-line; /* 줄바꿈 문자 적용 */
}

.message-container.show {
  opacity: 1;
  transform: translateY(0);
  max-height: 100px;
  margin-bottom: 1rem;
}

.message-container.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.message-container.success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}

/* 메인 컨테이너 */
.main-container {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

/* 헤더 */
.header {
  text-align: center;
  margin-bottom: 3rem;
  animation: slideInDown 0.8s ease-out;
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: var(--shadow-lg);
  animation: pulse 2s infinite;
  padding: 3px; /* 이미지 여백 추가 */
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* 이미지 비율 유지 */
  filter: brightness(0) invert(1); /* 이미지를 흰색으로 변경 */
}

.logo-icon svg {
  width: 24px;
  height: 24px;
}

.logo-text {
  font-size: 2.5rem;
  font-weight: 900;
  -webkit-text-stroke: 0.5px #ea00da00;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

.subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 400;
  opacity: 0.9;
}

/* 폼 섹션 */
.form-section {
  width: 100%;
  max-width: 500px;
  animation: slideInUp 0.8s ease-out 0.2s both;
}

.enhanced-form {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-xl);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  position: relative;
  min-height: 400px;
  transition: all var(--transition-slow);
}

.enhanced-form:hover {
  transform: translateY(-2px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* 입력 그룹 */
.input-group {
  margin-bottom: 2rem;
}

.input-label {
  display: block;
  margin-bottom: 0.75rem;
}

.label-text {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.label-description {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* 입력 래퍼 */
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-prefix {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-right: none;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  padding: 0.875rem 1rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
}

.enhanced-input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.875rem 1rem;
  font-size: 1rem;
  color: var(--text-primary);
  transition: all var(--transition-normal);
  outline: none;
}

.input-wrapper .enhanced-input {
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding-right: 3rem;
}

.input-wrapper:not(:has(.input-prefix)) .enhanced-input {
  border-radius: var(--radius-md);
}

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

.enhanced-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
  transform: translateY(-1px);
}

.input-icon {
  position: absolute;
  right: 1rem;
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  pointer-events: none;
}

.input-icon svg {
  width: 100%;
  height: 100%;
}

/* 이용약관 버튼 */
.terms-button {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: white;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  z-index: 1000;
  overflow: visible;
}

.terms-button:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}

.terms-button:active {
  transform: scale(0.95);
}

.terms-icon {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-normal);
}

.terms-icon svg {
  width: 100%;
  height: 100%;
}

.terms-button:hover .terms-icon {
  transform: scale(1.1);
}

.terms-tooltip {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-md);
}

.terms-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: var(--bg-tertiary);
}

.terms-button:hover .terms-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(-3px);
}

/* 제출 버튼 */
.submit-button {
  width: 100%;
  position: relative;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  border: none;
  border-radius: var(--radius-md);
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-md);
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--primary-dark), var(--secondary-color));
}

.submit-button:active {
  transform: translateY(0);
}

.button-text {
  display: inline-block;
  transition: opacity var(--transition-normal);
}

.button-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.button-success {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.button-success svg {
  width: 24px;
  height: 24px;
}

.submit-button.loading .button-text {
  opacity: 0;
}

.submit-button.loading .button-loader {
  opacity: 1;
}

.submit-button.success .button-text {
  opacity: 0;
}

.submit-button.success .button-success {
  opacity: 1;
}

.loader-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* 공지사항 */
.notice-container {
  position: fixed;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90%;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  opacity: 0;
  transform: translateX(-50%) translateY(20px);
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Added visible class for notice animation */
.notice-container.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.notice-icon {
  width: 20px;
  height: 20px;
  color: var(--primary-color);
  flex-shrink: 0;
}

.notice-icon svg {
  width: 100%;
  height: 100%;
}

.notice-text {
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
}

/* SNS 버튼 */
.sns-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: white;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-normal);
  z-index: 1000;
  overflow: visible;
}

.sns-button:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: var(--shadow-xl);
}

.sns-button:active {
  transform: scale(0.95);
}

.sns-icon {
  width: 24px;
  height: 24px;
  transition: transform var(--transition-normal);
}

.sns-icon svg {
  width: 100%;
  height: 100%;
}

.sns-tooltip {
  position: absolute;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-md);
}

.sns-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--bg-tertiary);
}

.sns-button:hover .sns-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(-5px);
}

/* 단계 헤더 */
.step-header {
  text-align: center;
  margin-bottom: 2rem;
}

.step-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  position: relative;
  cursor: help;
  transition: color var(--transition-normal);
}

.step-title:hover {
  color: var(--primary-color);
}

.title-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 400;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  z-index: 10;
  margin-bottom: 0.5rem;
}

.title-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--bg-tertiary);
}

.step-title:hover .title-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(-3px);
}

.step-description {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* 반응형에서 툴팁 조정 */
@media (max-width: 768px) {
  .title-tooltip {
    white-space: normal;
    max-width: 280px;
    text-align: center;
    line-height: 1.4;
  }
}

@media (max-width: 480px) {
  .title-tooltip {
    max-width: 240px;
    font-size: 0.8rem;
    padding: 0.6rem 0.8rem;
  }
}

/* 애니메이션 */
@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(99, 102, 241, 0);
  }
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .main-container {
    padding: 1rem;
  }

  .logo-text {
    font-size: 2rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .enhanced-form {
    padding: 1.5rem;
    min-height: 350px;
  }

  .input-wrapper {
    flex-direction: column;
    gap: 0;
  }

  .input-prefix {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    border-right: 1px solid var(--border-color);
    border-bottom: none;
    width: 100%;
    text-align: center;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }

  .input-wrapper .enhanced-input {
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    padding-right: 1rem;
    padding: 0.75rem 1rem;
    border-top: none;
  }

  .submit-button {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    margin-top: 0.5rem;
  }

  .step-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }

  .step-button {
    padding: 0.875rem 1.25rem;
    font-size: 0.95rem;
  }

  .progress-container {
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
  }

  .progress-line {
    width: 60px;
    margin: 0 0.5rem;
  }

  .step-label {
    font-size: 0.8rem;
    text-align: center;
    max-width: 80px;
    line-height: 1.2;
  }

  .notice-container {
    bottom: 80px;
    max-width: 95%;
    padding: 0.875rem 1.25rem;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .notice-text {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .main-container {
    padding: 0.75rem;
  }

  .logo-container {
    flex-direction: column;
    gap: 0.5rem;
  }

  .logo-icon {
    width: 40px;
    height: 40px;
    padding: 6px;
  }

  .logo-text {
    font-size: 1.75rem;
  }

  .enhanced-form {
    padding: 1.25rem;
    min-height: 320px;
  }

  .input-prefix {
    padding: 0.625rem 0.875rem;
    font-size: 0.8rem;
  }

  .input-wrapper .enhanced-input {
    padding: 0.625rem 0.875rem;
    font-size: 0.9rem;
  }

  .submit-button {
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
  }

  .step-button {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .progress-container {
    margin-bottom: 1.25rem;
  }

  .step-number {
    width: 32px;
    height: 32px;
    font-size: 0.875rem;
  }

  .progress-line {
    width: 40px;
    margin: 0 0.25rem;
  }

  .step-label {
    font-size: 0.75rem;
    max-width: 60px;
  }

  .registered-link-display {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all var(--transition-normal);
  }

  .link-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    text-align: left;
    pointer-events: none;
  }

  .link-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.875rem 1rem;
    transition: all var(--transition-normal);
  }

  .link-container:hover {
    border-color: var(--success-color);
  }

  .registered-link {
    flex: 1;
    color: var(--success-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color var(--transition-normal);
    text-align: left;
    word-break: break-all;
  }

  .registered-link:hover {
    color: #059669;
    text-decoration: underline;
  }

  .copy-button {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    min-width: 40px;
    height: 40px;
  }

  .copy-button:hover {
    border-color: var(--success-color);
    color: var(--success-color);
    background: rgba(16, 185, 129, 0.1);
  }

  .copy-button.copied {
    border-color: var(--success-color);
    color: var(--success-color);
    background: rgba(16, 185, 129, 0.2);
  }

  .copy-button svg {
    width: 20px;
    height: 20px;
  }

  .completion-actions {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
  }

  .completion-actions .step-button {
    max-width: 200px;
  }
}

/* Added extra small mobile support */
@media (max-width: 360px) {
  .enhanced-form {
    padding: 1rem;
    margin: 0 0.5rem;
  }

  .logo-text {
    font-size: 1.5rem;
  }

  .input-prefix {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }

  .input-wrapper .enhanced-input {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
  }

  .submit-button {
    padding: 0.625rem 1rem;
    font-size: 0.9rem;
  }

  .step-button {
    padding: 0.625rem 0.875rem;
    font-size: 0.85rem;
  }
}

/* 다크모드 지원 */
@media (prefers-color-scheme: light) {
  :root {
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-tertiary: #e2e8f0;
    --bg-card: rgba(255, 255, 255, 0.8);
    --bg-input: rgba(0, 0, 0, 0.05);

    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;

    --border-color: rgba(0, 0, 0, 0.1);
  }

  .floating-shape {
    animation: none;
  }
}

/* 접근성 개선 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .floating-shape {
    animation: none;
  }
}

/* 포커스 표시 개선 */
.enhanced-input:focus,
.submit-button:focus,
.sns-button:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* 선택 스타일 */
::selection {
  background: rgba(99, 102, 241, 0.3);
  color: var(--text-primary);
}

/* 스크롤바 스타일 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* 진행 상태 표시 */
.progress-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  animation: slideInDown 0.8s ease-out 0.1s both;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 2;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-input);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-muted);
  transition: all var(--transition-normal);
}

.step-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color var(--transition-normal);
}

.progress-step.active .step-number {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-color: var(--primary-color);
  color: white;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.progress-step.active .step-label {
  color: var(--text-primary);
}

.progress-step.completed .step-number {
  background: var(--success-color);
  border-color: var(--success-color);
  color: white;
}

.progress-step.completed .step-label {
  color: var(--success-color);
}

.progress-line {
  width: 80px;
  height: 2px;
  background: var(--border-color);
  position: relative;
  margin: 0 1rem;
}

.progress-line::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  width: 0%;
  transition: width 0.8s ease;
}

.progress-line.completed::after {
  width: 100%;
}

/* 폼 단계 */
.form-step {
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.5s ease;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  pointer-events: none;
  padding-top: 0; /* 상단 패딩 제거 */
}

.form-step.active {
  opacity: 1;
  transform: translateX(0);
  position: relative;
  pointer-events: auto;
}

/* 2단계 배경 변화 */
body.step-2 {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 50%, #1a1a3a 100%);
}

body.step-2 .floating-shape {
  animation-duration: 8s;
}

body.step-2 .shape-1 {
  background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
}

body.step-2 .shape-2 {
  background: linear-gradient(45deg, var(--accent-color), var(--primary-color));
}

/* 선택된 ID 표시 */
.selected-id-display {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all var(--transition-normal);
}

.selected-id-display:hover {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.selected-id-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.selected-id-value {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.id-prefix {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.id-text {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1rem;
}

.edit-id-button {
  background: none;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  transition: all var(--transition-normal);
}

.edit-id-button:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: rgba(99, 102, 241, 0.1);
}

.edit-id-button svg {
  width: 16px;
  height: 16px;
}

/* 입력 힌트 */
.input-hint {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 0.75rem;
  background: rgba(99, 102, 241, 0.05);
  border: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.input-hint svg {
  width: 16px;
  height: 16px;
  color: var(--primary-color);
  flex-shrink: 0;
}

/* 단계 버튼들 */
.step-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.step-button.primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  box-shadow: var(--shadow-md);
}

.step-button.primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--primary-dark), var(--secondary-color));
}

.step-button.secondary {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.step-button.secondary:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: rgba(99, 102, 241, 0.1);
}

.step-button:not(.secondary) {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  box-shadow: var(--shadow-md);
  width: 100%;
}

.step-button:not(.secondary):hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--primary-dark), var(--secondary-color));
}

.button-arrow {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-normal);
}

.button-arrow.reverse {
  transform: rotate(180deg);
}

.step-button:hover .button-arrow:not(.reverse) {
  transform: translateX(3px);
}

.step-button:hover .button-arrow.reverse {
  transform: rotate(180deg) translateX(3px);
}

/* 단계 버튼 컨테이너 */
.step-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.step-buttons .step-button {
  flex: 1;
}

/* 단계 전환 애니메이션 */
@keyframes stepSlideIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes stepSlideOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-30px);
  }
}

.form-step.slide-in {
  animation: stepSlideIn 0.5s ease forwards;
}

.form-step.slide-out {
  animation: stepSlideOut 0.5s ease forwards;
}

/* 3단계 완료 화면 스타일 */
.completion-container {
  text-align: center;
  margin-bottom: 2rem;
}

.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 2rem;
  background: linear-gradient(135deg, var(--success-color), #059669);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: var(--shadow-lg);
  animation: successPulse 2s infinite;
}

.success-icon svg {
  width: 40px;
  height: 40px;
  stroke-width: 3;
}

@keyframes successPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(16, 185, 129, 0);
  }
}

.registered-link-display {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all var(--transition-normal);
}

.link-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  text-align: left;
  pointer-events: none;
}

.link-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.875rem 1rem;
  transition: all var(--transition-normal);
}

.link-container:hover {
  border-color: var(--success-color);
}

.registered-link {
  flex: 1;
  color: var(--success-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: color var(--transition-normal);
  text-align: left;
  word-break: break-all;
}

.registered-link:hover {
  color: #059669;
  text-decoration: underline;
}

.copy-button {
  background: none;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
  min-width: 40px;
  height: 40px;
}

.copy-button:hover {
  border-color: var(--success-color);
  color: var(--success-color);
  background: rgba(16, 185, 129, 0.1);
}

.copy-button.copied {
  border-color: var(--success-color);
  color: var(--success-color);
  background: rgba(16, 185, 129, 0.2);
}

.copy-button svg {
  width: 20px;
  height: 20px;
}

.completion-actions {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.completion-actions .step-button {
  max-width: 200px;
}

/* 3단계 배경 변화 */
body.step-3 {
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 30%, #0f2027 70%, #203a43 100%);
}

body.step-3 .floating-shape {
  animation-duration: 10s;
}

body.step-3 .shape-1 {
  background: linear-gradient(45deg, var(--success-color), var(--accent-color));
}

body.step-3 .shape-2 {
  background: linear-gradient(45deg, var(--accent-color), var(--success-color));
}

body.step-3 .shape-3 {
  background: linear-gradient(45deg, var(--success-color), var(--primary-color));
}

/* Turnstile */
.turnstile-container {
  display: flex;
  justify-content: center;
  align-items: center;
  transform: scale(0.8);       /* 80% 크기로 축소 */
  transform-origin: center;    /* 중앙 기준으로 줄이기 */
  height: 52px;                /* 필요 시 약간의 보정 */
}

.cf-turnstile {
  margin-top: -20px; /* 위로 이동 */
}