/* ===================== PROFILE PAGE ===================== */

.profilPage {
  display: grid;
  grid-template-columns: 1fr 75%;
  gap: 20px;
  padding: 30px 40px;
}

.profilDisplay {
  display: grid;
  align-self: start;
}

@media (max-width: 768px) {
  .profilPage {
    grid-template-columns: 1fr;
    padding: 20px 20px 80px;
  }
}

/* ===================== PROFILE HEADER ===================== */

.profile-header {
  max-width: 1200px;
}

/* ===================== NEXT LEVEL COVER ===================== */

.profile-cover {
  position: absolute;
  top: 0;
  left: 0;
  height: 70px;
  width: 100%;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  z-index: 0;
  background: linear-gradient(135deg, #f8fbff, #eef5ff);
}

.profile-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    var(--c1),
    var(--c2),
    var(--c1)
  );
  background-size: 200% 200%;
  animation: gradientMove 8s ease infinite;
  opacity: 0.35;
}

.profile-cover::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;

  background: radial-gradient(circle, var(--c2) 0%, transparent 70%);
  opacity: 0.25;

  top: -40px;
  left: -40px;

  animation: floatOrb 10s ease-in-out infinite;
}

.profile-cover canvas {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.25;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes floatOrb {
  0% { transform: translate(0, 0); }
  50% { transform: translate(40px, 10px); }
  100% { transform: translate(0, 0); }
}

.profile-avatar,
.profile-identity,
.profile-stats,
.avatar-actions {
  position: relative;
  z-index: 2;
}

.profile-card {
  display: grid;
  position: relative;
  overflow: visible;
  grid-template-columns: 1fr;
  gap: 5px;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e6ecf5;
  border-radius: 8px;
  padding: 15px;
  padding-top: 100px;
}

.profile-avatar {
  display: flex;
  justify-self: center;
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  justify-self: unset;
}

.profile-avatar img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
  box-shadow: 0 8px 20px rgb(0 0 0 / 9%);
  text-align: center;
  align-content: center;
}

.avatar-edit-btn {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: #3178d3;
  color: white;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: 14px;
}

.avatar-actions {
  display: none;
  gap: 10px;
  justify-content: center;
  margin-bottom: 10px;
  animation: fadeUp 0.25s ease;
}

.avatar-actions.show {
  display: flex;
}

.avatar-btn {
  padding: 6px 14px;
  font-size: 13.5px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  transition: all 0.25s ease;
}

.avatar-btn.save {
  background: #3178d3;
  color: white;
  border-radius: 6px;
  padding: 8px 14px;
}

.avatar-btn.save:hover {
  background: #1e5bab;
  transform: translateY(-1px);
}

.avatar-btn.cancel {
  background: #f1f5f9;
  color: #334155;
  border-radius: 6px;
  padding: 8px 14px;
}

.avatar-btn.cancel:hover {
  background: #e2e8f0;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.profile-identity h2 {
  font-size: 19px;
  font-weight: 700;
  color: #1c4e80;
  margin: 0;
}

.profile-headline {
  font-size: 13px;
  font-weight: 500;
  color: #4b5563;
  margin: 6px 0 2px;
}

.profile-industry {
  font-size: 14px;
  color: #1763c6;
  margin: 4px 0 10px;
}

