:root {
  --sportex-blue: #0EA5E9;
  --sportex-blue-dark: #0284C7;
  --sportex-blue-light: #38BDF8;
  --sportex-green: #7CB342;
  --sportex-green-light: #9CCC65;
  --sportex-bg-dark: #0A0E14;
  --sportex-surface: #131920;
  --sportex-surface-light: #1E293B;
  --sportex-text: #F8FAFC;
  --sportex-text-muted: #94A3B8;
  --sportex-border: #334155;
  --side-menu-width: 260px;
  --top-header-height: 70px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--sportex-bg-dark);
  color: var(--sportex-text);
  overflow-x: hidden;
}

/* RTL Scrollbar positioning */
[dir="rtl"] body,
[dir="rtl"] * {
  direction: rtl;
}



.dashboard-wrapper {
  display: flex;
  min-height: 100vh;
}

/* Side Menu */
.side-menu {
  width: var(--side-menu-width);
  background: var(--sportex-surface);
  border-right: 1px solid var(--sportex-border);
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  z-index: 1000;
  transition: transform 0.3s ease;
}

[dir="rtl"] .side-menu {
  left: auto;
  right: 1px;
  border-right: none;
  border-left: 1px solid var(--sportex-border);
}

.side-menu__header {
  height: var(--top-header-height);
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  border-bottom: 1px solid var(--sportex-border);
}

.side-menu__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.logo-image {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--sportex-blue) 0%, var(--sportex-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.side-menu__nav {
  padding: 1.5rem 0;
}

.side-menu__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1.5rem;
  margin: 0.25rem 0.75rem;
  color: var(--sportex-text-muted);
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
  border-radius: 10px;
  font-weight: 500;
}

.side-menu__item i,
.side-menu__item svg,
.side-menu__item .solar-icon {
  font-size: 1.25rem;
  width: 24px;
  height: 24px;
  text-align: center;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.side-menu__item .solar-icon svg {
  width: 100%;
  height: 100%;
}

.side-menu__item:hover {
  background: rgba(14, 165, 233, 0.1);
  color: var(--sportex-blue-light);
  transform: translateX(4px);
}

[dir="rtl"] .side-menu__item:hover {
  transform: translateX(-4px);
}

.side-menu__item.active {
  background: rgba(14, 165, 233, 0.15);
  color: var(--sportex-blue-light);
  font-weight: 600;
}

.side-menu__item.active::before {
  content: '';
  position: absolute;
  left: -0.75rem;
  top: 50%;
  transform: translateY(-50%);
  height: 60%;
  width: 4px;
  background: linear-gradient(180deg, var(--sportex-blue) 0%, var(--sportex-green) 100%);
  border-radius: 0 4px 4px 0;
}

[dir="rtl"] .side-menu__item.active::before {
  left: auto;
  right: -0.75rem;
  border-radius: 4px 0 0 4px;
}

/* Menu Groups */
.side-menu__group {
  margin: 0.25rem 0;
}

.side-menu__group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(100% - 1.5rem);
  padding: 0.875rem 1.5rem;
  margin: 0.25rem 0.75rem;
  color: var(--sportex-text-muted);
  background: none;
  border: none;
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
  text-align: left;
}

[dir="rtl"] .side-menu__group-header {
  text-align: right;
}

.group-header-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}

