/* ==================== QR CARD CREATOR - Scoped under #section-cartevisite ==================== */

/* ===== CARD DISPLAY STYLES (from card.css) ===== */
#section-cartevisite .business-card {
  background: white;
  border-radius: 28px;
  max-width: 440px;
  width: 100%;
  overflow: visible;
  position: relative;
  box-shadow: 0 12px 48px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
}
#section-cartevisite .business-card > .card-banner { border-radius: 28px 28px 0 0; overflow: hidden; }

/* Dark style */
#section-cartevisite .card-style-dark .business-card { background: #111827; color: #f3f4f6; }
#section-cartevisite .card-style-dark .card-body { color: #f3f4f6; }
#section-cartevisite .card-style-dark .card-name { color: #ffffff; }
#section-cartevisite .card-style-dark .card-job { color: #9ca3af; }
#section-cartevisite .card-style-dark .card-description { color: #9ca3af; }
#section-cartevisite .card-style-dark .card-info li { color: #d1d5db; border-color: #1f2937; }
#section-cartevisite .card-style-dark .card-info a { color: #d1d5db; }
#section-cartevisite .card-style-dark .card-hours { background: #1f2937; border-color: #374151; }
#section-cartevisite .card-style-dark .card-hours-title { color: #f3f4f6; }
#section-cartevisite .card-style-dark .card-hours-text { color: #9ca3af; }
#section-cartevisite .card-style-dark .btn-share { background: #1f2937; color: #f3f4f6; }
#section-cartevisite .card-style-dark .card-qr p { color: #6b7280; }
#section-cartevisite .card-style-dark .card-tagline { color: #9ca3af; }

/* Bold style */
#section-cartevisite .card-style-bold .card-banner { height: 160px; }
#section-cartevisite .card-style-bold .card-name { font-size: 1.9rem; letter-spacing: -0.5px; }

/* Elegant style */
#section-cartevisite .card-style-elegant .business-card { border-radius: 4px; box-shadow: 0 4px 24px rgba(0,0,0,0.08); }
#section-cartevisite .card-style-elegant .card-name { letter-spacing: 2px; text-transform: uppercase; font-size: 1.3rem; }

/* Font styles */
#section-cartevisite .font-serif { font-family: Georgia, 'Times New Roman', serif; }
#section-cartevisite .font-serif .card-name { font-family: Georgia, 'Times New Roman', serif; }
#section-cartevisite .font-mono { font-family: 'SF Mono', 'Fira Code', monospace; }
#section-cartevisite .font-mono .card-name { font-family: 'SF Mono', 'Fira Code', monospace; }

/* Banner */
#section-cartevisite .card-banner { height: 140px; position: relative; overflow: hidden; }
#section-cartevisite .banner-wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 50px; }
#section-cartevisite .card-style-dark .banner-wave path { fill: #111827; }

