/* Modern User Profile Page Styles */

/* Profile Hero Section */
.profile-hero {
  background: var(--bs-card-bg);
  border: none;
  border-radius: 16px;
  margin-bottom: 2rem;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.profile-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 3px;
  background: linear-gradient(135deg, #7367f0, #28c76f, #ff9f43, #7367f0);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.profile-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(115, 103, 240, 0.03) 0%, rgba(40, 199, 111, 0.03) 100%);
  border-radius: 12px;
  padding: 2.5rem 2rem;
}

.profile-avatar-section {
  position: relative;
  flex-shrink: 0;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.profile-avatar-edit {
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #7367f0;
  border: 3px solid var(--bs-card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.profile-avatar-edit:hover {
  background: #5e50ee;
  box-shadow: 0 4px 12px rgba(115, 103, 240, 0.4);
}

.profile-avatar-edit i {
  font-size: 1rem;
  color: #fff;
}

.profile-info {
  flex: 1;
  min-width: 250px;
}

.profile-username {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--bs-body-color);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  position: relative;
}

.profile-username::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, #7367f0, #28c76f, transparent);
}

.profile-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  background: rgba(40, 199, 111, 0.12);
  color: #28c76f;
  border-radius: 25px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(40, 199, 111, 0.25);
  box-shadow: 0 2px 8px rgba(40, 199, 111, 0.15);
}

.profile-status-dot {
  width: 8px;
  height: 8px;
  background: #28c76f;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.profile-rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: rgba(115, 103, 240, 0.12);
  border: 1px solid rgba(115, 103, 240, 0.25);
  border-radius: 25px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #7367f0;
  box-shadow: 0 2px 8px rgba(115, 103, 240, 0.15);
  margin-top: 0.5rem;
}

.profile-rank-badge i {
  font-size: 1.1rem;
}

.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1rem;
}

.profile-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--bs-secondary);
  font-size: 0.95rem;
}

.profile-meta-item i {
  font-size: 1.1rem;
  color: #7367f0;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.stat-card-profile {
  background: var(--bs-card-bg);
  border: none;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.stat-card-profile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--stat-gradient);
  transition: all 0.3s ease;
}

.stat-card-profile:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.stat-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.stat-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--stat-bg);
}

.stat-card-icon i {
  font-size: 1.5rem;
  color: var(--stat-color);
}

.stat-card-title {
  font-size: 0.85rem;
  color: var(--bs-secondary);
  margin-bottom: 0.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-card-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--bs-body-color);
  line-height: 1;
}

.stat-card-subtitle {
  font-size: 0.85rem;
  color: var(--bs-secondary);
  margin-top: 0.5rem;
}

/* Stat Colors */
.stat-ranking {
  --stat-color: #7367f0;
  --stat-bg: rgba(115, 103, 240, 0.12);
  --stat-gradient: linear-gradient(90deg, #7367f0, #9e95f5);
}

.stat-points {
  --stat-color: #ff9f43;
  --stat-bg: rgba(255, 159, 67, 0.12);
  --stat-gradient: linear-gradient(90deg, #ff9f43, #ffb976);
}

.stat-labs {
  --stat-color: #28c76f;
  --stat-bg: rgba(40, 199, 111, 0.12);
  --stat-gradient: linear-gradient(90deg, #28c76f, #48da89);
}

.stat-modules {
  --stat-color: #00cfe8;
  --stat-bg: rgba(0, 207, 232, 0.12);
  --stat-gradient: linear-gradient(90deg, #00cfe8, #1ce7ff);
}

.stat-bloods {
  --stat-color: #ea5455;
  --stat-bg: rgba(234, 84, 85, 0.12);
  --stat-gradient: linear-gradient(90deg, #ea5455, #f08182);
}

.stat-streak {
  --stat-color: #ff9f43;
  --stat-bg: rgba(255, 159, 67, 0.12);
  --stat-gradient: linear-gradient(90deg, #ff9f43, #ffb976);
}

/* Section Headers */
.section-header {
  margin-bottom: 0;
}

.section-header-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--bs-body-color);
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-header-title i {
  font-size: 1.4rem;
  color: #7367f0;
}

.section-header-subtitle {
  font-size: 0.9rem;
  color: var(--bs-secondary);
  margin: 0;
}

/* Modern Card */
.modern-card {
  background: var(--bs-card-bg);
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
}

.modern-card-header {
  background: transparent;
  padding: 1.5rem;
  border-bottom: 1px solid var(--bs-border-color);
}

.modern-card-body {
  padding: 1.5rem;
}

/* Skills Grid */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.skill-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: rgba(115, 103, 240, 0.1);
  color: #7367f0;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(115, 103, 240, 0.2);
  transition: all 0.2s ease;
}

.skill-badge:hover {
  background: rgba(115, 103, 240, 0.15);
  border-color: rgba(115, 103, 240, 0.3);
  box-shadow: 0 2px 8px rgba(115, 103, 240, 0.2);
}

/* Modules by Course */
.modules-by-course {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.course-section {
  padding: 1.5rem;
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 12px;
}

.course-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--bs-border-color);
}

.course-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--bs-body-color);
  margin: 0;
}

.course-badge {
  padding: 0.4rem 0.8rem;
  background: rgba(40, 199, 111, 0.1);
  color: #28c76f;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(40, 199, 111, 0.2);
}

/* Chapters List */
.chapters-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chapter-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.chapter-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-color: rgba(115, 103, 240, 0.3);
}

