:root {
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --bg-color: #0f172a;
  --text-color: #f8fafc;
  --text-muted: #94a3b8;
  --card-bg: rgba(30, 41, 59, 0.7);
  --border-color: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(251, 191, 36, 0.08);
}

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

body {
  font-family: 'Outfit', 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  background-image:
    radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(236, 72, 153, 0.15) 0px, transparent 50%);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: #818cf8;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #a5b4fc;
}

/* Glassmorphism Utilities */
.glass-nav {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--glass-shadow);
}

/* Navigation */
.nav-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.5px;
}

/* Layout */
main {
  flex: 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 6rem 2rem;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.2));
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(to right, #fbbf24, #d97706);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Grid System */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

/* Cards */
.card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 150px;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.hover-zoom:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(251, 191, 36, 0.25);
  border-color: rgba(255, 255, 255, 0.15);
}

.card h3 {
  font-size: 1.25rem;
  color: white;
  margin-bottom: 1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--text-color);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-warning {
  background: rgba(236, 72, 153, 0.2);
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.5);
  cursor: pointer;
}

.btn-warning:hover {
  background: #ec4899 !important;
  color: white;
}

/* Typography & specific elements */
h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

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

.header-section h1 {
  font-size: 2.5rem;
  font-weight: 800;
}

.subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Tables */
.premium-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
}

.premium-table th {
  text-align: left;
  padding: 1rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

.sortable-table th {
  cursor: pointer;
  user-select: none;
  position: relative;
  padding-right: 1.5rem;
}

.sortable-table th:hover {
  background: rgba(255, 255, 255, 0.05);
}

.sortable-table th::after {
  content: '↕';
  position: absolute;
  right: 0.5rem;
  color: rgba(255, 255, 255, 0.2);
}

.sortable-table th.asc::after {
  content: '↑';
  color: var(--primary);
}

.sortable-table th.desc::after {
  content: '↓';
  color: var(--primary);
}

.premium-table td {
  padding: 1.25rem 1rem;
  background: var(--card-bg);
  backdrop-filter: blur(12px);
}

.premium-table tr td:first-child {
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

.premium-table tr td:last-child {
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

.badge {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.875rem;
}

.sub-text {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-left: 0.5rem;
}

/* Dancer Profile */
.profile-card {
  padding: 2rem;
  margin-bottom: 3rem;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.avatar {
  font-size: 4rem;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--primary), #ec4899);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(236, 72, 153, 0.3);
}

.profile-info h1 {
  font-size: 2.5rem;
  margin-bottom: 0.25rem;
}

.unique-id code {
  background: rgba(0, 0, 0, 0.3);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: monospace;
  color: var(--text-muted);
}

/* Awards Grid for Dancer */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.premium-trophy-card {
  position: relative;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.05) 45%, rgba(0, 0, 0, 0.4) 100%);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  border-left: 1px solid rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(30px) saturate(200%);
  -webkit-backdrop-filter: blur(30px) saturate(200%);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.4),
    inset 2px 2px 10px rgba(255, 255, 255, 0.4),
    inset -3px -3px 15px rgba(0, 0, 0, 0.2);
  padding: 1.5rem;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
  z-index: 1;
}

.premium-trophy-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-20deg);
  transition: all 0.7s ease;
  z-index: 0;
}

.premium-trophy-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 30px 50px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(234, 179, 8, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.premium-trophy-card:hover::before {
  left: 200%;
}

.premium-trophy-card .content-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.premium-trophy-card .trophy-icon {
  font-size: 6rem;
  margin-bottom: 0.5rem;
}

.premium-trophy-card .award-place {
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Tier Colors */
.tier-gold .trophy-icon {
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.5));
}