#section-cartevisite .card-photo-container {
  position: absolute; top: 88px; left: 50%; transform: translateX(-50%); z-index: 10;
}
#section-cartevisite .card-photo {
  width: 104px; height: 104px; border: 4px solid white; object-fit: cover;
  background: #e5e7eb; box-shadow: 0 6px 20px rgba(0,0,0,0.15); transition: transform 0.3s;
}
#section-cartevisite .card-photo-placeholder {
  width: 104px; height: 104px; border: 4px solid white;
  background: linear-gradient(135deg, #e0e7ff, #ddd6fe);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; font-weight: 700; box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
#section-cartevisite .card-style-dark .card-photo,
#section-cartevisite .card-style-dark .card-photo-placeholder { border-color: #111827; }

/* Photo shapes */
#section-cartevisite .photo-round .card-photo,
#section-cartevisite .photo-round .card-photo-placeholder { border-radius: 50%; }
#section-cartevisite .photo-rounded .card-photo,
#section-cartevisite .photo-rounded .card-photo-placeholder { border-radius: 20px; }
#section-cartevisite .photo-square .card-photo,
#section-cartevisite .photo-square .card-photo-placeholder { border-radius: 8px; }

/* Card body */
#section-cartevisite .card-body { padding: 64px 28px 28px; text-align: center; }
#section-cartevisite .card-name { font-size: 1.7rem; font-weight: 800; color: #0f172a; margin-bottom: 4px; line-height: 1.2; }
#section-cartevisite .card-job { font-size: 1rem; color: #64748b; margin-bottom: 2px; }
#section-cartevisite .card-company { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
#section-cartevisite .card-tagline { font-size: 0.9rem; color: #94a3b8; font-style: italic; margin-bottom: 14px; padding: 0 16px; }
#section-cartevisite .card-description { font-size: 0.92rem; color: #64748b; line-height: 1.6; margin-bottom: 20px; padding: 0 8px; }

/* Hours */
#section-cartevisite .card-hours { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 14px; padding: 16px; margin-bottom: 20px; text-align: left; }
#section-cartevisite .card-hours-title { font-weight: 700; font-size: 0.9rem; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; color: #0f172a; }
#section-cartevisite .card-hours-text { font-family: inherit; font-size: 0.85rem; color: #64748b; line-height: 1.6; margin: 0; white-space: pre-wrap; }

/* Contact info */
#section-cartevisite .card-info { list-style: none; text-align: left; margin-bottom: 20px; padding: 0; }
#section-cartevisite .card-info li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid #f1f5f9; font-size: 0.92rem; color: #374151; }
#section-cartevisite .card-info li:last-child { border-bottom: none; }
#section-cartevisite .card-info .info-icon {
  width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center;
  justify-content: center; font-size: 1.15rem; flex-shrink: 0; color: white; box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
#section-cartevisite .card-info a { color: inherit; text-decoration: none; word-break: break-word; font-weight: 500; }

/* Socials */
#section-cartevisite .card-socials { display: flex; justify-content: center; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
#section-cartevisite .social-btn {
  width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center;
  justify-content: center; color: white; text-decoration: none; font-size: 1.1rem;
  font-weight: 700; transition: transform 0.2s; box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
#section-cartevisite .social-btn.facebook { background: #1877f2; }
#section-cartevisite .social-btn.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
#section-cartevisite .social-btn.linkedin { background: #0a66c2; }
#section-cartevisite .social-btn.tiktok { background: #000000; }
#section-cartevisite .social-btn.whatsapp { background: #25d366; }
#section-cartevisite .social-btn.youtube { background: #ff0000; }
#section-cartevisite .social-btn.twitter { background: #000000; }
#section-cartevisite .social-btn.snapchat { background: #fffc00; color: #000; }
#section-cartevisite .social-btn.telegram { background: #229ed9; }

/* CTA button */
#section-cartevisite .card-cta-btn {
  display: block; padding: 16px 24px; border-radius: 14px; font-size: 1.05rem;
  font-weight: 700; text-align: center; text-decoration: none; color: white;
  margin-bottom: 20px; box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* Action buttons */
#section-cartevisite .card-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
#section-cartevisite .card-actions a,
#section-cartevisite .card-actions button {
  flex: 1; min-width: 100px; padding: 12px 14px; border-radius: 14px; font-size: 0.88rem;
  font-weight: 600; text-align: center; text-decoration: none; cursor: pointer; border: none;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
#section-cartevisite .btn-save-contact { background: linear-gradient(135deg, #2563eb, #1e40af); color: white; box-shadow: 0 2px 12px rgba(0,0,0,0.12); }
#section-cartevisite .btn-share { background: #f1f5f9; color: #374151; }

/* QR code in card */
#section-cartevisite .card-qr { margin-top: 16px; text-align: center; padding: 16px; background: #f8fafc; border-radius: 16px; }
#section-cartevisite .card-style-dark .card-qr { background: #1f2937; }
#section-cartevisite .card-qr img { border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
#section-cartevisite .card-qr p { font-size: 0.78rem; color: #94a3b8; margin-top: 8px; }

/* ===== LIVE PREVIEW OVERRIDES ===== */
#section-cartevisite .live-preview .business-card { box-shadow: none; border-radius: 0; max-width: 100%; }
#section-cartevisite .live-preview .card-banner { height: 120px; }
#section-cartevisite .live-preview .card-photo-container { top: 76px; }
#section-cartevisite .live-preview .card-photo,
#section-cartevisite .live-preview .card-photo-placeholder { width: 88px; height: 88px; font-size: 1.8rem; border-width: 3px; }
#section-cartevisite .live-preview .card-body { padding: 52px 20px 20px; }
#section-cartevisite .live-preview .card-name { font-size: 1.3rem; font-weight: 800; }
#section-cartevisite .live-preview .card-job { font-size: 0.88rem; }
#section-cartevisite .live-preview .card-company { font-size: 0.92rem; margin-bottom: 4px; }
#section-cartevisite .live-preview .card-tagline { font-size: 0.82rem; margin-bottom: 12px; padding: 0 12px; }
#section-cartevisite .live-preview .card-description { font-size: 0.82rem; margin-bottom: 14px; line-height: 1.5; }
#section-cartevisite .live-preview .card-hours { padding: 12px; margin-bottom: 14px; border-radius: 12px; }
#section-cartevisite .live-preview .card-hours-title { font-size: 0.82rem; margin-bottom: 6px; }
#section-cartevisite .live-preview .card-hours-text { font-size: 0.78rem; }
#section-cartevisite .live-preview .card-info { margin-bottom: 14px; }
#section-cartevisite .live-preview .card-info li { padding: 8px 0; font-size: 0.82rem; gap: 10px; }
#section-cartevisite .live-preview .card-info .info-icon { width: 32px; height: 32px; border-radius: 9px; font-size: 0.95rem; }
#section-cartevisite .live-preview .card-info a { font-size: 0.82rem; }
#section-cartevisite .live-preview .card-socials { gap: 7px; margin-bottom: 14px; }
#section-cartevisite .live-preview .social-btn { width: 36px; height: 36px; border-radius: 11px; font-size: 0.75rem; }
#section-cartevisite .live-preview .card-cta-btn { padding: 12px 18px; font-size: 0.9rem; margin-bottom: 14px; border-radius: 12px; }
#section-cartevisite .live-preview .card-actions { gap: 6px; margin-bottom: 0; }
#section-cartevisite .live-preview .card-actions a,
#section-cartevisite .live-preview .card-actions button { padding: 9px 12px; font-size: 0.78rem; border-radius: 11px; min-width: 0; gap: 4px; }
#section-cartevisite .live-preview .card-actions svg { width: 13px; height: 13px; }

/* Preview edit buttons */
#section-cartevisite .pv-edit-btn {
  position: absolute; z-index: 20; background: rgba(0,0,0,0.55); color: white;
  border: 2px solid rgba(255,255,255,0.7); border-radius: 50%;
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.2s, transform 0.15s; backdrop-filter: blur(4px);
}
#section-cartevisite .pv-edit-btn:hover { background: rgba(0,0,0,0.8); transform: scale(1.1); }
#section-cartevisite .pv-edit-banner { bottom: 8px; left: 8px; }
#section-cartevisite .pv-edit-photo { bottom: -2px; right: -2px; width: 28px; height: 28px; }

/* Placeholder */
#section-cartevisite .pv-placeholder { opacity: 0.55; font-style: italic; }

