/* (same CSS as before, unchanged) */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #17181b;
  --surface: rgba(255,255,255,.045);
  --surface-hover: rgba(255,255,255,.09);
  --border: rgba(255,255,255,.08);
  --border-hover: rgba(255,255,255,.18);
  --accent: #8ab4f8;
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

html, body {
  width: 100%;
}

body {
  position: relative;
  background: var(--bg);
  font-family: 'Quicksand', Arial, sans-serif;
  color: #fff;
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 100vh;
}

.background {
  position: fixed;
  inset: -12%;
  background: url("https://avelis.dev/Avelis Discord.png") center center / cover no-repeat;
  opacity: 0.32;
  animation: bgDrift 19s ease-in-out infinite;
  will-change: transform;
  z-index: 0;
  pointer-events: none;
}

@keyframes bgDrift {
  0%,100% { transform: translateX(0) translateY(0) scale(1); }
  30%      { transform: translateX(-18px) translateY(-12px) scale(1.05); }
  60%      { transform: translateX(12px) translateY(-22px) scale(1.09); }
  85%      { transform: translateX(-8px) translateY(6px) scale(1.03); }
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 180px;
}

.glow {
  position: fixed;
  border-radius: 999px;
  background: var(--accent);
  filter: blur(140px);
  pointer-events: none;
  will-change: transform;
  z-index: 0;
}

.glow1 { width: 520px; height: 520px; top: -220px; left: -140px; opacity: .07; animation: blobGlow1 13s ease-in-out infinite; }
.glow2 { width: 400px; height: 400px; right: -150px; top: 20px; opacity: .055; animation: blobGlow2 15s ease-in-out infinite; }
.glow3 { width: 600px; height: 600px; left: 45%; bottom: -320px; transform: translateX(-50%); opacity: .07; animation: blobGlow3 18s ease-in-out infinite; }

@keyframes blobGlow1 { 0%,100%{ transform:translate(0,0); } 50%{ transform:translate(55px,-45px); } }
@keyframes blobGlow2 { 0%,100%{ transform:translate(0,0); } 50%{ transform:translate(-44px,32px); } }
@keyframes blobGlow3 { 0%,100%{ transform:translateX(-50%) translateY(0); } 50%{ transform:translateX(-50%) translateY(-52px); } }

.particles {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

.particle {
  position: absolute;
  bottom: -20px;
  border-radius: 50%;
  background: rgba(255,255,255,.65);
  box-shadow: 0 0 10px rgba(255,255,255,.2);
  animation: floatUp linear infinite;
  will-change: transform, opacity;
}

@keyframes floatUp {
  0%   { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0; }
  10%  { opacity: .7; }
  90%  { opacity: .6; }
  100% { transform: translateY(-140vh) translateX(var(--drift, 36px)) rotate(var(--rot, 380deg)); opacity: 0; }
}

.nav-wrap {
  position: relative;
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1240px, 92vw);
  z-index: 100;
  margin-bottom: 48px;
}

.nav {
  width: 100%;
  height: 68px;
  padding: 0 20px 0 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 18px;
  background: rgba(23,24,27,.48);
  backdrop-filter: blur(24px) saturate(1.5);
  border: 1px solid var(--border);
  box-shadow: 0 18px 40px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.06);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 3px 10px rgba(0,0,0,.4);
}

.brand {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.back-nav-btn {
  height: 40px;
  padding: 0 15px;
  border-radius: 40px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: 'Quicksand', Arial, sans-serif;
  backdrop-filter: blur(5px);
  transition: background .22s ease, border-color .22s ease, transform .2s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  margin-left: 8px;
}
.back-nav-btn:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.28);
  transform: translateY(-2px);
}
.back-nav-btn:active {
  transform: translateY(0px);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-btn {
  height: 42px;
  padding: 0 18px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: 'Quicksand', Arial, sans-serif;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all .2s var(--ease-smooth);
}

.nav-btn svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.nav-btn:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.nav-btn-disabled,
.nav-btn-disabled:hover {
  cursor: not-allowed;
  color: rgba(255,255,255,.42);
  background: rgba(10,11,13,.45);
  border-color: rgba(255,255,255,.07);
  transform: none;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.24);
}

