/* ==========================================================================
   Mailspace QR Studio Pro Styles
   ========================================================================== */

.qr-studio-view {
  background: #F7F6F2;
  color: #1B1916;
  min-height: calc(100vh - 60px);
}

.qr-page {
  max-width: 1410px;
  margin: 0 auto;
  padding: 32px 38px 48px;
}

.qr-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}

.qr-heading h1 {
  font-size: clamp(28px, 2.7vw, 40px);
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -1.2px;
  margin: 8px 0 10px;
}

.qr-heading h1 span {
  color: #D97706;
}

.qr-heading p {
  font-size: 13px;
  line-height: 1.65;
  color: #767d91;
  max-width: 580px;
}

.qr-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: #83739f;
  text-transform: uppercase;
}

.qr-badge-lan {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #eef2ff;
  color: #4338ca;
  border: 1px solid #c7d2fe;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.qr-badge-lan .dot {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  animation: qrPulse 1.8s infinite;
}

@keyframes qrPulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

/* 2-Column Workspace Grid */
.qr-workspace {
  display: grid;
  grid-template-columns: minmax(340px, 1.05fr) minmax(320px, 0.95fr);
  gap: 28px;
  align-items: start;
}

.qr-card {
  background: #ffffff;
  border: 1px solid #e6e8f0;
  border-radius: 18px;
  box-shadow: 0 4px 20px rgba(27, 25, 22, 0.04);
  overflow: hidden;
}

/* Tabs */
.qr-tabs {
  display: flex;
  background: #fbfbfe;
  border-bottom: 1px solid #eeedf6;
  padding: 8px;
  gap: 6px;
  overflow-x: auto;
}

.qr-tabs button {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #717588;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.qr-tabs button:hover {
  background: rgba(224, 166, 28, 0.08);
  color: #8A5C02;
}

.qr-tabs button.active {
  background: #ffffff;
  color: #D97706;
  border: 1px solid #E5E2DA;
  box-shadow: 0 2px 8px rgba(20, 16, 8, 0.06);
}

.qr-tabs svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Tab Panes */
.qr-tab-content {
  padding: 24px;
}

.qr-pane-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.qr-pane-desc {
  font-size: 12px;
  color: #8c8fa2;
  margin-bottom: 18px;
  line-height: 1.6;
}

/* Form Fields */
.qr-field {
  margin-bottom: 16px;
}

.qr-field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #52586e;
  margin-bottom: 6px;
}

.qr-field input[type="text"],
.qr-field input[type="number"],
.qr-field textarea,
.qr-field select {
  width: 100%;
  height: 44px;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid #e2e5ee;
  border-radius: 9px;
  font-size: 13px;
  color: #27272a;
  outline: none;
  font-family: inherit;
  transition: all 0.15s ease;
}

.qr-field textarea {
  height: 96px;
  resize: vertical;
}

.qr-field input:focus,
.qr-field textarea:focus,
.qr-field select:focus {
  border-color: #E0A61C;
  box-shadow: 0 0 0 3px rgba(224, 166, 28, 0.15);
}

.qr-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.qr-chip {
  background: #f4f4f7;
  border: 1px solid #e8e8ed;
  border-radius: 6px;
  padding: 4px 9px;
  font-size: 11px;
  color: #55596b;
  cursor: pointer;
  transition: all 0.15s;
}

.qr-chip:hover {
  background: #FEF5DC;
  border-color: #E0A61C;
  color: #8A5C02;
}

/* Image Drop Zone */
.qr-dropzone {
  border: 2px dashed #dcdde8;
  background: #fafafc;
  border-radius: 14px;
  padding: 28px 18px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.qr-dropzone:hover,
.qr-dropzone.dragover {
  border-color: #E0A61C;
  background: #fefce8;
}

.qr-drop-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #D97706;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.12);
}

.qr-drop-icon svg {
  width: 26px;
  height: 26px;
}