/* Banner reposition */
#section-cartevisite .banner-draggable { cursor: grab; user-select: none; -webkit-user-select: none; }
#section-cartevisite .banner-draggable:active { cursor: grabbing; }
#section-cartevisite .banner-drag-hint {
  position: absolute; bottom: 8px; right: 8px; z-index: 3;
  background: rgba(0,0,0,0.6); color: white; font-size: 0.68rem; font-weight: 600;
  padding: 4px 10px; border-radius: 20px; display: flex; align-items: center; gap: 4px;
  pointer-events: none; backdrop-filter: blur(4px);
}
#section-cartevisite .banner-drag-hint svg { width: 12px; height: 12px; }

/* ===== CREATOR LAYOUT ===== */
#section-cartevisite .qrc-creator-layout {
  display: flex; gap: 28px; align-items: flex-start;
}
#section-cartevisite .qrc-creator-form-col { flex: 1; min-width: 0; }
#section-cartevisite .qrc-creator-preview-col { width: 380px; flex-shrink: 0; }

#section-cartevisite .qrc-preview-sticky {
  position: sticky; top: 80px;
  display: flex; flex-direction: column; max-height: calc(100vh - 100px);
}

#section-cartevisite .qrc-preview-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.88rem; font-weight: 700; color: #475569; margin-bottom: 14px; padding-left: 8px;
}
#section-cartevisite .qrc-preview-label-dot {
  width: 10px; height: 10px; border-radius: 50%; background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2); animation: qrcDotPulse 2s infinite;
}
@keyframes qrcDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

/* Phone frame */
#section-cartevisite .qrc-preview-phone-frame {
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border-radius: 40px; padding: 12px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.25), 0 0 0 1px rgba(255,255,255,0.05) inset;
  flex: 1; min-height: 0; display: flex; flex-direction: column;
}
#section-cartevisite .qrc-preview-phone-notch {
  width: 120px; height: 28px; background: #0f172a; border-radius: 0 0 18px 18px;
  margin: 0 auto -12px; position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
#section-cartevisite .qrc-preview-phone-notch::after {
  content: ''; width: 60px; height: 6px; background: #1e293b; border-radius: 3px;
}
#section-cartevisite .qrc-preview-phone-screen {
  background: #f0f2f5; border-radius: 28px; overflow: hidden;
  flex: 1; min-height: 0; overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: #cbd5e1 transparent;
}
#section-cartevisite .qrc-preview-phone-screen::-webkit-scrollbar { width: 4px; }
#section-cartevisite .qrc-preview-phone-screen::-webkit-scrollbar-track { background: transparent; }
#section-cartevisite .qrc-preview-phone-screen::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

/* ===== FORM STYLES ===== */
#section-cartevisite .qrc-card-form {
  background: white; border-radius: 16px; padding: 28px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

#section-cartevisite .qrc-form-step {
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 16px;
  padding: 28px; margin-bottom: 20px;
}
#section-cartevisite .qrc-form-step-header {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 24px; padding-bottom: 16px; border-bottom: 2px solid #e2e8f0;
}
#section-cartevisite .qrc-form-step-num {
  width: 40px; height: 40px; background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: white; border-radius: 12px; display: flex; align-items: center;
  justify-content: center; font-size: 1.1rem; font-weight: 800; flex-shrink: 0;
}
#section-cartevisite .qrc-form-step-header h3 { font-size: 1.1rem; color: #0f172a; margin-bottom: 2px; }
#section-cartevisite .qrc-form-step-header p { font-size: 0.85rem; color: #64748b; margin: 0; }

#section-cartevisite .qrc-form-group { margin-bottom: 18px; flex: 1; }
#section-cartevisite .qrc-form-group-row { display: flex; gap: 16px; }

#section-cartevisite .qrc-form-group label {
  display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; color: #374151;
}
#section-cartevisite .qrc-form-group input[type="text"],
#section-cartevisite .qrc-form-group input[type="email"],
#section-cartevisite .qrc-form-group input[type="tel"],
#section-cartevisite .qrc-form-group input[type="url"],
#section-cartevisite .qrc-form-group textarea,
#section-cartevisite .qrc-form-group select {
  width: 100%; padding: 10px 14px; border: 2px solid #e5e7eb; border-radius: 10px;
  font-size: 0.95rem; transition: border-color 0.2s; font-family: inherit;
}
#section-cartevisite .qrc-form-group input:focus,
#section-cartevisite .qrc-form-group textarea:focus,
#section-cartevisite .qrc-form-group select:focus { outline: none; border-color: #2563eb; }

#section-cartevisite .qrc-form-group input[type="color"] {
  width: 60px; height: 40px; border: 2px solid #e5e7eb; border-radius: 10px;
  cursor: pointer; padding: 2px;
}

/* Slug input */
#section-cartevisite .qrc-slug-input {
  display: flex; align-items: center; border: 2px solid #e5e7eb; border-radius: 10px;
  overflow: hidden; transition: border-color 0.2s;
}
#section-cartevisite .qrc-slug-input:focus-within { border-color: #2563eb; }
#section-cartevisite .qrc-slug-prefix {
  padding: 10px 8px 10px 14px; background: #f9fafb; color: #6b7280;
  font-weight: 600; font-size: 0.95rem;
}
#section-cartevisite .qrc-slug-input input { border: none !important; border-radius: 0 !important; padding-left: 4px !important; }
#section-cartevisite .qrc-slug-input input:focus { border: none !important; }

#section-cartevisite .qrc-help-text { color: #9ca3af; font-size: 0.8rem; margin-top: 4px; }

/* File upload */
#section-cartevisite .qrc-file-upload input[type="file"] {
  width: 100%; padding: 10px; border: 2px dashed #e2e8f0; border-radius: 10px;
  font-size: 0.9rem; cursor: pointer; background: white;
}
#section-cartevisite .qrc-file-upload input[type="file"]:hover { border-color: #2563eb; }