.side-menu__group-header i,
.side-menu__group-header svg:not(.group-chevron),
.side-menu__group-header .solar-icon {
  font-size: 1.25rem;
  width: 24px;
  height: 24px;
  text-align: center;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.group-header-content span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.group-chevron {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: auto;
}

[dir="rtl"] .group-chevron {
  margin-left: 0;
  margin-right: auto;
}

.side-menu__group-header:hover {
  background: rgba(14, 165, 233, 0.1);
  color: var(--sportex-blue-light);
}

.side-menu__group.open .side-menu__group-header {
  color: var(--sportex-blue-light);
}

.side-menu__group.open .group-chevron {
  transform: rotate(180deg);
}

.side-menu__group-items {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, padding 0.3s ease;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.side-menu__group.open .side-menu__group-items {
  max-height: 500px;
  opacity: 1;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.side-menu__item--sub {
  padding-left: 3.5rem;
  font-size: 0.9375rem;
  transform: translateX(-10px);
  opacity: 0;
  transition: all 0.2s ease, transform 0.3s ease, opacity 0.3s ease;
}

[dir="rtl"] .side-menu__item--sub {
  padding-left: 1.5rem;
  padding-right: 3.5rem;
  transform: translateX(10px);
}

.side-menu__group.open .side-menu__item--sub {
  transform: translateX(0);
  opacity: 1;
}

.side-menu__group.open .side-menu__item--sub:nth-child(1) {
  transition-delay: 0.05s;
}

.side-menu__group.open .side-menu__item--sub:nth-child(2) {
  transition-delay: 0.1s;
}

.side-menu__group.open .side-menu__item--sub:nth-child(3) {
  transition-delay: 0.15s;
}

.side-menu__group.open .side-menu__item--sub:nth-child(4) {
  transition-delay: 0.2s;
}

/* Main Content */
.main-content {
  flex: 1;
  margin-left: var(--side-menu-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

[dir="rtl"] .main-content {
  margin-left: 0;
  margin-right: var(--side-menu-width);
}

/* Top Header */
.top-header {
  height: var(--top-header-height);
  background: var(--sportex-surface);
  border-bottom: 1px solid var(--sportex-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.top-header__left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--sportex-text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.menu-toggle:hover {
  background: rgba(14, 165, 233, 0.1);
  color: var(--sportex-blue-light);
}

.top-header__title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  color: var(--sportex-text);
}

.top-header__right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-item {
  position: relative;
}

/* Language Button */
.btn-language-header {
  background: none;
  border: 1px solid var(--sportex-border);
  color: var(--sportex-text);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-language-header:hover {
  background: rgba(14, 165, 233, 0.1);
  border-color: var(--sportex-blue);
  color: var(--sportex-blue-light);
  text-decoration: none;
}

.btn-language-header:active {
  background: rgba(14, 165, 233, 0.15);
  transform: scale(0.98);
}

/* Icon Buttons (Notification & User) */
.header-btn-icon {
  background: none;
  border: none;
  color: var(--sportex-text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.625rem;
  border-radius: 10px;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
}

.header-btn-icon svg,
.header-btn-icon .solar-icon {
  flex-shrink: 0;
}

.header-btn-icon .solar-icon {
  width: 24px;
  height: 24px;
  font-size: 24px;
}

.header-btn-icon.user-btn .solar-icon {
  width: 28px;
  height: 28px;
  font-size: 28px;
}

.header-btn-icon:hover {
  background: rgba(14, 165, 233, 0.15);
  color: var(--sportex-blue-light);
}

.header-btn-icon:active {
  background: rgba(14, 165, 233, 0.25);
  transform: scale(0.95);
}

.header-btn-icon.user-btn {
  font-size: 1.5rem;
}

.notification-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: #EF4444;
  color: white;
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.125rem 0.375rem;
  border-radius: 999px;
  min-width: 18px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  border: 2px solid var(--sportex-surface);
}

[dir="rtl"] .notification-badge {
  right: auto;
  left: 6px;
}

/* Dropdown Menus */
.dropdown-menu {
  background: var(--sportex-surface-light);
  border: 1px solid var(--sportex-border);
  border-radius: 12px;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  min-width: 200px;
  list-style: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  display: block;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 1100;
}

[dir="rtl"] .dropdown-menu {
  right: auto;
  left: 0;
}

.header-item.dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-item {
  color: var(--sportex-text);
  padding: 0.875rem 1.25rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  font-size: 0.9375rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(51, 65, 85, 0.5);
  position: relative;
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background: rgba(14, 165, 233, 0.1);
  color: var(--sportex-blue-light);
}

.dropdown-item:hover i,
.dropdown-item:hover svg {
  color: var(--sportex-blue-light);
  transform: scale(1.1);
}

.dropdown-item:active,
.dropdown-item:focus {
  background: rgba(14, 165, 233, 0.15);
  color: var(--sportex-blue-light);
}

.dropdown-item i,
.dropdown-item svg,
.dropdown-item .solar-icon {
  font-size: 1.125rem;
  width: 20px;
  height: 20px;
  text-align: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
  color: var(--sportex-text-muted);
}

.dropdown-item span {
  flex: 1;
}

.dropdown-item--danger:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #FCA5A5;
}

.dropdown-item--danger:hover i,
.dropdown-item--danger:hover svg {
  color: #FCA5A5;
}

.dropdown-header {
  color: var(--sportex-text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.75rem 1.25rem 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--sportex-border);
  margin-bottom: 0;
}

.dropdown-divider {
  border-color: var(--sportex-border);
  margin: 0;
  opacity: 0.5;
}

.notification-dropdown {
  min-width: 320px;
  max-width: 380px;
}

.notification-dropdown .dropdown-item {
  white-space: normal;
  line-height: 1.5;
  padding: 1rem 1.25rem;
}

.notification-dropdown .dropdown-item span {
  display: block;
  font-size: 0.875rem;
}

.dropdown-toggle-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  color: var(--sportex-text-muted);
  transition: transform 0.2s ease, color 0.2s ease;
  pointer-events: none;
}

/* Arrow on the right in English (LTR) */
[dir="ltr"] .dropdown-toggle-icon {
  right: 4px;
}

/* Arrow on the left in Arabic (RTL) */
[dir="rtl"] .dropdown-toggle-icon {
  left: 4px;
}

.header-item.dropdown.open .dropdown-toggle-icon {
  transform: translateY(-50%) rotate(180deg);
  color: var(--sportex-blue-light);
}

/* Page Content */
.page-content {
  flex: 1;
  padding: 2rem;
  background: var(--sportex-bg-dark);
}

/* Mobile Menu Backdrop */
.menu-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999;
  backdrop-filter: blur(2px);
}

.menu-backdrop.active {
  display: block;
}

/* Responsive */
@media (max-width: 992px) {
  .side-menu {
    transform: translateX(-100%);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
  }

  [dir="rtl"] .side-menu {
    transform: translateX(100%);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.5);
  }

  .side-menu.active {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }

  [dir="rtl"] .main-content {
    margin-right: 0;
  }

  .menu-toggle {
    display: flex;
  }

  .top-header {
    padding: 0 1rem;
  }

  .top-header__right {
    gap: 0.5rem;
  }

  .page-content {
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .top-header__title {
    font-size: 1.25rem;
  }

  .btn-language-header span {
    display: none;
  }

  .btn-language-header {
    padding: 0.5rem;
  }
}

@media (max-width: 576px) {
  .top-header__title {
    font-size: 1.125rem;
    display: none;
    /* Hide title on very small screens to save space */
  }

  .top-header__left {
    gap: 0.5rem;
  }

  .top-header__right {
    gap: 0.25rem;
  }

  .btn-language-header {
    font-size: 0.8125rem;
    padding: 0.4rem;
  }

  .header-btn-icon {
    width: 38px;
    height: 38px;
    font-size: 1.125rem;
  }

  .header-btn-icon.user-btn {
    font-size: 1.375rem;
  }

  .page-content {
    padding: 1rem;
  }

  .notification-dropdown {
    min-width: 280px;
    right: -60px;
    /* Adjust position for small screens */
  }

  [dir="rtl"] .notification-dropdown {
    right: auto;
    left: -60px;
  }
}

/* Profile Page */
.profile-page {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.profile-header {
  background: var(--sportex-surface);
  border: 1px solid var(--sportex-border);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 3px solid var(--sportex-border);
  background: var(--sportex-surface-light);
}

.profile-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-info {
  flex: 1;
}

.profile-info h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
}

.profile-info p {
  color: var(--sportex-text-muted);
  margin: 0;
  font-weight: 500;
}

.profile-subtext {
  display: inline-block;
  margin-top: 0.25rem;
  color: var(--sportex-text-muted);
  font-size: 0.875rem;
}

.btn-edit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;

  background: rgba(14, 165, 233, 0.15);
  color: var(--sportex-blue-light);
  border: 1px solid var(--sportex-blue);
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-edit svg {
  flex-shrink: 0;
}

.btn-edit:hover {
  background: rgba(14, 165, 233, 0.25);
  transform: translateY(-2px);
}

.profile-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-section {
  background: var(--sportex-surface);
  border: 1px solid var(--sportex-border);
  border-radius: 16px;
  padding: 1.5rem;
}

.section-header {
  margin-bottom: 1.5rem;
}

.section-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.section-header p {
  margin: 0.25rem 0 0;
  color: var(--sportex-text-muted);
  font-size: 0.95rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.info-item label {
  display: block;
  color: var(--sportex-text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
  letter-spacing: 0.02em;
}

.info-item p {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
}

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

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

.media-card {
  background: var(--sportex-surface-light);
  border: 1px dashed var(--sportex-border);
  border-radius: 14px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.media-card h4 {
  margin: 0;
  font-size: 1rem;
}

.media-preview {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--sportex-border);
  background: var(--sportex-bg-dark);
}

.media-preview img {
  width: 100%;
  height: 130px;
  object-fit: contain;
  display: block;
}

.uploaded-video {
  width: 100%;
  height: 220px;
  object-fit: contain;
  display: block;
  background: #000;
}

.empty-media-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  min-height: 220px;
  gap: 1rem;
}

.empty-state-icon {
  width: 120px;
  height: 120px;
  opacity: 0.6;
  filter: drop-shadow(0 4px 12px rgba(14, 165, 233, 0.2));
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 0.5rem;
}

.photo-thumb {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--sportex-border);
  height: 80px;
}

.photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-video-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.media-video-list a {
  color: var(--sportex-blue-light);
  text-decoration: none;
  word-break: break-all;
}

.media-video-list a:hover {
  text-decoration: underline;
}

.experience-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.experience-item {
  background: var(--sportex-surface-light);
  border: 1px solid var(--sportex-border);
  border-radius: 12px;
  padding: 1rem;
}

.experience-years {
  font-size: 0.9rem;
  color: var(--sportex-text-muted);
}

.experience-item h4 {
  margin: 0.35rem 0 0;
}

.empty-placeholder {
  margin: 0;
  color: var(--sportex-text-muted);
  font-style: italic;
}

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

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


/* Image Modal */
.image-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(10px);
}

.image-modal.active {
  opacity: 1;
  visibility: visible;
}

.image-modal .modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.image-modal #modalImage {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  animation: modalImageZoom 0.3s ease;
}

@keyframes modalImageZoom {
  from {
    transform: scale(0.9);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-close-btn {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
  z-index: 10001;
}

.modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.8);
  border-color: #EF4444;
  transform: rotate(90deg) scale(1.1);
}

.modal-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
  z-index: 10001;
}

.modal-nav-btn:hover {
  background: rgba(14, 165, 233, 0.8);
  border-color: var(--sportex-blue);
  transform: translateY(-50%) scale(1.1);
}

.modal-prev-btn {
  left: 2rem;
}

.modal-next-btn {
  right: 2rem;
}

.modal-counter {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.photo-thumb {
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.photo-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.3), rgba(124, 179, 66, 0.3));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.photo-thumb:hover::after {
  opacity: 1;
}

.photo-thumb:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
}

