* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: #edf0f2;
  min-height: 100vh;
  padding: 0;
  margin: 0;
  overflow-y: scroll;
}

/* Dashboard Wrapper */
.dashboard-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Professional Dashboard Header */
.dashboard-header {
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #e0e0e0;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 0 0 auto;
}

.header-logo {
  height: 120px;
  width: auto;
  object-fit: contain;
  margin: -18px 0 -22px 0;
  display: block;
}

.logo {
  font-size: 48px;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.header-text h1 {
  margin: 0;
  color: white;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.header-subtitle {
  margin: 4px 0 0 0;
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 400;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(255,255,255,0.15);
  border-radius: 25px;
  backdrop-filter: blur(10px);
  color: white;
  font-weight: 500;
}

.user-icon {
  font-size: 20px;
}

.user-name {
  font-size: 15px;
}

.logout-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(220, 53, 69, 0.9);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.logout-btn:hover {
  background: #c82333;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

/* Dashboard Container */
.dashboard-container {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 15px 40px 30px 40px;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 3px solid #1e3c72;
}

h1 {
  color: #1e3c72;
  font-size: 28px;
}

h2 {
  color: #2a5298;
  margin-bottom: 20px;
}

h3 {
  color: #1e3c72;
  margin-bottom: 15px;
  font-size: 18px;
}

/* Filters Section - More Professional */
.filters {
  background: white;
  padding: 18px 24px;
  border-radius: 12px;
  margin-bottom: 25px;
  border: 1px solid #b8c4d4;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: all 0.3s;
}

.filters:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.filters h3 {
  margin: 0;
  color: #1e3c72;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.results-count {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  color: white;
  padding: 6px 16px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(30, 60, 114, 0.25);
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.auth-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.tab-btn {
  flex: 1;
  padding: 12px;
  border: 2px solid #1e3c72;
  background: white;
  color: #1e3c72;
  cursor: pointer;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s;
}

.tab-btn.active {
  background: #1e3c72;
  color: white;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 400px;
  margin: 0 auto;
}

input, select, textarea {
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s;
  background: white;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #1e3c72;
}

button {
  padding: 12px 24px;
  background: #1e3c72;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(30, 60, 114, 0.2);
}

button:hover {
  background: #2a5298;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 60, 114, 0.3);
}

.logout-btn {
  background: #dc3545;
}

.logout-btn:hover {
  background: #c82333;
}

.hint {
  text-align: center;
  color: #666;
  font-size: 13px;
  margin-top: 10px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 20px;
}

.form-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-section.full-width {
  grid-column: 1 / -1;
}

.submit-btn {
  width: 100%;
  padding: 15px;
  font-size: 18px;
}

.filters {
  background: white;
  padding: 20px 25px;
  border-radius: 16px;
  margin-bottom: 30px;
  border: 1px solid #b8c4d4;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: all 0.3s;
}

.filters:hover {
  box-shadow: 0 6px 28px rgba(0,0,0,0.12);
}

.filter-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 18px;
}

.filters h3 {
  margin: 0;
  color: #1e3c72;
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.results-count {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(30, 60, 114, 0.2);
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 15px;
  margin-bottom: 18px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-group label {
  font-weight: 600;
  color: #495057;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.filter-group select,
.filter-group input {
  height: 40px;
  padding: 0 12px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 13px;
  transition: all 0.3s;
  background: white;
  font-family: inherit;
}

.filter-group select:focus,
.filter-group input:focus {
  outline: none;
  border-color: #1e3c72;
  background: white;
  box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.08);
  transform: translateY(-1px);
}

.filter-group select:hover,
.filter-group input:hover {
  border-color: #cbd5e0;
  background: white;
}

.filter-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  justify-content: flex-start;
  align-items: center;
}

.search-btn,
.clear-btn {
  height: 40px;
  padding: 0 22px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.search-btn {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  color: white;
  box-shadow: 0 3px 10px rgba(30, 60, 114, 0.25);
}

.search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 16px rgba(30, 60, 114, 0.35);
}

.search-btn:active {
  transform: translateY(0);
}

.clear-btn {
  background: white;
  color: #6c757d;
  border: 2px solid #e9ecef;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.clear-btn:hover {
  background: #e4eaf4;
  border-color: #6c757d;
  color: #495057;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.btn-icon {
  font-size: 16px;
}

/* Filters Toggle Button */
.filters-toggle-btn {
  padding: 12px 24px;
  height: 44px;
  border: 2px solid #e0e0e0;
  background: #e4eaf4;
  color: #333;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  box-sizing: border-box;
}

.filters-toggle-btn:hover {
  background: white;
  border-color: #4a6fa5;
}

.filters-toggle-btn.active {
  background: white;
  border-color: #4a6fa5;
}

.filters-toggle-btn:active {
  transform: translateY(0);
}

#filterIcon {
  transition: transform 0.3s;
  font-size: 12px;
}

.filter-footer {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px solid #f0f0f0;
  display: flex;
  justify-content: center;
}

.last-update {
  color: #6c757d;
  font-size: 13px;
  font-style: italic;
  background: #e4eaf4;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 12px;
    padding: 12px 16px;
  }

  .header-logo {
    margin: -10px 0 -14px 0;
  }
  
  .header-left {
    flex-direction: column;
    text-align: center;
  }
  
  .header-right {
    width: 100%;
    justify-content: center;
  }
  
  .dashboard-container {
    padding: 20px;
  }
  
  .filter-header {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
  
  .filter-grid {
    grid-template-columns: 1fr;
  }
  
  .filter-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .search-btn,
  .clear-btn {
    width: 100%;
  }
}

.player-card {
  background: #e4eaf4;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  border: 2px solid #e9ecef;
}

.player-header {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  align-items: center;
}

.player-header img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #1e3c72;
}

.no-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #666;
  text-align: center;
}

.player-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 15px;
}

.player-stats div {
  background: white;
  padding: 10px;
  border-radius: 6px;
}

