/* =============================================
   CLUB DEPORTIVO BRISAS DE LOYOLA
   ADMIN PANEL - COMPREHENSIVE STYLES
   ============================================= */

/* ===== VARIABLES (inherited from style.css) ===== */
/* --black: #070707 */
/* --white: #FFFFFF */
/* --orange: #FF6B00 */
/* --orange-dark: #C95A00 */
/* --font-display: 'Barlow Condensed', sans-serif */
/* --font-body: 'Oswald', sans-serif */

/* ===== RESET (supplementary) ===== */
.admin-layout *,
.admin-layout *::before,
.admin-layout *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =============================================
   1. ADMIN LAYOUT
   ============================================= */

/* --- Main Layout Container --- */
.admin-layout {
  display: flex;
  min-height: 100vh;
  background: var(--black);
  position: relative;
  z-index: 1;
}

/* --- Sidebar --- */
.admin-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 100vh;
  background: #0a0a0a;
  border-right: 2px solid var(--orange);
  z-index: 100;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-sidebar::-webkit-scrollbar {
  width: 4px;
}

.admin-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.admin-sidebar::-webkit-scrollbar-thumb {
  background: var(--orange);
  border-radius: 4px;
}

/* --- Logo Section --- */
.admin-sidebar .logo-section {
  padding: 24px 22px 20px;
  border-bottom: 1px solid rgba(255, 107, 0, 0.15);
}

.admin-sidebar .logo-section .logo-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-sidebar .logo-section .logo-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--orange);
}

.admin-sidebar .logo-section .club-name {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  line-height: 1.2;
}

.admin-sidebar .logo-section .team-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 1px;
  line-height: 1.1;
}

.admin-sidebar .logo-section .logo-divider {
  height: 3px;
  background: linear-gradient(90deg, var(--orange), transparent);
  margin-top: 16px;
  transform: rotate(-1deg);
}

/* --- Sidebar Navigation --- */
.admin-sidebar nav {
  flex: 1;
  padding: 12px 0;
}

.admin-sidebar nav a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
  text-decoration: none;
}

.admin-sidebar nav a:hover {
  color: var(--white);
  background: rgba(255, 107, 0, 0.08);
  border-left-color: rgba(255, 107, 0, 0.4);
}

.admin-sidebar nav a.active {
  color: var(--white);
  background: rgba(255, 107, 0, 0.12);
  border-left-color: var(--orange);
}

.admin-sidebar nav a .nav-icon {
  width: 34px;
  height: 34px;
  border: 1.5px solid rgba(255, 107, 0, 0.3);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--orange);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.admin-sidebar nav a:hover .nav-icon,
.admin-sidebar nav a.active .nav-icon {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

.admin-sidebar nav a .nav-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-sidebar nav a .nav-badge {
  margin-left: auto;
  background: var(--orange);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  min-width: 22px;
  text-align: center;
}

/* --- Sidebar Footer --- */
.admin-sidebar .sidebar-footer {
  padding: 16px 22px;
  border-top: 1px solid rgba(255, 107, 0, 0.15);
}

.admin-sidebar .sidebar-footer .user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-sidebar .sidebar-footer .user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  color: var(--white);
  flex-shrink: 0;
}

.admin-sidebar .sidebar-footer .user-name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.5px;
}

.admin-sidebar .sidebar-footer .user-role {
  font-size: 11px;
  color: var(--orange);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* --- Sidebar Mobile Toggle Button --- */
.admin-sidebar .sidebar-close-btn {
  display: none;
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: rgba(255, 107, 0, 0.15);
  border: 1px solid var(--orange);
  border-radius: 6px;
  color: var(--white);
  font-size: 14px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
  z-index: 10;
}

.admin-sidebar .sidebar-close-btn:hover {
  background: var(--orange);
}

/* --- Main Content Area --- */
.admin-main {
  flex: 1;
  margin-left: 260px;
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
}

/* --- Admin Top Header Bar --- */
.admin-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: rgba(7, 7, 7, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 107, 0, 0.12);
  min-height: 64px;
}

.admin-header .header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-header .mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  background: rgba(255, 107, 0, 0.1);
  border: 1px solid rgba(255, 107, 0, 0.3);
  border-radius: 8px;
  color: var(--white);
  font-size: 16px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.admin-header .mobile-menu-btn:hover {
  background: var(--orange);
}

.admin-header .header-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.admin-header .header-breadcrumb {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 2px;
}

.admin-header .header-breadcrumb a {
  color: var(--orange);
  text-decoration: none;
  transition: opacity 0.3s;
}

.admin-header .header-breadcrumb a:hover {
  opacity: 0.7;
}

.admin-header .header-breadcrumb span {
  margin: 0 6px;
  opacity: 0.5;
}

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

.admin-header .header-action-btn {
  width: 38px;
  height: 38px;
  background: rgba(255, 107, 0, 0.08);
  border: 1px solid rgba(255, 107, 0, 0.2);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  position: relative;
}

.admin-header .header-action-btn:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

.admin-header .header-action-btn .notif-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: #e74c3c;
  border-radius: 50%;
  border: 2px solid #0a0a0a;
}

/* --- Admin Content (Scrollable) --- */
.admin-content {
  flex: 1;
  padding: 28px 32px 40px;
  position: relative;
}

.admin-content > .bg-textures {
  opacity: 0.3;
}

/* =============================================
   2. CARDS / DASHBOARD
   ============================================= */

/* --- Stats Grid --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

/* --- Stat Card --- */
.stat-card {
  background: rgba(14, 14, 14, 0.85);
  border: 1px solid rgba(255, 107, 0, 0.15);
  border-left: 4px solid var(--orange);
  border-radius: 12px;
  padding: 22px 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: transform 0.3s ease, border-color 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(255, 107, 0, 0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--orange);
  box-shadow: 0 8px 28px rgba(255, 107, 0, 0.15);
}

.stat-card .stat-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 107, 0, 0.1);
  border: 1px solid rgba(255, 107, 0, 0.25);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--orange);
  flex-shrink: 0;
}

.stat-card .stat-info {
  flex: 1;
}

.stat-card .stat-number {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  letter-spacing: 1px;
}

.stat-card .stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 4px;
}

.stat-card .stat-change {
  font-size: 11px;
  font-weight: 700;
  margin-top: 6px;
}

.stat-card .stat-change.positive {
  color: #2ecc71;
}

.stat-card .stat-change.negative {
  color: #e74c3c;
}

/* --- Dashboard Card --- */
.dash-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(14, 14, 14, 0.85);
  border: 1.5px solid rgba(255, 107, 0, 0.15);
  border-left: 4px solid var(--orange);
  border-radius: 12px;
  padding: 28px 20px;
  text-decoration: none;
  color: var(--white);
  transition: all 0.3s ease;
  text-align: center;
}

.dash-card:hover {
  border-color: var(--orange);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(255, 107, 0, 0.15);
}

.dash-card i {
  font-size: 28px;
  color: var(--orange);
  margin-bottom: 12px;
}

.dash-card span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 2px;
}

/* --- Activity Card --- */
.activity-card {
  background: rgba(14, 14, 14, 0.85);
  border: 1px solid rgba(255, 107, 0, 0.15);
  border-radius: 12px;
  overflow: hidden;
}

