@keyframes pageLoadIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: none;
  text-decoration: none;
  background: none;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: #06080e;
  color: #ffffff;
  min-height: 100vh;
  overflow-x: hidden;
  animation: pageLoadIn 0.45s ease-out both;
}

img { max-width: 100%; height: auto; }

.app-layout {
  display: grid;
  grid-template-columns: 236px 1fr;
  min-height: 100vh;
  width: 100%;
}

.sidebar {
  background: #06080e;
  border-right: 1px solid #131a27;
  width: 236px;
  min-height: 100vh;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
}

.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: #131a27; border-radius: 2px; }

.sidebar-inner {
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px 25px;
}

.logo-live-indicator {
  width: 16px;
  height: 16px;
  background: rgba(108, 24, 25, 0.51);
  border: 0.5px solid rgba(167, 36, 36, 0.42);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.live-dot {
  width: 6px;
  height: 6px;
  background: #e22b2b;
  border-radius: 50%;
  box-shadow: 0 0 5.2px rgba(167, 36, 36, 1);
  display: block;
}

.logo-live-indicator.live {
  background: rgba(24, 108, 30, 0.51);
  border-color: rgba(36, 167, 44, 0.42);
  cursor: pointer;
}

.logo-live-indicator.live .live-dot {
  background: #cffe1a;
  box-shadow: 0 0 5.2px rgba(207, 254, 26, 0.8);
}

.logo-img {
  height: 21px;
  width: auto;
  object-fit: contain;
}

.sidebar-section { padding: 10px 0; }

.sidebar-section-title {
  color: #8ba4ba;
  font-size: 9px;
  font-weight: 800;
  padding: 8px 27px;
  letter-spacing: 0.5px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 27px 8px 28px;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  transition: opacity 0.2s, color 0.2s;
  position: relative;
}

.sidebar-link:hover { opacity: 0.8; color: #cffe1a; }
.sidebar-icon { width: 19px; height: 19px; flex-shrink: 0; object-fit: contain; }

.sidebar-bottom { margin-top: auto; padding: 20px; }

.sidebar-social-card {
  background: #0e111a;
  border-radius: 5px;
  padding: 12px;
}

.sidebar-social-card .sidebar-section-title {
  padding: 0 0 10px;
  font-size: 12px;
}

.social-icons { display: flex; gap: 8px; }

.social-icon-btn {
  width: 25px;
  height: 25px;
  background: #131a27;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.2s;
}

.social-icon-btn:hover { opacity: 0.7; }
.social-icon-btn img { width: 14px; height: 14px; object-fit: contain; }

.main-content {
  min-height: 100vh;
  padding: 30px 28px 60px;
  background:
    linear-gradient(180deg, rgba(19, 26, 39, 0.72), rgba(6, 8, 14, 0) 360px),
    #06080e;
}

.points-wrapper {
  max-width: 1120px;
  margin: 0 auto;
}

.points-hero {
  min-height: 260px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
}

.points-title-block,
.balance-panel,
.system-card,
.examples-section,
.note-block,
.quick-link {
  background: #0e111a;
  border: 1px solid #131a27;
  border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(35, 49, 73, 0.5);
}

.points-title-block {
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(136, 108, 255, 0.24), rgba(14, 17, 26, 0.96) 48%),
    #0e111a;
}

.points-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.points-title-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  padding: 8px;
  border-radius: 6px;
  background: rgba(207, 254, 26, 0.08);
  border: 1px solid rgba(207, 254, 26, 0.16);
}

.points-kicker,
.section-heading span,
.system-pill,
.balance-label,
.note-block span,
.quick-link span {
  color: #8ba4ba;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.points-title-block h1 {
  margin-top: 12px;
  font-size: 54px;
  line-height: 0.98;
  font-weight: 900;
  color: #ffffff;
}

.points-title-block p {
  margin-top: 16px;
  max-width: 660px;
  color: #aab6c0;
  font-size: 15px;
  line-height: 1.65;
  font-weight: 600;
}

.balance-panel {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(180deg, rgba(207, 254, 26, 0.1), rgba(14, 17, 26, 1) 58%),
    #0e111a;
}

