html,
body {
  height: 100vh; /* Ensure full viewport height */
  margin: 0;
  padding: 0;
}

body.modal-open {
  overflow: hidden; /* Prevent body scroll when modal is open */
}

/* Colory 컬러링북 생성기 - Main Styles */

/* Analytics Dashboard Styles */
.analytics-page {
  background: #f8fafc;
  min-height: 100vh;
  padding-top: 80px;
}

.analytics-page .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  gap: 2rem;
}

.header-content {
  flex: 1;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.page-description {
  font-size: 1.1rem;
  color: #6b7280;
}

.date-controls {
  flex-shrink: 0;
}

.date-range-picker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: white;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.date-input {
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.9rem;
  min-width: 140px;
}

.date-separator {
  color: #6b7280;
  font-weight: 500;
}

.access-denied,
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  text-align: center;
}

.error-card {
  background: white;
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  max-width: 400px;
}

.error-card h2 {
  color: #ef4444;
  margin-bottom: 1rem;
}

.error-card p {
  color: #6b7280;
  margin-bottom: 2rem;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e5e7eb;
  border-top: 4px solid #6366f1;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

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

.summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.summary-card {
  background: white;
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.summary-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.card-icon {
  font-size: 2rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border-radius: 12px;
  color: white;
}

.card-content {
  flex: 1;
}

.card-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.card-value {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
}

.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.chart-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.chart-header {
  padding: 1.5rem 1.5rem 0;
}

.chart-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
}

.chart-container {
  padding: 1rem 1.5rem 1.5rem;
  height: 300px;
  position: relative;
}

.activity-section {
  background: white;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.activity-header {
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.activity-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
}

.activity-table-container {
  max-height: 400px;
  overflow-y: auto;
}

.activity-table {
  width: 100%;
  border-collapse: collapse;
}

.activity-table th,
.activity-table td {
  padding: 1rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.activity-table th {
  background: #f9fafb;
  font-weight: 600;
  color: #374151;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: sticky;
  top: 0;
  z-index: 10;
}

.user-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.user-email {
  font-weight: 500;
  color: #1f2937;
}

.user-display-name {
  font-size: 0.875rem;
  color: #6b7280;
}

.subscription-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.subscription-badge.premium {
  background: #fef3c7;
  color: #92400e;
}

.subscription-badge.free {
  background: #e5e7eb;
  color: #374151;
}

.last-active {
  color: #6b7280;
  font-size: 0.875rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .analytics-page .container {
    padding: 1rem;
  }

  .page-header {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .date-range-picker {
    flex-wrap: wrap;
    justify-content: center;
  }

  .charts-grid {
    grid-template-columns: 1fr;
  }

  .chart-card {
    min-width: 0;
  }

  .summary-cards {
    grid-template-columns: 1fr;
  }

  .activity-table th,
  .activity-table td {
    padding: 0.75rem 1rem;
  }
}

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

body {
  font-family: "Inter", sans-serif;
  background: #ffffff;
  min-height: 100vh;
  padding: 0;
  padding-top: 0; /* Hero 섹션이 전체 높이 사용 */
  box-sizing: border-box;
}

/* Hero Image Comparator */
.hero-visual .image-compare-container {
  width: 500px;
  height: 500px;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.hero-visual .image-compare-original,
.hero-visual .image-compare-coloring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-visual .image-compare-coloring {
  clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}

.hero-visual .image-compare-original img,
.hero-visual .image-compare-coloring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-visual .image-compare-slider {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  cursor: ew-resize;
  z-index: 20;
  transform: translateX(-2px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual .image-compare-slider::before {
  content: "↔️";
  font-size: 20px;
  color: #333;
  position: absolute;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 헤더 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 100;
  padding: 15px 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

.nav-menu {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: #666;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #667eea;
  background: rgba(102, 126, 234, 0.1);
}

/* 메인 콘텐츠를 위한 래퍼 */
/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23ffffff" opacity="0.08"/><circle cx="10" cy="60" r="0.5" fill="%23ffffff" opacity="0.08"/><circle cx="90" cy="40" r="0.5" fill="%23ffffff" opacity="0.08"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>')
    repeat;
  pointer-events: none;
}

.hero-container {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 100px;
  align-items: center;
  padding: 0 30px;
  position: relative;
  z-index: 1;
}

.hero-content {
  color: white;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  padding: 8px 20px;
  margin-bottom: 30px;
  backdrop-filter: blur(10px);
}

.badge-text {
  font-size: 0.9rem;
  font-weight: 500;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 30px;
}

.gradient-text {
  background: linear-gradient(45deg, #f59e0b, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

.white-text {
  color: white;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.2rem;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 40px;
  font-weight: 300;
}

.hero-features {
  display: flex;
  gap: 25px;
  margin-bottom: 45px;
  flex-wrap: wrap;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  padding: 12px 20px;
  border-radius: 25px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-icon {
  font-size: 2rem;
}

.feature-item span {
  font-size: 0.9rem;
  font-weight: 500;
}

.hero-cta {
  display: flex;
  gap: 25px;
  margin-bottom: 50px;
  align-items: center;
  flex-wrap: wrap;
}

.cta-primary {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: white;
  border: none;
  padding: 18px 36px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 12px 35px rgba(245, 158, 11, 0.4);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 45px rgba(245, 158, 11, 0.5);
  background: linear-gradient(135deg, #f59e0b, #f97316);
}

.cta-secondary {
  color: #1f2937;
  background: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-shadow: none;
  cursor: pointer;
}

.cta-secondary:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(255, 255, 255, 1);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-arrow {
  font-size: 1.2rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-5px);
  }
  60% {
    transform: translateY(-3px);
  }
}

.hero-stats {
  display: flex;
  gap: 50px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

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

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 5px;
  background: linear-gradient(45deg, #f59e0b, #fbbf24);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Hero Visual */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero Image Loading */
.hero-image-loading {
  width: 500px;
  height: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  color: white;
}

.hero-image-loading .loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid #ffffff;
  border-radius: 50%;
  animation: heroSpinLoad 1s linear infinite;
  margin-bottom: 20px;
}

.hero-image-loading p {
  font-size: 1.1rem;
  font-weight: 500;
  text-align: center;
  opacity: 0.9;
}

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

.hero-image-showcase {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.showcase-item {
  display: flex;
  align-items: center;
  gap: 25px;
  justify-content: center;
}

.showcase-before,
.showcase-after {
  text-align: center;
  background: rgba(255, 255, 255, 0.95);
  padding: 25px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.showcase-label {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #4a5568;
}

.showcase-image {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #e2e8f0;
}

.showcase-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase-magic {
  font-size: 2rem;
  animation: magic-pulse 2s infinite;
}

@keyframes magic-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

/* How It Works Section */
.how-it-works-section {
  background: #ffffff;
  padding: 100px 0;
  position: relative;
}

.how-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  text-align: center;
}

.how-header {
  margin-bottom: 80px;
}

.how-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 15px;
}

.how-subtitle {
  font-size: 1.2rem;
  color: #718096;
  font-weight: 400;
}

.how-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.step-item {
  position: relative;
  padding: 40px 30px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid #f1f5f9;
}

.step-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.step-number {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.step-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  background: #f8fafc;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
}

.step-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 15px;
}

.step-description {
  font-size: 1rem;
  color: #718096;
  line-height: 1.6;
}

.step-arrow {
  font-size: 2rem;
  color: #e2e8f0;
  font-weight: bold;
}

/* Pricing Section */
.pricing-section {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  padding: 100px 0;
  position: relative;
}

.pricing-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  text-align: center;
}

.pricing-header {
  margin-bottom: 60px;
}

.pricing-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 15px;
}

.pricing-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 400;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 40px 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.pricing-card.premium {
  background: linear-gradient(
    135deg,
    rgba(255, 215, 0, 0.1),
    rgba(255, 193, 7, 0.1)
  );
  border: 2px solid rgba(255, 215, 0, 0.3);
  transform: scale(1.05);
}

.pricing-card.premium:hover {
  transform: scale(1.05) translateY(-5px);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  padding: 8px 24px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.plan-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.plan-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
}

.plan-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: #667eea;
  margin-bottom: 8px;
}

.plan-period {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 30px;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 40px 0;
  text-align: left;
}

.plan-features li {
  padding: 12px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #333;
}

.plan-features li::before {
  content: "✓";
  color: #10b981;
  font-weight: bold;
  font-size: 1.2rem;
}

.plan-button {
  width: 100%;
  padding: 16px 32px;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.plan-button.free {
  background: transparent;
  color: #667eea;
  border: 2px solid #667eea;
}

.plan-button.free:hover {
  background: #667eea;
  color: white;
}

.plan-button.premium {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
}

.plan-button.premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* Why Choose Colory Section */
.why-choose-section {
  background: #f8fafc;
  padding: 100px 0;
  position: relative;
}

.why-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  text-align: center;
}

.why-header {
  margin-bottom: 80px;
}

.why-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 15px;
}

.why-subtitle {
  font-size: 1.2rem;
  color: #718096;
  font-weight: 400;
}

.why-features {
  max-width: 1000px;
  margin: 0 auto;
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  position: relative;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
  border-color: #6366f1;
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 25px auto;
  position: relative;
}

.feature-icon::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border-radius: 50%;
  opacity: 0.1;
  transform: scale(1.5);
}

.feature-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 15px;
}

.feature-desc {
  font-size: 1rem;
  color: #718096;
  line-height: 1.6;
}

/* FAQ Section */
.faq-section {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  padding: 100px 0;
  position: relative;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 30px;
}

.faq-header {
  text-align: center;
  margin-bottom: 60px;
}

.faq-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-item {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 20px 60px 30px 60px;
  opacity: 1;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-question {
  display: flex;
  align-items: center;
  padding: 25px 30px;
  cursor: pointer;
  user-select: none;
}

.faq-icon {
  font-size: 1.4rem;
  margin-right: 15px;
  flex-shrink: 0;
}

.faq-text {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a202c;
}

.faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  color: #6366f1;
  transition: all 0.3s ease;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 60px;
  opacity: 0;
  transition: all 0.3s ease;
  font-size: 1rem;
  color: #4a5568;
  line-height: 1.6;
}

/* Main Section */
.main-section {
  background: #f8fafc;
  padding: 100px 0;
}

.coloring-cta {
  padding: 120px 20px;
  background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
}

.coloring-cta__inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
  background: #ffffff;
  border-radius: 24px;
  padding: 60px 40px;
  box-shadow: 0 20px 60px rgba(79, 70, 229, 0.1);
}

.coloring-cta__title {
  font-size: 2.5rem;
  margin-bottom: 16px;
  font-weight: 700;
  color: #312e81;
}

.coloring-cta__subtitle {
  font-size: 1.125rem;
  color: #4c51bf;
  margin-bottom: 32px;
}

.coloring-cta__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.coloring-cta .cta-primary {
  min-width: 200px;
}

.coloring-cta .cta-secondary {
  min-width: 160px;
}

.main-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

.main-header {
  text-align: center;
  margin-bottom: 60px;
}

.main-title {
  font-size: 2.8rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 15px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.main-subtitle {
  font-size: 1.3rem;
  color: #718096;
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto;
}

.container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 50px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Profile page specific container styling */
.profile-content .container {
  max-width: 1200px;
  background: none;
  backdrop-filter: none;
  border-radius: 0;
  padding: 0 20px;
  box-shadow: none;
  text-align: left;
  border: none;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 40px;
  font-weight: 400;
}

.email-container {
  margin-bottom: 30px;
}

.gemini-result {
  text-align: left;
  margin-bottom: 20px;
}

.gemini-result h3 {
  color: #4285f4;
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.gemini-text {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 20px;
  font-family: "Courier New", monospace;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333;
  white-space: pre-wrap;
  max-height: 400px;
  overflow-y: auto;
}

#emailInput {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 50px;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
}

#emailInput:focus {
  border-color: #667eea;
  background: rgba(255, 255, 255, 1);
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

#emailInput::placeholder {
  color: #999;
  font-style: italic;
}

.upload-area {
  border: 3px dashed #ddd;
  border-radius: 16px;
  padding: 60px 20px;
  margin-bottom: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.upload-area:hover {
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.05);
  transform: translateY(-2px);
}

.upload-area.dragover {
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.1);
  scale: 1.02;
}

.upload-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  color: #ddd;
  transition: color 0.3s ease;
}