.activity-card .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255, 107, 0, 0.1);
}

.activity-card .card-header h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.activity-card .card-header .view-all {
  font-size: 12px;
  color: var(--orange);
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.3s;
}

.activity-card .card-header .view-all:hover {
  opacity: 0.7;
}

.activity-list {
  list-style: none;
}

.activity-list .activity-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.3s;
}

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

.activity-list .activity-item:hover {
  background: rgba(255, 107, 0, 0.04);
}

.activity-list .activity-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.activity-list .activity-dot.orange {
  background: var(--orange);
}

.activity-list .activity-dot.green {
  background: #2ecc71;
}

.activity-list .activity-dot.red {
  background: #e74c3c;
}

.activity-list .activity-dot.blue {
  background: #3498db;
}

.activity-list .activity-text {
  flex: 1;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
}

.activity-list .activity-text strong {
  color: var(--white);
  font-weight: 600;
}

.activity-list .activity-time {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  white-space: nowrap;
}

/* --- Dashboard Grid Layout --- */
.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

/* --- Quick Action Cards --- */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.quick-action-card {
  background: rgba(14, 14, 14, 0.85);
  border: 1px solid rgba(255, 107, 0, 0.15);
  border-radius: 12px;
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  text-decoration: none;
  color: var(--white);
  transition: all 0.3s ease;
}

.quick-action-card:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 107, 0, 0.12);
}

.quick-action-card .qa-icon {
  width: 50px;
  height: 50px;
  background: var(--orange);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--white);
  flex-shrink: 0;
}

.quick-action-card .qa-label {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.quick-action-card .qa-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 2px;
}

/* =============================================
   3. TABLES
   ============================================= */

/* --- Table Container --- */
.table-container {
  background: rgba(14, 14, 14, 0.85);
  border: 1px solid rgba(255, 107, 0, 0.15);
  border-radius: 12px;
  overflow: hidden;
}

.table-container .table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255, 107, 0, 0.1);
  flex-wrap: wrap;
  gap: 12px;
}

.table-container .table-header h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-scroll::-webkit-scrollbar {
  height: 6px;
}

.table-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
}

.table-scroll::-webkit-scrollbar-thumb {
  background: var(--orange);
  border-radius: 3px;
}

/* --- Data Table --- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.data-table th {
  background: rgba(255, 107, 0, 0.12);
  color: var(--orange);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-align: left;
  padding: 14px 18px;
  border-bottom: 2px solid rgba(255, 107, 0, 0.2);
  white-space: nowrap;
  user-select: none;
  cursor: pointer;
  transition: background 0.3s;
}

.data-table th:hover {
  background: rgba(255, 107, 0, 0.18);
}

.data-table th .sort-icon {
  margin-left: 6px;
  font-size: 10px;
  opacity: 0.5;
}

.data-table th.sorted .sort-icon {
  opacity: 1;
  color: var(--orange);
}

.data-table td {
  padding: 14px 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.2s;
  vertical-align: middle;
}

.data-table tbody tr {
  transition: background 0.2s;
}

.data-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.015);
}

.data-table tbody tr:hover {
  background: rgba(255, 107, 0, 0.06);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table td img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 107, 0, 0.3);
}

.data-table td .cell-name {
  font-weight: 600;
  color: var(--white);
}

.data-table td .cell-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 2px;
}

/* --- Table Actions --- */
.table-actions {
  display: flex;
  gap: 6px;
}

.table-actions button,
.table-actions a {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  text-decoration: none;
}

.table-actions button:hover,
.table-actions a:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

.table-actions button.btn-delete:hover,
.table-actions a.btn-delete:hover {
  background: #e74c3c;
  border-color: #e74c3c;
}

/* --- Table Footer / Pagination Area --- */
.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

/* =============================================
   4. FORMS
   ============================================= */

/* --- Form Container --- */
.form-container {
  max-width: 700px;
  margin: 0 auto;
  background: rgba(14, 14, 14, 0.85);
  border: 1px solid rgba(255, 107, 0, 0.15);
  border-radius: 14px;
  padding: 32px;
  position: relative;
}

.form-container .form-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.form-container .form-subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 28px;
}

/* --- Form Group --- */
.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  color: var(--orange);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.form-group label .required {
  color: #e74c3c;
  margin-left: 2px;
}

.form-group .form-hint {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 6px;
}

.form-group.error label {
  color: #e74c3c;
}

.form-group.error .form-input,
.form-group.error .form-select,
.form-group.error .form-textarea {
  border-color: #e74c3c;
}

.form-group .error-message {
  color: #e74c3c;
  font-size: 11px;
  margin-top: 6px;
  display: none;
}

.form-group.error .error-message {
  display: block;
}

/* --- Form Input --- */
.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 107, 0, 0.25);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.form-input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.form-input:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* --- Form Input with Icon --- */
.form-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.form-input-wrapper .input-icon {
  position: absolute;
  left: 16px;
  color: var(--orange);
  font-size: 14px;
  pointer-events: none;
  z-index: 1;
}

.form-input-wrapper .form-input {
  padding-left: 42px;
}

/* --- Form Select --- */
.form-select {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 107, 0, 0.25);
  border-radius: 10px;
  padding: 13px 40px 13px 16px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 0.3s, box-shadow 0.3s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23FF6B00' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.form-select option {
  background: #111;
  color: var(--white);
}

.form-select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.12);
}

/* --- Form Textarea --- */
.form-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 107, 0, 0.25);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  min-height: 100px;
  resize: vertical;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.form-textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.12);
}

/* --- Form Row (side-by-side) --- */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
}

/* --- Form Actions --- */
.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(255, 107, 0, 0.35);
}

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

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 107, 0, 0.4);
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-secondary:hover {
  border-color: var(--orange);
  background: rgba(255, 107, 0, 0.08);
}

.btn-secondary:active {
  background: rgba(255, 107, 0, 0.15);
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  background: #e74c3c;
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-danger:hover {
  background: #c0392b;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(231, 76, 60, 0.35);
}

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

.btn-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid rgba(255, 107, 0, 0.25);
  background: rgba(255, 107, 0, 0.08);
  color: var(--orange);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.btn-icon:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

.btn-icon.btn-icon-danger {
  border-color: rgba(231, 76, 60, 0.25);
  background: rgba(231, 76, 60, 0.08);
  color: #e74c3c;
}

.btn-icon.btn-icon-danger:hover {
  background: #e74c3c;
  border-color: #e74c3c;
  color: var(--white);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 12px;
  letter-spacing: 1.5px;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 16px;
}

/* --- File Upload --- */
.file-upload-area {
  border: 2px dashed rgba(255, 107, 0, 0.3);
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  background: rgba(255, 255, 255, 0.02);
}

.file-upload-area:hover {
  border-color: var(--orange);
  background: rgba(255, 107, 0, 0.04);
}

.file-upload-area.dragover {
  border-color: var(--orange);
  background: rgba(255, 107, 0, 0.08);
}

.file-upload-area .upload-icon {
  font-size: 36px;
  color: var(--orange);
  margin-bottom: 12px;
  opacity: 0.7;
}

.file-upload-area .upload-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 6px;
}