.nav-btn-disabled::after {
  content: '';
  position: absolute;
  inset: -18px;
  background:
    linear-gradient(135deg, transparent 43%, rgba(255,255,255,.23) 47%, rgba(255,255,255,.23) 53%, transparent 57%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.08) 0 1px, transparent 1px 8px);
  opacity: .68;
  pointer-events: none;
}

.content-wrapper {
  position: relative;
  z-index: 12;
  min-height: calc(100vh - 180px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 28px 80px 28px;
}

.drag-container {
  position: relative;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}

.history-card {
  background: rgba(18, 19, 22, 0.65);
  backdrop-filter: blur(24px);
  border-radius: 2rem;
  border: 1px solid rgba(255,255,255,.12);
  padding: 2rem 2.2rem;
  box-shadow: 0 32px 56px -20px rgba(0,0,0,0.6);
  transition: box-shadow 0.2s;
  cursor: default;
  user-select: text;
  position: relative;
}

.history-card:active {
  cursor: default;
}

.history-card h1 {
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
  background: linear-gradient(115deg, #fff, #cbd5ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: flex;
  align-items: center;
  gap: 12px;
}

.history-card h1 svg {
  width: 38px;
  height: 38px;
  stroke: #8ab4f8;
  stroke-width: 1.7;
  fill: none;
}

.tagline {
  font-size: 0.85rem;
  color: #8ab4f8;
  margin-bottom: 1.5rem;
  border-left: 2px solid #8ab4f8;
  padding-left: 12px;
  font-weight: 500;
}

.history-card h2 {
  font-size: 1.55rem;
  font-weight: 600;
  margin: 1.6rem 0 0.5rem 0;
  letter-spacing: -0.2px;
  color: #eef3ff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.history-card h2 svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
}

.history-card p {
  line-height: 1.65;
  color: rgba(235, 240, 255, 0.85);
  margin-bottom: 0.9rem;
  font-size: 1rem;
  font-weight: 500;
}

.timeline-item {
  margin: 1.2rem 0 1.8rem 0;
  position: relative;
  padding-left: 28px;
  border-left: 2px solid rgba(138, 180, 248, 0.4);
}

.timeline-date {
  font-size: 0.9rem;
  font-weight: 700;
  color: #8ab4f8;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(138, 180, 248, 0.12);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0.6rem 0 1rem 0;
  color: #bbd6ff;
}

.footer-terms {
  position: relative;
  z-index: 12;
  text-align: center;
  padding: 28px 24px 42px;
  color: rgba(255,255,255,.3);
  font-size: 0.8rem;
  font-weight: 500;
  border-top: 1px solid rgba(255,255,255,.04);
  margin-top: 20px;
}

.footer-terms a {
  color: rgba(255,255,255,.5);
  text-decoration: none;
  margin: 0 8px;
  transition: color 0.2s;
}

.footer-terms a:hover {
  color: rgba(255,255,255,.8);
}

@media (max-width: 700px) {
  .nav {
    height: 58px;
    padding: 0 14px;
  }
  .back-nav-btn {
    padding: 0 12px;
    font-size: 12px;
    height: 34px;
  }
  .brand {
    font-size: 16px;
  }
  .logo {
    width: 34px;
    height: 34px;
  }
  .nav-btn {
    padding: 0 12px;
    height: 36px;
    font-size: 12px;
  }
  .history-card {
    padding: 1.5rem;
  }
  .history-card h1 {
    font-size: 2rem;
  }
  .content-wrapper {
    padding: 20px 18px 60px 18px;
  }
}
