    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: Arial, sans-serif;
    }

    html, body {
      width: 100%;
      height: 100%;
      overflow: hidden; /* Prevent page scrolling */
    }

    body {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      align-items: center;
      background: white;
      color: #ffffff;
    }

    .responsive-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      width: 90%;
      max-width: 1200px;
      margin: 10px 0;
    }

    .profile-section {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .profile-section img {
      width: 50px;
      height: 50px;
      border-radius: 50%;
      border: 2px solid #0000002a;
    }

    .profile-section span {
      font-size: 18px;
      font-weight: bold;
      color: #000000a6;
    }

    .wallet-container {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .wallet {
      display: flex;
      align-items: center;
      gap: 5px;
      background: #0000000c;
      padding: 8px 15px;
      border-radius: 15px;
      font-size: 16px;
      color: #000000a6;
      font-weight: bold;
    }

    .wallet img {
      width: 20px;
      height: 20px;
    }

    .history-button {
      padding: 8px 15px;
      background: linear-gradient(to bottom, #00aaff, #0084ff);
      color: #ffffff;
      font-size: 16px;
      border: none;
      border-radius: 10px;
      cursor: pointer;
      font-weight: bold;
      transition: background 0.3s;
    }

    .history-button:hover {
      background: #0084ff;
    }

    .header {
      display: flex;
      align-items: center;
      gap: 15px;
      width: 90%;
      max-width: 1200px;
      margin: 20px 0;
    }

    .header img {
      width: 70px;
      height: auto;
      border-radius: 10px;
    }

    .header h1 {
      font-size: 28px;
      color: #000000a6;
      flex: 1;
    }

    .content {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      align-items: center;
      width: 90%;
      max-width: 1200px;
      flex: 1; /* Fills available vertical space */
    }
    
:root {
  --vh: 1vh; /* Default to 1vh */
}

@supports (height: 100dvh) {
  :root {
    --vh: 1dvh; /* Use dynamic viewport height if supported */
  }
}

.instructions-container {
  width: 100%;
  overflow-y: auto; /* Enable scrolling for overflow content */
  padding: 10px;
  background: rgba(0, 0, 0, 0.050);
  border-radius: 10px;
  flex: 1;
  height: auto;
  max-height: calc(var(--vh) * 100 - 450px); /* Leaves space for play button and UGC container */
}

    .instruction-row {
      display: flex;
      align-items: center;
      margin-bottom: 10px;
    }

    .instruction {
      flex: 1;
      background: linear-gradient(135deg, #f8f9fa 60%, #e6e6e6 40%);
      border: 2px solid #dddddd;
      border-radius: 10px;
      padding: 12px;
      color: #555555;
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 16px;
    }
    
  .instruction-text {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.check-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.3em;
  height: 1.3em;
  font-size: 0.9em;
  font-weight: bold;
  color: white;
  background-color: #00000018; /* green */
  border: solid 1px #0000003f;
  border-radius: 4px;
  flex-shrink: 0;
}

/* Smaller screens */
@media (max-width: 600px) {
  .check-mark {
    width: 1.3em;
    height: 1.3em;
    font-size: 0.75em;
  }
}

    
    .instruction-COMPLETED {
    background: linear-gradient(135deg, #f8f9fa 60%, #15ff0025 40%);
    border: 2px solid #09ff0070;
    }
    
    .instruction-PENDING {
    background: linear-gradient(135deg, #f8f9fa 60%, #e6e6e6 40%);
    border: 2px solid #ffbb00;
    }
    
    .instruction-FAILED {
    background: linear-gradient(135deg, #f8f9fa 60%, #e6e6e6 40%);
    border: 2px solid #ff0019;
    }

    .instruction-status {
    font-weight: bold;
    color: white;
    }

    .instruction span img {
      width: 20px;
      height: 20px;
    }
    
.responsive-coin {
  display: inline-flex;
  align-items: center;
  font-size: 1rem; /* scalable font size */
  font-weight: bold;
  color: rgb(255, 115, 0);
  gap: 0.1rem; /* spacing between text and image */
  background-color: #ffc44573;
  border: solid 1px rgb(255, 174, 0);
  padding: 2px;
  padding-left: 8px;
  padding-right: 8px;
  border-radius: 8px;
}

.responsive-coin img {
  width: 1em; /* scalable width relative to font size */
  height: auto; /* maintain aspect ratio */
}

/* Adjust font size and spacing for smaller screens */
@media (max-width: 600px) {
  .responsive-coin {
    font-size: 0.8rem; /* smaller font size */
    gap: 0.1rem;
  }
}


    .play-button {
      width: 100%;
      padding: 15px;
      background: linear-gradient(to bottom, #00aaff, #0084ff);
      color: #ffffff;
      font-size: 20px;
      border: none;
      border-radius: 30px;
      font-weight: bold;
      cursor: pointer;
      text-align: center;
      box-shadow: 0 4px 4px rgba(0, 0, 0, 0.3);
      transition: background 0.3s;
      margin-bottom: 10px; /* Adds some spacing above the button */
    }

    .play-button:hover {
      background: #0084ff;
    }

    @media (max-width: 768px) {
      .header h1 {
        font-size: 24px;
      }

      .play-button {
        font-size: 18px;
      }
    }

    @media (max-width: 480px) {
      .instructions-container {
        padding: 10px;
      }

      .play-button {
        font-size: 16px;
        padding: 10px;
      }
    }

    .ugc-container {
      display: flex;
      gap: 15px;
      width: 90%;
      max-width: 1200px;
      overflow-x: auto;
      margin: 20px 0;
    }

    .ugc {
      flex: 0 0 100px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      background: #0000000c;
      border-radius: 15px;
      padding: 15px;
      text-align: center;
      cursor: pointer;
    }

    .ugc img {
      width: 60px;
      height: auto;
      margin-bottom: 10px;
    }

    .ugc h3 {
      font-size: 14px;
      color: #000000a6;
    }

    @media (max-width: 768px) {
      .header h1 {
        font-size: 24px;
      }

      .play-button {
        font-size: 18px;
      }

      .ugc {
        flex: 0 0 80px;
      }
    }

    @media (max-width: 480px) {
      .instructions-container {
        padding: 10px;
      }

      .play-button {
        font-size: 16px;
        padding: 16px;
      }

      .ugc {
        flex: 0 0 60px;
      }
    }

/* Card css */
    .card {
      width: 90%;
      max-width: 400px;
      background: #e6e6e6;
      border-radius: 15px;
      padding: 20px;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .card img {
      width: 100px;
      height: 100px;
      border-radius: 10px;
      margin-bottom: 10px;
    }

    .card h1 {
      font-size: 24px;
      font-weight: bold;
      color: #333;
      text-transform: uppercase;
      text-align: center;
      margin-bottom: 10px;
    }

    .card .stars {
      display: flex;
      align-items: center;
      gap: 2px;
      font-size: 14px;
      font-weight: bold;
      color: #666;
    }

    .card .stars img {
      width: 16px;
      height: 16px;
      margin-top: 10px;
    }

    .card .progress-bar-container {
      width: 100%;
      background: #0000001f;
      border-radius: 10px;
      padding: 5px;
      margin-bottom: 15px;
    }

    .card .progress-bar {
      width: 10%; /* Adjust progress dynamically */
      height: 10px;
      background: linear-gradient(90deg, #00aaff, #0084ff);
      border-radius: 5px;
    }

    .card .description {
      width: 100%;
      min-height: 60px;
      background: #d4d4d4;
      border-radius: 10px;
      padding: 10px;
      font-size: 14px;
      color: #666;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      margin-bottom: 15px;
    }

    .card .description::placeholder {
      color: #aaa;
    }

    .card .claim-ugc {
      width: 100%;
      padding: 10px 20px;
      background: linear-gradient(to bottom, #00aaff, #0084ff);
      color: white;
      border: none;
      border-radius: 10px;
      font-size: 16px;
      font-weight: bold;
      text-transform: uppercase;
      cursor: pointer;
      transition: background 0.3s;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }

    .card .claim-ugc:hover {
        background: #0084ff;
    }

    @media (max-width: 480px) {
      .card {
        padding: 15px;
      }

      .card h1 {
        font-size: 20px;
      }

      .card .claim-ugc {
        font-size: 14px;
      }
    }

/* Redeem Css */
    .popup {
      width: 90%;
      max-width: 400px;
      background: #e6e6e6;
      border-radius: 15px;
      padding: 20px;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
      display: flex;
      flex-direction: column;
      align-items: center;
      position: relative;
    }

    .popup img {
      width: 80px;
      height: 80px;
      border-radius: 10px;
      margin-bottom: 10px;
    }

    .popup h1 {
      font-size: 24px;
      font-weight: bold;
      color: #333;
      text-transform: uppercase;
      text-align: center;
      margin-bottom: 15px;
    }

    .popup .code {
      width: 100%;
      padding: 15px;
      background: #c4c4c4;
      color: #333;
      font-size: 18px;
      font-weight: bold;
      text-align: center;
      border-radius: 10px;
      margin-bottom: 15px;
    }

    .popup button {
      width: 100%;
      padding: 15px;
      background: linear-gradient(to bottom, #00aaff, #0084ff);
      color: white;
      border: none;
      border-radius: 10px;
      font-size: 16px;
      font-weight: bold;
      text-transform: uppercase;
      cursor: pointer;
      transition: background 0.3s;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    }

    .popup button:hover {
      background: #0084ff;
    }

    @media (max-width: 480px) {
      .popup {
        padding: 15px;
      }

      .popup h1 {
        font-size: 20px;
      }

      .popup button {
        font-size: 14px;
      }

      .popup .code {
        font-size: 16px;
        padding: 10px;
      }
    }

 /* History Page */
    .history-container {
      display: flex;
      flex-direction: column;
      height: 100%;
      width: 100%;
    }

    /* Header Section */
    .history-header {
      text-align: center;
      padding: 10px;
      font-size: 24px;
      font-weight: bold;
      background: #ffffff;
      color: #000000a6;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
      position: relative;
    }

    /* Close Button */
    .history-close-btn {
      position: absolute;
      top: 15px;
      right: 15px;
      width: 30px;
      height: 30px;
      background: #ff5f5f;
      color: #fff;
      font-size: 20px;
      font-weight: bold;
      border: none;
      border-radius: 50%;
      cursor: pointer;
      display: flex;
      justify-content: center;
      align-items: center;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
      transition: background 0.3s;
    }

    .history-close-btn:hover {
      background: #ff3b3b;
    }

    /* Scrollable History Section */
    .history-list {
      flex: 1;
      overflow-y: auto;
      padding: 15px;
      display: flex;
      flex-direction: column;
      gap: 15px;
    }

    .history-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: #e0e0e0;
      border-radius: 10px;
      padding: 15px;
      gap: 15px;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
      flex-wrap: wrap;
    }

    .history-item img {
      width: 50px;
      height: 50px;
      border-radius: 10px;
    }

    .history-item-details {
      display: flex;
      flex-direction: column;
      flex: 1;
      gap: 5px;
    }

    .history-item-title {
      font-size: 16px;
      font-weight: bold;
      color: #333;
    }

    .history-item-code {
      background: #c4c4c4;
      color: #333;
      font-size: 14px;
      font-weight: bold;
      padding: 5px 10px;
      border-radius: 5px;
      display: inline-block;
      flex: 1;
    }

    .copy-button {
      padding: 8px 15px;
      background: linear-gradient(to bottom, #00aaff, #0084ff);
      color: white;
      border: none;
      border-radius: 5px;
      font-size: 14px;
      font-weight: bold;
      cursor: pointer;
      transition: background 0.3s;
    }

    .copy-button:hover {
      background: #0084ff;
    }

    @media (max-width: 480px) {
      .history-header {
        font-size: 20px;
      }



      .history-item img {
        width: 40px;
        height: 40px;
      }

      .history-item-code {
        width: 100%;
        font-size: 14px;
        text-align: center;
      }

      .copy-button {
        width: 100%;
        font-size: 14px;
        padding: 10px;
        text-align: center;
      }
    }

/* Google Login */
    .google-popup {
      width: 100%;
      max-width: 600px;
      background: #fff;
      border-radius: 20px 20px 0 0;
      box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
      padding: 20px;
      padding-bottom: 50px;
      position: fixed;
      animation: slideUp 0.5s ease-out;
      bottom: 0;
    }

    /* Animation for slide up */
    @keyframes slideUp {
      from {
        transform: translateY(100%);
      }
      to {
        transform: translateY(0);
      }
    }

    .popup-icon {
      width: 60px;
      height: 60px;
      border-radius: 10px;
      margin: 0 auto 20px auto;
      display: block;
    }

    .popup-title {
      text-align: center;
      font-size: 24px;
      font-weight: bold;
      margin-bottom: 15px;
      color: #333;
    }

    .google-button {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      padding: 12px 20px;
      background: #4285f4;
      color: #fff;
      font-size: 16px;
      font-weight: bold;
      border: none;
      border-radius: 5px;
      cursor: pointer;
      transition: background 0.3s;
      margin-top: 10px;
    }

    .google-button img {
      width: 20px;
      height: 20px;
      margin-right: 10px;
    }

    .google-button:hover {
      background: #357ae8;
    }

    @media (max-width: 480px) {
      .google-popup {
        padding: 15px;
      }

      .popup-title {
        font-size: 20px;
      }

      .google-button {
        font-size: 14px;
        padding: 10px;
      }
    }

      /* General styles for the toast container */
      .toast-container {
            position: fixed;
            bottom: 10%;
            left: 50%;
            transform: translateX(-50%);
            background-color: #d1d1d1;
            color: #000000cc;
            padding: 15px 20px;
            border-radius: 8px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            font-size: 1rem;
            font-weight: bold;
            display: none; /* Hidden by default */
            z-index: 1000;
        }

        /* Media query for responsiveness */
        @media (max-width: 600px) {
            .toast-container {
                font-size: 0.9rem;
                padding: 10px 15px;
            }
        }

        /* Toast visibility classes */
        .toast-show {
            display: block; /* Makes the toast visible */
            animation: fadeInOut 3s ease-in-out;
        }

        /* Animation for the toast */
        @keyframes fadeInOut {
            0% {
                opacity: 0;
                transform: translateY(20px) translateX(-50%);
            }
            10%, 90% {
                opacity: 1;
                transform: translateY(0) translateX(-50%);
            }
            100% {
                opacity: 0;
                transform: translateY(20px) translateX(-50%);
            }
        }

          /* Full-screen loading overlay */
          .loading-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black background */
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 10000; /* Ensure it stays on top */
        }

        /* Spinner styles */
        .spinner {
            width: 50px;
            height: 50px;
            border: 5px solid rgb(255, 255, 255);
            border-top: 5px solid #008cff; /* White spinner color */
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        /* Spinner animation */
        @keyframes spin {
            from {
                transform: rotate(0deg);
            }
            to {
                transform: rotate(360deg);
            }
        }

        /* Hide overlay when not active */
        .loading-overlay.hidden {
            display: none;
        }
        
         /* QR Code CSS */
    .overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.384);
      display: none;
      justify-content: center;
      align-items: center;
      z-index: 1000;
    }

    /* qr-popup Container */
    .qr-popup {
      background: #ffffff;
      border-radius: 10px;
      width: 100%;
      max-width: 500px;
      padding: 20px;
      text-align: center;
      position: relative;
    }

    /* Close Button */
    .qr-popup .close-btn {
      position: absolute;
      top: 10px;
      right: 10px;
      background: transparent;
      font-weight: bold;
      border: none;
      color: black;
      font-size: 20px;
      cursor: pointer;
    }

    /* QR Code */
    .qr-popup .qr-code {
      margin: 20px 0;
    }

    canvas {
      margin: 0 auto;
      display: block;
      
    }

    /* Footer Content */
    .qr-popup .footer {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 10px;
      margin-top: 20px;
      font-size: 14px;
    }

    .qr-popup .footer .device-icon img {
      width: 40px;
      height: 40px;
    }

    .qr-popup .footer .price {
      color: #303030;
      font-weight: bold;
    }

    /* Copy Button */
    .qr-popup .footer .copy-btn {
      background: #0084ff;
      border: none;
      color: rgb(255, 255, 255);
      padding: 10px 20px;
      font-size: 14px;
      font-weight: bold;
      border-radius: 5px;
      cursor: pointer;
      transition: background 0.3s ease;
    }

    .qr-popup .footer .copy-btn:hover {
      background: #0084ff;
    }

    /* Responsive Adjustments */
    @media (max-width: 480px) {
      .qr-popup {
        padding: 15px;
      }
    }
    
          .device-selector {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 20px;
      margin-top: 20px;
    }

    .device-option {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 10px 20px;
      border: 2px solid #444;
      border-radius: 25px;
      color: white;
      font-size: 16px;
      font-weight: bold;
      background-color: #1d1d1d;
      cursor: pointer;
      transition: all 0.3s ease;
    }

    .device-option img {
      width: 20px;
      margin-right: 10px;
    }

    .device-option.active {
      border-color: #006ec8;
      background-color: #0084ff;
      color: white;
    }

    @media (max-width: 600px) {
      .device-option {
        font-size: 14px;
        padding: 8px 15px;
      }
    }
    
     @media (max-width: 1024px) {
      .device-selector {
        display: none;
      }
    }
    
        .coin-container {
      display: flex;
      align-items: center;
      font-family: Arial, sans-serif;
      font-size: 30px; 
      font-weight: bold;
      color: #000;
    }

    .coin-container img {
      width: 20px; 
      height: 20px;
      margin-right: 4px; 
      margin-top: 10px;
    }

    .coin-number {
      font-size: 18px; /* Matches the image size */
      color: #000;
    }
