/* ============================================================
   CHATELITE PROFILE PAGE
   Blue Premium Theme
   ============================================================ */

.profile-main {
  min-height: 100vh;
  padding: 28px 22px 110px;
  background:
    radial-gradient(
      circle at 85% 0%,
      rgba(37, 99, 235, 0.08),
      transparent 32%
    ),
    #f5f8ff;
}

.profile-page {
  width: 100%;
  max-width: 1050px;
  margin: 0 auto;
}


/* ============================================================
   PAGE HEADER
   ============================================================ */

.profile-page-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.profile-header-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 15px;

  color: #ffffff;
  background: linear-gradient(
    135deg,
    #2563eb,
    #1d4ed8
  );

  box-shadow:
    0 8px 22px rgba(37, 99, 235, 0.22);
}

.profile-header-icon svg {
  width: 23px;
  height: 23px;
}

.profile-page-title {
  margin: 0;

  color: #0f172a;

  font-size: 25px;
  font-weight: 800;
  line-height: 1.15;
}

.profile-page-subtitle {
  margin: 5px 0 0;

  color: #64748b;

  font-size: 13px;
  line-height: 1.5;
}


/* ============================================================
   HERO PROFILE CARD
   ============================================================ */

.profile-hero-card {
  position: relative;
  overflow: hidden;

  min-height: 190px;

  display: flex;
  align-items: center;

  padding: 32px;

  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 24px;

  background:
    linear-gradient(
      135deg,
      #ffffff 0%,
      #f8fbff 58%,
      #eef5ff 100%
    );

  box-shadow:
    0 12px 35px rgba(15, 23, 42, 0.07);
}

.profile-hero-glow {
  position: absolute;

  width: 260px;
  height: 260px;

  right: -100px;
  top: -120px;

  border-radius: 50%;

  background: rgba(37, 99, 235, 0.10);

  pointer-events: none;
}

.profile-hero-glow::after {
  content: "";

  position: absolute;

  width: 150px;
  height: 150px;

  left: -90px;
  bottom: -100px;

  border-radius: 50%;

  background: rgba(59, 130, 246, 0.08);
}

.profile-identity {
  position: relative;
  z-index: 1;

  display: flex;
  align-items: center;
  gap: 22px;
}


/* ============================================================
   PROFILE AVATAR
   ============================================================ */

.profile-avatar {
  width: 112px;
  height: 112px;
  flex: 0 0 112px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: #ffffff;

  border: 5px solid #ffffff;

  box-shadow:
    0 0 0 2px rgba(37, 99, 235, 0.16),
    0 10px 28px rgba(37, 99, 235, 0.18);

  overflow: hidden;
}

.profile-avatar-flag {
  display: block;

  font-size: 66px;
  line-height: 1;

  transform: translateY(1px);
}

.profile-identity-info {
  min-width: 0;
}

.profile-name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-name {
  margin: 0;

  color: #0f172a;

  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;

  overflow-wrap: anywhere;
}

.profile-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;

  padding: 5px 10px;

  border-radius: 999px;

  color: #1d4ed8;
  background: #dbeafe;

  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.profile-verified-badge .icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-verified-badge svg {
  width: 13px;
  height: 13px;
}

.profile-country {
  display: flex;
  align-items: center;
  gap: 7px;

  margin: 10px 0 0;

  color: #334155;

  font-size: 15px;
  font-weight: 600;
}

.profile-country-flag {
  font-size: 20px;
  line-height: 1;
}

.profile-member-text {
  margin: 5px 0 0;

  color: #64748b;

  font-size: 12px;
}


/* ============================================================
   QUICK STATS
   ============================================================ */

.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;

  margin-top: 18px;
}

