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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #f5f5f5;
  min-height: 100vh;
  padding: 0;
  padding-top: 60px;
}

/* 상단 네비게이션 */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: white;
  border-bottom: 1px solid #e0e0e0;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.nav-left {
  display: flex;
  gap: 30px;
}

.nav-right {
  display: flex;
  gap: 30px;
}

.nav-link {
  color: #666;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 0;
  transition: color 0.2s;
  border-bottom: 2px solid transparent;
}

.nav-link:hover {
  color: #333;
}

.nav-link.active {
  color: #667eea;
  border-bottom-color: #667eea;
}

/* 설명 영역 */
.info-box {
  max-width: 1200px;
  margin: 30px auto;
  padding: 20px 50px;
  text-align: left;
  background: white;
}

/* 전자책 바로생성 페이지 */
.ebook-click-container {
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  min-height: calc(100vh - 60px);
  margin-bottom: 2rem;
}

.info-box p {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 6px;
  color: #666;
}

.info-box p:last-child {
  margin-bottom: 0;
}

.ebook-click-form {
  padding: 50px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 30px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  color: #333;
  font-weight: 600;
  font-size: 16px;
}

.required {
  color: #e74c3c;
  font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.3s;
  background: #fafafa;
}

.form-group select {
  width: 100%;
  padding: 14px 35px 14px 18px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.3s;
  background: #fafafa;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #667eea;
  background: white;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

/* 스타일 그리드 */
.style-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 15px;
}

/* 표지 이미지 스타일 가로 스크롤 */
.style-grid-scroll {
  display: flex;
  overflow-x: auto;
  overflow-y: visible;
  gap: 20px;
  padding: 10px 10px 20px 10px;
  margin: 15px -10px 0 -10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #667eea #f0f0f0;
}

.style-grid-scroll::-webkit-scrollbar {
  height: 8px;
}

.style-grid-scroll::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 4px;
}

.style-grid-scroll::-webkit-scrollbar-thumb {
  background: #667eea;
  border-radius: 4px;
}

.style-grid-scroll::-webkit-scrollbar-thumb:hover {
  background: #5568d3;
}

.style-grid-scroll .style-item {
  flex: 0 0 auto;
  min-width: 200px;
  padding-top: 5px;
  padding-bottom: 5px;
}

.chapter-style-grid {
  grid-template-columns: repeat(3, 1fr);
}

.style-item {
  position: relative;
}

.style-item input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.style-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  border: 3px solid #e0e0e0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
  background: #fafafa;
  height: 100%;
}

/* 세로 배치 스타일 (표지 이미지 스타일, 챕터 이미지 스타일) */
.style-label-vertical {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px;
  text-align: center;
}

.style-label:hover {
  border-color: #667eea;
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
  background: white;
  margin-top: 0;
}

.style-item input[type="radio"]:checked + .style-label {
  border-color: #667eea;
  background: #f0f4ff;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.style-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
}

/* 세로 배치일 때 이미지 스타일 (원본 비율 유지) */
.style-label-vertical .style-image {
  width: auto;
  max-width: 150px;
  height: auto;
  max-height: 200px;
  object-fit: contain;
  margin-bottom: 0;
  flex-shrink: 0;
}

.style-name {
  font-weight: 600;
  color: #333;
  font-size: 16px;
  text-align: center;
}

.style-label-text {
  justify-content: center;
  min-height: 100px;
}

.style-label-text .style-name {
  font-size: 18px;
}

.style-label-vertical .style-name {
  font-weight: 600;
  color: #333;
  font-size: 16px;
  text-align: center;
  margin-top: 8px;
}

/* 표지 이미지 업로드 */
.cover-upload-container {
  margin-top: 15px;
}

.cover-upload-area {
  width: 100%;
  min-height: 200px;
  border: 3px dashed #e0e0e0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
  margin-bottom: 15px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}

.cover-upload-area:hover {
  border-color: #667eea;
  background: #f0f4ff;
}