.chapter-marker {
  width: 12px;
  height: 12px;
  background: #28c76f;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.4rem;
  box-shadow: 0 0 0 4px rgba(40, 199, 111, 0.2);
}

.chapter-info {
  flex: 1;
  min-width: 0;
}

.chapter-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--bs-body-color);
  margin-bottom: 0.5rem;
}

.chapter-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--bs-secondary);
}

.chapter-points {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #ff9f43;
}

.chapter-points i {
  font-size: 1rem;
}

.chapter-date {
  color: var(--bs-secondary);
}

/* Labs Grid for Achievements */
.labs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.lab-item {
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.lab-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border-color: rgba(115, 103, 240, 0.3);
}

.lab-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.lab-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lab-icon i {
  font-size: 1.5rem;
  color: #fff;
}

.lab-icon.difficulty-0 {
  background: linear-gradient(135deg, #7367f0, #9e95f5);
}

.lab-icon.difficulty-1 {
  background: linear-gradient(135deg, #5e5873, #8a8d93);
}

.lab-icon.difficulty-2 {
  background: linear-gradient(135deg, #28c76f, #48da89);
}

.lab-icon.difficulty-3 {
  background: linear-gradient(135deg, #ff9f43, #ffb976);
}

.lab-icon.difficulty-4 {
  background: linear-gradient(135deg, #ea5455, #f08182);
}

.lab-title-section {
  flex: 1;
  min-width: 0;
}

.lab-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--bs-body-color);
}

.lab-difficulty {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.lab-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.lab-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.lab-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--bs-secondary);
}

.lab-meta-item i {
  font-size: 1rem;
  color: #7367f0;
}

.lab-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.lab-skill-tag {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  background: rgba(40, 199, 111, 0.1);
  color: #28c76f;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid rgba(40, 199, 111, 0.2);
}

/* Labs List */
.labs-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.lab-item-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 10px;
  transition: all 0.2s ease;
}

.lab-item-profile:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: rgba(115, 103, 240, 0.3);
}

.lab-icon-profile {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lab-icon-profile i {
  font-size: 1.5rem;
  color: #fff;
}

.lab-icon-profile.difficulty-0 {
  background: linear-gradient(135deg, #7367f0, #9e95f5);
}

.lab-icon-profile.difficulty-1 {
  background: linear-gradient(135deg, #5e5873, #8a8d93);
}

.lab-icon-profile.difficulty-2 {
  background: linear-gradient(135deg, #28c76f, #48da89);
}

.lab-icon-profile.difficulty-3 {
  background: linear-gradient(135deg, #ff9f43, #ffb976);
}

.lab-icon-profile.difficulty-4 {
  background: linear-gradient(135deg, #ea5455, #f08182);
}

.lab-info-profile {
  flex: 1;
  min-width: 0;
}

.lab-name-profile {
  font-size: 1rem;
  font-weight: 600;
  color: var(--bs-body-color);
  margin-bottom: 0.35rem;
  text-decoration: none;
  display: block;
}

.lab-name-profile:hover {
  color: #7367f0;
}

.lab-difficulty-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-primary {
  background: rgba(115, 103, 240, 0.15);
  color: #7367f0;
}

.badge-dark {
  background: rgba(94, 88, 115, 0.15);
  color: #5e5873;
}

.badge-success {
  background: rgba(40, 199, 111, 0.15);
  color: #28c76f;
}

.badge-warning {
  background: rgba(255, 159, 67, 0.15);
  color: #ff9f43;
}

.badge-danger {
  background: rgba(234, 84, 85, 0.15);
  color: #ea5455;
}

.lab-progress-profile {
  flex-shrink: 0;
  min-width: 120px;
}

.lab-progress-text {
  font-size: 0.85rem;
  color: var(--bs-secondary);
  margin-bottom: 0.35rem;
  text-align: right;
}

.lab-progress-bar-container {
  height: 6px;
  background: var(--bs-body-bg);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--bs-border-color);
}

.lab-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #7367f0, #28c76f);
  border-radius: 10px;
  transition: width 0.4s ease;
}

/* Activity Feed */
.activity-feed {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.activity-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 10px;
  transition: all 0.2s ease;
}

.activity-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border-color: rgba(115, 103, 240, 0.2);
}

.activity-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--activity-bg);
}

.activity-icon i {
  font-size: 1.2rem;
  color: var(--activity-color);
}

.activity-content {
  flex: 1;
  min-width: 0;
}

.activity-text {
  font-size: 0.9rem;
  color: var(--bs-body-color);
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

.activity-time {
  font-size: 0.8rem;
  color: var(--bs-secondary);
}

.activity-flag {
  --activity-bg: rgba(40, 199, 111, 0.12);
  --activity-color: #28c76f;
}

.activity-chapter {
  --activity-bg: rgba(0, 207, 232, 0.12);
  --activity-color: #00cfe8;
}

.activity-blood {
  --activity-bg: rgba(234, 84, 85, 0.12);
  --activity-color: #ea5455;
}

/* Courses List */
.courses-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.course-item-profile {
  padding: 1.25rem;
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 10px;
  transition: all 0.2s ease;
}

.course-item-profile:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 207, 232, 0.3);
}

