@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --dark: #0f172a;
  --gray-dark: #334155;
  --gray-med: #64748b;
  --gray-light: #f1f5f9;
  --border: #e2e8f0;
  --white: #ffffff;
  --success: #10b981;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, Roboto, "맑은 고딕", sans-serif;
  color: var(--dark);
  background-color: #f8fafc;
  line-height: 1.6;
}

/* 네비게이션 */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
}

.nav-container {
  max-width: 1260px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
}

.logo, .nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 19px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo a, .nav-logo a {
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  font-size: 22px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.logo-text {
  font-size: 19px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.5px;
  display: inline-flex;
  align-items: center;
}

.logo-text strong {
  font-weight: 800;
  color: #0f172a;
}

.logo-icon {
  font-size: 20px;
}

.badge-beta {
  background: #e0e7ff;
  color: #4338ca;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-menu a {
  text-decoration: none;
  color: var(--gray-dark);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.2s;
  padding: 4px 6px;
}

.nav-menu a:hover {
  color: var(--primary);
}

.nav-action {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-action * {
  white-space: nowrap;
  flex-shrink: 0;
}

/* 히어로 */
.hero {
  padding: 70px 20px 40px;
  text-align: center;
}

.hero-container {
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: #eff6ff;
  color: var(--primary);
  border: 1px solid #bfdbfe;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.gradient-text {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-green {
  background: linear-gradient(135deg, #059669 0%, #0d9488 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 17px;
  color: var(--gray-med);
  line-height: 1.6;
}

/* 변환기 카드 */
.converter-section {
  padding: 10px 20px 60px;
}

.converter-card {
  max-width: 780px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  padding: 30px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
  margin-bottom: 20px;
}

.tab-list {
  display: flex;
  gap: 10px;
  align-items: center;
}

.tab-btn {
  background: transparent;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-med);
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tab-btn:hover {
  background: #f1f5f9;
  color: var(--gray-dark);
}

.tab-btn.active-convert {
  background: #eff6ff;
  color: var(--primary);
  border-color: #bfdbfe;
}

.tab-btn.active-unlock {
  background: #ecfdf5;
  color: #059669;
  border-color: #a7f3d0;
}

.trial-tag {
  background: #fef3c7;
  color: #92400e;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
}

/* 드롭존 */
.dropzone {
  border: 2px dashed #93c5fd;
  border-radius: 14px;
  background: #f8fafc;
  padding: 45px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dropzone:hover, .dropzone.dragover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.upload-icon {
  font-size: 44px;
  margin-bottom: 10px;
}

.drop-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.drop-content p {
  color: var(--gray-med);
  font-size: 14px;
  margin-bottom: 8px;
}

.btn-link {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  font-size: 14px;
}

.drop-hint {
  font-size: 12px;
  color: #94a3b8;
}

/* 파일 선택된 뷰 */
.file-info-view {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 16px 20px;
}

.file-icon-box {
  font-size: 32px;
}

.file-details {
  flex-grow: 1;
  text-align: left;
  padding-left: 15px;
}

.file-details h4 {
  font-size: 15px;
  font-weight: 700;
}

.file-details p {
  font-size: 13px;
  color: var(--gray-med);
}

.btn-cancel {
  background: none;
  border: 1px solid #cbd5e1;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  color: var(--gray-dark);
}

/* 옵션 패널 */
.options-panel {
  margin-top: 24px;
}

.opt-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 1.3fr;
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 680px) {
  .opt-grid {
    grid-template-columns: 1fr;
  }
}

.opt-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.opt-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.opt-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.opt-card-header label {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  white-space: nowrap;
}

.opt-sub {
  font-size: 11px;
  color: #94a3b8;
  white-space: nowrap;
}

.range-box, .size-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.opt-num-input {
  width: 64px;
  height: 38px;
  padding: 0 8px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  color: #0f172a;
  background: #ffffff;
  outline: none;
  transition: all 0.2s;
  box-sizing: border-box;
}

.opt-num-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.range-unit {
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  white-space: nowrap;
}

.range-sep {
  font-size: 15px;
  font-weight: 700;
  color: #94a3b8;
  margin: 0 2px;
}

.select-box {
  width: 100%;
}

.opt-select {
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  background: #ffffff;
  cursor: pointer;
  outline: none;
  box-sizing: border-box;
  transition: all 0.2s;
}

.opt-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.btn-start {
  width: 100%;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: var(--white);
  border: none;
  padding: 16px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  transition: transform 0.1s, box-shadow 0.2s;
}

.btn-start:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

/* 진행 상황 */
.progress-panel {
  margin-top: 25px;
  background: #f8fafc;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}

.progress-bar-bg {
  height: 10px;
  background: #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 15px;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #10b981);
  transition: width 0.3s ease;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--gray-med);
}

.step-item.active {
  color: var(--primary);
  font-weight: 700;
}

/* 완료 패널 */
.success-panel {
  text-align: center;
  padding: 30px 10px 10px;
}

.success-icon {
  font-size: 48px;
  margin-bottom: 10px;
}

.success-panel h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 6px;
}

.success-panel p {
  color: var(--gray-med);
  margin-bottom: 24px;
}

.success-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.btn-download {
  background: #10b981;
  color: var(--white);
  padding: 14px 28px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  display: inline-block;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  transition: background 0.2s;
}

.btn-download:hover {
  background: #059669;
}

.btn-secondary {
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--gray-dark);
  padding: 14px 20px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}

/* PDF 잠금 해제 전용 스타일 */
.unlock-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 20px;
}