.cover-upload-placeholder {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

.cover-upload-placeholder p {
  margin: 8px 0;
  font-size: 16px;
}

.cover-upload-hint {
  font-size: 14px;
  color: #999;
}

.cover-image-preview {
  width: auto;
  max-width: 150px;
  max-height: 200px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
}

.btn-cover-upload {
  padding: 12px 28px;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: block;
  margin: 0 auto 10px;
}

.btn-cover-upload:hover {
  background: #5568d3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.cover-upload-notice {
  text-align: center;
  font-size: 13px;
  color: #999;
  margin-top: 10px;
  line-height: 1.6;
}

/* 챕터 이미지 스타일 "없음" 완전 가운데 정렬 */
.style-label-text {
  justify-content: center;
  align-items: center;
  min-height: 100px;
  text-align: center;
}

.style-label-text .style-name {
  font-size: 18px;
  margin: 0;
}

/* 제출 버튼 */
.submit-container {
  text-align: center;
  margin-top: 1.4rem;
  /*border-top: 2px solid #f0f0f0;*/
}

.btn-submit {
  padding: 16px 60px;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-submit-small {
  padding: 0.6rem 0.8rem;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

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

.btn-submit:active {
  transform: translateY(-1px);
}

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

/* 반응형 디자인 */
@media (max-width: 768px) {
  .top-nav {
    padding: 0 20px;
    height: 50px;
  }

  .nav-left,
  .nav-right {
    gap: 15px;
  }

  .nav-link {
    font-size: 14px;
  }

  .ebook-click-header {
    padding: 30px 25px;
  }

  .ebook-click-header h1 {
    font-size: 28px;
  }

  .info-box {
    padding: 20px;
  }

  .info-box p {
    font-size: 14px;
  }

  .ebook-click-form {
    padding: 30px 25px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .style-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .chapter-style-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .style-image {
    height: 140px;
  }

  .btn-submit {
    padding: 16px 60px;
    font-size: 18px;
  }

  .cover-upload-area {
    min-height: 150px;
  }

  .cover-image-preview {
    max-width: 120px;
    max-height: 160px;
  }

  .cover-upload-notice {
    font-size: 12px;
  }
}

/* 표지 만들기 페이지 - 모드 선택 Switch */
.mode-switch {
  display: flex;
  gap: 0;
  background: #f0f0f0;
  border-radius: 10px;
  padding: 4px;
  width: fit-content;
}

.mode-switch input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-label {
  padding: 8px 32px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 600;
  font-size: 15px;
  color: #666;
  background: transparent;
  text-align: center;
  min-width: 100px;
  margin-top: 0.2rem;
  margin-bottom: 0.2rem !important;
}

.mode-switch input[type="radio"]:checked + .switch-label {
  background: #667eea;
  color: white;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.switch-label:hover {
  color: #333;
}

.mode-switch input[type="radio"]:checked + .switch-label:hover {
  color: white;
}

/* 내 책 관리 페이지 */
.my-books-content {
  padding: 50px;
}

.my-books-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  color: #333;
  margin: 0;
  text-align: left;
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.book-card {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.book-card:hover {
  border-color: #667eea;
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
}

.book-cover-wrapper {
  position: relative;
  width: 100%;
}

.book-cover {
  width: 100%;
  aspect-ratio: 1 / 1.6;
  object-fit: contain;
  background: #f5f5f5;
  display: block;
}

.btn-delete-book {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-delete-book:hover {
  background: rgba(220, 38, 38, 0.85);
  transform: translateY(-1px);
}

.delete-icon {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

.btn-edit-book {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10;
}

.btn-edit-book:hover {
  background: rgba(0, 0, 0, 0.85);
  transform: translateY(-1px);
}

.book-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.book-title {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin: 0;
  line-height: 1.4;
  word-break: break-word;
}

.book-genre {
  font-size: 14px;
  color: #666;
  margin: 0;
  padding: 6px 12px;
  background: #f0f0f0;
  border-radius: 6px;
  display: inline-block;
  width: fit-content;
}

.download-buttons {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.btn-download {
  padding: 12px 20px;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-download-sub {
  background: #667eea;
  color: #ffffff;
  font-weight: 500;
  border: 1px solid #ddd;
}

.btn-download-sub:hover {
  background: #e0e0e0;
  color: #444;
  border-color: #ccc;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

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

.btn-download span {
  text-transform: lowercase;
}

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

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

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

.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: #999;
  font-size: 18px;
}

.empty-state p {
  margin: 0;
}

/* 반응형 디자인 - 내 책 관리 */
@media (max-width: 768px) {
  .my-books-content {
    padding: 30px 25px;
  }

  .my-books-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
  }

  .page-title {
    font-size: 24px;
    margin: 0;
  }

  .my-books-header .btn-submit {
    width: 100%;
    padding: 14px 30px;
    font-size: 16px;
  }

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

  .book-info {
    padding: 15px;
  }

  .book-title {
    font-size: 18px;
  }
}

/* 전자책 직접생성 페이지 - 챕터 관리 */
.btn-add-chapter {
  padding: 10px 20px;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-add-chapter:hover {
  background: #5568d3;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.chapters-list {
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  padding: 20px;
  background: #fafafa;
}

.chapter-item {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
}

.chapter-item:last-child {
  margin-bottom: 0;
}

.chapter-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.chapter-prologue-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  white-space: nowrap;
  font-size: 14px;
  color: #666;
  user-select: none;
}

.chapter-prologue-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #667eea;
}

.chapter-prologue-checkbox span {
  font-weight: 500;
}

.chapter-name-input {
  flex: 1;
  padding: 10px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  background: #fafafa;
  transition: all 0.3s;
}

.chapter-name-input:focus {
  outline: none;
  border-color: #667eea;
  background: white;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.btn-icon {
  padding: 8px 12px;
  background: #f0f0f0;
  color: #666;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-icon:hover {
  background: #e0e0e0;
  color: #333;
}

.btn-icon.btn-delete {
  background: #fee;
  color: #c33;
}

.btn-icon.btn-delete:hover {
  background: #fdd;
  color: #a22;
}

.sections-list {
  margin-left: 30px;
  margin-top: 15px;
}

.section-item {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.section-item:last-child {
  margin-bottom: 0;
}

.section-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 15px;
}

.section-name-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
  background: white;
  transition: all 0.3s;
}

.section-name-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.section-status {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.section-status.pending {
  background: #fff3cd;
  color: #856404;
}

.section-status.completed {
  background: #d4edda;
  color: #155724;
}

.section-actions {
  display: flex;
  gap: 8px;
}

.btn-add-section {
  padding: 8px 15px;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 10px;
  margin-left: 30px;
}

.btn-add-section:hover {
  background: #5568d3;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* 모달 팝업 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  padding: 20px;
}

.modal-content {
  background: white;
  border-radius: 12px;
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  border-bottom: 2px solid #f0f0f0;
}

.modal-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #333;
}

.modal-close {
  background: none;
  border: none;
  font-size: 28px;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.modal-close:hover {
  background: #f0f0f0;
  color: #333;
}

.modal-body {
  padding: 30px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 20px 30px;
  border-top: 2px solid #f0f0f0;
}

.btn-cancel {
  padding: 12px 24px;
  background: #f0f0f0;
  color: #666;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-cancel:hover {
  background: #e0e0e0;
  color: #333;
}

.modal-footer .btn-submit {
  padding: 12px 24px;
  font-size: 15px;
}

/* 반응형 디자인 - 전자책 직접생성 */
@media (max-width: 768px) {
  .chapter-header {
    flex-wrap: wrap;
  }

  .section-item {
    flex-direction: column;
    align-items: stretch;
  }

  .section-info {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .section-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .modal-content {
    max-width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }

  .modal-body {
    padding: 20px;
  }
}

/* 랜딩 페이지 스타일 */
.landing-page {
  padding-top: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
}

.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0 40px;
  height: 70px;
  display: flex;
  align-items: center;
}

.landing-nav-content {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.landing-nav-logo h2 {
  font-size: 24px;
  font-weight: 700;
  color: #667eea;
  margin: 0;
}

.landing-nav-menu {
  display: flex;
  gap: 50px;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.landing-nav-menu .nav-link {
  color: #666;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 0;
  transition: color 0.2s;
  border-bottom: 2px solid transparent;
}

.landing-nav-menu .nav-link:hover {
  color: #667eea;
  border-bottom-color: #667eea;
}

.landing-nav-menu .nav-link.active {
  color: #667eea;
  border-bottom-color: #667eea;
}

.landing-nav-right {
  display: flex;
  align-items: center;
}

.btn-cta {
  padding: 12px 28px;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-cta:hover {
  background: #5568d3;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.btn-cta-large {
  padding: 16px 40px;
  font-size: 18px;
  margin-top: 30px;
}

/* 히어로 섹션 */
.hero-section {
  padding: 150px 20px 100px;
  text-align: center;
  color: white;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
  font-size: 20px;
  line-height: 1.6;
  opacity: 0.95;
  margin-bottom: 20px;
}

/* 전자책 제작 폼 섹션 */
.hero-form-section {
  padding: 120px 20px 80px;
  color: white;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-form-container {
  max-width: 900px;
  margin: 0 auto;
}

.hero-form-content {
  text-align: center;
}

.hero-form-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-form-subtitle {
  font-size: 18px;
  line-height: 1.6;
  opacity: 0.95;
  margin-bottom: 40px;
}

.hero-form {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 40px;
  margin-top: 40px;
  text-align: left;
}

.hero-form .form-group {
  margin-bottom: 30px;
}

.hero-form .form-group label {
  color: #333;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 10px;
  display: block;
}

.hero-form input[type="text"],
.hero-form textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.3s;
  background: #fafafa;
  color: #333;
}

.hero-form input[type="text"]:focus,
.hero-form textarea:focus {
  outline: none;
  border-color: #667eea;
  background: white;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.hero-form textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

.hero-form-submit {
  text-align: center;
  margin-top: 40px;
}

.hero-form-submit .btn-cta-large {
  margin-top: 0;
}

/* 샘플 소개 섹션 */
.sample-section {
  background: white;
  padding: 100px 20px;
}

.sample-container {
  max-width: 1200px;
  margin: 0 auto;
}

.sample-content {
  display: flex;
  align-items: center;
  gap: 60px;
}

.sample-image-wrapper {
  flex-shrink: 0;
}

.sample-cover-image {
  width: 300px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.15);
  object-fit: contain;
}

.sample-info {
  flex: 1;
}

.sample-title {
  font-size: 36px;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
  line-height: 1.3;
}

.sample-description {
  font-size: 18px;
  line-height: 1.8;
  color: #666;
  margin-bottom: 40px;
}

.sample-download {
  margin-top: 30px;
}

.sample-download-title {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
}

.sample-download .download-buttons {
  display: flex;
  gap: 10px;
  justify-content: flex-start;
}

.sample-download .btn-download {
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 1rem;
  flex: 0 0 auto;
  width: auto;
  min-width: 100px;
}

.sample-download .download-icon {
  width: 1.2rem;
  height: 1.2rem;
}

/* 기능 소개 섹션 */
.features-section {
  padding: 0;
}

.features-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  color: #333;
  margin-bottom: 60px;
}

.feature-item {
  width: 100%;
  padding: 80px 0;
}

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

.feature-item-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 60px;
}

.feature-item-bg-light {
  background: #ffffff;
}

.feature-item-bg-dark {
  background: #f8f8f8;
}

.bg_bright_gray {
  background-color: #dedede;
}

.feature-image-wrapper {
  flex: 0 0 500px;
}

.feature-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.feature-text-wrapper {
  flex: 1;
}

.feature-badge {
  display: inline-block;
  background: #e8e8e8;
  color: #666;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.feature-title {
  font-size: 32px;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
  line-height: 1.3;
}

.feature-copy {
  font-size: 16px;
  line-height: 1.7;
  color: #666;
  margin-bottom: 0;
}

.extra-feature {
  background: #f0f4ff;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  border: 2px solid #e0e8ff;
}

.extra-feature-text {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  margin: 0;
}

.extra-feature-text strong {
  color: #667eea;
  font-size: 18px;
}

/* 로그인 모달 팝업 */
.login-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  padding: 20px;
}

.login-modal-content {
  background: white;
  border-radius: 16px;
  padding: 40px;
  max-width: 450px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.login-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.login-modal-close:hover {
  background: #f0f0f0;
  color: #333;
}

.login-modal-title {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.5;
}

.login-modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-kakao-modal {
  width: 100%;
  padding: 14px 20px;
  background: #fee500;
  color: #000;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-kakao-modal:hover {
  background: #fdd835;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(253, 216, 53, 0.3);
}

.btn-kakao-modal .kakao-icon {
  width: 18px;
  height: 18px;
  color: #000;
}

.btn-google-modal {
  width: 100%;
  padding: 14px 20px;
  background: white;
  color: #333;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-google-modal:hover {
  border-color: #667eea;
  background: #fafafa;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-google-modal .social-login-icon {
  width: 18px;
  height: 18px;
}

/* 가격 안내 페이지 */
.price-section {
  padding: 120px 20px 100px;
  background: #f5f7fa;
  min-height: calc(100vh - 70px);
}

.price-container {
  max-width: 1200px;
  margin: 0 auto;
}

.price-title {
  font-size: 48px;
  font-weight: 700;
  color: #333;
  text-align: center;
  margin-bottom: 16px;
}

.price-subtitle {
  font-size: 18px;
  color: #666;
  text-align: center;
  margin-bottom: 60px;
}

/* 가격 비교 테이블 */
.pricing-table-wrapper {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  margin-bottom: 50px;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

.pricing-table thead {
  background: #f8f9fa;
}

.pricing-table th {
  padding: 20px 16px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  border-bottom: 2px solid #e5e7eb;
}

.pricing-table th:first-child {
  text-align: left;
  padding-left: 24px;
}

.pricing-feature-col {
  width: 30%;
  text-align: left !important;
}

.pricing-plan-premium {
  background: #f0f4ff;
  color: #667eea;
  font-weight: 700;
}

.pricing-table tbody tr {
  border-bottom: 1px solid #f0f0f0;
}

.pricing-table tbody tr:last-child {
  border-bottom: none;
}

.pricing-feature-name {
  padding: 18px 24px;
  font-size: 15px;
  color: #333;
  font-weight: 500;
  background: #fafafa;
}

.pricing-plan-value {
  padding: 18px 16px;
  text-align: center;
  font-size: 15px;
  color: #666;
  vertical-align: middle;
}

.pricing-plan-value.pricing-plan-premium {
  background: #f0f4ff;
  color: #667eea;
  font-weight: 600;
}

.pricing-check {
  display: inline-block;
  width: 24px;
  height: 24px;
  background: #667eea;
  color: white;
  border-radius: 50%;
  line-height: 24px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  margin-right: 8px;
}

.pricing-price-row {
  background: #f8f9fa;
}

.pricing-price-row .pricing-feature-name {
  background: #f8f9fa;
  font-weight: 700;
  font-size: 16px;
}

.pricing-plan-price {
  padding: 20px 16px;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: #333;
  vertical-align: middle;
}

.pricing-plan-price.pricing-plan-premium {
  background: #f0f4ff;
  color: #667eea;
  font-size: 20px;
}

.pricing-action-row .pricing-feature-name {
  background: white;
  border: none;
}

.pricing-plan-action {
  padding: 20px 16px;
  text-align: center;
  vertical-align: middle;
}

.pricing-plan-action.pricing-plan-premium {
  background: #f0f4ff;
}

.btn-pricing {
  padding: 12px 32px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  width: 100%;
  max-width: 200px;
}

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

.btn-pricing-free:hover {
  background: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-pricing-premium {
  background: #667eea;
  color: white;
}

.btn-pricing-premium:hover {
  background: #5568d3;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-pricing-disabled {
  background: #e5e7eb;
  color: #9ca3af;
  cursor: not-allowed;
}

/* 결제 유의사항 */
.pricing-notice {
  background: white;
  border-radius: 12px;
  padding: 30px 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.pricing-notice-title {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f0f0f0;
}

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

.pricing-notice-list li {
  padding: 10px 0;
  padding-left: 24px;
  position: relative;
  font-size: 15px;
  color: #666;
  line-height: 1.6;
}

.pricing-notice-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #667eea;
  font-weight: 700;
  font-size: 20px;
}

/* Footer */
.landing-footer {
  background: #1a1a1a;
  color: #e0e0e0;
  padding: 50px 20px 30px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  gap: 30px;
  margin-bottom: 20px;
  padding-bottom: 20px;
}

.footer-link {
  color: #e0e0e0;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

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

.footer-divider {
  height: 1px;
  background: #333;
  margin-bottom: 30px;
}

.footer-info {
  display: flex;
  gap: 60px;
  margin-bottom: 30px;
  font-size: 14px;
  line-height: 2;
}

.footer-info-left,
.footer-info-right {
  flex: 1;
}

.footer-info-item {
  margin-bottom: 8px;
}

.footer-label {
  color: #999;
  margin-right: 8px;
}

.footer-value {
  color: #e0e0e0;
}

.footer-copyright {
  text-align: center;
  color: #999;
  font-size: 13px;
  padding-top: 20px;
  border-top: 1px solid #333;
}

/* 반응형 디자인 - 랜딩 페이지 */
@media (max-width: 768px) {
  .landing-nav {
    padding: 0 20px;
    height: 60px;
  }

  .landing-nav-logo h2 {
    font-size: 20px;
  }

  .landing-nav-menu {
    display: none;
  }

  .btn-cta {
    padding: 10px 20px;
    font-size: 14px;
  }

  .hero-section {
    padding: 120px 20px 80px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .hero-form-section {
    padding: 100px 20px 60px;
  }

  .hero-form-title {
    font-size: 32px;
  }

  .hero-form-subtitle {
    font-size: 16px;
  }

  .hero-form {
    padding: 30px 20px;
  }

  .btn-cta-large {
    padding: 14px 32px;
    font-size: 16px;
  }

  .sample-section {
    padding: 60px 20px;
  }

  .sample-content {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

  .sample-cover-image {
    width: 250px;
  }

  .sample-title {
    font-size: 28px;
  }

  .sample-description {
    font-size: 16px;
  }

  .sample-download {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .sample-download .download-buttons {
    width: 100%;
    max-width: 400px;
  }

  .features-section {
    padding: 0;
  }

  .section-title {
    font-size: 32px;
    margin-bottom: 40px;
  }

  .feature-item {
    padding: 60px 0;
  }

  .feature-item-container {
    flex-direction: column;
    gap: 30px;
    padding: 0 20px;
  }

  .feature-image-wrapper {
    flex: 0 0 auto;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }

  .feature-text-wrapper {
    text-align: left;
  }

  .feature-badge {
    font-size: 12px;
    padding: 5px 10px;
    margin-bottom: 15px;
  }

  .feature-title {
    font-size: 24px;
    margin-bottom: 15px;
  }

  .feature-copy {
    font-size: 14px;
    line-height: 1.6;
  }

  .landing-footer {
    padding: 40px 20px 25px;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
    padding-bottom: 15px;
  }

  .footer-link {
    font-size: 13px;
  }

  .footer-info {
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
    font-size: 13px;
  }

  .footer-copyright {
    font-size: 12px;
    padding-top: 15px;
  }

  .feature-copy {
    font-size: 16px;
  }

  .login-modal-content {
    padding: 30px 20px;
  }

  .login-modal-title {
    font-size: 18px;
  }

  .price-section {
    padding: 100px 20px 60px;
  }

  .price-title {
    font-size: 32px;
  }

  .price-subtitle {
    font-size: 16px;
    margin-bottom: 40px;
  }

  .pricing-table-wrapper {
    overflow-x: auto;
    margin-bottom: 30px;
  }

  .pricing-table {
    min-width: 700px;
  }

  .pricing-table th {
    padding: 16px 12px;
    font-size: 14px;
  }

  .pricing-table th:first-child {
    padding-left: 16px;
  }

  .pricing-feature-name {
    padding: 14px 16px;
    font-size: 14px;
  }

  .pricing-plan-value {
    padding: 14px 12px;
    font-size: 14px;
  }

  .pricing-plan-price {
    padding: 16px 12px;
    font-size: 16px;
  }

  .pricing-plan-price.pricing-plan-premium {
    font-size: 18px;
  }

  .pricing-plan-action {
    padding: 16px 12px;
  }

  .btn-pricing {
    padding: 10px 20px;
    font-size: 14px;
    max-width: 100%;
  }

  .pricing-notice {
    padding: 24px 20px;
  }

  .pricing-notice-title {
    font-size: 18px;
    margin-bottom: 16px;
  }

  .pricing-notice-list li {
    font-size: 14px;
    padding: 8px 0;
    padding-left: 20px;
  }
}

/* 전자책 원고 작성 화면 */
.edit-script-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: white;
  border-bottom: 1px solid #e0e0e0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.edit-script-header-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.edit-script-header-left {
  flex: 0 0 auto;
}

.edit-script-logo {
  font-size: 24px;
  font-weight: 700;
  color: #667eea;
  margin: 0;
}

.edit-script-header-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 16px;
  color: #333;
}

.edit-script-header-center .btn-select-chapter {
  margin-left: 8px;
}

.current-chapter-name,
.current-section-name {
  font-weight: 500;
}

.breadcrumb-separator {
  color: #999;
  margin: 0 5px;
}

.edit-script-header-right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 15px;
}

.btn-select-chapter {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.btn-select-chapter:hover {
  opacity: 0.7;
}

.btn-select-chapter img {
  width: 20px;
  height: 20px;
}

.btn-header {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-back {
  background: #f5f5f5;
  color: #666;
}

.btn-back:hover {
  background: #e8e8e8;
}

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

.btn-save:hover {
  background: #5568d3;
}

.edit-script-container {
  min-height: calc(100vh - 70px);
  background: #fafafa;
  padding: 40px;
}

.edit-script-content {
  max-width: 1000px;
  margin: 0 auto;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.content-textarea {
  width: 100%;
  min-height: calc(100vh - 200px);
  padding: 40px;
  border: none;
  outline: none;
  font-size: 16px;
  line-height: 1.8;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  resize: vertical;
  color: #333;
}

.content-textarea::placeholder {
  color: #999;
}

/* 목차 선택 모달 */
.chapter-select-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
}

.chapter-select-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.chapter-select-modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.chapter-select-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 30px;
  border-bottom: 1px solid #e0e0e0;
}

.chapter-select-modal-header h2 {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.btn-close-modal {
  background: none;
  border: none;
  font-size: 32px;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: color 0.2s;
}

.btn-close-modal:hover {
  color: #333;
}

.chapter-select-modal-body {
  padding: 20px 30px;
  overflow-y: auto;
  flex: 1;
}

.chapter-select-item {
  margin-bottom: 10px;
}

.chapter-select-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  background: #f8f8f8;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.chapter-select-header:hover {
  background: #f0f0f0;
}

.chapter-select-toggle {
  font-size: 12px;
  color: #666;
  user-select: none;
  width: 20px;
  text-align: center;
}

.chapter-select-name {
  flex: 1;
  font-weight: 500;
  color: #333;
}

.prologue-badge {
  background: #667eea;
  color: white;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 500;
}

.chapter-select-sections {
  display: none;
  padding: 10px 0 10px 30px;
}

.section-select-item {
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.2s;
  margin-bottom: 5px;
}

.section-select-item:hover {
  background: #f5f5f5;
}

.section-select-item.active {
  background: #e8edff;
  color: #667eea;
  font-weight: 500;
}

.section-select-name {
  color: #666;
  font-size: 14px;
}

.section-select-item.active .section-select-name {
  color: #667eea;
}

/* 반응형 - 원고 작성 화면 */
@media (max-width: 768px) {
  .edit-script-header-content {
    padding: 0 20px;
    height: 60px;
  }

  .edit-script-logo {
    font-size: 20px;
  }

  .edit-script-header-center {
    font-size: 14px;
    gap: 5px;
  }

  .breadcrumb-separator {
    margin: 0 3px;
  }

  .btn-header {
    padding: 8px 15px;
    font-size: 14px;
  }

  .edit-script-container {
    padding: 20px;
  }

  .content-textarea {
    padding: 20px;
    font-size: 15px;
    min-height: calc(100vh - 160px);
  }

  .chapter-select-modal-content {
    width: 95%;
    max-height: 90vh;
  }

  .chapter-select-modal-header {
    padding: 15px 20px;
  }

  .chapter-select-modal-header h2 {
    font-size: 18px;
  }

  .chapter-select-modal-body {
    padding: 15px 20px;
  }
}

/* 편집 메뉴 오버레이 */
.edit-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.3);
}

.edit-menu-content {
  position: absolute;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  padding: 8px;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.edit-menu-item {
  padding: 12px 16px;
  background: white;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  color: #333;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
}

.edit-menu-item:hover {
  background: #f5f5f5;
  color: #667eea;
}

.edit-menu-item:active {
  background: #e8e8e8;
}

/* 마이페이지 스타일 */
.mypage-section {
  margin-bottom: 50px;
}

.mypage-section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 15px;
}

.mypage-section .section-title {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  text-align: left;
  margin: 0;
}

.btn-logout {
  display: inline-block;
  padding: 8px 16px;
  background-color: #f5f5f5;
  color: #666;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  transition: background-color 0.2s, color 0.2s;
}

.btn-logout:hover {
  background-color: #e0e0e0;
  color: #333;
}

.info-card {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.info-row {
  display: flex;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #f0f0f0;
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  flex: 0 0 200px;
  font-size: 15px;
  font-weight: 600;
  color: #666;
}

.info-value {
  flex: 1;
  font-size: 15px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 10px;
}

.email-display {
  display: inline;
  margin-right: 8px;
}

.btn-edit-email {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
  vertical-align: middle;
  margin-left: 4px;
}

.btn-edit-email:hover {
  opacity: 0.7;
}

.btn-edit-email:active {
  opacity: 0.5;
}

.edit-icon {
  width: 18px;
  height: 18px;
  display: block;
}

.email-edit-container {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.email-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 15px;
  color: #333;
  outline: none;
  transition: border-color 0.2s;
}

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

.btn-save-email {
  padding: 8px 16px;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.btn-save-email:hover {
  background: #5568d3;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

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

.plan-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

.plan-free {
  background: #f0f0f0;
  color: #666;
}

.plan-premium {
  background: #f0f4ff;
  color: #667eea;
}

.usage-description {
  font-size: 14px;
  color: #999;
  margin-bottom: 20px;
}

.usage-table-wrapper {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

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

.usage-table thead {
  background: #f8f9fa;
}

.usage-table th {
  padding: 16px 20px;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  color: #333;
  border-bottom: 2px solid #e0e0e0;
}

.usage-table th:first-child {
  padding-left: 24px;
}

.usage-table th:last-child {
  padding-right: 24px;
}

.usage-table tbody tr {
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s;
}

.usage-table tbody tr:hover {
  background: #fafafa;
}

.usage-table tbody tr:last-child {
  border-bottom: none;
}

.usage-table td {
  padding: 16px 20px;
  font-size: 15px;
  color: #666;
}

.usage-table td:first-child {
  padding-left: 24px;
  color: #333;
  font-weight: 500;
}

.usage-table td:last-child {
  padding-right: 24px;
}

.usage-table .text-right {
  text-align: right;
  font-family: "Courier New", monospace;
  color: #333;
}

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

.usage-table .text-center {
  text-align: center;
  color: #999;
  font-style: italic;
}

.load-more-container {
  text-align: center;
  margin-top: 30px;
}

.btn-load-more {
  padding: 12px 40px;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-load-more:hover {
  background: #5568d3;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

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

.withdraw-container {
  text-align: right;
  margin-top: 40px;
  padding-top: 20px;
}

.btn-withdraw {
  background: none;
  border: none;
  color: #999;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}

.btn-withdraw:hover {
  color: #666;
}

.btn-withdraw:active {
  color: #333;
}

/* 반응형 디자인 - 마이페이지 */
@media (max-width: 768px) {
  .mypage-section {
    margin-bottom: 40px;
  }

  .mypage-section .section-title {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 12px;
  }

  .info-card {
    padding: 20px;
  }

  .info-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 0;
  }

  .info-label {
    flex: 0 0 auto;
    font-size: 14px;
  }

  .info-value {
    flex: 1;
    font-size: 14px;
  }

  .usage-table-wrapper {
    overflow-x: auto;
  }

  .usage-table {
    min-width: 600px;
  }

  .usage-table th,
  .usage-table td {
    padding: 12px 15px;
    font-size: 14px;
  }

  .usage-table th:first-child,
  .usage-table td:first-child {
    padding-left: 16px;
  }

  .usage-table th:last-child,
  .usage-table td:last-child {
    padding-right: 16px;
  }

  .btn-load-more {
    padding: 10px 30px;
    font-size: 14px;
  }
}

/* 결제 이력 모달 */
.payment-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  padding: 20px;
  overflow-y: auto;
}

.payment-modal-content {
  background: white;
  border-radius: 12px;
  max-width: 900px;
  margin: 0 auto;
  margin-top: 50px;
  margin-bottom: 50px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 100px);
}

.payment-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  border-bottom: 2px solid #f0f0f0;
}

.payment-modal-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  margin: 0;
}

.btn-close-payment-modal {
  background: none;
  border: none;
  font-size: 36px;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
  line-height: 1;
}

.btn-close-payment-modal:hover {
  background: #f0f0f0;
  color: #333;
}

.payment-modal-body {
  padding: 30px;
  overflow-y: auto;
  flex: 1;
}

.payment-table-wrapper {
  overflow-x: auto;
}

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

.payment-table thead {
  background: #f8f9fa;
}

.payment-table th {
  padding: 16px 20px;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  color: #333;
  border-bottom: 2px solid #e0e0e0;
  white-space: nowrap;
}

.payment-table th:first-child {
  padding-left: 24px;
}

.payment-table th:last-child {
  padding-right: 24px;
}

.payment-table tbody tr {
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s;
}

.payment-table tbody tr:hover {
  background: #fafafa;
}

.payment-table tbody tr:last-child {
  border-bottom: none;
}

.payment-table td {
  padding: 16px 20px;
  font-size: 15px;
  color: #666;
}

.payment-table td:first-child {
  padding-left: 24px;
  color: #333;
  font-weight: 500;
}

.payment-table td:last-child {
  padding-right: 24px;
}

.payment-table .text-right {
  text-align: right;
  font-family: "Courier New", monospace;
  color: #333;
  font-weight: 500;
}

.payment-load-more-container {
  text-align: center;
  margin-top: 20px;
}

.btn-payment-history {
  padding: 10px 24px;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-payment-history:hover {
  background: #5568d3;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

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

/* 반응형 디자인 - 결제 이력 모달 */
@media (max-width: 768px) {
  .payment-modal-overlay {
    padding: 10px;
  }

  .payment-modal-content {
    margin-top: 20px;
    margin-bottom: 20px;
    max-height: calc(100vh - 40px);
  }

  .payment-modal-header {
    padding: 15px 20px;
  }

  .payment-modal-header h2 {
    font-size: 20px;
  }

  .btn-close-payment-modal {
    width: 32px;
    height: 32px;
    font-size: 32px;
  }

  .payment-modal-body {
    padding: 20px;
  }

  .payment-table-wrapper {
    overflow-x: auto;
  }

  .payment-table {
    min-width: 600px;
  }

  .payment-table th,
  .payment-table td {
    padding: 12px 15px;
    font-size: 14px;
  }

  .payment-table th:first-child,
  .payment-table td:first-child {
    padding-left: 16px;
  }

  .payment-table th:last-child,
  .payment-table td:last-child {
    padding-right: 16px;
  }

  .btn-payment-history {
    padding: 8px 20px;
    font-size: 13px;
  }
}