.qr-drop-title {
  font-size: 14px;
  font-weight: 600;
  color: #27272a;
  margin-bottom: 4px;
}

.qr-drop-subtitle {
  font-size: 11px;
  color: #8e92a4;
  line-height: 1.6;
}

.qr-paste-badge {
  display: inline-block;
  margin-top: 8px;
  background: #f1f3f9;
  border: 1px solid #e2e5ee;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  color: #575c70;
}

/* Image Uploaded Preview */
.qr-img-preview-box {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid #e4e6ef;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.qr-img-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.qr-img-info {
  flex: 1;
  min-width: 0;
}

.qr-img-name {
  font-size: 13px;
  font-weight: 600;
  color: #1f2937;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qr-img-meta {
  font-size: 11px;
  color: #6b7280;
  margin-top: 2px;
}

.qr-img-status {
  font-size: 11px;
  color: #059669;
  font-weight: 500;
  margin-top: 4px;
}

/* Options / Customization Section */
.qr-custom-card {
  margin-top: 20px;
  border-top: 1px solid #f0edf6;
  padding: 20px 24px;
}

.qr-custom-title {
  font-size: 13px;
  font-weight: 700;
  color: #4b5166;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.qr-colors-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

.qr-color-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fafafc;
  border: 1px solid #e4e6ef;
  border-radius: 9px;
  padding: 6px 10px;
}

.qr-color-input-wrap input[type="color"] {
  border: 0;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  background: transparent;
}

.qr-color-input-wrap span {
  font-size: 12px;
  font-weight: 500;
  color: #4b5563;
}

.qr-color-palettes {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.qr-dot-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #d1d5db;
  cursor: pointer;
  transition: transform 0.15s;
}

.qr-dot-btn:hover {
  transform: scale(1.15);
}

/* Logo selection */
.qr-logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.qr-logo-thumb-preview {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  object-fit: cover;
}

.qr-icon-badges {
  display: flex;
  gap: 6px;
}

.qr-icon-btn {
  width: 36px;
  height: 36px;
  border: 1px solid #e4e6ef;
  background: #fff;
  border-radius: 8px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.15s;
}

.qr-icon-btn svg {
  width: 18px;
  height: 18px;
}

.qr-icon-btn:hover {
  border-color: #E0A61C;
  background: #fefce8;
}

/* Live Preview Sticky Card */
.qr-preview-card {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px 24px 26px;
}

.qr-canvas-wrap {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
  margin-bottom: 18px;
}

.qr-canvas-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.qr-meta-pill {
  font-size: 11px;
  color: #71717a;
  background: #f4f4f5;
  border-radius: 20px;
  padding: 4px 12px;
  margin-bottom: 20px;
  font-family: 'JetBrains Mono', monospace;
}