.balance-panel strong {
  margin-top: 12px;
  color: #ffffff;
  font-size: 30px;
  line-height: 1.1;
  font-weight: 900;
}

.balance-panel.is-live strong { color: #cffe1a; }

.balance-panel p {
  margin-top: 12px;
  color: #6f8392;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 600;
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.system-card {
  padding: 26px;
  min-height: 360px;
  background: radial-gradient(closest-side, rgba(75, 90, 118, 0.18) 0%, rgba(19, 26, 39, 0) 100%), #131a27;
  border-radius: 4px;
  box-shadow: inset 0px -2px 0px 0px rgba(15, 21, 32, 1), inset 0px 2px 0px 0px rgba(25, 34, 51, 1);
}

.system-card-top {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.system-pill {
  color: #cffe1a;
}

.system-pill.leaderboard {
  color: #00efab;
}

.system-card-top strong {
  color: #ffffff;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 900;
}

.system-card p {
  color: #aab6c0;
  font-size: 14px;
  line-height: 1.65;
  font-weight: 600;
}

.rules-list {
  margin-top: 22px;
  display: grid;
  gap: 10px;
}

.rule-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  border-radius: 5px;
  background: #131a27;
  border: 1px solid #1b2636;
}

.rule-row span {
  color: #8ba4ba;
  font-size: 13px;
  font-weight: 700;
}

.rule-row strong {
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}

.formula-box {
  margin-top: 26px;
  padding: 24px;
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(0, 239, 171, 0.14), rgba(136, 108, 255, 0.12)),
    #131a27;
  border: 1px solid rgba(0, 239, 171, 0.22);
}

.formula-box span,
.formula-box small {
  display: block;
  color: #8ba4ba;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.formula-box strong {
  display: block;
  margin: 10px 0 8px;
  color: #cffe1a;
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
}

.formula-box small {
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  line-height: 1.5;
}

.examples-section {
  padding: 26px;
  margin-bottom: 18px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-heading p {
  max-width: 340px;
  color: #8ba4ba;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 700;
  text-align: right;
}

.section-heading h2 {
  color: #ffffff;
  font-size: 26px;
  line-height: 1;
  font-weight: 900;
}

.leaderboard-visual-section {
  padding: 26px;
  margin-bottom: 18px;
  background:
    radial-gradient(circle at center top, rgba(136, 108, 255, 0.2), transparent 46%),
    #0e111a;
  border: 1px solid #131a27;
  border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(35, 49, 73, 0.5);
}

.conversion-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr) 34px minmax(0, 1fr) 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-bottom: 28px;
}

.flow-step {
  min-height: 132px;
  padding: 18px;
  border-radius: 6px;
  background: rgba(10, 13, 20, 0.92);
  border: 1px solid #1b2636;
}

.flow-step-highlight {
  border-color: rgba(207, 254, 26, 0.35);
  background:
    linear-gradient(135deg, rgba(207, 254, 26, 0.12), rgba(10, 13, 20, 0.96)),
    #0a0d14;
}

.flow-step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 24px;
  margin-bottom: 14px;
  border-radius: 4px;
  background: #131a27;
  color: #cffe1a;
  font-size: 11px;
  font-weight: 900;
}

.flow-step strong {
  display: block;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 900;
}

.flow-step small {
  display: block;
  margin-top: 9px;
  color: #8ba4ba;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 650;
}

.flow-arrow {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
}

.flow-arrow img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(207, 254, 26, 0.35));
  transform: rotate(-90deg);
}