.profile-stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-badge {
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 10px;
  height: -webkit-fill-available;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.profile-badge.verified {
  background: #e6f9ed;
  color: #0f8b2c;
}

.profile-badge.role {
  background: #eef4ff;
  color: #1e5bab;
}

.profile-badge.role.Talent {
  background: #e0f2fe;
  color: #0369a1;
}

.profile-badge.role.Organization {
  background: #ede9fe;
  color: #5b21b6;
}

.profile-badge.role.Freelancer {
  background: #ecfdf5;
  color: #047857;
}

.profile-badge.role.Student {
  background: #fff7ed;
  color: #c2410c;
}

.profile-badge.role.Team {
  background: #f1f5f9;
  color: #334155;
}

.profile-badge.completion {
  background: #fff5e6;
  color: #a66200;
}

@media (max-width: 768px) {
  .profile-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .profile-stats {
    justify-content: center;
    align-items: center;
    flex-direction: row;
  }

  .profile-contacts {
    justify-content: center;
  }
}

.profile-badge.availability {
  background: #f1f5f9;
  color: #334155;
}

.profile-badge.availability.full_time,
.profile-badge.availability.part_time,
.profile-badge.availability.freelance {
  background: #e6f9ed;
  color: #0f8b2c;
}

.profile-badge.availability.open_projects {
  background: #f3e8ff;
  color: #7c3aed;
}

.profile-badge.availability.temporarily_unavailable {
  background: #fff1f2;
  color: #b91c1c;
}

/* ===================== USER INFOS ===================== */

.cvb-user-info-form {
  display: flex;
}

.cvb-user-info-container {
  padding: 20px 25px 25px;
  background: white;
  border: 1px solid #e6ecf5;
  border-radius: 8px;
  width: 100%;
  overflow-y: auto;
  animation: fadeIn 0.4s ease-in-out;
}

.cvb-user-info-container::-webkit-scrollbar {
  width: 8px;
}

.cvb-user-info-container::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 6px;
}

.cvb-user-info-container::-webkit-scrollbar-thumb:hover {
  background-color: #94a3b8;
}

.cvb-usertab-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 15px;
  margin-top: 10px;
  background: white;
  border: 1px solid #e6ecf5;
  border-radius: 8px;
}

.cvb-usertab-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 6px;
  width: 100%;
  text-align: left;
  position: relative;
  padding: 10px 8px;
  background: transparent;
  border: none;
  outline: none;
  color: #7a7a7a;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cvb-usertab-btn::after {
  display: none;
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 3px;
  background-color: #3178d3;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.cvb-usertab-btn.active {
  background: #eef4ff;
  color: #1c4e80;
  transform: scale(1.05);
}

.cvb-usertab-btn:hover::after {
  width: 100%;
  background: #f4f7fb;
}

.cvb-usertab-btn.active::after {
  width: 100%;
}

.cvb-usertab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.cvb-usertab-content.active {
  display: block;
}

.cvb-usertab-content td {
  text-align:center;
}

.cvb-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eef2f7;
  animation: fadeSlide 0.35s ease;
}

.cvb-page-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cvb-page-title i {
  font-size: 22px;
  color: #3178d3;
  background: #eef4ff;
  padding: 10px;
  border-radius: 8px;
}

.cvb-page-title h2 {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.cvb-page-title p {
  font-size: 13px;
  color: #64748b;
  margin: 2px 0 0;
}

.cvb-user-info-notice {
    font-size: 12px;
    color: #1d1d1d;
}

.cvb-user-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
  margin-bottom: 25px;
}

.cvb-user-section.Uno {
  grid-template-columns: 1fr;
  gap: 0px;
}

.cvb-user-subSection {
  display: grid;
  grid-template-columns: 1fr;
  height: fit-content;
}

.cvb-user-section label {
  font-weight: 600;
  color: #444;
  font-size: 14px;
  display: block;
  margin-bottom: 6px;
}

.cvb-user-section input,
.cvb-user-section select {
  outline: none;
  padding: 8px 10px;
  border: 1px solid #d6ddeb;
  border-radius: 6px;
  background: #f9fbfd;
  font-size: 14.5px;
  transition: all 0.25s ease;
}

.cvb-user-section input:focus {
  border-color: #3178d3;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(49,120,211,0.15);
  outline: none;
}

.cvb-user-section input[type="date"],
.cvb-user-section input[type="tel"],
.cvb-user-section select {
  font-family: inherit;
}

.cvb-user-section input::placeholder,
.cvb-user-section select::placeholder {
  color: #b0b8c2;
}

.cvb-user-subSectionMessage {
  font-size: 12px;
  margin-top: 6px;
}

