:root {
  --bg-deep: #121212;
  --bg-void: #0a0a0a;
  --accent-blue: #24a0ed;
  --accent-purple: #8b5cf6;
  --accent-green: #10b981;
  --accent-emerald: #34d399;
  --accent-mint: #6ee7b7;
  --glass-bg: rgba(18, 18, 18, 0.7);
  --glass-border: rgba(36, 160, 237, 0.2);
  --glass-highlight: rgba(255, 255, 255, 0.03);
}
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-deep);
  color: #f1f5f9;
  line-height: 1.6;
  overflow-x: hidden;
}
.glass-panel {
  background: rgba(18, 18, 18, 0.65);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(36, 160, 237, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  box-shadow: 0 20px 35px -15px rgba(0, 0, 0, 0.5);
}
.glass-card {
  background: rgba(18, 18, 18, 0.55);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-bottom-width: 2px;
  transition: all 0.25s cubic-bezier(0.2, 0, 0, 1);
  box-shadow: 0 15px 30px -15px rgba(0, 0, 0, 0.6);
}
.glass-card:hover {
  background: rgba(30, 30, 30, 0.7);
  border-color: rgba(36, 160, 237, 0.4);
  transform: translateY(-3px);
}
.gradient-brand {
  background: linear-gradient(160deg, var(--accent-blue), var(--accent-purple), #c084fc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-family: 'Playfair Display', serif;
}
.floating-dots {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}
.dot {
  position: absolute;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-emerald));
  border-radius: 50%;
  opacity: 0.7;
  animation: floatDot linear infinite;
}
@keyframes floatDot {
  0% {
    transform: translateY(100vh) translateX(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.5;
  }
  90% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(-100px) translateX(100px) rotate(360deg);
    opacity: 0;
  }
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1.5rem;
  transition: opacity 0.2s ease;
}
.modal-overlay.active {
  display: flex;
}
.modal-container {
  max-width: 480px;
  width: 100%;
  background: rgba(18, 18, 18, 0.7);
  backdrop-filter: blur(20px) saturate(200%);
  -webkit-backdrop-filter: blur(20px) saturate(200%);
  border: 1px solid rgba(36, 160, 237, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 50px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(36, 160, 237, 0.15);
  border-radius: 2rem;
  padding: 2.25rem 2rem 2rem;
  color: #f1f5f9;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  animation: modalAppear 0.3s cubic-bezier(0.2, 0, 0, 1);
  transition: transform 0.2s;
}
@keyframes modalAppear {
  0% {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.modal-icon {
  background: rgba(36, 160, 237, 0.15);
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
  border: 1px solid rgba(36, 160, 237, 0.3);
  color: #60a5fa;
}
.modal-message {
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.5;
  color: #e2e8f0;
}
.username-highlight {
  font-weight: 700;
  background: linear-gradient(135deg, #93c5fd, #436fcd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.button-group {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}
.btn {
  flex: 1;
  padding: 0.9rem 1.2rem;
  border-radius: 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.2px;
  cursor: pointer;
  border: none;
  background: transparent;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-no {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}
.btn-no:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #f1f5f9;
}
.btn-yes {
  background: linear-gradient(135deg, #24a0ed, #0891b2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  box-shadow: 0 10px 20px -10px rgba(36, 160, 237, 0.5);
}
.btn-yes:hover {
  background: linear-gradient(135deg, #1d8fd6, #067a9e);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 15px 25px -10px rgba(36, 160, 237, 0.6);
  transform: scale(1.02);
}
.feature-title {
  position: relative;
  display: inline-block;
  font-weight: 700;
  margin-bottom: 2rem;
  font-family: 'Lora', serif;
}
.section-title {
  position: relative;
  display: inline-block;
  font-weight: 700;
  margin-bottom: 2rem;
  font-family: 'Pacifico', cursive;
}
.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 70px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-emerald));
  border-radius: 4px;
  box-shadow: 0 0 12px var(--accent-blue);
}
.scroll-fade {
  max-height: 560px;
  overflow-y: auto;
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(to bottom, transparent, black 8%, black 92%, transparent);
  scrollbar-width: thin;
  scrollbar-color: rgba(36, 160, 237, 0.4) rgba(18, 18, 18, 0.3);
}
.scroll-fade::-webkit-scrollbar {
  width: 5px;
}
.scroll-fade::-webkit-scrollbar-track {
  background: rgba(18, 18, 18, 0.3);
  border-radius: 10px;
}
.scroll-fade::-webkit-scrollbar-thumb {
  background: rgba(36, 160, 237, 0.5);
  border-radius: 10px;
}
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 0;
  animation: float 30s infinite alternate ease-in-out;
}
.orb-1 {
  width: 40vw;
  height: 40vw;
  left: -10vw;
  top: -10vh;
  background: radial-gradient(circle, rgba(36, 160, 237, 0.18), transparent 80%);
}
.orb-2 {
  width: 50vw;
  height: 50vw;
  right: -15vw;
  bottom: -15vh;
  background: radial-gradient(circle, rgba(36, 160, 237, 0.12), transparent 80%);
  animation-delay: -7s;
}
@keyframes float {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(5%, 8%) scale(1.1);
  }
}
.nav-glass {
  background: rgba(18, 18, 18, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(36, 160, 237, 0.2);
}
.btn-glow {
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-emerald));
  border-radius: 40px;
  padding: 0.7rem 2rem;
  font-weight: 600;
  color: white;
  box-shadow: 0 8px 20px rgba(36, 160, 237, 0.3);
  transition: all 0.2s;
}
.btn-glow:hover {
  box-shadow: 0 12px 28px rgba(36, 160, 237, 0.5);
  transform: scale(1.02);
}
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-emerald));
  box-shadow: 0 0 12px var(--accent-blue);
  z-index: 100;
  transition: width 0.1s;
}
.year-badge {
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.mobile-bottom-nav {
  background: rgba(18, 18, 18, 0.8);
  backdrop-filter: blur(24px);
  border-top: 1px solid rgba(36, 160, 237, 0.2);
}
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.truncate-content {
  line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
@media (max-width: 768px) {
  .truncate-content {
    line-clamp: 5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
  }
}
.katex-display {
  margin: 0.6rem 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px;
  background: transparent;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.032);
}
@media (max-width: 768px) {
  .katex-display {
    font-size: 0.9em;
  }
}
.square-grid {
  background: transparent;
  backdrop-filter: none;
  border: 1px solid transparent;
  box-shadow: none;
}
.char {
  display: inline-block;
  white-space: pre;
  will-change: transform;
}
.grid {
  display: flex;
  justify-content: center;
  align-items: center;
}
#backToTop {
  background: rgba(36, 160, 237, 0.3) !important;
  border-color: rgba(36, 160, 237, 0.5) !important;
}
#backToTop:hover {
  background: rgba(36, 160, 237, 0.5) !important;
}
footer a:hover {
  color: #24a0ed;
}