@media (max-width: 768px) {
  .modal-close-btn {
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
  }

  .modal-nav-btn {
    width: 48px;
    height: 48px;
  }

  .modal-prev-btn {
    left: 1rem;
  }

  .modal-next-btn {
    right: 1rem;
  }

  .image-modal #modalImage {
    max-height: 80vh;
  }
}


/* Video Gallery */
.video-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

.video-thumb {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--sportex-border);
  cursor: pointer;
  transition: all 0.2s ease;
  aspect-ratio: 16 / 9;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
}

.video-play-overlay svg {
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
  transition: transform 0.2s ease;
}

.video-thumb:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
  border-color: var(--sportex-blue);
}

.video-thumb:hover .video-play-overlay {
  background: rgba(14, 165, 233, 0.6);
}

.video-thumb:hover .video-play-overlay svg {
  transform: scale(1.2);
}

/* Video Modal */
.video-modal-content {
  max-width: 95vw;
  max-height: 95vh;
  width: 1200px;
}

.video-player-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.video-player-container iframe {
  width: 100%;
  height: 100%;
  display: block;
}

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

  .video-modal-content {
    width: 90vw;
  }
}

/* ===
=====================================
   Dashboard Footer
   ======================================== */
.dashboard-footer {
  background: var(--sportex-surface);
  border-top: 1px solid var(--sportex-border);
  padding: 1rem 2rem;
  margin-top: auto;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright {
  color: var(--sportex-text-muted);
  font-size: 0.875rem;
  font-weight: 500;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--sportex-text-muted);
  background: transparent;
  border: 1px solid var(--sportex-border);
  transition: all 0.2s ease;
  text-decoration: none;
}

