/* ==========================================================================
   PostSync Web Tools Monetization Common Stylesheet (2026)
   - Lead Magnet Card (Inline below results)
   - Ebook Promo Card (Right Sidebar / Sticky)
   - SaaS Bridge Banner (High Conversion CTA)
   - Bank Transfer & TOC Modal
   ========================================================================== */

/* Root tokens */
:root {
  --mz-primary: #3b82f6;
  --mz-primary-dark: #1d4ed8;
  --mz-emerald: #10b981;
  --mz-emerald-dark: #059669;
  --mz-amber: #f59e0b;
  --mz-slate-900: #0f172a;
  --mz-slate-800: #1e293b;
  --mz-slate-700: #334155;
  --mz-slate-600: #475569;
  --mz-slate-200: #e2e8f0;
  --mz-slate-100: #f1f5f9;
  --mz-slate-50: #f8fafc;
  --mz-radius-md: 12px;
  --mz-radius-lg: 16px;
  --mz-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08);
  --mz-shadow-hover: 0 12px 30px -4px rgba(15, 23, 42, 0.14);
}


/* 2. SaaS Bridge Banner (Sidebar) - 임시 숨김 처리 (100% 무료 공익 툴 모드) */
.saas-bridge-card {
  display: none !important;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border-radius: var(--mz-radius-lg);
  padding: 18px 20px;
  color: #ffffff;
  margin-top: 16px;
  box-shadow: var(--mz-shadow);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.saas-bridge-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.saas-bridge-icon {
  width: 28px;
  height: 28px;
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
  font-size: 13px;
}

.saas-bridge-title {
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.saas-bridge-desc {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.45;
  margin-bottom: 12px;
}

.btn-saas-bridge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  transition: all 0.2s;
}

.btn-saas-bridge:hover {
  background: #ffffff;
  color: #0f172a;
}

/* 3. Inline Lead Magnet Card (Results Bottom) */
.lead-magnet-box,
.lead-magnet-card {
  background: linear-gradient(145deg, #f0fdf4, #ffffff);
  border: 1.5px solid #86efac;
  border-radius: var(--mz-radius-lg);
  padding: 22px 24px;
  margin-top: 24px;
  box-shadow: 0 4px 14px rgba(22, 101, 52, 0.06);
  position: relative;
  overflow: hidden;
}

.lead-magnet-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: -0.2px;
  margin-bottom: 12px;
}

.lead-magnet-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.lead-magnet-icon {
  width: 36px;
  height: 36px;
  background: #dcfce7;
  color: #15803d;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

.lead-magnet-title {
  font-size: 16px;
  font-weight: 800;
  color: #14532d;
  line-height: 1.3;
  margin-bottom: 4px;
}

.lead-magnet-desc {
  font-size: 13px;
  color: #166534;
  line-height: 1.5;
}

.lead-magnet-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.lead-magnet-input {
  flex: 1 1 220px;
  padding: 11px 14px;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  font-size: 13.5px;
  outline: none;
  background: #ffffff;
  color: var(--mz-slate-900);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.lead-magnet-input:focus {
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.btn-lead-submit {
  padding: 11px 20px;
  background: #16a34a;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
  white-space: nowrap;
}

.btn-lead-submit:hover {
  background: #15803d;
}

.lead-magnet-notice {
  font-size: 11.5px;
  color: #16a34a;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.lead-magnet-success {
  display: none;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 16px;
  border-radius: 8px;
  text-align: center;
  color: #15803d;
}

.lead-magnet-success.show {
  display: block;
}

/* 4. Modal Styles (Ebook Preview & Order) */
.mz-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.mz-modal-overlay.open {
  display: flex;
}

.mz-modal-dialog {
  background: #ffffff;
  border-radius: var(--mz-radius-lg);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35);
  animation: mzModalFadeIn 0.25s ease-out;
  position: relative;
}

@keyframes mzModalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

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

.mz-modal-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--mz-slate-900);
}

.mz-modal-close {
  background: none;
  border: none;
  color: var(--mz-slate-400);
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: color 0.2s;
}

.mz-modal-close:hover {
  color: var(--mz-slate-700);
}

.mz-modal-body {
  padding: 24px;
}


.mz-form-group {
  margin-bottom: 14px;
}

.mz-form-group label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--mz-slate-700);
  margin-bottom: 5px;
}

.mz-form-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--mz-slate-200);
  border-radius: 8px;
  font-size: 13.5px;
  outline: none;
  box-sizing: border-box;
}