#userAvailability {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20'%3E%3Cpath fill='%2394a3b8' d='M5.5 7.5l4.5 4.5 4.5-4.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
  padding-right: 32px;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {

  .cvb-usertab-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    padding: 8px 5px;
    border-radius: 0;
    border-top: 1px solid #e6ecf5;
    background: white;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.05);
  }

  .cvb-usertab-btn {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3px;

    font-size: 11px;
    padding: 6px 4px;
  }

  .cvb-usertab-btn i {
    font-size: 18px;
  }

  .cvb-usertab-btn span {
    font-size: 10px;
  }

  .cvb-user-info-container {
    padding-bottom: 80px;
  }

  .cvb-page-header {
    margin-bottom: 16px;
    padding-bottom: 10px;
  }

  .cvb-page-title i {
    font-size: 18px;
    padding: 8px;
  }

  .cvb-page-title h2 {
    font-size: 16px;
  }

  .cvb-page-title p {
    font-size: 12px;
  }

}

/* ===================== PROFILE TABLES ===================== */

.cvb-usertab-tableWrapper {
  max-height: 600px;
  overflow-y: auto;
  overflow-x: auto;
  border: 1px solid #e1e7ef;
  border-radius: 6px;
}

.cvb-usertab-tableWrapper::-webkit-scrollbar {
  width: 3px;
}

.cvb-usertab-tableWrapper::-webkit-scrollbar-thumb {
  background-color: #cfd8e3;
  border-radius: 3px;
}

.cvb-usertab-table {
  width: 100%;
  border-collapse: separate;
}

.cvb-usertab-tableTitle {
  font-size: 13px;
  color: #1c4e80;
  font-weight: 400;
  margin: 5px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cvb-usertab-table th {
  background: #f4f7fb;
  color: #1c4e80;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 8px 10px;
  text-align: center;
  white-space: nowrap;
  max-width: 600px;
  display: table-cell;
  overflow: visible;
  align-content: center;
  position: sticky;
  top: 0;
  z-index: 2;
}

.cvb-usertab-table td {
  background: #fafafa;
  padding: 6px 10px;
  text-align: center;
  font-size: 14px;
  white-space: nowrap;
  max-width: 600px;
  display: table-cell;
  overflow: visible;
  align-content: center;
  font-size: 14px;
  color: #2d3e50;
}

.cvb-usertab-btn i {
  font-size: 17px;
  vertical-align: middle;
}

/* ===================== CONSUMPTION ===================== */

.cvb-history-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  align-items: center;
}

.cvb-history-filters input,
.cvb-history-filters button {
  font-family: Roboto, sans-serif;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #d6ddeb;
  font-size: 14px;
}

.cvb-history-filters input:focus {
  border-color: #3178d3;
  box-shadow: 0 0 0 3px rgba(49,120,211,0.15);
  outline: none;
}

.cvb-history-filters button {
  background: #3178d3;
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.cvb-history-filters button:hover {
  background: #1e5bab;
}

.cvb-history-graph {
  margin-bottom: 25px;
  background: #fff;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #e6ecf5;
}

.cvb-history-graphEmpty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    color: #6b7a90;
    font-size: 16px;
    font-weight: 500;
    background: #f9faff;
    border: 1px dashed #d6ddeb;
    border-radius: 8px;
}

.cvb-user-consumption {
  display: grid;
  text-align: center;
}

.cvb-history-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.cvb-kpi-card {
  background: #fff;
  border: 1px solid #e6ecf5;
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cvb-kpi-label {
  font-size: 13px;
  color: #6b7a90;
}

.cvb-kpi-value {
  font-size: 22px;
  font-weight: 600;
  color: #1f2d3d;
}

.cvb-kpi-value.date {
  font-size: 18px;
  font-weight: 600;
  color: #1f2d3d;
}

/* ===================== POINTS ===================== */

#buyCoinsTab select, #buyCoinsTab input[type="number"] {
  padding: 8px 10px;
  border: 1px solid #d6ddeb;
  border-radius: 6px;
  background: #f9fbfd;
  font-size: 14.5px;
  transition: all 0.25s ease;
}

#buyCoinsTab select:focus, #buyCoinsTab input:focus {
  border-color: #3178d3;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(49,120,211,0.15);
  outline: none;
}

.cvb-payment-methods {
  border-top: 1px solid #e4e9f1;
  margin-top: 30px;
  padding-top: 15px;
  text-align: center;
}

