/* =======================================
   PROFILE PAGE LAYOUT
======================================= */

.main-content {
  padding: 50px 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-title {
  font-size: 38px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 35px;
  text-align: center;
}

/* PROFILE CARD */

.profile-wrapper {
  width: 550px;
  background: rgba(255, 255, 255, 0.04);
  padding: 40px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.4);
}

/* TOP SECTION */

.profile-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  flex-direction: column;
}

.profile-avatar {
  width: 85px;
  height: 85px;
  border-radius: 50%;
  background: linear-gradient(145deg, #4FC3F7, #005b96);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 35px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #fff;
}

.profile-username {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 3px;
  color: #fff;
}

.profile-email {
  font-size: 14px;
  color: #9ba3b5;
}

/* STATS */

.profile-stats {
  display: flex;
  justify-content: space-around;
  margin: 25px 0;
}

.stat-box {
  text-align: center;
}

.stat-value {
  font-size: 30px;
  font-weight: 700;
  color: #4FC3F7;
}

.stat-label {
  font-size: 13px;
  color: #9ba3b5;
}

/* SECTION TITLE */

.profile-section-title {
  margin-top: 20px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  text-align: center;
}

/* DAILY TABLE */

.profile-stats-table {
  width: 100%;
  margin-top: 20px;
  font-size: 14px;
  border-collapse: collapse;
}

.profile-stats-table thead {
  background: rgba(79, 195, 247, 0.10);
}

.profile-stats-table th,
.profile-stats-table td {
  padding: 10px;
  text-align: center;
  color: #fff;
}

.profile-stats-table tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.03);
}

.loading-row {
  color: #9ba3b5;
  font-style: italic;
}

/* =======================================
   RESPONSIVE (≤ 768px)
======================================= */

@media (max-width: 768px) {

  .main-content {
    padding: 30px 10px;
  }

  .profile-wrapper {
    width: 95%;
    padding: 25px;
    margin-top: 20px;
  }

  .profile-stats {
    flex-direction: column;
    gap: 15px;
  }

  .stat-value {
    font-size: 24px;
  }

  .profile-avatar {
    width: 70px;
    height: 70px;
    font-size: 28px;
  }

  .profile-section-title {
    font-size: 18px;
  }

  .profile-stats-table {
    font-size: 13px;
  }
}
.referral-box {
  background: rgba(255,255,255,0.05);
  margin: 20px auto;
  padding: 16px;
  border-radius: 12px;
  text-align: center;
  width: 90%;
}

.ref-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.ref-link {
  background: rgba(0,0,0,0.3);
  padding: 10px;
  border-radius: 8px;
  font-size: 14px;
  word-break: break-all;
  color: var(--accent);
}

.ref-share {
  margin-top: 10px;
  padding: 10px 16px;
  background: var(--accent-strong);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  color: white;
  font-weight: 600;
  width: 100%;
}
.ref-stats {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 14px;
}
