/* ── QR Tool Theme ── */
  .qr-teal   { background-color: #26a69a; }
  .qr-page   { background-color: #26a69a; min-height: 100vh; padding: 24px 8px 40px; }

  /* ── Type Tabs ── */
  .qr-type-btn {
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    border: 1.5px solid rgba(255,255,255,0.4);
    background: transparent;
    cursor: pointer;
    transition: all 0.18s;
    white-space: nowrap;
  }
  .qr-type-btn:hover,
  .qr-type-btn.active {
    background: #fff;
    color: #26a69a;
    border-color: #fff;
  }

  /* ── Input fields ── */
  .qr-input {
    width: 100%;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    font-size: 14px;
    color: #1e293b;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
    font-family: inherit;
  }
  .qr-input:focus {
    border-color: #26a69a;
    box-shadow: 0 0 0 3px rgba(38,166,154,0.15);
  }
  .qr-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    margin-bottom: 6px;
  }

  /* ── Generate Button ── */
  .qr-btn-generate {
    width: 100%;
    padding: 13px;
    background: #26a69a;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
  }
  .qr-btn-generate:hover  { background: #1e8e84; transform: translateY(-1px); }
  .qr-btn-generate:active { transform: translateY(0); }

  /* ── Download Buttons ── */
  .qr-btn-dl {
    flex: 1;
    padding: 10px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.18s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: inherit;
  }
  .qr-btn-png { background: #0f172a; color: #fff; }
  .qr-btn-png:hover { background: #1e293b; }
  .qr-btn-svg { background: #f1f5f9; color: #0f172a; border: 1.5px solid #e2e8f0; }
  .qr-btn-svg:hover { background: #e2e8f0; }
  .qr-btn-copy { background: #eff0ff; color: #0004ff; border: 1.5px solid #c7c8ff; }
  .qr-btn-copy:hover { background: #dddeff; }

  /* ── QR Preview Area ── */
  .qr-preview-box {
    width: 220px;
    height: 220px;
    border-radius: 16px;
    background: #f8fafc;
    border: 2px dashed #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: border-color 0.2s;
    position: relative;
    overflow: hidden;
  }
  .qr-preview-box.has-qr {
    background: #fff;
    border: 2px solid #e2e8f0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  }
  .qr-preview-box canvas,
  .qr-preview-box img { border-radius: 8px; }

  .qr-placeholder {
    text-align: center;
    color: #94a3b8;
  }
  .qr-placeholder .ph-icon { font-size: 48px; margin-bottom: 8px; }
  .qr-placeholder p { font-size: 12px; font-weight: 500; }

  /* ── Color Swatch ── */
  .color-swatch {
    width: 38px; height: 38px;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    cursor: pointer;
    padding: 0;
    overflow: hidden;
  }

  /* ── Size Slider ── */
  .qr-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: #e2e8f0;
    outline: none;
  }
  .qr-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: #26a69a;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  }
  .qr-slider::-moz-range-thumb {
    width: 18px; height: 18px;
    border-radius: 50%;
    background: #26a69a;
    cursor: pointer;
    border: 2px solid #fff;
  }

  /* ── Error correction tabs ── */
  .ec-btn {
    flex: 1;
    padding: 7px 4px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 700;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
  }
  .ec-btn.active, .ec-btn:hover {
    background: #26a69a;
    color: #fff;
    border-color: #26a69a;
  }

  /* ── Pulse animation when generating ── */
  @keyframes qr-pulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(0.97); }
    100% { transform: scale(1); }
  }
  .qr-generating { animation: qr-pulse 0.4s ease; }

  /* ── Content sections ── */
  .content-section { background: #fff; }