/* ============================================
   RedeemX Telegram Dashboard Styles
   Matching brand identity from redeemx.site
   ============================================ */

@property --glow-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

:root {
  /* Brand Colors */
  --rx-black: #030304;
  --rx-ink: #07070a;
  --rx-panel: #0b0b0f;
  --rx-panel-2: #101015;
  --rx-line: rgba(255, 255, 255, 0.1);
  --rx-line-strong: rgba(255, 255, 255, 0.18);
  --rx-text: #f4f4f5;
  --rx-muted: #a1a1aa;
  --rx-dim: #686872;
  --rx-cyan: #7dd3fc;
  --rx-green: #34d399;
  --rx-violet: #a855f7;
  --rx-rose: #f472b6;
  --rx-orange: #fb923c;
  --rx-radius: 22px;
  
  /* Fonts */
  --rx-font: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --rx-mono: 'Roboto Mono', 'SF Mono', Monaco, 'Cascadia Code', monospace;
  
  /* Telegram WebApp Variables */
  --tg-theme-bg-color: var(--rx-black);
  --tg-theme-text-color: var(--rx-text);
  --tg-theme-hint-color: var(--rx-muted);
  --tg-theme-link-color: var(--rx-cyan);
  --tg-theme-button-color: var(--rx-cyan);
  --tg-theme-button-text-color: var(--rx-black);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  touch-action: manipulation;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--rx-font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--rx-text);
  background: var(--rx-black);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior: none;
}

/* Telegram WebApp Safe Areas */
body {
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}

/* ============================================
   Loading Screen
   ============================================ */

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--rx-black) 0%, var(--rx-ink) 50%, var(--rx-black) 100%);
}

.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.brand-orb-loader {
  position: relative;
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border-radius: 32px;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.26), transparent 28%),
    linear-gradient(135deg, rgba(255, 106, 0, 0.95), rgba(221, 0, 255, 0.74) 52%, rgba(0, 217, 255, 0.9));
  box-shadow: 0 18px 60px rgba(221, 0, 255, 0.3);
  animation: pulse-glow 2s ease-in-out infinite;
}

.brand-orb-loader span {
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 2px solid rgba(0, 255, 212, 0.72);
  opacity: 0.78;
  animation: rotate-border 3s linear infinite;
}

.brand-orb-loader img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.loading-text {
  font-family: var(--rx-mono);
  font-size: 13px;
  color: var(--rx-muted);
  animation: pulse-text 1.5s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 18px 60px rgba(221, 0, 255, 0.3);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 18px 80px rgba(221, 0, 255, 0.5);
    transform: scale(1.02);
  }
}

@keyframes rotate-border {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse-text {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ============================================
   Dashboard Container
   ============================================ */

.dashboard-container {
  position: relative;
  min-height: 100vh;
  padding-bottom: 80px;
  overflow-x: hidden;
  background: 
    radial-gradient(circle at 20% 10%, rgba(125, 211, 252, 0.12), transparent 32%),
    radial-gradient(circle at 82% 2%, rgba(244, 114, 182, 0.11), transparent 30%),
    radial-gradient(circle at 50% 86%, rgba(168, 85, 247, 0.13), transparent 36%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 60px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 60px),
    linear-gradient(180deg, var(--rx-black) 0%, var(--rx-ink) 50%, var(--rx-black) 100%);
}

.dashboard-container::before {
  content: '';
  position: fixed;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 24% 28%, rgba(125, 211, 252, 0.16), transparent 26%),
    radial-gradient(ellipse at 70% 16%, rgba(244, 114, 182, 0.13), transparent 24%),
    radial-gradient(ellipse at 56% 74%, rgba(168, 85, 247, 0.15), transparent 28%);
  filter: blur(18px);
  opacity: 0.78;
  animation: galaxy-drift 22s ease-in-out infinite alternate;
}

.galaxy-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.78) 0 1px, transparent 1.5px),
    radial-gradient(circle at 72% 16%, rgba(125, 211, 252, 0.72) 0 1px, transparent 1.6px),
    radial-gradient(circle at 42% 78%, rgba(244, 114, 182, 0.68) 0 1px, transparent 1.5px),
    radial-gradient(circle at 86% 62%, rgba(255, 255, 255, 0.58) 0 1px, transparent 1.4px);
  background-size: 130px 170px, 190px 220px, 240px 260px, 310px 290px;
  opacity: 0.46;
  animation: star-pan 38s linear infinite;
}

