/* Benefactor Sport Dashboard Styles - Offline / Self-Contained */
:root {
  --bg: #08090d;
  --card: rgba(48, 40, 58, 0.40);
  --card-hover: rgba(68, 54, 76, 0.60);
  --card-active: rgba(82, 60, 84, 0.85);
  --border: rgba(255, 255, 255, 0.16);
  --border-accent: rgba(240, 176, 106, 0.45);
  --accent: #e09a56;
  --accent-bright: #f0b06a;
  --accent-glow: rgba(224, 154, 86, 0.35);
  --shadow: 0 16px 45px -12px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  --glass-edge: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  --green: #3ecf8e;
  --green-glow: rgba(62, 207, 142, 0.20);
  --stop: #c47a88;
  --purple: #a78bfa;
  --blue: #60a5fa;
  --cyan: #38bdf8;
  --indigo: #818cf8;
}

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

body {
  background-color: var(--bg);
  background-image:
    /* Оранжевый спот сверху справа (уменьшен размер и прозрачность) */
    radial-gradient(850px 650px at 98% 2%, rgba(236, 128, 48, 0.48) 0%, transparent 55%),
    /* Терракотово-красный спот справа внизу */
    radial-gradient(640px 520px at 90% 82%, rgba(186, 68, 32, 0.30) 0%, transparent 55%),
    /* Мягкий янтарный оттенок ближе к центру */
    radial-gradient(500px 400px at 58% 38%, rgba(220, 130, 45, 0.20) 0%, transparent 52%),
    /* Лазурный акцент слева вверху */
    radial-gradient(800px 600px at 5% 12%, rgba(85, 120, 142, 0.40) 0%, transparent 56%),
    /* Сдержанный винно-красный акцент слева внизу */
    radial-gradient(580px 480px at 8% 85%, rgba(150, 48, 64, 0.24) 0%, transparent 54%);
  background-attachment: fixed;
  background-size: 100vw 100vh;
  background-repeat: no-repeat;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #f3efe8;
  min-height: 100vh;
  padding: 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/manrope-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

.glass-card {
  background: var(--card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.glass-card-sm {
  background: rgba(52, 42, 60, 0.38);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--glass-edge);
}
.day-card {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.day-card:hover {
  background: var(--card-hover);
  border-color: rgba(240, 176, 106, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.10);
}
.day-card.selected {
  background: var(--card-active);
  border-color: var(--accent-bright) !important;
  box-shadow: 0 0 28px -4px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.custom-scroll::-webkit-scrollbar { width: 6px; height: 6px; }
.custom-scroll::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.1); }
.custom-scroll::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 999px; }

@keyframes pulse-subtle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
.pulse-dot { animation: pulse-subtle 2s infinite ease-in-out; }

.timeline-segment {
  transition: all 0.15s ease;
  cursor: pointer;
}
.timeline-segment:hover {
  filter: brightness(1.25);
  transform: scaleY(1.15);
  z-index: 20;
}

/* Utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-baseline { align-items: baseline; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.shrink-0 { flex-shrink: 0; }
.hidden { display: none !important; }
.relative { position: relative; }
.absolute { position: absolute; }
.pointer-events-none { pointer-events: none; }
.overflow-hidden { overflow: hidden; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.select-none { user-select: none; }
.tabular-nums { font-variant-numeric: tabular-nums; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.font-extrabold { font-weight: 800; }
.font-black { font-weight: 900; }
.uppercase { text-transform: uppercase; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }

.p-1\.5 { padding: 0.375rem; }
.p-2 { padding: 0.5rem; }
.p-2\.5 { padding: 0.625rem; }
.p-3 { padding: 0.75rem; }
.p-3\.5 { padding: 0.875rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-3 { padding-top: 0.75rem; }
.pt-4 { padding-top: 1rem; }
.pt-5 { padding-top: 1.25rem; }
.pt-6 { padding-top: 1.5rem; }
.pb-4 { padding-bottom: 1rem; }
.pb-6 { padding-bottom: 1.5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-1\.5 { margin-bottom: 0.375rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.my-2 { margin-top: 0.5rem; margin-bottom: 0.5rem; }
.my-3 { margin-top: 0.75rem; margin-bottom: 0.75rem; }

.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-2\.5 { gap: 0.625rem; }
.gap-3 { gap: 0.75rem; }
.gap-3\.5 { gap: 0.875rem; }
.gap-4 { gap: 1rem; }

.space-y-2\.5 > * + * { margin-top: 0.625rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:flex-row { flex-direction: row; }
  .sm\:items-center { align-items: center; }
  .sm\:text-left { text-align: left; }
  .sm\:inline { display: inline; }
  .sm\:block { display: block; }
  .sm\:w-48 { width: 12rem; }
}
@media (min-width: 768px) {
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:block { display: block; }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .lg\:flex-row { flex-direction: row; }
  .lg\:items-center { align-items: center; }
}

.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

.border { border-width: 1px; border-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-l { border-left-width: 1px; border-left-style: solid; }
.border-r { border-right-width: 1px; border-right-style: solid; }
.border-l-4 { border-left-width: 4px; border-left-style: solid; }
.border-dashed { border-style: dashed; }

.border-white\/5 { border-color: rgba(255, 255, 255, 0.05); }
.border-white\/10 { border-color: rgba(255, 255, 255, 0.10); }
.border-white\/20 { border-color: rgba(255, 255, 255, 0.20); }
.border-amber-400 { border-color: #fbbf24; }
.border-amber-400\/30 { border-color: rgba(251, 191, 36, 0.30); }
.border-amber-500\/30 { border-color: rgba(245, 158, 11, 0.30); }
.border-amber-500\/40 { border-color: rgba(245, 158, 11, 0.40); }
.border-amber-500\/50 { border-color: rgba(245, 158, 11, 0.50); }
.border-l-amber-500 { border-left-color: #f59e0b; }
.border-l-emerald-500 { border-left-color: #10b981; }
.border-emerald-500\/20 { border-color: rgba(16, 185, 129, 0.20); }
.border-emerald-500\/25 { border-color: rgba(16, 185, 129, 0.25); }
.border-emerald-500\/30 { border-color: rgba(16, 185, 129, 0.30); }
.border-purple-500\/20 { border-color: rgba(168, 85, 247, 0.20); }
.border-purple-500\/30 { border-color: rgba(168, 85, 247, 0.30); }
.border-purple-500\/40 { border-color: rgba(168, 85, 247, 0.40); }
.border-blue-500\/20 { border-color: rgba(59, 130, 246, 0.20); }
.border-blue-500\/30 { border-color: rgba(59, 130, 246, 0.30); }
.border-blue-500\/40 { border-color: rgba(59, 130, 246, 0.40); }
.border-cyan-500\/30 { border-color: rgba(6, 182, 212, 0.30); }
.border-stone-500 { border-color: #78716c; }
.border-stone-600\/40 { border-color: rgba(87, 83, 78, 0.40); }
.border-rose-500\/30 { border-color: rgba(244, 63, 94, 0.30); }

.bg-stone-950\/80 { background-color: rgba(12, 10, 9, 0.80); }
.bg-stone-950\/60 { background-color: rgba(12, 10, 9, 0.60); }
.bg-stone-950\/50 { background-color: rgba(12, 10, 9, 0.50); }
.bg-stone-950\/40 { background-color: rgba(12, 10, 9, 0.40); }
.bg-stone-900 { background-color: #1c1917; }
.bg-stone-900\/90 { background-color: rgba(28, 25, 23, 0.90); }
.bg-stone-900\/60 { background-color: rgba(28, 25, 23, 0.60); }
.bg-stone-900\/50 { background-color: rgba(28, 25, 23, 0.50); }
.bg-stone-800 { background-color: #292524; }
.bg-stone-800\/80 { background-color: rgba(41, 37, 36, 0.80); }
.bg-stone-700 { background-color: #44403c; }
.bg-stone-700\/40 { background-color: rgba(68, 64, 60, 0.40); }
.bg-white\/5 { background-color: rgba(255, 255, 255, 0.05); }

.bg-amber-400 { background-color: #fbbf24; }
.bg-amber-500 { background-color: #f59e0b; }
.bg-amber-500\/5 { background-color: rgba(245, 158, 11, 0.05); }
.bg-amber-500\/10 { background-color: rgba(245, 158, 11, 0.10); }
.bg-amber-500\/15 { background-color: rgba(245, 158, 11, 0.15); }
.bg-amber-500\/20 { background-color: rgba(245, 158, 11, 0.20); }
.bg-emerald-400 { background-color: #34d399; }
.bg-emerald-500 { background-color: #10b981; }
.bg-emerald-500\/10 { background-color: rgba(16, 185, 129, 0.10); }
.bg-emerald-500\/15 { background-color: rgba(16, 185, 129, 0.15); }
.bg-emerald-500\/20 { background-color: rgba(16, 185, 129, 0.20); }
.bg-purple-500 { background-color: #a855f7; }
.bg-purple-500\/10 { background-color: rgba(168, 85, 247, 0.10); }
.bg-purple-500\/15 { background-color: rgba(168, 85, 247, 0.15); }
.bg-purple-500\/20 { background-color: rgba(168, 85, 247, 0.20); }
.bg-purple-600 { background-color: #9333ea; }
.bg-blue-500 { background-color: #3b82f6; }
.bg-blue-500\/15 { background-color: rgba(59, 130, 246, 0.15); }
.bg-blue-500\/20 { background-color: rgba(59, 130, 246, 0.20); }
.bg-cyan-400 { background-color: #22d3ee; }
.bg-cyan-500\/20 { background-color: rgba(6, 182, 212, 0.20); }
.bg-cyan-500\/80 { background-color: rgba(6, 182, 212, 0.80); }
.bg-indigo-500 { background-color: #6366f1; }
.bg-indigo-600\/80 { background-color: rgba(79, 70, 229, 0.80); }
.bg-rose-500\/10 { background-color: rgba(244, 63, 94, 0.10); }
.bg-rose-500\/20 { background-color: rgba(244, 63, 94, 0.20); }

.bg-gradient-to-r { background-size: 100% 100%; }
.from-purple-500 { --tw-gradient-from: #a855f7; }
.to-amber-500 { background-image: linear-gradient(to right, #a855f7, #f59e0b); }
.to-teal-400 { background-image: linear-gradient(to right, #10b981, #2dd4bf); }

.text-stone-100 { color: #f5f5f4; }
.text-stone-200 { color: #e7e5e4; }
.text-stone-300 { color: #d6d3d1; }
.text-stone-400 { color: #a8a29e; }
.text-stone-500 { color: #78716c; }
.text-amber-300 { color: #fcd34d; }
.text-amber-400 { color: #fbbf24; }
.text-emerald-300 { color: #6ee7b7; }
.text-emerald-400 { color: #34d399; }
.text-purple-300 { color: #d8b4fe; }
.text-purple-400 { color: #c084fc; }
.text-blue-300 { color: #93c5fd; }
.text-cyan-300 { color: #67e8f9; }
.text-indigo-300 { color: #a5b4fc; }
.text-rose-300 { color: #fda4af; }

.text-\[9px\] { font-size: 9px; }
.text-\[10px\] { font-size: 10px; }
.text-\[11px\] { font-size: 11px; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }

.w-1\.5 { width: 0.375rem; }
.h-1\.5 { height: 0.375rem; }
.w-2 { width: 0.5rem; }
.h-2 { height: 0.5rem; }
.w-2\.5 { width: 0.625rem; }
.h-2\.5 { height: 0.625rem; }
.w-6 { width: 1.5rem; }
.h-6 { height: 1.5rem; }
.w-10 { width: 2.5rem; }
.h-10 { height: 2.5rem; }
.w-11 { width: 2.75rem; }
.h-11 { height: 2.75rem; }
.w-12 { width: 3rem; }
.h-12 { height: 3rem; }
.h-8 { height: 2rem; }
.min-h-\[160px\] { min-height: 160px; }

/* Interactive Buttons */
button {
  cursor: pointer;
  border: 1px solid transparent;
  outline: none;
  font-family: inherit;
}
button:hover {
  filter: brightness(1.15);
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
a { text-decoration: none; color: inherit; }

.whitespace-nowrap { white-space: nowrap; }
.top-0 { top: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }

/* Timeline Markers */
.timeline-marker {
  position: absolute;
  top: 1.25rem;
  height: 2rem;
  border-left-width: 1px;
  border-left-style: dashed;
  pointer-events: none;
  z-index: 10;
}
.timeline-marker-label {
  position: absolute;
  top: -1.25rem;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  border-width: 1px;
  border-style: solid;
  line-height: 1.3;
  user-select: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}
.timeline-marker-amber {
  border-left-color: rgba(251, 191, 36, 0.7);
}
.timeline-marker-amber .timeline-marker-label {
  color: #fcd34d;
  background-color: rgba(28, 25, 23, 0.95);
  border-color: rgba(245, 158, 11, 0.4);
}
.timeline-marker-indigo {
  border-left-color: rgba(129, 140, 248, 0.7);
}
.timeline-marker-indigo .timeline-marker-label {
  color: #a5b4fc;
  background-color: rgba(28, 25, 23, 0.95);
  border-color: rgba(99, 102, 241, 0.4);
}