.profile-stat-card {
  min-width: 0;

  display: flex;
  align-items: center;
  gap: 14px;

  padding: 20px;

  border: 1px solid #e2e8f0;
  border-radius: 18px;

  background: #ffffff;

  box-shadow:
    0 7px 22px rgba(15, 23, 42, 0.045);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.profile-stat-card:hover {
  transform: translateY(-2px);

  border-color: #bfdbfe;

  box-shadow:
    0 12px 28px rgba(37, 99, 235, 0.09);
}

.profile-stat-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 14px;

  color: #2563eb;
  background: #eff6ff;
}

.profile-stat-icon svg {
  width: 21px;
  height: 21px;
}

.profile-stat-content {
  min-width: 0;

  display: flex;
  flex-direction: column;
  gap: 5px;
}

.profile-stat-label {
  color: #64748b;

  font-size: 12px;
  font-weight: 600;
}

.profile-stat-value {
  color: #0f172a;

  font-size: 18px;
  font-weight: 800;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* Slightly different blue treatments */

.profile-stat-earnings .profile-stat-icon {
  color: #2563eb;
  background: #eff6ff;
}

.profile-stat-balance .profile-stat-icon {
  color: #0284c7;
  background: #e0f2fe;
}

.profile-stat-withdrawn .profile-stat-icon {
  color: #4f46e5;
  background: #eef2ff;
}


/* ============================================================
   GENERAL SECTION CARDS
   ============================================================ */

.profile-section-card {
  margin-top: 18px;

  overflow: hidden;

  border: 1px solid #e2e8f0;
  border-radius: 20px;

  background: #ffffff;

  box-shadow:
    0 7px 24px rgba(15, 23, 42, 0.045);
}

.profile-section-heading {
  display: flex;
  align-items: center;
  gap: 13px;

  padding: 21px 22px;

  border-bottom: 1px solid #eef2f7;
}

.profile-section-heading-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 12px;

  color: #2563eb;
  background: #eff6ff;
}

.profile-section-heading-icon svg {
  width: 19px;
  height: 19px;
}

.profile-section-heading h3 {
  margin: 0;

  color: #0f172a;

  font-size: 16px;
  font-weight: 800;
}

.profile-section-heading p {
  margin: 4px 0 0;

  color: #64748b;

  font-size: 12px;
  line-height: 1.45;
}


/* ============================================================
   ACCOUNT DETAILS
   ============================================================ */

.profile-details-list {
  display: flex;
  flex-direction: column;
}

.profile-detail-row {
  min-height: 70px;

  display: flex;
  align-items: center;
  gap: 14px;

  padding: 13px 22px;

  border-bottom: 1px solid #f1f5f9;
}

.profile-detail-row:last-child {
  border-bottom: none;
}

.profile-detail-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 11px;

  color: #2563eb;
  background: #f1f5ff;
}

.profile-detail-icon svg {
  width: 18px;
  height: 18px;
}

.profile-detail-content {
  min-width: 0;

  display: flex;
  flex-direction: column;
  gap: 4px;

  flex: 1;
}

.profile-detail-label {
  color: #94a3b8;

  font-size: 11px;
  font-weight: 600;
}

.profile-detail-value {
  color: #1e293b;

  font-size: 14px;
  font-weight: 700;

  overflow-wrap: anywhere;
}

.profile-detail-code {
  padding: 5px 9px;

  border-radius: 7px;

  color: #2563eb;
  background: #eff6ff;

  font-size: 10px;
  font-weight: 800;

  letter-spacing: 0.5px;
}


/* ============================================================
   ACCOUNT STATUS
   ============================================================ */

.profile-status-card {
  overflow: hidden;
}

.profile-status-row {
  display: flex;
  align-items: center;
  gap: 14px;

  padding: 20px 22px;
}

.profile-status-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 13px;

  color: #2563eb;
  background: #eff6ff;
}

.profile-status-icon svg {
  width: 20px;
  height: 20px;
}

.profile-status-content {
  min-width: 0;

  display: flex;
  flex-direction: column;
  gap: 4px;

  flex: 1;
}