.upload-area:hover .upload-icon {
  color: #667eea;
}

.upload-text {
  font-size: 1.1rem;
  color: #666;
  font-weight: 500;
}

.upload-subtext {
  font-size: 0.9rem;
  color: #999;
  margin-top: 8px;
}

#imageInput {
  display: none;
}

.preview-container {
  margin: 30px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  max-height: 0;
  overflow: hidden;
}

.preview-container.show {
  opacity: 1;
  visibility: visible;
  max-height: 400px;
}

.preview-image {
  max-width: 100%;
  max-height: 300px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.generate-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 16px 40px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
  display: none;
  margin: 20px auto 0;
}

.generate-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.generate-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.result-container {
  margin-top: 40px;
  display: none;
}

.result-image {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.watermark-notice {
  background: rgba(102, 126, 234, 0.1);
  border: 1px solid rgba(102, 126, 234, 0.2);
  border-radius: 8px;
  padding: 12px;
  margin: 15px 0;
  text-align: center;
}

.watermark-notice p {
  margin: 0;
  color: #4a5568;
  font-size: 0.9rem;
}

.download-btn {
  background: #10b981;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
  margin-right: 10px;
}

.download-btn:hover {
  background: #0d9465;
  transform: translateY(-1px);
}

.reset-btn {
  background: #64748b;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(100, 116, 139, 0.3);
}

.reset-btn:hover {
  background: #475569;
  transform: translateY(-1px);
}

.loading {
  display: none;
  margin: 30px 0;
  text-align: center;
  position: relative;
  z-index: 10;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 5px solid rgba(102, 126, 234, 0.1);
  border-top: 5px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
  position: relative;
}

.spinner::before {
  content: "🎨";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.5rem;
  animation: pulse 2s ease-in-out infinite;
}

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

/* 로딩 모달 스타일 */
.loading-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(5px);
}