.galaxy-star {
  position: absolute;
  inset: -10%;
  background-repeat: repeat;
  opacity: 0.56;
}

.star-a {
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.82) 0 1px, transparent 1.7px),
    radial-gradient(circle, rgba(125, 211, 252, 0.62) 0 1px, transparent 1.6px);
  background-position: 8px 18px, 72px 118px;
  background-size: 148px 188px, 230px 270px;
  animation: star-pan 46s linear infinite;
}

.star-b {
  background-image:
    radial-gradient(circle, rgba(244, 114, 182, 0.7) 0 1px, transparent 1.7px),
    radial-gradient(circle, rgba(255, 255, 255, 0.48) 0 1px, transparent 1.6px);
  background-position: 36px 96px, 118px 34px;
  background-size: 210px 250px, 290px 320px;
  animation: star-pan-reverse 58s linear infinite;
}

.star-c {
  background-image:
    radial-gradient(circle, rgba(52, 211, 153, 0.54) 0 1px, transparent 1.7px),
    radial-gradient(circle, rgba(255, 255, 255, 0.62) 0 1px, transparent 1.5px);
  background-position: 144px 22px, 22px 156px;
  background-size: 260px 300px, 340px 380px;
  animation: star-twinkle 7s ease-in-out infinite;
}

.dashboard-header,
.dashboard-main,
.bottom-nav {
  position: relative;
  z-index: 1;
}

/* ============================================
   Header
   ============================================ */

.dashboard-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 12px 16px;
  background: rgba(5, 5, 8, 0.85);
  backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid var(--rx-line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 12px;
}

.brand-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-info strong {
  font-size: 17px;
  font-weight: 800;
  color: var(--rx-text);
  line-height: 1;
}

.header-subtitle {
  font-family: var(--rx-mono);
  font-size: 11px;
  color: var(--rx-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.icon-btn {
  appearance: none;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--rx-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--rx-text);
  cursor: pointer;
  transition: all 180ms ease;
}

.icon-btn:active {
  transform: scale(0.95);
  background: rgba(255, 255, 255, 0.08);
}

/* ============================================
   Main Content
   ============================================ */

.dashboard-main {
  padding: 16px 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ============================================
   Panel Component
   ============================================ */

.panel {
  position: relative;
  padding: 20px;
  border: 1px solid var(--rx-line);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(11, 11, 15, 0.92), rgba(16, 16, 21, 0.85));
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28),
    0 0 34px rgba(125, 211, 252, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  isolation: isolate;
  overflow: hidden;
}

.panel::after,
.stat-card::after,
.license-item::after,
.site-item::after,
.activity-item::after {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: conic-gradient(
    from var(--glow-angle),
    rgba(125, 211, 252, 0.02),
    rgba(125, 211, 252, 0.5),
    rgba(244, 114, 182, 0.42),
    rgba(52, 211, 153, 0.24),
    rgba(125, 211, 252, 0.02)
  );
  opacity: 0.72;
  pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: glow-spin 9s linear infinite;
}

.panel > *,
.stat-card > *,
.license-item > *,
.site-item > *,
.activity-item > * {
  position: relative;
  z-index: 1;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-title {
  font-family: var(--rx-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--rx-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.text-btn {
  appearance: none;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(125, 211, 252, 0.1);
  color: var(--rx-cyan);
  font-family: var(--rx-mono);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 180ms ease;
}

.text-btn:active {
  transform: scale(0.95);
  background: rgba(125, 211, 252, 0.15);
}

/* ============================================
   User Panel
   ============================================ */

.user-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-avatar {
  flex-shrink: 0;
}

.avatar-circle {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 3px solid var(--rx-cyan);
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.2), rgba(168, 85, 247, 0.2));
  box-shadow: 0 8px 24px rgba(125, 211, 252, 0.2),
    inset 0 2px 8px rgba(255, 255, 255, 0.1);
  font-size: 28px;
  font-weight: 700;
  color: var(--rx-cyan);
}

.user-details {
  flex: 1;
  min-width: 0;
}

.user-details h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--rx-text);
  margin: 0 0 4px;
  line-height: 1.2;
}