/* Submit button */
#section-cartevisite .qrc-btn-create {
  display: block; width: 100%; padding: 14px; margin-top: 24px;
  background: linear-gradient(135deg, #2563eb, #1e40af); color: white;
  border: none; border-radius: 12px; font-size: 1.1rem; font-weight: 600;
  cursor: pointer; transition: transform 0.15s, box-shadow 0.15s;
}
#section-cartevisite .qrc-btn-create:hover {
  transform: translateY(-1px); box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}
#section-cartevisite .qrc-btn-create:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ===== STYLE PICKER ===== */
#section-cartevisite .qrc-style-picker { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
#section-cartevisite .qrc-style-option { cursor: pointer; text-align: center; }
#section-cartevisite .qrc-style-option input[type="radio"] { display: none; }
#section-cartevisite .qrc-style-preview {
  border: 3px solid #e2e8f0; border-radius: 14px; padding: 14px;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.15s; background: white;
}
#section-cartevisite .qrc-style-option input:checked + .qrc-style-preview {
  border-color: #2563eb; box-shadow: 0 4px 16px rgba(37, 99, 235, 0.2); transform: translateY(-2px);
}
#section-cartevisite .qrc-style-preview .sp-banner {
  height: 28px; border-radius: 8px; margin-bottom: 8px; background: linear-gradient(135deg, #2563eb, #7c3aed);
}
#section-cartevisite .qrc-style-preview .sp-avatar {
  width: 28px; height: 28px; border-radius: 50%; background: #e0e7ff;
  margin: -18px auto 8px; border: 2px solid white; position: relative;
}
#section-cartevisite .qrc-style-preview .sp-lines div {
  height: 6px; border-radius: 3px; background: #e2e8f0; margin-bottom: 4px;
}
#section-cartevisite .qrc-style-preview .sp-lines div:first-child { width: 70%; margin-left: auto; margin-right: auto; }
#section-cartevisite .qrc-style-preview .sp-lines div:last-child { width: 50%; margin-left: auto; margin-right: auto; }
#section-cartevisite .qrc-style-dark .sp-banner { background: #1f2937; }
#section-cartevisite .qrc-style-dark { background: #111827 !important; }
#section-cartevisite .qrc-style-dark .sp-lines div { background: #374151; }
#section-cartevisite .qrc-style-elegant .sp-avatar { border-radius: 4px; }
#section-cartevisite .qrc-style-bold .sp-banner { height: 36px; }
#section-cartevisite .qrc-style-option span:last-child { display: block; margin-top: 8px; font-size: 0.82rem; font-weight: 600; color: #374151; }

/* ===== COLOR PICKER ===== */
#section-cartevisite .qrc-color-picker-row { display: flex; align-items: center; gap: 12px; }
#section-cartevisite .qrc-color-presets { display: flex; gap: 6px; flex-wrap: wrap; }
#section-cartevisite .qrc-color-dot {
  width: 28px; height: 28px; border-radius: 50%; border: 3px solid transparent;
  cursor: pointer; transition: transform 0.15s, border-color 0.15s; padding: 0;
}
#section-cartevisite .qrc-color-dot:hover { transform: scale(1.2); border-color: #94a3b8; }

/* ===== RADIO GROUP ===== */
#section-cartevisite .qrc-radio-group { display: flex; gap: 8px; flex-wrap: wrap; }
#section-cartevisite .qrc-radio-option { cursor: pointer; }
#section-cartevisite .qrc-radio-option input[type="radio"] { display: none; }
#section-cartevisite .qrc-radio-label {
  display: inline-block; padding: 8px 16px; border: 2px solid #e2e8f0; border-radius: 10px;
  font-size: 0.88rem; font-weight: 500; color: #374151; transition: all 0.15s; background: white;
}
#section-cartevisite .qrc-radio-option input:checked + .qrc-radio-label {
  border-color: #2563eb; background: #eff6ff; color: #2563eb; font-weight: 600;
}
#section-cartevisite .qrc-radio-label:hover { border-color: #94a3b8; }

/* Form select */
#section-cartevisite .qrc-form-select {
  width: 100%; padding: 10px 14px; border: 2px solid #e5e7eb; border-radius: 10px;
  font-size: 0.95rem; font-family: inherit; background: white; cursor: pointer;
  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='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
#section-cartevisite .qrc-form-select:focus { outline: none; border-color: #2563eb; }

/* ===== HIDE TOGGLE ===== */
#section-cartevisite .qrc-hide-toggle {
  display: inline-flex; align-items: center; gap: 5px; cursor: pointer;
  font-size: 0.78rem; color: #94a3b8; font-weight: 500; margin-left: 8px;
  user-select: none; transition: color 0.2s;
}
#section-cartevisite .qrc-hide-toggle:hover { color: #64748b; }
#section-cartevisite .qrc-hide-toggle input[type="checkbox"] { width: 14px; height: 14px; accent-color: #ef4444; cursor: pointer; margin: 0; }
#section-cartevisite .qrc-hide-toggle.checked { color: #ef4444; }

#section-cartevisite .qrc-form-group.field-hidden input,
#section-cartevisite .qrc-form-group.field-hidden textarea { opacity: 0.4; pointer-events: none; background: #f8fafc; }
#section-cartevisite .qrc-form-group.field-hidden label { opacity: 0.5; }
#section-cartevisite .qrc-form-step.section-hidden .qrc-form-group-row,
#section-cartevisite .qrc-form-step.section-hidden .qrc-form-group:not(:first-child) { opacity: 0.4; pointer-events: none; }

#section-cartevisite .qrc-label-row { display: flex; align-items: center; }