.unlock-banner-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.unlock-banner-text h4 {
  font-size: 14px;
  font-weight: 700;
  color: #065f46;
  margin-bottom: 4px;
}

.unlock-banner-text p {
  font-size: 12px;
  color: #047857;
  line-height: 1.4;
  margin: 0;
}

.unlock-dropzone {
  border-color: #6ee7b7;
  background: #f0fdf4;
}

.unlock-dropzone:hover, .unlock-dropzone.dragover {
  border-color: #059669;
  background: #d1fae5;
}

.unlock-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 28px;
  border-top: 1px solid var(--border);
  padding-top: 22px;
}

.unlock-feature-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px;
  transition: all 0.2s;
}

.unlock-feature-card:hover {
  border-color: #cbd5e1;
  background: #ffffff;
}

.ufc-icon {
  font-size: 22px;
  margin-bottom: 6px;
}

.unlock-feature-card h5 {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
}

.unlock-feature-card p {
  font-size: 11px;
  color: #64748b;
  line-height: 1.45;
  margin: 0;
}

/* 기능 카드 */
.features-section, .pricing-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 20px;
}

.section-title {
  text-align: center;
  margin-bottom: 45px;
}

.section-title h2 {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 10px;
}

.section-title p {
  color: var(--gray-med);
  font-size: 16px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 30px;
  box-shadow: var(--shadow-sm);
}

.feat-icon {
  font-size: 32px;
  margin-bottom: 15px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--gray-med);
  font-size: 14px;
  line-height: 1.6;
}

/* 요금제 */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.pricing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 35px 25px;
  position: relative;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.pricing-card.popular {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-lg);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}

.plan-header h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.price {
  font-size: 32px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 4px;
}

.price span {
  font-size: 14px;
  color: var(--gray-med);
  font-weight: 500;
}

.plan-desc {
  font-size: 13px;
  color: var(--gray-med);
  margin-bottom: 20px;
}

.plan-features {
  list-style: none;
  margin-bottom: 25px;
  flex-grow: 1;
}

.plan-features li {
  font-size: 14px;
  margin-bottom: 10px;
  color: var(--gray-dark);
}

.btn-plan-primary {
  width: 100%;
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

.btn-plan-outline {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--dark);
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  display: block;
}