.user-meta {
  font-family: var(--rx-mono);
  font-size: 13px;
  color: var(--rx-dim);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--rx-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse-dot 2s ease-in-out infinite;
}

.status-active {
  background: rgba(52, 211, 153, 0.15);
  color: var(--rx-green);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.status-paused {
  background: rgba(251, 146, 60, 0.14);
  color: var(--rx-orange);
  border: 1px solid rgba(251, 146, 60, 0.3);
}

.status-warning {
  background: rgba(244, 114, 182, 0.14);
  color: var(--rx-rose);
  border: 1px solid rgba(244, 114, 182, 0.32);
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.9); }
}

/* ============================================
   License Panel
   ============================================ */

.license-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 12px;
}

.license-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--rx-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.item-label {
  font-family: var(--rx-mono);
  font-size: 11px;
  color: var(--rx-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.item-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--rx-text);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

/* ============================================
   Stats Grid
   ============================================ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.stat-card {
  position: relative;
  padding: 16px;
  border: 1px solid var(--rx-line);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(11, 11, 15, 0.92), rgba(16, 16, 21, 0.85));
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24), 0 0 26px rgba(125, 211, 252, 0.08);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--stat-color), transparent);
  opacity: 0.6;
}

.stat-card[data-tone="cyan"] {
  --stat-color: var(--rx-cyan);
}

.stat-card[data-tone="green"] {
  --stat-color: var(--rx-green);
}

.stat-card[data-tone="violet"] {
  --stat-color: var(--rx-violet);
}

.stat-card[data-tone="orange"] {
  --stat-color: var(--rx-orange);
}

.stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.stat-label {
  font-family: var(--rx-mono);
  font-size: 11px;
  color: var(--rx-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-header svg {
  color: var(--stat-color);
  opacity: 0.6;
}

.stat-value {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--stat-color);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-change {
  display: block;
  font-family: var(--rx-mono);
  font-size: 11px;
  color: var(--rx-dim);
}

.stat-change-up {
  color: var(--rx-green);
}

.stat-change-neutral {
  color: var(--rx-dim);
}

/* ============================================
   Sites Panel
   ============================================ */

.sites-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-item {
  position: relative;
  width: 100%;
  font: inherit;
  color: inherit;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--rx-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  transition: all 180ms ease;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
}

.site-item:active {
  transform: scale(0.98);
  background: rgba(255, 255, 255, 0.04);
}

.site-item-selected {
  border-color: rgba(125, 211, 252, 0.36);
  background: rgba(125, 211, 252, 0.06);
}

.site-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3),
    inset 0 1px 2px rgba(255, 255, 255, 0.15);
}

.site-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.site-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.site-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--rx-text);
  line-height: 1.2;
}

.site-status {
  font-family: var(--rx-mono);
  font-size: 11px;
  color: var(--rx-green);
  overflow-wrap: anywhere;
}

.site-status-muted {
  color: var(--rx-orange);
}

.site-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.site-stat-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--rx-text);
  line-height: 1;
}

.site-stat-label {
  font-family: var(--rx-mono);
  font-size: 10px;
  color: var(--rx-dim);
}

/* ============================================
   Activity Feed
   ============================================ */

.activity-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.activity-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--rx-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  isolation: isolate;
}

.activity-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  flex-shrink: 0;
}

.activity-icon-success {
  background: rgba(52, 211, 153, 0.15);
  color: var(--rx-green);
}