.tier-gold .award-place {
  background: linear-gradient(to bottom right, #fde047, #d97706);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tier-silver .trophy-icon {
  filter: grayscale(1) brightness(1.1) drop-shadow(0 8px 12px rgba(0, 0, 0, 0.4));
}

.tier-silver .award-place {
  background: linear-gradient(to bottom right, #6b7280, #374151);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tier-bronze .trophy-icon {
  filter: sepia(1) hue-rotate(335deg) saturate(3) brightness(0.9) drop-shadow(0 8px 12px rgba(0, 0, 0, 0.4));
}

.tier-bronze .award-place {
  background: linear-gradient(to bottom right, #b45309, #78350f);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tier-star .trophy-icon {
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.4));
}

.tier-star .award-place {
  background: linear-gradient(to bottom right, #7e22ce, #4c1d95);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.premium-trophy-card .award-place-large {
  font-size: 2.5rem;
}

.premium-trophy-card .award-place-medium {
  font-size: 1.5rem;
  line-height: 1.2;
}

.premium-trophy-card .award-place-small {
  font-size: 1.1rem;
  line-height: 1.3;
}

.premium-trophy-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  text-align: center;
  font-weight: 700;
  line-height: 1.3;
  word-wrap: break-word;
  overflow-wrap: break-word;
  color: #f3f4f6;
  /* Off-white */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.premium-trophy-card h3.long-text {
  font-size: 0.95rem;
  line-height: 1.4;
}

.premium-trophy-card .category {
  color: #a5b4fc;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-align: center;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.premium-trophy-card .sub-category {
  color: #d1d5db;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  text-align: center;
  font-weight: 500;
}

.premium-trophy-card .perf-num {
  font-size: 0.8rem;
  color: #9ca3af;
  text-align: center;
  display: block;
  margin-top: 1rem;
}

.premium-trophy-card .verified-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: white;
  /* White checkmark */
  background: #3b82f6;
  /* Blue background */
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  z-index: 10;
  font-size: 0.9rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}

/* Tabs & Accordions */
.tabs-container {
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 2rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs-container::-webkit-scrollbar {
  display: none;
}

.year-tabs {
  display: flex;
  list-style: none;
  gap: 2rem;
  padding: 0;
  margin: 0;
  white-space: nowrap;
}

.tab-item {
  padding: 1rem 0;
  cursor: pointer;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 1.1rem;
  position: relative;
  transition: color 0.3s;
}

.tab-item:hover {
  color: var(--text-color);
}

.tab-item.active {
  color: var(--primary);
}

.tab-item.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px 2px 0 0;
}

.accordion-header:hover {
  background: rgba(255, 255, 255, 0.05) !important;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.accordion-icon {
  transition: transform 0.3s ease;
  color: var(--primary);
}

.accordion-header.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-body {
  display: none;
  padding: 0 1.5rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.accordion-header.active+.accordion-body {
  display: block;
}

/* Premium Awards Styling */
.premium-award-border {
  border: 1px solid rgba(251, 191, 36, 0.5) !important;
  border-top: 1px solid rgba(253, 224, 71, 0.8) !important;
  border-left: 1px solid rgba(253, 224, 71, 0.8) !important;
  border-right: 4px solid rgba(251, 191, 36, 0.4) !important;
  border-bottom: 4px solid rgba(251, 191, 36, 0.4) !important;
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.15) !important;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.05) 0%, rgba(0, 0, 0, 0) 100%) !important;
}

.badge-premium {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 2px 4px rgba(251, 191, 36, 0.4) !important;
}
/* Leaderboard Styles */
.leaderboard-rank-badge {
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  color: white;
}
.rank-1.leaderboard-rank-badge {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.4);
  font-size: 1rem;
  font-weight: bold;
}
.rank-2.leaderboard-rank-badge {
  background: rgba(156, 163, 175, 0.2);
  color: #e5e7eb;
  border: 1px solid rgba(156, 163, 175, 0.4);
  font-size: 0.95rem;
  font-weight: bold;
}
.rank-3.leaderboard-rank-badge {
  background: rgba(180, 83, 9, 0.2);
  color: #d97706;
  border: 1px solid rgba(180, 83, 9, 0.4);
  font-size: 0.9rem;
  font-weight: bold;
}
.leaderboard-name {
  flex-grow: 1;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-color);
}
.leaderboard-name.top-3 {
  color: white;
}

/* Premium Org Card */
.premium-org-card {
  position: relative;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
  border-radius: 16px;
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-top: 1px solid rgba(251, 191, 36, 0.5);
  border-left: 1px solid rgba(251, 191, 36, 0.4);
  border-right: 4px solid rgba(251, 191, 36, 0.6);
  border-bottom: 4px solid rgba(251, 191, 36, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(251, 191, 36, 0.15),
    inset 0 0 20px rgba(251, 191, 36, 0.05);
  padding: 1.75rem 1.5rem;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.premium-org-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-20deg);
  transition: all 0.7s ease;
  z-index: 0;
}

.premium-org-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 25px 45px rgba(0, 0, 0, 0.7),
    0 0 40px rgba(251, 191, 36, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-color: rgba(251, 191, 36, 0.6);
}

.premium-org-card:hover::before {
  left: 150%;
}

.premium-org-card .content-wrapper {
  position: relative;
  z-index: 2;
}

.premium-org-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(to right, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 10px rgba(251, 191, 36, 0.2);
}

.premium-org-card .badge-org {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
  padding: 0.35rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Premium Studio Card */
.premium-studio-card {
  position: relative;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
  border-radius: 16px;
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-top: 1px solid rgba(16, 185, 129, 0.5);
  border-left: 1px solid rgba(16, 185, 129, 0.4);
  border-right: 4px solid rgba(16, 185, 129, 0.6);
  border-bottom: 4px solid rgba(16, 185, 129, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(16, 185, 129, 0.15),
    inset 0 0 20px rgba(16, 185, 129, 0.05);
  padding: 1.75rem 1.5rem;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
}

.premium-studio-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-20deg);
  transition: all 0.7s ease;
  z-index: 0;
}

.premium-studio-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 25px 45px rgba(0, 0, 0, 0.7),
    0 0 40px rgba(16, 185, 129, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-color: rgba(16, 185, 129, 0.6);
}

.premium-studio-card:hover::before {
  left: 150%;
}

.premium-studio-card .content-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.premium-studio-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.premium-studio-card .badge-studio {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.35rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}