/* 푸터 */
.footer {
  border-top: 1px solid var(--border);
  background: var(--white);
  padding: 40px 20px;
  margin-top: 40px;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand p, .footer-copy p {
  font-size: 13px;
  color: var(--gray-med);
}

.footer-biz-details {
  margin-top: 12px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.7;
}

.footer-biz-details span {
  display: inline-block;
}

.footer-biz-details span strong {
  color: #334155;
  font-weight: 600;
}

.footer-biz-details .divider {
  color: #cbd5e1;
  margin: 0 6px;
}

/* ========================================================
   하이브리드 요금제 탭 & 결제 모달 스타일
======================================================== */
.hybrid-tabs-container {
  display: flex;
  justify-content: center;
  margin-bottom: 36px;
}

.hybrid-tabs-pill {
  display: inline-flex;
  background: #e2e8f0;
  padding: 5px;
  border-radius: 30px;
  gap: 6px;
}

.hybrid-tab-btn {
  border: none;
  background: transparent;
  padding: 10px 24px;
  border-radius: 25px;
  font-size: 15px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hybrid-tab-btn.active {
  background: #ffffff;
  color: #2563eb;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.hybrid-tab-btn .tab-badge {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 10px;
  background: #dbeafe;
  color: #1d4ed8;
}

.hybrid-tab-btn.active .tab-badge {
  background: #2563eb;
  color: #ffffff;
}

.pricing-unit-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #2563eb;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 3px 8px;
  border-radius: 6px;
  margin-top: 6px;
}

/* 결제 모달 */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-in-out;
}

.modal-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #ffffff;
  width: 100%;
  max-width: 580px;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  transform: translateY(15px);
  transition: transform 0.2s ease-in-out;
}

.modal-backdrop.show .modal-content {
  transform: translateY(0);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
}

.modal-header h3 {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 22px;
  color: #94a3b8;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  border-radius: 6px;
  transition: color 0.15s;
}

.modal-close-btn:hover {
  color: #0f172a;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
}

.user-status-strip {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-bottom: 20px;
}

.pkg-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}

.pkg-card-radio {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  background: #ffffff;
}

.pkg-card-radio:hover {
  border-color: #93c5fd;
  background: #f8fafc;
}

.pkg-card-radio.selected {
  border-color: #2563eb;
  background: #eff6ff;
}

.pkg-info-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pkg-radio-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.pkg-card-radio.selected .pkg-radio-dot {
  border-color: #2563eb;
}

.pkg-card-radio.selected .pkg-radio-dot::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2563eb;
}

.pkg-titles {
  display: flex;
  flex-direction: column;
}

.pkg-name {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pkg-desc {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}

.pkg-discount-badge {
  background: #fee2e2;
  color: #dc2626;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
}

.pkg-price-right {
  text-align: right;
}

.pkg-price {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
}

.pkg-unit {
  font-size: 11px;
  color: #2563eb;
  font-weight: 600;
}

.pay-methods-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}

.pay-method-item {
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.pay-method-item:hover {
  border-color: #93c5fd;
}

.pay-method-item.selected {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
}

.pay-method-icon {
  font-size: 20px;
}

.order-summary-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  font-size: 13px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  color: #64748b;
}

.summary-row.total {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #cbd5e1;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

.btn-submit-pay {
  width: 100%;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  border: none;
  padding: 16px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  transition: all 0.15s ease;
}

.btn-submit-pay:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.45);
}