.real-podium-demo {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.podium-card {
  width: 280px;
  border-radius: 10px;
  border: 1px solid #172236;
  position: relative;
  text-align: center;
  overflow: hidden;
  flex-shrink: 0;
}

.podium-1st {
  background: radial-gradient(closest-side, rgba(150, 118, 254, 0.2) 0%, rgba(14, 17, 26, 0) 100%), #0e111a;
  box-shadow: 0px 0px 150px 0px rgba(161, 139, 255, 0.15);
  order: 2;
  min-height: 368px;
}

.podium-2nd {
  background: radial-gradient(closest-side, rgba(18, 184, 147, 0.2) 0%, rgba(14, 17, 26, 0) 100%), #0e111a;
  box-shadow: 0px 0px 150px 0px rgba(109, 254, 213, 0.15);
  order: 1;
  min-height: 368px;
  margin-top: 34px;
}

.podium-3rd {
  background: radial-gradient(closest-side, rgba(218, 161, 132, 0.2) 0%, rgba(14, 17, 26, 0) 100%), #0e111a;
  box-shadow: 0px 0px 150px 0px rgba(253, 189, 86, 0.15);
  order: 3;
  min-height: 368px;
  margin-top: 34px;
}

.podium-avatar {
  display: flex;
  justify-content: center;
  padding-top: 30px;
}

.avatar-ring {
  width: 144px;
  height: 144px;
  border-radius: 50%;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: ringSpinIn 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.podium-2nd .avatar-ring { animation-delay: 0.3s; opacity: 0; }
.podium-1st .avatar-ring { animation-delay: 0s; opacity: 0; }
.podium-3rd .avatar-ring { animation-delay: 0.6s; opacity: 0; }

.ring-purple {
  background: linear-gradient(90deg, rgba(136, 108, 255, 1) 0%, rgba(252, 189, 255, 1) 100%);
}

.ring-green {
  background: linear-gradient(90deg, rgba(0, 239, 171, 1) 0%, rgba(172, 130, 255, 1) 100%);
}

.ring-orange {
  background: linear-gradient(90deg, rgba(66, 69, 255, 1) 0%, rgba(255, 183, 102, 1) 100%);
}

.avatar-circle {
  width: 112px;
  height: 112px;
  background: #151a26;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: circleReveal 0.8s ease forwards;
  animation-delay: inherit;
  opacity: 0;
}

.avatar-img {
  width: 55px;
  height: 64px;
  object-fit: contain;
  animation: imgFadeIn 0.6s ease forwards;
  opacity: 0;
}

.podium-1st .avatar-img { animation-delay: 0.6s; }
.podium-2nd .avatar-img { animation-delay: 0.9s; }
.podium-3rd .avatar-img { animation-delay: 1.2s; }

@keyframes ringSpinIn {
  0% { opacity: 0; transform: scale(0) rotate(-180deg); }
  60% { opacity: 1; transform: scale(1.1) rotate(20deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

@keyframes circleReveal {
  0% { opacity: 0; transform: scale(0); }
  70% { opacity: 1; transform: scale(1.08); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes imgFadeIn {
  0% { opacity: 0; transform: scale(0.5) translateY(10px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.podium-name {
  font-size: 24px;
  font-weight: 700;
  margin-top: 15px;
}

.podium-stats {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 8px;
}

.podium-label {
  color: #425f68;
  font-size: 15px;
  font-weight: 700;
}

.podium-amount {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
}

.podium-prize {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 57px;
  border-radius: 0 0 10px 10px;
  margin-top: auto;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.prize-purple {
  background: linear-gradient(90deg, rgba(136, 108, 255, 1) 0%, rgba(252, 189, 255, 1) 50%, rgba(136, 108, 255, 1) 100%);
  background-size: 200% 100%;
  animation: prizeShimmer 3s ease infinite;
}

.prize-green {
  background: linear-gradient(90deg, rgba(0, 239, 171, 1) 0%, rgba(172, 130, 255, 1) 50%, rgba(0, 239, 171, 1) 100%);
  background-size: 200% 100%;
  animation: prizeShimmer 3s ease infinite;
}

.prize-orange {
  background: linear-gradient(90deg, rgba(66, 69, 255, 1) 0%, rgba(255, 183, 102, 1) 50%, rgba(66, 69, 255, 1) 100%);
  background-size: 200% 100%;
  animation: prizeShimmer 3s ease infinite;
}

@keyframes prizeShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.prize-trophy {
  width: 20px;
  height: 17px;
  object-fit: contain;
}

.prize-amount {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
}

.prize-amount span {
  color: #ffffff;
}

.visual-callouts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.visual-callout {
  min-height: 96px;
  padding: 16px 18px;
  border-radius: 4px;
  background: radial-gradient(closest-side, rgba(75, 90, 118, 0.2) 0%, rgba(19, 26, 39, 0) 100%), #131a27;
  border: 2px solid transparent;
  box-shadow: inset 0px -2px 0px 0px rgba(15, 21, 32, 1), inset 0px 2px 0px 0px rgba(25, 34, 51, 1);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.visual-callout span {
  display: block;
  color: #8ba4ba;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.visual-callout strong {
  display: block;
  margin-top: 8px;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 900;
}

.example-blocks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.example-block {
  min-height: 112px;
  padding: 16px 18px;
  border-radius: 4px;
  background: radial-gradient(closest-side, rgba(75, 90, 118, 0.2) 0%, rgba(19, 26, 39, 0) 100%), #131a27;
  border: 2px solid transparent;
  box-shadow: inset 0px -2px 0px 0px rgba(15, 21, 32, 1), inset 0px 2px 0px 0px rgba(25, 34, 51, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.example-block-label {
  display: block;
  color: #88969c;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.example-block strong {
  display: block;
  margin-top: 7px;
  color: #ffffff;
  font-size: 26px;
  line-height: 1.1;
  font-weight: 800;
}

.example-block small {
  display: block;
  margin-top: 6px;
  color: #cffe1a;
  font-size: 15px;
  font-weight: 800;
}

.note-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.note-block {
  min-height: 150px;
  padding: 22px;
  border-radius: 4px;
  background: radial-gradient(closest-side, rgba(75, 90, 118, 0.18) 0%, rgba(19, 26, 39, 0) 100%), #131a27;
  border: 2px solid transparent;
  box-shadow: inset 0px -2px 0px 0px rgba(15, 21, 32, 1), inset 0px 2px 0px 0px rgba(25, 34, 51, 1);
}

.note-block span {
  color: #d387ff;
}

.note-block p {
  margin-top: 10px;
  color: #aab6c0;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 600;
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.quick-link {
  min-height: 98px;
  padding: 18px;
  border: 2px solid transparent;
  background: radial-gradient(closest-side, rgba(75, 90, 118, 0.18) 0%, rgba(19, 26, 39, 0) 100%), #131a27;
  box-shadow: inset 0px -2px 0px 0px rgba(15, 21, 32, 1), inset 0px 2px 0px 0px rgba(25, 34, 51, 1);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.quick-link:hover {
  transform: translateY(-2px);
  border-color: rgba(136, 108, 255, 0.45);
}

.quick-link strong {
  display: block;
  margin-top: 8px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
}

.mobile-menu-btn {
  display: none;
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 200;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  background: #121418;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: all 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 1100px) {
  .app-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    left: -260px;
    top: 0;
    transition: left 0.3s ease;
    z-index: 150;
  }

  .sidebar.open { left: 0; }
  .mobile-menu-btn { display: flex; }
  .main-content { padding: 70px 20px 42px; }
}

@media (max-width: 900px) {
  .points-hero,
  .system-grid,
  .note-section {
    grid-template-columns: 1fr;
  }

  .conversion-flow {
    grid-template-columns: 1fr;
  }

  .flow-arrow {
    width: 34px;
    height: 28px;
    margin: 0 auto;
  }

  .flow-arrow img {
    transform: rotate(0deg);
  }

  .visual-callouts {
    grid-template-columns: 1fr;
  }

  .real-podium-demo {
    align-items: center;
    flex-direction: column;
  }

  .real-podium-demo .podium-card {
    order: initial;
    margin-top: 0;
  }

  .points-title-block h1 {
    font-size: 42px;
  }

  .quick-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .main-content {
    padding-left: 14px;
    padding-right: 14px;
  }

  .points-title-block,
  .balance-panel,
  .system-card,
  .leaderboard-visual-section,
  .examples-section,
  .note-block {
    padding: 18px;
  }

  .points-title-block h1 {
    font-size: 34px;
  }

  .points-title-block p,
  .system-card p,
  .note-block p {
    font-size: 13px;
  }

  .rule-row {
    grid-template-columns: 1fr;
  }

  .rule-row strong {
    text-align: left;
  }

  .example-blocks {
    grid-template-columns: 1fr;
  }

  .formula-box strong {
    font-size: 28px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-heading p {
    text-align: left;
  }

  .quick-links {
    grid-template-columns: 1fr;
  }
}