.mz-form-input:focus {
  border-color: var(--mz-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}



/* ==========================================================================
   5. Universal Standard Integrated Header (Enterprise Clean Glassmorphism)
   ========================================================================== */
html {
  scrollbar-gutter: stable !important;
}

header.header-integrated {
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
  padding: 0 !important;
  height: 56px !important;
  display: flex !important;
  align-items: center !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

header.header-integrated .header-inner {
  max-width: 1280px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 16px !important;
  box-sizing: border-box !important;
}

header.header-integrated .header-left {
  display: flex !important;
  align-items: center !important;
  gap: 24px !important;
  min-width: 0 !important;
}

header.header-integrated .brand {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  text-decoration: none !important;
  flex-shrink: 0 !important;
  line-height: 1 !important;
}

header.header-integrated .brand-logo-p {
  width: 32px !important;
  height: 32px !important;
  background: #2563eb !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  font-weight: 900 !important;
  font-size: 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2) !important;
}

header.header-integrated .brand-text-wrap {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

header.header-integrated .brand-name {
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  letter-spacing: -0.4px !important;
}

header.header-integrated .brand-badge {
  font-size: 10px !important;
  font-weight: 800 !important;
  background: #ecfdf5 !important;
  color: #047857 !important;
  border: 1px solid rgba(167, 243, 208, 0.9) !important;
  padding: 2px 6px !important;
  border-radius: 6px !important;
  line-height: 1 !important;
}

header.header-integrated .header-tools-nav {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  overflow-x: auto !important;
  white-space: nowrap !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: none !important;
  padding: 2px 0 !important;
}

header.header-integrated .header-tools-nav::-webkit-scrollbar {
  display: none !important;
}

header.header-integrated .nav-item {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 6px 12px !important;
  height: 32px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #475569 !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
  line-height: 1 !important;
}

header.header-integrated .nav-item i {
  width: 14px !important;
  text-align: center !important;
  font-size: 13px !important;
  color: #94a3b8 !important;
}

header.header-integrated .nav-item:hover {
  background: rgba(0, 0, 0, 0.04) !important;
  color: #0f172a !important;
}

header.header-integrated .nav-item:hover i {
  color: #475569 !important;
}

header.header-integrated .nav-item.active {
  background: #eff6ff !important;
  color: #2563eb !important;
  font-weight: 700 !important;
}

header.header-integrated .nav-item.active i {
  color: #2563eb !important;
}

header.header-integrated .header-right-actions {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
}

header.header-integrated .btn-head-tools {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 6px 12px !important;
  height: 32px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #475569 !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  text-decoration: none !important;
  transition: all 0.15s !important;
  line-height: 1 !important;
}

header.header-integrated .btn-head-tools:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

header.header-integrated .btn-head-cta {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 6px 14px !important;
  height: 32px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  background: #2563eb !important;
  border: none !important;
  text-decoration: none !important;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.2) !important;
  transition: all 0.15s !important;
  line-height: 1 !important;
}

header.header-integrated .btn-head-cta:hover {
  background: #1d4ed8 !important;
}

@media (max-width: 640px) {
  header.header-integrated .btn-head-tools {
    display: none !important;
  }
}

/* ==========================================================================
   6. Universal Standard Integrated Footer (Pixel-Perfect Unified)
   ========================================================================== */
footer.footer-integrated {
  text-align: center !important;
  padding: 44px 20px 48px 20px !important;
  color: #64748b !important;
  font-size: 12px !important;
  border-top: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
  margin-top: 60px !important;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

footer.footer-integrated .footer-inner {
  max-width: 860px !important;
  margin: 0 auto !important;
  padding: 0 16px !important;
  box-sizing: border-box !important;
}

footer.footer-integrated .footer-disclaimer {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  padding: 12px 18px !important;
  margin-bottom: 20px !important;
  text-align: left !important;
  font-size: 12px !important;
  color: #475569 !important;
  line-height: 1.65 !important;
}

footer.footer-integrated .footer-disclaimer strong {
  color: #1e293b !important;
}

footer.footer-integrated .footer-links {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 16px !important;
  flex-wrap: wrap !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  margin-bottom: 12px !important;
}

footer.footer-integrated .footer-links a {
  color: #334155 !important;
  text-decoration: none !important;
  transition: color 0.15s !important;
}

footer.footer-integrated .footer-links a:hover {
  color: #2563eb !important;
}

footer.footer-integrated .footer-links .sep {
  color: #cbd5e1 !important;
}

footer.footer-integrated .footer-contact {
  color: #64748b !important;
  font-size: 12px !important;
  margin-bottom: 8px !important;
}

footer.footer-integrated .footer-contact a {
  color: #2563eb !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

footer.footer-integrated .footer-copyright {
  color: #94a3b8 !important;
  font-size: 11.5px !important;
}