/* Action Buttons */
.qr-actions-grid {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.qr-action-btn {
  width: 100%;
  height: 46px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.qr-btn-primary {
  background: #E0A61C;
  border: 1px solid #D99B12;
  color: #1B1916;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(224, 166, 28, 0.25);
}

.qr-btn-primary:hover {
  background: #D99B12;
  transform: translateY(-1px);
}

.qr-btn-secondary {
  background: #f9f9fb;
  border: 1px solid #e2e5ee;
  color: #3f3f46;
}

.qr-btn-secondary:hover {
  background: #f1f3f9;
  border-color: #cbd5e1;
  color: #18181b;
}

.qr-btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
}

.qr-action-btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

/* ========================================================
   PHONE SIMULATOR (LIVE PREVIEW TRẢI NGHIỆM NGƯỜI QUÉT)
   ======================================================== */
.qr-preview-mode-switch {
  display: flex;
  background: #f4f4f6;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 16px;
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.qr-mode-tab {
  flex: 1;
  padding: 8px 12px;
  border: none;
  background: transparent;
  color: #71717a;
  font-size: 12px;
  font-weight: 700;
  border-radius: 9px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.18s ease;
}

.qr-mode-tab:hover {
  color: #18181b;
}

.qr-mode-tab.active {
  background: #ffffff;
  color: #18181b;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.qr-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: qrPulse 2s infinite;
}

@keyframes qrPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.qr-phone-simulator-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: qrFadeIn 0.25s ease;
}

.qr-simulator-stage-bar {
  display: flex;
  background: #f4f4f6;
  border-radius: 10px;
  padding: 3px;
  margin-bottom: 12px;
  width: 100%;
  max-width: 320px;
  gap: 4px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.qr-stage-tab {
  flex: 1;
  padding: 6px 10px;
  border: none;
  background: transparent;
  color: #71717a;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.18s ease;
}

.qr-stage-tab:hover {
  color: #18181b;
}

.qr-stage-tab.active {
  background: #ffffff;
  color: #D97706;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.qr-phone-mockup {
  width: 100%;
  max-width: 320px;
  height: 520px;
  background: #0f172a;
  border-radius: 38px;
  border: 7px solid #1e293b;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.qr-phone-notch {
  height: 22px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 5px;
  left: 0;
  z-index: 10;
  pointer-events: none;
}

.qr-phone-island {
  width: 74px;
  height: 16px;
  background: #000;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.qr-phone-screen {
  flex: 1;
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
  border-radius: 28px;
}

.qr-phone-screen iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.qr-phone-home-bar {
  width: 100px;
  height: 4px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 10;
}

.qr-phone-ctrls {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 320px;
  margin-top: 12px;
}

.qr-phone-btn {
  flex: 1;
  height: 38px;
  background: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 9px;
  font-size: 11.5px;
  font-weight: 600;
  color: #3f3f46;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.qr-phone-btn svg {
  width: 14px;
  height: 14px;
}

.qr-phone-btn:hover {
  background: #f4f4f5;
  color: #18181b;
  border-color: #d4d4d8;
}

.qr-phone-hint {
  font-size: 11px;
  color: #71717a;
  margin-top: 10px;
  line-height: 1.4;
  text-align: center;
}

/* Modal Simulator */
.qr-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: qrFadeIn 0.2s ease;
}

@keyframes qrFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.qr-modal-dialog {
  background: #18181b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 16px 20px 24px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 25px 60px rgba(0,0,0,0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.qr-modal-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.qr-modal-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s;
}

.qr-modal-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.qr-phone-mockup-large {
  max-width: 360px;
  height: 640px;
  border-radius: 46px;
  border-width: 9px;
}

.qr-phone-screen-large {
  border-radius: 34px;
}

/* Toast Message */
.qr-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: #1B1916;
  color: #fff;
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 9999;
}

.qr-toast.error {
  background: #ef4444;
}

.qr-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
  .qr-workspace {
    grid-template-columns: 1fr;
  }
  .qr-preview-card {
    position: static;
    order: -1; /* Display live preview on top or convenient position on tablet */
  }
}

@media (max-width: 720px) {
  .qr-page {
    padding: 20px 16px 36px;
  }
  .qr-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .qr-tab-content {
    padding: 18px 16px;
  }
  .qr-colors-row {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   ADVANCED CUSTOMIZATION CONTROLS
   ========================================================================== */

/* Frame Picker Grid */
.qr-frame-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 8px;
  margin-top: 6px;
}

.qr-frame-card {
  border: 1px solid #e2e5ee;
  background: #fbfbfe;
  border-radius: 10px;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 11px;
  font-weight: 600;
  color: #55596b;
  text-align: center;
}

.qr-frame-card:hover {
  border-color: #E0A61C;
  background: #FEF5DC;
  color: #8A5C02;
}

.qr-frame-card.active {
  border-color: #D97706;
  background: #fffbeb;
  color: #B45309;
  box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.25);
}

.qr-frame-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 18px;
}