.btn-submit-pay:disabled {
  background: #94a3b8;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

/* ========================================================
   모바일 & 태블릿 반응형 스타일 (Mobile Responsive)
======================================================== */
@media (max-width: 768px) {
  /* 네비게이션: 모바일 최적화 2열/가로 스크롤 레이아웃 */
  .navbar {
    padding: 0;
  }
  
  .nav-container {
    flex-direction: column;
    align-items: stretch;
    padding: 10px 14px;
    gap: 10px;
  }

  .nav-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  /* 네비게이션 메뉴: 모바일 가로 스크롤 */
  .nav-menu {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
    gap: 8px;
    justify-content: flex-start;
  }
  
  .nav-menu::-webkit-scrollbar {
    display: none;
  }
  
  .nav-menu a {
    font-size: 13px;
    padding: 5px 10px;
    background: #f1f5f9;
    border-radius: 6px;
    flex-shrink: 0;
  }
  
  .nav-action {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .nav-action::-webkit-scrollbar {
    display: none;
  }

  #userBadge {
    font-size: 11px !important;
    padding: 4px 8px !important;
  }

  #openChargeModalBtn, #adminLinkBtn, #switchUserBtn {
    font-size: 11px !important;
    padding: 4px 8px !important;
  }

  /* 히어로 섹션 */
  .hero {
    padding: 34px 16px 20px;
  }

  .hero-title {
    font-size: 25px !important;
    line-height: 1.35 !important;
    margin-bottom: 10px !important;
  }

  .hero-subtitle {
    font-size: 13px !important;
    line-height: 1.55 !important;
    word-break: keep-all;
  }

  .hero-badge {
    font-size: 11px !important;
    padding: 4px 10px !important;
    margin-bottom: 12px !important;
  }

  /* 변환 카드 */
  .converter-section {
    padding: 0 10px 36px;
  }

  .converter-card {
    padding: 16px 12px;
    border-radius: 14px;
  }

  /* 옵션 패널 그리드: 모바일 1열 */
  .opt-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .btn-start {
    font-size: 15px !important;
    padding: 14px !important;
  }

  /* 드롭존 */
  .dropzone {
    padding: 24px 12px;
  }

  .upload-icon-circle {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }

  .drop-prompt h3 {
    font-size: 15px !important;
  }

  .btn-browse {
    width: 100%;
    padding: 12px !important;
  }

  /* 하이브리드 요금제 탭 */
  .hybrid-tabs-container {
    margin-bottom: 24px;
  }

  .hybrid-tabs-pill {
    width: 100%;
    display: flex;
  }

  .hybrid-tab-btn {
    flex: 1;
    padding: 8px 6px;
    font-size: 12px;
    justify-content: center;
  }

  .hybrid-tab-btn .tab-badge {
    display: none;
  }

  /* 결제 모달 모바일 최적화 */
  .modal-content {
    max-width: 95vw !important;
    border-radius: 16px;
    max-height: 92vh;
  }

  .modal-header {
    padding: 14px 16px;
  }

  .modal-body {
    padding: 14px;
  }

  .pay-methods-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  .pkg-card-radio {
    padding: 10px 12px;
  }

  .pkg-name {
    font-size: 13px;
  }

  .pkg-price {
    font-size: 14px;
  }

  .btn-submit-pay {
    padding: 13px;
    font-size: 15px;
  }

  /* 기능 섹션 및 요금제 카드 그리드: 모바일 1열 */
  .feature-grid, .pricing-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .pricing-card {
    padding: 24px 18px;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}

/* ========================================================
   주요 기능(Features) & 요금제(Pricing) 상세 페이지 전용 스타일
======================================================== */
.nav-menu a.active {
  color: var(--primary) !important;
  font-weight: 700 !important;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 2px;
}

/* 워크플로우 3단계 */
.workflow-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px 70px;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  position: relative;
}

.workflow-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 24px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.workflow-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #93c5fd;
}

.workflow-step-badge {
  display: inline-block;
  background: #eff6ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
  border: 1px solid #bfdbfe;
}

.workflow-icon {
  font-size: 38px;
  margin-bottom: 14px;
}

.workflow-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.workflow-card p {
  font-size: 14px;
  color: var(--gray-med);
  line-height: 1.6;
}

/* Before vs After 비교 표 */
.comparison-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px 70px;
}