.footer-social__link:hover {
  background: rgba(14, 165, 233, 0.15);
  border-color: var(--sportex-blue);
  color: var(--sportex-blue-light);
  transform: translateY(-2px);
}

.footer-social__link:active {
  transform: translateY(0);
}

.footer-social__link svg {
  width: 18px;
  height: 18px;
}

/* Footer Responsive */
@media (max-width: 768px) {
  .dashboard-footer {
    padding: 1rem;
  }

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

  .footer-copyright {
    order: 2;
  }

  .footer-social {
    order: 1;
  }
}

@media (max-width: 576px) {
  .footer-social__link {
    width: 32px;
    height: 32px;
  }

  .footer-social__link svg {
    width: 16px;
    height: 16px;
  }

  .footer-copyright {
    font-size: 0.8125rem;
  }
}


/* Help Button in Header */
.btn-help-header {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid var(--sportex-green);
  border-radius: 8px;
  color: var(--sportex-green-light);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-help-header svg {
  flex-shrink: 0;
}

.btn-help-header:hover {
  background: rgba(124, 179, 66, 0.15);
  border-color: var(--sportex-green-light);
  color: var(--sportex-green-light);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-help-header:active {
  transform: translateY(0);
  background: rgba(124, 179, 66, 0.2);
}

@media (max-width: 768px) {
  .btn-help-header span {
    display: none;
  }

  .btn-help-header {
    padding: 0.5rem;
    border-radius: 10px;
  }
}


/* Pagination styles are loaded via _DashboardLayout.cshtml */
