.profile-dashboard {
  padding: 0;
  max-width: 100%;
}

/* Glass-morphism Modern Cards */
.dashboard-card-modern {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-align: center;
}

/* Gradient glow effect on hover */
.dashboard-card-modern::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, #667eea, #764ba2, #f093fb);
  border-radius: 16px;
  padding: 2px;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: exclude;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s;
}

.dashboard-card-modern:hover {
  transform: scale(1.02);
  background: rgba(255, 255, 255, 0.08);
}

.dashboard-card-modern:hover::before {
  opacity: 0.4;
}

/* Horizontal Compact Layout */
.dashboard-card-modern.horizontal {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-align: left;
  gap: 1rem;
}

/* Height handling for embedded mode */
.profile-dashboard.embedded,
.profile-dashboard.embedded > div {
  height: 100%;
}

.profile-dashboard.embedded .dashboard-card-modern.horizontal {
  height: 100%;
  display: flex;
  align-items: center;
}

.dashboard-card-modern.horizontal:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(185, 255, 102, 0.3);
  box-shadow: 0 4px 20px rgba(185, 255, 102, 0.2);
}

/* Left section with icon and title */
.card-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.card-left .card-icon {
  color: #fff;  /* White/neutral color */
  flex-shrink: 0;
}

.card-left .card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* Center section with stats */
.card-center {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex: 1;
  justify-content: center;
}

.stat-highlight {
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, #9AD746 0%, #7FB935 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-highlight.active {
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-highlight.neutral {
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
  background-clip: initial;
  color: #fff;  /* White/neutral color */
}

.card-center .stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: lowercase;
}

.card-center .separator {
  color: rgba(255, 255, 255, 0.3);
  margin: 0 0.25rem;
}

/* Action button */
.card-action-button {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #9AD746 0%, #7FB935 100%);
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.card-action-button:hover {
  transform: translateX(3px);
  box-shadow: 0 4px 20px rgba(185, 255, 102, 0.4);
  background: linear-gradient(135deg, #a8e063 0%, #8bc34a 100%);
}

.card-action-button:active {
  transform: translateX(1px);
}

/* Mobile adjustments */
.dashboard-card-modern.horizontal.mobile {
  padding: 1rem 0.75rem;
  gap: 0.75rem;
}

.dashboard-card-modern.horizontal.mobile .card-left .card-title {
  font-size: 0.875rem;
  letter-spacing: 1px;
}

.dashboard-card-modern.horizontal.mobile .stat-highlight {
  font-size: 1.5rem;
}

.dashboard-card-modern.horizontal.mobile .card-center .stat-label {
  font-size: 0.75rem;
}

.dashboard-card-modern.horizontal.mobile .card-action-button {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
}

@media (max-width: 480px) {
  .dashboard-card-modern.horizontal.mobile .card-center {
    flex: 1;
    justify-content: flex-start;
  }
}

/* Icon with glow */
.card-icon-modern {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  margin: 0 auto 2rem;
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.card-icon-modern svg {
  color: white;
}

/* Title */
.card-title-modern {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1.5rem;
}

/* Divider line */
.card-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
  margin-bottom: 2rem;
  width: 60%;
  margin-left: auto;
  margin-right: auto;
}

/* Desktop Stats Row */
.events-stats-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4rem;
}

.stat-item {
  text-align: center;
}

.stat-divider {
  width: 1px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat-number.active {
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: lowercase;
  letter-spacing: 0.5px;
}

/* Mobile Cards */
.mobile-card {
  padding: 1.5rem;
  text-align: left;
}

.mobile-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.mobile-card-header svg {
  color: #667eea;
}

.mobile-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Mobile Stats Compact */
.events-stats-compact {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 1.1rem;
}

.stat-value {
  font-weight: 700;
  color: #fff;
  font-size: 1.5rem;
}

.stat-value.active {
  color: #4ade80;
}

.events-stats-compact .stat-label {
  font-size: 0.875rem;
}

.separator {
  color: rgba(255, 255, 255, 0.3);
  margin: 0 0.25rem;
}

/* Mobile Action Card */
.mobile-card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.action-text {
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
}

.action-arrow {
  color: #667eea;
  font-size: 1.25rem;
  font-weight: bold;
}

.dashboard-card-modern.clickable {
  cursor: pointer;
}

.dashboard-card-modern.clickable:hover {
  border-color: #667eea;
}

.dashboard-card-modern.clickable:hover .action-arrow {
  transform: translateX(4px);
  transition: transform 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .card-icon-modern {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
  }
  
  .card-icon-modern svg {
    width: 28px;
    height: 28px;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
}

@media (max-width: 576px) {
  .profile-dashboard .row {
    margin: 0;  /* Remove negative margins */
  }

  .profile-dashboard .col-12 {
    padding: 0;  /* Remove padding that causes cropping */
  }

  .dashboard-card-modern.horizontal.mobile {
    margin: 0 0.5rem;  /* Add margin to the card itself */
    padding: 1rem 0.75rem;
  }
}

/* Hide existing grid stats when dashboard is present */
.main-info-panel-container .px-4.py-4 > div:nth-child(1) {
  display: none !important;
}

/* View All Button - Desktop */
.view-all-button {
  margin-top: 2rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.view-all-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

.view-all-button:active {
  transform: translateY(0);
}

.view-all-button .arrow {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.view-all-button:hover .arrow {
  transform: translateX(3px);
}

/* View All Button - Mobile */
.view-all-wrapper {
  margin-top: 1rem;
}

.view-all-button-mobile {
  width: 100%;
  padding: 0.625rem 1.25rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.view-all-button-mobile:hover {
  background: linear-gradient(135deg, #7c8ff5 0%, #8659b5 100%);
  transform: scale(1.02);
}

.view-all-button-mobile:active {
  transform: scale(1);
}

/* Compact inline layout to match notifications */
.dashboard-card-modern.horizontal.compact {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem;
  min-height: 120px;
}

.dashboard-header-inline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-header-inline .header-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.7);
}

.dashboard-header-inline .view-all-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.2s ease;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.dashboard-header-inline .view-all-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
}

.dashboard-stats-inline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.stat-badge-inline {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  padding: 0.25rem 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  transition: all 0.2s ease;
}

.stat-badge-inline:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.stat-badge-inline .badge-count {
  background: #F5484D;
  color: white;
  border-radius: 8px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 600;
  margin-left: 0.25rem;
}

.stat-badge-inline .badge-count.active {
  background: #4ade80;
  animation: pulse 2s infinite;
}

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