.player-bio {
  background: white;
  padding: 15px;
  border-radius: 6px;
  margin-top: 15px;
  line-height: 1.6;
}

.player-video {
  margin-top: 15px;
}

.player-video video {
  width: 100%;
  max-width: 600px;
  border-radius: 8px;
}

.no-results {
  text-align: center;
  color: #666;
  padding: 40px;
  font-size: 18px;
}

label {
  font-weight: 600;
  color: #495057;
  margin-top: 5px;
}

/* Professional player cards */
.player-card-compact {
  background: white;
  border-radius: 16px;
  padding: 0;
  border: 1px solid #aab8cb;
  transition: all 0.3s ease;
  box-shadow: 0 7px 20px rgba(24, 42, 74, 0.14);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.player-card-compact .favorite-star-bottom {
  display: flex;
  align-self: stretch;
  width: 100%;
  height: 48px;
  padding: 0 12px;
  box-sizing: border-box;
  margin: 0;
  background: #d3deef;
  border: none;
  border-top: 1px solid #b7c6db;
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #1f3c68;
  transition: all 0.2s ease;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1.1;
  flex-shrink: 0;
}

.player-card-compact .favorite-button-icon {
  width: 18px;
  min-width: 18px;
  text-align: center;
  line-height: 1;
}

.player-card-compact .favorite-button-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
}

.player-card-compact .favorite-star-bottom:hover {
  background: #c5d3e8;
}

.player-card-compact .favorite-star-bottom.favorited {
  background-image: linear-gradient(rgba(24, 45, 82, 0.24), rgba(24, 45, 82, 0.24)), url('/images/bluebackground.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-top: 1px solid rgba(183, 198, 219, 0.65);
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
}

.player-card-compact .favorite-star-bottom.favorited:hover {
  background-image: linear-gradient(rgba(16, 34, 63, 0.18), rgba(16, 34, 63, 0.18)), url('/images/bluebackground.png');
}

.favorites-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  background: #e4eaf4;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
}

.favorites-toggle:hover {
  background: white;
  border-color: #4a6fa5;
}

.favorites-toggle input[type="checkbox"] {
  cursor: pointer;
  width: 16px;
  height: 16px;
}
.favorites-toggle span {
  user-select: none;
}

.favorites-filter-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  background: #e4eaf4;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
  box-sizing: border-box;
}

.favorites-filter-btn:hover {
  background: white;
  border-color: #4a6fa5;
}

.favorites-filter-btn.active {
  background: white;
  border-color: #4a6fa5;
}

.favorites-filter-btn #favoritesFilterIcon {
  font-size: 16px;
}

.player-card-compact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #4a6fa5 0%, #6b8cce 100%);
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: 16px 16px 0 0;
}

.player-card-compact:hover::before {
  opacity: 1;
}

.player-card-compact:hover {
  box-shadow: 0 15px 36px rgba(24, 42, 74, 0.23);
  transform: translateY(-6px);
  border-color: #4a6fa5;
}

.players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.player-card-header {
  background: url('/images/bluebackground.png');
  background-size: cover;
  background-position: center;
  padding: 20px;
  text-align: center;
  color: white;
  position: relative;
  border-radius: 16px 16px 0 0;
  overflow: visible;
  height: 65px;
}

.player-card-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid transparent;
  margin: 0 auto;
  display: block;
  box-shadow: 0 4px 16px rgba(0,0,0,0.22);
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(white, white) padding-box,
              linear-gradient(135deg, #d8dde3 0%, #b6bec8 32%, #8d97a3 58%, #c8cfd8 100%) border-box;
  z-index: 10;
}