/* Gradient Palette Buttons */
.qr-grad-palettes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.qr-grad-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #d1d5db;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.qr-grad-btn:hover {
  transform: scale(1.18);
  box-shadow: 0 0 0 2px #D97706;
}

/* Wax Seal Customizer */
.qr-seal-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fafafc;
  border: 1px solid #e4e6ef;
  border-radius: 12px;
  padding: 14px;
  margin-top: 8px;
}

.qr-seal-colors {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.qr-seal-color-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #fff;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: transform 0.15s, box-shadow 0.15s;
}

.qr-seal-color-btn:hover {
  transform: scale(1.15);
}

.qr-seal-color-btn.active {
  transform: scale(1.18);
  box-shadow: 0 0 0 2px #E0A61C, 0 3px 8px rgba(0,0,0,0.25);
}

.qr-seal-symbols {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.qr-seal-sym-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e2e5ee;
  font-size: 16px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.15s;
}

.qr-seal-sym-btn:hover {
  border-color: #E0A61C;
  background: #fefce8;
}

.qr-seal-sym-btn.active {
  border-color: #D97706;
  background: #FEF5DC;
  box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.25);
}

/* Polaroid & Gift Photo Attach Box */
.qr-photo-box {
  background: #fafafc;
  border: 1px dashed #d1d5db;
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Music Selector Box */
.qr-music-box {
  background: #fbfbfe;
  border: 1px solid #e4e6ef;
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ========================================================================= */
/* ACCORDION / COLLAPSIBLE SECTIONS FOR EFFECTS & QR CUSTOMIZATION           */
/* ========================================================================= */
.qr-accordion-box {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  margin: 14px 0 16px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.qr-accordion-box:hover {
  border-color: #cbd5e1;
}

.qr-accordion-box.is-open {
  border-color: #F59E0B;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.1);
}

.qr-accordion-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #fafafc;
  border: none;
  cursor: pointer;
  text-align: left;
  user-select: none;
  transition: background-color 0.15s;
  outline: none;
}

.qr-accordion-box.is-open .qr-accordion-btn {
  background: #fffdf5;
  border-bottom: 1px solid #fef3c7;
}

.qr-accordion-btn:hover {
  background: #f4f4f7;
}

.qr-accordion-box.is-open .qr-accordion-btn:hover {
  background: #fef9c3;
}

.qr-accordion-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.qr-accordion-icon {
  font-size: 20px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(245, 158, 11, 0.12);
  flex-shrink: 0;
}

.qr-accordion-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.qr-accordion-title {
  font-size: 13px;
  font-weight: 700;
  color: #1f2937;
  letter-spacing: -0.2px;
}

.qr-accordion-desc {
  font-size: 11px;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.qr-accordion-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: 10px;
}

.qr-accordion-badge {
  font-size: 11px;
  font-weight: 600;
  color: #4b5563;
  background: #e5e7eb;
  padding: 3px 8px;
  border-radius: 12px;
  transition: all 0.2s;
}

.qr-accordion-box.is-open .qr-accordion-badge {
  background: #fde68a;
  color: #92400e;
}

.qr-accordion-arrow {
  width: 18px;
  height: 18px;
  color: #6b7280;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.qr-accordion-box.is-open .qr-accordion-arrow {
  transform: rotate(180deg);
  color: #d97706;
}

.qr-accordion-content {
  padding: 16px 14px;
  background: #ffffff;
  display: block;
}

.qr-accordion-content[hidden] {
  display: none !important;
}

/* Card Tùy Biến Giao Diện Mã QR */
.qr-custom-card.qr-accordion-box {
  margin-top: 20px;
  padding: 0;
}

.qr-custom-card.qr-accordion-box .qr-custom-header-btn {
  padding: 14px 16px;
}

.qr-custom-card.qr-accordion-box .qr-accordion-content {
  padding: 18px 16px;
}


