.qr-wrapper {
    --qr-p: #3b82f6;

    width: 100%;
    padding: 1rem 0;
  }

  .qr-card {
    background: var(--bg-surface);
    width: calc(100% - 24px);
    max-width: 900px;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    color: var(--text-main);
  }

  @media (min-width: 768px) {
    .qr-card {
      flex-direction: row;
      min-height: 520px;
    }
  }

  .qr-left {
    flex: 1;
    padding: 32px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  @media (min-width: 768px) {
    .qr-left {
      border-bottom: none;
      border-right: 1px solid var(--border-color);
    }
  }

  .qr-right {
    flex: 0 0 auto;
    width: 100%;
    background: var(--bg-muted);
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    position: relative;
  }

  @media (min-width: 768px) {
    .qr-right {
      width: 340px;
    }
  }

  .tab-bar {
    display: flex;
    background: var(--bg-muted);
    padding: 4px;
    border-radius: 14px;
    gap: 2px;
  }

  .tab-btn {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
  }

  .tab-btn.active {
    background: var(--bg-surface);
    color: var(--text-main);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  }

  .qr-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .qr-form.hidden {
    display: none;
  }

  .field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .field-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
  }

  .field-input {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-muted);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
  }

  .field-input:focus {
    outline: none;
    border-color: var(--qr-p);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  }

  .input-row {
    position: relative;
  }

  .input-row .field-input {
    padding-right: 44px;
  }

  .eye-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 4px;
    display: flex;
  }

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

  .two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .check-group {
    justify-content: flex-end;
    padding-bottom: 2px;
  }

  .check-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-muted);
    padding-top: 22px;
  }

  .check-input {
    width: 16px;
    height: 16px;
    accent-color: var(--qr-p);
  }

  .qr-preview-area {
    position: relative;
    width: 100%;
    max-width: 260px;
  }

  .canvas-glow {
    position: relative;
  }

  .canvas-glow::before {
    content: "";
    position: absolute;
    inset: -4px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    border-radius: 20px;
    filter: blur(12px);
    opacity: 0.3;
    transition: opacity 0.3s;
  }

  .canvas-glow:hover::before {
    opacity: 0.55;
  }

  .canvas-box {
    position: relative;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .canvas-box canvas {
    width: 100%;
    height: auto;
  }

  .download-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--qr-p);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
  }

  .download-btn:hover {
    filter: brightness(1.1);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
  }

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

  .privacy-msg {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    max-width: 220px;
    line-height: 1.5;
  }

  .theme-dark .canvas-box {
    background: #020617;
  }