.cvb-payment-methods p {
  font-size: 13.5px;
  color: #1d3656;
  margin-bottom: 10px;
  font-weight: 600;
}

.cvb-payment-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.cvb-payment-logos img {
  height: 28px;
  filter: grayscale(40%);
  opacity: 0.9;
  transition: all 0.25s ease;
}

.cvb-payment-logos img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

.cvb-user-orders {
  display: grid;
  text-align: center;
}

.order-status {
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 13px;
  display: inline-block;
}

.order-status {
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 13px;
  display: inline-block;
}

.order-status.pending { background: #fff5e6; color: #a66200; }
.order-status.completed { background: #e6f9ed; color: #0f8b2c; }
.order-status.rejected { background: #fdecea; color: #d93025; }

.cvb-order-note {
  font-size: 13px;
  color: #4b5563;
  margin-top: 10px;
}

.cvb-order-note i {
  color: #3178d3;
  margin-right: 5px;
}

@media (max-width: 768px) {
  .cvb-user-info-container {
    padding: 25px 25px;
  }

  .cvb-usertab-btn {
    font-size: 0;
    min-width: 50px;
  }

  .cvb-usertab-btn i {
    font-size: 25px;
  }

  .cvb-user-section {
    grid-template-columns: 1fr;
  }

  .user-info-container {
    display: flex;
    align-items: center;
  }

  .cvb-usertab-table {
    width: 100%;
    border-collapse: separate;
    min-width: 600px;
  }
}

/* ===================== PRIVACY ===================== */

.cvb-security-card {
  margin-bottom: 20px;
}

.cvb-security-header {
  display: grid;
  grid-template-columns: auto auto;
  gap: 14px;
  margin-bottom: 14px;
  align-items: center;
}

.cvb-security-header h4 {
  margin: 0;
  font-size: 15px;
  color: #444;
}

.cvb-security-header p {
  margin: 2px 0 0;
  font-size: 13px;
  color: #7a7a7a;
}

.cvb-read-more {
  margin-left: 6px;
  font-size: 12px;
  color: #3b82f6;
  cursor: pointer;
  font-weight: 500;
}

.cvb-read-more:hover {
  text-decoration: underline;
}

.cvb-security-row {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: end;
  font-size: 13px;
}

@media (max-width: 768px) {
  .cvb-security-header {
    grid-template-columns: 1fr;
    justify-content: start;
  }

  .cvb-security-row {
    justify-content: start;
  }

  .cvb-security-row.field-visibility {
    flex-direction: row-reverse;
    justify-content: start;
    gap: 15px;
  }
}

/* ===================== SWITCH ===================== */

.cvb-switch {
  position: relative;
  width: 44px;
  height: 24px;
}

.cvb-switch input {
  display: none;
}

.cvb-switch .slider {
  position: absolute;
  inset: 0;
  background: #ddd;
  border-radius: 30px;
  cursor: pointer;
  transition: .3s;
}

.cvb-switch .slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: .3s;
}

.cvb-switch input:checked + .slider {
  background: #3b82f6;
}

.cvb-switch input:checked + .slider::before {
  transform: translateX(20px);
}

.modern-select {
  outline: none;
  padding: 8px 10px;
  border: 1px solid #d6ddeb;
  border-radius: 6px;
  background: #f9fbfd;
  font-size: 14.5px;
  transition: all 0.25s ease;
}

.modern-select:focus {
  border-color: #3b82f6;
}

.modern-checkbox {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 20px;
  margin: 5px 0px 0px 0px !important;
}

.modern-checkbox input {
  opacity: 0;
  width: 0;
  height: 0;
}

.modern-checkbox span {
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: #fff;
  border: 1px solid #d0d7e2;
  border-radius: 4px;
  transition: 0.2s;
}

.modern-checkbox input:checked + span {
  background-color: #3b82f6;
  border-color: #3b82f6;
}

.modern-checkbox span::after {
  content: "";
  position: absolute;
  display: none;
}

.modern-checkbox input:checked + span::after {
  display: block;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}