    @import url('https://fonts.googleapis.com/css2?family=Kanit:wght@400;600&display=swap');

    body {
      margin: 0;
      font-family: 'Kanit', sans-serif;
      background: url(Images/generatecode.png) no-repeat center center/cover;
      height: 100vh;
      display: flex;
      justify-content: center;
      align-items: center;
      color: white;
    }

    .container {
      background: rgba(255, 255, 255, 0.1);
      backdrop-filter: blur(16px);
      padding: 30px;
      border-radius: 20px;
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
      text-align: center;
      width: 90%;
      max-width: 400px;
    }
    .credit {
      font-size: 20px;
      color: rgb(229, 255, 0);
      opacity: 0.7;
      margin-top: 10px;
    }

    h1 {
      font-size: 28px;
      margin-bottom: 20px;
    }

    h1 svg {
      vertical-align: middle;
      margin-right: 8px;
      stroke: white;
    }

    .code-box {
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: rgba(255, 255, 255, 0.15);
      backdrop-filter: blur(8px);
      border-radius: 12px;
      padding: 12px 16px;
      margin-bottom: 20px;
      color: white;
      font-weight: bold;
      font-size: 20px;
      word-break: break-word;
    }

    .buttons {
      display: flex;
      justify-content: center;
      gap: 10px;
      flex-wrap: wrap;
    }

    button {
      padding: 10px 20px;
      border: none;
      border-radius: 10px;
      cursor: pointer;
      font-size: 16px;
      display: flex;
      align-items: center;
      gap: 6px;
      transition: 0.2s ease;
    }

    .generate {
      background-color: #fcd34d;
      color: black;
    }

    .copy {
      background-color: white;
      color: black;
      padding: 8px;
      border-radius: 8px;
    }

    .qr {
      background-color: #8b5cf6;
      color: white;
    }

    .download {
      margin-top: 10px;
      background-color: #10b981;
      color: white;
      padding: 10px 20px;
      border-radius: 10px;
    }

    .footer {
      margin-top: 20px;
      font-size: 12px;
      opacity: 0.85;
    }

    #qr-container {
      margin-top: 20px;
    }

    img.qr-code {
      margin-top: 10px;
      width: 150px;
      border-radius: 10px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    @media (max-width: 480px) {
      .container {
        padding: 20px;
      }
      h1 {
        font-size: 22px;
      }
      .code-box {
        font-size: 16px;
      }
    }