* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background: #f0f0f0;
  display: flex;
  justify-content: center;
  padding: 20px;
}

/* Phone Frame for PC/Laptop */
.phone-frame {
  background: linear-gradient(to bottom, #ede6da 0%, #f5f0e8 50%, #ffffff 100%);
  border-radius: 30px;
  overflow: hidden;
  max-width: 550px;
  width: 100%;
  min-height: 100vh;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  position: relative;
  padding-bottom: 50px;
}

/* Header */
.header {
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.header img {
  height: 50px;
}

/* .subscribe {
   display: flex;
   align-items: center;
   gap: 5px;
 }  */

.subscribe a {
  text-decoration: none;
  transition: all 0.4s ease;
}

.subscribe-btn {
  background: #00699d;
  color: #fff;
  padding: 9px 17px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.4s ease;
}

.subscribe a:hover {
  background: transparent;
  border: 1px solid #00699d;
  color: #00699d;
  font-weight: 600;
}

/* Banner Section */
.banner {
  width: 100%;
  padding: 0 20px;
  margin-top: 10px;
  box-sizing: border-box;
}

.banner img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  object-fit: cover;
}

/* About Game */
.about-game {
  padding: 20px;
}

.about-card {
  background: #f3f3f3;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  color: #555;
  border-radius: 20px;
  padding: 20px;
  position: relative;
}

.tag {
  color: #fff;
  background: #9de00b;
  padding: 5px 10px;
  border-radius: 10px;
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 10px;
}

.about-card p {
  font-size: 14px;
  line-height: 1.4;
  text-align: justify;
}

.about-rule {
  margin-top: 10px;
}

.about-rule span {
  color: #000;
  font-weight: bold;
}

/* Play-section */
.Play-section {
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.play-btn {
  width: 60%;
  background: #00699d;
  color: #fff;
  border-radius: 20px;
  padding: 10px 20px;
  text-decoration: none;
  text-align: center;
  transition: all 0.4 ease;
}

.play-btn:hover {
  background: transparent;
  border: 1px solid #00699d;
  color: #00699d;
  font-weight: 600;
}

/* T&C-section */
.terms-section {
  margin: 22px;
}

.terms-section h2 {
  font-size: 18px;
  margin-bottom: 8px;
}

.terms-header {
  background-color: #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  color: #000;
  padding: 12px 20px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  transition: background 0.3s;
}

.terms-header:hover {
  background-color: #9de00b;
}

.arrow {
  display: inline-block;
  transition: transform 0.3s ease;
  font-size: 18px;
}

.terms-content {
  margin-top: 10px;
  background: #f5f5f5;
  padding: 0 15px;
  border-radius: 10px;
  font-size: 14px;
  color: #333;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.terms-content ul {
  list-style: disc inside;
  padding: 10px 0;
}

.terms-content li {
  margin-bottom: 8px;
}

/* Leaderboard-Style */
.leaderboard-head {
  padding: 20px;
  text-align: center;
  font-weight: bold;
  font-size: 18px;
}

/* Players list styles */
.leaderboard-list {
    margin: 20px auto;
    max-width: 900px;
    padding: 0 20px;
}

.list-header {
    text-align: center;
    margin-bottom: 20px;
}

.list-header h3 {
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

.list-header h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 50%;
    height: 3px;
    background: linear-gradient(to right, #6366f1, #00699d);
    border-radius: 2px;
}

.players-table {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 30px;
}

.player-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.player-row:last-child {
    border-bottom: none;
}

.player-row:hover {
    background-color: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.rank-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.rank-number {
    font-size: 1.3rem;
    font-weight: 700;
    color: #6366f1;
    min-width: 50px;
    text-align: center;
    background: #f0f4ff;
    padding: 5px 10px;
    border-radius: 8px;
}

.player-number {
    font-size: 1.1rem;
    color: #333;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.you-badge {
    background: #10b981;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    margin-right: 5px;
    letter-spacing: 0.5px;
}

.points-info {
    font-size: 1.2rem;
    font-weight: 700;
    color: #10b981;
    background: #ecfdf5;
    padding: 8px 15px;
    border-radius: 10px;
    margin-left: 10px;
}

/* Current user row styling */
.current-user-row {
    background: linear-gradient(135deg, #6366f1, #00699d) !important;
    border: none !important;
    /* margin: 5px 0; */
    /* border-radius: 12px; */
    color: white;
}

.current-user-row .rank-number {
    color: white;
    background: rgba(255, 255, 255, 0.2);
}

.current-user-row .player-number {
    color: white;
}

.current-user-row .points-info {
    color: white;
    background: rgba(255, 255, 255, 0.2);
}

/* Current user section for users not in top 10 */
.current-user-section {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    padding: 20px;
    margin-top: 30px;
}

.section-header {
    text-align: center;
    margin-bottom: 20px;
}

.section-header h4 {
    color: #333;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
}

.rank-summary {
    text-align: center;
    margin-top: 15px;
    color: #666;
    font-size: 0.95rem;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.no-players {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-style: italic;
}

/* Rank badges for top 3 */
.player-row:nth-child(1) .rank-number {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
}

.player-row:nth-child(2) .rank-number {
    background: linear-gradient(135deg, #c0c0c0, #e0e0e0);
    color: #333;
}

.player-row:nth-child(3) .rank-number {
    background: linear-gradient(135deg, #cd7f32, #e6a15c);
    color: #333;
}


/* Support-Style */
.support-head {
  padding: 20px;
  text-align: center;
  font-weight: bold;
  font-size: 18px;
}

.support-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.support-container h2 {
  padding: 20px 20px 5px 20px;
  font-size: 18px;
  text-align: center;
  margin-bottom: 10px;
}

.support-box {
  width: 90%;
  background: #f5f5f5;
  padding: 16px;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.call-text {
  font-size: 16px;
  color: #662d91;
  font-weight: bold;
}

.call-number {
  font-size: 16px;
  color: #000;
  font-weight: bold;
}

.faq-section {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin-bottom: 10px;
}

.faq-section h2 {
  padding: 20px 20px 5px 20px;
  font-size: 20px;
  text-align: center;
  margin-bottom: 10px;
}

.faq-section .faq-item {
  width: 90%;
  margin-bottom: 10px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #2ce906;
}

.faq-question {
  width: 100%;
  padding: 12px;
  background: #00699d;
  color: #fff;
  border: none;
  text-align: left;
  font-weight: bold;
  cursor: pointer;
  position: relative;
  transition: background 0.3s;
}

.faq-question::after {
  content: "▾";
  position: absolute;
  right: 15px;
  font-size: 16px;
  transition: transform 0.3s;
}

.faq-item.open .faq-question::after {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.4s ease,
    padding 0.4s ease;
  padding: 0 12px;
  background: #fff;
}

.faq-item.open .faq-answer {
  padding: 12px;
  max-height: 300px;
}

/* modal styles */
/* .modal-content{
  background: rgba(255, 255, 255, 0.4);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.89);
} */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 15px;
  width: 90%;
  max-width: 400px;
  position: relative;
  text-align: center;
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-content h4 {
  margin-bottom: 15px;
  color: #333;
}

.modal-content p {
  margin-bottom: 20px;
  color: #666;
}

.subscribe-form input {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
}

.subscribe-form button {
  width: 100%;
  padding: 12px;
  background: #4caf50;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
}

.subscribe-form button:hover {
  background: #45a049;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #666;
  transition: color 0.3s;
}

.modal-close:hover {
  color: #333;
}

.alert-danger {
  background: #f8d7da;
  color: #721c24;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 15px;
  border: 1px solid #f5c6cb;
}

.success-modal .modal-content {
  max-width: 350px;
}

.success-modal .modal-content i {
  font-size: 60px;
  color: #4caf50;
  margin-bottom: 20px;
}

/* User Dropdown Styles */
.user-wrapper {
  position: relative;
  display: inline-block;
}

.user-btn {
  background: #4caf50;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  transition: background 0.3s;
}

.user-btn:hover {
  background: #45a049;
}

.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  min-width: 250px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 1000;
}

.user-dropdown.show {
  max-height: 400px;
  opacity: 1;
  transform: translateY(10px);
  margin-top: 10px;
}

.user-info {
  padding: 20px;
  border-bottom: 1px solid #eee;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-label {
  color: #666;
  font-size: 14px;
}

.info-value {
  color: #333;
  font-weight: 600;
}

.points-display {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  font-weight: bold;
}

.user-actions {
  padding: 15px;
}

.unsubscribe-btn {
  width: 100%;
  padding: 12px;
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s;
}

.unsubscribe-btn:hover {
  background: #c82333;
}

/* Animation for subscribe button */
.subscribe-btn {
  transition: all 0.3s ease;
}

.subscribe-btn.removing {
  transform: scale(0);
  opacity: 0;
}

.user-btn.entering {
  animation: slideInRight 0.5s ease;
}

@keyframes slideInRight {
  from {
    transform: translateX(20px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Bottom Nav */
.bottom-nav {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 300px;
  background: #fff;
  border-radius: 9999px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px 15px;
  z-index: 10;
  margin: auto;
}

.bottom-nav a i {
  font-size: 22px;
  color: #cccac7;
}

/* Active nav item */
.bottom-nav a.active {
  background: #00699d;
  color: white;
  padding: 8px 12px;
  border-radius: 9999px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
  text-decoration: none;
}

/* Responsive for Mobile */
@media (max-width: 500px) {
  body {
    background: #fff;
    padding: 0;
  }

  /* .header {
    padding-left: 0px;
  } */

  .phone-frame {
    border-radius: 0;
    box-shadow: none;
    max-width: 100%;
    height: 100%;
  }

  .Play-section {
    padding: 0;
  }

  .top-three {
    padding: 0 15px;
  }

  .leaderboard-list {
    padding: 0 30px;
  }

  .bottom-nav {
    bottom: 5px;
  }
}
 
@media (max-width: 768px) {
    .leaderboard-list {
        padding: 0 15px;
        margin: 0;
    }
    
    .player-row {
        padding: 15px 18px;
    }
    
    .rank-info {
        gap: 15px;
    }
    
    .rank-number {
        min-width: 45px;
        font-size: 1.2rem;
        padding: 4px 8px;
    }
    
    .player-number {
        font-size: 1rem;
    }
    
    .points-info {
        font-size: 1.1rem;
        padding: 6px 12px;
    }
    
    .leaderboard-head h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .player-row { 
        align-items: center;
        gap: 10px;
        padding: 15px;
    }
    
    .player-row:hover {
        transform: none;
    }
    
    .rank-info {
        width: 100%;
        justify-content: space-between;
    }
    
    .points-info {
        width: 100%;
        text-align: center;
    }
    
    .current-user-row {
        flex-direction: row;
    }
    
    /* .current-user-row .points-info {
        text-align: right;
    } */
}