.file-upload-area .upload-text strong {
  color: var(--orange);
}

.file-upload-area .upload-hint {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
}

.file-upload-area input[type="file"] {
  display: none;
}

/* --- File Preview --- */
.file-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 107, 0, 0.15);
  border-radius: 8px;
  margin-top: 12px;
}

.file-preview .file-thumb {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid rgba(255, 107, 0, 0.2);
}

.file-preview .file-info {
  flex: 1;
}

.file-preview .file-name {
  font-size: 13px;
  color: var(--white);
  font-weight: 500;
}

.file-preview .file-size {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
}

.file-preview .file-remove {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  background: rgba(231, 76, 60, 0.15);
  color: #e74c3c;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.file-preview .file-remove:hover {
  background: #e74c3c;
  color: var(--white);
}

/* --- Toggle Switch --- */
.toggle-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.toggle-switch input {
  display: none;
}

.toggle-switch .toggle-track {
  width: 44px;
  height: 24px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  position: relative;
  transition: background 0.3s;
}

.toggle-switch .toggle-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  transition: all 0.3s;
}

.toggle-switch input:checked + .toggle-track {
  background: var(--orange);
}

.toggle-switch input:checked + .toggle-track::after {
  left: 23px;
  background: var(--white);
}

.toggle-switch .toggle-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

/* --- Checkbox (admin style) --- */
.admin-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.admin-checkbox input[type="checkbox"] {
  display: none;
}

.admin-checkbox .check-mark {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 107, 0, 0.4);
  border-radius: 5px;
  position: relative;
  flex-shrink: 0;
  transition: all 0.2s;
}

.admin-checkbox input:checked + .check-mark {
  background: var(--orange);
  border-color: var(--orange);
}

.admin-checkbox input:checked + .check-mark::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 6px;
  height: 10px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.admin-checkbox .check-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

/* =============================================
   5. MODALS
   ============================================= */

/* --- Modal Overlay --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

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

/* --- Modal --- */
.modal {
  background: #0e0e0e;
  border: 2px solid var(--orange);
  border-radius: 14px;
  max-width: 520px;
  width: 100%;
  max-height: 85vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transform: scale(0.92) translateY(16px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}

.modal.modal-lg {
  max-width: 720px;
}

.modal.modal-sm {
  max-width: 400px;
}

/* --- Modal Header --- */
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 107, 0, 0.12);
}

.modal-header h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.modal-close:hover {
  background: #e74c3c;
  border-color: #e74c3c;
  color: var(--white);
}

/* --- Modal Body --- */
.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.modal-body::-webkit-scrollbar {
  width: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: var(--orange);
  border-radius: 2px;
}

.modal-body p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

/* --- Modal Footer --- */
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* =============================================
   6. FLYER TEMPLATES (1920x1080)
   ============================================= */

/* --- Flyer Container --- */
.flyer {
  width: 1920px;
  height: 1080px;
  position: relative;
  overflow: hidden;
  background: var(--black);
  font-family: var(--font-body);
  color: var(--white);
  transform-origin: top left;
}

.flyer-preview-wrapper {
  position: relative;
  overflow: auto;
  margin-bottom: 24px;
}

.flyer-scale-container {
  transform-origin: top left;
}

/* --- Flyer Background Elements --- */
.flyer .flyer-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.flyer .flyer-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 107, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 107, 0, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

.flyer .flyer-bg-glow-tr {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 800px;
  height: 800px;
  background: radial-gradient(ellipse, rgba(255, 107, 0, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.flyer .flyer-bg-glow-bl {
  position: absolute;
  bottom: -150px;
  left: -100px;
  width: 700px;
  height: 700px;
  background: radial-gradient(ellipse, rgba(255, 107, 0, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.flyer .flyer-bg-squares {
  position: absolute;
  top: 0;
  left: 0;
  width: 400px;
  height: 400px;
  background-image:
    linear-gradient(rgba(255, 107, 0, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 107, 0, 0.12) 1px, transparent 1px);
  background-size: 20px 20px;
  mask-image: linear-gradient(135deg, rgba(0,0,0,0.5) 0%, transparent 80%);
  -webkit-mask-image: linear-gradient(135deg, rgba(0,0,0,0.5) 0%, transparent 80%);
}

.flyer .flyer-bg-lines-br {
  position: absolute;
  bottom: 60px;
  right: 60px;
}

.flyer .flyer-bg-lines-br span {
  display: block;
  height: 3px;
  background: var(--orange);
  border-radius: 2px;
}

.flyer .flyer-bg-lines-br span:nth-child(1) {
  width: 300px;
  transform: rotate(-30deg);
  margin-bottom: 14px;
  opacity: 0.3;
}

.flyer .flyer-bg-lines-br span:nth-child(2) {
  width: 220px;
  transform: rotate(-30deg);
  margin-left: 25px;
  opacity: 0.2;
}

.flyer .flyer-bg-rhombus {
  position: absolute;
  bottom: 100px;
  left: 80px;
  width: 120px;
  height: 120px;
  border: 3px solid var(--orange);
  transform: rotate(45deg) skewX(-8deg);
  opacity: 0.15;
}

/* --- Flyer Header --- */
.flyer-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 60px;
  z-index: 2;
}

.flyer-header .flyer-logo-area {
  display: flex;
  align-items: center;
  gap: 20px;
}

.flyer-header .flyer-logo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--orange);
}

.flyer-header .flyer-club-text {
  display: flex;
  flex-direction: column;
}

.flyer-header .flyer-club-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 4px;
  text-transform: uppercase;
}

.flyer-header .flyer-team-name {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 2px;
  line-height: 1;
}

.flyer-header .flyer-season {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 3px;
}

/* --- Flyer Photo Area --- */
.flyer-photo {
  position: absolute;
  z-index: 2;
}

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

.flyer-photo.border-orange {
  border: 4px solid var(--orange);
  border-radius: 16px;
}

.flyer-photo.border-orange::after {
  content: '';
  position: absolute;
  inset: -12px;
  border: 2px solid rgba(255, 107, 0, 0.2);
  border-radius: 22px;
}

/* Player flyer photo positioning */
.flyer-player .flyer-photo {
  bottom: 0;
  right: 60px;
  width: 700px;
  height: 820px;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
}

.flyer-player .flyer-photo img {
  border-radius: 16px 16px 0 0;
}

.flyer-player .flyer-photo.border-orange {
  border-radius: 16px 16px 0 0;
}

.flyer-player .flyer-photo.border-orange::after {
  border-radius: 22px 22px 0 0;
  inset: -12px -12px 0 -12px;
}

/* Directivo flyer photo positioning */
.flyer-directivo .flyer-photo {
  top: 180px;
  left: 60px;
  width: 480px;
  height: 600px;
  border-radius: 14px;
  overflow: hidden;
}

/* --- Flyer Player Info --- */
.flyer-info {
  position: absolute;
  z-index: 3;
}

.flyer-player .flyer-info {
  top: 160px;
  left: 60px;
  width: 600px;
}

.flyer-info .flyer-player-number {
  font-family: var(--font-display);
  font-size: 180px;
  font-weight: 900;
  color: var(--orange);
  line-height: 0.85;
  letter-spacing: -5px;
  opacity: 0.2;
  position: absolute;
  top: -40px;
  left: -10px;
}

.flyer-info .flyer-player-name {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 3px;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 8px;
  text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.5);
}

.flyer-info .flyer-player-position {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 6px;
  text-transform: uppercase;
}

.flyer-info .flyer-player-team {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 3px;
  margin-top: 8px;
}

/* --- Flyer Directivo Info --- */
.flyer-directivo .flyer-info {
  top: 180px;
  right: 60px;
  width: 560px;
}

.flyer-directivo .flyer-info .flyer-directivo-name {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 6px;
}

.flyer-directivo .flyer-info .flyer-directivo-role {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.flyer-directivo .flyer-info .flyer-directivo-quote {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  font-style: italic;
  border-left: 3px solid var(--orange);
  padding-left: 20px;
}

/* --- Flyer Stats Grid --- */
.flyer-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.flyer-player .flyer-stats-grid {
  position: absolute;
  bottom: 80px;
  left: 60px;
  width: 600px;
  z-index: 3;
}

.flyer-stat-card {
  background: rgba(14, 14, 14, 0.7);
  border: 1px solid rgba(255, 107, 0, 0.25);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  backdrop-filter: blur(6px);
}

.flyer-stat-card .stat-value {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}

.flyer-stat-card .stat-name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 6px;
}

/* --- Flyer Footer --- */
.flyer-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  padding: 28px 60px;
  background: linear-gradient(transparent, rgba(7, 7, 7, 0.9));
}

