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

:root {
  --bg-main: #071427;
  --bg-secondary: #0c1e38;
  --card-bg: rgba(15, 33, 61, 0.82);
  --card-border: rgba(120, 170, 255, 0.14);
  --text-main: #eaf2ff;
  --text-soft: #b8c9ea;
  --text-dim: #8ea6d0;
  --accent: #5ca9ff;
  --accent-2: #7ed0ff;
  --success: #61f0a8;
  --shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
  --radius-lg: 22px;
  --radius-md: 16px;
  --max-width: 1180px;
}

body {
  font-family: 'Poppins', sans-serif;
  background:
    radial-gradient(circle at top right, rgba(42, 92, 255, 0.12), transparent 30%),
    radial-gradient(circle at bottom left, rgba(0, 170, 255, 0.08), transparent 30%),
    linear-gradient(135deg, #06111f 0%, #081a31 40%, #0a1d3a 100%);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

.background-glow {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  opacity: 0.35;
  pointer-events: none;
}

.glow-1 {
  top: 5%;
  left: -80px;
  background: rgba(72, 128, 255, 0.22);
}

.glow-2 {
  bottom: 10%;
  right: -80px;
  background: rgba(50, 190, 255, 0.18);
}

.page-wrapper {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 20px 60px;
}

/* Hero */
.hero {
  text-align: center;
  padding: 30px 10px 40px;
}

.hero-badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(92, 169, 255, 0.12);
  border: 1px solid rgba(92, 169, 255, 0.22);
  color: var(--accent-2);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  margin-bottom: 18px;
  backdrop-filter: blur(10px);
}

.paper-title {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.5px;
  max-width: 950px;
  margin: 0 auto 16px;
}

.paper-title span {
  color: var(--accent-2);
}

.paper-subtitle {
  max-width: 850px;
  margin: 0 auto;
  color: var(--text-soft);
  font-size: clamp(0.98rem, 2vw, 1.12rem);
  line-height: 1.8;
}

.paper-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 30px;
}

.meta-card {
  background: rgba(14, 30, 54, 0.78);
  border: 1px solid rgba(124, 173, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.meta-label {
  display: block;
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.meta-value {
  display: block;
  color: var(--text-main);
  font-weight: 600;
  font-size: 1rem;
}

.meta-value.active {
  color: var(--success);
}

/* Cards */
.content-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.section-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.section-number {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(92, 169, 255, 0.2), rgba(126, 208, 255, 0.12));
  border: 1px solid rgba(126, 208, 255, 0.18);
  color: var(--accent-2);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.section-top h2 {
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  font-weight: 700;
  color: var(--text-main);
}

.content-card p {
  color: var(--text-soft);
  line-height: 1.9;
  font-size: 1rem;
  margin-bottom: 16px;
}

.content-card p:last-child {
  margin-bottom: 0;
}

/* Progress */
.progress-box {
  margin-top: 8px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-main);
  font-weight: 600;
  margin-bottom: 12px;
}

.progress-bar {
  width: 100%;
  height: 14px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.progress-fill {
  width: 35%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #4f8fff, #6fd4ff);
  position: relative;
  animation: shimmer 2.5s infinite linear;
}

.progress-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: translateX(-100%);
  animation: moveGlow 2.2s infinite ease-in-out;
}

.progress-note {
  margin-top: 14px;
  color: var(--text-dim);
  font-size: 0.96rem;
}

/* Upcoming Grid */
.upcoming-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.upcoming-card {
  background: rgba(10, 24, 45, 0.85);
  border: 1px solid rgba(124, 173, 255, 0.12);
  border-radius: 18px;
  padding: 22px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.upcoming-card:hover {
  transform: translateY(-5px);
  border-color: rgba(124, 173, 255, 0.22);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.25);
}

.upcoming-card h3 {
  color: var(--text-main);
  font-size: 1.08rem;
  margin-bottom: 10px;
}

.upcoming-card p {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 14px;
}

.coming-text {
  display: inline-block;
  color: var(--accent-2);
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 10px;
}

/* Mini Loader */
.mini-loader {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
  position: relative;
}

.mini-loader::before {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #4f8fff, #7ed0ff);
  animation: slideMini 1.8s infinite ease-in-out;
}

/* Big Loader */
.final-loader-card {
  text-align: center;
}

.big-loader-wrap {
  padding: 10px 0 6px;
}

.loader-ring {
  width: 82px;
  height: 82px;
  margin: 10px auto 18px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.08);
  border-top: 4px solid var(--accent-2);
  animation: spin 1.2s linear infinite;
  box-shadow: 0 0 30px rgba(126, 208, 255, 0.18);
}

.loader-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
}

.loader-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-2);
  display: inline-block;
  animation: bounce 1.2s infinite ease-in-out;
}

.loader-dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.loader-dots span:nth-child(3) {
  animation-delay: 0.3s;
}

.big-loader-text {
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.8;
}

/* Footer */
.footer-note {
  text-align: center;
  padding-top: 8px;
}

.footer-note p {
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.7;
}

/* Animations */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes slideMini {
  0% {
    left: -40%;
  }
  100% {
    left: 100%;
  }
}

@keyframes bounce {
  0%, 80%, 100% {
    transform: scale(0.7);
    opacity: 0.6;
  }
  40% {
    transform: scale(1.15);
    opacity: 1;
  }
}

@keyframes shimmer {
  0% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.1);
  }
  100% {
    filter: brightness(1);
  }
}

@keyframes moveGlow {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(220%);
  }
}

/* Responsive */
@media (max-width: 992px) {
  .paper-meta {
    grid-template-columns: 1fr;
  }

  .upcoming-grid {
    grid-template-columns: 1fr;
  }

  .content-card {
    padding: 24px;
  }
}

@media (max-width: 768px) {
  .page-wrapper {
    padding: 24px 14px 40px;
  }

  .hero {
    padding: 10px 0 28px;
  }

  .paper-title {
    font-size: 1.7rem;
  }

  .paper-subtitle {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .content-card {
    padding: 20px;
    border-radius: 18px;
  }

  .section-top {
    gap: 12px;
  }

  .section-number {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 0.9rem;
  }

  .section-top h2 {
    font-size: 1.15rem;
  }

  .content-card p {
    font-size: 0.95rem;
    line-height: 1.8;
  }

  .upcoming-card {
    padding: 18px;
  }

  .loader-ring {
    width: 70px;
    height: 70px;
  }
}

@media (max-width: 480px) {
  .paper-title {
    font-size: 1.45rem;
    line-height: 1.3;
  }

  .hero-badge {
    font-size: 0.78rem;
    padding: 7px 14px;
  }

  .meta-card {
    padding: 15px 14px;
  }

  .meta-value {
    font-size: 0.95rem;
  }

  .content-card {
    padding: 16px;
  }

  .footer-note p {
    font-size: 0.8rem;
  }
}
