body {
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

.glass-header {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(241, 245, 249, 0.8);
}
.dark .glass-header { background: rgba(11, 20, 32, 0.8); }

.grid-pattern {
  background-image:
    linear-gradient(rgba(245, 165, 36, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 165, 36, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at 30% 40%, black, transparent 70%);
}

/* Signature element: the achievement ring, a conic-gradient dial.
   --pct (0-100) is set from JS on the element's inline style. */
.ring-widget {
  --pct: 0;
  --ring-color: #F5A524;
  width: 84px;
  height: 84px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: conic-gradient(var(--ring-color) calc(var(--pct) * 1%), rgba(255,255,255,0.12) 0);
  position: relative;
  transition: background 1s cubic-bezier(0.4, 0, 0.2, 1);
}
.ring-widget::before {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 999px;
  background: #0B1420;
}
.ring-widget span { position: relative; z-index: 1; }

.ring-hero {
  --pct: 0;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: conic-gradient(#F5A524 calc(var(--pct) * 1%), rgba(255,255,255,0.08) 0);
  position: relative;
}
.ring-hero::before {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: 999px;
  background: #0B1420;
}

.stat-card { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }

.skeleton {
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}
.dark .skeleton { background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%); }
@keyframes skeleton-loading { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.hide-scroll::-webkit-scrollbar { display: none; }

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 8px;
  z-index: 200;
  opacity: 0;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}
.dropdown-content.show {
  display: block;
  animation: slideDown 0.2s ease-out forwards;
  transform-origin: top;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px) scaleY(0.98); }
  to { opacity: 1; transform: translateY(0) scaleY(1); }
}

.table-container { width: 100%; overflow: hidden; }

.nav-tab {
  background: transparent;
  color: #94a3b8;
  transition: all 0.2s ease;
}
.nav-tab.active {
  background: #2952E3;
  color: white;
}

@media (prefers-reduced-motion: reduce) {
  .ring-widget, .ring-hero, .skeleton, .dropdown-content { animation: none !important; transition: none !important; }
}

@media screen and (max-width: 768px) {
  input, select, textarea, button { font-size: 16px !important; }
}