.profile-status-content strong {
  color: #0f172a;

  font-size: 14px;
  font-weight: 800;
}

.profile-status-content span {
  color: #64748b;

  font-size: 12px;
  line-height: 1.5;
}

.profile-status-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 38px;

  padding: 0 15px;

  border-radius: 10px;

  color: #ffffff;
  background: linear-gradient(
    135deg,
    #2563eb,
    #1d4ed8
  );

  font-size: 12px;
  font-weight: 700;

  text-decoration: none;

  box-shadow:
    0 5px 14px rgba(37, 99, 235, 0.2);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.profile-status-action:hover {
  transform: translateY(-1px);

  box-shadow:
    0 8px 18px rgba(37, 99, 235, 0.28);
}

.profile-status-complete {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 7px 11px;

  border-radius: 999px;

  color: #15803d;
  background: #dcfce7;

  font-size: 11px;
  font-weight: 800;
}


/* ============================================================
   FOOTER NOTE
   ============================================================ */

.profile-footer-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;

  padding: 22px 10px 8px;

  color: #94a3b8;

  font-size: 11px;
  line-height: 1.5;

  text-align: center;
}

.profile-footer-note .icon {
  display: flex;
  align-items: center;
  justify-content: center;

  color: #2563eb;
}

.profile-footer-note svg {
  width: 14px;
  height: 14px;
}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 800px) {

  .profile-main {
    padding: 24px 18px 105px;
  }

  .profile-hero-card {
    padding: 27px;
  }

  .profile-avatar {
    width: 96px;
    height: 96px;
    flex-basis: 96px;
  }

  .profile-avatar-flag {
    font-size: 56px;
  }

  .profile-name {
    font-size: 24px;
  }

  .profile-stats-grid {
    gap: 12px;
  }

  .profile-stat-card {
    padding: 16px;
  }

  .profile-stat-value {
    font-size: 16px;
  }

}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 600px) {

  .profile-main {
    min-height: 100vh;

    padding:
      18px
      14px
      100px;
  }

  .profile-page-header {
    gap: 11px;
    margin-bottom: 16px;
  }

  .profile-header-icon {
    width: 42px;
    height: 42px;
    flex-basis: 42px;

    border-radius: 12px;
  }

  .profile-header-icon svg {
    width: 20px;
    height: 20px;
  }

  .profile-page-title {
    font-size: 21px;
  }

  .profile-page-subtitle {
    font-size: 11px;
  }


  /* Hero */

  .profile-hero-card {
    min-height: auto;

    padding: 22px 18px;

    border-radius: 20px;
  }

  .profile-identity {
    width: 100%;

    gap: 15px;
  }

  .profile-avatar {
    width: 78px;
    height: 78px;
    flex-basis: 78px;

    border-width: 4px;
  }

  .profile-avatar-flag {
    font-size: 46px;
  }

  .profile-name-row {
    gap: 7px;
  }

  .profile-name {
    font-size: 20px;
  }

  .profile-verified-badge {
    padding: 4px 8px;
    font-size: 9px;
  }

  .profile-country {
    margin-top: 7px;
    font-size: 13px;
  }

  .profile-country-flag {
    font-size: 17px;
  }

  .profile-member-text {
    margin-top: 4px;
    font-size: 10px;
  }


  /* Stats */

  .profile-stats-grid {
    grid-template-columns: 1fr;

    gap: 10px;

    margin-top: 12px;
  }

  .profile-stat-card {
    min-height: 68px;

    padding: 13px 15px;

    border-radius: 15px;
  }

  .profile-stat-icon {
    width: 40px;
    height: 40px;
    flex-basis: 40px;

    border-radius: 11px;
  }

  .profile-stat-icon svg {
    width: 18px;
    height: 18px;
  }

  .profile-stat-label {
    font-size: 11px;
  }

  .profile-stat-value {
    font-size: 15px;
  }


  /* Sections */

  .profile-section-card {
    margin-top: 12px;

    border-radius: 17px;
  }

  .profile-section-heading {
    gap: 10px;

    padding: 16px;
  }

  .profile-section-heading-icon {
    width: 37px;
    height: 37px;
    flex-basis: 37px;

    border-radius: 10px;
  }

  .profile-section-heading-icon svg {
    width: 17px;
    height: 17px;
  }

  .profile-section-heading h3 {
    font-size: 14px;
  }

  .profile-section-heading p {
    font-size: 10px;
  }


  /* Details */

  .profile-detail-row {
    min-height: 64px;

    gap: 10px;

    padding: 11px 15px;
  }

  .profile-detail-icon {
    width: 35px;
    height: 35px;
    flex-basis: 35px;

    border-radius: 9px;
  }

  .profile-detail-icon svg {
    width: 16px;
    height: 16px;
  }

  .profile-detail-label {
    font-size: 10px;
  }

  .profile-detail-value {
    font-size: 12px;
  }

  .profile-detail-code {
    padding: 4px 7px;

    font-size: 9px;
  }


  /* Status */

  .profile-status-row {
    flex-wrap: wrap;

    gap: 11px;

    padding: 16px;
  }

  .profile-status-icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;

    border-radius: 10px;
  }

  .profile-status-icon svg {
    width: 18px;
    height: 18px;
  }

  .profile-status-content {
    flex: 1;
    min-width: calc(100% - 55px);
  }

  .profile-status-content strong {
    font-size: 12px;
  }

  .profile-status-content span {
    font-size: 10px;
  }

  .profile-status-action,
  .profile-status-complete {
    width: 100%;
    margin-top: 2px;
  }

  .profile-status-action {
    min-height: 40px;
  }


  /* Footer */

  .profile-footer-note {
    padding-top: 18px;

    font-size: 10px;
  }

}