.player-card-photo.no-photo {
  background: linear-gradient(#e0e0e0, #e0e0e0) padding-box,
              linear-gradient(135deg, #d8dde3 0%, #b6bec8 32%, #8d97a3 58%, #c8cfd8 100%) border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #757575;
  font-weight: 600;
}

.player-info-section {
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e9ecef;
}

.player-info-section h3 {
  margin: 0 0 8px 0;
  font-size: 19px;
  font-weight: 700;
  color: #1e3c72;
}

.player-info-section p {
  margin: 4px 0;
  font-size: 14px;
  color: #6c757d;
  font-weight: 500;
}

.player-card-body {
  padding: 55px 20px 20px 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  background: #f8fbff;
  border-top: 1px solid #d5dfec;
  border-radius: 0;
}

.player-stats-compact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 74px;
  gap: 12px;
}

.stat-item {
  background: white;
  min-height: 74px;
  padding: 10px 8px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid #e9ecef;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.stat-item:hover {
  border-color: #1e3c72;
  box-shadow: 0 2px 8px rgba(30, 60, 114, 0.15);
  transform: translateY(-2px);
}

.stat-item-has-tooltip {
  cursor: pointer;
}

.stat-label {
  font-size: 11px;
  color: #6c757d;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 16px;
  color: #1e3c72;
  font-weight: 700;
}

.verified-athlete-tile {
  display: flex;
  justify-content: center;
  align-items: center;
}

.verified-athlete-tile-empty {
  font-size: 12px;
  font-weight: 700;
  color: #5c6f8e;
}

.verified-athlete-image {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

/* Player detail page styles */
.player-detail-card {
  background: #e4eaf4;
  border-radius: 8px;
  padding: 30px;
  margin-top: 20px;
}

.player-detail-header {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e9ecef;
  align-items: center;
}

.detail-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid transparent;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
  background: linear-gradient(white, white) padding-box,
              linear-gradient(135deg, #d8dde3 0%, #b6bec8 32%, #8d97a3 58%, #c8cfd8 100%) border-box;
}

.detail-photo.no-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(#ddd, #ddd) padding-box,
              linear-gradient(135deg, #d8dde3 0%, #b6bec8 32%, #8d97a3 58%, #c8cfd8 100%) border-box;
  color: #666;
  font-size: 14px;
  text-align: center;
}

.player-detail-info h2 {
  color: #1e3c72;
  margin-bottom: 10px;
  font-size: 32px;
}

.player-meta {
  color: #666;
  font-size: 16px;
  margin: 5px 0;
}

.detail-section {
  margin-bottom: 30px;
}

.detail-section h3 {
  color: #1e3c72;
  margin-bottom: 15px;
  font-size: 22px;
  border-bottom: 2px solid #1e3c72;
  padding-bottom: 10px;
}

.detail-video {
  width: 100%;
  max-width: 800px;
  border-radius: 8px;
  margin-top: 10px;
}

.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.gallery-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #e9ecef;
  transition: transform 0.3s;
}

.gallery-image:hover {
  transform: scale(1.05);
  cursor: pointer;
}

/* Current profile preview section */
.current-profile-section {
  background: #e4eaf4;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 30px;
  border: 2px solid #1e3c72;
}

.current-profile-section h2 {
  color: #1e3c72;
  margin-bottom: 20px;
  font-size: 24px;
}

.current-media {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.media-item {
  background: white;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.media-item.full-width {
  grid-column: 1 / -1;
}

.media-item h3 {
  color: #2a5298;
  margin-bottom: 15px;
  font-size: 16px;
}

.current-profile-pic {
  width: 100%;
  max-width: 250px;
  border-radius: 8px;
  border: 3px solid #1e3c72;
  display: block;
  margin: 0 auto;
}

.current-video {
  width: 100%;
  max-width: 400px;
  height: 225px;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
  object-fit: cover;
}

.current-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
}

.current-additional-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #e9ecef;
  transition: transform 0.3s;
}

.current-additional-img:hover {
  transform: scale(1.05);
  cursor: pointer;
}

/* Media management styles */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.media-item-wrapper {
  position: relative;
  background: white;
  padding: 10px;
  border-radius: 8px;
  border: 2px solid #e9ecef;
}

.single-images-row {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.single-image-col {
  flex: 1;
  min-width: 150px;
  max-width: 220px;
}

.single-image-col h3 {
  color: #2a5298;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.delete-media-btn {
  width: 100%;
  margin-top: 10px;
  padding: 8px;
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.3s;
}

.delete-media-btn:hover {
  background: #c82333;
}

/* Modern Player Detail Page Styles */
.player-hero {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  border-radius: 16px;
  padding: 30px 40px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  margin-bottom: 30px;
  box-shadow: 0 8px 24px rgba(30, 60, 114, 0.3);
  color: white;
}

@media (max-width: 768px) {
  .player-hero {
    flex-direction: column;
    text-align: center;
  }
}

.hero-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid white;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  flex-shrink: 0;
}

.hero-photo.no-photo {
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
}

.hero-info h1 {
  font-size: 42px;
  margin: 0 0 15px 0;
  font-weight: 800;
  color: white;
  text-align: left;
}

.hero-info {
  flex: 1;
  text-align: left;
}

@media (max-width: 768px) {
  .hero-info h1 {
    text-align: center;
  }
  
  .hero-info {
    text-align: center;
  }
}

.hero-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.badge {
  background: rgba(255,255,255,0.2);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
}

.stats-grid-detail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.stat-card {
  background: linear-gradient(135deg, #e4eaf4 0%, #d8e2ee 100%);
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid #dee2e6;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.stat-card.highlight {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  color: white;
}

.stat-card.highlight .stat-label,
.stat-card.highlight .stat-value-large {
  color: white;
}

.stat-icon {
  font-size: 32px;
  margin-bottom: 10px;
}

.stat-value-large {
  font-size: 28px;
  font-weight: 800;
  color: #1e3c72;
  margin-top: 8px;
}

.section-icon {
  font-size: 24px;
  margin-right: 10px;
}

.bio-content {
  background: #e4eaf4;
  padding: 25px;
  border-radius: 12px;
  line-height: 1.8;
  font-size: 16px;
  color: #495057;
  border-left: 4px solid #1e3c72;
  margin-top: 20px;
}

.media-grid-detail {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 400px));
  gap: 25px;
  margin-top: 20px;
  justify-content: start;
}

.video-wrapper {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  background: #000;
  max-width: 400px;
  width: 100%;
}

.detail-video {
  width: 100%;
  height: 225px;
  display: block;
  object-fit: cover;
}

.image-gallery-detail {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.gallery-image-detail {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #e9ecef;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.gallery-image-detail:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  cursor: pointer;
}

.player-detail-card {
  background: white;
  border-radius: 16px;
  padding: 0;
  margin-top: 20px;
}

.detail-section {
  margin-bottom: 40px;
  padding: 0 20px;
}

.detail-section h3 {
  color: #1e3c72;
  margin-bottom: 20px;
  font-size: 26px;
  font-weight: 700;
  display: flex;
  align-items: center;
  padding-bottom: 15px;
  border-bottom: 3px solid #e9ecef;
}

/* Modern Player Profile Form Styles */
.profile-header {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 30px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 8px 24px rgba(30, 60, 114, 0.3);
}

.profile-header h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 800;
  color: white;
}

.form-container {
  background: white;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.form-section {
  background: #e4eaf4;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #e9ecef;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.form-section h3 {
  color: #1e3c72;
  margin: 0 0 10px 0;
  font-size: 16px;
  font-weight: 700;
  padding-bottom: 10px;
  border-bottom: 2px solid #dee2e6;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-section.full-width {
  grid-column: 1 / -1;
}

label {
  font-weight: 600;
  color: #495057;
  font-size: 11px;
  margin-bottom: 6px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

input, select, textarea {
  padding: 9px 12px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 13px;
  transition: all 0.3s;
  background: white;
  font-family: inherit;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #1e3c72;
  background: white;
  box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.08);
  transform: translateY(-1px);
}

input:hover, select:hover, textarea:hover {
  border-color: #cbd5e0;
  background: white;
}

textarea {
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
}

.submit-btn {
  width: 100%;
  padding: 18px;
  font-size: 18px;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(30, 60, 114, 0.3);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(30, 60, 114, 0.4);
}

.submit-btn.is-loading {
  position: relative;
  padding-left: 46px;
  cursor: wait;
  opacity: 0.95;
}

.submit-btn.is-loading::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: submitSpin 0.8s linear infinite;
}

.upload-status {
  display: none;
  margin-top: 12px;
  font-size: 13px;
  color: #1e3c72;
  font-weight: 600;
  align-items: center;
  gap: 8px;
}

.upload-status.active {
  display: flex;
}

.profile-result-banner {
  display: none;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}

.profile-result-banner.active {
  display: block;
}

.profile-result-banner.success {
  background: #e8f7ee;
  border: 1px solid #a3d9b7;
  color: #1f6b3b;
}

.profile-result-banner.error {
  background: #fdecee;
  border: 1px solid #f2b5bc;
  color: #8a1f2d;
}

.upload-status.active::before {
  content: '';
  width: 12px;
  height: 12px;
  border: 2px solid rgba(30, 60, 114, 0.25);
  border-top-color: #1e3c72;
  border-radius: 50%;
  animation: submitSpin 0.9s linear infinite;
}

@keyframes submitSpin {
  to {
    transform: rotate(360deg);
  }
}

/* Current Profile Section */
.current-profile-section {
  background: white;
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 30px;
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.current-profile-section h2 {
  color: #1e3c72;
  margin-bottom: 25px;
  font-size: 28px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.current-media {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.media-item {
  background: #e4eaf4;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #e9ecef;
}

.media-item h3 {
  color: #2a5298;
  margin-bottom: 15px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.current-profile-pic {
  width: 100%;
  max-width: 250px;
  border-radius: 12px;
  border: 3px solid #1e3c72;
  display: block;
  margin: 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.current-video {
  width: 100%;
  height: 225px;
  border-radius: 12px;
  display: block;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  object-fit: cover;
}

.current-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
}

.current-additional-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #e9ecef;
  transition: transform 0.3s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.current-additional-img:hover {
  transform: scale(1.05);
  cursor: pointer;
}

.media-item-wrapper {
  position: relative;
  background: white;
  padding: 12px;
  border-radius: 12px;
  border: 2px solid #e9ecef;
  transition: all 0.3s;
}

.single-images-row {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.single-image-col {
  flex: 1;
  min-width: 150px;
  max-width: 220px;
}

.single-image-col h3 {
  color: #2a5298;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.media-item-wrapper:hover {
  border-color: #1e3c72;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.delete-media-btn {
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.delete-media-btn:hover {
  background: #c82333;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.file-input-wrapper {
  position: relative;
  overflow: hidden;
  display: inline-block;
  width: 100%;
}

.file-input-wrapper input[type=file] {
  font-size: 14px;
  cursor: pointer;
}

.file-input-wrapper input[type=file]::file-selector-button {
  padding: 10px 20px;
  background: #1e3c72;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  margin-right: 10px;
  transition: all 0.3s;
}

.file-input-wrapper input[type=file]::file-selector-button:hover {
  background: #2a5298;
}

/* College Offers Styles */
.college-offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 120px));
  gap: 15px;
  justify-content: center;
}

.college-offer-item {
  text-align: center;
}

.college-offer-logo {
  width: 100%;
  max-width: 120px;
  height: 120px;
  object-fit: contain;
  background: white;
  padding: 10px;
  border-radius: 8px;
}

.college-offers-display {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.college-offer-card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  border: 2px solid #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  min-height: 150px;
}

.college-offer-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  border-color: #1e3c72;
}

.college-offer-display-logo {
  width: 100%;
  height: 100px;
  object-fit: contain;
}

.hint-text {
  font-size: 12px;
  color: #6c757d;
  font-style: italic;
  margin-top: -8px;
}

.hint-text.warning {
  color: #9a3412;
  font-weight: 700;
}

.bio-ai-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.bio-ai-btn {
  border: none;
  border-radius: 8px;
  background: #1f4b8f;
  color: #fff;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.bio-ai-btn.secondary {
  background: #5d769e;
}

.bio-ai-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.bio-ai-status {
  margin-top: 8px;
  font-size: 13px;
  color: #4e5f77;
}

.bio-ai-status.success {
  color: #166534;
}

.bio-ai-status.error {
  color: #b91c1c;
}

.bio-ai-suggestions {
  margin-top: 8px;
}

.bio-ai-suggestions-title {
  font-size: 12px;
  font-weight: 700;
  color: #1f4b8f;
  margin-bottom: 4px;
}

.bio-ai-suggestions ul {
  margin: 0;
  padding-left: 18px;
  color: #44546a;
  font-size: 13px;
}

.broad-jump-input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.media-upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.media-upload-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.video-link-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.video-link-input-row .vl-title {
  flex: 1;
  min-width: 0;
}

.video-link-input-row .vl-url {
  flex: 2;
  min-width: 0;
}

.btn-add-link {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 9px 14px;
  background: #1e3c72;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s;
}

.btn-add-link:hover {
  background: #2a5298;
}

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

/* Modern Login Page Styles */
.login-body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: #e4eaf4;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1200px;
  width: 100%;
  min-height: 600px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
  overflow: hidden;
  margin: 20px;
}

.login-left {
  background: white;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
}

.login-hero {
  width: 100%;
  max-width: 450px;
}

.login-logo-frame {
  background: transparent;
  padding: 10px;
  border-radius: 12px;
  margin: 0 auto 15px auto;
  display: block;
  width: fit-content;
  border: none;
}

.login-logo {
  max-width: 200px;
  width: 100%;
  height: auto;
  display: block;
}

.tagline {
  font-size: 17px;
  margin-bottom: 20px;
  color: #555;
  font-weight: 400;
  text-align: center;
  line-height: 1.5;
}

.features {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.feature-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  padding: 12px;
  background: #e4eaf4;
  border-radius: 10px;
  transition: all 0.3s;
}

.feature-item:hover {
  background: #e9ecef;
  transform: translateX(5px);
}

.feature-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.feature-item h3 {
  margin: 0 0 5px 0;
  font-size: 16px;
  font-weight: 700;
  color: #333;
}

.feature-item p {
  margin: 0;
  line-height: 1.5;
  color: #666;
  font-size: 13px;
}

.login-right {
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4a6fa5 0%, #6b8cce 100%);
}

.login-card {
  width: 100%;
  max-width: 380px;
  background: white;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.login-header {
  text-align: center;
  margin-bottom: 25px;
}

.login-header h2 {
  font-size: 26px;
  margin: 0 0 6px 0;
  color: #333;
  font-weight: 700;
}

.login-header p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 25px;
  background: #e4eaf4;
  padding: 4px;
  border-radius: 10px;
}

.tab-btn {
  padding: 10px;
  border: none;
  background: transparent;
  color: #666;
  cursor: pointer;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s;
}

.tab-btn.active {
  background: white;
  color: #4a6fa5;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-group label {
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.metric-label-with-tip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.metric-tip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 1px solid #8ea6c9;
  background: #eef3fb;
  color: #1e3c72;
  font-size: 11px;
  font-weight: 700;
  cursor: help;
  position: relative;
  line-height: 1;
}

.metric-tip-tooltip {
  position: fixed;
  z-index: 10020;
  width: 260px;
  max-width: min(320px, 70vw);
  background: #1f2937;
  color: #fff;
  font-size: 12px;
  line-height: 1.35;
  padding: 8px 10px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  text-transform: none;
  letter-spacing: normal;
  white-space: normal;
  pointer-events: none;
}

.input-group input {
  padding: 14px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
  transition: all 0.3s;
  background: white;
}

.input-group input:focus {
  outline: none;
  border-color: #4a6fa5;
  background: white;
  box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.1);
}

.primary-btn {
  padding: 16px;
  background: linear-gradient(135deg, #4a6fa5 0%, #6b8cce 100%);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(74, 111, 165, 0.3);
  margin-top: 10px;
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(74, 111, 165, 0.4);
}

.auth-help-row {
  display: flex;
  justify-content: flex-end;
}

.auth-link-btn {
  border: none;
  background: transparent;
  color: #2a5298;
  text-decoration: underline;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  line-height: 1.2;
}

.auth-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1200;
}

.auth-modal-content {
  width: 100%;
  max-width: 460px;
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-modal-content p {
  color: #4b5563;
  font-size: 14px;
}

.auth-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.auth-modal-actions .primary-btn,
.auth-modal-actions .auth-secondary-btn {
  margin-top: 0;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}

.auth-modal-actions .primary-btn {
  background: #2a5298;
  box-shadow: none;
}

.auth-modal-actions .primary-btn:hover {
  transform: none;
  box-shadow: none;
  background: #1f3f78;
}

.auth-secondary-btn {
  border: 1px solid #9fb6dc;
  background: #edf3ff;
  color: #1f3f78;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
}

.auth-secondary-btn:hover {
  background: #dfeafe;
}

.auth-message {
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
}

.auth-message.info {
  background: #e8f1ff;
  color: #1d4f91;
  border: 1px solid #c7dcff;
}

.auth-message.success {
  background: #ebfaf1;
  color: #166534;
  border: 1px solid #b8e6c8;
}

.auth-message.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Responsive Design */
@media (max-width: 968px) {
  .login-container {
    grid-template-columns: 1fr;
  }
  
  .login-left {
    padding: 40px;
  }
  
  .login-hero h1 {
    font-size: 32px;
  }
  
  .features {
    gap: 20px;
  }
  
  .feature-item {
    gap: 15px;
  }
  
  .feature-icon {
    font-size: 28px;
  }
}

@media (max-width: 576px) {
  .login-container {
    margin: 10px;
    border-radius: 16px;
  }
  
  .login-left,
  .login-right {
    padding: 30px 20px;
  }
  
  .login-hero h1 {
    font-size: 28px;
  }
  
  .tagline {
    font-size: 16px;
    margin-bottom: 30px;
  }
}

/* Player quick stats line */
.player-quick-stats {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 15px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* Modern Profile Page Styles - Clean Athlete Profile Design */

.profile-page-wrapper {
  min-height: 100vh;
  background: #e4eaf4;
}

.profile-nav {
  background: white;
  padding: 20px 40px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.back-btn {
  padding: 10px 20px;
  background: white;
  color: #1e3c72;
  border: 2px solid #1e3c72;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s;
}

.back-btn:hover {
  background: #1e3c72;
  color: white;
}

.profile-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 40px 20px;
}

/* Hero Section with Soft Gradient */
.profile-hero {
  position: relative;
  height: 150px;
  border-radius: 20px 20px 0 0;
  overflow: visible;
  margin-bottom: 80px;
}

.hero-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('/images/bluebackground.png');
  background-size: cover;
  background-position: center;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
}

/* Circular Profile Photo Overlapping Header */
.profile-photo-wrapper {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
}

.profile-photo-large {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid transparent;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  background: linear-gradient(white, white) padding-box,
              linear-gradient(135deg, #d8dde3 0%, #b6bec8 32%, #8d97a3 58%, #c8cfd8 100%) border-box;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.profile-photo-large:hover {
  transform: scale(2);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
  z-index: 200;
}

.profile-photo-large.no-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(#e0e0e0, #e0e0e0) padding-box,
              linear-gradient(135deg, #d8dde3 0%, #b6bec8 32%, #8d97a3 58%, #c8cfd8 100%) border-box;
  color: #757575;
  font-size: 14px;
  font-weight: 600;
}

/* Player Header Info */
.profile-header-info {
  text-align: center;
  margin-bottom: 40px;
}

.player-name-large {
  font-size: 36px;
  font-weight: 800;
  color: #1e3c72;
  margin: 0 0 15px 0;
  letter-spacing: -0.5px;
}

.meta-badges {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.meta-badge {
  background: #e4eaf4;
  color: #495057;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid #e0e0e0;
}

.clickable-gpa {
  cursor: pointer;
  border-color: #b7d0ff;
  background: #eef4ff;
  color: #1f4b8f;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.clickable-gpa:hover {
  transform: translateY(-1px);
  background: #e2eeff;
  box-shadow: 0 4px 12px rgba(30, 60, 114, 0.18);
}

.clickable-gpa:focus-visible {
  outline: 2px solid #1e3c72;
  outline-offset: 2px;
}

/* Profile Sections */
.profile-section {
  background: white;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.ad-slot {
  width: 100%;
  border: 1px dashed #b8c4d4;
  background: #f7f9fc;
  color: #5a6b84;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.ad-slot.ad-slot-configured {
  border-style: solid;
  background: #ffffff;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  padding: 8px;
  display: block;
}

.ad-slot-leaderboard {
  min-height: 90px;
  margin: 14px 0 20px;
}

.ad-slot-rectangle {
  min-height: 250px;
  margin: 16px 0;
}

.ad-slot-inline {
  min-height: 120px;
  margin: 12px 0;
}

.section-title-small {
  font-size: 12px;
  font-weight: 700;
  color: #757575;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0 0 20px 0;
  padding-bottom: 12px;
  border-bottom: 2px solid #f0f0f0;
}

.ai-summary-section {
  border: 1px solid #d9e6fb;
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
}

.ai-summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ai-summary-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ai-summary-toggle-btn {
  border: 1px solid #b5caea;
  border-radius: 8px;
  background: #ffffff;
  color: #1f4b8f;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ai-summary-toggle-icon {
  font-size: 11px;
  line-height: 1;
}

#aiSummaryBody.is-collapsed {
  display: none;
}

.ai-summary-actions {
  display: flex;
  gap: 8px;
}

.ai-summary-btn {
  border: none;
  border-radius: 8px;
  background: #1f4b8f;
  color: #ffffff;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  cursor: pointer;
}

.ai-summary-btn:disabled {
  cursor: wait;
  opacity: 0.7;
}

.ai-summary-btn.secondary {
  background: #5d769e;
}

.ai-summary-status {
  margin: 6px 0;
  font-size: 14px;
  color: #4e5f77;
}

.ai-summary-hint {
  margin: 0;
  font-size: 13px;
  color: #6a778b;
}

.ai-summary-text {
  margin: 0 0 14px 0;
  line-height: 1.7;
  color: #334155;
}

.ai-summary-list-wrap h3 {
  margin: 0 0 6px 0;
  font-size: 13px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #1f4b8f;
}

.ai-summary-list {
  margin: 0 0 12px 0;
  padding-left: 18px;
  color: #3c4a5f;
}

.ai-summary-list li {
  margin-bottom: 4px;
}

.ai-summary-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #5a6b82;
  border-top: 1px solid #e6eefb;
  padding-top: 10px;
}

.ai-feedback-row {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-feedback-btn {
  border: 1px solid #b6c8e8;
  background: #ffffff;
  color: #1f4b8f;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.ai-feedback-btn:hover {
  background: #ecf3ff;
}

.ai-feedback-toast {
  font-size: 12px;
  color: #1f6f41;
  opacity: 0;
  transition: opacity 0.2s;
}

.ai-feedback-toast.show {
  opacity: 1;
}

/* Physical Stats Inline */
.physical-stats-inline {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.stat-inline {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.stat-label-inline {
  font-size: 12px;
  color: #757575;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value-inline {
  font-size: 20px;
  color: #1e3c72;
  font-weight: 700;
}

/* Bio Text */
.bio-text {
  font-size: 16px;
  line-height: 1.8;
  color: #495057;
  margin: 0;
}

/* Social Media Links */
.social-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 15px;
  margin-top: 10px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: #e4eaf4;
  color: #333;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
  min-height: 84px;
}

.social-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  background: #ebebeb;
}

.social-link.hudl {
  background: #e4eaf4;
}

.social-link.instagram {
  background: #e4eaf4;
}

.social-link.twitter {
  background: #e4eaf4;
}

.social-icon {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}

.social-icon-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

.social-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.social-name {
  font-size: 14px;
  font-weight: 700;
}

.social-username {
  font-size: 12px;
  opacity: 0.9;
  font-weight: 400;
}

.social-edit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 15px;
  margin-top: 10px;
}

.social-edit-card {
  background: white;
  padding: 15px;
  border-radius: 8px;
  border: 2px solid #e9ecef;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.social-edit-title {
  margin: 0 0 8px 0;
  color: #1e3c72;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e9ecef;
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-edit-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* Athletic Metrics Grid - Smaller Squares */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
}

.metric-item {
  text-align: center;
  padding: 12px 10px;
  background: #e4eaf4;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  transition: all 0.3s;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.metric-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-color: #1e3c72;
}

.metric-label {
  font-size: 10px;
  color: #757575;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0;
  line-height: 1.2;
}

.metric-value {
  font-size: 18px;
  color: #1e3c72;
  font-weight: 800;
  line-height: 1.1;
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.metric-label-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  min-height: 26px;
}

.metric-label-row .metric-tip-icon,
.metric-label-row .metric-verified-star {
  flex-shrink: 0;
  margin-top: 1px;
}

.metric-item-clickable {
  cursor: pointer;
  border-color: #9db2d6;
}

.metric-item-clickable:hover {
  border-color: #1e3c72;
}

.metric-video-hint {
  margin-top: 2px;
  font-size: 11px;
  color: #2a5298;
  font-weight: 600;
  min-height: 14px;
}

.metric-video-hint-empty {
  visibility: hidden;
}

.metric-verified-star {
  color: #f59e0b;
  font-size: 12px;
  line-height: 1;
}

.metric-proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.metric-proof-item {
  border: 1px solid #d9e1ef;
  border-radius: 10px;
  background: #f8fbff;
  padding: 12px;
}

.metric-proof-item input[type="file"],
.metric-proof-item input[type="text"] {
  width: 100%;
  margin-top: 6px;
  margin-bottom: 6px;
}

.metric-proof-verify {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #1f2937;
}

.metric-proof-preview {
  background: #f8fbff;
  border-radius: 10px;
  border: 1px solid #d9e1ef;
}

.metric-proof-title {
  font-weight: 700;
  font-size: 13px;
  color: #1e3c72;
  margin-bottom: 8px;
}

.metric-proof-verified {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #a16207;
}

.metric-video-lightbox {
  max-width: 860px;
  width: min(92vw, 860px);
}

.metric-video-lightbox h3 {
  margin: 0 0 12px;
  color: #1e3c72;
}

.metric-proof-video {
  width: 100%;
  max-height: 70vh;
  border-radius: 8px;
}

/* Videos List */
.videos-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 400px));
  gap: 20px;
  justify-content: center;
}

.profile-video {
  width: 100%;
  max-width: 400px;
  height: 225px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  object-fit: cover;
}

/* Video Link Cards */
.video-link-card, .video-link-card-edit {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border: 1px solid #2a2a4a;
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  max-width: 400px;
  width: 100%;
  box-sizing: border-box;
}

.video-link-card:hover, .video-link-card-edit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
  border-color: #d4af37;
}