.flyer-footer .flyer-verse {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 3px;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.6;
}

.flyer-footer .flyer-verse-ref {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  margin-top: 4px;
}

.flyer-footer .flyer-barcode {
  position: absolute;
  bottom: 30px;
  right: 60px;
  display: flex;
  gap: 2px;
  align-items: flex-end;
}

.flyer-footer .flyer-barcode span {
  width: 2px;
  background: rgba(255, 255, 255, 0.2);
}

/* --- Flyer Download Controls --- */
.flyer-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

/* =============================================
   7. GALLERY
   ============================================= */

/* --- Gallery Filters --- */
.gallery-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.gallery-filters .filter-btn {
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 107, 0, 0.2);
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
}

.gallery-filters .filter-btn:hover {
  border-color: var(--orange);
  color: var(--white);
}

.gallery-filters .filter-btn.active {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

/* --- Gallery Grid --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* --- Gallery Item --- */
.gallery-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 107, 0, 0.1);
  aspect-ratio: 1;
  cursor: pointer;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.gallery-item:hover {
  transform: scale(1.02);
  border-color: var(--orange);
  box-shadow: 0 8px 30px rgba(255, 107, 0, 0.2);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item .gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(7, 7, 7, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item .gallery-overlay .gallery-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
}

.gallery-item .gallery-overlay .gallery-date {
  font-size: 11px;
  color: var(--orange);
  margin-top: 2px;
}

.gallery-item .gallery-overlay .gallery-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 6px;
}

.gallery-item .gallery-overlay .gallery-actions button {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.5);
  color: var(--white);
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
  backdrop-filter: blur(4px);
}

.gallery-item .gallery-overlay .gallery-actions button:hover {
  background: var(--orange);
}

/* --- Gallery Large Item --- */
.gallery-item.gallery-wide {
  grid-column: span 2;
  aspect-ratio: 2/1;
}

.gallery-item.gallery-tall {
  grid-row: span 2;
  aspect-ratio: auto;
}

/* --- Gallery Lightbox --- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  backdrop-filter: blur(8px);
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.5);
  color: var(--white);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.lightbox-close:hover {
  background: var(--orange);
}

/* =============================================
   8. PLAYER CARDS
   ============================================= */

/* --- Player Card Grid --- */
.player-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* --- Player Card --- */
.player-card {
  background: rgba(14, 14, 14, 0.85);
  border: 1px solid rgba(255, 107, 0, 0.15);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  position: relative;
}

.player-card:hover {
  transform: translateY(-4px);
  border-color: var(--orange);
  box-shadow: 0 10px 32px rgba(255, 107, 0, 0.18);
}

/* --- Player Card Photo --- */
.player-card .photo {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
}

.player-card .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.player-card:hover .photo img {
  transform: scale(1.05);
}

.player-card .photo::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(transparent, rgba(7, 7, 7, 0.9));
}

/* --- Player Card Number Overlay --- */
.player-card .number {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 900;
  color: var(--orange);
  line-height: 1;
  opacity: 0.25;
  z-index: 2;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.player-card:hover .number {
  opacity: 0.5;
}

/* --- Player Card Position Badge --- */
.player-card .position-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  background: var(--orange);
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  z-index: 2;
}

/* --- Player Card Info --- */
.player-card .info {
  padding: 18px 16px 20px;
  position: relative;
  z-index: 2;
  margin-top: -30px;
}

.player-card .info .player-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1.1;
}

.player-card .info .player-fullname {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 2px;
}

.player-card .info .player-stats {
  display: flex;
  gap: 16px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 107, 0, 0.1);
}

.player-card .info .player-stats .ps-item {
  text-align: center;
  flex: 1;
}

.player-card .info .player-stats .ps-value {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
}

.player-card .info .player-stats .ps-label {
  font-size: 10px;
  color: var(--orange);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
}

/* --- Player Card Actions (admin) --- */
.player-card .card-admin-actions {
  display: flex;
  gap: 8px;
  padding: 0 16px 16px;
}

.player-card .card-admin-actions button {
  flex: 1;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.3s;
}

.player-card .card-admin-actions button:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

.player-card .card-admin-actions button.btn-card-delete:hover {
  background: #e74c3c;
  border-color: #e74c3c;
}

/* =============================================
   9. VIDEOS
   ============================================= */

/* --- Video Grid --- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* --- Video Card --- */
.video-card {
  background: rgba(14, 14, 14, 0.85);
  border: 1px solid rgba(255, 107, 0, 0.15);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.video-card:hover {
  transform: translateY(-3px);
  border-color: var(--orange);
  box-shadow: 0 8px 28px rgba(255, 107, 0, 0.15);
}

/* --- Video Thumbnail --- */
.video-card .video-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  cursor: pointer;
}

.video-card .video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.video-card:hover .video-thumb img {
  transform: scale(1.05);
}

.video-card .video-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  transition: background 0.3s;
}

.video-card:hover .video-thumb::after {
  background: rgba(0, 0, 0, 0.15);
}

/* --- Play Button --- */
.video-card .play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--white);
  z-index: 2;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 20px rgba(255, 107, 0, 0.4);
}

.video-card:hover .play-btn {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 6px 28px rgba(255, 107, 0, 0.5);
}

/* --- Video Duration Badge --- */
.video-card .duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  padding: 3px 8px;
  background: rgba(0, 0, 0, 0.75);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--white);
  z-index: 2;
}

/* --- Video Info --- */
.video-card .video-info {
  padding: 16px;
}

.video-card .video-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.5px;
  line-height: 1.3;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-card .video-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
}

