/* ── FLOATING BAR ── */
  .cn-social-bar {
    position: fixed;
    bottom: 32px;
    right: 24px;
    z-index: 8000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    animation: slideInRight 0.5s ease both;
  }

  @keyframes slideInRight {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
  }

  .cn-bar-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.7);
    background: rgb(41 73 151 / 85%);
    padding: 10px 28px;
    border-radius: 50px;
    backdrop-filter: blur(8px);
  }

  .cn-bar-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: none;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    letter-spacing: 0.3px;
  }

  .cn-bar-btn:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 8px 28px rgba(0,0,0,0.3);
  }

  .cn-bar-btn svg { flex-shrink: 0; }

  .wechat-btn { background: #0f7540; color: white; }
  .xhs-btn    { background: #73000f; color: white; }

  /* ── MODAL OVERLAY ── */
  .cn-modal-overlay {
    position: fixed; inset: 0; z-index: 9998;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    display: none; align-items: center; justify-content: center;
    padding: 24px;
    animation: fadeIn 0.2s ease;
  }

  .cn-modal-overlay.open { display: flex; }

  @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

  .cn-modal {
    background: white;
    border-radius: 24px;
    padding: 36px 32px;
    width: 100%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 32px 80px rgba(0,0,0,0.3);
    animation: popIn 0.3s cubic-bezier(0.34,1.56,0.64,1) both;
  }

  @keyframes popIn { from { opacity: 0; transform: scale(0.88) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }

  .cn-modal-close {
    position: absolute; top: 16px; right: 16px;
    width: 32px; height: 32px; border-radius: 50%;
    border: 1.5px solid #eee; background: #f8f8f8;
    color: #888; font-size: 14px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
  }
  .cn-modal-close:hover { background: #fee2e2; border-color: #fca5a5; color: #dc2626; }

  /* ── DUAL QR ROW ── */
  .dual-qr-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
  }

  .qr-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .qr-card-label {
    font-size: 12px;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
  }

  .qr-box {
    width: 100%;
    background: #f8f8f8;
    border-radius: 14px;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 160px;
    border: 1.5px solid #eee;
  }

  .qr-box .qr-image { width: 130px; height: 130px; object-fit: contain; border-radius: 6px; }
  .qr-box .qr-placeholder { display: none; flex-direction: column; align-items: center; gap: 8px; text-align: center; }

  .qr-card-id {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f0faf4;
    border: 1.5px solid #c3e6cb;
    border-radius: 10px;
    padding: 8px 12px;
    width: 100%;
    justify-content: space-between;
  }

  .qr-card-id span {
    font-size: 13px;
    font-weight: 700;
    color: #0d0d0d;
    flex: 1;
  }

  .qr-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    padding-top: 80px;
  }

  .qr-divider span {
    font-size: 11px;
    font-weight: 700;
    color: #bbb;
    letter-spacing: 1px;
    writing-mode: vertical-lr;
  }

  /* ── MOBILE ACCOUNT BLOCKS ── */
  .mobile-account-block {
    background: #f8f8f8;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1.5px solid #eee;
  }

  .mobile-account-tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #07c160;
    margin-bottom: 10px;
  }

  .mobile-or-divider {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #bbb;
    margin: 4px 0 12px;
    letter-spacing: 2px;
  }

  /* Widen modal for two QRs on desktop */
  .wechat-modal { 
    max-width: 520px;
    top: 8%;
  }

  /* ── WECHAT HEADER ── */
  .wechat-header {
    display: flex; align-items: center; gap: 14px; margin-bottom: 24px;
  }
  .wechat-logo {
    width: 48px; height: 48px; border-radius: 14px;
    background: #07c160; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .wechat-header h3 { font-family: 'Playfair Display', serif; font-size: 18px; color: #0d0d0d; margin-bottom: 3px; }
  .wechat-header p  { font-size: 12px; color: #888; }

  /* ── QR CODE AREA ── */
  .qr-container {
    display: flex; justify-content: center; align-items: center;
    background: #f8f8f8; border-radius: 16px;
    padding: 20px; margin-bottom: 20px; min-height: 200px;
  }
  .qr-image { width: 180px; height: 180px; object-fit: contain; border-radius: 8px; }
  .qr-placeholder {
    display: none; flex-direction: column; align-items: center; gap: 12px; text-align: center;
  }
  .qr-placeholder-note { font-size: 11px; color: #aaa; line-height: 1.6; }
  .qr-placeholder-note code { font-size: 10px; background: #f0f0f0; padding: 2px 6px; border-radius: 4px; }

  /* ── WECHAT ID ROW ── */
  .wechat-id-row {
    display: flex; align-items: center; gap: 8px;
    background: #f0faf4; border: 1.5px solid #c3e6cb;
    border-radius: 12px; padding: 12px 16px; margin-bottom: 12px;
  }
  .wechat-id-label { font-size: 12px; font-weight: 600; color: #888; }
  .wechat-id-value { font-size: 15px; font-weight: 700; color: #0d0d0d; flex: 1; }
  .copy-btn-small {
    background: #07c160; color: white; border: none;
    font-size: 11px; font-weight: 700; padding: 5px 12px;
    border-radius: 50px; cursor: pointer; transition: background 0.2s;
    white-space: nowrap;
  }
  .copy-btn-small:hover { background: #05a050; }
  .copy-btn-small.xhs-copy { background: #ff2442; }
  .copy-btn-small.xhs-copy:hover { background: #d41c38; }

  .wechat-scan-hint { font-size: 12px; color: #888; text-align: center; line-height: 1.6; }

  /* ── MOBILE WECHAT VIEW ── */
  .mobile-wechat-id {
    background: #f0faf4; border: 2px dashed #07c160;
    border-radius: 14px; padding: 18px; text-align: center;
    margin-bottom: 16px;
  }
  .mobile-wechat-id span {
    font-size: 22px; font-weight: 800; color: #0d0d0d;
    letter-spacing: 1px; font-family: 'Playfair Display', serif;
  }

  .copy-wechat-btn {
    width: 100%; padding: 15px; background: #07c160; color: white;
    border: none; border-radius: 50px; font-size: 15px; font-weight: 700;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    gap: 8px; margin-bottom: 16px; transition: background 0.2s, transform 0.2s;
    letter-spacing: 0.3px;
  }
  .copy-wechat-btn:hover { background: #05a050; transform: translateY(-2px); }
  .copy-wechat-btn.copied { background: #0d0d0d; }

  .paste-prompt {
    display: none; flex-direction: column; align-items: center; gap: 8px;
    text-align: center; background: #f0faf4; border-radius: 14px;
    padding: 16px; margin-bottom: 16px; border: 1.5px solid #c3e6cb;
  }
  .paste-prompt.show { display: flex; }
  .paste-prompt-icon { font-size: 28px; }
  .paste-prompt strong { font-size: 15px; color: #0d0d0d; }
  .paste-prompt p { font-size: 13px; color: #555; line-height: 1.6; }

  .mobile-steps { display: flex; flex-direction: column; gap: 10px; }
  .mobile-step {
    display: flex; align-items: center; gap: 12px;
    font-size: 13px; color: #555;
  }
  .step-num-sm {
    width: 26px; height: 26px; border-radius: 50%;
    background: #07c160; color: white; font-size: 12px; font-weight: 700;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  }

  /* ── XIAOHONGSHU MODAL ── */
  .xhs-header { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
  .xhs-logo {
    width: 48px; height: 48px; border-radius: 14px;
    background: #ff2442; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .xhs-logo svg rect { display: none; }
  .xhs-header h3 { font-family: 'Playfair Display', serif; font-size: 18px; color: #0d0d0d; margin-bottom: 3px; }
  .xhs-header p  { font-size: 12px; color: #888; }

  .xhs-id-row {
    display: flex; align-items: center; gap: 8px;
    background: #fff0f2; border: 1.5px solid #ffb3bd;
    border-radius: 12px; padding: 12px 16px; margin-bottom: 12px;
  }

  .xhs-open-btn {
    display: block; width: 100%; text-align: center;
    margin-top: 16px; padding: 13px;
    background: #ff2442; color: white; font-weight: 700;
    font-size: 14px; border-radius: 50px;
    transition: background 0.2s, transform 0.2s;
  }
  .xhs-open-btn:hover { background: #d41c38; transform: translateY(-2px); }

  /* ── RESPONSIVE: show/hide desktop vs mobile modal content ── */
  @media (min-width: 769px) {
    .cn-modal-mobile { display: none !important; }
    .cn-modal-desktop { display: block; }
  }

  @media (max-width: 768px) {
    .cn-modal-desktop { display: none !important; }
    .cn-modal-mobile { display: block; }
    .cn-social-bar { bottom: 20px; right: 16px; }
    .cn-bar-btn { padding: 9px 14px; font-size: 12px; }
    .cn-modal { padding: 28px 20px; }
  }