.loading-modal-content {
  background: white;
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.loading-modal-spinner {
  margin-bottom: 30px;
}

.spinner-large {
  width: 80px;
  height: 80px;
  border: 6px solid rgba(102, 126, 234, 0.1);
  border-top: 6px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
  position: relative;
}

.spinner-large::before {
  content: "🎨";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  animation: pulse 2s ease-in-out infinite;
}

.loading-modal-message h3 {
  color: #333;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.loading-modal-message p {
  color: #666;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 10px;
}

.loading-modal-progress {
  margin-top: 30px;
}

.progress-bar-large {
  width: 100%;
  height: 8px;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 15px;
}

.progress-bar-large::before {
  content: "";
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 4px;
  animation: progressLarge 60s linear forwards;
}

@keyframes progressLarge {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}

.progress-text-large {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: #666;
}

.progress-text-large span:first-child {
  font-weight: 500;
  color: #333;
}

.estimated-time-large {
  color: #999;
  font-size: 0.8rem;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

.loading-message {
  font-size: 1.1rem;
  font-weight: 500;
  color: #667eea;
  margin-bottom: 8px;
}

.loading-time {
  font-size: 0.9rem;
  color: #999;
  margin-bottom: 15px;
}

.progress-container {
  width: 100%;
  height: 6px;
  background: rgba(102, 126, 234, 0.1);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 3px;
  animation: progress 30s linear infinite;
  width: 0%;
}

@keyframes progress {
  0% {
    width: 0%;
  }
  90% {
    width: 85%;
  }
  100% {
    width: 100%;
  }
}

.progress-text {
  font-size: 0.8rem;
  color: #666;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.estimated-time {
  background: rgba(102, 126, 234, 0.1);
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  color: #667eea;
}

.subscription-info {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 12px;
  padding: 15px;
  margin: 20px 0;
  display: none;
}

.subscription-info.limit-warning {
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.3);
}

.subscription-info.limit-exceeded {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
}

.subscription-title {
  font-weight: 600;
  margin-bottom: 8px;
  color: #10b981;
}

.subscription-info.limit-warning .subscription-title {
  color: #f59e0b;
}

.subscription-info.limit-exceeded .subscription-title {
  color: #ef4444;
}

.usage-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0;
  font-size: 0.9rem;
}

.upgrade-btn {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  width: 100%;
  transition: all 0.3s ease;
}

.upgrade-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.payment-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.payment-modal.active {
  display: flex;
}

/* YouTube 데모 모달 */
.demo-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 1001;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.demo-modal.active {
  display: flex;
}

.demo-content {
  position: relative;
  width: 100%;
  max-width: 800px;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.demo-close {
  position: absolute;
  top: -50px;
  right: 0;
  font-size: 32px;
  cursor: pointer;
  color: white;
  z-index: 1002;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.demo-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.demo-video {
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 768px) {
  .demo-content {
    aspect-ratio: 9 / 16; /* 모바일에서는 세로형 비율 */
    max-width: 400px;
  }

  .demo-close {
    top: -40px;
    font-size: 24px;
    width: 30px;
    height: 30px;
  }
}

.download-content {
  background: white;
  border-radius: 20px;
  padding: 30px;
  max-width: 400px;
  width: 90%;
  position: relative;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  margin: auto; /* Added for centering */
  max-height: 90vh;
  overflow-y: auto;
}

.payment-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
  color: #999;
}

.plan-info {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
}

.plan-price {
  font-size: 2rem;
  font-weight: 700;
  margin: 10px 0;
}

.plan-features {
  list-style: none;
  text-align: left;
  margin: 15px 0;
}

.plan-features li {
  padding: 5px 0;
  position: relative;
  padding-left: 20px;
}

.plan-features li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: bold;
}

.payment-btn {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  margin-top: 15px;
  transition: all 0.3s ease;
}

.payment-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
}

/* 구글 로그인 관련 스타일 */
.user-info-display {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 20px;
  margin: 20px 0;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.user-profile {
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-details {
  text-align: left;
}

.user-name {
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.user-email {
  color: #666;
  font-size: 0.9rem;
}

.login-required {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 40px;
  margin: 20px auto; /* Add auto margin for horizontal centering */
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.1);
  /* Add flexbox for centering content */
  display: flex;
  flex-direction: column; /* Stack children vertically */
  justify-content: center; /* Center vertically */
  align-items: center; /* Center horizontally */
  max-width: 500px; /* Give it a max-width so it doesn't stretch too wide */
}

.login-message h3 {
  color: #333;
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.login-message p {
  color: #666;
  margin-bottom: 24px;
  line-height: 1.5;
}

.google-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: white;
  color: #333;
  border: 1px solid #dadce0;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.google-login-btn:hover {
  background: #f8f9fa;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.google-login-btn img {
  width: 18px;
  height: 18px;
}

/* 기존 인증 버튼들 구글 스타일로 변경 */
.btn-login,
.btn-signup {
  display: none; /* 구글 로그인만 사용 */
}

/* 헤더 스타일 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 100;
  padding: 15px 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

.nav-menu {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: #666;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #667eea;
  background: rgba(102, 126, 234, 0.1);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn-login,
.btn-signup {
  padding: 8px 20px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
}

.btn-login {
  color: #667eea;
  background: transparent;
  border: 1px solid #667eea;
}

.btn-login:hover {
  background: #667eea;
  color: white;
}

.btn-signup {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.btn-signup:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.user-menu {
  position: relative;
  display: none;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  cursor: pointer;
}

.dropdown-menu {
  position: absolute;
  top: 50px;
  right: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  padding: 10px 0;
  display: none;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-item {
  display: block;
  padding: 10px 20px;
  text-decoration: none;
  color: #333;
  transition: background 0.3s ease;
}

.dropdown-item:hover {
  background: #f5f5f5;
}

/* 메인 컨테이너 조정 */
body.has-header {
  padding-top: 80px;
}

.main-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

/* 인증 모달 */
.auth-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: 1001;
  align-items: center;
  justify-content: center;
}

.auth-modal.active {
  display: flex;
}

.auth-content {
  background: white;
  border-radius: 20px;
  padding: 40px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  position: relative;
}

.auth-close {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 24px;
  cursor: pointer;
  color: #999;
}

.auth-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 30px;
  color: #333;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.auth-input {
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.auth-input:focus {
  border-color: #667eea;
}

.auth-submit {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 15px;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.3);
}