.comparison-table-wrapper {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comparison-table th, .comparison-table td {
  padding: 16px 20px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}

.comparison-table th {
  background: #f8fafc;
  font-weight: 700;
  color: #334155;
}

.comparison-table th.highlight-col {
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 800;
}

.comparison-table td.highlight-col {
  background: #f8fbff;
  color: #1e3a8a;
  font-weight: 600;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.badge-tag-win {
  background: #dcfce7;
  color: #15803d;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 6px;
}

.badge-tag-lose {
  background: #fee2e2;
  color: #b91c1c;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 6px;
}

/* FAQ 그리드 */
.faq-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(460px, 1fr));
  gap: 20px;
}

.faq-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.faq-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.faq-q-icon {
  background: #eff6ff;
  color: #2563eb;
  font-size: 13px;
  font-weight: 800;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.faq-card p {
  font-size: 14px;
  color: #475569;
  line-height: 1.65;
  padding-left: 34px;
  margin: 0;
}

/* CTA 배너 섹션 */
.cta-banner-section {
  max-width: 1100px;
  margin: 0 auto 70px;
  padding: 0 20px;
}

/* ── Modern Dark-Luxury CTA Banner Card ── */
.cta-banner-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #090d16 0%, #0f172a 45%, #1e1b4b 100%);
  color: #ffffff;
  border-radius: 28px;
  padding: 64px 36px 54px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 60px -12px rgba(15, 23, 42, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
}

/* Ambient glow accents */
.cta-banner-card::before {
  content: "";
  position: absolute;
  top: -40%;
  left: 20%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.28) 0%, rgba(99, 102, 241, 0.12) 50%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.cta-banner-card::after {
  content: "";
  position: absolute;
  bottom: -40%;
  right: 15%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.22) 0%, rgba(59, 130, 246, 0.08) 50%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.cta-banner-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.cta-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 13px;
  font-weight: 600;
  color: #93c5fd;
  margin-bottom: 22px;
  letter-spacing: -0.01em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.cta-pill-badge span.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
}

.cta-banner-card h2 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.3;
  margin-bottom: 16px;
  color: #ffffff;
}

.cta-gradient-text {
  background: linear-gradient(135deg, #60a5fa 0%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cta-banner-card p {
  font-size: 16px;
  color: #cbd5e1;
  margin-bottom: 34px;
  line-height: 1.65;
  font-weight: 400;
}

.cta-btn-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.btn-cta-main {
  background: #ffffff;
  color: #0f172a;
  padding: 15px 34px;
  border-radius: 9999px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 25px -5px rgba(255, 255, 255, 0.25), 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-cta-main svg {
  transition: transform 0.2s ease;
}

.btn-cta-main:hover {
  background: #f8fafc;
  color: #0284c7;
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -6px rgba(255, 255, 255, 0.35);
}

.btn-cta-main:hover svg {
  transform: translateX(3px);
}

.btn-cta-sub {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 15px 30px;
  border-radius: 9999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.btn-cta-sub:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

/* Trust features strip below CTA */
.cta-trust-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  color: #94a3b8;
  margin-top: 8px;
}

.cta-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cta-trust-item svg {
  color: #38bdf8;
  flex-shrink: 0;
}

.btn-cta-sub:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* 요금제 상세 비교 표 */
.plan-compare-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
}

.plan-compare-table th, .plan-compare-table td {
  padding: 14px 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}

.plan-compare-table th:first-child, .plan-compare-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: #1e293b;
}

.plan-compare-table th {
  background: #f8fafc;
  font-weight: 700;
  color: #334155;
}

.check-ok {
  color: #16a34a;
  font-weight: 800;
  font-size: 16px;
}

.check-no {
  color: #cbd5e1;
  font-size: 16px;
}

