    @import url('https://fonts.googleapis.com/css2?family=Kanit:wght@400;600&display=swap');

    body {
      margin: 0;
      font-family: 'Kanit', sans-serif;
      background-image: linear-gradient(to right, #2f2bff, #00c3ff);;
      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;
      }
    }
        /* Language Modal Styles */
    #lang-modal {
      display: none;
      position: fixed;
      z-index: 9999;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.6);
      animation: fadeIn 0.3s ease-in-out;
      align-items: center;
      justify-content: center;
    }
    #lang-modal.modal-open {
      display: flex;
    }
    .lang-modal-content {
      background-color: #1a1a2e;
      padding: 30px;
      border-radius: 15px;
      width: 90%;
      max-width: 400px;
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
      animation: slideUp 0.3s ease-in-out;
    }
    .lang-modal-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 20px;
      padding-bottom: 15px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .lang-modal-header h2 {
      color: white;
      margin: 0;
      font-size: 1.5rem;
    }
    .lang-modal-close {
      background: none;
      border: none;
      color: white;
      font-size: 28px;
      cursor: pointer;
      transition: color 0.2s;
    }
    .lang-modal-close:hover {
      color: #06b5d2;
    }
    #lang-modal-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
      gap: 10px;
    }
    .lang-modal-option {
      padding: 15px 10px;
      background-color: #262641;
      border: 2px solid transparent;
      border-radius: 10px;
      color: white;
      cursor: pointer;
      transition: all 0.2s;
      font-weight: 600;
      font-size: 0.9rem;
    }
    .lang-modal-option:hover {
      background-color: #333349;
      border-color: #06b5d2;
      transform: translateY(-2px);
    }
    .lang-modal-option.modal-selected {
      background-color: #06b5d2;
      border-color: #00a8c1;
      box-shadow: 0 0 15px rgba(6, 181, 210, 0.5);
    }
    #lang-toggle-button {
      background: rgba(6, 181, 210, 0.2);
      border: 2px solid #06b5d2;
      color: white;
      padding: 8px 12px;
      border-radius: 8px;
      cursor: pointer;
      transition: all 0.2s;
      display: flex;
      align-items: center;
      gap: 6px;
      font-weight: 600;
      font-size: 0.9rem;
      position: fixed;
      top: 20px;
      right: 20px;
      z-index: 9998;
    }
    #lang-toggle-button:hover {
      background: rgba(6, 181, 210, 0.3);
      border-color: #00a8c1;
    }
    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }
    @keyframes slideUp {
      from { transform: translateY(30px); opacity: 0; }
      to { transform: translateY(0); opacity: 1; }
    }