.activity-icon-info {
  background: rgba(125, 211, 252, 0.15);
  color: var(--rx-cyan);
}

.activity-icon-error {
  background: rgba(244, 114, 182, 0.15);
  color: var(--rx-rose);
}

.activity-icon-ready {
  background: rgba(251, 146, 60, 0.15);
  color: var(--rx-orange);
}

.activity-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.activity-text {
  font-size: 14px;
  color: var(--rx-text);
  line-height: 1.3;
}

.activity-text strong {
  color: var(--rx-cyan);
  font-weight: 600;
}

.activity-time {
  font-family: var(--rx-mono);
  font-size: 11px;
  color: var(--rx-dim);
}

.activity-value {
  font-family: var(--rx-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--rx-green);
  flex-shrink: 0;
}

.mini-action-btn {
  appearance: none;
  flex-shrink: 0;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(125, 211, 252, 0.34);
  border-radius: 10px;
  background: rgba(125, 211, 252, 0.1);
  color: var(--rx-cyan);
  font-family: var(--rx-mono);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.empty-state {
  padding: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--rx-muted);
  font-family: var(--rx-mono);
  font-size: 12px;
  line-height: 1.5;
}

/* ============================================
   Quick Actions
   ============================================ */

.quick-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 8px;
}

.action-btn {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 24px;
  border: none;
  border-radius: 16px;
  font-family: var(--rx-font);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 180ms ease;
}

.action-btn:active {
  transform: scale(0.97);
}

.action-btn-primary {
  background: linear-gradient(135deg, var(--rx-cyan), var(--rx-violet));
  color: var(--rx-black);
  box-shadow: 0 12px 34px rgba(125, 211, 252, 0.3);
}

.action-btn-primary:active {
  box-shadow: 0 8px 24px rgba(125, 211, 252, 0.4);
}

.action-btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--rx-text);
  border: 1px solid var(--rx-line);
}

/* ============================================
   Bottom Navigation
   ============================================ */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  background: rgba(5, 5, 8, 0.92);
  backdrop-filter: blur(20px) saturate(1.2);
  border-top: 1px solid var(--rx-line);
}

.nav-btn {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 4px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--rx-dim);
  cursor: pointer;
  transition: all 180ms ease;
}

.nav-btn span {
  font-size: 11px;
  font-weight: 600;
  font-family: var(--rx-mono);
}

.nav-btn-active {
  color: var(--rx-cyan);
  background: rgba(125, 211, 252, 0.1);
}

.nav-btn:active {
  transform: scale(0.95);
}

/* ============================================
   Responsive Design
   ============================================ */

@media (min-width: 768px) {
  .dashboard-main {
    max-width: 720px;
    margin: 0 auto;
  }
  
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .quick-actions {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 380px) {
  .license-grid {
    grid-template-columns: 1fr;
  }
  
  .stat-value {
    font-size: 24px;
  }
}

/* ============================================
   Animations
   ============================================ */

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glow-spin {
  to { --glow-angle: 360deg; }
}

@keyframes galaxy-drift {
  from { transform: translate3d(-1.8%, -1.2%, 0) rotate(-1deg) scale(1); }
  to { transform: translate3d(1.6%, 1.4%, 0) rotate(1deg) scale(1.04); }
}

@keyframes star-pan {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-120px, 90px, 0); }
}

@keyframes star-pan-reverse {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(96px, -120px, 0); }
}

@keyframes star-twinkle {
  0%, 100% { opacity: 0.34; transform: scale(1); }
  45% { opacity: 0.7; transform: scale(1.015); }
}

.panel,
.stat-card,
.site-item,
.activity-item {
  animation: slideInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.panel:nth-child(1) { animation-delay: 0.05s; }
.panel:nth-child(2) { animation-delay: 0.1s; }
.stat-card:nth-child(1) { animation-delay: 0.15s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.25s; }
.stat-card:nth-child(4) { animation-delay: 0.3s; }

/* ============================================
   Utility Classes
   ============================================ */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