.auth-switch {
  margin-top: 20px;
  color: #666;
}

.auth-switch a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
}

/* 모바일 메뉴 토글 버튼 */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
  padding: 8px;
}

.mobile-menu-toggle:hover {
  color: #667eea;
}

/* 모바일 네비게이션 */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 200;
}

.mobile-nav.active {
  display: block;
}

.mobile-nav-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 280px;
  height: 100%;
  background: white;
  padding: 20px 0;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-nav.active .mobile-nav-content {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  margin-bottom: 30px;
  border-bottom: 1px solid #eee;
  padding-bottom: 20px;
}

.mobile-nav-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
  padding: 8px;
}

.mobile-nav-links {
  padding: 0 20px;
}

.mobile-user-links {
  padding: 0 20px;
}

.mobile-nav-link {
  display: block;
  padding: 15px 0;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  border-bottom: 1px solid #f5f5f5;
  transition: color 0.3s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: #667eea;
}

.mobile-auth-section {
  margin-top: 30px;
  padding: 20px;
  border-top: 1px solid #eee;
}

.mobile-user-section {
  margin-top: 20px;
}

/* 반응형 */
@media (max-width: 1024px) {
  .feature-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
    padding: 0 20px;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .hero-visual {
    order: 2;
  }

  .hero-content {
    order: 1;
  }

  .hero-features {
    justify-content: center;
  }

  .hero-cta {
    justify-content: center;
  }

  /* Hero Image Mobile Styles */
  .hero-visual .image-compare-container,
  .hero-image-loading {
    width: 350px;
    height: 350px;
  }

  .hero-image-loading .loading-spinner {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
  }

  .hero-image-loading p {
    font-size: 1rem;
  }

  .hero-stats {
    justify-content: center;
    gap: 30px;
  }

  .showcase-item {
    flex-direction: column;
    gap: 20px;
  }

  .showcase-magic {
    transform: rotate(90deg);
  }

  .how-steps {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .step-arrow {
    transform: rotate(90deg);
  }

  .how-title {
    font-size: 2rem;
  }

  .pricing-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .pricing-card.premium {
    transform: none;
  }

  .pricing-card.premium:hover {
    transform: translateY(-5px);
  }

  .pricing-title {
    font-size: 2rem;
  }

  .why-title {
    font-size: 2rem;
  }

  .feature-row {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .faq-title {
    font-size: 2rem;
  }

  .faq-question {
    padding: 20px;
  }

  .faq-item.active .faq-answer {
    padding: 15px 20px 25px 20px;
  }

  .faq-answer {
    padding: 0 20px;
  }

  .nav-menu {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .nav-container {
    padding: 0 15px;
  }

  /* 모바일에서 기존 인증 버튼과 사용자 메뉴 숨기기 */
  .auth-buttons {
    display: none !important;
  }

  .user-menu {
    display: none !important;
  }

  .btn-login,
  .btn-signup {
    padding: 6px 15px;
    font-size: 0.8rem;
  }
}

.error {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  padding: 15px;
  border-radius: 12px;
  margin-top: 20px;
  display: none;
  border: 1px solid rgba(239, 68, 68, 0.2);
  position: relative;
  z-index: 5;
}

.success {
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  padding: 15px;
  border-radius: 12px;
  margin-top: 20px;
  display: none;
  border: 1px solid rgba(16, 185, 129, 0.2);
  position: relative;
  z-index: 5;
}

@media (max-width: 600px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .hero-features {
    flex-direction: column;
    align-items: center;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .cta-primary {
    width: 100%;
    justify-content: center;
    max-width: 300px;
  }

  .hero-stats {
    gap: 20px;
  }

  .main-wrapper {
    padding: 0 15px;
  }

  .main-title {
    font-size: 2.2rem;
  }

  .main-subtitle {
    font-size: 1.1rem;
  }

  .container {
    margin: 10px;
    padding: 30px 20px;
    max-width: 100%;
  }

  h1 {
    font-size: 2rem;
  }

  .upload-area {
    padding: 40px 15px;
  }

  .download-btn,
  .reset-btn {
    display: block;
    width: 100%;
    margin: 10px 0;
  }
}

/* 사업자 정보 푸터 스타일 */
.business-footer {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: white;
  padding: 40px 20px;
  margin-top: 40px;
  width: 100%;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-right {
  text-align: right;
}

.footer-brand h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-brand p {
  color: #bdc3c7;
  font-size: 1rem;
  line-height: 1.6;
}

.footer-business-info h4 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #ecf0f1;
}

.business-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.business-row {
  display: flex;
  gap: 10px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.business-row .label {
  color: #bdc3c7;
  min-width: 140px;
  font-weight: 500;
}

.business-row .value {
  color: #ecf0f1;
  font-weight: 400;
}

.footer-copyright {
  color: #95a5a6;
  font-size: 0.9rem;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* 프리미엄 업그레이드 프로모션 모달 */
#upgradePromoModal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

#upgradePromoModal.show {
  opacity: 1;
  visibility: visible;
}

.upgrade-promo-overlay {
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.upgrade-promo-content {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 24px;
  padding: 0;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  color: white;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

#upgradePromoModal.show .upgrade-promo-content {
  transform: scale(1);
}

.upgrade-promo-header {
  text-align: center;
  padding: 40px 30px 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 24px 24px 0 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.upgrade-promo-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.upgrade-promo-header h2 {
  margin: 0 0 10px;
  font-size: 1.8rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.upgrade-promo-header p {
  margin: 0;
  opacity: 0.9;
  font-size: 1rem;
}

.upgrade-promo-benefits {
  padding: 30px;
}

.upgrade-promo-benefits h3 {
  margin: 0 0 20px;
  font-size: 1.3rem;
  font-weight: 600;
  text-align: center;
}

.benefit-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.benefit-list li {
  padding: 10px 0;
  font-size: 1rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.benefit-list li:last-child {
  border-bottom: none;
}

.upgrade-promo-pricing {
  text-align: center;
  padding: 0 30px 20px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 30px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.price-tag {
  margin: 20px 0 10px;
}

.price {
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffd700;
}

.period {
  font-size: 1.2rem;
  opacity: 0.8;
  margin-left: 5px;
}

.price-desc {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.9;
}

.upgrade-promo-actions {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.upgrade-btn-primary {
  background: linear-gradient(45deg, #ffd700, #ffa500);
  color: #333;
  border: none;
  padding: 16px 32px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.upgrade-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.6);
}

.upgrade-btn-secondary {
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.upgrade-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-color: rgba(255, 255, 255, 0.5);
}

.upgrade-promo-info {
  text-align: center;
  padding: 0 30px 30px;
  opacity: 0.8;
}

.upgrade-promo-info p {
  margin: 8px 0;
  font-size: 0.9rem;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .footer-left {
    margin-bottom: 0;
  }

  .footer-right {
    text-align: center;
  }

  .footer-brand h3 {
    margin-bottom: 8px;
  }

  .footer-brand p {
    margin-bottom: 20px;
  }

  .footer-business-info h4 {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 15px;
  }

  .business-row {
    flex-direction: row;
    justify-content: space-between;
    gap: 10px;
    text-align: left;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
  }

  .business-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
  }

  .business-row .label {
    min-width: 140px;
    font-weight: 600;
    color: #bdc3c7;
    font-size: 0.85rem;
  }

  .business-row .value {
    color: #ecf0f1;
    font-size: 0.85rem;
    text-align: right;
  }
}

/* Account Deletion Modal Styles */
.account-delete-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.account-delete-modal-content {
  background: linear-gradient(145deg, #2c3e50, #34495e);
  margin: 5% auto;
  padding: 0;
  border: none;
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  padding: 25px 30px 15px;
  border-bottom: 2px solid rgba(231, 76, 60, 0.3);
  background: linear-gradient(
    135deg,
    rgba(231, 76, 60, 0.1),
    rgba(192, 57, 43, 0.1)
  );
}

.modal-header h2 {
  color: #e74c3c;
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-header h2::before {
  content: "⚠️";
  font-size: 1.2rem;
}

.modal-body {
  padding: 25px 30px;
}

.delete-warning {
  background: rgba(231, 76, 60, 0.1);
  border: 2px solid rgba(231, 76, 60, 0.3);
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 20px;
}

.warning-title {
  color: #e74c3c;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.warning-title::before {
  content: "🚨";
}

.warning-list {
  color: #ecf0f1;
  line-height: 1.6;
}

.warning-list li {
  margin-bottom: 8px;
  padding-left: 10px;
  position: relative;
}

.warning-list li::before {
  content: "•";
  color: #e74c3c;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.email-confirm-section {
  background: rgba(52, 152, 219, 0.1);
  border: 2px solid rgba(52, 152, 219, 0.3);
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 20px;
}

.email-confirm-section h3 {
  color: #3498db;
  margin: 0 0 15px 0;
  font-size: 1.1rem;
}

.email-input-wrapper {
  position: relative;
}

.email-input-wrapper input {
  width: 100%;
  padding: 12px 15px;
  background: rgba(52, 73, 94, 0.8);
  border: 2px solid rgba(189, 195, 199, 0.3);
  border-radius: 10px;
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.email-input-wrapper input:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.email-input-wrapper input::placeholder {
  color: rgba(189, 195, 199, 0.7);
}

.reason-section {
  margin-bottom: 20px;
}

.reason-section h3 {
  color: #f39c12;
  margin: 0 0 15px 0;
  font-size: 1.1rem;
}

.reason-section textarea {
  width: 100%;
  min-height: 100px;
  padding: 12px 15px;
  background: rgba(52, 73, 94, 0.8);
  border: 2px solid rgba(189, 195, 199, 0.3);
  border-radius: 10px;
  color: white;
  font-size: 0.95rem;
  line-height: 1.5;
  resize: vertical;
  transition: all 0.3s ease;
}

.reason-section textarea:focus {
  outline: none;
  border-color: #f39c12;
  box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.2);
}

.reason-section textarea::placeholder {
  color: rgba(189, 195, 199, 0.7);
}

.final-warning {
  background: rgba(231, 76, 60, 0.15);
  border: 3px solid rgba(231, 76, 60, 0.4);
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 25px;
  text-align: center;
}

.final-warning h3 {
  color: #e74c3c;
  margin: 0 0 15px 0;
  font-size: 1.3rem;
  font-weight: 700;
}

.final-warning p {
  color: #ecf0f1;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

.final-warning .highlight {
  color: #e74c3c;
  font-weight: 600;
  background: rgba(231, 76, 60, 0.2);
  padding: 2px 6px;
  border-radius: 4px;
}

.modal-footer {
  padding: 20px 30px 25px;
  border-top: 1px solid rgba(189, 195, 199, 0.2);
  display: flex;
  gap: 15px;
  justify-content: flex-end;
}

.modal-btn {
  padding: 12px 25px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 100px;
}

.modal-btn-cancel {
  background: rgba(127, 140, 141, 0.8);
  color: white;
  border: 2px solid rgba(127, 140, 141, 0.5);
}

.modal-btn-cancel:hover {
  background: rgba(127, 140, 141, 1);
  transform: translateY(-2px);
}

.modal-btn-danger {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  border: 2px solid transparent;
}

.modal-btn-danger:hover {
  background: linear-gradient(135deg, #c0392b, #a93226);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

.modal-btn-primary {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  border: 2px solid transparent;
}

.modal-btn-primary:hover {
  background: linear-gradient(135deg, #2980b9, #21618c);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.processing-animation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
}

.spinner {
  width: 30px;
  height: 30px;
  border: 3px solid rgba(52, 152, 219, 0.3);
  border-top: 3px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.processing-text {
  color: #3498db;
  font-size: 1.1rem;
  font-weight: 500;
}

/* 다운로드 옵션 모달 */
.download-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.download-modal.show {
  display: flex;
  opacity: 1;
}

.download-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.download-content {
  position: relative;
  background: white;
  margin: auto;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 450px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalSlideIn 0.3s ease-out;
}

.purchase-btn {
  flex: 1;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.purchase-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.3);
}

.purchase-summary {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.purchase-summary h4 {
  margin-bottom: 8px;
  font-size: 1rem;
  color: #047857;
}

.purchase-summary dl {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 6px 12px;
  font-size: 0.9rem;
  color: #0f172a;
}

.purchase-summary dt {
  font-weight: 600;
}

.purchase-form {
  display: grid;
  gap: 12px;
}

.purchase-form label {
  font-size: 0.85rem;
  color: #475569;
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}

.purchase-form .form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.purchase-form input,
.purchase-form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #cbd5f5;
  font-size: 0.95rem;
  transition: border 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.purchase-form input[readonly] {
  background: #f1f5f9;
  cursor: default;
}

.purchase-form input:focus,
.purchase-form textarea:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
  outline: none;
}

.purchase-form textarea {
  min-height: 64px;
  resize: vertical;
}

.address-zip {
  display: flex;
  align-items: center;
  gap: 10px;
}

.address-zip input {
  flex: 1;
}

.address-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid rgba(79, 70, 229, 0.25);
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.25);
}

.address-search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(79, 70, 229, 0.3);
}

.address-search-btn::before {
  content: "🔍";
  font-size: 1rem;
}

.purchase-actions {
  display: flex;
  gap: 12px;
  margin-top: 4px;
}

.purchase-price {
  font-weight: 700;
  color: #0f172a;
}

.close-btn {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), #f5f9ff);
  color: #1f2a37;
  border: 1px solid rgba(99, 102, 241, 0.18);
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 16px rgba(148, 163, 184, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.close-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(99, 102, 241, 0.28);
  background: linear-gradient(135deg, #e8edff, #f7faff);
}

.download-content h3 {
  margin: 0 0 20px 0;
  font-size: 1.4rem;
  font-weight: 600;
  color: #1f2937;
  text-align: center;
}

.download-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.download-option-btn {
  padding: 16px 20px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
}

.download-option-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.download-option-btn.secondary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.download-option-btn.secondary:hover {
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.download-option-btn.disabled-premium-feature {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  position: relative;
}

.download-option-btn.disabled-premium-feature:hover {
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}

.download-cancel-btn {
  padding: 12px 24px;
  background: transparent;
  color: #6b7280;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.download-cancel-btn:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  color: #374151;
}

/* Mobile Responsive for Modals */
@media (max-width: 768px) {
  .download-content {
    padding: 25px 20px;
    max-width: 95%;
  }

  .download-option-btn {
    padding: 14px 16px;
    font-size: 0.95rem;
  }

  .account-delete-modal-content {
    width: 95%;
    margin: 10% auto;
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .modal-footer {
    flex-direction: column;
  }

  .modal-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .business-footer {
    padding: 30px 15px;
  }

  .footer-brand h3 {
    font-size: 1.5rem;
  }

  .business-row {
    font-size: 0.8rem;
  }

  /* 프로모션 모달 모바일 최적화 */
  .upgrade-promo-content {
    margin: 10px;
    max-width: 100%;
  }

  .upgrade-promo-header {
    padding: 30px 20px 15px;
  }

  .upgrade-promo-header h2 {
    font-size: 1.5rem;
  }

  .upgrade-promo-benefits {
    padding: 20px;
  }

  .price {
    font-size: 2rem;
  }

  .upgrade-promo-actions {
    padding: 20px;
  }

  .upgrade-btn-primary {
    padding: 14px 28px;
    font-size: 1rem;
  }
}

/* 푸터 하단 섹션 스타일 */
.footer-bottom {
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  margin-top: 30px;
}

.footer-bottom-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.footer-bottom-left .footer-copyright-bottom {
  color: #95a5a6;
  font-size: 0.9rem;
  margin: 0;
}

.footer-bottom-right .footer-links {
  display: flex;
  gap: 25px;
  align-items: center;
}

.footer-link {
  color: #bdc3c7;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  padding: 5px 0;
}

.footer-link:hover {
  color: #ecf0f1;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
  .footer-bottom-content {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }
}

/* 최신 갤러리 섹션 */
.latest-gallery-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #f1f5f9 100%);
}

.gallery-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.gallery-header {
  text-align: center;
  margin-bottom: 60px;
}

.gallery-title {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.gallery-subtitle {
  font-size: 1.2rem;
  color: #64748b;
  font-weight: 400;
}

.latest-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.gallery-item-main {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.gallery-item-main:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.gallery-image-compare-main {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.image-side-main {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
}

.original-side-main {
  left: 0;
  border-right: 2px solid #fff;
}

.coloring-side-main {
  right: 0;
  border-left: 2px solid #fff;
}

.gallery-image-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item-main:hover .gallery-image-main {
  transform: scale(1.05);
}

.image-label-main {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.original-side-main .image-label-main {
  background: rgba(255, 87, 51, 0.9);
}

.coloring-side-main .image-label-main {
  background: rgba(102, 126, 234, 0.9);
}

.gallery-info-main {
  padding: 20px;
}

.gallery-prompt-main {
  font-size: 0.95rem;
  color: #374151;
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 2.4em;
}

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

.category-tag-main {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}

.download-count-main {
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 500;
}

/* 갤러리 섹션 로딩 스타일 제거됨 - 더 이상 사용하지 않음 */

.gallery-footer {
  text-align: center;
}

.view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 16px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.view-all-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.view-all-btn .btn-arrow {
  transition: transform 0.3s ease;
}

.view-all-btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* 갤러리 섹션 모바일 반응형 */
@media (max-width: 768px) {
  .latest-gallery-section {
    padding: 60px 0;
  }

  .gallery-title {
    font-size: 2rem;
  }

  .gallery-subtitle {
    font-size: 1rem;
  }

  .latest-gallery-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
  }

  .gallery-image-compare-main {
    height: 180px;
  }

  .gallery-info-main {
    padding: 15px;
  }

  .view-all-btn {
    padding: 14px 28px;
    font-size: 1rem;
  }
}

/* Floating Demo Button */
.floating-demo-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  border: none;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.3);
  z-index: 1000;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.floating-demo-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.4);
  background: linear-gradient(135deg, #5b5ff1 0%, #8048e6 100%);
}

.floating-demo-btn:active {
  transform: translateY(0) scale(0.95);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .floating-demo-btn {
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    font-size: 22px;
  }
}

/* Account Deletion Modal Styles */
.account-delete-modal,
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.account-delete-modal-content,
.modal-content {
  background-color: #fefefe;
  margin: auto;
  padding: 30px;
  border: 1px solid #888;
  width: 80%;
  max-width: 600px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  padding: 10px 15px;
  border-bottom: 1px solid #eee;
  margin-bottom: 20px;
}

.modal-header h2 {
  font-size: 1.5rem;
  color: #333;
}

.modal-body {
  padding: 10px 15px;
}

.modal-footer {
  padding: 20px 15px 0;
  text-align: right;
  border-top: 1px solid #eee;
  margin-top: 30px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.modal-close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.modal-close:hover,
.modal-close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* Form elements inside modal */
.form-group {
  margin-bottom: 15px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #555;
}

.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}

.error-message {
  color: #dc3545;
  font-size: 0.8rem;
  margin-top: 5px;
}

/* 중복된 loading-spinner 스타일 제거됨 */

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

/* ============================================================
   Profile Page Styles
   ============================================================ */

/* 로그인 필요 카드 */
.login-required {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  padding: 20px;
}

.login-card {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 400px;
}

.login-card h2 {
  margin-bottom: 16px;
  color: #333;
}

.login-card p {
  margin-bottom: 24px;
  color: #666;
}

/* 프로필 헤더 */
.profile-header {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
  color: white;
  padding: 60px 40px;
  margin-bottom: 40px;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(99, 102, 241, 0.3);
  position: relative;
  overflow: hidden;
}

.profile-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23ffffff" opacity="0.08"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>')
    repeat;
  pointer-events: none;
}

.profile-header > * {
  position: relative;
  z-index: 1;
}

.profile-info {
  display: flex;
  align-items: center;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.profile-avatar {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.profile-avatar:hover {
  transform: scale(1.05);
}

.profile-avatar img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.8);
  object-fit: cover;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.profile-details h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.profile-details p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 20px;
}

.profile-stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  background: rgba(255, 255, 255, 0.15);
  padding: 20px 16px;
  border-radius: 16px;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  flex: 1;
  min-width: 120px;
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* 탭 메뉴 */
.tab-menu {
  display: flex;
  gap: 8px;
  margin-bottom: 40px;
  background: #f8fafc;
  border-radius: 16px;
  padding: 8px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.tab-button {
  background: none;
  border: none;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 12px;
  flex: 1;
}

.tab-button:hover:not(.active) {
  color: #6366f1;
  background: rgba(99, 102, 241, 0.1);
}

.tab-button.active {
  color: white;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

/* 탭 컨텐츠 */
.tab-content {
  display: none;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.tab-content.active {
  display: block;
}

/* 이미지 헤더 */
.images-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  gap: 20px;
}

.images-header h3 {
  font-size: 1.5rem;
  color: #1f2937;
}

.filter-options {
  display: flex;
  gap: 15px;
}

.filter-options select {
  padding: 8px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.9rem;
  background: white;
  cursor: pointer;
}

.filter-options select:focus {
  outline: none;
  border-color: #6366f1;
}

/* 갤러리 그리드 */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.gallery-item {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.image-container {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover .image-container img {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .image-overlay {
  opacity: 1;
}

.overlay-content {
  display: flex;
  gap: 10px;
}

.overlay-btn {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  padding: 10px 15px;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

.overlay-btn:hover {
  background: white;
  transform: scale(1.05);
}

.overlay-btn span {
  font-size: 1rem;
}

.gallery-item .image-info {
  padding: 15px;
}

.gallery-item .image-info h4 {
  font-size: 1rem;
  color: #1f2937;
  margin-bottom: 8px;
  font-weight: 600;
}

.image-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #6b7280;
}

.visibility-status {
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.visibility-status.public {
  background: #d1fae5;
  color: #065f46;
}

.visibility-status.private {
  background: #fef3c7;
  color: #92400e;
}

/* 이미지 없음 상태 */
.no-images {
  text-align: center;
  padding: 80px 20px;
}

.no-images-content {
  max-width: 400px;
  margin: 0 auto;
}

.no-images-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

.no-images h3 {
  font-size: 1.5rem;
  color: #1f2937;
  margin-bottom: 12px;
}

.no-images p {
  color: #6b7280;
  margin-bottom: 30px;
  line-height: 1.6;
}

/* 이미지 상세 모달 */
.image-modal-content {
  max-width: 1200px;
  max-height: 95vh;
  overflow-y: auto;
  margin: 2.5vh auto;
}

.image-detail {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

.image-info h3 {
  font-size: 1.5rem;
  color: #1f2937;
  margin-bottom: 20px;
}

.image-meta {
  margin-bottom: 30px;
}

.image-meta p {
  margin-bottom: 8px;
  color: #4b5563;
}

.image-meta strong {
  color: #1f2937;
}

.image-description h4 {
  font-size: 1.1rem;
  color: #1f2937;
  margin-bottom: 10px;
}

.image-description textarea {
  width: 100%;
  min-height: 100px;
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  resize: vertical;
  font-family: inherit;
  margin-bottom: 20px;
}

.image-description textarea:focus {
  outline: none;
  border-color: #6366f1;
}

.image-actions {
  border-top: 1px solid #e5e7eb;
  padding-top: 20px;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 60px; /* Reverted width */
  height: 34px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: 0.4s;
  transition: 0.4s;
  border-radius: 34px;
}

.toggle-switch .slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: 0.4s;
  transition: 0.4s;
  border-radius: 50%;
}

.toggle-switch input:checked + .slider {
  background-color: #667eea;
}

.toggle-switch input:focus + .slider {
  box-shadow: 0 0 1px #667eea;
}

.toggle-switch input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.toggle-switch .slider.round {
  border-radius: 34px;
}

.toggle-switch .slider.round:before {
  border-radius: 50%;
}

/* Removed Slider Text styling */

.action-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
}

.btn-secondary {
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
  background: #f1f5f9;
}

.btn-danger {
  background: #ef4444;
  color: white;
}

.btn-danger:hover {
  background: #dc2626;
  transform: translateY(-2px);
}

/* 설정 탭 */
.settings-section {
  margin-bottom: 32px;
  padding: 32px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid #f1f5f9;
  transition: all 0.3s ease;
}

.settings-section:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.settings-section h3 {
  font-size: 1.3rem;
  color: #1f2937;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5e7eb;
}

.setting-item {
  margin-bottom: 20px;
}

.setting-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.setting-label input[type="checkbox"] {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  accent-color: #6366f1;
}

.setting-text strong {
  display: block;
  color: #1f2937;
  margin-bottom: 4px;
}

.setting-text small {
  color: #6b7280;
  line-height: 1.4;
}

.setting-item .btn {
  margin-bottom: 8px;
}

.setting-item small {
  display: block;
  color: #6b7280;
  font-size: 0.85rem;
}

/* 결과 액션 버튼들 */
.result-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 10px;
}

.gallery-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.gallery-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

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

/* 갤러리 모달 */
.gallery-modal-content {
  max-width: 500px;
  padding: 30px;
  position: relative;
}

/* 갤러리 저장 로딩 화면 */
.gallery-loading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  border-radius: 16px;
}

.gallery-loading-content {
  text-align: center;
  padding: 40px 20px;
}

.gallery-loading-spinner {
  margin-bottom: 20px;
}

.gallery-loading-spinner .spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(102, 126, 234, 0.1);
  border-top: 4px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

.gallery-loading-message h3 {
  color: #667eea;
  font-size: 1.5rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.gallery-loading-message p {
  color: #64748b;
  font-size: 1rem;
  margin: 5px 0;
  line-height: 1.5;
}

/* 이미지 로딩 화면 */
.images-loading {
  text-align: center;
  padding: 60px 20px;
  background: #f8fafc;
  border-radius: 16px;
  margin: 20px 0;
}

.images-loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.images-loading-spinner {
  margin-bottom: 25px;
}

.images-loading-spinner .spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(102, 126, 234, 0.1);
  border-top: 4px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
  position: relative;
}

.images-loading-spinner .spinner::before {
  content: "🎨";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.2rem;
  animation: pulse 2s ease-in-out infinite;
}

.images-loading-message h3 {
  color: #667eea;
  font-size: 1.3rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.images-loading-message p {
  color: #64748b;
  font-size: 0.95rem;
  margin: 5px 0;
  line-height: 1.5;
}

/* 파일 삭제 로딩 화면 */
.delete-loading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: 16px;
}

.delete-loading-content {
  text-align: center;
  padding: 40px 20px;
}

.delete-loading-spinner {
  margin-bottom: 20px;
}

.delete-loading-spinner .spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(239, 68, 68, 0.1);
  border-top: 4px solid #ef4444;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

.delete-loading-message h3 {
  color: #ef4444;
  font-size: 1.5rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.delete-loading-message p {
  color: #64748b;
  font-size: 1rem;
  margin: 5px 0;
  line-height: 1.5;
}

/* 삭제 중 버튼 스타일 */
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.btn.btn-danger:disabled {
  background-color: #9ca3af;
  border-color: #9ca3af;
}

.gallery-modal-content h2 {
  margin-bottom: 25px;
  color: #1f2937;
  text-align: center;
}

.post-gallery-modal-content {
  max-width: 420px;
  text-align: center;
}

.post-gallery-modal-content h2 {
  margin-bottom: 12px;
  color: #1f2937;
}

.post-gallery-modal-content p {
  margin: 0 0 24px;
  color: #64748b;
  line-height: 1.5;
}

.post-gallery-actions {
  justify-content: center;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  padding: 15px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.checkbox-label:hover {
  border-color: #6366f1;
  background-color: #f8fafc;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  accent-color: #6366f1;
}

.checkbox-text {
  font-weight: 500;
  color: #374151;
  line-height: 1.4;
}

.checkbox-label small {
  display: block;
  color: #6b7280;
  font-size: 0.85rem;
  margin-top: 4px;
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 25px;
}

.form-actions .btn {
  min-width: 120px;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
  .result-actions {
    flex-direction: column;
    gap: 12px;
  }

  .gallery-btn {
    width: 100%;
    justify-content: center;
  }

  .form-actions {
    flex-direction: column-reverse;
  }

  .form-actions .btn {
    width: 100%;
  }

  .profile-info {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .profile-stats {
    justify-content: center;
    gap: 20px;
  }

  .images-header {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-options {
    justify-content: center;
  }

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

  .image-detail {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .modal-image-section {
    min-height: 250px;
  }

  .modal-image-compare {
    height: 45vh !important;
    max-height: 350px !important;
    min-height: 250px !important;
    border-radius: 8px !important;
  }

  .modal-image-label {
    padding: 6px 10px !important;
    font-size: 0.8rem !important;
  }

  .image-compare-slider::before {
    font-size: 16px !important;
    width: 32px !important;
    height: 32px !important;
  }

  .action-buttons {
    justify-content: stretch;
  }

  .action-buttons .btn {
    flex: 1;
  }

  .tab-menu {
    padding: 0 10px;
  }

  .tab-content {
    padding: 0 10px;
  }
}

/* Desktop Modal Image Compare Styles */
.modal-image-compare {
  position: relative;
  width: 100%;
  height: 65vh;
  max-height: 600px;
  min-height: 400px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  background: #eee;
}

.modal-image-compare .modal-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.modal-image-compare .coloring-container {
  clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}

.modal-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-image-label {
  position: absolute;
  bottom: 10px;
  left: 10px;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
}

.original-container .modal-image-label {
  background: rgba(255, 87, 51, 0.9);
}

.coloring-container .modal-image-label {
  background: rgba(102, 126, 234, 0.9);
}

.image-compare-slider {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  cursor: ew-resize;
  z-index: 20;
  transform: translateX(-2px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-compare-slider::before {
  content: "↔️";
  font-size: 20px;
  color: #333;
  position: absolute;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Gallery Image Compare Styles for Profile Page */
.gallery-image-compare {
  position: relative;
  height: 220px;
  overflow: hidden;
  border-radius: 15px;
  margin-bottom: 15px;
}

.image-side {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
}

.original-side {
  left: 0;
  border-right: 2px solid #fff;
}

.coloring-side {
  right: 0;
  border-left: 2px solid #fff;
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}

.gallery-item:hover .gallery-image {
  transform: scale(1.05);
}

.image-label {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.original-side .image-label {
  background: rgba(255, 87, 51, 0.9);
}

.coloring-side .image-label {
  background: rgba(59, 130, 246, 0.9);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 15px;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.view-btn,
.edit-btn {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  padding: 10px 15px;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

.view-btn:hover,
.edit-btn:hover {
  background: white;
  transform: scale(1.05);
}

.gallery-info {
  padding: 15px 0;
}

.gallery-prompt {
  font-size: 0.9rem;
  color: #1f2937;
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gallery-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #6b7280;
}

/* Responsive Design for Gallery Image Compare */
@media (max-width: 768px) {
  .gallery-image-compare {
    height: 180px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .view-btn,
  .edit-btn {
    padding: 8px 12px;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .gallery-image-compare {
    height: 150px;
  }

  .image-label {
    font-size: 0.7rem;
    padding: 3px 6px;
  }
}

.public-toggle-container {
  display: flex;
  align-items: center;
  gap: 10px; /* Add a small gap between text and slider */
  width: 100%;
  margin-bottom: 15px;
}

.toggle-label {
  font-weight: 600;
  color: #333;
  font-size: 1rem;
}

/* AI Model Selection Styles */
.model-selection {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  padding: 24px;
  margin: 20px 0;
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.model-selection-header {
  text-align: center;
  margin-bottom: 24px;
}

.model-selection-header h3 {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 8px 0;
}

.model-selection-header p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  margin: 0;
}

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

.model-option {
  cursor: pointer;
  position: relative;
}

.model-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.model-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.model-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #667eea, #764ba2);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.model-card > * {
  position: relative;
  z-index: 1;
}

.model-option input[type="radio"]:checked + .model-card {
  border-color: #667eea;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.model-option input[type="radio"]:checked + .model-card::before {
  opacity: 0.1;
}

.model-option:hover .model-card {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.model-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
}

.model-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 8px;
}

.model-description {
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.4;
}

/* Responsive Design for Model Selection */
@media (max-width: 768px) {
  .model-options {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .model-card {
    padding: 16px;
  }

  .model-icon {
    font-size: 2rem;
  }

  .model-name {
    font-size: 1.1rem;
  }

  .model-description {
    font-size: 0.85rem;
  }
}

/* 결제 로딩 오버레이 스타일 */
#payment-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.loading-content {
  background: white;
  padding: 3rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  max-width: 350px;
}

.loading-content p {
  margin: 1rem 0 0.5rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
}

.loading-sub {
  font-size: 0.9rem !important;
  color: #666 !important;
  font-weight: normal !important;
}

/* 작은 로딩 스피너 (버튼용) */
.loading-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #6366f1;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 8px;
}

/* HEIC 변환 로딩 오버레이 */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(5px);
}

/* 큰 로딩 스피너 (오버레이용) */
.loading-spinner-large {
  width: 50px;
  height: 50px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #6366f1;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem auto;
}

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