.video-link-icon {
  font-size: 24px;
  color: #d4af37;
  flex-shrink: 0;
}

.video-link-title {
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Images Grid */
.images-grid-profile {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

.profile-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #e9ecef;
  transition: all 0.3s;
}

.profile-image:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  cursor: pointer;
}

/* College Offers Grid - Clean Logo Cards */
.college-offers-grid-profile {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 15px;
}

.college-logo-card {
  background: white;
  padding: 15px;
  border-radius: 10px;
  border: 1px solid #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  transition: all 0.3s;
}

.college-logo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  border-color: #1e3c72;
  background: white;
}

.college-logo-img {
  width: 100%;
  height: 60px;
  object-fit: contain;
  filter: none;
  opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
  .profile-nav {
    padding: 15px 20px;
    flex-direction: column;
    gap: 10px;
  }
  
  .profile-container {
    padding: 30px 15px;
  }
  
  .profile-hero {
    height: 150px;
    margin-bottom: 70px;
  }
  
  .profile-photo-large {
    width: 140px;
    height: 140px;
  }
  
  .player-name-large {
    font-size: 28px;
  }
  
  .physical-stats-inline {
    gap: 25px;
  }
  
  .metrics-grid {
    grid-template-columns: repeat(auto-fill, minmax(95px, 1fr));
    gap: 10px;
  }
  
  .videos-list {
    grid-template-columns: 1fr;
  }
  
  .images-grid-profile {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  
  .college-offers-grid-profile {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
  
  .profile-section {
    padding: 20px;
  }

  .ai-summary-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .ai-summary-controls {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .ai-summary-toggle-btn {
    width: 100%;
    justify-content: center;
  }

  .ai-summary-actions {
    width: 100%;
  }

  .ai-summary-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .player-name-large {
    font-size: 24px;
  }
  
  .meta-badges {
    flex-direction: column;
    align-items: center;
  }
  
  .physical-stats-inline {
    flex-direction: column;
    gap: 20px;
  }
  
  .metrics-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Search Input with Icon */
.search-input-wrapper {
  position: relative;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #9e9e9e;
  pointer-events: none;
  z-index: 1;
}

.search-input-with-icon {
  width: 100%;
  height: 44px;
  padding: 0 14px 0 48px !important;
  font-size: 14px !important;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  transition: all 0.3s;
  background: white;
  box-sizing: border-box;
}

.search-input-with-icon:focus {
  outline: none;
  border-color: #4a6fa5;
  background: white;
  box-shadow: 0 0 0 4px rgba(74, 111, 165, 0.1);
  transform: translateY(-1px);
}

.search-input-with-icon::placeholder {
  color: #adb5bd;
}

/* Top Navigation Menu */
.top-nav-menu {
  display: flex;
  gap: 8px;
  align-items: center;
  align-self: flex-end;
  flex: 0 0 auto;
  margin-left: auto;
}

.nav-link {
  color: #555555;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 6px;
  transition: all 0.2s;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  line-height: 1.2;
}

.nav-link svg {
  width: 20px;
  height: 20px;
  opacity: 0.92;
}

.nav-link:hover {
  background: #e4eaf4;
  color: #1e3c72;
  transform: translateY(-1px);
}

.nav-link:active {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .top-nav-menu {
    gap: 15px;
  }
  
  .nav-link {
    font-size: 14px;
    padding: 6px 12px;
  }
}

/* Pagination */
.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 4px 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.pagination-info {
  font-size: 13px;
  color: #6c757d;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.page-btn {
  padding: 7px 13px;
  border: 1px solid #b8c4d4;
  border-radius: 7px;
  background: white;
  color: #333;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1;
}

.page-btn:hover:not(:disabled) {
  background: #f0f4f8;
  border-color: #1e3c72;
  color: #1e3c72;
}

.page-btn.active {
  background: #1e3c72;
  color: white;
  border-color: #1e3c72;
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.page-ellipsis {
  padding: 0 4px;
  color: #6c757d;
  font-size: 14px;
}

/* Agent Profile Page */
.profile-page-container {
  max-width: 1200px;
  margin: 0 auto;
}

.profile-page-container .profile-section {
  margin-bottom: 30px;
}

.profile-page-container .form-section h3 {
  margin-top: 0;
}

/* Contact Information Grid */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 15px;
  margin-top: 10px;
}

.contact-person {
  background: white;
  padding: 15px;
  border-radius: 8px;
  border: 2px solid #e9ecef;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-person h4 {
  margin: 0 0 8px 0;
  color: #1e3c72;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e9ecef;
}

.contact-person label {
  margin-bottom: -6px;
}

.contact-person input {
  margin-bottom: 0;
}

/* Contact Information Display on Player Detail Page */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.contact-card {
  background: #e4eaf4;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #e9ecef;
}

.contact-card h4 {
  margin: 0 0 15px 0;
  color: #1e3c72;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e0e0e0;
}

.contact-details p {
  margin: 10px 0;
  font-size: 15px;
  color: #495057;
  line-height: 1.6;
}

.contact-details strong {
  color: #1e3c72;
  font-weight: 600;
  display: inline-block;
  min-width: 60px;
}

.contact-details a {
  color: #4a6fa5;
  text-decoration: none;
  transition: color 0.3s;
}

.contact-details a:hover {
  color: #1e3c72;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .contact-info-grid {
    grid-template-columns: 1fr;
  }
}

/* Lightbox for Image Enlargement */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from { transform: scale(0.8); }
  to { transform: scale(1); }
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 40px;
  font-weight: 300;
  cursor: pointer;
  transition: all 0.3s;
  line-height: 1;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover {
  transform: scale(1.2);
  color: #ff4444;
}

.profile-image {
  cursor: pointer;
}

.profile-image:hover {
  opacity: 0.9;
}

/* Messaging System Styles */
.messages-container {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 20px;
  height: calc(100vh - 200px);
  max-height: 800px;
}

.conversations-panel {
  background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  overflow-y: auto;
}

.conversations-panel h2 {
  margin: 0 0 20px 0;
  font-size: 20px;
  color: #1e3c72;
  padding-bottom: 15px;
  border-bottom: 2px solid #e9ecef;
}

.conversation-item {
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.3s;
  border: 1px solid #e9ecef;
}

.conversation-item:hover {
  background: #e4eaf4;
  border-color: #4a6fa5;
}

.conversation-item.unread {
  background: #e8f4f8;
  border-color: #4a6fa5;
}

.conversation-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.conversation-name {
  font-weight: 700;
  color: #1e3c72;
  font-size: 15px;
}

.conversation-role {
  font-size: 12px;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.conversation-preview {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.last-message {
  font-size: 13px;
  color: #6c757d;
  flex: 1;
}

.unread-badge {
  background: #4a6fa5;
  color: white;
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  margin-left: 10px;
}

.no-conversations {
  text-align: center;
  color: #6c757d;
  padding: 40px 20px;
  font-size: 14px;
}

.messages-panel {
  background: white;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.messages-header {
  padding: 20px;
  border-bottom: 2px solid #e9ecef;
  background: #e4eaf4;
}

.messages-header h3 {
  margin: 0;
  color: #1e3c72;
  font-size: 18px;
}

.messages-header p {
  margin: 0;
  color: #6c757d;
  font-size: 14px;
}

.messages-content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.message {
  max-width: 70%;
  padding: 12px 16px;
  border-radius: 12px;
  animation: messageSlide 0.3s ease;
}

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

.message.sent {
  align-self: flex-end;
  background: linear-gradient(135deg, #4a6fa5 0%, #6b8cce 100%);
  color: white;
  border-bottom-right-radius: 4px;
}

.message.received {
  align-self: flex-start;
  background: #e4eaf4;
  border: 1px solid #e9ecef;
  border-bottom-left-radius: 4px;
}

.message-sender {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 5px;
  opacity: 0.9;
}

.message.sent .message-sender {
  color: rgba(255,255,255,0.9);
}

.message.received .message-sender {
  color: #1e3c72;
}

.message-text {
  font-size: 14px;
  line-height: 1.5;
  word-wrap: break-word;
}

.message-time {
  font-size: 11px;
  margin-top: 5px;
  opacity: 0.7;
}

.no-messages {
  text-align: center;
  color: #6c757d;
  padding: 40px 20px;
  font-size: 14px;
}

.message-input-container {
  padding: 20px;
  border-top: 2px solid #e9ecef;
  background: #e4eaf4;
  display: flex;
  gap: 15px;
  align-items: flex-end;
}

.message-input-container textarea {
  flex: 1;
  padding: 12px;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  background: white;
  resize: none;
  transition: all 0.3s;
}

.message-input-container textarea:focus {
  outline: none;
  border-color: #4a6fa5;
  box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.1);
}

.send-btn {
  padding: 12px 30px;
  background: linear-gradient(135deg, #4a6fa5 0%, #6b8cce 100%);
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  transition: all 0.3s;
  white-space: nowrap;
}

.send-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 111, 165, 0.3);
}

@media (max-width: 968px) {
  .messages-container {
    grid-template-columns: 1fr;
    height: auto;
  }
  
  .conversations-panel {
    max-height: 300px;
  }
  
  .messages-panel {
    min-height: 500px;
  }
}

/* Message Button */
.message-btn {
  padding: 10px 20px;
  background: #e4eaf4;
  color: #333;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.message-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  background: #ebebeb;
}

/* Export Button */
.export-btn {
  padding: 10px 20px;
  background: #e4eaf4;
  color: #333;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.export-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  background: #ebebeb;
}

/* Player Card Button */
.player-card-btn {
  padding: 10px 20px;
  background: #e4eaf4;
  color: #333;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.player-card-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  background: #ebebeb;
}

/* Favorite Button on Detail Page */
.favorite-detail-btn {
  padding: 10px 20px;
  background: #e4eaf4;
  color: #333;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-right: 10px;
}

.favorite-detail-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  background: #ebebeb;
}

.favorite-detail-btn.favorited {
  background: #e4eaf4;
  border-color: #e0e0e0;
  color: #333;
}

.favorite-detail-btn.favorited:hover {
  background: #ebebeb;
}

/* Cross-page border consistency for dashboard screens */
.last-update,
.stat-item,
.media-item,
.form-section,
.current-profile-section,
.metric-item,
.profile-image,
.college-logo-card,
.gallery-image-detail,
.contact-person,
.contact-person h4,
.contact-card,
.detail-section h3,
.stats-grid-detail .stat-card,
.conversations-panel h2,
.conversation-item,
.messages-header,
.message.received,
.message-input-container,
.message-input-container textarea {
  border-color: #b8c4d4;
}



