/* =========================================
     APP STYLES & CHECKBOX FIX
     ========================================= */

  /* Upgraded Checkbox UI */
  body.superb-legacy-custom-page #my-custom-code input[type="checkbox"] {
      -webkit-appearance: none ;
      -moz-appearance: none ;
      appearance: none ;
      background-color: rgba(255, 255, 255, 0.05) ;
      border: 2px solid #ffffff ;
      border-radius: 0.25rem ;
      display: inline-flex ;
      align-items: center ;
      justify-content: center ;
      cursor: pointer ;
      position: relative ;
      width: 20px ;
      height: 20px ;
      margin-right: 8px ;
      transition: all 0.2s ease ;
  }
  
  body.superb-legacy-custom-page #my-custom-code input[type="checkbox"]:hover {
      border-color: #ff3bbf ;
  }
  
  body.superb-legacy-custom-page #my-custom-code input[type="checkbox"]:checked {
      background-color: #ff3bbf ;
      border-color: #ff3bbf ;
  }
  
  body.superb-legacy-custom-page #my-custom-code input[type="checkbox"]:checked::after {
      content: "" ;
      width: 10px ;
      height: 10px ;
      background-color: white ;
      /* Draws a beautiful CSS checkmark */
      clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%) ;
  }

  /* Main App Container */
  body.superb-legacy-custom-page #my-custom-code { 
      font-family: 'Montserrat', sans-serif; 
      background: linear-gradient(135deg, #1a0a2e 0%, #2d1b4e 50%, #1a0a2e 100%); 
      min-height: 100vh; 
      color: white;
      width: 100%;
      padding: 40px 0; 
  }

  /* --- APP COMPONENTS --- */

  body.superb-legacy-custom-page #my-custom-code .font-heading { font-family: 'Raleway', sans-serif; }
  
  body.superb-legacy-custom-page #my-custom-code .glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  body.superb-legacy-custom-page #my-custom-code .gradient-text {
    background: linear-gradient(135deg, #ff3bbf, #a855f7, #ff3bbf);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 3s ease infinite;
  }
  
  @keyframes gradient-shift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
  }
  
  @keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
  }
  
  @keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 59, 191, 0.3); }
    50% { box-shadow: 0 0 40px rgba(255, 59, 191, 0.6); }
  }
  
  @keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
  }
  
  body.superb-legacy-custom-page #my-custom-code .shimmer-bar {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
  }
  
  body.superb-legacy-custom-page #my-custom-code .animate-float { animation: float 3s ease-in-out infinite; }
  body.superb-legacy-custom-page #my-custom-code .animate-pulse-glow { animation: pulse-glow 2s ease-in-out infinite; }
  
  body.superb-legacy-custom-page #my-custom-code .tab-btn.active {
    background: linear-gradient(135deg, #5d13af, #ff3bbf);
    color: white;
  }
  
  body.superb-legacy-custom-page #my-custom-code .qr-type-btn.active {
    background: rgba(255, 59, 191, 0.2);
    border-color: #ff3bbf;
    color: #ff3bbf;
  }
  
  body.superb-legacy-custom-page #my-custom-code .preset-btn.active {
    border-color: #ff3bbf;
    background: rgba(255, 59, 191, 0.1);
  }
  
  body.superb-legacy-custom-page #my-custom-code .dot-style-btn.active, body.superb-legacy-custom-page #my-custom-code .corner-style-btn.active, body.superb-legacy-custom-page #my-custom-code .corner-dot-btn.active, body.superb-legacy-custom-page #my-custom-code .frame-btn.active {
    background: rgba(255, 59, 191, 0.2);
    border-color: #ff3bbf;
    color: #ff3bbf;
  }
  
  body.superb-legacy-custom-page #my-custom-code input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ff3bbf;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 59, 191, 0.5);
  }
  
  body.superb-legacy-custom-page #my-custom-code input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ff3bbf;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(255, 59, 191, 0.5);
  }
  
  body.superb-legacy-custom-page #my-custom-code select {
    background-color: rgba(26, 10, 46, 0.9) ;
    color: #ffffff ;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23ff3bbf' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
  }
  
  body.superb-legacy-custom-page #my-custom-code select option {
    background-color: #1a0a2e;
    color: #ffffff;
    padding: 10px;
  }
  
  body.superb-legacy-custom-page #my-custom-code select:focus {
    border-color: #ff3bbf;
    outline: none;
  }
  
  body.superb-legacy-custom-page #my-custom-code .color-input {
    -webkit-appearance: none;
    width: 50px;
    height: 40px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: none;
  }
  body.superb-legacy-custom-page #my-custom-code .color-input::-webkit-color-swatch-wrapper { padding: 0; }
  body.superb-legacy-custom-page #my-custom-code .color-input::-webkit-color-swatch { border: 2px solid rgba(255,255,255,0.2); border-radius: 6px; }
  
  body.superb-legacy-custom-page #my-custom-code .fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  body.superb-legacy-custom-page #my-custom-code .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  body.superb-legacy-custom-page #my-custom-code .export-btn { transition: all 0.3s ease; }
  body.superb-legacy-custom-page #my-custom-code .export-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 59, 191, 0.3);
  }
  
  body.superb-legacy-custom-page #my-custom-code .hide-scrollbar::-webkit-scrollbar { display: none; }
  body.superb-legacy-custom-page #my-custom-code .hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
  
  body.superb-legacy-custom-page #my-custom-code section, body.superb-legacy-custom-page #my-custom-code div, body.superb-legacy-custom-page #my-custom-code main { max-width: 100%; }
  body.superb-legacy-custom-page #my-custom-code input, body.superb-legacy-custom-page #my-custom-code textarea, body.superb-legacy-custom-page #my-custom-code select { font-size: 16px; max-width: 100%; }

  /* --- FIXED: PREVENT QR EXPANSION --- */
  body.superb-legacy-custom-page #my-custom-code #qr-frame {
    max-width: 100%;
    height: auto;
    box-sizing: border-box;
  }
  body.superb-legacy-custom-page #my-custom-code #qr-container {
    max-width: 100%;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
  }
  body.superb-legacy-custom-page #my-custom-code #qr-container canvas, body.superb-legacy-custom-page #my-custom-code #qr-container svg {
    max-width: 100% ;
    height: auto ;
    object-fit: contain;
  }
  
  @media (max-width: 640px) {
    body.superb-legacy-custom-page #my-custom-code .qr-type-btn { padding: 8px; }
    body.superb-legacy-custom-page #my-custom-code .qr-type-btn svg { width: 20px; height: 20px; }
    body.superb-legacy-custom-page #my-custom-code .qr-type-btn span { font-size: 10px; }
    body.superb-legacy-custom-page #my-custom-code .dot-style-btn, body.superb-legacy-custom-page #my-custom-code .corner-style-btn, body.superb-legacy-custom-page #my-custom-code .corner-dot-btn { padding: 8px 12px; font-size: 11px; }
    body.superb-legacy-custom-page #my-custom-code .tab-btn { padding: 8px 12px; font-size: 12px; }
    body.superb-legacy-custom-page #my-custom-code .hero-title { font-size: 1.75rem; line-height: 1.2; }
    body.superb-legacy-custom-page #my-custom-code .export-btn { padding: 10px 16px; font-size: 13px; }
    body.superb-legacy-custom-page #my-custom-code .color-input { width: 40px; height: 36px; }
  }
  
  @media (max-width: 480px) {
    body.superb-legacy-custom-page #my-custom-code .glass-card { padding: 16px; }
  }

/* v1.7 final QR control readability */
body.superb-legacy-custom-page #my-custom-code .qr-type-btn span{font-size:12px}
body.superb-legacy-custom-page #my-custom-code .dot-style-btn,
body.superb-legacy-custom-page #my-custom-code .corner-style-btn,
body.superb-legacy-custom-page #my-custom-code .corner-dot-btn{font-size:12.5px}


/* v1.0.8 — explicit contrast inside the QR application's dark surfaces. */
body.superb-qr-code-generator-page #my-custom-code :is(h1,h2,h3,h4,h5,h6),
body.superb-qr-code-generator-page #my-custom-code .qr-hero :is(h1,h2,h3,h4),
body.superb-qr-code-generator-page #my-custom-code [class*="dark"] :is(h1,h2,h3,h4){color:#fff!important}
body.superb-qr-code-generator-page #my-custom-code :is(p,li,label,small){color:inherit}
