
    :root {
      --bg-color: #f8f9fa;
      --text-color: #1a1a1a;
      --card-bg: #ffffff;
      --accent: #00ffc6;
    }

    [data-theme="dark"] {
      --bg-color: #0d0d0d;
      --text-color: #f8f9fa;
      --card-bg: #1a1a1a;
      --accent: #00ffc6;
    }

    body {
      font-family: "Poppins", sans-serif;
      background: var(--bg-color);
      color: var(--text-color);
      margin: 0;
      padding: 0;
      transition: background 0.3s, color 0.3s;
    }

    /* ===== HEADER ===== */
    

    .btn {
      color: rgb(255, 255, 255);
    background-color: rgb(72, 54, 102);
    box-shadow: rgba(72, 54, 102, 0.24) 0px 8px 16px 0px;
      padding: 8px 16px;
      border-radius: 6px;
      font-weight: 600;
      border: none;
      cursor: pointer;
      transition: all 0.3s;
    }

    .send-btn:hover {
      opacity: 0.85;
    }
    .send-btn {
    background: rgb(72, 54, 102);
    color: #ffffff;
    box-shadow: rgba(72, 54, 102, 0.24) 0px 8px 16px 0px;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

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

.send-icon {
  font-size: 18px;
  animation: spin 1s linear infinite;
}
    
    /* ===== MAIN ===== */
    main {
      padding: 40px 20px 40px;
      max-width: 1200px;
      margin: auto;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 20px;
    }

    .no-events {
      grid-column: 1 / -1;
      text-align: center;
      color: #999;
      font-size: 16px;
      margin-top: 100px;
    }

    .event-card {
      background: var(--card-bg);
      border-radius: 12px;
      padding: 20px;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
      transition: transform 0.2s;
      cursor: pointer;
    }

    .event-card:hover { transform: translateY(-4px); }

    .event-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 40px;
    }

    .event-date {
      font-size: 13px;
      color: #999;
    }

    .teams {
      display: flex;
      justify-content: space-evenly;
      align-items: center;
      margin: 10px 0;
    }

    .team {
  display: grid;
  align-items: center;
  gap: 6px;
  font-weight: 400;
  margin-bottom: 15px;
  font-size: 12px;
}
.vs {
      font-weight: 400;
      font-size: 13px;
      color: #999;
    }

.team span {
  display: inline-block;
  max-width: 100px;       /* PC truncate width */
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  justify-self: center;
}