.video-card .video-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.video-card .video-meta .meta-dot {
  width: 3px;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
}

/* --- Video Player (Responsive Embed) --- */
.video-player {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 107, 0, 0.15);
}

.video-player iframe,
.video-player video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* --- Video Card Admin Actions --- */
.video-card .video-admin-actions {
  display: flex;
  gap: 6px;
  padding: 0 16px 14px;
}

/* =============================================
   10. TAGS / BADGES
   ============================================= */

/* --- Badge Base --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 20px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* --- Role Badges --- */
.badge-admin {
  background: rgba(255, 107, 0, 0.15);
  color: var(--orange);
  border: 1px solid rgba(255, 107, 0, 0.3);
}

.badge-user {
  background: rgba(52, 152, 219, 0.15);
  color: #3498db;
  border: 1px solid rgba(52, 152, 219, 0.3);
}

.badge-superadmin {
  background: rgba(231, 76, 60, 0.15);
  color: #e74c3c;
  border: 1px solid rgba(231, 76, 60, 0.3);
}

/* --- Category Badge --- */
.badge-category {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.badge-category.active {
  background: rgba(46, 204, 113, 0.12);
  color: #2ecc71;
  border-color: rgba(46, 204, 113, 0.25);
}

.badge-category.inactive {
  background: rgba(231, 76, 60, 0.12);
  color: #e74c3c;
  border-color: rgba(231, 76, 60, 0.25);
}

/* --- Status Badges --- */
.badge-success {
  background: rgba(46, 204, 113, 0.15);
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.3);
}

.badge-warning {
  background: rgba(241, 196, 15, 0.15);
  color: #f1c40f;
  border: 1px solid rgba(241, 196, 15, 0.3);
}

.badge-danger {
  background: rgba(231, 76, 60, 0.15);
  color: #e74c3c;
  border: 1px solid rgba(231, 76, 60, 0.3);
}

.badge-info {
  background: rgba(52, 152, 219, 0.15);
  color: #3498db;
  border: 1px solid rgba(52, 152, 219, 0.3);
}

/* --- Position Badge --- */
.badge-position {
  background: var(--orange);
  color: var(--white);
  border: 1px solid var(--orange);
}

/* --- Badge Sizes --- */
.badge-lg {
  padding: 6px 16px;
  font-size: 12px;
}

.badge-sm {
  padding: 2px 8px;
  font-size: 10px;
}

/* =============================================
   11. SHARED COMPONENTS
   ============================================= */

/* --- Page Title --- */
.page-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 6px;
  position: relative;
  display: inline-block;
}

.page-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--orange);
  border-radius: 2px;
}

.page-subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 10px;
  margin-bottom: 28px;
}

/* --- Section Header (title + action button) --- */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

/* --- Empty State --- */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.empty-state .empty-icon {
  font-size: 52px;
  color: rgba(255, 107, 0, 0.25);
  margin-bottom: 20px;
}

.empty-state .empty-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.empty-state .empty-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  max-width: 400px;
  line-height: 1.5;
  margin-bottom: 24px;
}

/* --- Search Bar --- */
.search-bar {
  position: relative;
  max-width: 320px;
}

.search-bar .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--orange);
  font-size: 14px;
  pointer-events: none;
}

.search-bar .search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 107, 0, 0.2);
  border-radius: 10px;
  padding: 10px 14px 10px 40px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 13px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.search-bar .search-input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.search-bar .search-input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

/* --- Filter Bar --- */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.filter-bar .filter-item {
  position: relative;
}

.filter-bar .filter-select {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 107, 0, 0.2);
  border-radius: 8px;
  padding: 9px 36px 9px 14px;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-body);
  font-size: 12px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 0.3s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23FF6B00' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.filter-bar .filter-select option {
  background: #111;
  color: var(--white);
}

.filter-bar .filter-select:focus {
  border-color: var(--orange);
}

.filter-bar .filter-divider {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.08);
}

/* --- Pagination --- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 28px;
}

.pagination .page-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255, 107, 0, 0.15);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.pagination .page-btn:hover {
  border-color: var(--orange);
  color: var(--white);
}

.pagination .page-btn.active {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

.pagination .page-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.pagination .page-btn.page-prev,
.pagination .page-btn.page-next {
  width: auto;
  padding: 0 14px;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.pagination .page-ellipsis {
  color: rgba(255, 255, 255, 0.3);
  font-size: 14px;
  width: 24px;
  text-align: center;
}

/* --- Toast Notification --- */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 5000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(14, 14, 14, 0.95);
  border: 1px solid rgba(255, 107, 0, 0.2);
  border-radius: 10px;
  min-width: 300px;
  max-width: 420px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  animation: toastSlideIn 0.4s ease-out;
  border-left: 4px solid var(--orange);
}

.toast.toast-success {
  border-left-color: #2ecc71;
}

.toast.toast-success .toast-icon {
  color: #2ecc71;
}

.toast.toast-error {
  border-left-color: #e74c3c;
}

.toast.toast-error .toast-icon {
  color: #e74c3c;
}

.toast.toast-warning {
  border-left-color: #f1c40f;
}

.toast.toast-warning .toast-icon {
  color: #f1c40f;
}

.toast .toast-icon {
  font-size: 18px;
  color: var(--orange);
  flex-shrink: 0;
}

.toast .toast-content {
  flex: 1;
}

.toast .toast-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
}

.toast .toast-message {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
}

.toast .toast-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
  transition: color 0.3s;
}

.toast .toast-close:hover {
  color: var(--white);
}

.toast.toast-exiting {
  animation: toastSlideOut 0.3s ease-in forwards;
}

/* --- Loading Spinner --- */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 107, 0, 0.15);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loading-spinner.loading-sm {
  width: 24px;
  height: 24px;
  border-width: 2px;
}

.loading-spinner.loading-lg {
  width: 56px;
  height: 56px;
  border-width: 4px;
}

.loading-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 12px;
  text-align: center;
}

/* --- Confirm Dialog --- */
.confirm-dialog {
  max-width: 420px;
  text-align: center;
}

.confirm-dialog .confirm-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(231, 76, 60, 0.12);
  border: 2px solid rgba(231, 76, 60, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #e74c3c;
  margin: 0 auto 20px;
}

.confirm-dialog .confirm-icon.confirm-icon-warning {
  background: rgba(241, 196, 15, 0.12);
  border-color: rgba(241, 196, 15, 0.3);
  color: #f1c40f;
}

.confirm-dialog .confirm-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.confirm-dialog .confirm-message {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  margin-bottom: 28px;
}

.confirm-dialog .confirm-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* --- Progress Bar --- */
.progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar .progress-fill {
  height: 100%;
  background: var(--orange);
  border-radius: 3px;
  transition: width 0.5s ease;
}

.progress-bar .progress-fill.progress-success {
  background: #2ecc71;
}

.progress-bar .progress-fill.progress-warning {
  background: #f1c40f;
}

.progress-bar .progress-fill.progress-danger {
  background: #e74c3c;
}

/* --- Tooltip --- */
.tooltip-wrapper {
  position: relative;
  display: inline-flex;
}