/* ===== MY CARDS LIST ===== */
#section-cartevisite .qrc-my-cards { margin-bottom: 28px; }
#section-cartevisite .qrc-my-cards h3 { font-size: 1.1rem; color: #0f172a; margin-bottom: 16px; }
#section-cartevisite .qrc-cards-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px;
}
#section-cartevisite .qrc-card-item {
  background: white; border-radius: 16px; padding: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06); display: flex; flex-direction: column; gap: 8px;
  border: 1px solid #e2e8f0; transition: box-shadow 0.2s;
}
#section-cartevisite .qrc-card-item:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.1); }
#section-cartevisite .qrc-card-item h4 { font-size: 1rem; color: #0f172a; }
#section-cartevisite .qrc-card-item p { color: #6b7280; font-size: 0.85rem; margin: 0; }
#section-cartevisite .qrc-card-item .qrc-card-slug { color: #2563eb; font-size: 0.8rem; font-weight: 500; }
#section-cartevisite .qrc-card-actions { display: flex; gap: 8px; margin-top: 8px; }
#section-cartevisite .qrc-card-actions a,
#section-cartevisite .qrc-card-actions button {
  padding: 8px 14px; border-radius: 8px; font-size: 0.85rem; font-weight: 600;
  text-decoration: none; cursor: pointer; border: none;
}
#section-cartevisite .qrc-btn-view { background: #eff6ff; color: #2563eb; }
#section-cartevisite .qrc-btn-delete { background: #fef2f2; color: #dc2626; }
#section-cartevisite .qrc-empty-state { text-align: center; padding: 40px 20px; color: #9ca3af; font-size: 0.95rem; }

#section-cartevisite .qrc-section-title {
  font-size: 1.2rem; color: #0f172a; margin-bottom: 20px; padding-bottom: 12px;
  border-bottom: 2px solid #e2e8f0;
}

/* ===== SUCCESS MODAL ===== */
#section-cartevisite .qrc-modal-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5);
  z-index: 1000; align-items: center; justify-content: center; padding: 20px;
}
#section-cartevisite .qrc-modal-overlay.active { display: flex; }
#section-cartevisite .qrc-modal {
  background: white; border-radius: 20px; padding: 40px; max-width: 500px;
  width: 100%; text-align: center; animation: qrcModalIn 0.3s ease;
}
@keyframes qrcModalIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
#section-cartevisite .qrc-modal-icon {
  width: 64px; height: 64px; background: #10b981; color: white; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 2rem; margin: 0 auto 16px;
}
#section-cartevisite .qrc-modal h2 { margin-bottom: 8px; color: #1a1a2e; }
#section-cartevisite .qrc-modal p { color: #6b7280; margin-bottom: 16px; }
#section-cartevisite .qrc-share-url { display: flex; gap: 8px; margin-bottom: 20px; }
#section-cartevisite .qrc-share-url input {
  flex: 1; padding: 10px 14px; border: 2px solid #e5e7eb; border-radius: 10px;
  font-size: 0.9rem; color: #2563eb; font-weight: 500;
}
#section-cartevisite .qrc-btn-copy {
  padding: 10px 18px; background: #2563eb; color: white; border: none;
  border-radius: 10px; cursor: pointer; font-weight: 600;
}
#section-cartevisite .qrc-btn-copy:hover { background: #1e40af; }
#section-cartevisite .qrc-modal-actions { display: flex; gap: 12px; justify-content: center; }
#section-cartevisite .qrc-btn-view-card {
  padding: 12px 24px; background: #2563eb; color: white; text-decoration: none;
  border-radius: 10px; font-weight: 600;
}
#section-cartevisite .qrc-btn-view-card:hover { background: #1e40af; }
#section-cartevisite .qrc-btn-new {
  padding: 12px 24px; background: #f3f4f6; color: #374151; border: none;
  border-radius: 10px; cursor: pointer; font-weight: 600;
}
#section-cartevisite .qrc-btn-new:hover { background: #e5e7eb; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  #section-cartevisite .qrc-creator-preview-col { width: 320px; }
  #section-cartevisite .qrc-preview-phone-frame { border-radius: 32px; padding: 10px; }
  #section-cartevisite .qrc-preview-phone-notch { width: 100px; height: 24px; border-radius: 0 0 14px 14px; }
  #section-cartevisite .qrc-preview-phone-screen { border-radius: 22px; }
  #section-cartevisite .live-preview .card-banner { height: 100px; }
  #section-cartevisite .live-preview .card-photo,
  #section-cartevisite .live-preview .card-photo-placeholder { width: 72px; height: 72px; }
  #section-cartevisite .live-preview .card-photo-container { top: 64px; }
  #section-cartevisite .live-preview .card-body { padding: 44px 16px 16px; }
  #section-cartevisite .live-preview .card-name { font-size: 1.1rem; }
}

@media (max-width: 900px) {
  #section-cartevisite .qrc-creator-layout { flex-direction: column; }
  #section-cartevisite .qrc-creator-preview-col {
    width: 100%; order: -1;
    position: sticky; top: 52px; z-index: 30;
    background: #f8fafc; padding-bottom: 8px;
  }
  #section-cartevisite .qrc-preview-sticky { position: static; max-height: none; overflow: hidden; }
  #section-cartevisite .qrc-preview-label { margin-bottom: 6px; font-size: 0.78rem; }
  #section-cartevisite .qrc-preview-phone-frame {
    max-width: 220px; margin: 0 auto;
    max-height: 35vh; border-radius: 24px; padding: 6px;
  }
  #section-cartevisite .qrc-preview-phone-notch { width: 80px; height: 18px; border-radius: 0 0 10px 10px; margin-bottom: -8px; }
  #section-cartevisite .qrc-preview-phone-screen {
    max-height: calc(35vh - 40px); border-radius: 18px;
  }
  #section-cartevisite .qrc-form-group-row { flex-direction: column; gap: 0; }
  #section-cartevisite .qrc-style-picker { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  #section-cartevisite .qrc-radio-group { flex-direction: column; }
  #section-cartevisite .qrc-card-form { padding: 14px; }
  #section-cartevisite .qrc-form-step { padding: 14px; margin-bottom: 14px; }
}