/* Mobile: shorter truncate (7 characters) */
@media(max-width: 900px) {
  .team span {
    max-width: 11ch;       /* ~7 characters */
  }
}

    .team img {
      width: 30px;
      height: 30px;
      object-fit: cover;
      border-radius: 50%;
      border: none;
      justify-self: center;
      background-color: #ffffff;
    }

   

    .footer-info {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: 10px;
    }

    .volume {
      color: #999;
      font-size: 14px;
    }

    .timer {
      font-size: 14px;
      color: #00ffc6;
      font-weight: 600;
      text-align: right;
    }

    .stake-btn {
      width: 100%;
      background: rgb(72, 54, 102);
      color: #ffffff;
      padding: 10px;
      border: none;
      border-radius: 8px;
      font-weight: 600;
      font-size: 15px;
      cursor: pointer;
      margin-top: 10px;
      transition: opacity 0.3s ease;
      box-shadow: rgba(72, 54, 102, 0.24) 0px 8px 16px 0px;
    }

    .stake-btn:hover {
      opacity: 0.85;
    }

    .stake-btn:disabled {
      cursor: not-allowed;
      opacity: 0.65;
    }

    

    @media (max-width: 768px) {
      main { grid-template-columns: 1fr; }
    }

    .login-section {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 120px; /* below header */
    min-height: calc(100vh - 100px);
    background: var(--bg-color, #f8f9fa);
    transition: background 0.3s;
  }

  .login-box {
    background: var(--card-bg, #fff);
    color: var(--text-color, #1a1a1a);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 400px;
    text-align: center;
    animation: fadeIn 0.4s ease;
  }

  .login-box h2 {
    margin-bottom: 25px;
    color: rgb(72, 54, 102);
    font-weight: 600;
  }

  .input-group {
    width: 100%;
    margin-bottom: 20px;
  }

  .login-input {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    outline: none;
    background: #f9f9f9;
    color: #333;
    box-sizing: border-box;
    transition: border 0.2s, background 0.2s;
  }

  .login-input:focus {
    border-color: var(--accent, #00ffc6);
    background: #fff;
  }

  .login-button {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    background: rgb(72, 54, 102);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
  }

  .login-button:hover {
    opacity: 0.85;
  }

  .login-message {
    margin-top: 20px;
    font-size: 14px;
    color: #ff4d4d;
  }

  .signup-text {
    margin-top: 25px;
    font-size: 14px;
    color: rgb(72, 54, 102);
  }

  .signup-link {
    color: rgb(72, 54, 102);
    font-weight: 600;
    text-decoration: none;
  }

  .signup-link:hover {
    text-decoration: underline;
  }

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

  /* Dark mode */
  [data-theme="dark"] .login-box {
    background: #1a1a1a;
    color: #f8f9fa;
  }

  [data-theme="dark"] .login-input {
    background: #2a2a2a;
    border-color: #444;
    color: #f8f9fa;
  }

  [data-theme="dark"] .login-input:focus {
    border-color: var(--accent, #00ffc6);
  }

  [data-theme="dark"] .signup-text {
    color: #ccc;
  }

  .reg-section {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 120px;
    background: var(--bg-color, #f8f9fa);
  }
  

  .reg-box {
    background: var(--card-bg, #fff);
    color: var(--text-color, #1a1a1a);
    padding: 40px 30px;
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    animation: regFade 0.4s ease;
  }

  .reg-box h2 {
    margin-bottom: 25px;
    color: rgb(72, 54, 102);
  }

  .reg-group {
    margin-bottom: 20px;
  }

  .reg-input {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
    background: #f9f9f9;
    box-sizing: border-box;
    transition: all 0.3s ease;
  }

  .reg-input:focus {
    outline: none;
    border-color: var(--accent, #00ffc6);
    background: #fff;
  }

  .reg-button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: rgb(72, 54, 102);
    color: #ffffff;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
  }

  .reg-button:hover {
    opacity: 0.85;
  }

  .reg-message {
    margin-top: 15px;
    font-size: 14px;
    color: #ff4d4d;
  }

  .reg-login-text {
    margin-top: 25px;
    font-size: 14px;
    color: rgb(72, 54, 102);
  }

  .reg-login-link {
    color: rgb(72, 54, 102);
    font-weight: 600;
    text-decoration: none;
  }

  .reg-login-link:hover {
    text-decoration: underline;
  }

  /* ✅ Modal */
  .reg-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }

  .reg-modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    width: 90%;
    max-width: 400px;
  }

  [data-theme="dark"] .reg-box,
  [data-theme="dark"] .reg-modal-content {
    background: #1a1a1a;
    color: #f8f9fa;
  }

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

  /* ✅ Country Select Dropdown */
.reg-country-wrapper {
  position: relative;
  width: 100%;
}

.reg-country-select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #ccc;
  background: #f9f9f9;
  color: #333;
  appearance: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.reg-country-select:focus {
  border-color: var(--accent, #00ffc6);
  background: #fff;
}

/* ✅ Scroll control (only when open) */
.reg-country-select option {
  padding: 8px;
}

/* Fix default dropdown height to show scroll only when opened */
.reg-country-select:focus option {
  max-height: 180px;
  overflow-y: auto;
}

/* ✅ Dark mode compatibility */
[data-theme="dark"] .reg-country-select {
  background: #2a2a2a;
  color: #f8f9fa;
  border-color: #444;
}

[data-theme="dark"] .reg-country-select:focus {
  background: #1a1a1a;
  border-color: var(--accent, #00ffc6);
}

/* Optional: add a small dropdown arrow */
.reg-country-wrapper::after {
  content: "▼";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  pointer-events: none;
  font-size: 12px;
}
.dashboard {
      max-width: 500px;
      margin: auto;
      background: white;
      padding: 2rem;
      border-radius: 10px;
      box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    

    /* 🌓 Dark Mode Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  margin-left: 10px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

/* When toggled ON */
.toggle-switch input:checked + .slider {
  background-color: #007bff; /* Blue, like your image */
}

.toggle-switch input:checked + .slider:before {
  transform: translateX(20px);
}

  