.course-name-profile {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--bs-body-color);
  margin-bottom: 0.75rem;
  text-decoration: none;
  display: block;
}

.course-name-profile:hover {
  color: #00cfe8;
}

.course-progress-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.course-progress-bar-wrapper {
  flex: 1;
}

.course-progress-text {
  font-size: 0.85rem;
  color: var(--bs-secondary);
  margin-bottom: 0.35rem;
}

.course-progress-bar-container {
  height: 8px;
  background: var(--bs-body-bg);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--bs-border-color);
}

.course-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #00cfe8, #1ce7ff);
  border-radius: 10px;
  transition: width 0.4s ease;
}

.course-progress-percentage {
  font-size: 1.1rem;
  font-weight: 700;
  color: #00cfe8;
  min-width: 50px;
  text-align: right;
}

/* Empty State */
.empty-state-profile {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--bs-body-bg);
  border: 2px dashed var(--bs-border-color);
  border-radius: 12px;
}

.empty-state-icon {
  width: 64px;
  height: 64px;
  background: rgba(115, 103, 240, 0.1);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.empty-state-icon i {
  font-size: 2rem;
  color: #7367f0;
}

.empty-state-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bs-body-color);
  margin-bottom: 0.5rem;
}

.empty-state-text {
  font-size: 0.95rem;
  color: var(--bs-secondary);
  margin-bottom: 1.5rem;
}

/* Tab Navigation */
.profile-tabs {
  background: var(--bs-card-bg);
  border: none;
  border-radius: 12px;
  padding: 0.5rem;
  margin-bottom: 2.5rem;
  display: inline-flex;
  gap: 0.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.profile-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--bs-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.profile-tab::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #7367f0, #28c76f);
  transition: width 0.3s ease;
}

.profile-tab:hover {
  color: var(--bs-body-color);
  background: rgba(115, 103, 240, 0.05);
}

.profile-tab.active {
  background: linear-gradient(135deg, #7367f0, #9e95f5);
  color: #fff;
  box-shadow: 0 4px 12px rgba(115, 103, 240, 0.3);
}

.profile-tab.active::before {
  width: 0;
}

.profile-tab i {
  font-size: 1.1rem;
}

/* Sub-tabs Navigation */
.profile-subtabs {
  background: var(--bs-card-bg);
  border: none;
  border-radius: 12px;
  padding: 0.5rem;
  margin-bottom: 2rem;
  display: flex;
  gap: 0.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  flex-wrap: wrap;
}

.profile-subtab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--bs-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  flex: 1;
  justify-content: center;
  min-width: 150px;
}

.profile-subtab:hover {
  color: var(--bs-body-color);
  background: rgba(115, 103, 240, 0.05);
}

.profile-subtab.active {
  background: rgba(115, 103, 240, 0.12);
  color: #7367f0;
  border: 1px solid rgba(115, 103, 240, 0.3);
}

.profile-subtab i {
  font-size: 1rem;
}

/* Sub-tab Content */
.subtab-content {
  display: none !important;
}

