
    :root {
      --primary: #4361ee;
      --primary-dark: #3a56d4;
      --secondary: #7209b7;
      --accent: #f72585;
      --light: #f8f9fa;
      --dark: #212529;
      --gray: #6c757d;
      --light-gray: #e9ecef;
      --border-radius: 12px;
      --box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
      --transition: all 0.3s ease;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      font-family: 'Poppins', sans-serif;
      background: linear-gradient(135deg, var(--light) 0%, #f0f4ff 100%);
      color: var(--dark);
      line-height: 1.6;
      min-height: 100vh;
      padding: 20px;
    }

    .container {
      max-width: 1200px;
      margin: 0 auto;
    }

    header {
      text-align: center;
      padding: 30px 0 20px;
      margin-bottom: 30px;
    }

    .logo {
      font-size: 2.8rem;
      margin-bottom: 15px;
      color: var(--primary);
      display: inline-block;
      animation: pulse 2s infinite;
    }

    @keyframes pulse {
      0% { transform: scale(1); }
      50% { transform: scale(1.05); }
      100% { transform: scale(1); }
    }

    h1 {
      font-size: 2.5rem;
      margin-bottom: 10px;
      font-weight: 700;
      color: var(--dark);
      background: linear-gradient(90deg, var(--primary), var(--secondary));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .tagline {
      font-size: 1.2rem;
      color: var(--gray);
      max-width: 700px;
      margin: 0 auto 25px;
    }

    .features {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 25px;
      margin: 30px 0;
    }

    .feature {
      background: var(--light);
      border-radius: var(--border-radius);
      padding: 25px;
      text-align: center;
      box-shadow: var(--box-shadow);
      transition: var(--transition);
    }

    .feature:hover {
      transform: translateY(-5px);
      box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    }

    .feature i {
      font-size: 2.5rem;
      color: var(--primary);
      margin-bottom: 20px;
      background: #f0f4ff;
      width: 80px;
      height: 80px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      margin: 0 auto 20px;
    }

    .feature h3 {
      font-size: 1.4rem;
      margin-bottom: 15px;
      color: var(--dark);
    }

    .card {
      background: var(--light);
      border-radius: var(--border-radius);
      box-shadow: var(--box-shadow);
      padding: 30px;
      margin-bottom: 30px;
      transition: var(--transition);
    }

    .card:hover {
      transform: translateY(-5px);
      box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
    }

    h2 {
      font-size: 1.8rem;
      margin-bottom: 25px;
      color: var(--dark);
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    h2 i {
      color: var(--primary);
    }

    h3 {
      font-size: 1.4rem;
      margin-bottom: 15px;
      color: var(--dark);
      font-weight: 600;
    }

    .tabs {
      display: flex;
      justify-content: center;
      margin: 0 0 30px;
      gap: 10px;
      flex-wrap: wrap;
    }

    .tab {
      padding: 12px 25px;
      cursor: pointer;
      background: var(--light-gray);
      border-radius: 50px;
      font-weight: 500;
      transition: var(--transition);
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 1rem;
    }

    .tab.active {
      background: var(--primary);
      color: white;
    }

    .tab:hover:not(.active) {
      background: #dbe4ff;
    }

    .tab-content {
      display: none;
    }

    .tab-content.active {
      display: block;
      animation: fadeIn 0.4s ease;
    }

    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(10px); }
      to { opacity: 1; transform: translateY(0); }
    }

    label {
      display: block;
      margin-bottom: 8px;
      font-weight: 500;
      color: var(--dark);
    }

    input, select, button, textarea {
      margin: 0.5em auto;
      padding: 15px;
      width: 100%;
      font-size: 1rem;
      border-radius: 10px;
      border: 1px solid var(--light-gray);
      background: var(--light);
      display: block;
      transition: var(--transition);
      font-family: 'Poppins', sans-serif;
    }

    input:focus, select:focus, textarea:focus {
      outline: none;
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
    }

    button {
      background: var(--primary);
      color: white;
      border: none;
      cursor: pointer;
      font-weight: 600;
      padding: 15px 20px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
    }

    button:hover {
      background: var(--primary-dark);
      transform: translateY(-2px);
      box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
    }

    canvas {
      margin: 1.5em auto;
      display: block;
      max-width: 100%;
      border-radius: 12px;
      background: var(--light);
      padding: 15px;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
      border: 1px solid var(--light-gray);
    }

    .loading {
      display: none;
      text-align: center;
      padding: 30px;
    }

    .spinner {
      border: 4px solid rgba(0, 0, 0, 0.1);
      border-left-color: var(--primary);
      border-radius: 50%;
      width: 50px;
      height: 50px;
      animation: spin 1s linear infinite;
      margin: 0 auto 20px;
    }

    @keyframes spin {
      to { transform: rotate(360deg); }
    }

    .error {
      color: #e74c3c;
      padding: 15px;
      background: rgba(231, 76, 60, 0.1);
      border-radius: var(--border-radius);
      margin: 20px 0;
      display: none;
      border-left: 4px solid #e74c3c;
    }

    .success {
      color: #27ae60;
      padding: 15px;
      background: rgba(39, 174, 96, 0.1);
      border-radius: var(--border-radius);
      margin: 20px 0;
      display: none;
      border-left: 4px solid #27ae60;
    }

    .btn-group {
      display: flex;
      justify-content: center;
      gap: 15px;
      margin: 1.5em 0;
      flex-wrap: wrap;
    }

    .btn-group button {
      width: auto;
      min-width: 180px;
      flex: 1;
    }

    .format-info {
      background: #fafbff;
      border-left: 4px solid var(--primary);
      padding: 15px 20px;
      margin: 1.5em auto;
      max-width: 500px;
      text-align: left;
      border-radius: 0 8px 8px 0;
      font-size: 0.95em;
      box-shadow: var(--box-shadow);
    }

    .format-info ul {
      padding-left: 25px;
      margin: 0.5em 0;
    }

    .format-info li {
      margin-bottom: 8px;
      color: var(--gray);
    }

    .visually-hidden {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      border: 0;
    }

    .guide-section {
      background: var(--light);
      border-radius: var(--border-radius);
      padding: 40px;
      margin: 40px auto;
      box-shadow: var(--box-shadow);
    }

    .guide-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 30px;
      margin-top: 25px;
    }

    .guide-item {
      padding: 25px;
      background: #f8f9ff;
      border-radius: var(--border-radius);
      text-align: center;
      font-size: 1.1rem;
    }

    .guide-item h3 {
      font-size: 1.5rem;
      margin-bottom: 15px;
      color: var(--primary);
      display: flex;
      align-items: center;
      gap: 10px;
      justify-content: center;
    }

    .guide-item h3 i {
      font-size: 1.8rem;
    }

    .guide-item p {
      font-size: 1.1rem;
      color: var(--gray);
    }

    /* UPDATED: Customization Panel */
    .customization-panel {
      background: #f8f9ff;
      border-radius: var(--border-radius);
      padding: 25px;
      margin-bottom: 30px;
      border: 1px solid #e9ecef;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    }
    
    .customization-panel h2 {
      font-size: 1.5rem;
      margin-bottom: 20px;
      color: var(--primary);
      display: flex;
      align-items: center;
      gap: 10px;
      justify-content: center;
    }
    
    .customization-options {
      display: grid;
      grid-template-columns: 1fr;
      gap: 20px;
    }
    
    .color-options {
      display: flex;
      justify-content: center;
      gap: 25px;
      flex-wrap: wrap;
    }
    
    .color-option {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
    }
    
    .color-option label {
      font-weight: 500;
      font-size: 1rem;
    }

    .color-option input[type="color"] {
      width: 50px;
      height: 50px;
      padding: 0;
      border: 1px solid var(--light-gray);
      border-radius: 10px;
      cursor: pointer;
    }
    
    .transparent-bg-container {
      background: #f8f9fa;
      border-radius: 10px;
      padding: 15px;
      margin-top: 15px;
      border: 1px dashed var(--light-gray);
      display: flex;
      justify-content: center;
    }
    
    .reset-btn {
      display: flex;
      justify-content: center;
      margin-top: 20px;
    }
    
    button.secondary {
      background: var(--light);
      color: var(--primary);
      border: 2px solid var(--primary);
    }
    
    button.secondary:hover {
      background: #f0f4ff;
      outline: 2px solid var(--primary);
      outline-offset: 2px;
    }

    /* EveryTool Card Styles */
    .sister-tools-section {
      margin: 40px auto;
    }

    .everytool-card {
      display: flex;
      flex-direction: row;
      align-items: center;
      gap: 25px;
      padding: 30px;
      text-align: left;
      background: linear-gradient(135deg, #4361ee, #7209b7);
      color: white;
      border-radius: var(--border-radius);
      box-shadow: var(--box-shadow);
    }
    
    .everytool-card i {
      font-size: 4rem;
      color: white;
      background: rgba(255, 255, 255, 0.15);
      width: 100px;
      height: 100px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      margin: 0;
    }
    
    .everytool-content {
      flex: 1;
    }
    
    .everytool-card h3 {
      font-size: 1.8rem;
      color: white;
      margin-bottom: 10px;
      justify-content: flex-start;
    }
    
    .everytool-card p {
      margin-bottom: 20px;
      font-size: 1.1rem;
      opacity: 0.9;
      font-weight: bold;
      color: white;
    }
    
    .everytool-btn {
      display: inline-block;
      background: white;
      color: var(--primary);
      padding: 12px 25px;
      border-radius: 50px;
      text-decoration: none;
      font-weight: 600;
      transition: var(--transition);
    }
    
    .everytool-btn:hover {
      background: rgba(255, 255, 255, 0.9);
      transform: translateY(-3px);
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }

    @media (max-width: 768px) {
      .features {
        grid-template-columns: 1fr;
      }
      
      .card {
        padding: 20px;
      }

      .feature {
        padding: 20px;
      }

      h1 {
        font-size: 2rem;
      }

      h2 {
        font-size: 1.5rem;
      }

      .btn-group {
        flex-direction: column;
      }

      .btn-group button {
        width: 100%;
      }

      .tab {
        padding: 10px 15px;
        font-size: 0.9rem;
      }

      .guide-section {
        padding: 25px;
      }

      .guide-grid {
        grid-template-columns: 1fr;
      }

      .guide-item {
        min-width: 100%;
      }

      .everytool-card {
        flex-direction: column;
        text-align: center;
      }
      
                .everytool-card h3 {
                    justify-content: center;
                }
              } /* Correctly closing the 768px media query */
          
              @media (max-width: 480px) {
                body {
                  padding: 15px;
                }
          
                header {
                  padding: 20px 0 10px;
                }
          
                .logo {
                  font-size: 2.2rem;
                }
          
                h1 {
                  font-size: 1.8rem;
                }
          
                .guide-item {
                  min-width: 100%;
                }
              }
          
          /* BMC POPUP */
          #bmc-popup {
            display: none;
            position: fixed;
            z-index: 9999;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            align-items: center;
            justify-content: center;
          }
          
          .bmc-popup-content {
            background-color: #fff;
            padding: 30px;
            border-radius: 12px;
            max-width: 450px;
            width: 90%;
            text-align: center;
            position: relative;
            box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
            animation: popup-appear 0.4s ease-out;
          }
          
          @keyframes popup-appear {
            from { transform: scale(0.9); opacity: 0; }
            to { transform: scale(1); opacity: 1; }
          }
          
          #bmc-popup-close {
            position: absolute;
            top: 15px;
            right: 20px;
            font-size: 28px;
            font-weight: bold;
            color: #aaa;
            cursor: pointer;
          }
          
          #bmc-popup-close:hover {
            color: #333;
          }
          
          .bmc-popup-header {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 15px;
            margin-bottom: 20px;
          }
          
          .bmc-popup-header h2 {
            font-size: 1.6rem;
            margin: 0;
          }
          
          #bmc-popup p {
            font-size: 1.1rem;
            color: #666;
            margin-bottom: 25px;
          }
          
          #bmc-popup-button-container .super-bmc-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            padding: 14px 28px;
            font-size: 1.1rem;
            font-weight: 600;
            border-radius: 50px;
            text-decoration: none;
            background: #ffdd00;
            color: #000;
            transition: all 0.3s ease;
            border: none;
          }
          
          #bmc-popup-button-container .super-bmc-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
          }
          
          #bmc-floating {
            position: fixed;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 1000;
            display: none;
          }
          
          .centered-floating-bmc-btn {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 24px;
            background: #ffdd00;
            color: #000;
            border-radius: 50px;
            font-size: 1rem;
            font-weight: 600;
            text-decoration: none;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
            transition: all 0.3s ease;
          }
          
          .centered-floating-bmc-btn:hover {
            transform: translateY(-4px);
            box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
          }  