/* 반응형 모바일 조정 */
@media (max-width: 768px) {
  .faq-grid {
    grid-template-columns: 1fr !important;
  }
  .workflow-grid {
    grid-template-columns: 1fr !important;
  }
  .comparison-table-wrapper {
    overflow-x: auto;
  }
  .comparison-table, .plan-compare-table {
    min-width: 600px;
  }
}


/* 푸터 이용약관/개인정보/환불정책 링크 */
.footer-legal-links {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.footer-legal-links a {
  color: #475569;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}
.footer-legal-links a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* 결제 모달 약관 동의 체크박스 영역 (PG 심사 필수) */
.pay-agree-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #475569;
}
.pay-agree-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 600;
  color: #1e293b;
  user-select: none;
}
.pay-agree-label input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--primary);
  cursor: pointer;
}
.pay-agree-subtext {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 6px;
  line-height: 1.5;
  padding-left: 25px;
}
.pay-agree-subtext a {
  color: var(--primary);
  text-decoration: underline;
}


/* 소셜 로그인 모달 & 유저 메뉴 스타일 */
.social-login-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}
.btn-social {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  text-decoration: none;
  box-sizing: border-box;
}
.btn-social-kakao {
  background: #FEE500;
  color: #191919;
  border-color: #fada0a;
}
.btn-social-kakao:hover {
  background: #fdd800;
  box-shadow: 0 4px 12px rgba(254, 229, 0, 0.4);
}
.btn-social-google {
  background: #ffffff;
  color: #374151;
  border: 1px solid #d1d5db;
}
.btn-social-google:hover {
  background: #f9fafb;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.btn-social-demo {
  background: #f1f5f9;
  color: #475569;
  border: 1px dashed #cbd5e1;
  font-size: 13.5px;
}
.btn-social-demo:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 16px 0;
  color: #94a3b8;
  font-size: 12px;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e2e8f0;
}
.auth-divider:not(:empty)::before {
  margin-right: 10px;
}
.auth-divider:not(:empty)::after {
  margin-left: 10px;
}
.user-dropdown-wrapper {
  position: relative;
  display: inline-block;
}
.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  width: 220px;
  padding: 8px 0;
  z-index: 100;
  display: none;
}
.user-dropdown-wrapper:hover .user-dropdown-menu {
  display: block;
}
.user-dropdown-menu.show {
  display: block;
}
.user-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}
#userBadge {
  transition: all 0.15s ease;
}
#userBadge:hover {
  filter: brightness(0.96);
  transform: translateY(-1px);
}
.user-dropdown-header {
  padding: 10px 16px;
  border-bottom: 1px solid #f1f5f9;
}
.user-dropdown-header .name {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
}
.user-dropdown-header .email {
  font-size: 11px;
  color: var(--gray-med);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 13px;
  color: #334155;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  transition: background 0.15s;
}
.user-dropdown-item:hover {
  background: #f8fafc;
  color: var(--primary);
}
.user-dropdown-item.logout {
  color: #ef4444;
  border-top: 1px solid #f1f5f9;
  margin-top: 4px;
}
.user-dropdown-item.logout:hover {
  background: #fef2f2;
}


/* 토스트 알림 */
.toast-notification {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: #0f172a;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 30px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.toast-notification.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.toast-notification.admin {
  background: #3730a3;
  border: 1px solid #6366f1;
}
.toast-notification.guest {
  background: #78350f;
  border: 1px solid #d97706;
}

/* ExamFlow Brand Logo & Header Styles */
.logo img, .nav-logo img {
  height: 32px;
  width: auto;
  display: block;
  object-fit: contain;
}

#openLoginModalBtn {
  background: #047857 !important;
  color: #ffffff !important;
  border: none !important;
  padding: 7px 16px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  box-shadow: 0 2px 8px rgba(4, 120, 87, 0.25) !important;
  transition: all 0.2s ease !important;
}

#openLoginModalBtn:hover {
  background: #065f46 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(4, 120, 87, 0.35) !important;
}