.subtab-content.active {
  display: block !important;
  animation: fadeInUp 0.3s ease-in-out;
}

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

/* Certificate Link Card */
.certificate-link-card {
  background: var(--bs-card-bg);
  border: 2px solid;
  border-image: linear-gradient(135deg, #7367f0, #28c76f) 1;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  position: relative;
  box-shadow: 0 8px 24px rgba(115, 103, 240, 0.15);
}

.certificate-link-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(115, 103, 240, 0.05), rgba(40, 199, 111, 0.05));
  border-radius: 10px;
  z-index: 0;
}

.certificate-link-card > * {
  position: relative;
  z-index: 1;
}

.certificate-link-content {
  flex: 1;
}

.certificate-link-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--bs-body-color);
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.certificate-link-title i {
  color: #7367f0;
  font-size: 1.3rem;
}

.certificate-link-text {
  font-size: 0.9rem;
  color: var(--bs-secondary);
  margin: 0;
}

.certificate-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: linear-gradient(135deg, #7367f0, #9e95f5);
  color: #fff;
  border-radius: 25px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(115, 103, 240, 0.3);
  position: relative;
  overflow: hidden;
}

.certificate-link-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #5e50ee, #8478f3);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.certificate-link-btn:hover {
  box-shadow: 0 6px 20px rgba(115, 103, 240, 0.4);
  color: #fff;
}

.certificate-link-btn:hover::before {
  opacity: 1;
}

.certificate-link-btn > * {
  position: relative;
  z-index: 1;
}

.certificate-link-btn i {
  font-size: 1.2rem;
}

/* Certificate Embed in Profile */
.certificate-document-embed {
  margin-bottom: 2rem;
}

.certificate-document-embed .certificate-border {
  background: var(--bs-card-bg);
  border: 3px solid;
  border-image: linear-gradient(135deg, #7367f0, #28c76f, #ff9f43, #7367f0) 1;
  padding: 3px;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.certificate-document-embed .certificate-border::before {
  content: '';
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  right: 0.5rem;
  bottom: 0.5rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 12px;
  pointer-events: none;
}

.certificate-document-embed .certificate-content {
  padding: clamp(1.5rem, 3vh, 3rem) clamp(1rem, 3vw, 2rem);
  text-align: center;
  position: relative;
  background: linear-gradient(135deg, rgba(115, 103, 240, 0.03) 0%, rgba(40, 199, 111, 0.03) 100%);
  border-radius: 12px;
}

.certificate-actions-profile {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.certificate-actions-profile .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Locked Certificate Small Version */
.locked-icon-small {
  width: 64px;
  height: 64px;
  background: rgba(115, 103, 240, 0.1);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.locked-icon-small i {
  font-size: 2rem;
  color: #7367f0;
}

.progress-container-small {
  max-width: 400px;
  margin: 1.5rem auto;
  padding: 1rem;
  background: rgba(115, 103, 240, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(115, 103, 240, 0.1);
}

.progress-container-small .progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.progress-container-small .progress-label {
  color: var(--bs-secondary);
  font-weight: 600;
}

.progress-container-small .progress-value strong {
  color: #7367f0;
  font-size: 1.1rem;
}

.progress-container-small .progress-bar-container {
  height: 10px;
  background: var(--bs-body-bg);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--bs-border-color);
}

.progress-container-small .progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #7367f0, #28c76f);
  border-radius: 20px;
  transition: width 0.6s ease;
}

/* Responsive */
@media (max-width: 768px) {
  .profile-hero {
    padding: 1.5rem;
  }

  .profile-hero-content {
    flex-direction: column;
    text-align: center;
  }

  .profile-username {
    font-size: 1.75rem;
    justify-content: center;
  }

  .profile-meta {
    justify-content: center;
  }

  .profile-avatar {
    width: 100px;
    height: 100px;
  }

  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
  }

  .stat-card-value {
    font-size: 1.5rem;
  }

  .profile-tabs {
    width: 100%;
    flex-direction: column;
  }

  .profile-tab {
    width: 100%;
    justify-content: center;
  }

  .profile-subtabs {
    width: 100%;
    flex-direction: column;
  }

  .profile-subtab {
    width: 100%;
    min-width: auto;
  }

  .certificate-link-card {
    flex-direction: column;
    text-align: center;
  }

  .certificate-link-btn {
    width: 100%;
    justify-content: center;
  }

  .lab-item-profile {
    flex-direction: column;
    align-items: flex-start;
  }

  .lab-progress-profile {
    width: 100%;
  }

  .lab-progress-text {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .section-header-title {
    font-size: 1.25rem;
  }
}

