
body { margin: 0; padding: 0; font-family: var(--vcard-font, sans-serif); background-color: #ffffff; color: var(--text-color, #111827); display: flex; justify-content: center; min-height: 100vh; }
.vcard-container { width: 100%; max-width: 480px; background-color: var(--vcard-bg, #f3f4f6); border: 0.1rem solid var(--vcard-color, #3780A0); min-height: 100vh; box-shadow: 0 0 20px rgba(0,0,0,0.05); overflow: hidden; }
.vcard-preview-header { height: 200px; background-color: var(--vcard-color); position: relative; border-bottom-left-radius: 30px; border-bottom-right-radius: 30px; border-bottom: 0.1rem solid var(--vcard-color, #3780A0); box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); }
.vcard-preview-avatar { width: 120px; height: 120px; border-radius: 50%; border: 0.1rem solid var(--vcard-color); position: absolute; bottom: -60px; left: 50%; transform: translateX(-50%); background-color: #e5e7eb; display: flex; align-items: center; justify-content: center; font-size: 3rem; color: #9ca3af; overflow: hidden; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); }
.avatar-img { width: 100%; height: 100%; object-fit: cover; }
.vcard-preview-body { padding: 80px 20px 40px; text-align: center; }
.vcard-preview-name { font-size: var(--title-size, 1.5rem); color: var(--title-color, #111827); font-weight: 700; margin: 0 0 0.25rem; }
.vcard-preview-title { font-size: var(--text-size, 1rem); color: var(--title-color, #6b7280); margin-bottom: 0.25rem; }
.vcard-preview-company { font-size: var(--text-size, 1rem); font-weight: 600; color: var(--vcard-color); margin-bottom: 1.5rem; }
.vcard-preview-bio { font-size: var(--text-size, 1rem); color: var(--text-color, #4b5563); margin-bottom: 2rem; line-height: 1.6; text-align: left; background: var(--vcard-card-bg, #ffffff); padding: 15px; border-radius: 12px; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); }
.vcard-preview-bio a, .quill-content a, .featured-text a { color: var(--vcard-color); text-decoration: underline; }
.quill-content ul { list-style-type: disc; padding-left: 1.5rem; margin-top: 0.5rem; margin-bottom: 0.5rem; }
.quill-content ol { list-style-type: decimal; padding-left: 1.5rem; margin-top: 0.5rem; margin-bottom: 0.5rem; }
.quill-content li { margin-bottom: 0.25rem; }
.quill-content p { margin-bottom: 0.5rem; }
.ql-align-center { text-align: center; }
.ql-align-right { text-align: right; }
.ql-align-justify { text-align: justify; }
.vcard-preview-actions { display: flex; justify-content: center; gap: 10px; margin-top: 2rem; margin-bottom: 2rem; }
.vcard-preview-btn { background-color: var(--vcard-color); border: none; color: #fff; padding: 12px 24px; border-radius: 9999px; font-size: var(--text-size, 0.9rem); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; transition: opacity 0.2s; box-sizing: border-box; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); }
.vcard-preview-btn:hover { opacity: 0.9; }
.vcard-preview-links { display: flex; flex-direction: column; gap: 12px; margin-bottom: 2.5rem; text-align: left; }
.vcard-link-wrapper { display: flex; gap: 10px; }
.vcard-preview-link-item { flex: 1; display: flex; align-items: center; gap: 15px; padding: 15px; background-color: var(--vcard-card-bg, #ffffff); border-radius: 12px; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); border: 1px solid rgba(0,0,0,0.05); color: var(--text-color, #374151); text-decoration: none; }
.vcard-action-btn { width: 60px; display: flex; align-items: center; justify-content: center; background: var(--vcard-card-bg, #ffffff); color: var(--vcard-color); border-radius: 12px; text-decoration: none; font-size: var(--icon-size, 1.2rem); transition: background 0.2s; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); border: 1px solid rgba(0,0,0,0.05); }
.vcard-action-btn:hover { opacity: 0.85; }
.vcard-preview-link-icon { width: 44px; height: 44px; border-radius: 50%; background-color: var(--vcard-color); color: var(--icon-color, #ffffff); display: flex; align-items: center; justify-content: center; font-size: var(--icon-size, 1.2rem); flex-shrink: 0; }
.label { font-size: 0.75rem; color: var(--title-color, #6b7280); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 2px; font-weight: 600; }
.value { font-weight: 500; font-size: 1rem; word-break: break-word; color: var(--text-color, #111827); }
.section-title-label { font-size: calc(var(--title-size) * 0.85); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 15px !important; color: var(--title-color, #9ca3af); font-weight: 700; text-align: center; }
.vcard-preview-social { display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; padding: 8px 0 14px;}
.vcard-preview-social-link { color: #374151; font-size: calc(var(--icon-size, 1.2rem) * 1.2); transition: transform 0.2s; display: inline-flex; align-items: center; justify-content: center; width: 45px; height: 45px; background: var(--vcard-card-bg, #ffffff); border-radius: 50%; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); border: 1px solid rgba(0,0,0,0.05); overflow: hidden; position: relative; }
.vcard-preview-social-link svg { width: 22px; height: 22px; max-width: 22px; max-height: 22px; fill: currentColor; display: block; }
.vcard-preview-social-link i { font-size: var(--icon-size, 1.2rem); }
.vcard-preview-social-link:hover { transform: translateY(-3px); }
.vcard-featured-block { background: var(--vcard-card-bg, #ffffff); border: 1px solid rgba(0,0,0,0.05); border-radius: 16px; padding: 20px; margin-bottom: 20px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); text-align: left; }
.vcard-featured-block h3 { margin: 0 0 15px 0; font-size: var(--title-size, 1.1rem); color: var(--title-color, #111827); }
.featured-media, .featured-product-img { width: 100%; border-radius: 8px; object-fit: cover; }
.iframe-container { position: relative; width: 100%; padding-bottom: 56.25%; border-radius: 8px; overflow: hidden; }
.iframe-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.product-price-wrapper { margin: 10px 0; display: flex; align-items: center; gap: 10px; }
.price-old { text-decoration: line-through; color: var(--title-color, #9ca3af) !important; opacity: 0.7; font-size: 0.9rem; }
.product-price, .price-promo { font-size: 1.25rem; font-weight: 700; color: var(--vcard-color); }
.price-promo { color: #ef4444 !important; }
.featured-btn { width: 100%; justify-content: center; }
.embed-wrapper { width: 100%; max-width: 600px; margin: 0 auto; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #fff; }
.embed-wrapper iframe, .embed-wrapper object, .embed-wrapper embed { max-width: 100%; display: block; margin: 0 auto; }
.vcard-pdf-preview { display: block; text-decoration: none; border-radius: 12px; overflow: hidden; border: 1px solid rgba(0,0,0,0.05); background: #f8f9fa; margin-bottom: 15px; transition: transform 0.2s; }
.vcard-pdf-preview:hover { transform: scale(1.02); }
.pdf-thumb-wrapper { padding: 30px; text-align: center; color: #dc3545; }
.pdf-thumb-wrapper i { font-size: 50px; }
.pdf-thumb-wrapper span { display: block; margin-top: 10px; color: #444; font-size: 0.9rem; font-weight: 600; }

/* Modal */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); display: none; align-items: center; justify-content: center; z-index: 1000; padding: 20px; }
.modal-content { background: #fff; padding: 30px; border-radius: 24px; max-width: 320px; width: 100%; text-align: center; position: relative; box-shadow: 0 10px 25px rgba(0,0,0,0.2); }
.modal-close { position: absolute; top: 15px; right: 15px; background: #f3f4f6; border: none; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #6b7280; }
#qrcode { display: flex; justify-content: center; margin: 15px 0; padding: 15px; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; }
.share-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 15px; }
.share-btn { background: #f3f4f6; color: #374151; border: none; padding: 10px; border-radius: 12px; font-size: 0.9rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; transition: background 0.2s; box-sizing: border-box; }
.share-btn:hover { background: #e5e7eb; }
@media print {
  @page { size: auto; margin: 1cm; }
  body { margin: 0 !important; padding: 0 !important; background: white !important; }
  .vcard-container, .modal-close, .share-grid, .modal-actions, h3, .print-hidden { display: none !important; }
  .modal-overlay { 
      position: absolute !important; 
      top: 0 !important; 
      left: 0 !important; 
      width: 100% !important; 
      height: auto !important; 
      background: white !important; 
      display: block !important; 
      visibility: visible !important;
  }
  .modal-content { 
      box-shadow: none !important; 
      border: none !important; 
      width: 100% !important; 
      max-width: none !important; 
      padding: 0 !important; 
      margin: 0 !important; 
      background: white !important;
      visibility: visible !important;
  }
  .print-only-header { display: block !important; }
  #qrcode { 
      margin: 40px auto !important; 
      padding: 0 !important; 
      border: none !important; 
      visibility: visible !important;
      transform: scale(1.5);
      transform-origin: center top;
  }
  #qrcode * { visibility: visible !important; }
}
@media (max-width: 600px) {
  .section-title-label {
	font-size: calc(var(--title-size) * 0.75);
	margin-bottom: 15px !important; 
	}
}