/* ==================== QR CODE GENERATOR - Scoped under #section-qrcode ==================== */

/* Layout */
#section-qrcode .qrg-creator-layout {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}
#section-qrcode .qrg-creator-form-col {
  flex: 1;
  min-width: 0;
}
#section-qrcode .qrg-creator-preview-col {
  width: 360px;
  flex-shrink: 0;
}

/* Form Steps */
#section-qrcode .qrg-form-step {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
}
#section-qrcode .qrg-form-step-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
#section-qrcode .qrg-form-step-num {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: white; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.95rem; flex-shrink: 0;
}
#section-qrcode .qrg-form-step-header h3 { font-size: 1.1rem; color: #0f172a; margin: 0 0 2px; }
#section-qrcode .qrg-form-step-header p { font-size: 0.85rem; color: #64748b; margin: 0; }

/* Form Groups */
#section-qrcode .qrg-form-group {
  margin-bottom: 16px;
}
#section-qrcode .qrg-form-group:last-child { margin-bottom: 0; }
#section-qrcode .qrg-form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}
#section-qrcode .qrg-form-group input[type="text"],
#section-qrcode .qrg-form-group input[type="url"],
#section-qrcode .qrg-form-group input[type="email"],
#section-qrcode .qrg-form-group input[type="tel"],
#section-qrcode .qrg-form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
#section-qrcode .qrg-form-group input:focus,
#section-qrcode .qrg-form-group textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
#section-qrcode .qrg-help-text {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 4px;
  display: block;
}
#section-qrcode .qrg-form-group-row {
  display: flex;
  gap: 16px;
}
#section-qrcode .qrg-form-group-row > .qrg-form-group { flex: 1; }

/* Radio Groups */
#section-qrcode .qrg-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
#section-qrcode .qrg-radio-option {
  cursor: pointer;
  display: flex;
  align-items: center;
}
#section-qrcode .qrg-radio-option input[type="radio"] {
  display: none;
}
#section-qrcode .qrg-radio-label {
  padding: 8px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #64748b;
  transition: all 0.2s;
  white-space: nowrap;
}
#section-qrcode .qrg-radio-option input:checked + .qrg-radio-label {
  background: rgba(37,99,235,0.08);
  border-color: #2563eb;
  color: #2563eb;
  font-weight: 600;
}

/* Color Pickers */
#section-qrcode .qrg-color-picker-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
#section-qrcode .qrg-color-picker-row input[type="color"] {
  width: 44px; height: 44px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  padding: 2px;
  background: white;
}
#section-qrcode .qrg-color-presets {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
#section-qrcode .qrg-color-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
}
#section-qrcode .qrg-color-dot:hover {
  transform: scale(1.15);
  border-color: #94a3b8;
}

/* Range Slider */
#section-qrcode .qrg-range-slider {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: #e2e8f0;
  border-radius: 3px;
  outline: none;
  margin-top: 8px;
}
#section-qrcode .qrg-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  background: #2563eb;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(37,99,235,0.3);
}
#section-qrcode .qrg-range-slider::-moz-range-thumb {
  width: 20px; height: 20px;
  background: #2563eb;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(37,99,235,0.3);
}

/* Download Bar */
#section-qrcode .qrg-download-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
#section-qrcode .qrg-btn-download {
  flex: 1;
  min-width: 140px;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}
#section-qrcode .qrg-btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  box-shadow: 0 4px 14px rgba(37,99,235,0.25);
}
#section-qrcode .qrg-btn-primary:hover {
  box-shadow: 0 6px 20px rgba(37,99,235,0.35);
  transform: translateY(-1px);
}
#section-qrcode .qrg-btn-secondary {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: white;
  box-shadow: 0 4px 14px rgba(124,58,237,0.25);
}
#section-qrcode .qrg-btn-secondary:hover {
  box-shadow: 0 6px 20px rgba(124,58,237,0.35);
  transform: translateY(-1px);
}
#section-qrcode .qrg-btn-outline {
  background: white;
  color: #334155;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
#section-qrcode .qrg-btn-outline:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

/* Preview Panel */
#section-qrcode .qrg-preview-sticky {
  position: sticky;
  top: 80px;
}
#section-qrcode .qrg-preview-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 12px;
}
#section-qrcode .qrg-preview-label-dot {
  width: 8px; height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: qrgPulse 2s ease-in-out infinite;
}
@keyframes qrgPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Phone Frame */
#section-qrcode .qrg-preview-phone-frame {
  background: #1e293b;
  border-radius: 40px;
  padding: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 4px 12px rgba(0,0,0,0.1);
  position: relative;
}
#section-qrcode .qrg-preview-phone-notch {
  width: 120px; height: 28px;
  background: #1e293b;
  border-radius: 0 0 16px 16px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
#section-qrcode .qrg-preview-phone-notch::after {
  content: ''; width: 60px; height: 4px; background: #334155;
  border-radius: 2px; position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
}
#section-qrcode .qrg-preview-phone-screen {
  background: #f8fafc;
  border-radius: 28px;
  overflow: hidden;
  min-height: 480px;
}

/* Preview Card */
#section-qrcode .qrg-preview-card {
  padding: 24px 20px;
  text-align: center;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