.tooltip-wrapper .tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 12px;
  background: rgba(14, 14, 14, 0.95);
  border: 1px solid rgba(255, 107, 0, 0.2);
  border-radius: 6px;
  font-size: 11px;
  color: var(--white);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 100;
}

.tooltip-wrapper:hover .tooltip {
  opacity: 1;
  visibility: visible;
}

.tooltip-wrapper .tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(14, 14, 14, 0.95);
}

/* --- Divider --- */
.admin-divider {
  height: 1px;
  background: rgba(255, 107, 0, 0.1);
  margin: 24px 0;
}

/* --- Tabs --- */
.admin-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid rgba(255, 107, 0, 0.1);
  margin-bottom: 24px;
  overflow-x: auto;
}

.admin-tabs .tab-btn {
  padding: 12px 20px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.admin-tabs .tab-btn:hover {
  color: var(--white);
}

.admin-tabs .tab-btn.active {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

/* --- Avatar --- */
.admin-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 107, 0, 0.3);
}

.admin-avatar.avatar-sm {
  width: 28px;
  height: 28px;
}

.admin-avatar.avatar-lg {
  width: 52px;
  height: 52px;
}

/* --- Dropdown --- */
.admin-dropdown {
  position: relative;
}

.admin-dropdown .dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 180px;
  background: #0e0e0e;
  border: 1px solid rgba(255, 107, 0, 0.15);
  border-radius: 10px;
  padding: 6px;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.25s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.admin-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.admin-dropdown .dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
}

.admin-dropdown .dropdown-item:hover {
  background: rgba(255, 107, 0, 0.08);
  color: var(--white);
}

.admin-dropdown .dropdown-item .item-icon {
  color: var(--orange);
  font-size: 13px;
  width: 18px;
  text-align: center;
}

.admin-dropdown .dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 4px 0;
}

/* --- Skeleton Loading --- */
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s ease-in-out infinite;
  border-radius: 8px;
}

.skeleton-text {
  height: 14px;
  margin-bottom: 8px;
}

.skeleton-text:last-child {
  width: 60%;
}

.skeleton-circle {
  border-radius: 50%;
}

.skeleton-card {
  height: 200px;
  border-radius: 12px;
}

/* --- Notification Panel --- */
.notification-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 360px;
  background: #0e0e0e;
  border: 1px solid rgba(255, 107, 0, 0.15);
  border-radius: 12px;
  z-index: 200;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.25s;
  max-height: 400px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.notification-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.notification-panel .notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 107, 0, 0.1);
}

.notification-panel .notif-header h4 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.notification-panel .notif-list {
  overflow-y: auto;
  flex: 1;
}

.notification-panel .notif-item {
  display: flex;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: background 0.2s;
}

.notification-panel .notif-item:hover {
  background: rgba(255, 107, 0, 0.04);
}

.notification-panel .notif-item.unread {
  background: rgba(255, 107, 0, 0.06);
}

.notification-panel .notif-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
  margin-top: 6px;
}

.notification-panel .notif-text {
  flex: 1;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.4;
}

.notification-panel .notif-time {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 4px;
}

/* =============================================
   12. LOGIN PAGE (admin-specific additions)
   ============================================= */

.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  padding: 40px 30px;
  gap: 50px;
}

.login-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 280px;
  animation: fadeInUp 0.8s ease-out;
}

.login-left .login-logo-admin {
  width: 200px;
  height: auto;
}

.login-left .login-branding-values {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 4px;
}

.login-left .login-branding-verse {
  color: var(--orange);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 2.5px;
  text-align: center;
  margin-top: 22px;
  text-transform: uppercase;
  line-height: 1.6;
}

.login-right {
  background: rgba(14, 14, 14, 0.97);
  border: 2px solid var(--orange);
  border-radius: 18px;
  max-width: 520px;
  width: 100%;
  padding: 38px 34px;
  position: relative;
  animation: fadeInUp 0.8s ease-out 0.1s both;
}

/* =============================================
   13. RESPONSIVE DESIGN
   ============================================= */