/* ============================================================
   VERY SMALL PHONES
   ============================================================ */

@media (max-width: 380px) {

  .profile-main {
    padding-left: 11px;
    padding-right: 11px;
  }

  .profile-hero-card {
    padding: 18px 14px;
  }

  .profile-avatar {
    width: 68px;
    height: 68px;
    flex-basis: 68px;
  }

  .profile-avatar-flag {
    font-size: 40px;
  }

  .profile-name {
    font-size: 18px;
  }

  .profile-verified-badge {
    font-size: 8px;
  }

  .profile-detail-row {
    padding-left: 12px;
    padding-right: 12px;
  }

}


/* ============================================================
   DARK-SAFE INTERACTION
   ============================================================ */

.profile-stat-card,
.profile-status-action,
.profile-detail-row,
.profile-verified-badge {
  -webkit-tap-highlight-color: transparent;
}

/* ============================================================
   MENTORSHIP GROUP
   ============================================================ */

.profile-mentorship-row {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    rgba(239, 246, 255, 0.95),
    rgba(248, 250, 252, 0.95)
  );
}

.profile-mentorship-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #dbeafe;
  color: #2563eb;
}

.profile-mentorship-icon svg {
  width: 21px;
  height: 21px;
}

.profile-mentorship-content {
  flex: 1;
  min-width: 0;
}

.profile-mentorship-content strong {
  display: block;
  margin-bottom: 4px;
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
}

.profile-mentorship-content span {
  display: block;
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}

.profile-mentorship-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #2563eb;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.profile-mentorship-action:hover {
  background: #1d4ed8;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(37, 99, 235, 0.22);
}

.profile-mentorship-action .icon {
  display: flex;
  align-items: center;
}

.profile-mentorship-action svg {
  width: 16px;
  height: 16px;
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 600px) {

  .profile-mentorship-row {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
  }

  .profile-mentorship-content {
    flex: 1;
    min-width: calc(100% - 58px);
  }

  .profile-mentorship-action {
    width: 100%;
    margin-top: 2px;
  }

}