#section-qrcode .qrg-pv-header {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
#section-qrcode .qrg-pv-logo {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: #e2e8f0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
#section-qrcode .qrg-pv-logo img {
  width: 100%; height: 100%;
  object-fit: contain;
}
#section-qrcode .qrg-pv-shop-name {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}
#section-qrcode .qrg-pv-qr-container {
  background: white;
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  margin-bottom: 16px;
  display: inline-block;
}
#section-qrcode .qrg-pv-qr-img,
#section-qrcode .qrg-pv-qr-canvas {
  display: block;
  max-width: 220px;
  max-height: 280px;
  border-radius: 8px;
}
#section-qrcode .qrg-pv-scan-text {
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
  margin: 0 0 4px;
}
#section-qrcode .qrg-pv-url {
  font-size: 0.75rem;
  color: #94a3b8;
  margin: 0 0 16px;
  word-break: break-all;
  max-width: 280px;
}
#section-qrcode .qrg-pv-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(37,99,235,0.08);
  color: #2563eb;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 20px;
}
#section-qrcode .qrg-pv-footer {
  margin-top: auto;
  padding-top: 16px;
}
#section-qrcode .qrg-pv-footer p {
  font-size: 0.7rem;
  color: #cbd5e1;
  margin: 0;
}

/* ===== GRADIENT TOGGLE ===== */
#section-qrcode label.qrg-gradient-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 500;
  color: #374151;
  user-select: none;
  margin-bottom: 0;
}
#section-qrcode .qrg-gradient-toggle input[type="checkbox"] {
  display: none;
}
#section-qrcode .qrg-toggle-slider {
  position: relative;
  width: 40px;
  height: 22px;
  background: #e2e8f0;
  border-radius: 11px;
  transition: background 0.2s;
  flex-shrink: 0;
}
#section-qrcode .qrg-toggle-slider::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  transition: transform 0.2s;
}
#section-qrcode .qrg-gradient-toggle input:checked + .qrg-toggle-slider {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
}
#section-qrcode .qrg-gradient-toggle input:checked + .qrg-toggle-slider::after {
  transform: translateX(18px);
}

/* ===== STYLE PICKER BUTTONS ===== */
#section-qrcode .qrg-style-picker-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
#section-qrcode .qrg-style-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  background: white;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.78rem;
  font-weight: 500;
  color: #64748b;
  min-width: 72px;
}
#section-qrcode .qrg-style-btn svg {
  fill: #64748b;
  width: 24px;
  height: 24px;
}
#section-qrcode .qrg-style-btn:hover {
  border-color: #94a3b8;
}
#section-qrcode .qrg-style-btn.active {
  border-color: #2563eb;
  background: rgba(37,99,235,0.05);
  color: #2563eb;
}
#section-qrcode .qrg-style-btn.active svg {
  fill: #2563eb;
}

/* ===== LOGO UPLOAD ===== */
#section-qrcode .qrg-logo-upload {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
#section-qrcode .qrg-logo-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border: 2px dashed #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
  transition: all 0.2s;
}
#section-qrcode .qrg-logo-upload-btn:hover {
  border-color: #2563eb;
  color: #2563eb;
  background: #eff6ff;
}
#section-qrcode .qrg-logo-filename {
  font-size: 0.82rem;
  color: #64748b;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#section-qrcode .qrg-logo-remove-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: #fee2e2;
  color: #dc2626;
  font-size: 0.75rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
#section-qrcode .qrg-logo-remove-btn:hover {
  background: #fecaca;
}

/* ===== FRAME GRID ===== */
#section-qrcode .qrg-frame-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
#section-qrcode .qrg-frame-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 8px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  background: white;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.78rem;
  font-weight: 500;
  color: #64748b;
}
#section-qrcode .qrg-frame-btn:hover {
  border-color: #94a3b8;
}
#section-qrcode .qrg-frame-btn.active {
  border-color: #2563eb;
  background: rgba(37,99,235,0.05);
  color: #2563eb;
}

/* Frame previews */
#section-qrcode .qrg-frame-preview {
  width: 48px;
  height: 56px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  position: relative;
}
#section-qrcode .qrg-fp-qr {
  width: 28px;
  height: 28px;
  background: #e2e8f0;
  border-radius: 3px;
}
#section-qrcode .qrg-fp-text {
  width: 30px;
  height: 5px;
  border-radius: 2px;
  background: rgba(255,255,255,0.7);
}
#section-qrcode .qrg-fp-none {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
#section-qrcode .qrg-fp-modern {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border-radius: 8px;
}
#section-qrcode .qrg-fp-modern .qrg-fp-qr {
  background: white;
}
#section-qrcode .qrg-fp-elegant {
  background: #1e293b;
  border: 2px solid #475569;
  border-radius: 6px;
}
#section-qrcode .qrg-fp-elegant .qrg-fp-qr {
  background: white;
}
#section-qrcode .qrg-fp-badge {
  background: linear-gradient(180deg, #334155, #1e293b, #0f172a);
  border-radius: 10px;
}
#section-qrcode .qrg-fp-badge .qrg-fp-qr {
  background: white;
  border-radius: 4px;
}

/* Frame config */
#section-qrcode .qrg-frame-config-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  margin-top: 14px;
}

/* Custom select */
#section-qrcode .qrg-form-select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: inherit;
  background: white;
  cursor: pointer;
  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='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  transition: border-color 0.2s;
}
#section-qrcode .qrg-form-select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

/* ===== QR CODE RESPONSIVE ===== */
@media (max-width: 1100px) {
  #section-qrcode .qrg-creator-preview-col { width: 320px; }
  #section-qrcode .qrg-preview-phone-frame { border-radius: 32px; padding: 10px; }
  #section-qrcode .qrg-preview-phone-notch { width: 100px; height: 24px; border-radius: 0 0 14px 14px; }
  #section-qrcode .qrg-preview-phone-screen { border-radius: 22px; min-height: 420px; }
  #section-qrcode .qrg-pv-qr-img,
  #section-qrcode .qrg-pv-qr-canvas { max-width: 180px; max-height: 240px; }
  #section-qrcode .qrg-preview-card { min-height: 420px; }
}