/* --- 1920px+ (full layout) --- */
@media (min-width: 1920px) {
  .admin-content {
    padding: 32px 48px 48px;
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .player-card-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .video-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* --- 1366px (slightly compressed) --- */
@media (max-width: 1366px) {
  .admin-sidebar {
    width: 240px;
  }

  .admin-main {
    margin-left: 240px;
  }

  .admin-content {
    padding: 24px 28px 36px;
  }

  .stats-grid {
    gap: 16px;
  }

  .stat-card .stat-number {
    font-size: 28px;
  }

  .player-card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .video-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .dashboard-grid {
    gap: 20px;
  }
}

/* --- 1024px (tablet) --- */
@media (max-width: 1024px) {
  .admin-sidebar {
    width: 220px;
  }

  .admin-main {
    margin-left: 220px;
  }

  .admin-sidebar nav a {
    padding: 12px 18px;
    font-size: 12px;
    letter-spacing: 1.5px;
  }

  .admin-sidebar nav a .nav-icon {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }

  .admin-content {
    padding: 20px 24px 32px;
  }

  .admin-header {
    padding: 14px 24px;
  }

  .admin-header .header-title {
    font-size: 18px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .quick-actions {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .player-card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .form-container {
    padding: 24px;
  }

  .page-title {
    font-size: 24px;
  }

  .section-header {
    margin-bottom: 20px;
  }

  /* Flyer scaling */
  .flyer-scale-container {
    transform: scale(0.55);
  }

  .flyer-preview-wrapper {
    height: calc(1080px * 0.55 + 20px);
  }
}

/* --- 768px (sidebar collapses) --- */
@media (max-width: 768px) {
  /* Sidebar becomes overlay */
  .admin-sidebar {
    transform: translateX(-100%);
    z-index: 300;
    width: 280px;
  }

  .admin-sidebar.open {
    transform: translateX(0);
  }

  .admin-sidebar .sidebar-close-btn {
    display: flex;
  }

  /* Sidebar overlay */
  .sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 299;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
  }

  .sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* Main takes full width */
  .admin-main {
    margin-left: 0;
  }

  /* Mobile menu button shows */
  .admin-header .mobile-menu-btn {
    display: flex;
  }

  .admin-header {
    padding: 12px 16px;
  }

  .admin-header .header-title {
    font-size: 16px;
    letter-spacing: 1px;
  }

  .admin-content {
    padding: 16px;
  }

  /* Stats stack */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .stat-card {
    padding: 16px;
  }

  .stat-card .stat-icon {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .stat-card .stat-number {
    font-size: 24px;
  }

  .stat-card .stat-label {
    font-size: 11px;
  }

  /* Quick actions */
  .quick-actions {
    grid-template-columns: 1fr;
  }

  /* Player cards */
  .player-card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .gallery-item.gallery-wide {
    grid-column: span 2;
  }

  .gallery-filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  /* Videos */
  .video-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* Forms */
  .form-container {
    padding: 20px 16px;
    border-radius: 12px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-row-3 {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn-primary,
  .form-actions .btn-secondary,
  .form-actions .btn-danger {
    width: 100%;
  }

  /* Tables */
  .table-container .table-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .table-container .table-header .search-bar {
    max-width: 100%;
  }

  .filter-bar {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  /* Pagination */
  .pagination {
    flex-wrap: wrap;
    gap: 4px;
  }

  .pagination .page-btn {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .pagination .page-btn.page-prev,
  .pagination .page-btn.page-next {
    padding: 0 10px;
    font-size: 10px;
  }

  /* Page title */
  .page-title {
    font-size: 20px;
    letter-spacing: 2px;
  }

  /* Modal */
  .modal {
    margin: 10px;
    max-height: 90vh;
  }

  .modal-header {
    padding: 16px 18px;
  }

  .modal-header h3 {
    font-size: 16px;
  }

  .modal-body {
    padding: 18px;
  }

  .modal-footer {
    padding: 14px 18px;
    flex-direction: column;
  }

  .modal-footer .btn-primary,
  .modal-footer .btn-secondary,
  .modal-footer .btn-danger {
    width: 100%;
  }

  /* Confirm dialog */
  .confirm-dialog .confirm-actions {
    flex-direction: column;
  }

  .confirm-dialog .confirm-actions .btn-primary,
  .confirm-dialog .confirm-actions .btn-secondary,
  .confirm-dialog .confirm-actions .btn-danger {
    width: 100%;
  }

  /* Toast */
  .toast-container {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .toast {
    min-width: unset;
    max-width: 100%;
  }

  /* Flyer scaling */
  .flyer-scale-container {
    transform: scale(0.35);
  }

  .flyer-preview-wrapper {
    height: calc(1080px * 0.35 + 20px);
  }

  /* Login */
  .login-container {
    flex-direction: column;
    gap: 30px;
    padding: 24px 16px;
  }

  .login-left {
    max-width: 180px;
  }

  .login-right {
    padding: 28px 20px;
  }

  /* Notification panel */
  .notification-panel {
    width: calc(100vw - 32px);
    right: -60px;
  }
}

/* --- 480px (mobile single column) --- */
@media (max-width: 480px) {
  .admin-header .header-title {
    font-size: 14px;
    letter-spacing: 1px;
  }

  .admin-header .header-breadcrumb {
    display: none;
  }

  .admin-content {
    padding: 12px;
  }

  /* Stats single column */
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .stat-card {
    padding: 14px 12px;
    flex-direction: row;
    align-items: center;
  }

  .stat-card .stat-number {
    font-size: 22px;
  }

  /* Player cards single column */
  .player-card-grid {
    grid-template-columns: 1fr;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .gallery-item.gallery-wide {
    grid-column: span 2;
  }

  /* Forms */
  .form-container {
    padding: 16px 12px;
  }

  .form-group label {
    font-size: 11px;
  }

  .form-input,
  .form-select,
  .form-textarea {
    padding: 11px 12px;
    font-size: 13px;
  }

  /* Buttons */
  .btn-primary,
  .btn-secondary,
  .btn-danger {
    padding: 11px 20px;
    font-size: 13px;
    letter-spacing: 1.5px;
  }

  /* Page title */
  .page-title {
    font-size: 18px;
    letter-spacing: 1.5px;
  }

  .page-title::after {
    width: 40px;
  }

  .page-subtitle {
    font-size: 12px;
  }

  /* Section header */
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Pagination */
  .pagination .page-btn.page-prev,
  .pagination .page-btn.page-next {
    display: none;
  }

  /* Activity items */
  .activity-list .activity-item {
    padding: 12px 16px;
  }

  .activity-list .activity-text {
    font-size: 12px;
  }

  /* Table cells */
  .data-table td {
    padding: 10px 12px;
    font-size: 12px;
  }

  .data-table th {
    padding: 10px 12px;
    font-size: 10px;
  }

  .table-actions button,
  .table-actions a {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }

  /* Video card */
  .video-card .video-info {
    padding: 12px;
  }

  .video-card .video-title {
    font-size: 13px;
  }

  /* Toast */
  .toast-container {
    left: 8px;
    right: 8px;
    bottom: 8px;
  }

  .toast {
    padding: 12px 14px;
    border-radius: 8px;
  }

  .toast .toast-title {
    font-size: 12px;
  }

  .toast .toast-message {
    font-size: 11px;
  }

  /* Confirm dialog */
  .confirm-dialog .confirm-title {
    font-size: 18px;
  }

  .confirm-dialog .confirm-message {
    font-size: 13px;
  }

  /* Flyer scaling */
  .flyer-scale-container {
    transform: scale(0.18);
  }

  .flyer-preview-wrapper {
    height: calc(1080px * 0.18 + 20px);
  }

  /* Flyer controls */
  .flyer-controls {
    flex-direction: column;
    align-items: stretch;
  }

  /* Login */
  .login-left {
    max-width: 150px;
  }

  .login-right {
    padding: 22px 16px;
    border-radius: 14px;
  }
}

/* =============================================
   14. ANIMATIONS
   ============================================= */

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

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

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

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

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

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

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateX(60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes toastSlideOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(60px);
  }
}

@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes progressBar {
  from { width: 0; }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
  20%, 40%, 60%, 80% { transform: translateX(4px); }
}

/* --- Utility Animation Classes --- */
.animate-fadeIn {
  animation: fadeIn 0.5s ease-out;
}

.animate-fadeInUp {
  animation: fadeInUp 0.5s ease-out;
}

.animate-fadeInDown {
  animation: fadeInDown 0.5s ease-out;
}

.animate-slideInLeft {
  animation: slideInLeft 0.5s ease-out;
}

.animate-slideInRight {
  animation: slideInRight 0.5s ease-out;
}

.animate-slideInUp {
  animation: slideInUp 0.4s ease-out;
}

.animate-scaleIn {
  animation: scaleIn 0.4s ease-out;
}

.animate-bounceIn {
  animation: bounceIn 0.5s ease-out;
}

.animate-shake {
  animation: shake 0.5s ease-out;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* --- Staggered Animations --- */
.stagger-1 { animation-delay: 0.05s; }
.stagger-2 { animation-delay: 0.1s; }
.stagger-3 { animation-delay: 0.15s; }
.stagger-4 { animation-delay: 0.2s; }
.stagger-5 { animation-delay: 0.25s; }
.stagger-6 { animation-delay: 0.3s; }
.stagger-7 { animation-delay: 0.35s; }
.stagger-8 { animation-delay: 0.4s; }

/* --- Hover Scale (cards) --- */
.hover-scale {
  transition: transform 0.3s ease;
}

.hover-scale:hover {
  transform: scale(1.03);
}

.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
}

/* --- Smooth Transitions (global) --- */
.admin-layout a,
.admin-layout button,
.admin-layout input,
.admin-layout select,
.admin-layout textarea {
  transition: all 0.3s ease;
}

/* --- Scrollbar (global admin) --- */
.admin-layout ::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.admin-layout ::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}

.admin-layout ::-webkit-scrollbar-thumb {
  background: rgba(255, 107, 0, 0.3);
  border-radius: 3px;
}

.admin-layout ::-webkit-scrollbar-thumb:hover {
  background: var(--orange);
}

/* =============================================
   15. PRINT STYLES
   ============================================= */

@media print {
  .admin-sidebar,
  .admin-header,
  .sidebar-overlay,
  .toast-container,
  .modal-overlay {
    display: none !important;
  }

  .admin-main {
    margin-left: 0 !important;
  }

  .admin-content {
    padding: 0;
  }

  .flyer {
    border: 1px solid #ccc;
  }

  body {
    background: white;
    color: black;
  }
}

/* =============================================
   16. ACCESSIBILITY
   ============================================= */

/* Focus visible for keyboard navigation */
.admin-layout *:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode */
@media (forced-colors: active) {
  .stat-card,
  .activity-card,
  .data-table,
  .form-container,
  .player-card,
  .video-card,
  .gallery-item {
    border: 1px solid ButtonText;
  }

  .btn-primary,
  .btn-secondary,
  .btn-danger {
    border: 1px solid ButtonText;
  }
}

/* =============================================
   17. DARK THEME SCROLLBAR (Firefox)
   ============================================= */

.admin-layout * {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 107, 0, 0.3) transparent;
}

.admin-main::-webkit-scrollbar {
  width: 8px;
}
.admin-main::-webkit-scrollbar-track {
  background: rgba(14,14,14,0.5);
}
.admin-main::-webkit-scrollbar-thumb {
  background: rgba(255,107,0,0.4);
  border-radius: 4px;
}
.admin-main::-webkit-scrollbar-thumb:hover {
  background: rgba(255,107,0,0.6);
}

/* =============================================
   18. PLAYER CARD (Flyer Vertical)
   ============================================= */

.player-card {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 2 / 3;
  background: #070707;
  border: 2px solid #FF6B00;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  font-family: 'Oswald', sans-serif;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.player-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(255, 107, 0, 0.25);
}

/* --- Decorative Background Elements --- */
.player-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(255,107,0,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 90%, rgba(255,107,0,0.08) 0%, transparent 50%),
    repeating-linear-gradient(135deg, transparent, transparent 18px, rgba(255,107,0,0.03) 18px, rgba(255,107,0,0.03) 19px);
  pointer-events: none;
  z-index: 0;
}

/* Halftone dots top-right */
.player-card::after {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  background-image: radial-gradient(circle, rgba(255,107,0,0.18) 1.5px, transparent 1.5px);
  background-size: 8px 8px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* --- Brush Strokes --- */
.pc-brush-white {
  position: absolute;
  bottom: 80px;
  left: -15px;
  width: 90px;
  height: 30px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
  transform: rotate(-12deg);
  pointer-events: none;
  z-index: 0;
}

.pc-brush-orange {
  position: absolute;
  top: 50px;
  right: -10px;
  width: 70px;
  height: 22px;
  background: rgba(255,107,0,0.08);
  border-radius: 50%;
  transform: rotate(8deg);
  pointer-events: none;
  z-index: 0;
}

/* --- Diagonal Lines --- */
.pc-diag-lines {
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 100%;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 6px,
    rgba(255,107,0,0.04) 6px,
    rgba(255,107,0,0.04) 7px
  );
  pointer-events: none;
  z-index: 0;
}

/* --- Geometric Shapes --- */
.pc-rhombus {
  position: absolute;
  bottom: 120px;
  right: 20px;
  width: 35px;
  height: 35px;
  border: 1.5px solid rgba(255,107,0,0.15);
  transform: rotate(45deg) skewX(-6deg);
  pointer-events: none;
  z-index: 0;
}

.pc-rhombus-inner {
  position: absolute;
  bottom: 127px;
  right: 27px;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(255,107,0,0.1);
  transform: rotate(45deg) skewX(-6deg);
  pointer-events: none;
  z-index: 0;
}

/* --- Glow Effects --- */
.pc-glow-top {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 80px;
  background: radial-gradient(ellipse, rgba(255,107,0,0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.pc-glow-bottom {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 60px;
  background: radial-gradient(ellipse, rgba(255,107,0,0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* --- Content Wrapper --- */
.pc-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 18px 16px 0;
}

/* --- Logo --- */
.pc-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 6px;
  filter: drop-shadow(0 2px 8px rgba(255,107,0,0.3));
}

/* --- Player Name --- */
.pc-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  color: #FFFFFF;
  line-height: 1.1;
  margin-bottom: 2px;
}

/* --- Position --- */
.pc-position {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #FF6B00;
  margin-bottom: 8px;
}

/* --- Number Badge --- */
.pc-number {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 42px;
  color: rgba(255,107,0,0.12);
  line-height: 1;
  z-index: 2;
}

/* --- Photo Frame --- */
.pc-photo-frame {
  width: 100%;
  flex: 1;
  min-height: 0;
  border: 2px solid #FF6B00;
  border-radius: 12px;
  background: #0e0e0e;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  position: relative;
}

.pc-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pc-photo-placeholder {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.15);
  text-transform: uppercase;
}

/* --- Info Grid --- */
.pc-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  width: 100%;
  margin-bottom: 8px;
}

.pc-info-item {
  background: rgba(14,14,14,0.9);
  border: 1px solid rgba(255,107,0,0.2);
  border-radius: 6px;
  padding: 5px 3px;
  text-align: center;
}

.pc-info-item .pc-info-val {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 14px;
  color: #FFFFFF;
  line-height: 1.2;
}

.pc-info-item .pc-info-label {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 7px;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
}

/* --- Stats Grid --- */
.pc-stats-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #FF6B00, transparent);
  margin-bottom: 6px;
}

.pc-stats-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 3px;
  color: #FF6B00;
  text-transform: uppercase;
  margin-bottom: 6px;
  text-align: center;
}

.pc-stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  width: 100%;
  margin-bottom: 8px;
}

.pc-stat-card {
  background: rgba(14,14,14,0.9);
  border: 1px solid rgba(255,107,0,0.2);
  border-radius: 6px;
  padding: 5px 2px;
  text-align: center;
}

.pc-stat-card .pc-stat-val {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: #FFFFFF;
  line-height: 1.2;
}

.pc-stat-card .pc-stat-label {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 7px;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
}

/* --- Footer --- */
.pc-footer {
  width: 100%;
  background: linear-gradient(180deg, transparent, rgba(255,107,0,0.08));
  border-top: 1px solid rgba(255,107,0,0.2);
  padding: 8px 12px 10px;
  text-align: center;
  margin-top: auto;
}

.pc-footer-club {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 9px;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  margin-bottom: 3px;
}

.pc-footer-verse {
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  font-size: 8px;
  color: rgba(255,107,0,0.6);
  font-style: italic;
  line-height: 1.3;
}

.pc-footer-ref {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 7px;
  color: rgba(255,255,255,0.6);
}

/* --- Responsive Card --- */
@media (max-width: 480px) {
  .player-card {
    max-width: 320px;
  }
  .pc-name { font-size: 20px; }
  .pc-number { font-size: 32px; }
  .pc-logo { width: 48px; height: 48px; }
  .pc-info-grid { grid-template-columns: repeat(4, 1fr); gap: 3px; }
  .pc-info-item .pc-info-val { font-size: 12px; }
  .pc-stats-grid { grid-template-columns: repeat(5, 1fr); gap: 3px; }
  .pc-stat-card .pc-stat-val { font-size: 13px; }
}