@media (max-width: 900px) {
  #section-qrcode .qrg-creator-layout { flex-direction: column; }
  #section-qrcode .qrg-creator-preview-col {
    width: 100%; order: -1;
    position: sticky; top: 46px; z-index: 30;
    background: var(--gray-100, #f8fafc);
    padding: 8px 14px;
    margin: -14px -14px 8px -14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  }
  #section-qrcode .qrg-preview-sticky { position: static; }
  #section-qrcode .qrg-preview-label { margin-bottom: 6px; font-size: 0.78rem; }
  #section-qrcode .qrg-preview-phone-frame {
    max-width: 220px; margin: 0 auto;
    max-height: 35vh; border-radius: 24px; padding: 6px;
  }
  #section-qrcode .qrg-preview-phone-notch { width: 80px; height: 18px; border-radius: 0 0 10px 10px; }
  #section-qrcode .qrg-preview-phone-screen { min-height: 0; max-height: calc(35vh - 40px); border-radius: 18px; overflow-y: auto; }
  #section-qrcode .qrg-pv-qr-img,
  #section-qrcode .qrg-pv-qr-canvas { max-width: 120px; max-height: 160px; }
  #section-qrcode .qrg-preview-card { min-height: 0; padding: 12px; }
  #section-qrcode .qrg-form-group-row { flex-direction: column; gap: 0; }
  #section-qrcode .qrg-radio-group { flex-direction: column; }
  #section-qrcode .qrg-form-step { padding: 14px; margin-bottom: 14px; }
  #section-qrcode .qrg-download-bar { flex-direction: column; }
  #section-qrcode .qrg-btn-download { min-width: unset; }
  #section-qrcode .qrg-frame-grid { grid-template-columns: repeat(2, 1fr); }
  #section-qrcode .qrg-style-picker-row { gap: 6px; }
  #section-qrcode .qrg-style-btn { min-width: 60px; padding: 8px 10px; }
}

/* ===== 480px - Very small screens ===== */
@media (max-width: 480px) {
  /* Carte de visite - preview even smaller */
  #section-cartevisite .qrc-preview-phone-frame { max-width: 180px; max-height: 30vh; border-radius: 20px; padding: 5px; }
  #section-cartevisite .qrc-preview-phone-screen { max-height: calc(30vh - 32px); border-radius: 16px; }
  #section-cartevisite .qrc-preview-phone-notch { width: 60px; height: 14px; border-radius: 0 0 8px 8px; margin-bottom: -6px; }
  #section-cartevisite .qrc-form-step { padding: 10px; margin-bottom: 10px; border-radius: 12px; }
  #section-cartevisite .qrc-card-form { padding: 10px; border-radius: 12px; }
  #section-cartevisite .qrc-form-step-header { gap: 8px; margin-bottom: 14px; padding-bottom: 10px; }
  #section-cartevisite .qrc-form-step-num { width: 28px; height: 28px; font-size: 0.8rem; border-radius: 8px; }
  #section-cartevisite .qrc-form-step-header h3 { font-size: 0.9rem; }
  #section-cartevisite .qrc-form-step-header p { font-size: 0.75rem; }
  #section-cartevisite .qrc-form-group label { font-size: 0.82rem; }
  #section-cartevisite .qrc-form-group input,
  #section-cartevisite .qrc-form-group textarea,
  #section-cartevisite .qrc-form-group select { font-size: 0.88rem; padding: 8px 10px; }
  #section-cartevisite .qrc-style-picker { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  #section-cartevisite .qrc-btn-create { padding: 12px; font-size: 0.95rem; }
  #section-cartevisite .qrc-cards-grid { grid-template-columns: 1fr; }
  #section-cartevisite .qrc-modal { padding: 24px 16px; }
  #section-cartevisite .qrc-share-url { flex-direction: column; }

  /* QR Code - preview sticky top + margin adjusted for smaller topbar/padding */
  #section-qrcode .qrg-creator-preview-col { top: 36px; margin: -8px -8px 8px -8px; padding: 8px 8px; }
  #section-qrcode .qrg-preview-phone-frame { max-width: 180px; max-height: 30vh; border-radius: 20px; padding: 5px; }
  #section-qrcode .qrg-preview-phone-screen { max-height: calc(30vh - 32px); border-radius: 16px; }
  #section-qrcode .qrg-preview-phone-notch { width: 60px; height: 14px; border-radius: 0 0 8px 8px; }
  #section-qrcode .qrg-pv-qr-img,
  #section-qrcode .qrg-pv-qr-canvas { max-width: 90px; max-height: 120px; }
  #section-qrcode .qrg-form-step { padding: 10px; margin-bottom: 10px; border-radius: 12px; }
  #section-qrcode .qrg-form-step-header { gap: 8px; margin-bottom: 14px; }
  #section-qrcode .qrg-form-step-num { width: 28px; height: 28px; font-size: 0.8rem; border-radius: 8px; }
  #section-qrcode .qrg-form-step-header h3 { font-size: 0.9rem; }
  #section-qrcode .qrg-form-step-header p { font-size: 0.75rem; }
  #section-qrcode .qrg-style-picker-row { gap: 4px; }
  #section-qrcode .qrg-style-btn { min-width: 45px; padding: 6px 6px; font-size: 0.7rem; }
  #section-qrcode .qrg-frame-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  #section-qrcode .qrg-btn-download { padding: 10px; font-size: 0.82rem; }
}
